Project

General

Profile

Actions

Bug #55970

closed

lvm activation with dmcrypt fails when no cluster fsid is passed

Added by Guillaume Abrioux almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
High
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
quincy,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

this is a regression introduced by https://github.com/ceph/ceph/pull/44765


Related issues 2 (0 open2 closed)

Copied to ceph-volume - Backport #56039: quincy: lvm activation with dmcrypt fails when no cluster fsid is passedResolvedGuillaume AbriouxActions
Copied to ceph-volume - Backport #56040: pacific: lvm activation with dmcrypt fails when no cluster fsid is passedResolvedGuillaume AbriouxActions
Actions #1

Updated by Guillaume Abrioux almost 2 years ago

[root@cluster-fsid-1 /]# CEPH_VOLUME_DEBUG=1 ceph-volume lvm activate --no-systemd 0 1efb10e1-b056-493d-9d35-0abeee94fe90
Running command: /usr/bin/ceph --cluster ceph --name client.osd-lockbox.1efb10e1-b056-493d-9d35-0abeee94fe90 --keyring /var/lib/ceph/osd/ceph-0/lockbox.keyring config-key get dm-crypt/osd/1efb10e1-b056-493d-9d35-0abeee94fe90/luks
Traceback (most recent call last):
  File "/usr/lib64/python3.6/configparser.py", line 789, in get
    value = d[option]
  File "/usr/lib64/python3.6/collections/__init__.py", line 883, in __getitem__
    return self.__missing__(key)            # support subclasses that define __missing__
  File "/usr/lib64/python3.6/collections/__init__.py", line 875, in __missing__
    raise KeyError(key)
KeyError: 'fsid'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/ceph_volume/configuration.py", line 80, in is_valid
    self.get('global', 'fsid')
  File "/usr/lib64/python3.6/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'fsid' in section: 'global'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/sbin/ceph-volume", line 11, in <module>
    load_entry_point('ceph-volume==1.0.0', 'console_scripts', 'ceph-volume')()
  File "/usr/lib/python3.6/site-packages/ceph_volume/main.py", line 40, in __init__
    self.main(self.argv)
  File "/usr/lib/python3.6/site-packages/ceph_volume/decorators.py", line 59, in newfunc
    return f(*a, **kw)
  File "/usr/lib/python3.6/site-packages/ceph_volume/main.py", line 152, in main
    terminal.dispatch(self.mapper, subcommand_args)
  File "/usr/lib/python3.6/site-packages/ceph_volume/terminal.py", line 194, in dispatch
    instance.main()
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/main.py", line 46, in main
    terminal.dispatch(self.mapper, self.argv)
  File "/usr/lib/python3.6/site-packages/ceph_volume/terminal.py", line 194, in dispatch
    instance.main()
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/activate.py", line 377, in main
    self.activate(args)
  File "/usr/lib/python3.6/site-packages/ceph_volume/decorators.py", line 16, in is_root
    return func(*a, **kw)
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/activate.py", line 301, in activate
    activate_bluestore(lvs, args.no_systemd)
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/activate.py", line 176, in activate_bluestore
    encryption_utils.luks_open(dmcrypt_secret, osd_block_lv.lv_path, osd_block_lv.lv_uuid)
  File "/usr/lib/python3.6/site-packages/ceph_volume/util/encryption.py", line 97, in luks_open
    get_key_size_from_conf(),
  File "/usr/lib/python3.6/site-packages/ceph_volume/util/encryption.py", line 21, in get_key_size_from_conf
    default='512')
  File "/usr/lib/python3.6/site-packages/ceph_volume/configuration.py", line 95, in get_safe
    self.is_valid()
  File "/usr/lib/python3.6/site-packages/ceph_volume/configuration.py", line 82, in is_valid
    raise exceptions.ConfigurationKeyError('global', 'fsid')
ceph_volume.exceptions.ConfigurationKeyError: Unable to find expected configuration key: "fsid" from section "global" 
Actions #2

Updated by Guillaume Abrioux almost 2 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 46588
Actions #3

Updated by Adam King almost 2 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Backport Bot almost 2 years ago

  • Copied to Backport #56039: quincy: lvm activation with dmcrypt fails when no cluster fsid is passed added
Actions #5

Updated by Backport Bot almost 2 years ago

  • Copied to Backport #56040: pacific: lvm activation with dmcrypt fails when no cluster fsid is passed added
Actions #6

Updated by Guillaume Abrioux almost 2 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF