Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There is a new option "--no-fixed-ip" introduced for neutron ports in the newest version of the openstack client:

https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=de23ab8d75fe89c164b3b084c53f01c25b9040ca

I am able to use it to create such port:

openstack port create --network 353a3da7-0341-4c0a-b70f-670ef9d42a09 --no-fixed-ip tomasp-port1

This creates the port just fine:

+-----------------------+--------------------------------------+
| Field                 | Value                                |
+-----------------------+--------------------------------------+
| admin_state_up        | UP                                   |
| allowed_address_pairs |                                      |
| binding_host_id       |                                      |
| binding_profile       |                                      |
| binding_vif_details   |                                      |
| binding_vif_type      | unbound                              |
| binding_vnic_type     | normal                               |
| created_at            | 2017-10-16T09:54:38Z                 |
| data_plane_status     | None                                 |
| description           |                                      |
| device_id             |                                      |
| device_owner          |                                      |
| dns_assignment        |                                      |
| dns_name              |                                      |
| extra_dhcp_opts       |                                      |
| fixed_ips             |                                      |
| id                    | 396a57b4-e127-4180-8226-fd1422a83365 |
| ip_address            | None                                 |
| mac_address           | fa:16:3e:14:06:d6                    |
| name                  | tomasp-port1                         |
| network_id            | 353a3da7-0341-4c0a-b70f-670ef9d42a09 |
| option_name           | None                                 |
| option_value          | None                                 |
| port_security_enabled | True                                 |
| project_id            | b1af2ddc89e04c67babf8483cb4f03ed     |
| qos_policy_id         | None                                 |
| revision_number       | 4                                    |
| security_group_ids    | e25d2b8b-6d29-4895-a1ca-5fca1a984a96 |
| status                | DOWN                                 |
| subnet_id             | None                                 |
| tags                  |                                      |
| trunk_details         | None                                 |
| updated_at            | 2017-10-16T09:54:38Z                 |
+-----------------------+--------------------------------------+

But I am not able to use it to create a VM:

openstack server create --image ol73 --flavor ol73 --port 396a57b4-e127-4180-8226-fd1422a83365 tomasp-delete-l2-port

Port 396a57b4-e127-4180-8226-fd1422a83365 requires a FixedIP in order to be used. (HTTP 400) (Request-ID: req-6da65570-00aa-44c4-8362-723312a2d686)

Any ideas how can I use such port?