Hi all
I wonder if you can give me a hand as i am new to openstack
I have followed the instructions on the install guide to install 3 nodes, I have got the dashboard installed ok and can add networks, and routers but when i try to run an instance I get the error No Valid hosts
here is the output from this command tail -f /var/log/nova/nova-scheduler.log | grep ERROR
2014-12-08 11:36:13.762 2673 ERROR nova.scheduler.filter_scheduler [req-d77194d4 -a5b2-4185-ab6e-e9a12a5024d5 0b188de927e34893acd94a489fb1e167 d0d944054e504a7eb2 ab114c0de98d63] [instance: 61db67f6-88bb-4c2d-924e-da82452c04c4] Error from last host: compute1 (node compute1): [u'Traceback (most recent call last):\n', u' F ile "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1333, in _b uild_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.7 /dist-packages/nova/compute/manager.py", line 401, in decorated_function\n re turn function(self, context, args, *kwargs)\n', u' File "/usr/lib/python2.7/d ist-packages/nova/compute/manager.py", line 1745, in _spawn\n LOG.exception(_ (\'Instance failed to spawn\'), instance=instance)\n', u' File "/usr/lib/python 2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.7/di st-packages/nova/compute/manager.py", line 1742, in _spawn\n block_device_inf o)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2288, in spawn\n admin_pass=admin_password)\n', u' File "/usr/lib/pytho n2.7/dist-packages/nova/virt/libvirt/driver.py", line 2657, in _create_image\n project_id=instance[\'project_id\'])\n', u' File "/usr/lib/python2.7/dist-pac kages/nova/virt/libvirt/imagebackend.py", line 192, in cache\n args, *kwarg s)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend .py", line 383, in create_image\n prepare_template(target=base, max_size=size , args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/nova/openstack /common/lockutils.py", line 249, in inner\n return f(args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 182, in fetch_func_sync\n fetch_func(target=target, args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/utils.py", line 653, i n fetch_image\n max_size=max_size)\n', u' File "/usr/lib/python2.7/dist-pack ages/nova/virt/images.py", line 78, in fetch_to_raw\n max_size=max_size)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/images.py", line 72, in fet ch\n image_service.download(context, image_id, dst_path=path)\n', u' File "/ usr/lib/python2.7/dist-packages/nova/image/glance.py", line 331, in download\n _reraise_translated_image_exception(image_id)\n', u' File "/usr/lib/python2.7 /dist-packages/nova/image/glance.py", line 329, in download\n image_chunks = self._client.call(context, 1, \'data\', image_id)\n', u' File "/usr/lib/python2 .7/dist-packages/nova/image/glance.py", line 209, in call\n return getattr(cl ient.images, method)(args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-pack ages/glanceclient/v1/images.py", line 127, in data\n % urllib.quote(str(image _id)))\n', u' File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.p y", line 289, in raw_request\n return self._http_request(url, method, **kwarg s)\n', u' File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 249, in _http_request\n raise exc.from_response(resp, body_str)\n', u'Im ageNotAuthorized: Not authorized for image 844227bc-f161-4af6-92da-b8c7a4dc9fbd. \n'] 2014-12-08 11:36:13.769 2673 WARNING nova.scheduler.utils [req-d77194d4-a5b2-418 5-ab6e-e9a12a5024d5 0b188de927e34893acd94a489fb1e167 d0d944054e504a7eb2ab114c0de 98d63] [instance: 61db67f6-88bb-4c2d-924e-da82452c04c4] Setting instance to ERRO R state.
i also get a lot of debug messages appear on the screen when i run nova-compute service list nova-manage service list 2014-12-08 11:48:06.976 12821 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db __new__ /usr/lib/python2.7/dist-packages/nova/servicegroup/api.py:65 2014-12-08 11:48:07.081 12821 DEBUG stevedore.extension [-] found extension EntryPoint.parse('file = nova.image.download.file') _load_plugins /usr/lib/python2.7/dist-packages/stevedore/extension.py:156 2014-12-08 11:48:07.109 12821 DEBUG stevedore.extension [-] found extension EntryPoint.parse('file = nova.image.download.file') _load_plugins /usr/lib/python2.7/dist-packages/stevedore/extension.py:156 Binary Host Zone Status State Updated_At 2014-12-08 11:48:07.849 12821 DEBUG nova.servicegroup.api [req-70f5ce0b-a6ed-4071-ac11-d63d79b0ae73 None None] Check if the given member [{'binary': u'nova-cert', 'availability_zone': 'internal', 'deleted': 0L, 'created_at': datetime.datetime(2014, 12, 4, 10, 15, 26), 'updated_at': datetime.datetime(2014, 12, 8, 11, 48, 7), 'report_count': 4810L, 'topic': u'cert', 'host': u'controller1', 'disabled': False, 'deleted_at': None, 'disabled_reason': None, 'id': 1L}] is part of the ServiceGroup, is up service_is_up /usr/lib/python2.7/dist-packages/nova/servicegroup/api.py:116 2014-12-08 11:48:07.850 12821 DEBUG nova.servicegroup.drivers.db [req-70f5ce0b-a6ed-4071-ac11-d63d79b0ae73 None None] DB_Driver.is_up last_heartbeat = 2014-12-08 11:48:07 elapsed = 0.850147 is_up /usr/lib/python2.7/dist-packages/nova/servicegroup/drivers/db.py:71 nova-cert controller1 internal enabled :-) 2014-12-08 11:48:07 2014-12-08 11:48:07.850 12821 DEBUG nova.servicegroup.api [req-70f5ce0b-a6ed-4071-ac11-d63d79b0ae73 None None] Check if the given member [{'binary': u'nova-consoleauth', 'availability_zone': 'internal', 'deleted': 0L, 'created_at': datetime.datetime(2014, 12, 4, 10, 15, 53), 'updated_at': datetime.datetime(2014, 12, 8, 11, 48, 7), 'report_count': 4808L, 'topic': u'consoleauth', 'host': u'controller1', 'disabled': False, 'deleted_at': None, 'disabled_reason': None, 'id': 2L}] is part of the ServiceGroup, is up service_is_up /usr/lib/python2.7/dist-packages/nova/servicegroup/api.py:116 2014-12-08 11:48:07.851 12821 DEBUG nova.servicegroup.drivers.db [req-70f5ce0b-a6ed-4071-ac11-d63d79b0ae73 None None] DB_Driver.is_up last_heartbeat = 2014-12-08 11:48:07 elapsed = 0.851013 is_up /usr/lib/python2.7/dist-packages/nova/servicegroup/drivers/db.py:71 nova-consoleauth controller1 internal enabled :-) 2014-12-08 11:48:07 2014-12-08 11:48:07.851 12821 DEBUG nova.servicegroup.api [req-70f5ce0b-a6ed-4071-ac11-d63d79b0ae73 None None] Check if the given member [{'binary': u'nova-scheduler', 'availability_zone': 'internal', 'deleted': 0L, 'created_at': datetime.datetime(2014, 12, 4, 10, 16, 11), 'updated_at': datetime.datetime(2014, 12, 8, 11, 48, 7), 'report_count': 4807L, 'topic': u'scheduler', 'host': u'controller1', 'disabled': False, 'deleted_at': None, 'disabled_reason': None, 'id': 3L}] is part of the ServiceGroup, is up service_is_up /usr/lib/python2.7/dist-packages/nova/servicegroup/api.py:116 2014-12-08 11:48:07.851 12821 DEBUG nova.servicegroup.drivers.db [req-70f5ce0b-a6ed-4071-ac11-d63d79b0ae73 None None] DB_Driver.is_up last_heartbeat = 2014-12-08 11:48:07 elapsed = 0.851661 is_up /usr/lib/python2.7/dist-packages/nova/servicegroup/drivers/db.py:71 nova-scheduler controller1 internal enabled :-) 2014-12-08 11:48:07 2014-12-08 11:48:07.852 12821 DEBUG nova.servicegroup.api [req-70f5ce0b-a6ed-4071-ac11-d63d79b0ae73 None None] Check if the given member [{'binary': u'nova-conductor', 'availability_zone': 'internal', 'deleted': 0L, 'created_at': datetime.datetime(2014, 12, 4, 10, 16, 21), 'updated_at': datetime.datetime(2014, 12, 8, 11, 48, 7), 'report_count': 4808L, 'topic': u'conductor', 'host': u'controller1', 'disabled': False, 'deleted_at': None, 'disabled_reason': None, 'id': 4L}] is part of the ServiceGroup, is up service_is_up /usr/lib/python2.7/dist-packages/nova/servicegroup/api.py:116 2014-12-08 11:48:07.852 12821 DEBUG nova.servicegroup.drivers.db [req-70f5ce0b-a6ed-4071-ac11-d63d79b0ae73 None None] DB_Driver.is_up last_heartbeat = 2014-12-08 11:48:07 elapsed = 0.852286 is_up /usr/lib/python2.7/dist-packages/nova/servicegroup/drivers/db.py:71 nova-conductor controller1 internal enabled :-) 2014-12-08 11:48:07 2014-12-08 11:48:07.852 12821 DEBUG nova.servicegroup.api [req-70f5ce0b-a6ed-4071-ac11-d63d79b0ae73 None None] Check if the given member [{'binary': u'nova-compute', 'availability_zone': 'nova', 'deleted': 0L, 'created_at': datetime.datetime(2014, 12, 4, 10, 39, 54), 'updated_at': datetime.datetime(2014, 12, 8, 11, 48, 6), 'report_count': 3040L, 'topic': u'compute', 'host': u'compute1', 'disabled': False, 'deleted_at': None, 'disabled_reason': None, 'id': 5L}] is part of the ServiceGroup, is up service_is_up /usr/lib/python2.7/dist-packages/nova/servicegroup/api.py:116 2014-12-08 11:48:07.853 12821 DEBUG nova.servicegroup.drivers.db [req-70f5ce0b-a6ed-4071-ac11-d63d79b0ae73 None None] DB_Driver.is_up last_heartbeat = 2014-12-08 11:48:06 elapsed = 1.853084 is_up /usr/lib/python2.7/dist-packages/nova/servicegroup/drivers/db.py:71 nova-compute compute1 nova enabled :-) 2014-12-08 11:48:06
any help in troubleshooting this would be greatly received thanks