Not able to create image with cinder as storage backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | ||
Ussuri |
Fix Released
|
Medium
|
Unassigned | ||
python-glance-store (Ubuntu) |
Fix Released
|
Medium
|
Hemanth Nakkina | ||
Focal |
Fix Released
|
Medium
|
Unassigned |
Bug Description
On Ussuri, creation of image with cinder as glance storage backend fails.
Reproduction Steps:
1. Deploy cloud environment - focal ussuri
2. Change the following configuration in /etc/glance/
[DEFAULT]
enabled_backends = local:file, cinder:cinder
[glance_store]
default_backend = cinder
Restart glance-api service
systemctl restart glance-api.service
3. Upload a cirros image to glance
openstack image create --container-format bare --disk-format qcow2 --file /home/ubuntu/
The above command throws an exception.
Exception in /var/log/
2021-10-20 06:34:34.894 279293 ERROR glance_
2021-10-20 06:34:34.894 279293 ERROR glance_
2021-10-20 06:34:34.894 279293 ERROR glance_
2021-10-20 06:34:34.894 279293 ERROR glance_
2021-10-20 06:34:34.894 279293 ERROR glance_
2021-10-20 06:34:34.894 279293 ERROR glance_
2021-10-20 06:34:34.894 279293 ERROR glance_
2021-10-20 06:34:34.894 279293 ERROR glance_
2021-10-20 06:34:34.894 279293 ERROR glance_
2021-10-20 06:34:34.894 279293 ERROR glance_
Package used:
python3-
Analysis:
The method signature and the calling method args seems different for function temporary_chown
https:/
https:/
This is fixed in upstream as part of https:/
The bug fix for LP#1870289 need to be SRU'ed to Ubuntu python3-
+++++++
[Impact]
Not able to upload an image to glance
[Test Case]
1. Deploy cloud with focal ussuri
2. Configure cinder as glance storage backend
Ensure the following configurations in glance-api.conf
[DEFAULT]
enabled_backends = local:file, cinder:cinder
[glance_store]
default_backend = cinder
Restart glance-api service
systemctl restart glance-api.service
3. Upload an image to glance
openstack image create --container-format bare --disk-format qcow2 --file /home/ubuntu/
Image creation should be successful.
4. Repeat step 3 with creation of 5 images concurrently.
Run the command in step3 in 5 different consoles.
Verify if image creation is successful for all of them.
'openstack image list' should list all the 5 images
[Regression Potential]
The fix enhanced the locking mechanism to support concurrent image creation requests in addition to correcting the function signature that caused the initial problem. The test case is enhanced to verify concurrent
creation of images to avoid any regressions.
Also the patch is verified upstream via CI unit test cases and functional test cases.
tags: | added: sts |
Changed in python-glance-store (Ubuntu): | |
assignee: | nobody → Hemanth Nakkina (hemanth-n) |
tags: | added: sts-sru-needed |
Changed in python-glance-store (Ubuntu): | |
importance: | Undecided → Medium |
Changed in python-glance-store (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in python-glance-store (Ubuntu): | |
status: | New → Fix Released |
Changed in cloud-archive: | |
status: | New → Fix Released |
Changed in python-glance-store (Ubuntu Focal): | |
status: | New → Triaged |
The fix for LP#1870289 are available in UCA Victoria and further.