Please add custom_properties support similar to simplestreams-sync
Bug #1994053 reported by
Alan Baghumian
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Charm Guide |
Fix Released
|
Undecided
|
Rafael Lopez | ||
OpenStack Glance Charm |
Fix Committed
|
Wishlist
|
Rafael Lopez | ||
2023.1 |
In Progress
|
Undecided
|
Unassigned | ||
Yoga |
In Progress
|
Undecided
|
Unassigned | ||
Zed |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Hello!
It would be great if we have a custom_properties configuration option similar to glance-
This would make life much easier to set some properties as default and not having to figure out a way to post-process uploaded images in glace to set desired "default" properties for a given environment.
Please let me know if you have any questions.
Thank you.
Changed in charm-glance: | |
assignee: | nobody → Rafael Lopez (rafael.lopez) |
Changed in charm-glance: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in charm-guide: | |
assignee: | nobody → Rafael Lopez (rafael.lopez) |
Changed in charm-guide: | |
status: | New → In Progress |
To post a comment you must log in.
Hi,
This one is a typical example of lack of consistency. simplestreams- sync diskimage- retrofit
You have 3 charms here dealing with images in Glance :
* glance charm itself
* glance-
* octavia-
These 3 charms have their own sets of options regarding image properties/ conversion and there is no way to have a consistent behavior.
1) with glance, there is a "image-conversion" option in order to force conversion to raw format that is apparently doing its job *but only when the image is uploaded through CLI or Horizon dashboard* ! Images uploaded by glance- simplestreams- sync or octavia- diskimage- retrofit are *not* converted as if they can bypass this option (which is configured at the glance level so I don't even know how they can do that).
2) glance charm has no option to configure custom image properties (such as hw properties for virtio drivers, qemu-guest-agent support, ...). This is something that is supported by glance through the image property injection plugin (image_ import_ plugins ) which basically relies on the same principles as image conversion plugin (where we do have a charm option available). So custom properties has to be set afterwards which can easily be done with a controlled process (pipelines, whatever ...) but in some situations (where a user can upload his own custom image), we could be in some corner case where some instances could be spawned without the properties we need.
3) glance- simplestreams- sync on the other hand *has* options to set custom properties for images *but* ... no option to do image conversion, files are uploaded as qcow which is not efficient when used with a ceph storage backend for example.
4) octavia- diskimage- retrofit has no option for both custom properties and conversion ... even though the retrofit process is based on the images uploaded by glance- simplestreams- sync (which have their own set of custom properties but those properties are not inherited by the retrofited image).
This is pure mess, can't we just have options to add default custom properties and do image conversion at the glance level and have every other "image uploader" charms such as glance- simplestreams- sync and octavia- diskimage- retrofit just comply to these rules by not doing things their own way ?
Or maybe have some hierarchical layering with image uploading charms to override or add their own options on top of what is defined at the glance level but without bypassing them ?
The current situation is just illogical and inconsistent.