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" 200 548 0.029995 INFO:api-0:Sending request(xid=11256): Delete(path=u'/fq-name-to-uuid/instance_ip:c794b1b0-8cf5-4984-a42c-0f39de403f09', version=-1) INFO:api-0:Received error(xid=11256) NoNodeError((), {}) 127.0.0.1 - - [2014-08-24 11:43:04] "POST /instance-ips HTTP/1.1" 500 203 0.043324 10.204.217.7 - - [2014-08-24 11:43:04] "POST /fqname-to-id HTTP/1.1" 404 256 0.005523 nt_imid': u'contrail:virtual-network:default-domain:admin:test2', u'type': u'routing-instance', u'uuid': u'24ade7a6-6cb1-4b03-a0aa-a460db25d5e9'}
Notification Message: {u'oper': u'UPDATE', u'type': u'project', u'uuid': u'48f63a9e-7dbc-4ca1-ab01-1fb4f344c362'}
Notification Message: {u'imid': u'contrail:virtual-machine-interface:default-domain:admin:47f56a93-5f55-4f66-88a2-c306c71ce78a', u'obj_dict': {u'display_name': u'47f56a93-5f55-4f66-88a2-c306c71ce78a', u'fq_name': [u'default-domain', u'admin', u'47f56a93-5f55-4f66-88a2-c306c71ce78a'], u'id_perms': {u'created': u'2014-08-24T18:43:04.030528', u'description': None, u'enable': True, u'last_modified': u'2014-08-24T18:43:04.030528', u'permissions': {u'group': u'cloud-admin-group', u'group_access': 7, u'other_access': 7, u'owner': u'cloud-admin', u'owner_access': 7}, u'uuid': {u'uuid_lslong': 9845646169263105930L, u'uuid_mslong': 5185167727179157350}}, u'parent_type': u'project', u'security_group_refs': [{u'to': [u'default-domain', u'admin', u'default']}], u'uuid': u'47f56a93-5f55-4f66-88a2-c306c71ce78a', u'virtual_machine_interface_dhcp_option_list': None, u'virtual_machine_interface_mac_addresses': {u'mac_address': [u'02:47:f5:6a:93:5f']}, u'virtual_network_refs': [{u'to': [u'default-domain', u'admin', u'test2'], u'uuid': u'26f29779-64fc-449a-b82f-a8d5343296a0'}]}, u'oper': u'CREATE', u'parent_imid': u'contrail:project:default-domain:admin', u'type': u'virtual-machine-interface', u'uuid': u'47f56a93-5f55-4f66-88a2-c306c71ce78a'}
<pre>Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_interface.py", line 375, in plugin_create_port net_info = cfgdb.port_create(port['resource']) File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 3415, in port_create {'fixed_ips':[{'ip_address': None}]}) File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 3394, in _port_create_instance_ip exceptions.IpAddressGenerationFailure(net_id=net_obj.uuid)) File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 462, in _raise_contrail_exception bottle.abort(code, json.dumps(exc_info)) File "/usr/lib/python2.7/dist-packages/bottle.py", line 2041, in abort raise HTTPError(code, text) HTTPError </pre> 10.204.217.69 - - [2014-08-24 11:43:04] "POST /neutron/port HTTP/1.1" 409 216 0.101063
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" 200 548 0.029995 path=u' /fq-name- to-uuid/ instance_ ip:c794b1b0- 8cf5-4984- a42c-0f39de403f 09', version=-1) virtual- network: default- domain: admin:test2' , instance' , 6cb1-4b03- a0aa-a460db25d5 e9'}
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-
INFO:api-0:Sending request(xid=11256): Delete(
INFO:api-0:Received error(xid=11256) NoNodeError((), {})
127.0.0.1 - - [2014-08-24 11:43:04] "POST /instance-ips HTTP/1.1" 500 203 0.043324
10.204.217.7 - - [2014-08-24 11:43:04] "POST /fqname-to-id HTTP/1.1" 404 256 0.005523
nt_imid': u'contrail:
u'type': u'routing-
u'uuid': u'24ade7a6-
Notification Message: {u'oper': u'UPDATE', 7dbc-4ca1- ab01-1fb4f344c3 62'}
u'type': u'project',
u'uuid': u'48f63a9e-
Notification Message: {u'imid': u'contrail: virtual- machine- interface: default- domain: admin:47f56a93- 5f55-4f66- 88a2-c306c71ce7 8a', 5f55-4f66- 88a2-c306c71ce7 8a',
u'fq_name' : [u'default-domain',
u'admin' ,
u'47f56a93- 5f55-4f66- 88a2-c306c71ce7 8a'],
u'id_perms' : {u'created': u'2014- 08-24T18: 43:04.030528' ,
u'description' : None,
u'enable' : True,
u'last_ modified' : u'2014- 08-24T18: 43:04.030528' ,
u'permissions' : {u'group': u'cloud- admin-group' ,
u'group_ access' : 7,
u'other_ access' : 7,
u'owner' : u'cloud-admin',
u'owner_ access' : 7},
u'uuid' : {u'uuid_lslong': 984564616926310 5930L,
u'uuid_ mslong' : 518516772717915 7350}},
u'parent_ type': u'project',
u'security_ group_refs' : [{u'to': [u'default-domain',
u'admin' ,
u'default' ]}],
u'uuid' : u'47f56a93- 5f55-4f66- 88a2-c306c71ce7 8a',
u'virtual_ machine_ interface_ dhcp_option_ list': None,
u'virtual_ machine_ interface_ mac_addresses' : {u'mac_address': [u'02:47: f5:6a:93: 5f']},
u'virtual_ network_ refs': [{u'to': [u'default-domain',
u'admin' ,
u'test2' ],
u'uuid' : u'26f29779- 64fc-449a- b82f-a8d5343296 a0'}]}, project: default- domain: admin', machine- interface' , 5f55-4f66- 88a2-c306c71ce7 8a'}
u'obj_dict': {u'display_name': u'47f56a93-
u'oper': u'CREATE',
u'parent_imid': u'contrail:
u'type': u'virtual-
u'uuid': u'47f56a93-
<pre>Traceback (most recent call last): python2. 7/dist- packages/ vnc_openstack/ neutron_ plugin_ interface. py", line 375, in plugin_create_port create( port['resource' ]) python2. 7/dist- packages/ vnc_openstack/ neutron_ plugin_ db.py", line 3415, in port_create ips':[{ 'ip_address' : None}]}) python2. 7/dist- packages/ vnc_openstack/ neutron_ plugin_ db.py", line 3394, in _port_create_ instance_ ip IpAddressGenera tionFailure( net_id= net_obj. uuid)) python2. 7/dist- packages/ vnc_openstack/ neutron_ plugin_ db.py", line 462, in _raise_ contrail_ exception abort(code, json.dumps( exc_info) ) python2. 7/dist- packages/ bottle. py", line 2041, in abort
File "/usr/lib/
net_info = cfgdb.port_
File "/usr/lib/
{'fixed_
File "/usr/lib/
exceptions.
File "/usr/lib/
bottle.
File "/usr/lib/
raise HTTPError(code, text)
HTTPError
</pre>
10.204.217.69 - - [2014-08-24 11:43:04] "POST /neutron/port HTTP/1.1" 409 216 0.101063