Failing to create instance using devstack and neutron

asked 2016-07-28 09:27:40 -0600

littles gravatar image

Hi!

I'm new to OpenStack and am trying to follow the tutorial "Using Neutron with a Single Interface" from the DevStack official site to set up a small cluster on my laptop. I have two guest VMs, one as a controller and networking node, and the other as a compute node.

Right now I'm able to access the dashboard to see the compute nodes, hosts, networks, etc. The services and agents are up from the nova commands. However, when I try to create an instance I get a "No valid host was found" error.

It looks like to be caused by the empty bridge mapping in the compute node. But when I add the mapping public:br-ex to the ml2.ini file it didn't work.

I have been struggling with this for days. Really appreciate if anybody can help me out.

Following the tutorial, my local.conf of the controller node is like this:

HOST_IP=192.168.42.11
PUBLIC_INTERFACE=eth1
MULTI_HOST=1
LOGFILE=/opt/stack/logs/stack.sh.log
SCREEN_LOGDIR=/opt/stack/logs/screen
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
API_RATE_LIMIT=False
disable_service n-cpu,n-net
# Enable Neutron
ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-agt,q-l3

## Neutron options
Q_USE_SECGROUP=True
FLOATING_RANGE="192.168.42.0/24"
FIXED_RANGE="10.0.0.0/24"
Q_FLOATING_ALLOCATION_POOL=start=192.168.42.250,end=192.168.42.254
PUBLIC_NETWORK_GATEWAY="192.168.42.1"

# Open vSwitch provider networking configuration
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex

IMAGE_URLS="http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-uec.tar.gz"

The the local.conf of the compute node:

[[local|localrc]]
HOST_IP=192.168.42.12 # change this per compute node
PUBLIC_INTERFACE=eth1
LOGFILE=/opt/stack/logs/stack.sh.log
SCREEN_LOGDIR=/opt/stack/logs/screen
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
DATABASE_TYPE=mysql
SERVICE_HOST=192.168.42.11
MYSQL_HOST=192.168.42.11
RABBIT_HOST=192.168.42.11
GLANCE_HOSTPORT=192.168.42.11:9292
API_RATE_LIMIT=False
ENABLED_SERVICES=n-cpu,rabbit,q-agt

The neutron log looks like this:

016-07-28 09:44:07.622 ERROR neutron.plugins.ml2.managers [req-37417474-52e5-4835-8cd6-f768360a403a neutron bffcaf2427854749b57f5044a71cef71] Failed to bind port ca86ba05-09f5-4aea-9353-88c79ae581db on h
ost compute for vnic_type normal using segments [{'segmentation_id': None, 'physical_network': u'public', 'id': u'361d4529-2dfd-477e-84bf-e5098dc77f10', 'network_type': u'flat'}]
2016-07-28 09:44:07.622 INFO neutron.plugins.ml2.plugin [req-37417474-52e5-4835-8cd6-f768360a403a neutron bffcaf2427854749b57f5044a71cef71] Attempt 5 to bind port ca86ba05-09f5-4aea-9353-88c79ae581db
2016-07-28 09:44:07.628 DEBUG neutron.plugins.ml2.managers [req-37417474-52e5-4835-8cd6-f768360a403a neutron bffcaf2427854749b57f5044a71cef71] Attempting to bind port ca86ba05-09f5-4aea-9353-88c79ae581db 
on host compute for vnic_type normal with profile  from (pid=15740) bind_port /opt/stack/neutron/neutron/plugins/ml2/managers.py:685
2016-07-28 09:44:07.630 DEBUG neutron.plugins.ml2.managers [req-37417474-52e5-4835-8cd6-f768360a403a neutron bffcaf2427854749b57f5044a71cef71] Attempting to bind port ca86ba05-09f5-4aea-9353-88c79ae581db 
on host compute at level 0 using segments [{'segmentation_id': None, 'physical_network': u'public', 'id': u'361d4529-2dfd-477e-84bf-e5098dc77f10', 'network_type': u'flat'}] from (pid=15740) _bind_port_lev
el /opt/stack/neutron/neutron/plugins/ml2/managers.py:706
2016-07-28 09:44:07.630 DEBUG neutron.plugins.ml2.drivers.mech_agent [req-37417474-52e5-4835-8cd6-f768360a403a neutron bffcaf2427854749b57f5044a71cef71 ...
(more)
edit retag flag offensive close merge delete