<div dir="ltr"><div><div>Hi stackers!<br><br></div>A year ago, Nova team decided to deprecate the addFixedIP, removeFixedIP, addFloatingIP, removeFloatingIP server action APIs and it was done[1]. <br><br>It looks like not all the consumers paid attention to this change so after novaclient 10.0.0 release (which includes removal of these interfaces[2]) got in u-c file [3] I found broken code in my repo :(<br><br></div><div>I tried to find an alternative way to associate a floating ip with an instance and I faced several new issues:<br><br></div><div>- openstackclient<br></div><div><br>* command `openstack server add floating ip` calls `add_floating_ip` method of novaclient's server object[4]. This method is missed in the latest novaclient (see [2]). <br> It means that this command is broken now.<br></div><div><br>- neutronclient<br><br></div><div>* CLI is deprecated<br></div><div>* the python binding accepts floating ip id (need to list all floating IPs to find the id) and port id to attach floating to (where should I take port id?!).<br><br></div><div><br></div><div>So here we have 2 global issues:<br></div><div>- openstackclient has a broken command (or I missed something?) <br></div><div>- there is no easy way to associate a floating ip with a vm using CLI or via python.<br></div><div><div><div><div><br>[1] <a href="https://github.com/openstack/python-novaclient/blob/master/releasenotes/notes/microversion-v2_44-d60c8834e436ad3d.yaml">https://github.com/openstack/python-novaclient/blob/master/releasenotes/notes/microversion-v2_44-d60c8834e436ad3d.yaml</a><br>[2] <a href="https://github.com/openstack/python-novaclient/blob/master/releasenotes/notes/remove-virt-interfaces-add-rm-fixed-floating-398c905d9c91cca8.yaml">https://github.com/openstack/python-novaclient/blob/master/releasenotes/notes/remove-virt-interfaces-add-rm-fixed-floating-398c905d9c91cca8.yaml</a><br>[3] <a href="https://github.com/openstack/requirements/commit/c126685c2007c818e65c53cc9c32885fae16fd34">https://github.com/openstack/requirements/commit/c126685c2007c818e65c53cc9c32885fae16fd34</a><br>[4] <a href="https://github.com/openstack/python-openstackclient/blob/b10941ddf6f7f6894b7d87f25c173f227b111e4e/openstackclient/compute/v2/server.py#L266-L267">https://github.com/openstack/python-openstackclient/blob/b10941ddf6f7f6894b7d87f25c173f227b111e4e/openstackclient/compute/v2/server.py#L266-L267</a><br clear="all"><div><br>-- <br><div class="gmail_signature"><div dir="ltr">Best regards,<br>Andrey Kurilin.<br></div></div>
</div></div></div></div></div></div>