User should be able to create a port on a VN without subnets

Bug #1360876 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Fix Committed
High
Sachin Bansal
Trunk
Fix Committed
High
Sachin Bansal

Bug Description

Build 1.10 18

Few of the tempest tests fail because a port create fails on a VN without any subnets.

On a stock openstack with openvswitch, the port does get created.

http://anamika.englab.juniper.net:8080/job/ubuntu-12-04_havana_Single_node_Tempest/182/testReport/tempest.api.network.test_networks/BulkNetworkOpsTestJSON/test_bulk_create_delete_port_gate_smoke_/

root@nodec22:~/github/mine4/contrail-test# neutron net-create test1
Created a new network:
+-------------------------+--------------------------------------+
| Field | Value |
+-------------------------+--------------------------------------+
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | test1 |
| contrail:instance_count | 0 |
| id | 6aa39e3a-741a-4c01-bbc2-0016568b4ce1 |
| name | test1 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 48f63a9e7dbc4ca1ab011fb4f344c362 |
+-------------------------+--------------------------------------+
root@nodec22:~/github/mine4/contrail-test# neutron port-create test1
409-{u'NeutronError': {u'message': u'No more IP addresses available on network 6aa39e3a-741a-4c01-bbc2-0016568b4ce1.', u'type': u'ContrailConflictError', u'detail': u''}}
root@nodec22:~/github/mine4/contrail-test#

Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :
Download full text (6.6 KiB)

Infact, a port does get created even though the error says otherwise.

The tempest tests fail because of the 409 error.

root@nodec22:~/github/mine4/contrail-test# neutron net-create test2
Created a new network:
+-------------------------+--------------------------------------+
| Field | Value |
+-------------------------+--------------------------------------+
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | test2 |
| contrail:instance_count | 0 |
| id | 26f29779-64fc-449a-b82f-a8d5343296a0 |
| name | test2 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 48f63a9e7dbc4ca1ab011fb4f344c362 |
+-------------------------+--------------------------------------+
root@nodec22:~/github/mine4/contrail-test# neutron net-lsit |grep test2
Unknown command [u'net-lsit']
root@nodec22:~/github/mine4/contrail-test# neutron net-list |grep test2
| 26f29779-64fc-449a-b82f-a8d5343296a0 | test2 | |
root@nodec22:~/github/mine4/contrail-test#
root@nodec22:~/github/mine4/contrail-test# neutron port-create test2
409-{u'NeutronError': {u'message': u'No more IP addresses available on network 26f29779-64fc-449a-b82f-a8d5343296a0.', u'type': u'ContrailConflictError', u'detail': u''}}
root@nodec22:~/github/mine4/contrail-test# neutron port-list --network-id=26f29779-64fc-449a-b82f-a8d5343296a0
+--------------------------------------+--------------------------------------+-------------------+-----------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+--------------------------------------+-------------------+-----------+
| 47f56a93-5f55-4f66-88a2-c306c71ce78a | 47f56a93-5f55-4f66-88a2-c306c71ce78a | 02:47:f5:6a:93:5f | |
+--------------------------------------+--------------------------------------+-------------------+-----------+
root@nodec22:~/github/mine4/contrail-test#

----------
contrail-api-0.log :

10.204.217.69 - - [2014-08-24 11:43:03] "POST /neutron/network HTTP/1.1" 200 421 0.020339
10.204.217.69 - - [2014-08-24 11:43:03] "POST /neutron/port HTTP/1.1" 200 120 0.000609
127.0.0.1 - - [2014-08-24 11:43:03] "GET /virtual-network/26f29779-64fc-449a-b82f-a8d5343296a0?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1094 0.003829
127.0.0.1 - - [2014-08-24 11:43:04] "GET /project/48f63a9e-7dbc-4ca1-ab01-1fb4f344c362?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1340 0.005704
127.0.0.1 - - [2014-08-24 11:43:04] "POST /virtual-machine-interfaces HTTP/1.1...

Read more...

Revision history for this message
Sachin Bansal (sbansal) wrote :
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.