Nova Scheduler: Failed to schedule_run_instance: No valid host was found

Asked by Han-sebastien on 2012-04-03

Hi guys,

I already aware of this issue here: https://answers.launchpad.net/nova/+question/192511

I'm running Ubuntu Precise Beta and Essex.

Same issue but different output from the log:

2012-04-03 17:02:58 DEBUG nova.rpc.amqp [-] received {u'_context_roles': [u'Member', u'swiftoperator', u'admin'], u'_context_request_id': u'req-73ab481b-7f64-4a6c-9e60-a2224cb04623', u'_context_read_deleted': u'no', u'args': {u'request_spec': {u'num_instances': 1, u'block_device_mapping': [], u'image': {u'status': u'active', u'name': u'ubuntu 11.10 i386 Server', u'deleted': False, u'container_format': u'ami', u'created_at': u'2012-04-03 14:42:57', u'disk_format': u'ami', u'updated_at': u'2012-04-03 14:43:11', u'id': u'20efbdfd-558a-4288-8f9d-c5bd3635f8c1', u'min_ram': u'0', u'checksum': u'7845e53acd781aa49c0c4f01d9b03f55', u'min_disk': u'0', u'is_public': True, u'deleted_at': None, u'properties': {u'kernel_id': u'8491724e-63d4-43d0-b9d9-fbdb32fd3073', u'distro': u'ubuntu 11.10'}, u'size': 1476395008}, u'instance_type': {u'root_gb': 0, u'deleted_at': None, u'name': u'm1.xxtiny', u'deleted': False, u'created_at': u'2012-04-03 15:00:04', u'ephemeral_gb': 0, u'updated_at': None, u'memory_mb': 128, u'vcpus': 1, u'extra_specs': {}, u'swap': 0, u'rxtx_factor': 1.0, u'flavorid': u'6', u'vcpu_weight': None, u'id': 6}, u'instance_properties': {u'vm_state': u'building', u'availability_zone': None, u'launch_index': 0, u'ramdisk_id': u'', u'instance_type_id': 6, u'user_data': u'', u'vm_mode': None, u'reservation_id': u'r-5d5ugd7c', u'display_name': u'1', u'uuid': u'bdcc85ac-d3d7-48d7-9f4b-07dd97c02d45', u'display_description': u'1', u'key_data': u'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCzasl6/VU6MukFYInaLINPePP1rJNq7hUkZvREP7+e5QM0WpkeZd8rPqD78r1NGqJDbMNDUSWhAYV5hpaVpXDJkANi7OZRybYNh22u0cUESkpO7eZDdIa/7emerqjT45WKiRegHV6F2JodocmGPT69SUlo4bNeDo6alJoLGozyPw== nova@ubuntu\n', u'power_state': 0, u'progress': 0, u'project_id': u'ce9adc703a3f468f9540a95282b6bde9', u'metadata': {}, u'ephemeral_gb': 0, u'access_ip_v6': None, u'access_ip_v4': None, u'kernel_id': u'8491724e-63d4-43d0-b9d9-fbdb32fd3073', u'key_name': u'test', u'user_id': u'd78ff7fdf0e540f1acccbb0b9b2e4210', u'config_drive_id': u'', u'architecture': None, u'root_gb': 0, u'locked': False, u'launch_time': u'2012-04-03T15:02:58Z', u'memory_mb': 128, u'vcpus': 1, u'image_ref': u'20efbdfd-558a-4288-8f9d-c5bd3635f8c1', u'root_device_name': None, u'auto_disk_config': None, u'os_type': None, u'config_drive': u''}, u'security_group': [u'default']}, u'is_first_time': True, u'filter_properties': {u'scheduler_hints': {}}, u'topic': u'compute', u'admin_password': '<SANITIZED>', u'injected_files': [], u'requested_networks': None}, u'_context_auth_token': '<SANITIZED>', u'_context_is_admin': True, u'_context_project_id': u'ce9adc703a3f468f9540a95282b6bde9', u'_context_timestamp': u'2012-04-03T15:02:58.212216', u'_context_user_id': u'd78ff7fdf0e540f1acccbb0b9b2e4210', u'method': u'run_instance', u'_context_remote_address': u'172.16.0.1'} from (pid=974) _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160

2012-04-03 17:02:58 DEBUG nova.rpc.amqp [req-73ab481b-7f64-4a6c-9e60-a2224cb04623 d78ff7fdf0e540f1acccbb0b9b2e4210 ce9adc703a3f468f9540a95282b6bde9] unpacked context: {'user_id': u'd78ff7fdf0e540f1acccbb0b9b2e4210', 'roles': [u'Member', u'swiftoperator', u'admin'], 'timestamp': '2012-04-03T15:02:58.212216', 'auth_token': '<SANITIZED>', 'remote_address': u'172.16.0.1', 'is_admin': True, 'request_id': u'req-73ab481b-7f64-4a6c-9e60-a2224cb04623', 'project_id': u'ce9adc703a3f468f9540a95282b6bde9', 'read_deleted': u'no'} from (pid=974) _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160
2012-04-03 17:02:58 DEBUG nova.scheduler.filter_scheduler [req-73ab481b-7f64-4a6c-9e60-a2224cb04623 d78ff7fdf0e540f1acccbb0b9b2e4210 ce9adc703a3f468f9540a95282b6bde9] Attempting to build 1 instance(s) from (pid=974) schedule_run_instance /usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py:65

2012-04-03 17:02:58 WARNING nova.scheduler.manager [req-73ab481b-7f64-4a6c-9e60-a2224cb04623 d78ff7fdf0e540f1acccbb0b9b2e4210 ce9adc703a3f468f9540a95282b6bde9] Failed to schedule_run_instance: No valid host was found.

2012-04-03 17:02:58 WARNING nova.scheduler.manager [req-73ab481b-7f64-4a6c-9e60-a2224cb04623 d78ff7fdf0e540f1acccbb0b9b2e4210 ce9adc703a3f468f9540a95282b6bde9] Setting instance bdcc85ac-d3d7-48d7-9f4b-07dd97c02d45 to ERROR state.

I also tried the Vish solution with the ram_allocation_ratio, but it didn't work.
Thanks in advance.

Question information

Language:
English Edit question
Status:
Expired
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
2012-04-03
Last reply:
2012-04-19
Sumit Sengupta (sumit-sngpt) said : #1

Solved my bug (https://answers.launchpad.net/nova/+question/192511) by adding following in my nova.conf then restarting openstack. No issues yet but not sure about its side affects.

scheduler_default_filters=AllHostsFilter

Launchpad Janitor (janitor) said : #2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.