[Bug 2085851] Please test proposed package
James Page
2085851 at bugs.launchpad.net
Wed Jan 8 07:41:43 UTC 2025
Hello Marcin, or anyone else affected,
Accepted cinder into yoga-proposed. The package will build now and be
available in the Ubuntu Cloud Archive in a few hours, and then in the
-proposed repository.
Please help us by testing this new package. To enable the -proposed
repository:
sudo add-apt-repository cloud-archive:yoga-proposed
sudo apt-get update
Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-yoga-needed to verification-yoga-done. If it does not
fix the bug for you, please add a comment stating that, and change the
tag to verification-yoga-failed. In either case, details of your testing
will help us make a better decision.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance!
** Changed in: cloud-archive/yoga
Status: New => Fix Committed
** Tags added: verification-yoga-needed
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to cinder in Ubuntu.
https://bugs.launchpad.net/bugs/2085851
Title:
Jammy package 2:20.3.1-0ubuntu1.4 is missing the upstream privsep
pieces
Status in Ubuntu Cloud Archive:
Invalid
Status in Ubuntu Cloud Archive antelope series:
Fix Committed
Status in Ubuntu Cloud Archive bobcat series:
Fix Committed
Status in Ubuntu Cloud Archive caracal series:
Fix Committed
Status in Ubuntu Cloud Archive ussuri series:
Fix Committed
Status in Ubuntu Cloud Archive yoga series:
Fix Committed
Status in cinder package in Ubuntu:
Invalid
Status in cinder source package in Focal:
Fix Released
Status in cinder source package in Jammy:
Fix Released
Status in cinder source package in Noble:
Fix Released
Bug description:
Ubuntu Jammy cinder package version 2:20.3.1-0ubuntu1.4 [1] backported fix [2] for the LP#2059809 [3] (the CVE-2024-32498 fix).
The upstream fix [2] calls the `format_inspector.detect_file_format` with elevated privileges [4], however the code in the Ubuntu package does not [5]. Instead it calls the `format_inspector.detect_file_format` without using privsep. That is causing the following error when creating qcow image from volume (using purestorage driver):
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/volume/manager.py", line 1744, in copy_volume_to_image
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server self.driver.copy_volume_to_image(context, volume,
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/volume/driver.py", line 919, in copy_volume_to_image
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server volume_utils.upload_volume(context,
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/volume/volume_utils.py", line 1341, in upload_volume
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server image_utils.upload_volume(context, image_service, image_meta, volume_path,
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/image/image_utils.py", line 1083, in upload_volume
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server data = qemu_img_info(volume_path, run_as_root=run_as_root)
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/image/image_utils.py", line 164, in qemu_img_info
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server inspector = format_inspector.detect_file_format(path)
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server File "/usr/lib/python3/dist-packages/cinder/image/format_inspector.py", line 921, in detect_file_format
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server with open(filename, 'rb') as f:
2024-10-28 09:45:28.849 2007342 ERROR oslo_messaging.rpc.server PermissionError: [Errno 13] Permission denied: '/dev/dm-0'
[1] https://launchpad.net/ubuntu/+source/cinder/2:20.3.1-0ubuntu1.4
[2] https://review.opendev.org/c/openstack/cinder/+/923873
[3] https://launchpad.net/bugs/2059809
[4] https://review.opendev.org/c/openstack/cinder/+/923873/9/cinder/image/image_utils.py#164
[5] https://launchpadlibrarian.net/737789879/cinder_2%3A20.2.0-0ubuntu1.1_2%3A20.3.1-0ubuntu1.4.diff.gz
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/2085851/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list