Issue booting instance with normal port and macvtap agent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Kevin Benton |
Bug Description
OpenStack Release: Newton
Operating System: Ubuntu 16.04 LTS 4.4.0-45-generic
OpenStack Distro: OpenStack-Ansible 14.0.2
While working to test/implement macvtap functionality, I found it was not possible to boot an instance when using the macvtap mech driver and macvtap agent. My goal is/was to boot an instance with a 'normal' (non-PCI) port, and have a macvtap interface created on the compute node. What I found was that that booting the instance resulted in an ERROR state, with errors reported in neutron-
[1] Neutron Server: http://
[2] Nova Compute: http://
The Nova boot syntax can be seen here:
nova boot --image 'Cirros Test Image' --flavor 'm1.test' --nic port-id=
An availability zone consisting of a single node was specified.
The interesting thing was observed (multiple times) in neutron-server.log during the boot process:
2017-01-23 15:25:57.464 17265 ERROR neutron.
2017-01-23 15:25:57.464 17265 ERROR neutron.
2017-01-23 15:25:57.464 17265 ERROR neutron.
2017-01-23 15:25:57.464 17265 ERROR neutron.
2017-01-23 15:25:57.464 17265 ERROR neutron.
2017-01-23 15:25:57.464 17265 ERROR neutron.
2017-01-23 15:25:57.464 17265 ERROR neutron.
2017-01-23 15:25:57.464 17265 ERROR neutron.
2017-01-23 15:25:57.464 17265 ERROR neutron.
2017-01-23 15:25:57.464 17265 ERROR neutron.
2017-01-23 15:25:57.464 17265 ERROR neutron.
2017-01-23 15:25:57.464 17265 ERROR neutron.
The _is_live_migration function was implemented in [3]:
context.original is set to None, which is resulting in the Traceback observed here. I have logged the object data at the time it hits the function in [4]:
[4] Object: http://
To work around this issue for the sake of booting the instance, I set 'port_profile' to None in mech_macvtap.py and restarted Neutron server. I was then able to boot the instance, and the agent created the VLAN and macvtap interfaces accordingly:
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 0022df55-
| 69eda7de-
113: em50.62@em50: <BROADCAST,
link/ether 5c:b9:01:88:fd:a5 brd ff:ff:ff:ff:ff:ff
inet6 fe80::5eb9:
valid_lft forever preferred_lft forever
115: <email address hidden>: <BROADCAST,
link/ether fa:16:3e:67:da:b8 brd ff:ff:ff:ff:ff:ff
inet6 fe80::f816:
valid_lft forever preferred_lft forever
root@817769-
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on macvtap0, link-type EN10MB (Ethernet), capture size 262144 bytes
15:30:52.524485 IP6 :: > ff02::1:ff67:dab8: ICMP6, neighbor solicitation, who has fe80::f816:
15:30:52.994199 IP 0.0.0.0.bootpc > 255.255.
15:30:52.998185 IP6 :: > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
15:30:53.390218 IP6 :: > ff02::1:ff67:dab8: ICMP6, neighbor solicitation, who has fe80::f816:
15:30:53.524385 IP6 fe80::f816:
15:30:53.524420 IP6 fe80::f816:
15:30:54.008276 IP6 fe80::f816:
15:30:54.390184 IP6 fe80::f816:
15:30:57.528300 IP6 fe80::f816:
15:30:58.394100 IP6 fe80::f816:
15:31:01.536286 IP6 fe80::f816:
15:31:02.042017 IP6 fe80::f816:
15:31:02.402014 IP6 fe80::f816:
Port details can be seen here:
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | 817769-
| binding:profile | {} |
| binding:vif_details | {"port_filter": false, "macvtap_mode": "bridge", "vlan": 62, "physical_
| binding:vif_type | macvtap |
| binding:vnic_type | normal |
| created_at | 2017-01-
| description | |
| device_id | 69eda7de-
| device_owner | compute:ZONE-B |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "898171fa-
| id | 5f08dcec-
| mac_address | fa:16:3e:67:da:b8 |
| name | TEST |
| network_id | 508e4e86-
| port_security_
| project_id | a2bc030466504de
| revision_number | 23 |
| security_groups | |
| status | ACTIVE |
| tenant_id | a2bc030466504de
| updated_at | 2017-01-
+------
Please let me know what additional information you need, including further troubleshooting or debug output.
James
Changed in neutron: | |
status: | New → Confirmed |
importance: | Undecided → High |
+1