<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 2, 2020 at 5:37 PM Sean Mooney <<a href="mailto:smooney@redhat.com">smooney@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 2020-03-02 at 16:49 +0100, Dmitry Tantsur wrote:<br>
> Hi,<br>
> <br>
> On Mon, Mar 2, 2020 at 4:29 PM Luigi Toscano <<a href="mailto:ltoscano@redhat.com" target="_blank">ltoscano@redhat.com</a>> wrote:<br>
> <br>
> > On Monday, 2 March 2020 10:54:03 CET Mark Goddard wrote:<br>
> > > On Mon, 2 Mar 2020 at 06:28, Abhishek Kekane <<a href="mailto:akekane@redhat.com" target="_blank">akekane@redhat.com</a>> wrote:<br>
> > > > Hi Gaëtan,<br>
> > > > <br>
> > > > Glance team doesn't recommend to use OSC anymore.<br>
> > > > I will recommend you to check the same behaviour using<br>
> > > > python-glanceclient.<br>
> > > <br>
> > > That's not cool - everyone has switched to OSC. It's also the first<br>
> > > time I've heard of it.<br>
> > > <br>
> > <br>
> > Do we have proper microversion support then? This is a blocker for cinder.<br>
> > <br>
> <br>
> The ironic team has been successfully hacking around the absence of a<br>
> native microversion support for a while. We use ironicclient instead of<br>
> openstacksdk, which makes things harder. If you use openstacksdk, it's<br>
> easier to teach it microversions. In any case, I can provide some guidance<br>
> if you'd like to.<br>
> <br>
> Dmitry<br>
that is also problematic.<br>
by harcking around it it gives the ironic command a different behavior to the rest of osc.<br>
osc does support microverions it just does not support automatic versin negociation which is<br>
what you are hacking in.<br></blockquote><div><br></div><div>Right, and it's a hard requirement for the CLI to be remotely usable.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
i do agree that it would be nice to have support for version negociation where by you could do somehting like<br>
--os-compute-api-version=auto to opt in to it but automatic microverions detetion does make it harder to do help<br>
text generation unless you make "openstack --cloud=my-cloud --os-compute-api-version=auto help server create" call out<br>
to keystone get the nova endpoint and then lookup its max microversion when you render the help text.<br></blockquote><div><br></div><div>The "auto" must be a default. This is what the users expect: the CLI just working. Defaulting to anything else does them a huge disservice (been there, done that).<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
with that said if adding --os-image-api-version=auto was enough to get the glance team to fully adopt osc<br>
then i think that would be better then partioning the community between osc and legacy client.<br>
osc should behave consistently for all projects however so adding negocaiton for ironic and not for other services<br>
is not a good thing imo but i guess you were able to do that as ironic is integrated as a plugin correct?<br></blockquote><div><br></div><div>Yep. We could not wait for OSC to implement it because the CLI is borderline unusable without this negotiation in place. I don't recall what prevented us from updating OSC, but I think there was a reason, probably not entirely technical.<br></div><div><br></div><div>Dmitry<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
> <br>
> <br>
> > <br>
> > More generally I observed a disconection between the needs of a few teams<br>
> > (Cinder and Glance for sure) and OSC, with a real split on the community<br>
> > and<br>
> > no apparent interest in trying to bridge the gap, which is very sad.<br>
> > <br>
> > --<br>
> > Luigi<br>
> > <br>
> > <br>
> > <br>
> > <br>
<br>
</blockquote></div></div>