Unable to create br-int bridge with ODL_MODE=externalodl

Bug #1492548 reported by Vasubabu Kandimalla
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
networking-odl
Invalid
Undecided
Pramod

Bug Description

Hi,

I am running ODL lithium release in one of my server running ubuntu 14.04.2.
I am bringing up DevStack master branch with ODL_MODE=externalodl option on another server

It is always failing at the step "Waiting for bridge br-int to be available..."
the br-int bridge is suppose to be created by ODL but it is not happening, so i manually created br-int bridge , set the controller and now Devstack installation is success.

But when i try create a network from OpenStack Dashboard, It is always failing with the below error.
"Error: Failed to create network "test": create_network_postcommit failed."

Below is the snapshot of cli command.

$ neutron --debug net-create test
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://10.212.24.105:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] content-length: 339 vary: X-Auth-Token keep-alive: timeout=5, max=100 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Sat, 05 Sep 2015 08:22:48 GMT content-type: application/json x-openstack-request-id: req-b62d8cd9-ca22-4663-bb58-621c8da049dd
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://10.212.24.105:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('shell = cliff.formatters.shell:ShellFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('yaml = clifftablib.formatters:YamlFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('json = clifftablib.formatters:JsonFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('html = clifftablib.formatters:HtmlFormatter')
DEBUG: neutronclient.neutron.v2_0.network.CreateNetwork get_data(Namespace(admin_state=True, columns=[], formatter='table', max_width=0, name=u'test', prefix='', provider:network_type=None, provider:physical_network=None, provider:segmentation_id=None, request_format='json', tenant_id=None, variables=[]))
DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://10.212.24.105:5000/v2.0/tokens
DEBUG: keystoneclient.session REQ: curl -g -i -X POST http://10.212.24.105:9696/v2.0/networks.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0f8edb3aa0290754334b3a4f5cdf9425aa9c3d60" -d '{"network": {"name": "test", "admin_state_up": true}}'
DEBUG: keystoneclient.session RESP: [500] date: Sat, 05 Sep 2015 08:22:50 GMT connection: keep-alive content-type: application/json; charset=UTF-8 content-length: 112 x-openstack-request-id: req-bf3f192e-6c51-46da-8c2f-bf63e3f53103
RESP BODY: {"NeutronError": {"message": "create_network_postcommit failed.", "type": "MechanismDriverError", "detail": ""}}

DEBUG: neutronclient.v2_0.client Error message: {"NeutronError": {"message": "create_network_postcommit failed.", "type": "MechanismDriverError", "detail": ""}}
ERROR: neutronclient.shell create_network_postcommit failed.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py", line 781, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/shell.py", line 106, in run_command
    return cmd.run(known_args)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/command.py", line 29, in run
    return super(OpenStackCommand, self).run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 92, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in take_action
    return self.get_data(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 479, in get_data
    data = obj_creator(body)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 102, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 571, 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 298, in post
    headers=headers, params=params)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 211, in do_request
    self._handle_fault_response(status_code, replybody)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 185, in _handle_fault_response
    exception_handler_v20(status_code, des_error_body)
  File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 70, in exception_handler_v20
    status_code=status_code)
InternalServerError: create_network_postcommit failed.

I am observing this error only when ODL_MODE=externalodl and in case of ODL_MODE=allinone everything works fine for me.

Can you please look into this issue and help me to fix it.

Thanks,
 Vasu.

Revision history for this message
yalei wang (yalei-wang) wrote :

for the br-int creating when external mode, I got a same problem.

Revision history for this message
Raghu (raghu-rathode) wrote :

Hi,

Even I faced the same problem. I solved it by executing these below commands.

$ sudo service openvswitch-switch stop
$ sudo rm -rf /var/log/openvswitch/*
$ sudo rm -rf /etc/openvswitch/conf.db
$ sudo service openvswitch-switch start

now you try to run ./stack.sh

everything will ok.

Changed in networking-odl:
assignee: nobody → Pramod (pramod-raghavendra-jayathirth)
Changed in networking-odl:
status: New → Incomplete
Revision history for this message
Mike Kolesnik (mkolesni) wrote :

This report is very old, please re-open if the problem still exists

Changed in networking-odl:
status: Incomplete → Invalid
Revision history for this message
Isaku Yamahata (yamahata) wrote :

This is very old.
If you still have the issue with the latest version, please reopen it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.