Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Launchin instance on version 2.3.0 with Linuxbridging failed

Hello @ll,

since three weeks I follow the Openstack Guide for Debian Jessie several times , I could verify all components besides of launching an instance. I would be happy for any help and hint.

Following commando fails in this section of the guide in http://docs.openstack.org/draft/install-guide-debian/launch-instance-provider.html :

openstack server create --flavor m1.tiny --image cirros \
  --nic net-id=6a3159e1-5f41-4d5f-9da0-befb214657f6 --security-group default \
  --key-name mykey provider-instance

While following command provides me the net-id

openstack network list
 ID-Column: 6a3159e1-5f41-4d5f-9da0-befb214657f6

I got following Controller's neutron-server.log ("Failed to bind port" in the ERROR line):

2016-09-15 12:48:16.360 17982 DEBUG oslo_messaging._drivers.amqpdriver [req-4f91af10-09dd-4ea3-a997-593593d009e7 d69bdb9aeb7348f8bc724af491528f85 0cf8cc992d124b5e889f887cad975259 - - -] CAST unique_id: 3679d71f240d4533aee73e996f8cbf46 FANOUT topic 'q-agent-notifier-security_group-update' _send /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:443
2016-09-15 12:48:16.371 17982 DEBUG neutron.plugins.ml2.managers [req-4f91af10-09dd-4ea3-a997-593593d009e7 d69bdb9aeb7348f8bc724af491528f85 0cf8cc992d124b5e889f887cad975259 - - -] Attempting to bind port 96fd72e7-764d-4155-9d21-218094394cf2 on host compute1 for vnic_type normal with profile  bind_port /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py:685
2016-09-15 12:48:16.372 17982 DEBUG neutron.plugins.ml2.managers [req-4f91af10-09dd-4ea3-a997-593593d009e7 d69bdb9aeb7348f8bc724af491528f85 0cf8cc992d124b5e889f887cad975259 - - -] Attempting to bind port 96fd72e7-764d-4155-9d21-218094394cf2 on host compute1 at level 0 using segments [{'segmentation_id': None, 'physical_network': u'provider', 'id': u'75147951-cc61-4acb-a69a-359fdbcc3b79', 'network_type': u'flat'}] _bind_port_level /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py:706
2016-09-15 12:48:16.372 17982 ERROR neutron.plugins.ml2.managers [req-4f91af10-09dd-4ea3-a997-593593d009e7 d69bdb9aeb7348f8bc724af491528f85 0cf8cc992d124b5e889f887cad975259 - - -] Failed to bind port 96fd72e7-764d-4155-9d21-218094394cf2 on host compute1 for vnic_type normal using segments [{'segmentation_id': None, 'physical_network': u'provider', 'id': u'75147951-cc61-4acb-a69a-359fdbcc3b79', 'network_type': u'flat'}]

Now some information and configuration files of the setup. Hoping it's not too much.

Openstack Version:

 openstack 2.3.0 (Newton?)

OS:

Debian 8 Jessie Backports

Network Type:

 Neutron Linux Bridging (ml2, no openvswitch)

Hypervisor:

 KVM

Environment:

Controller, Compute1

Controller's neutron.conf

[DEFAULT]
debug = True
auth_strategy = keystone
core_plugin = ml2
service_plugins =
allow_overlapping_ips = True
notify_nova_on_port_status_changes = True 
notify_nova_on_port_data_changes = True
rpc_backend = rabbit
[agent]
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://neutron:PASSWORD@controller/neutron
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = PASSWORD
[matchmaker_redis]
[nova]
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = PASSWORD
[oslo_concurrency]
lock_path = /var/lock/neutron
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = PASSWORD
[oslo_policy]
[quotas]
[ssl]

Controller's nova.conf

