We got 400 error from nailgun trying to update added nodes interfaces:
2015-04-06 05:25:35.442 DEBUG [7fb7b0187740] (logger) Request PUT /api/nodes/interfaces from 10.108.0.1:34124 [{"interfaces": [{"name": "eth0", "driver": null, "state": "up", "mac": "64:e9:b6:58:65:88", "m
ax_speed": null, "current_speed": null, "assigned_networks": [{"id": 1, "name": "fuelweb_admin"}], "type": "ether", "id": 10, "bus_info": null}, {"name": "eth1", "driver": null, "state": "up", "mac": "64:e
7:0e:c2:f8:72", "max_speed": null, "current_speed": null, "assigned_networks": [{"id": 2, "name": "public"}], "type": "ether", "id": 9, "bus_info": null}, {"name": "eth2", "driver": null, "state": "up", "m
ac": "64:1a:e2:a4:8c:b8", "max_speed": null, "current_speed": null, "assigned_networks": [{"id": 3, "name": "management"}], "type": "ether", "id": 8, "bus_info": null}, {"name": "eth3", "driver": null, "st
ate": "up", "mac": "64:b7:64:b4:fa:6e", "max_speed": null, "current_speed": null, "assigned_networks": [{"id": 5, "name": "fixed"}], "type": "ether", "id": 7, "bus_info": null}, {"name": "eth4", "driver":
null, "state": "up", "mac": "64:b5:3e:e3:11:45", "max_speed": null, "current_speed": null, "assigned_networks": [{"id": 4, "name": "storage"}], "type": "ether", "id": 6, "bus_info": null}], "id": 2}]
2015-04-06 05:25:35.445 DEBUG [7fb7b0187740] (logger) Response code '400 Bad Request' for PUT /api/nodes/interfaces from 10.108.0.1:34124
Error Message
HTTP Error 400: Bad Request
Stacktrace
Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/helpers/decorators.py", line 66, in wrapper
return func(*args, **kwargs)
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/tests/test_upgrade.py", line 179, in upgrade_ha_one_controller_delete_node
cluster_id, {'slave-03': ['compute', 'ceph-osd']}, False, True)
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/__init__.py", line 48, in wrapped
result = func(*args, **kwargs)
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/models/fuel_web_client.py", line 773, in update_nodes
self.update_nodes_interfaces(cluster_id)
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/__init__.py", line 48, in wrapped
result = func(*args, **kwargs)
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/models/fuel_web_client.py", line 904, in update_nodes_interfaces
self.update_node_networks(node['id'], assigned_networks)
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/__init__.py", line 48, in wrapped
result = func(*args, **kwargs)
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/models/fuel_web_client.py", line 802, in update_node_networks
[{'id': node_id, 'interfaces': interfaces}])
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/__init__.py", line 48, in wrapped
result = func(*args, **kwargs)
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/helpers/decorators.py", line 102, in wrapped
response = func(*args, **kwargs)
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/models/nailgun_client.py", line 185, in put_node_interfaces
return self.client.put("/api/nodes/interfaces", data)
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/helpers/http.py", line 83, in put
return self._open(req)
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/helpers/http.py", line 92, in _open
return self._get_response(req)
File "/home/jenkins/workspace/6.1.system_test.centos.ceph_multinode_compact.upgrade/UPGRADE/fuelweb_test/helpers/http.py", line 109, in _get_response
return self.opener.open(req)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request
It is intended behaviour for now. /bugs.launchpad .net/fuel/ +bug/1428776 /bugs.launchpad .net/fuel/ +bug/1425901 /review. openstack. org/169012
Please see:
https:/
https:/
https:/
It was a mail thread were we agreed to deny interfaces changes during and after deployment.