Project

General

Profile

Actions

Bug #48464

closed

blkid holds old entries in cache

Added by Rafal Wadolowski over 3 years ago. Updated over 2 years ago.

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.


Related issues 2 (0 open2 closed)

Copied to ceph-volume - Backport #48649: octopus: blkid holds old entries in cacheResolvedKonstantin ShalyginActions
Copied to ceph-volume - Backport #48650: nautilus: blkid holds old entries in cacheResolvedKonstantin ShalyginActions
Actions #2

Updated by Rishabh Dave over 3 years ago

  • Pull request ID set to 38447
Actions #3

Updated by Rishabh Dave over 3 years ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Jan Fajerski over 3 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to octopus,nautilus
Actions #5

Updated by Backport Bot over 3 years ago

  • Copied to Backport #48649: octopus: blkid holds old entries in cache added
Actions #6

Updated by Backport Bot over 3 years ago

  • Copied to Backport #48650: nautilus: blkid holds old entries in cache added
Actions #7

Updated by Loïc Dachary over 2 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF