User should be able to create a port on a VN without subnets
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.
root@nodec22:
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | test1 |
| contrail:
| id | 6aa39e3a-
| name | test1 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 48f63a9e7dbc4ca
+------
root@nodec22:
409-{u'
root@nodec22:
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 ------- ------- -----+- ------- ------- ------- ------- ------- --+ ------- ------- -----+- ------- ------- ------- ------- ------- --+ instance_ count | 0 | 64fc-449a- b82f-a8d5343296 a0 | 1ab011fb4f344c3 62 | ------- ------- -----+- ------- ------- ------- ------- ------- --+ ~/github/ mine4/contrail- test# neutron net-lsit |grep test2 ~/github/ mine4/contrail- test# neutron net-list |grep test2 64fc-449a- b82f-a8d5343296 a0 | test2 | | ~/github/ mine4/contrail- test# ~/github/ mine4/contrail- test# neutron port-create test2 NeutronError' : {u'message': u'No more IP addresses available on network 26f29779- 64fc-449a- b82f-a8d5343296 a0.', u'type': u'ContrailConfl ictError' , u'detail': u''}} ~/github/ mine4/contrail- test# neutron port-list --network- id=26f29779- 64fc-449a- b82f-a8d5343296 a0 ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------- ------- +------ -----+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------- ------- +------ -----+ 5f55-4f66- 88a2-c306c71ce7 8a | 47f56a93- 5f55-4f66- 88a2-c306c71ce7 8a | 02:47:f5:6a:93:5f | | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -+----- ------- ------- +------ -----+ ~/github/ mine4/contrail- test#
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | test2 |
| contrail:
| id | 26f29779-
| name | test2 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 48f63a9e7dbc4ca
+------
root@nodec22:
Unknown command [u'net-lsit']
root@nodec22:
| 26f29779-
root@nodec22:
root@nodec22:
409-{u'
root@nodec22:
+------
| id | name | mac_address | fixed_ips |
+------
| 47f56a93-
+------
root@nodec22:
----------
contrail-api-0.log :
10.204.217.69 - - [2014-08-24 11:43:03] "POST /neutron/network HTTP/1.1" 200 421 0.020339 network/ 26f29779- 64fc-449a- b82f-a8d5343296 a0?exclude_ back_refs= True&exclude_ children= True HTTP/1.1" 200 1094 0.003829 48f63a9e- 7dbc-4ca1- ab01-1fb4f344c3 62?exclude_ back_refs= True&exclude_ children= True HTTP/1.1" 200 1340 0.005704 machine- interfaces HTTP/1.1...
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-
127.0.0.1 - - [2014-08-24 11:43:04] "GET /project/
127.0.0.1 - - [2014-08-24 11:43:04] "POST /virtual-