To us, this raises the question of format checks responsibility throughout images lifecycle, between Glance and Cinder. Today, afaik, Glance will: - tag as 'raw' any image uploaded without any format specified - tag the image with the format provided by the customer, whatever the actual format of the image is whereas Cinder is now more picky, refusing to deal with an image that claims to be of X format but is actually Y.
If you do confirm these observations, in your opinion, what would be the best option among: • leave it as is, after all openstack customer is responsible for the accuracy of the information provided on image upload and should not be surprised by downstream mismatches when using the image • strengthen customer's responsibility of bullet 1. by making image format declaration mandatory on image upload • enforce format checks on glance on image upload • other way you may think of? something upstream I may have missed?
This will probably answer your questions: https://review.opendev.org/c/openstack/glance-specs/+/925111 In short, yes, glance should be enforcing that the format matches on upload, IMHO. Glance does enforce it on import currently *if* image_conversion is enabled. I think that nova and cinder should continue to not trust glance to have done this though, and continue to inspect and assert that what they got matches what they expect. The above spec is my plan for the upcoming cycle to robustify glance in this regard. Moving nova, glance, and cinder to the oslo implementation (which has merged but is awaiting a release) will be a first step to making the continued diligence by the downstream-of-glance projects easier. --Dan