[DEFAULT]
enabled_apis = osapi_compute,metadata
my_ip = 10.0.0.204
pybasedir = /usr/lib/python2.7/dist-packages
state_path = /var/lib/nova
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
network_api_class = nova.network.neutronv2.api.API
default_floating_pool = ext-nat
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
security_group_api = neutron
rpc_backend = rabbit
auth_strategy = keystone
[api_database]
connection = mysql+pymysql://nova:PASSWORD@controller/nova_api
[barbican]
[cells]
[cinder]
[conductor]
[cors]
[cors.subdomain]
[database]
connection = mysql+pymysql://nova:PASSWORD@controller/nova
[ephemeral_storage_encryption]
[glance]
api_servers = http://controller:9292
[guestfs]
[hyperv]
[image_file_url]
[ironic]
[keymgr]
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = PASSWORD
[libvirt]
[matchmaker_redis]
[metrics]
[neutron]
url = http://controller:9696
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = PASSWORD
service_metadata_proxy = true
metadata_proxy_shared_secret = PASSWORD
[osapi_v21]
[oslo_concurrency]
lock_path = /var/lock/nova
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = PASSWORD
[oslo_middleware]
[oslo_policy]
[rdp]
[serial_console]
[spice]
server_listen = 0.0.0.0
server_proxyclient_address = $my_ip
enabled = true
[ssl]
[trusted_computing]
[upgrade_levels]
[vmware]
[vnc]
vncserver_listen = $my_ip
vncserver_proxyclient_address = $my_ip
[workarounds]
[xenserver]

Controllers linuxbridge_agent.ini:

[DEFAULT]
[agent]
[linux_bridge]
physical_interface_mappings = provider:eth1
[securitygroup]
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
[vxlan]
enable_vxlan = False

Compute1's neutron.conf

 [DEFAULT]
debug = True
auth_strategy = keystone
core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin
service_plugins = router,metering
allow_overlapping_ips = True
notify_nova_on_port_status_changes = True 
rpc_backend = rabbit
[agent]
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
[cors]
[cors.subdomain]
[database]
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = PASSWORD
[matchmaker_redis]
[nova]
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = nova
password = PASSWORD
[oslo_concurrency]
lock_path = /var/lock/neutron
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = PASSWORD
[oslo_policy]
[quotas]
[ssl]

Compute1's linuxbridge_agent.ini

[DEFAULT]
[agent]
[linux_bridge]
physical_interface_mappings = provider:eth1
[securitygroup]
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
[vxlan]
enable_vxlan = False

Compute1's nova.conf

[DEFAULT]
debug = True
enabled_apis = osapi_compute,metadata
my_ip = 10.0.0.203
pybasedir = /usr/lib/python2.7/dist-packages
state_path = /var/lib/nova
firewall_driver = nova.virt.firewall.NoopFirewallDriver
network_api_class = nova.network.neutronv2.api.API
default_floating_pool = ext-nat
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
security_group_api = neutron
rpc_backend = rabbit
auth_strategy = keystone
use_neutron = true
[api_database]
[barbican]
[cells]
[cinder]
[conductor]
[cors]
[cors.subdomain]
[database]
[ephemeral_storage_encryption]
[glance]
api_servers = http://controller:9292
[guestfs]
[hyperv]
[image_file_url]
[ironic]
[keymgr]
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = PASSWORD
[libvirt]
[matchmaker_redis]
[metrics]
[neutron]
url = http://controller:9696
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = PASSWORD
[osapi_v21]
[oslo_concurrency]
lock_path = /var/lock/nova
[oslo_messaging_amqp]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = PASSWORD
[oslo_middleware]
[oslo_policy]
[rdp]
[serial_console]
[spice]
server_listen = 0.0.0.0
server_proxyclient_address = $my_ip
enabled = true
[ssl]
[trusted_computing]
[upgrade_levels]
[vmware]
[vnc]
enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = $my_ip
novncproxy_base_url = http://controller:6080/vnc_auto.html
[workarounds]
[xenserver]

Cheers

Matt