Friday, 2025-09-05

opendevreviewchandan kumar proposed openstack/watcher-dashboard master: Add support for passing parameters while creating audit  https://review.opendev.org/c/openstack/watcher-dashboard/+/95753507:50
chandankumarsean-k-mooney: Hello, for this review https://review.opendev.org/c/openstack/watcher-dashboard/+/957232/10/watcher_dashboard/api/watcher.py Can you share one example on how to properly define and pass microversion? I was following this https://github.com/openstack/manila-ui/blob/master/manila_ui/api/manila.py#L3109:55
sean-k-mooneychandankumar: manila is also doing it incorrectly which is not surprising an must poeple do not use microversion correctly.10:23
sean-k-mooneyto interact with a service that uses micoverions you need fo have some infrastucture in place. like this https://github.com/openstack/nova/blob/master/nova/volume/cinder.py#L103-L18910:24
sean-k-mooneyto be able to get teh min and max verions supported by a rest api10:24
sean-k-mooneyyour client wrapper needs to have a default micoverion but it shoul take the microversion as a paramter to the client https://github.com/openstack/nova/blob/master/nova/volume/cinder.py#L222-L27710:25
sean-k-mooneyideally we will move to the sdk in the future which has slightly better ways to do this10:25
sean-k-mooneythen th function that uses the new api will set the micovertion when constructign the client https://github.com/openstack/nova/blob/master/nova/volume/cinder.py#L970-L97410:26
sean-k-mooneyso reimage_volume uses 3.68 10:27
sean-k-mooneywhere as attachment_delete use 3.44 https://github.com/openstack/nova/blob/master/nova/volume/cinder.py#L925-L94510:27
sean-k-mooneythat is the correct way to use micoverion every call to a clinet shoudl pass the verion the function expect. and ideally check if its supproted. if not they need to fall back. we remove the checks after the upgrade window has lapsts i.e. they are nolonger in stable/*10:28
chandankumarah ok, the same thing I am already doing in skip patch.10:29
chandankumarthank you!, will fix that10:29
chandankumarsean-k-mooney: one more thing, Please have a look at screenshot for parameters patch https://review.opendev.org/c/openstack/watcher-dashboard/+/957535/8/watcher_dashboard/content/audits/forms.py#144 thank you!10:31
sean-k-mooneychandankumar: what people get wrong wabout micoverion is they dont know what micro means, they assomin it means minor versoin. what it actully means is each api endpoin has its on version that it supprot and the micoverion only applies the the api behvior that was change in that version10:32
sean-k-mooneythat looks good over all. i talked to stephenfin about htis a little too. so the parma_spec you are using for th docs is actully a jsonschema  so we can impvoe those in the future to spcivify addtional validation taht cna be applie both on the server and on the ui in the future10:34
sean-k-mooneyfor exampel for parallel total we can specifiy min and max version in the schmea i.e. min=1 max=1010:35
sean-k-mooneywe do not need to do that now but we can in the future.10:35
sean-k-mooneylets see what others think fo the ux10:36
chandankumarperfect! 10:39
chandankumarLet me work on other crs!10:39
opendevreviewMerged openstack/watcher-specs master: Update extend compute model attributes spec  https://review.opendev.org/c/openstack/watcher-specs/+/95592113:52
opendevreviewDouglas Viroel proposed openstack/watcher master: Fix source_node value in host maintenance strategy migrate action  https://review.opendev.org/c/openstack/watcher/+/95988917:56
opendevreviewDouglas Viroel proposed openstack/watcher-tempest-plugin master: Add a Action Revert scenario test  https://review.opendev.org/c/openstack/watcher-tempest-plugin/+/95957017:57

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