<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em; MARGIN-TOP: 0px
}
OL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
UL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
P {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
BODY {
FONT-SIZE: 10.5pt; FONT-FAMILY: ΢ÈíÑźÚ; COLOR: #000000; LINE-HEIGHT: 1.5
}
</STYLE>
<META name=GENERATOR content="MSHTML 10.00.9200.16721"></HEAD>
<BODY style="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; COLOR: #000000; LINE-HEIGHT: 1.5">
<DIV style="FONT-SIZE: 22px"><FONT size=2></FONT> </DIV>
<DIV>
<DIV></DIV></DIV></DIV></SPAN></DIV></BODY></HTML>