Device_owner check causes binding inconsitency
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-cisco |
New
|
Undecided
|
Unassigned |
Bug Description
Problem:
---
If device_owner is not known to the cisco mech driver it stops the binding process (see def _is_supported_
In case of vnic_type == baremetal this behaviour leads to an inconsistency.
If the device_owner is not known it still fulfils the binding when a baremetal port_create request comes in.
This lead to the following situation:
- The baremetal port will be set to active (https:/
- But the switch isn't reconfigured at all (and no db entry will be written) due to the if-condition in:
https:/
Setup:
----
1x Compute node
1x Cisco Nexus switch
1x Netapp storage filer
Devstack:
enable_plugin networking-cisco
Using OpenStack Manila with port binding feature see [1, 2]
1.) Manila sends a port create with the following content:
binding:host_id: netapp_lab42
binding:vnic_type: baremetal
device_owner: manila:share
"local_
2.) Cisco mech driver accepts the binding request and fulfils the binding:
neutron port-show 06141d0e-
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | netapp_lab42 |
| binding:profile | {"local_
| binding:vif_details | {} |
| binding:vif_type | other |
| binding:vnic_type | baremetal |
| created_at | 2016-04-14T13:07:27 |
| description | |
| device_id | fe285ae8-
| device_owner | manila:share |
| dns_name | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "eb947a20-
| id | 06141d0e-
| mac_address | fa:16:3e:a3:c1:d4 |
| name | |
| network_id | 699a679b-
| port_security_
| security_groups | a0104b4f-
| status | ACTIVE |
| tenant_id | 23d0afaca4b441a
| updated_at | 2016-04-14T13:07:27 |
+------
Logs:
2016-04-14 15:26:19.798 DEBUG neutron.
2016-04-14 15:26:19.798 DEBUG neutron.
2016-04-14 15:26:19.799 DEBUG neutron.
2016-04-14 15:26:19.799 DEBUG networking_
2016-04-14 15:26:19.800 DEBUG networking_
2016-04-14 15:26:19.806 DEBUG neutron.
2016-04-14 15:26:19.830 DEBUG neutron.
2016-04-14 15:26:19.830 DEBUG neutron.
[1]: http://
[2]: https:/
tags: | added: nexus |
description: | updated |
Reference discussion here as well. eavesdrop. openstack. org/meetings/ networking_ ml2/2016/ networking_ ml2.2016- 05-04-16. 03.log. html
http://