Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

not work, I set tunnel_types =gre, but it still doesn't work

I create this external-net:

neutron net-create ext-net --shared --router:external=True neutron subnet-create ext-net --allocation-pool start=192.168.122.100,end=192.168.122.150 --gateway=192.168.122.200 --enable_dhcp=True 192.168.122.0/24

When I see ext-net (neutron net-show ext-net) , the provider is local !!

provider:network_type local

If I try to change it, for example creating another like this, it throws an exception:

neutron net-create net2 --provider:network-type gre

400-{u'NeutronError': {u'message': u'Invalid input for operation: gre networks are not enabled.', u'type': u'InvalidInput', u'detail': u''}}

It seems like OVS don't get the config file. And when I restart OVS, in the openvswitch-agent.log:

2014-06-23 23:09:02.195 1958 ERROR neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Error while processing VIF ports 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Traceback (most recent call last): 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 1213, in rpc_loop 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent port_info = self.scan_ports(ports, updated_ports_copy) 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 816, in scan_ports 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent cur_ports = self.int_br.get_vif_port_set() 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 311, in get_vif_port_set 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent port_names = self.get_port_name_list() 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 267, in get_port_name_list 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent res = self.run_vsctl(["list-ports", self.br_name], check_error=True) 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 74, in run_vsctl 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent ctxt.reraise = False 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/excutils.py", line 82, in __exit__ 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent six.reraise(self.type_, self.value, self.tb) 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 67, in run_vsctl 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent return utils.execute(full_args, root_helper=self.root_helper) 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 76, in execute 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent raise RuntimeError(m) 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent RuntimeError: 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', 'list-ports', 'br-int'] 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Exit code: 1 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Stdout: '' 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Stderr: '2014-06-23T21:09:02Z|00001|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)\novs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)\n' 2014-06-23 23:09:02.195 1958 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent