mount_check doesn't work when using filesystem UUIDs instead of device names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I guess it's related to the drive.isalnum() check in swift/common/
I could be wrong, but paths like /dev/sdX aren't guaranteed to be persistent with some storage configurations(1) so using UUIDs for drives would be a nice feature to have.
The workaround is either to disable mount_check in /etc/swift/
if not drive.isalnum():
return False
in swift/common/
Tested using Ubuntu Precise's Swift packages:
python-swift:
Installed: 1.4.8-0ubuntu2
Candidate: 1.4.8-0ubuntu2
Version table:
*** 1.4.8-0ubuntu2 0
500 http://
100 /var/lib/
(1) "4. Persistent Naming"
https:/
description: | updated |
Changed in swift: | |
milestone: | none → 1.7.5 |
status: | Fix Committed → Fix Released |
Forgot to mention that we're using ring devices like:
Devices: id zone ip address port name weight partitions balance meta 7b5b-4ed6- 8e40-2ad393e33f a8 3.00 43690 -0.00
0 2 1.2.3.4 6002 0b1b6364-
and mount points like:
/srv/node/ 0b1b6364- 7b5b-4ed6- 8e40-2ad393e33f a8