2015-07-25 16:36:11 |
Rajesh Mallah |
description |
we are installing openstack on real hardware using fuel 6.1 . While installing openstack on the controllers
the process stops at ERROR . on digging the log it was found that below command fails.
/usr/bin/neutron router-interface-add --format=shell router04 subnet=net04__subnet
Bad Request (HTTP 400) (Request-ID: req-e222ae9e-c124-43a8-a9b8-eaad9fe1cbdc)
DEBUG ENABLED OUTPUT:
=======================
root@node-42:~# /usr/bin/neutron router-interface-add --format=shell router04 subnet=net04__subnet --debug
DEBUG: keystoneclient.session REQ: curl -i -X GET http://172.16.11.2:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] CaseInsensitiveDict({'date': 'Sat, 25 Jul 2015 01:21:03 GMT', 'vary': 'X-Auth-Token', 'content-length': '421', 'content-type': 'application/json', 'connection': 'close'})
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://172.16.11.2:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
DEBUG: neutronclient.neutron.v2_0.router.AddInterfaceRouter run(Namespace(interface=u'subnet=net04__subnet', request_format='json', router_id=u'router04'))
DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://172.16.11.2:5000/v2.0/tokens
DEBUG: keystoneclient.session REQ: curl -i -X GET http://172.16.11.2:9696/v2.0/routers.json?fields=id&name=router04 -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: TOKEN_REDACTED"
DEBUG: keystoneclient.session RESP: [200] CaseInsensitiveDict({'date': 'Sat, 25 Jul 2015 01:21:14 GMT', 'connection': 'close', 'content-type': 'application/json; charset=UTF-8', 'content-length': '61', 'x-openstack-request-id': 'req-88677c38-91a4-4b80-acd6-306343b9c13d'})
RESP BODY: {"routers": [{"id": "e55c6ee8-0860-4192-bb86-a9edc6347248"}]}
DEBUG: keystoneclient.session REQ: curl -i -X GET http://172.16.11.2:9696/v2.0/subnets.json?fields=id&name=net04__subnet -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: TOKEN_REDACTED"
DEBUG: keystoneclient.session RESP: [200] CaseInsensitiveDict({'date': 'Sat, 25 Jul 2015 01:21:14 GMT', 'connection': 'close', 'content-type': 'application/json; charset=UTF-8', 'content-length': '61', 'x-openstack-request-id': 'req-ce6b8c10-b1b5-4773-be10-d9445825b590'})
RESP BODY: {"subnets": [{"id": "4a9ad0d7-4af2-434a-a095-d6077a47542d"}]}
DEBUG: keystoneclient.session REQ: curl -i -X PUT http://172.16.11.2:9696/v2.0/routers/e55c6ee8-0860-4192-bb86-a9edc6347248/add_router_interface.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: TOKEN_REDACTED" -d '{"subnet_id": "4a9ad0d7-4af2-434a-a095-d6077a47542d"}'
DEBUG: keystoneclient.session RESP:
DEBUG: keystoneclient.session Request returned failure status: 400
ERROR: neutronclient.shell Bad Request (HTTP 400) (Request-ID: req-e4658fcd-4afd-4542-a691-5a59c0d1e51f)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 691, in run_subcommand
return run_command(cmd, cmd_parser, sub_argv)
File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 90, in run_command
return cmd.run(known_args)
File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/router.py", line 146, in run
portinfo = self.call_api(neutron_client, _router_id, body)
File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/router.py", line 155, in call_api
return neutron_client.add_interface_router(router_id, body)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 98, in with_params
ret = self.function(instance, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 418, in add_interface_router
body=body)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1329, in put
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1297, in retry_request
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1240, in do_request
content_type=self.content_type())
File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 319, in do_request
return self.request(url, method, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 63, in request
return self._request(url, method, body=body, headers=headers, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 314, in _request
**kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/keystoneclient/session.py", line 346, in request
raise exceptions.from_response(resp, method, url)
BadRequest: Bad Request (HTTP 400) (Request-ID: req-e4658fcd-4afd-4542-a691-5a59c0d1e51f)
Bad Request (HTTP 400) (Request-ID: req-e4658fcd-4afd-4542-a691-5a59c0d1e51f)
=========================================================================
any help is solicited .
thanks & regards
Rajesh Kumar Mallah.
|
In a fresh environment consisting of bare metal server . "Verify Network" passes even if there is an overlap between "public network" and internal L3 Network. This misconfiguration is manifested during open stack controller installation in the puppet log as "Bad Request" .
also running the below from cmdline of controller after source sourcing
env variables:
# /usr/bin/neutron router-interface-add --format=shell router04 subnet=net04__subnet
Bad Request (HTTP 400) (Request-ID: req-e222ae9e-c124-43a8-a9b8-eaad9fe1cbdc)
checking the neutron log reveals the overlap message. |
|