Ask Your Question
0

How to make nova create bridge br100 on the compute nodes automatically?

asked 2013-10-23 07:04:59 -0500

Dongjh gravatar image

updated 2013-10-25 16:42:32 -0500

smaffulli gravatar image

I'm trying to install openstack on Ubuntu 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?

root@controller:~# nova image-list
+--------------------------------------+--------------+--------+--------+
| ID                                   | Name         | Status | Server |
+--------------------------------------+--------------+--------+--------+
| 26fa8866-d075-444d-9844-61b7c22e724b | CirrOS 0.3.1 | ACTIVE |        |
+--------------------------------------+--------------+--------+--------+

root@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@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 ...
(more)
edit retag flag offensive close merge delete

Comments

My platform is Ubuntu, not Redhat/CentOS.

Dongjh gravatar imageDongjh ( 2013-10-24 07:56:53 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-10-24 06:04:09 -0500

sngirame gravatar image

updated 2013-10-24 06:04:44 -0500

Please refer this- http://docs.openstack.org/trunk/install-guide/install/yum/content/basics-networking.html Have you stopped network manager service? If not try stopping it & reboot

edit flag offensive delete link more
0

answered 2013-10-25 16:43:29 -0500

smaffulli gravatar image

Have you already checked other questions on this site, like https://ask.openstack.org/en/question/6269/how-to-bring-br100-up-persistently/?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-10-23 07:04:59 -0500

Seen: 5,299 times

Last updated: Oct 25 '13