Tempest Rhel7: updated cidr address in port is retrieved as a list

Bug #1514778 reported by Nagendra Prasath
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Won't Fix
Medium
Hampapur Ajay
R3.0.2.x
Won't Fix
Medium
Hampapur Ajay
R3.0.3.x
Won't Fix
Medium
Hampapur Ajay
R3.1
Won't Fix
Medium
Hampapur Ajay
R3.2
Won't Fix
Medium
Hampapur Ajay
Trunk
Invalid
Medium
Sahil Sabharwal

Bug Description

Build: Rhel7 2.20-65~juno

Tempest Case:
tempest.api.network.test_allowed_address_pair.AllowedAddressPairTestJSON.test_update_port_with_cidr_address_pair

According to this case, it updates the allowed address pair of a port with
[{"ip_address": "10.100.0.0/16", "mac_address": "02:ce:1b:d7:a6:e7"}]

but when retrieved after configuration is
"allowed_address_pairs": [{"ip_address": ["10.100.0.0/16"], "mac_address": "02:ce:1b:d7:a6:e7"}],

Please note that IP address are retrieved as a list while expected is just a string.

Posted Body:
        Body: {"port": {"allowed_address_pairs": [{"ip_address": "10.100.0.0/16", "mac_address": "02:ce:1b:d7:a6:e7"}]}}

Retrieved Body:
        Body: {"port": {"status": "DOWN", "name": "385871e5-48fd-49bf-8173-71c5c7d0bac3", "allowed_address_pairs": [{"ip_address": ["10.100.0.0/16"], "mac_address": "02:ce:1b:d7:a6:e7"}], "admin_state_up": true, "network_id": "82ab2f6a-84fb-4498-8e45-f9958a093147", "tenant_id": "13df8b8a797440fb95b93cc0053881ec", "binding:vif_details": {"port_filter": true}, "binding:vif_type": "vrouter", "device_owner": "", "mac_address": "02:38:58:71:e5:48", "fixed_ips": [{"subnet_id": "a49f894f-81ec-4911-82c8-bc55227871f6", "ip_address": "10.100.0.4"}], "id": "385871e5-48fd-49bf-8173-71c5c7d0bac3", "security_groups": ["f0a65f9c-5d65-4ad3-9262-048ab4f4a80a"], "device_id": ""}}

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

Following tempest cases failed because of the behavior

tempest.api.network.test_allowed_address_pair.AllowedAddressPairTestJSON.test_update_port_with_cidr_address_pair
tempest.api.network.test_allowed_address_pair.AllowedAddressPairIpV6TestJSON.test_update_port_with_cidr_address_pair

tags: added: rhosp-tempest
Changed in juniperopenstack:
importance: Undecided → Medium
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Bug update]

bug update...

Jeba Paulaiyan (jebap)
tags: added: tempest
tags: added: osp7-cert osp8-cert rhos-tempest
removed: rhosp-tempest
tags: added: rhosp-tempest
removed: rhos-tempest
Revision history for this message
Sahil Sabharwal (ssabharwal) wrote :

I am not seeing these tempest tests getting failed in my setup (contrail version: 4.0.0.0-3030).

Revision history for this message
Sahil Sabharwal (ssabharwal) wrote :

Port IP addresses are being retrieved as a string not list.

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.