Tempest Rhel7: subnet configures with 0.0.0.0 when sending gateway None

Bug #1514689 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
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
Fix Committed
Medium
Sahil Sabharwal
R4.0
Fix Committed
Medium
Sahil Sabharwal
Trunk
Fix Committed
Medium
Sahil Sabharwal

Bug Description

Build: Rhel7 2.20-65~juno

Tempest Case: tempest.api.network.test_networks.NetworksIpV6TestJSON.test_create_list_subnet_with_no_gw64_one_network

As a part of this case, when subnet is created with gateway=None, it gets configured with gateway == 0.0.0.0 which is unacceptable.

Posted Body:
        Body: {"subnet": {"ip_version": 4, "network_id": "cfc8734b-9854-4545-8dea-a52ac2510897", "cidr": "10.100.0.0/28", "gateway_ip": null}}

Received Body:
 Body: {"subnet": {"name": "", "enable_dhcp": true, "network_id": "cfc8734b-9854-4545-8dea-a52ac2510897", "tenant_id": "13df8b8a797440fb95b93cc0053881ec", "dns_nameservers": [], "ipv6_ra_mode": null, "allocation_pools": [{"start": "10.100.0.1", "end": "10.100.0.14"}], "gateway_ip": "0.0.0.0", "ipv6_address_mode": null, "ip_version": 4, "host_routes": [], "cidr": "10.100.0.0/28", "id": "37efd20d-3db4-4066-9ad6-7b299d1f3e90"}}
}}}

Via CLI:

[root@b4s10 ~(keystone_admin)]# neutron subnet-create np-test-net --name np-test-subnet --no-gateway 10.5.5.0/24
Created a new subnet:
+-------------------+--------------------------------------------+
| Field | Value |
+-------------------+--------------------------------------------+
| allocation_pools | {"start": "10.5.5.1", "end": "10.5.5.254"} |
| cidr | 10.5.5.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 0.0.0.0 |
| host_routes | |
| id | e5668218-8388-4542-83d0-ad156082ccf6 |
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | np-test-subnet |
| network_id | d81221e8-c5c5-417d-823d-7368b651ee28 |
| tenant_id | 13df8b8a797440fb95b93cc0053881ec |
+-------------------+--------------------------------------------+
[root@b4s10 ~(keystone_admin)]#

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

Following testcase because of this behavior

tempest.api.network.test_networks.NetworksIpV6TestJSON.test_create_list_subnet_with_no_gw64_one_network

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

bug update...

tags: added: tempest
tags: added: osp7-cert osp8-cert rhos-tempest
removed: rhosp-tempest
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

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

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

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

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

Review in progress for https://review.opencontrail.org/33328
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/33190
Committed: http://github.com/Juniper/contrail-controller/commit/62af750ba31eed750a3b330e9f1414090d13fa90
Submitter: Zuul (<email address hidden>)
Branch: master

commit 62af750ba31eed750a3b330e9f1414090d13fa90
Author: Sahil <email address hidden>
Date: Mon Jun 26 15:19:00 2017 -0700

Fix: Added timestamp for neutron core objects

Change-Id: Ic510d6a84dfc90bd441ab387c4e06fc92ce3bcc1
Closes-Bug: 1686545
Closes-Bug: 1514689

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

Reviewed: https://review.opencontrail.org/33327
Committed: http://github.com/Juniper/contrail-controller/commit/caa2a9bb097c614792e0dc567f1cd4532c6ddb2c
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit caa2a9bb097c614792e0dc567f1cd4532c6ddb2c
Author: Sahil <email address hidden>
Date: Mon Jun 26 15:19:00 2017 -0700

Fix: Added timestamp for neutron core objects

Change-Id: Ic510d6a84dfc90bd441ab387c4e06fc92ce3bcc1
Closes-Bug: 1686545
Closes-Bug: 1514689

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

Reviewed: https://review.opencontrail.org/33328
Committed: http://github.com/Juniper/contrail-controller/commit/e744e66d535ea6dec92b1f59d6126087301d6419
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit e744e66d535ea6dec92b1f59d6126087301d6419
Author: Sahil <email address hidden>
Date: Mon Jun 26 15:19:00 2017 -0700

Fix: Added timestamp for neutron core objects

Change-Id: Ic510d6a84dfc90bd441ab387c4e06fc92ce3bcc1
Closes-Bug: 1686545
Closes-Bug: 1514689

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.