Ask Your Question
0

l2 neutron port

asked 2017-10-10 05:09:07 -0500

TomasP gravatar image

Hi OpenStack Gurus!

Do you know if it is possible to create a VM with a network interface but without an IP address in OpenStack Ocata?

That means OpenStack will not control what IP is assigned in the VM (disabled port_security) and it will also not automatically assign any IP to it. GUI/CLI/API will not show any IP on the interface.

Something like an l2 network port.

According to this blueprint "Allow Neutron Port Without IP Address" it has already been implemented but I am not able to create such VM/port. Do you have any experience with this?

My goal is to have an unmanaged provider (external) network in OpenStack. e.g. external dhcp, no IP assignment by OpenStack.

Thx!

TomasP

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-10-16 05:16:47 -0500

TomasP gravatar image

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 (https://git.openstack.org/cgit/openst...)

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?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-10-09 09:18:25 -0500

Seen: 86 times

Last updated: Oct 16