Tempest Rhel7: Port creation ignores binding:host_id

Bug #1514646 reported by Nagendra Prasath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Won't Fix
High
Sahil Sabharwal
R3.0.2.x
Won't Fix
High
Sahil Sabharwal
R3.0.3.x
Won't Fix
High
Sahil Sabharwal
R3.1
Fix Committed
High
Sahil Sabharwal
R3.2
Fix Committed
High
Sahil Sabharwal
Trunk
Fix Committed
High
Sahil Sabharwal

Bug Description

Build: Rhel7 2.20-65~juno

Tempest Test: tempest.api.network.test_ports.PortsAdminExtendedAttrsTestJSON.test_create_port_binding_ext_attr

Neutron port creation with --binding:host_id=<host-name> seems silently ignoring the option.

Above test configures neutron port with binding:host_id=<host-name>. Configuration goes through via a http request. However when retrieving the port configuration, binding:host_id do not appear in the configs

Posted with:
Body: {"port": {"network_id": "9107eb62-03f0-4780-aa0f-bbc4117ff986", "binding:host_id": "b4s10.contrail.juniper.net"}}

Retrieved Port Info:
        Body: {"port": {"status": "DOWN", "name": "7af77db3-2852-45bb-8b2e-9b23307ced12", "admin_state_up": true, "network_id": "9107eb62-03f0-4780-aa0f-bbc4117ff986", "tenant_id": "13df8b8a797440fb95b93cc0053881ec", "binding:vif_details": {"port_filter": true}, "binding:vif_type": "vrouter", "device_owner": "", "mac_address": "02:7a:f7:7d:b3:28", "fixed_ips": [], "id": "7af77db3-2852-45bb-8b2e-9b23307ced12", "security_groups": ["f0a65f9c-5d65-4ad3-9262-048ab4f4a80a"], "device_id": ""}}

via CLI:
========

[root@b4s10 ~(keystone_admin)]# neutron port-create np-test-net --fixed-ip ip_address=10.1.1.99 --no-security-groups --binding:host_id=b4s10.cont
rail.juniper.net
Created a new port:
+---------------------+----------------------------------------------------------------------------------+
| Field | Value |
+---------------------+----------------------------------------------------------------------------------+
| admin_state_up | True |
| binding:vif_details | {"port_filter": true} |
| binding:vif_type | vrouter |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": "c5b342dd-92c3-4ba4-8ce8-707bce3579a4", "ip_address": "10.1.1.99"} |
| id | 17048577-fa3f-4b8c-a63d-3c1a9f41fcc1 |
| mac_address | 02:17:04:85:77:fa |
| name | 17048577-fa3f-4b8c-a63d-3c1a9f41fcc1 |
| network_id | d81221e8-c5c5-417d-823d-7368b651ee28 |
| security_groups | 2aba5ccc-4419-4dbd-ad66-a4c242d61da0 |
| status | DOWN |
| tenant_id | 13df8b8a797440fb95b93cc0053881ec |
+---------------------+----------------------------------------------------------------------------------+
[root@b4s10 ~(keystone_admin)]#

Revision history for this message
Nagendra Prasath (npchandran) wrote :

Following Tempest cases failed because of the behavior

tempest.api.network.test_ports.PortsAdminExtendedAttrsIpV6TestJSON.test_create_port_binding_ext_attr
tempest.api.network.test_ports.PortsAdminExtendedAttrsIpV6TestJSON.test_list_ports_binding_ext_attr
tempest.api.network.test_ports.PortsAdminExtendedAttrsIpV6TestJSON.test_show_port_binding_ext_attr
tempest.api.network.test_ports.PortsAdminExtendedAttrsIpV6TestJSON.test_update_port_binding_ext_attr

tempest.api.network.test_ports.PortsAdminExtendedAttrsTestJSON.test_create_port_binding_ext_attr
tempest.api.network.test_ports.PortsAdminExtendedAttrsTestJSON.test_list_ports_binding_ext_attr
tempest.api.network.test_ports.PortsAdminExtendedAttrsTestJSON.test_show_port_binding_ext_attr
tempest.api.network.test_ports.PortsAdminExtendedAttrsTestJSON.test_update_port_binding_ext_attr

tags: added: rhosp-tempest
Changed in juniperopenstack:
status: New → Confirmed
assignee: Ashish Ranjan (aranjan-n) → Hampapur Ajay (hajay)
importance: Undecided → High
milestone: none → r3.0-fcs
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Bug update]

bug update...

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/22747
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/22748
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/22747
Submitter: <email address hidden> (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/22748
Committed: http://github.org/Juniper/contrail-controller/commit/fc4d42e416684de42d9e6ce3ede154de85c7259f
Submitter: Zuul
Branch: R3.1

commit fc4d42e416684de42d9e6ce3ede154de85c7259f
Author: Sahil Sabharwal <email address hidden>
Date: Mon Aug 1 17:57:39 2016 -0700

Added default 'binding_host_id' key in port_q_dict needed by neutron.

Change-Id: I4077b62e2109145e91b994533717f720c01f2c13
Closes-Bug: 1514646
(cherry picked from commit 08809639bf3a40ec9811fec381abef368ffee574)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/22747
Committed: http://github.org/Juniper/contrail-controller/commit/f7ad8c3731822b73436d3068f692a10eff04c6f7
Submitter: Zuul
Branch: master

commit f7ad8c3731822b73436d3068f692a10eff04c6f7
Author: Sahil Sabharwal <email address hidden>
Date: Mon Aug 1 17:57:39 2016 -0700

Added default 'binding_host_id' key in port_q_dict needed by neutron.

Change-Id: I4077b62e2109145e91b994533717f720c01f2c13
Closes-Bug: 1514646

Jeba Paulaiyan (jebap)
tags: added: tempest
tags: added: osp7-cert osp8-cert rhos-tempest
removed: rhosp-tempest
information type: Proprietary → Public
Jeba Paulaiyan (jebap)
tags: added: config
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.