[openstack-dev] Neutron exception when creating a network using Contrail R4.1 and OpenStack Ocata

Anda Nicolae anicolae at lenovo.com
Mon Dec 4 17:08:26 UTC 2017


Hi all,

I am struggling with Contrail R4.1 and OpenStack Ocata on Ubuntu 16.04.2.
I managed to install Contrail R4.1 on Ubuntu 16.04 using contrail-installer package and to successfully start all Contrail processes.
Then, I installed OpenStack Ocata using devstack. Unfortunately, I am facing some errors.

Worth mentioning that I have also installed only OpenStack Ocata without Contrail on Ubuntu 16.04 and it worked without any errors.

Some of the errors I have encountered with OpenStack Ocata and Contrail R4.1 are:
If I issue: 'neutron net-list', works fine but 'neutron --debug net-create net1' returns:

DEBUG: keystoneauth.session GET call to None for http:// <ContrailControllerIP>:5000/v2.0 used request id req-ee38087e-3167-4e2f-a3c7-05422984e40d
DEBUG: keystoneauth.identity.v2 Making authentication request to http:// <ContrailControllerIP>/identity/v2.0/tokens
DEBUG: keystoneauth.session REQ: curl -g -i -X POST http:// <ContrailControllerIP>:9696/v2.0/networks.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}07ab629ceba1f5e5eeb0533eccee9dad135910f9" -d '{"network": {"name": "net1", "admin_state_up": true}}'
DEBUG: keystoneauth.session RESP: [404] Content-Type: application/json Content-Length: 97 X-Openstack-Request-Id: req-ea656a0f-f621-43c7-af48-eaff7fd8d97a Date: Tue, 28 Nov 2017 00:52:14 GMT Connection: keep-alive
RESP BODY: {"NeutronError": {"message": "An unknown exception occurred.", "type": "NotFound", "detail": ""}}

DEBUG: keystoneauth.session POST call to network for http://<ContrailControllerIP>:9696/v2.0/networks.json used request id req-ea656a0f-f621-43c7-af48-eaff7fd8d97a
DEBUG: neutronclient.v2_0.client Error message: {"NeutronError": {"message": "An unknown exception occurred.", "type": "NotFound", "detail": ""}}
DEBUG: neutronclient.v2_0.client POST call to neutron for http:// <ContrailControllerIP>:9696/v2.0/networks.json used request id req-ea656a0f-f621-43c7-af48-eaff7fd8d97a
ERROR: neutronclient.shell An unknown exception occurred.
Neutron server returns request_ids: ['req-ea656a0f-f621-43c7-af48-eaff7fd8d97a']
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py", line 877, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py", line 114, in run_command
    return cmd.run(known_args)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 324, in run
    return super(NeutronCommand, self).run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 112, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 406, in take_action
    data = obj_creator(body)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 798, in create_network
    return self.post(self.networks_path, body=body)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 366, in post
    headers=headers, params=params)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 301, in do_request
    self._handle_fault_response(status_code, replybody, resp)
 File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 276, in _handle_fault_response
    exception_handler_v20(status_code, error_body)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 92, in exception_handler_v20
    request_ids=request_ids)
NotFound: An unknown exception occurred.

>From q-svc logs, I've found:
ERROR neutron_plugin_contrail.plugins.opencontrail.contrail_plugin_base [req-f7394fbd-c9ee-4468-b050-e0559a39bbfc demo admin] NotFound{u'msg': u"Unknown id: Error: oper 2 url /project/1621d377-eb4e-4a44-8470-699a3c14bd2d body {'fields': 'security_groups', 'exclude_hrefs': True} response Unknown id: 1621d377-eb4e-4a44-8470-699a3c14bd2d", u'exception': u'NotFound'}security_group


Also, when I try to create the network using Contrail GUI, I have the following error:
Error: Parent project cannot be found: Unknown id: project default-domain:admin


Do you have any idea why this happens?


Thanks,
Anda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20171204/af3363c8/attachment.html>


More information about the OpenStack-dev mailing list