<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 21, 2015 at 5:38 AM Fedor Zhadaev <<a href="mailto:fzhadaev@mirantis.com">fzhadaev@mirantis.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hi all,</div><div><br></div><div>The next issue was found during implementation <a href="https://blueprints.launchpad.net/fuel/+spec/node-naming" target="_blank">https://blueprints.launchpad.net/fuel/+spec/node-naming</a> :</div><div><br></div><div>  User may change node hostname to any another, including default-like 'node-{№}', where № may be bigger than maximum nodeID existing at that moment.</div><div>  Later when node with ID == № will be created it's default name 'node-{ID}' will break hostnames uniqueness. </div><div><br></div><div>To avoid this now it was decided to generate in such situation another default hostname.</div><div><br></div><div>The current solution is to generate hostname '<b>node-{UUID}</b>'. It works, but may look terribly. </div><div><br></div><div>There are a few another possible solutions:</div><div><ul><li>Use '<b>node-{ID}-{#}</b>' format, where <b>{#} </b>we'll chose in loop till the first unique.<br></li><li>Use some unique value, shorter than UUID (for example - number of microseconds from current timestamp)<br></li></ul></div><div></div></div></div></div></div></div></blockquote><div>I think the only solution here is to a) ensure that every hostname is unique or refuse to update the value b)In cases that the user wants to use our format, the only allowed format is node-{ID} where ID must be equal to this nodes ID. we don't need to come up with some scheme to rescue the format. We do however need some value/method that will make it reset back to the default.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Please share you opinion - what is better?<br><br>Also you can propose your own solutions.</div><span><font color="#888888"><div><br></div></font></span></div></div></div></div>-- <br><div><div dir="ltr"><div>Kind Regards,</div><div>Fedor Zhadaev</div><div>Junior Software Engineer, Mirantis Inc.</div><div>Skype: zhadaevfm</div><div>E-mail: <a href="mailto:fzhadaev@mirantis.com" target="_blank">fzhadaev@mirantis.com</a></div></div></div>
</div>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div></div><div dir="ltr">-- <br></div><div dir="ltr">--<div>Andrew Woodward</div><div>Mirantis</div><div>Fuel Community Ambassador</div><div>Ceph Community </div></div>