Actions
Bug #48464
closedblkid holds old entries in cache
Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
octopus,nautilus
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
OS: Ubuntu 16.04
Ceph: Nautilus 14.2.11
Invoking activating OSD drive could fail because of old blkid cache
--> activating OSD specified in /etc/ceph/osd/43-64d7fc20-4e11-4357-8027-a1ac963450df.json Running command: /bin/ln -snf /dev/sdp2 /dev/disk/by-partuuid/f07926d1-b88b-4892-9ed7-4e5a200b06f5 /var/lib/ceph/osd/ceph-43/block Running command: /bin/chown -R ceph:ceph /dev/sdp2 /dev/disk/by-partuuid/f07926d1-b88b-4892-9ed7-4e5a200b06f5 stderr: /bin/chown: cannot access '/dev/sdp2 /dev/disk/by-partuuid/f07926d1-b88b-4892-9ed7-4e5a200b06f5': No such file or directory Traceback (most recent call last): File "/usr/sbin/ceph-volume", line 9, in <module> load_entry_point('ceph-volume==1.0.0', 'console_scripts', 'ceph-volume')() File "/usr/lib/python2.7/dist-packages/ceph_volume/main.py", line 39, in __init__ self.main(self.argv) File "/usr/lib/python2.7/dist-packages/ceph_volume/decorators.py", line 59, in newfunc return f(*a, **kw) File "/usr/lib/python2.7/dist-packages/ceph_volume/main.py", line 150, in main terminal.dispatch(self.mapper, subcommand_args) File "/usr/lib/python2.7/dist-packages/ceph_volume/terminal.py", line 194, in dispatch instance.main() File "/usr/lib/python2.7/dist-packages/ceph_volume/devices/simple/main.py", line 33, in main terminal.dispatch(self.mapper, self.argv) File "/usr/lib/python2.7/dist-packages/ceph_volume/terminal.py", line 194, in dispatch instance.main() File "/usr/lib/python2.7/dist-packages/ceph_volume/devices/simple/activate.py", line 281, in main self.activate(args) File "/usr/lib/python2.7/dist-packages/ceph_volume/decorators.py", line 16, in is_root return func(*a, **kw) File "/usr/lib/python2.7/dist-packages/ceph_volume/devices/simple/activate.py", line 197, in activate system.chown(device) File "/usr/lib/python2.7/dist-packages/ceph_volume/util/system.py", line 123, in chown process.run(['chown', '-R', 'ceph:ceph', path]) File "/usr/lib/python2.7/dist-packages/ceph_volume/process.py", line 153, in run raise RuntimeError(msg) RuntimeError: command returned non-zero exit status: 1
At the same time the blkid return
# blkid -t PARTUUID=f07926d1-b88b-4892-9ed7-4e5a200b06f5 -o device /dev/sdp2 /dev/disk/by-partuuid/f07926d1-b88b-4892-9ed7-4e5a200b06f5
The correct output should be
# blkid -t PARTUUID=f07926d1-b88b-4892-9ed7-4e5a200b06f5 -o device /dev/sdp2
We tested that ceph-volume simple scan command has influence on blkid cache.
The best solution is to ignore cache during ceph-volume operations.
Actions