[Bug 2083181] Re: Ceph encrypted volume activation fails with new ceph-volume package
Vijay Sarvepalli
2083181 at bugs.launchpad.net
Fri Oct 25 23:09:51 UTC 2024
Looks like this bug is fixed in the last update that came in
19.2.0-0ubuntu0.24.04.1 which is the stable version. I am not sure why
the dev version was pushed to production earlier.
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/2083181
Title:
Ceph encrypted volume activation fails with new ceph-volume package
Status in ceph package in Ubuntu:
New
Bug description:
When activating a ceph-volume that was previously created with
bluestore and encrypted volume using the command
ceph-volume lvm create —dmcrypt —data /data/sdb
on Systemd reactivation fails with error
`ceph Invalid version: 'cryptsetup 2.7.0 flags: UDEV BLKID KEYRING
FIPS KERNEL_CAPI HW_OPAL`
This seems to be due to the incorrect code in the file
/usr/lib/python3/dist-packages/ceph_volume/util/encryption.py:22
if version.parse(out[0]) >= version.parse(f'cryptsetup
{target_version}'):
The following patch helps me work around the problem
*** /usr/lib/python3/dist-packages/ceph_volume/util/encryption.py 2024-03-01 05:14:14.000000000 +0000
--- /usr/lib/python3/dist-packages/ceph_volume/util/encryption.py.new 2024-09-30 01:45:17.589042485 +0000
***************
*** 19,25 ****
command = ["cryptsetup", "--version"]
out, err, rc = process.call(command)
try:
! if version.parse(out[0]) >= version.parse(f'cryptsetup {target_version}'):
conf.dmcrypt_no_workqueue = True
except IndexError:
mlogger.debug(f'cryptsetup version check: rc={rc} out={out} err={err}')
--- 19,26 ----
command = ["cryptsetup", "--version"]
out, err, rc = process.call(command)
try:
! ver = out[0].split(' ')[1]
! if version.parse(ver) >= version.parse(f'{target_version}'):
conf.dmcrypt_no_workqueue = True
except IndexError:
mlogger.debug(f'cryptsetup version check: rc={rc} out={out} err={err}')
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: ceph-volume 19.2.0~git20240301.4c76c50-0ubuntu6.1 [modified: usr/lib/python3/dist-packages/ceph_volume/util/__pycache__/encryption.cpython-312.pyc]
ProcVersionSignature: Ubuntu 6.8.0-45.45-generic 6.8.12
Uname: Linux 6.8.0-45-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Mon Sep 30 01:51:54 2024
InstallationDate: Installed on 2016-04-08 (3097 days ago)
InstallationMedia: Ubuntu-Server 14.04.4 LTS "Trusty Tahr" - Release amd64 (20160217.1)
PackageArchitecture: all
ProcEnviron:
LANG=en_GB.UTF-8
LANGUAGE=en_GB.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=vt100
SourcePackage: ceph
UpgradeStatus: Upgraded to noble on 2024-09-28 (1 days ago)
mtime.conffile..etc.init.d.apport: 2024-07-22T14:59:07
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/2083181/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list