2018-01-08 15:06:34 |
Mathieu Rohon |
description |
Using latest neutron [1] and python-neutronclient [2], we are now able to create VMs without IP addresses.
If I run :
$ openstack network create net1
$ openstack port create --network net1 port_net1
I get the IP_allocation field equal to "none" for the created port.
So the following command should result in a VM without IP Addresses :
$ openstack server create --flavor 1 --image 78ee2490-3b59-4c1f-bc29-cdb878ccfc26 --port port_net1
Instead I have the following error :
Port c1013516-8e00-4f99-817d-07edbb386142 requires a FixedIP in order to be used. (HTTP 400)
It seems that nova only accepts VMs with deferred ip_allocation [3][4], not "none".
Accepting "none" as a valid option for the ip_allocation attribute would implement [5], as [4] was expected to, regarding Matt Riedemann last comment on [5].
[1] https://review.openstack.org/#/c/361455/
[2] https://review.openstack.org/#/c/504817/
[3] http://git.openstack.org/cgit/openstack/nova/tree/nova/network/neutronv2/api.py#n1663
[4] https://review.openstack.org/#/c/299591/
[5] https://review.openstack.org/#/c/239276/ |
Using latest neutron [1] and python-neutronclient [2], we are now able to create VMs without IP addresses.
If I run :
$ openstack network create net1
$ openstack port create --network net1 --no-fixed-ip port_net1
I get the IP_allocation field equal to "none" in the neutron database for the created port.
So the following command should result in a VM without IP Addresses :
$ openstack server create --flavor 1 --image 78ee2490-3b59-4c1f-bc29-cdb878ccfc26 --port port_net1
Instead I have the following error :
Port c1013516-8e00-4f99-817d-07edbb386142 requires a FixedIP in order to be used. (HTTP 400)
It seems that nova only accepts VMs with deferred ip_allocation [3][4], not "none".
Accepting "none" as a valid option for the ip_allocation attribute would implement [5], as [4] was expected to, regarding Matt Riedemann last comment on [5].
[1] https://review.openstack.org/#/c/361455/
[2] https://review.openstack.org/#/c/504817/
[3] http://git.openstack.org/cgit/openstack/nova/tree/nova/network/neutronv2/api.py#n1663
[4] https://review.openstack.org/#/c/299591/
[5] https://review.openstack.org/#/c/239276/ |
|