<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 7, 2015 at 10:32 PM, Dmitry Tantsur <span dir="ltr"><<a href="mailto:dtantsur@redhat.com" target="_blank">dtantsur@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I'm seeking for advice on what to do with microversions in discoverd. Basically I have the following options:<br>
<br>
1. Do nothing. Get whatever behavior I can get from installed Ironic and Ironic client. Though unlikely, may get broken by future changes.<br>
<br>
2. Demand version = 1.6. Looks like it keeps compatibility with old clients and servers, not sure what downsides are here.<br>
<br>
What are we going to recommend now as upstream?<br></blockquote><div><br></div><div>I agree with Jim R's suggestion - it's really up to the consumer as to what they want to do.  Having said that...</div><div><br></div><div>I think that any consumer wants to use the latest version of the API that it can support.</div><div><br></div><div>And so since we're not planning on making any breaking API changes[1], I think any consumer wants to:</div><div><br></div><div>a) have a concept of the latest API version that it has been coded for</div><div>b) then, in negotiation with the server, choose a version that suffices:</div><div>b1) negotiated_version = min(your code's max version, max Ironic server version) and</div><div>b2) negotiated_version > your code's supported version</div><div>b3) negotiated_version > Ironic API's minimum version</div><div><br></div><div>I think that way you get the best of both worlds - stability, and latest functionality available.</div><div><br></div><div>Jim R's suggestion of using "latest" is fine (especially for internal tools that can have a lower uptime) so long as you can deal quickly with any breakage should it occur :)</div><div><br></div><div>[1] hopefully :)</div></div>-- <br><div class="gmail_signature">Michael Davies   <a href="mailto:michael@the-davies.net" target="_blank">michael@the-davies.net</a><br>Rackspace Australia</div>
</div></div>