Device "br-int" does not exist when we rejoin

Bug #1327042 reported by li,chen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

If we want to restart all services, we need to run command:
./unstack.sh

And, then run command:
./rejoin-stack.sh

When unstack, br-int would be deleted.
But, it will not be auto re-created when rejoin-stack.

This caused neutron-openvswitch-agent complains about :
......
......
2014-06-06 13:23:36.566 DEBUG neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] ******************************************************************************** from (pid=20545) log_opt_values /usr/lib/python2.6/site-packages/oslo/config/cfg.py:1962
2014-06-06 13:23:36.566 DEBUG neutron.agent.linux.utils [-] Running command: ['ip', '-o', 'link', 'show', 'br-int'] from (pid=20545) create_process /opt/stack/neutron/neutron/agent/linux/utils.py:48
2014-06-06 13:23:36.570 DEBUG neutron.agent.linux.utils [-]
Command: ['ip', '-o', 'link', 'show', 'br-int']
Exit code: 255
Stdout: ''
Stderr: 'Device "br-int" does not exist.\n' from (pid=20545) execute /opt/stack/neutron/neutron/agent/linux/utils.py:74
2014-06-06 13:23:36.571 CRITICAL neutron [-]
Command: ['ip', '-o', 'link', 'show', 'br-int']
Exit code: 255
Stdout: ''
Stderr: 'Device "br-int" does not exist.\n'
2014-06-06 13:23:36.571 TRACE neutron Traceback (most recent call last):
2014-06-06 13:23:36.571 TRACE neutron File "/usr/bin/neutron-openvswitch-agent", line 10, in <module>
2014-06-06 13:23:36.571 TRACE neutron sys.exit(main())
2014-06-06 13:23:36.571 TRACE neutron File "/opt/stack/neutron/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 1485, in main
2014-06-06 13:23:36.571 TRACE neutron agent = OVSNeutronAgent(**agent_config)
2014-06-06 13:23:36.571 TRACE neutron File "/opt/stack/neutron/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 207, in __init__
2014-06-06 13:23:36.571 TRACE neutron self.setup_rpc()
2014-06-06 13:23:36.571 TRACE neutron File "/opt/stack/neutron/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 272, in setup_rpc
2014-06-06 13:23:36.571 TRACE neutron mac = self.int_br.get_local_port_mac()
2014-06-06 13:23:36.571 TRACE neutron File "/opt/stack/neutron/neutron/agent/linux/ovs_lib.py", line 440, in get_local_port_mac
2014-06-06 13:23:36.571 TRACE neutron address = ip_lib.IPDevice(self.br_name, self.root_helper).link.address
2014-06-06 13:23:36.571 TRACE neutron File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 258, in address
2014-06-06 13:23:36.571 TRACE neutron return self.attributes.get('link/ether')
2014-06-06 13:23:36.571 TRACE neutron File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 282, in attributes
2014-06-06 13:23:36.571 TRACE neutron return self._parse_line(self._run('show', self.name, options='o'))
2014-06-06 13:23:36.571 TRACE neutron File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 212, in _run
2014-06-06 13:23:36.571 TRACE neutron return self._parent._run(kwargs.get('options', []), self.COMMAND, args)
2014-06-06 13:23:36.571 TRACE neutron File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 58, in _run
2014-06-06 13:23:36.571 TRACE neutron return self._execute(options, command, args)
2014-06-06 13:23:36.571 TRACE neutron File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 81, in _execute
2014-06-06 13:23:36.571 TRACE neutron root_helper=root_helper)
2014-06-06 13:23:36.571 TRACE neutron File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 76, in execute
2014-06-06 13:23:36.571 TRACE neutron raise RuntimeError(m)
2014-06-06 13:23:36.571 TRACE neutron RuntimeError:
2014-06-06 13:23:36.571 TRACE neutron Command: ['ip', '-o', 'link', 'show', 'br-int']
2014-06-06 13:23:36.571 TRACE neutron Exit code: 255
2014-06-06 13:23:36.571 TRACE neutron Stdout: ''
2014-06-06 13:23:36.571 TRACE neutron Stderr: 'Device "br-int" does not exist.\n'
2014-06-06 13:23:36.571 TRACE neutron
[stack@devstack-compute neutron]$

Tags: ovs
Revision history for this message
li,chen (chen-li) wrote :

For addition, after unstack,
although br-int has been deleted, but br-tun is still exist.

Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

I think the behavior is expected.
./unstack.sh destroys deployment, it is not intended to be used for services restart

tags: added: ovs
Changed in devstack:
status: New → Invalid
Revision history for this message
li,chen (chen-li) wrote :

Then how to restart all services ??

Because directly run rejoin do not restart anything ???
And ./stack.sh will run too many things, isn't 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.