[Openstack] Help for creating the bridge br100
董建华
dongjh at nci.com.cn
Wed Oct 23 11:55:59 UTC 2013
Hello all,
I'm trying to install openstack and lauch the first VM, following with the installation guide "openstack-install-guide-apt-havana.pdf". I have one controller node plus two compute nodes.
After creating the network vmnet, i tried to lauch the first CirrOS VM, i saw the bridge br100 was created on the first compute node automatically, and an IP was assigned to this new created bridge(the last valid IP in vmnet subnet), however i found the netmask for vmnet was not correct, so i removed the bridge br100 from the first compute node via 'brctl' command, then removed the network 'vmnet' via the commands "nova network-disassociate" and "nova net-delete", finally i added the network 'vmnet' back with the correct netmask. After doing that, when i try to lauch a VM, it will fail, the error message is 'cannot setup interface: No such device', even if you stop the 'nova-network' and 'nova-compute' services on the first compute node(i.e. the same issue on the second compute node), and sometimes when i restart the 'nova-network' and 'nova-compute' services on the compute nodes, it will throw out the similar error messages, and the services fail to start, but not always.
How can i have nova create the bridge br100 on the compute nodes automatically? Should i clean the mysql database or re-install the nova-network package on the compute nodes?
Thanks.
root at controller:~# nova image-list
+--------------------------------------+--------------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+--------------+--------+--------+
| 26fa8866-d075-444d-9844-61b7c22e724b | CirrOS 0.3.1 | ACTIVE | |
+--------------------------------------+--------------+--------+--------+
root at controller:~# nova help start
usage: nova start <server>
Start a server.
Positional arguments:
<server> Name or ID of server.
root at controller:~# nova boot --flavor 1 --key_name mykey --image 26fa8866-d075-444d-9844-61b7c22e724b --security_group default cirrOS
+--------------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------------+--------------------------------------+
| OS-EXT-STS:task_state | scheduling |
| image | CirrOS 0.3.1 |
| OS-EXT-STS:vm_state | building |
| OS-EXT-SRV-ATTR:instance_name | instance-0000000b |
| OS-SRV-USG:launched_at | None |
| flavor | m1.tiny |
| id | 0d3afadb-ec5c-4f26-ad7f-707679be6b3a |
| security_groups | [{u'name': u'default'}] |
| user_id | eecb2b5f2b4f481980a5546af680481c |
| OS-DCF:diskConfig | MANUAL |
| accessIPv4 | |
| accessIPv6 | |
| progress | 0 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-AZ:availability_zone | nova |
| config_drive | |
| status | BUILD |
| updated | 2013-10-23T11:40:23Z |
| hostId | |
| OS-EXT-SRV-ATTR:host | None |
| OS-SRV-USG:terminated_at | None |
| key_name | mykey |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |
| name | cirrOS |
| adminPass | FSUxpN9QrkhC |
| tenant_id | 382ce85ef00948a3a1442e44f9d033ed |
| created | 2013-10-23T11:40:23Z |
| os-extended-volumes:volumes_attached | [] |
| metadata | {} |
+--------------------------------------+--------------------------------------+
root at controller:~# nova show 0d3afadb-ec5c-4f26-ad7f-707679be6b3a
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
| status | ERROR |
| updated | 2013-10-23T11:40:29Z |
| OS-EXT-STS:task_state | None |
| OS-EXT-SRV-ATTR:host | compute1 |
| key_name | mykey |
| image | CirrOS 0.3.1 (26fa8866-d075-444d-9844-61b7c22e724b) |
| vmnet network | 192.168.11.195 |
| hostId | 5ce24c402b2346e375fca2455e0d6dbaf0405f2d46b1e6eaf3b30742 |
| OS-EXT-STS:vm_state | error |
| OS-EXT-SRV-ATTR:instance_name | instance-0000000b |
| OS-SRV-USG:launched_at | None |
| OS-EXT-SRV-ATTR:hypervisor_hostname | compute1 |
| flavor | m1.tiny (1) |
| id | 0d3afadb-ec5c-4f26-ad7f-707679be6b3a |
| security_groups | [{u'name': u'default'}] |
| OS-SRV-USG:terminated_at | None |
| user_id | eecb2b5f2b4f481980a5546af680481c |
| name | cirrOS |
| created | 2013-10-23T11:40:23Z |
| tenant_id | 382ce85ef00948a3a1442e44f9d033ed |
| OS-DCF:diskConfig | MANUAL |
| metadata | {} |
| os-extended-volumes:volumes_attached | [] |
| accessIPv4 | |
| accessIPv6 | |
| fault | {u'message': u"Remote error: ProcessExecutionError Unexpected error while running command. |
| | Command: sudo nova-rootwrap /etc/nova/rootwrap.conf dhcp_release br100 192.168.11.195 fa:16:3e:13:e9:90 |
| | Exit code: 1 |
| | Stdout: '' |
| | Stderr: 'cannot setup interface: No such device\ |
| | ' |
| | ", u'code': 500, u'details': u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 258, in decorated_function |
| | return function(self, context, *args, **kwargs) |
| | File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1613, in run_instance |
| | do_run_instance() |
| | File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 246, in inner |
| | return f(*args, **kwargs) |
| | File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1612, in do_run_instance |
| | legacy_bdm_in_spec) |
| | File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 962, in _run_instance |
| | notify("error", msg=unicode(e)) # notify that build failed |
| | File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 946, in _run_instance |
| | instance, image_meta, legacy_bdm_in_spec) |
| | File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1075, in _build_instance |
| | filter_properties, bdms, legacy_bdm_in_spec) |
| | File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1119, in _reschedule_or_error |
| | self._log_original_error(exc_info, instance_uuid) |
| | File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1114, in _reschedule_or_error |
| | bdms, requested_networks) |
| | File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1664, in _shutdown_instance |
| | self._try_deallocate_network(context, instance, requested_networks) |
| | File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1624, in _try_deallocate_network |
| | self._set_instance_error_state(context, instance[\'uuid\']) |
| | File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1619, in _try_deallocate_network |
| | self._deallocate_network(context, instance, requested_networks) |
| | File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1463, in _deallocate_network |
| | context, instance, requested_networks=requested_networks) |
| | File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 93, in wrapped |
| | return func(self, context, *args, **kwargs) |
| | File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 317, in deallocate_for_instance |
| | self.network_rpcapi.deallocate_for_instance(context, **args) |
| | File "/usr/lib/python2.7/dist-packages/nova/network/rpcapi.py", line 193, in deallocate_for_instance |
| | host=host, requested_networks=requested_networks) |
| | File "/usr/lib/python2.7/dist-packages/nova/rpcclient.py", line 85, in call |
| | return self._invoke(self.proxy.call, ctxt, method, **kwargs) |
| | File "/usr/lib/python2.7/dist-packages/nova/rpcclient.py", line 63, in _invoke |
| | return cast_or_call(ctxt, msg, **self.kwargs) |
| | File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/proxy.py", line 126, in call |
| | result = rpc.call(context, real_topic, msg, timeout) |
| | File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/__init__.py", line 139, in call |
| | return _get_impl().call(CONF, context, topic, msg, timeout) |
| | File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/impl_kombu.py", line 816, in call |
| | rpc_amqp.get_connection_pool(conf, Connection)) |
| | File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 574, in call |
| | rv = list(rv) |
| | File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 539, in __iter__ |
| | raise result |
| | ', u'created': u'2013-10-23T11:40:29Z'} |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-AZ:availability_zone | nova |
| config_drive | |
+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
root at controller:~#
root at controller:~# nova service-list
+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| nova-cert | controller | internal | enabled | up | 2013-10-23T11:41:59.000000 | None |
| nova-consoleauth | controller | internal | enabled | up | 2013-10-23T11:42:02.000000 | None |
| nova-scheduler | controller | internal | enabled | up | 2013-10-23T11:42:04.000000 | None |
| nova-conductor | controller | internal | enabled | up | 2013-10-23T11:42:00.000000 | None |
| nova-network | compute1 | internal | enabled | up | 2013-10-23T11:42:04.000000 | None |
| nova-network | compute2 | internal | enabled | up | 2013-10-23T11:41:56.000000 | None |
| nova-compute | compute1 | nova | enabled | up | 2013-10-23T11:41:58.000000 | None |
| nova-compute | compute2 | nova | enabled | up | 2013-10-23T11:42:00.000000 | None |
+------------------+------------+----------+---------+-------+----------------------------+-----------------+
root at compute1:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:ca:3a:ec:66:8c
inet6 addr: fe80::baca:3aff:feec:668c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:56 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6989 (6.9 KB) TX bytes:4298 (4.2 KB)
Interrupt:34 Memory:d1000000-d17fffff
eth1 Link encap:Ethernet HWaddr b8:ca:3a:ec:66:8e
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:36 Memory:d2000000-d27fffff
eth2 Link encap:Ethernet HWaddr b8:ca:3a:ec:66:90
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:36 Memory:d3000000-d37fffff
eth3 Link encap:Ethernet HWaddr b8:ca:3a:ec:66:92
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:37 Memory:d4000000-d47fffff
eth4 Link encap:Ethernet HWaddr 00:0a:f7:24:1e:40
inet addr:10.10.10.182 Bcast:10.10.10.255 Mask:255.255.255.0
inet6 addr: fe80::20a:f7ff:fe24:1e40/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:551 errors:0 dropped:0 overruns:0 frame:0
TX packets:476 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:95077 (95.0 KB) TX bytes:70754 (70.7 KB)
Interrupt:72 Memory:c8000000-c87fffff
eth5 Link encap:Ethernet HWaddr 00:0a:f7:24:1e:42
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:76 Memory:c9000000-c97fffff
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
virbr0 Link encap:Ethernet HWaddr b2:43:fa:53:cc:11
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
My internal NIC is eth4 and eth0 will be the bridge/public interface.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131023/9825510a/attachment.html>
More information about the Openstack
mailing list