<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"><base href="x-msg://51/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, <div>you can try:</div><div>brctl addbr br100</div><div>then restart nova-network and nova-compute services, they'll hook it up correctly :)</div><div><br></div><div><div><div>Le 23 oct. 2013 ¨¤ 04:55, ¶­½¨»ª <<a href="mailto:dongjh@nci.com.cn">dongjh@nci.com.cn</a>> a ¨¦crit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 10.5pt; font-family: Î¢ÈíÑźÚ; line-height: 1.5; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; margin: 10px; "><div>Hello all,</div><div> </div><div><div>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.</div><div> </div><div>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.</div><div> </div><div>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?</div><div> </div><div>Thanks.</div><div> </div><div>root@controller:~# nova image-list</div><div>+--------------------------------------+--------------+--------+--------+</div><div>| ID                                   | Name         | Status | Server |</div><div>+--------------------------------------+--------------+--------+--------+</div><div>| 26fa8866-d075-444d-9844-61b7c22e724b | CirrOS 0.3.1 | ACTIVE |        |</div><div>+--------------------------------------+--------------+--------+--------+</div><div>root@controller:~# nova help start</div><div>usage: nova start <server></div><div> </div><div>Start a server.</div><div> </div><div>Positional arguments:</div><div>  <server>  Name or ID of server.</div><div>root@controller:~#  nova boot --flavor 1 --key_name mykey --image 26fa8866-d075-444d-9844-61b7c22e724b --security_group default cirrOS</div><div>+--------------------------------------+--------------------------------------+</div><div>| Property                             | Value                                |</div><div>+--------------------------------------+--------------------------------------+</div><div>| OS-EXT-STS:task_state                | scheduling                           |</div><div>| image                                | CirrOS 0.3.1                         |</div><div>| OS-EXT-STS:vm_state                  | building                             |</div><div>| OS-EXT-SRV-ATTR:instance_name        | instance-0000000b                    |</div><div>| OS-SRV-USG:launched_at               | None                                 |</div><div>| flavor                               | m1.tiny                              |</div><div>| id                                   | 0d3afadb-ec5c-4f26-ad7f-707679be6b3a |</div><div>| security_groups                      | [{u'name': u'default'}]              |</div><div>| user_id                              | eecb2b5f2b4f481980a5546af680481c     |</div><div>| OS-DCF:diskConfig                    | MANUAL                               |</div><div>| accessIPv4                           |                                      |</div><div>| accessIPv6                           |                                      |</div><div>| progress                             | 0                                    |</div><div>| OS-EXT-STS:power_state               | 0                                    |</div><div>| OS-EXT-AZ:availability_zone          | nova                                 |</div><div>| config_drive                         |                                      |</div><div>| status                               | BUILD                                |</div><div>| updated                              | 2013-10-23T11:40:23Z                 |</div><div>| hostId                               |                                      |</div><div>| OS-EXT-SRV-ATTR:host                 | None                                 |</div><div>| OS-SRV-USG:terminated_at             | None                                 |</div><div>| key_name                             | mykey                                |</div><div>| OS-EXT-SRV-ATTR:hypervisor_hostname  | None                                 |</div><div>| name                                 | cirrOS                               |</div><div>| adminPass                            | FSUxpN9QrkhC                         |</div><div>| tenant_id                            | 382ce85ef00948a3a1442e44f9d033ed     |</div><div>| created                              | 2013-10-23T11:40:23Z                 |</div><div>| os-extended-volumes:volumes_attached | []                                   |</div><div>| metadata                             | {}                                   |</div><div>+--------------------------------------+--------------------------------------+</div><div>root@controller:~# nova show 0d3afadb-ec5c-4f26-ad7f-707679be6b3a</div><div>+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+</div><div>| Property                             | Value                                                                                                                             |</div><div>+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+</div><div>| status                               | ERROR                                                                                                                             |</div><div>| updated                              | 2013-10-23T11:40:29Z                                                                                                              |</div><div>| OS-EXT-STS:task_state                | None                                                                                                                              |</div><div>| OS-EXT-SRV-ATTR:host                 | compute1                                                                                                                          |</div><div>| key_name                             | mykey                                                                                                                             |</div><div>| image                                | CirrOS 0.3.1 (26fa8866-d075-444d-9844-61b7c22e724b)                                                                               |</div><div>| vmnet network                        | 192.168.11.195                                                                                                                    |</div><div>| hostId                               | 5ce24c402b2346e375fca2455e0d6dbaf0405f2d46b1e6eaf3b30742                                                                          |</div><div>| OS-EXT-STS:vm_state                  | error                                                                                                                             |</div><div>| OS-EXT-SRV-ATTR:instance_name        | instance-0000000b                                                                                                                 |</div><div>| OS-SRV-USG:launched_at               | None                                                                                                                              |</div><div>| OS-EXT-SRV-ATTR:hypervisor_hostname  | compute1                                                                                                                          |</div><div>| flavor                               | m1.tiny (1)                                                                                                                       |</div><div>| id                                   | 0d3afadb-ec5c-4f26-ad7f-707679be6b3a                                                                                              |</div><div>| security_groups                      | [{u'name': u'default'}]                                                                                                           |</div><div>| OS-SRV-USG:terminated_at             | None                                                                                                                              |</div><div>| user_id                              | eecb2b5f2b4f481980a5546af680481c                                                                                                  |</div><div>| name                                 | cirrOS                                                                                                                            |</div><div>| created                              | 2013-10-23T11:40:23Z                                                                                                              |</div><div>| tenant_id                            | 382ce85ef00948a3a1442e44f9d033ed                                                                                                  |</div><div>| OS-DCF:diskConfig                    | MANUAL                                                                                                                            |</div><div>| metadata                             | {}                                                                                                                                |</div><div>| os-extended-volumes:volumes_attached | []                                                                                                                                |</div><div>| accessIPv4                           |                                                                                                                                   |</div><div>| accessIPv6                           |                                                                                                                                   |</div><div>| fault                                | {u'message': u"Remote error: ProcessExecutionError Unexpected error while running command.                                        |</div><div>|                                      | Command: sudo nova-rootwrap /etc/nova/rootwrap.conf dhcp_release br100 192.168.11.195 fa:16:3e:13:e9:90                           |</div><div>|                                      | Exit code: 1                                                                                                                      |</div><div>|                                      | Stdout: ''                                                                                                                        |</div><div>|                                      | Stderr: 'cannot setup interface: No such device\                                                                                  |</div><div>|                                      | '                                                                                                                                 |</div><div>|                                      | ", u'code': 500, u'details': u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 258, in decorated_function |</div><div>|                                      |     return function(self, context, *args, **kwargs)                                                                               |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1613, in run_instance                                     |</div><div>|                                      |     do_run_instance()                                                                                                             |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 246, in inner                                  |</div><div>|                                      |     return f(*args, **kwargs)                                                                                                     |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1612, in do_run_instance                                  |</div><div>|                                      |     legacy_bdm_in_spec)                                                                                                           |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 962, in _run_instance                                     |</div><div>|                                      |     notify("error", msg=unicode(e))  # notify that build failed                                                                   |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 946, in _run_instance                                     |</div><div>|                                      |     instance, image_meta, legacy_bdm_in_spec)                                                                                     |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1075, in _build_instance                                  |</div><div>|                                      |     filter_properties, bdms, legacy_bdm_in_spec)                                                                                  |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1119, in _reschedule_or_error                             |</div><div>|                                      |     self._log_original_error(exc_info, instance_uuid)                                                                             |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1114, in _reschedule_or_error                             |</div><div>|                                      |     bdms, requested_networks)                                                                                                     |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1664, in _shutdown_instance                               |</div><div>|                                      |     self._try_deallocate_network(context, instance, requested_networks)                                                           |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1624, in _try_deallocate_network                          |</div><div>|                                      |     self._set_instance_error_state(context, instance[\'uuid\'])                                                                   |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1619, in _try_deallocate_network                          |</div><div>|                                      |     self._deallocate_network(context, instance, requested_networks)                                                               |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1463, in _deallocate_network                              |</div><div>|                                      |     context, instance, requested_networks=requested_networks)                                                                     |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 93, in wrapped                                                |</div><div>|                                      |     return func(self, context, *args, **kwargs)                                                                                   |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 317, in deallocate_for_instance                               |</div><div>|                                      |     self.network_rpcapi.deallocate_for_instance(context, **args)                                                                  |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/network/rpcapi.py", line 193, in deallocate_for_instance                            |</div><div>|                                      |     host=host, requested_networks=requested_networks)                                                                             |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/rpcclient.py", line 85, in call                                                     |</div><div>|                                      |     return self._invoke(self.proxy.call, ctxt, method, **kwargs)                                                                  |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/rpcclient.py", line 63, in _invoke                                                  |</div><div>|                                      |     return cast_or_call(ctxt, msg, **self.kwargs)                                                                                 |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/proxy.py", line 126, in call                                   |</div><div>|                                      |     result = rpc.call(context, real_topic, msg, timeout)                                                                          |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/__init__.py", line 139, in call                                |</div><div>|                                      |     return _get_impl().call(CONF, context, topic, msg, timeout)                                                                   |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/impl_kombu.py", line 816, in call                              |</div><div>|                                      |     rpc_amqp.get_connection_pool(conf, Connection))                                                                               |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 574, in call                                    |</div><div>|                                      |     rv = list(rv)                                                                                                                 |</div><div>|                                      |   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 539, in __iter__                                |</div><div>|                                      |     raise result                                                                                                                  |</div><div>|                                      | ', u'created': u'2013-10-23T11:40:29Z'}                                                                                           |</div><div>| OS-EXT-STS:power_state               | 0                                                                                                                                 |</div><div>| OS-EXT-AZ:availability_zone          | nova                                                                                                                              |</div><div>| config_drive                         |                                                                                                                                   |</div><div>+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+</div><div>root@controller:~#</div><div> </div><div> </div><div>root@controller:~# nova service-list</div><div>+------------------+------------+----------+---------+-------+----------------------------+-----------------+</div><div>| Binary           | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason |</div><div>+------------------+------------+----------+---------+-------+----------------------------+-----------------+</div><div>| nova-cert        | controller | internal | enabled | up    | 2013-10-23T11:41:59.000000 | None            |</div><div>| nova-consoleauth | controller | internal | enabled | up    | 2013-10-23T11:42:02.000000 | None            |</div><div>| nova-scheduler   | controller | internal | enabled | up    | 2013-10-23T11:42:04.000000 | None            |</div><div>| nova-conductor   | controller | internal | enabled | up    | 2013-10-23T11:42:00.000000 | None            |</div><div>| nova-network     | compute1   | internal | enabled | up    | 2013-10-23T11:42:04.000000 | None            |</div><div>| nova-network     | compute2   | internal | enabled | up    | 2013-10-23T11:41:56.000000 | None            |</div><div>| nova-compute     | compute1   | nova     | enabled | up    | 2013-10-23T11:41:58.000000 | None            |</div><div>| nova-compute     | compute2   | nova     | enabled | up    | 2013-10-23T11:42:00.000000 | None            |</div><div>+------------------+------------+----------+---------+-------+----------------------------+-----------------+</div><div> </div><div>root@compute1:~# ifconfig -a</div><div>eth0      Link encap:Ethernet  HWaddr b8:ca:3a:ec:66:8c</div><div>          inet6 addr: fe80::baca:3aff:feec:668c/64 Scope:Link</div><div>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</div><div>          RX packets:56 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:1000</div><div>          RX bytes:6989 (6.9 KB)  TX bytes:4298 (4.2 KB)</div><div>          Interrupt:34 Memory:d1000000-d17fffff</div><div> </div><div>eth1      Link encap:Ethernet  HWaddr b8:ca:3a:ec:66:8e</div><div>          BROADCAST MULTICAST  MTU:1500  Metric:1</div><div>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:1000</div><div>          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)</div><div>          Interrupt:36 Memory:d2000000-d27fffff</div><div> </div><div>eth2      Link encap:Ethernet  HWaddr b8:ca:3a:ec:66:90</div><div>          BROADCAST MULTICAST  MTU:1500  Metric:1</div><div>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:1000</div><div>          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)</div><div>          Interrupt:36 Memory:d3000000-d37fffff</div><div> </div><div>eth3      Link encap:Ethernet  HWaddr b8:ca:3a:ec:66:92</div><div>          BROADCAST MULTICAST  MTU:1500  Metric:1</div><div>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:1000</div><div>          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)</div><div>          Interrupt:37 Memory:d4000000-d47fffff</div><div> </div><div>eth4      Link encap:Ethernet  HWaddr 00:0a:f7:24:1e:40</div><div>          inet addr:10.10.10.182  Bcast:10.10.10.255  Mask:255.255.255.0</div><div>          inet6 addr: fe80::20a:f7ff:fe24:1e40/64 Scope:Link</div><div>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</div><div>          RX packets:551 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:476 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:1000</div><div>          RX bytes:95077 (95.0 KB)  TX bytes:70754 (70.7 KB)</div><div>          Interrupt:72 Memory:c8000000-c87fffff</div><div> </div><div>eth5      Link encap:Ethernet  HWaddr 00:0a:f7:24:1e:42</div><div>          BROADCAST MULTICAST  MTU:1500  Metric:1</div><div>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:1000</div><div>          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)</div><div>          Interrupt:76 Memory:c9000000-c97fffff</div><div> </div><div>lo        Link encap:Local Loopback</div><div>          inet addr:127.0.0.1  Mask:255.0.0.0</div><div>          inet6 addr: ::1/128 Scope:Host</div><div>          UP LOOPBACK RUNNING  MTU:16436  Metric:1</div><div>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:0</div><div>          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)</div><div> </div><div>virbr0    Link encap:Ethernet  HWaddr b2:43:fa:53:cc:11</div><div>          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0</div><div>          UP BROADCAST MULTICAST  MTU:1500  Metric:1</div><div>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0</div><div>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</div><div>          collisions:0 txqueuelen:0</div><div>          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)</div><div> </div><div> </div></div><div>My internal NIC is eth4 and eth0 will be the bridge/public interface.</div><div> </div><div><span><div style="font-size: 10pt; font-family: verdana; line-height: 1.5; "><div style="font-size: 22px; "><font size="2"></font> </div><div><div></div></div></div></span></div>_______________________________________________<br>Mailing list:<span class="Apple-converted-space"> </span><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>Post to     :<span class="Apple-converted-space"> </span><a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>Unsubscribe :<span class="Apple-converted-space"> </span><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br></div></blockquote></div><br></div></body></html>