This is my first go at Openstack. I'm following steps 1 - 7 here: http://docs.openstack.org/juno/install-guide/install/yum/content/launch-instance-nova.html
General:
- RHEL 7.0
- Juno
- LEGACY Networking (Nova)
- 8 compute nodes / 1 controller
- NetworkManger off / disabled
- iptables off / disabled
- 1 network interface per node ( bond0 )
Issue: Every time I create an instance with nova boot
, the result is a server with state: ERROR. Combing through the logs, nova-conductor.log has an error line that mentions "Cannot get interface MTU on 'br100': No such device". Looking at the node that the instance was created on, there is no bridge interface. The guide doesn't mention anything about manually creating the bridge.
My understanding is that it's meant to be done automatically at the moment the instance is created. Is that true? And if so, I'd appreciate any help diagnosing the cause.
Sorry in advance for the wall of text. I tried to make it as readable as I could.
Following http://docs.openstack.org/juno/install-guide/install/yum/content/launch-instance-nova.html , I run
# nova boot --flavor m1.tiny --image cirros-0.3.3-x86_64 --nic net-id=8fed6262-d5d5-497d-996b-2c26922fcbcf --security-group default --key-name demo-key demo-instance1
--------------------------------------------------------------------------------------------
| Property | Value
| OS-DCF:diskConfig | MANUAL
| OS-EXT-AZ:availability_zone | nova
| OS-EXT-STS:power_state | 0
| OS-EXT-STS:task_state | scheduling
| OS-EXT-STS:vm_state | building
| OS-SRV-USG:launched_at | -
| OS-SRV-USG:terminated_at | -
| accessIPv4 |
| accessIPv6 |
| adminPass | w4zcTWdi69J8
| config_drive |
| created | 2015-03-17T20:51:17Z
| flavor | m1.tiny (1)
| hostId |
| id | c87f8800-63c5-47fd-96c3-8d37dceba955
| image | cirros-0.3.3-x86_64 (2d70875d-d07c-413c-8a6e-d521b21ac192)
| key_name | demo-key
| metadata | {}
| name | demo-instance1
| os-extended-volumes:volumes_attached | []
| progress | 0
| security_groups | default
| status | BUILD
| tenant_id | 1cb52dc33f8142c69590b16bd6fa53d2
| updated | 2015-03-17T20:51:17Z
| user_id | 3a6e30e6d1334f499ff13e00b65859a5
-------------------------------------------------------------------------------------------------
[root@controller ~]# nova list
| ID | Name | Status | Task State | Power State | Networks
| c87f8800-63c5-47fd-96c3-8d37dceba955 | demo-instance1 | ERROR | - | NOSTATE | demo-net=10.1.7.2
From controller /var/log/nova/nova-conductor.log
2015-03-17 20:51:17.420 26007 INFO oslo.messaging._drivers.impl_rabbit [req-b3441565-61df-4c9c-ba79-71093f4b3d31 ] Connecting to AMQP server on localhost:5672
2015-03-17 20:51:17.446 26007 INFO oslo.messaging._drivers.impl_rabbit [req-b3441565-61df-4c9c-ba79-71093f4b3d31 ] Connected to AMQP server on localhost:5672
2015-03-17 20:51:36.891 26001 ERROR nova.scheduler.utils [req-b3441565-61df-4c9c-ba79-71093f4b3d31 None] [instance: c87f8800-63c5-47fd-96c3-8d37dceba955] Error from last host: compute2.osp (node compute2.osp): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2033, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2164, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance c87f8800-63c5-47fd-96c3-8d37dceba955 was re-scheduled: internal error: referenced filter 'no-mac-spoofing' is missing\n"]
2015-03-17 20:51:36.897 26001 INFO oslo.messaging._drivers.impl_rabbit [req-b3441565-61df-4c9c-ba79-71093f4b3d31 ] Connecting to AMQP server on localhost:5672
2015-03-17 20:51:36.922 26001 INFO oslo.messaging._drivers.impl_rabbit [req-b3441565-61df-4c9c-ba79-71093f4b3d31 ] Connected to AMQP server on localhost:5672
2015-03-17 20:51:43.437 26001 ERROR nova.scheduler.utils [req-b3441565-61df-4c9c-ba79-71093f4b3d31 None] [instance: c87f8800-63c5-47fd-96c3-8d37dceba955] Error from last host: compute3.osp (node compute3.osp): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2033, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2164, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance c87f8800-63c5-47fd-96c3-8d37dceba955 was re-scheduled: Cannot get interface MTU on 'br100': No such device\n"]
2015-03-17 20:51:48.958 25987 ERROR nova.scheduler.utils [req-b3441565-61df-4c9c-ba79-71093f4b3d31 None] [instance: c87f8800-63c5-47fd-96c3-8d37dceba955] Error from last host: compute5.osp (node compute5.osp): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2033, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2164, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance c87f8800-63c5-47fd-96c3-8d37dceba955 was re-scheduled: Cannot get interface MTU on 'br100': No such device\n"]
2015-03-17 20:51:48.960 25987 WARNING nova.scheduler.driver [req-b3441565-61df-4c9c-ba79-71093f4b3d31 None] [instance: c87f8800-63c5-47fd-96c3-8d37dceba955] NoValidHost exception with message: 'No valid host was found. Exceeded max scheduling attempts 3 for instance c87f8800-63c5-47fd-96c3-8d37dceba955. Last exception: [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2033, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2164, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance c87f8800-63c5-47fd-96c3-8d37dceba955 was re-scheduled: Cannot get interface MTU on 'br100': No such device\n"]'
2015-03-17 20:51:48.960 25987 WARNING nova.scheduler.driver [req-b3441565-61df-4c9c-ba79-71093f4b3d31 None] [instance: c87f8800-63c5-47fd-96c3-8d37dceba955] Setting instance to ERROR state.
And from compute5:/var/log/nova/nova-network.log:
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf env CONFIG_FILE=["/usr/share/nova/nova-dist.conf", "/etc/nova/nova.conf"] NETWORK_ID=3 dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --dhcp-optsfile=/var/lib/nova/networks/nova-br100.opts --listen-address=10.1.7.1 --except-interface=lo --dhcp-range=set:demo-net2,10.1.7.2,static,255.255.255.0,86400s --dhcp-lease-max=256 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --no-hosts --leasefile-ro --domain=novalocal --addn-hosts=/var/lib/nova/networks/nova-br100.hosts
Exit code: 2
Stdout: u''
Stderr: u'\ndnsmasq: failed to create listening socket for 10.1.7.1: Cannot assign requested address\n'
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site- packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/manager.py", line 222, in deallocate_fixed_ip
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher address, instance=instance)
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-
packages/nova/network/manager.py", line 1033, in deallocate_fixed_ip
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher self._teardown_network_on_host(context, network)
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/manager.py", line 1837, in _teardown_network_on_host
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher self.driver.update_dhcp(elevated, dev, network)
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/linux_net.py", line 1012, in update_dhcp
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher restart_dhcp(context, dev, network_ref, fixedips)
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/openstack/common/lockutils.py", line 272, in inner
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs)
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/linux_net.py", line 1127, in restart_dhcp
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher _execute(*cmd, run_as_root=True)
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/network/linux_net.py", line 1228, in _execute
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher return utils.execute(*cmd, **kwargs)
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/utils.py", line 163, in execute
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher return processutils.execute(*cmd, **kwargs)
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/openstack/common/processutils.py", line 203, in execute
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher cmd=sanitized_cmd)
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher ProcessExecutionError: Unexpected error while running command.
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher Command: sudo nova-rootwrap /etc/nova/rootwrap.conf env CONFIG_FILE=["/usr/share/nova/nova-dist.conf", "/etc/nova/nova.conf"] NETWORK_ID=3 dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --dhcp-optsfile=/var/lib/nova/networks/nova-br100.opts --listen-address=10.1.7.1 --except-interface=lo --dhcp-range=set:demo-net2,10.1.7.2,static,255.255.255.0,86400s --dhcp-lease-max=256 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --no-hosts --leasefile-ro --domain=novalocal --addn-hosts=/var/lib/nova/networks/nova-br100.hosts
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher Exit code: 2
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher Stdout: u''
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher Stderr: u'\ndnsmasq: failed to create listening socket for 10.1.7.1: Cannot assign requested address\n'
2015-03-17 20:21:29.761 12661 TRACE oslo.messaging.rpc.dispatcher
2015-03-17 20:21:29.762 12661 ERROR oslo.messaging._drivers.common [req-a39517b6-2f21-4afb-8189-94381c553bf7 ] Returning exception Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf env CONFIG_FILE=["/usr/share/nova/nova-dist.conf", "/etc/nova/nova.conf"] NETWORK_ID=3 dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --dhcp-optsfile=/var/lib/nova/networks/nova-br100.opts --listen-address=10.1.7.1 --except-interface=lo --dhcp-range=set:demo-net2,10.1.7.2,static,255.255.255.0,86400s --dhcp-lease-max=256 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --no-hosts --leasefile-ro --domain=novalocal --addn-hosts=/var/lib/nova/networks/nova-br100.hosts
Exit code: 2
Stdout: u''
Stderr: u'\ndnsmasq: failed to create listening socket for 10.1.7.1: Cannot assign requested address\n' to caller