Image location information is restricted to Admin only, causing slow snapshots with RBD
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Glance Charm |
Fix Released
|
High
|
Edward Hope-Morley |
Bug Description
Charm 18.05, Queens on Xenial with Ceph and kvm virt.
When using a user account with only the Member role, Snapshots of instances based on Glance images take ~15-20 mins to complete. As a user with Admin, we could not reproduce.
As a non-admin user, an 'openstack image show XXX' shows properties as "locations='[]'" . As a user with the Admin role, we see "direct_
More details in https:/
This behavior is confirmed as by design in policy.json which has the entry:
"get_image_
Unfortunately, if the location isn't visible, Nova is unable to read the parent image info and use that information to determine how to make a snapshot of an instance, so defaults to the non-rbd method of downloading the image and uploading the snapshot.
Changed in charm-glance: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in charm-glance: | |
milestone: | none → 18.11 |
assignee: | nobody → Edward Hope-Morley (hopem) |
Changed in charm-glance: | |
status: | Fix Committed → Fix Released |
The policy entry '"get_image_ location" : "role:admin"' is set by L565 [1], should we provide one option to configure it for some customization cases ?
[1] https:/ /github. com/openstack/ charm-glance/ blob/stable/ 18.05/hooks/ glance_ utils.py# L565