Nova+Quantum+Openvswitch, two physical hosts, create VM, error

Asked by Havent

I have two physical hosts, to create Nova+Quantum+Openvswitch. Both of the two hosts are installed all nova services. cc202 is the controller node and cc201 is the compute node.
cc202:
# nova-manage service list
2012-05-17 16:01:51 DEBUG nova.utils [req-9c491041-a017-4b74-97eb-57325ceb3963 None None] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from (pid=5151) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
Binary Host Zone Status State Updated_At
nova-compute cc202 nova enabled :-) 2012-05-17 08:01:32
nova-network cc202 nova enabled :-) 2012-05-17 08:01:47
nova-scheduler cc202 nova enabled :-) 2012-05-17 08:01:47
nova-consoleauth cc202 nova enabled :-) 2012-05-17 08:01:47
nova-scheduler cc201 nova enabled :-) 2012-05-17 08:01:47
nova-compute cc201 nova enabled :-) 2012-05-17 08:01:50
nova-network cc201 nova enabled :-) 2012-05-17 08:01:47

cc201:
# nova-manage service list
2012-05-17 16:02:25 DEBUG nova.utils [req-fd82780f-1ca1-4ca3-9d01-e4c9a14998b4 None None] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from (pid=27584) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
Binary Host Zone Status State Updated_At
nova-compute cc202 nova enabled :-) 2012-05-17 08:02:15
nova-network cc202 nova enabled :-) 2012-05-17 08:02:17
nova-scheduler cc202 nova enabled :-) 2012-05-17 08:02:17
nova-consoleauth cc202 nova enabled :-) 2012-05-17 08:02:17
nova-scheduler cc201 nova enabled :-) 2012-05-17 08:02:17
nova-compute cc201 nova enabled :-) 2012-05-17 08:02:24
nova-network cc201 nova enabled :-) 2012-05-17 08:02:17

is that normal? all services except nova-consoleauth had been double created!
And when I created VM on cc202, It wasn't successful.

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
Somik Behera
Solved:
Last query:
Last reply:
Revision history for this message
Best Somik Behera (somikbehera) said :
#1

This is not normal, I assume you have followed and incorrect install process. I would check docs.openstack.org or devstack.org's instructions on multi-node install.

If devstack is not stable, I would file an issue on devstack.

Thanks,
Somik

Revision history for this message
David Medberry (med) said :
#2

Havent:

I'll reiterate what Somik says, this is NOT a normal configuration.

Take a look at what devstack recommends and understand that your second compute node can be much simpler than the first.

You might also want to refer to the Admin Guide and one of the 3rd party install guides (maybe this one:
https://lists.launchpad.net/openstack/msg10802.html

Revision history for this message
Havent (guestly) said :
#3

I just follow this https://lists.launchpad.net/openstack/pdfuNjHGvU5UA.pdf instructions, but has that result :-(

Revision history for this message
Havent (guestly) said :
#4

I replace the nova.conf file with https://lists.launchpad.net/openstack/pdfuNjHGvU5UA.pdf mentioned, and now nova-compute server doesn't work on my second physical host essex-2!
nova-compute.log:

2012-05-18 09:53:37 CRITICAL nova [-] Unable to read from monitor: Connection reset by peer
2012-05-18 09:53:37 TRACE nova Traceback (most recent call last):
2012-05-18 09:53:37 TRACE nova File "/usr/bin/nova-compute", line 49, in <module>
2012-05-18 09:53:37 TRACE nova service.wait()
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 413, in wait
2012-05-18 09:53:37 TRACE nova _launcher.wait()
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 131, in wait
2012-05-18 09:53:37 TRACE nova service.wait()
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait
2012-05-18 09:53:37 TRACE nova return self._exit_event.wait()
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2012-05-18 09:53:37 TRACE nova return hubs.get_hub().switch()
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch
2012-05-18 09:53:37 TRACE nova return self.greenlet.switch()
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main
2012-05-18 09:53:37 TRACE nova result = function(*args, **kwargs)
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 101, in run_server
2012-05-18 09:53:37 TRACE nova server.start()
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 162, in start
2012-05-18 09:53:37 TRACE nova self.manager.init_host()
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 247, in init_host
2012-05-18 09:53:37 TRACE nova self.reboot_instance(context, instance['uuid'])
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
2012-05-18 09:53:37 TRACE nova return f(*args, **kw)
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 153, in decorated_function
2012-05-18 09:53:37 TRACE nova function(self, context, instance_uuid, *args, **kwargs)
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, in decorated_function
2012-05-18 09:53:37 TRACE nova sys.exc_info())
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-05-18 09:53:37 TRACE nova self.gen.next()
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 171, in decorated_function
2012-05-18 09:53:37 TRACE nova return function(self, context, instance_uuid, *args, **kwargs)
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 898, in reboot_instance
2012-05-18 09:53:37 TRACE nova reboot_type)
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
2012-05-18 09:53:37 TRACE nova return f(*args, **kw)
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 718, in reboot
2012-05-18 09:53:37 TRACE nova if self._soft_reboot(instance):
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 754, in _soft_reboot
2012-05-18 09:53:37 TRACE nova dom.create()
2012-05-18 09:53:37 TRACE nova File "/usr/lib/python2.7/dist-packages/libvirt.py", line 551, in create
2012-05-18 09:53:37 TRACE nova if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
2012-05-18 09:53:37 TRACE nova libvirtError: Unable to read from monitor: Connection reset by peer
2012-05-18 09:53:37 TRACE nova

Revision history for this message
yong sheng gong (gongysh) said :
#5

kill libvirt and restart it.

Revision history for this message
Havent (guestly) said :
#6

Thanks Somik Behera, that solved my question.