Tuesday, 2023-10-17

opendevreviewKeerthivasan S proposed openstack/cinder master: [Pure Storage] Unit tests and fixed variable name for Replication-Enabled Consistency Groups  https://review.opendev.org/c/openstack/cinder/+/89738211:12
opendevreviewTakashi Kajinami proposed openstack/cinder master: Fix python shebang  https://review.opendev.org/c/openstack/cinder/+/89860015:47
opendevreviewTakashi Kajinami proposed openstack/cinder master: Fix python shebang  https://review.opendev.org/c/openstack/cinder/+/89860016:03
sean-k-mooneyeharney: can you remove the +w on https://review.opendev.org/c/openstack/cinder/+/86848516:38
sean-k-mooneythe limit on the leght of image metadta vlaues comes form nova's db not glances16:39
sean-k-mooneyso it not safe to lift the lmit in cinder16:39
eharneysean-k-mooney: done, sounds worth digging into... why is it not safe?16:48
eharneyi believe you can create glance images with those longer fields now16:48
sean-k-mooneyim diging into the details of the patch16:48
sean-k-mooneyso image metaedata keys are not free from and defiend by nova16:49
sean-k-mooneyvalues are also checked by nova16:49
sean-k-mooneyso glance would accpet it16:49
sean-k-mooneybut you coudl not boot a vm with it16:49
sean-k-mooneyboot form volume might work but i woudl expect it to fial16:50
sean-k-mooneyattaching a volume with longer keys should work16:50
sean-k-mooneywe only embed the image properies for the root disk16:50
sean-k-mooneyso a volume created form an image with longer vlaues that is attached as a data voume would likely not break anything16:51
sean-k-mooneyeharney: i commented on the bug looking at it more closely nova is ignroign any image porperies it does not recognise17:30
sean-k-mooneywe have been assuimg that custom image proeprties have not been supproted in general since mitaka more or less17:31
sean-k-mooneybut we do create soem for snapshots on the glace cide17:31
sean-k-mooneyso the cahnge may or may not be ok17:31
sean-k-mooneylooking at the code provided one of the filed that is over 255 is not one know about by nova it proably woudl work17:32
sean-k-mooneybut im expecing a db error for the others or an object error if the image property is an enuma or other restricted data type17:33
sean-k-mooneyso maybe its ok form a cidner perspective but i would expect this to be an api microversion bump at a minium17:33
eharneysean-k-mooney: what would behavior change would change when requesting a newer microversion?17:45
sean-k-mooneyallow metadta values larger then 25517:46
sean-k-mooneythe db might already allow that but this is still a schma change17:46
eharneynot sure what that means... we can't set the db schema limit based on the microversion17:46
sean-k-mooneyexisitg clinet shoudl expect an error if the metadta vlaues are > 25517:46
sean-k-mooneythat not a db schema limit17:47
sean-k-mooneyits an api schema limit17:47
sean-k-mooneyi.e. what used to validate the json boday17:47
eharneyon what operation?17:48
sean-k-mooneyon put/post when updating the image metadta17:48
sean-k-mooneyalthoguh the tricker question is what to do on get if you have data that exceed 25517:48
eharneybut then someone could still update it to the larger size and then another call to consume that volume may not be able to handle that size17:49
sean-k-mooneyso im really wondering how nova is going to know that it might need to raise new errors when we read the larger proerties17:50
sean-k-mooneywe dont currently validate the lengths of several filed because we were expecting the 255 limit to be enfoced in galnce and cinder17:51
sean-k-mooneyso that a problem in nova in either case17:51
eharneyis glance doing that currently?17:52
sean-k-mooneyi guess i can check there api ref17:52
sean-k-mooneyhttps://docs.openstack.org/api-ref/image/v2/?expanded=import-an-image-detail#request17:54
sean-k-mooneyAdditionally, you may include additional properties specified as key:value pairs, where the value must be a string data type. Keys are limited to 255 chars in length. Available key names may be limited by the cloud???s property protection configuration and reserved namespaces like os_glance.17:54
sean-k-mooneythey dont actully specify the lenght of the value jsut the key in the api ref...17:55
sean-k-mooneyglance seams to not be partically self consitnet18:03
sean-k-mooneythe metadef api can only descirb properies whose toal name is 160 (80 for namespace and 80 for name) 18:04
sean-k-mooneywhere as the iamge tabel alows property names of 25518:04
sean-k-mooneyso there api for descirbing the validation of image properies is more restirctive then the api for seting/storing image properties18:05
sean-k-mooneythe schma for validating an image https://github.com/openstack/glance/blob/master/glance/api/v2/images.py#L169618:08
sean-k-mooneydoes not seam to have any validation for metadata/properties18:09
sean-k-mooneyso what i think im learning is nova shoudl not trust glance to have done any validation of the image properites becasue ti does none...18:12
opendevreviewAshley Rodriguez proposed openstack/devstack-plugin-ceph stable/2023.1: Remote Ceph with cephadm  https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/89797218:46

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!