Ask Your Question
0

Ocata Nova: One hypervisor not working

asked 2018-01-15 09:24:08 -0500

andrzej gravatar image

updated 2018-01-21 06:40:58 -0500

I set up Openstack Ocata on Centos7 with three nodes: 1 controller and 2 compute. I am able to create VM on compute2 node but not in compute1. openstack network agent list shows all up and Alive openstack compute service list shows all enabled and up. I have two compute nodes and I disabled second one to validate :

| 16 | nova-compute     | compute1   | nova     | enabled  | up    | 2018-01-07T16:00:46.000000 | 
| 17 | nova-compute     | compute2   | nova     | disabled | up    | 2018-01-07T16:00:44.000000 |

When I want to create an instance using such settings I am getting following error:

>     Message No valid host was found. There are not enough hosts available. Code 500 Details File
> "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line
> 872, in schedule_and_build_instances
> request_specs[0].to_legacy_filter_properties_dict()) File
> "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line
> 599, in _schedule_instances hosts =
> self.scheduler_client.select_destinations(context, spec_obj) File
> "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 371,
> in wrapped return func(*args, **kwargs) File
> "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py",
> line 51, in select_destinations return

> self.queryclient.select_destinations(context, spec_obj) File
> "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py",
> line 37, in __run_method return getattr(self.instance, __name)(*args,
> **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py",
> line 32, in select_destinations return
> self.scheduler_rpcapi.select_destinations(context, spec_obj) File
> "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 129,
> in select_destinations return cctxt.call(ctxt, 'select_destinations',
> **msg_args) File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line
> 169, in call retry=self.retry) File
> "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line
    > 97, in _send timeout=timeout, retry=retry) File

> "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py",
> line 578, in send retry=retry) File
> "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py",
> line 569, in _send raise result Created 7 Jan 2018, 4:08 p.m.

grep 5c33b0ce-b72c-4da8-9b68-c65e35836bc8 nova/nova-api.log

2018-01-07 17:09:16.568 1960 INFO nova.osapi_compute.wsgi.server [req-bf30e8d6-2615-4383-a73d-74dfff867859 8bd3e4905ffb4f698e2476d9080a7d90 4403825f213a4bf2be42afbb4ecc20b4 - default default] 172.19.254.50 "GET /v2.1/servers/5c33b0ce-b72c-4da8-9b68-c65e35836bc8 HTTP/1.1" status: 200 len: 3483 time:
0.2411959 2018-01-07 17:09:16.640 1960 INFO nova.osapi_compute.wsgi.server [req-65b76055-9262-42b3-934e-8416d3f49e83 8bd3e4905ffb4f698e2476d9080a7d90 4403825f213a4bf2be42afbb4ecc20b4 - default default] 172.19.254.50 "GET /v2.1/servers/5c33b0ce-b72c-4da8-9b68-c65e35836bc8/os-volume_attachments HTTP/1.1" status: 200 len: 357 time:
0.06921

grep req-a3542a2c-1518-4ac2-838c-26f34126a7a3 nova/nova-scheduler.log

2018-01-07 17:08:44.491 1292 INFO nova.filters [req-a3542a2c-1518-4ac2-838c-26f34126a7a3 32a3f8c79c98406dbacd65abfadb0b63 4403825f213a4bf2be42afbb4ecc20b4 - - -] Filter ComputeFilter returned 0 hosts 2018-01-07 17:08:44.491 1292 INFO nova.filters [req-a3542a2c-1518-4ac2-838c-26f34126a7a3 32a3f8c79c98406dbacd65abfadb0b63 4403825f213a4bf2be42afbb4ecc20b4 - - -] Filtering removed all hosts for the request with instance ID '5c33b0ce-b72c-4da8-9b68-c65e35836bc8'. Filter results: ['RetryFilter: (start: 1, end: 1)', 'AvailabilityZoneFilter: (start: 1, end: 1)', 'RamFilter: (start: 1, end: 1)', 'DiskFilter: (start: 1, end: 1)', 'ComputeFilter: (start: 1, end: 0)']

nova-manage cell_v2 discover_hosts --verbose

Found 3 cell mappings.
Skipping cell0 since it does not contain hosts.
Getting compute nodes from cell 'cell1': 153bbdad-f5c9-4926-b185-87b5bf4fe528
Found 2 computes in cell: 153bbdad-f5c9-4926-b185-87b5bf4fe528
Checking host ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2018-01-16 03:21:14 -0500

ppeereb1 gravatar image

Does the nova-compute log on the hypervisor node have any errors?

edit flag offensive delete link more

Comments

Nova-compute log above. I tried to find any issues with WARNING nova.scheduler.client.report but all threads point to placement service which looks fine in my case. I cannot find as well difference between compute1 and compute2. Both were set up using ansible playbook.

andrzej gravatar imageandrzej ( 2018-01-21 06:23:14 -0500 )edit

I had the same issue once. I just removed the compute from the service list (nova service-delete <compute-id>. Than restart nova-compute service on compute node and rerun nova-manage cell_v2 discover_hosts --verbose

ppeereb1 gravatar imageppeereb1 ( 2018-01-25 06:23:00 -0500 )edit

I did what u mentioned but it did not help. Still after disabling compute 2 I got: No valid host was found. There are not enough hosts available. Currently set up compute3... I hope new node will work fine.

andrzej gravatar imageandrzej ( 2018-01-27 07:30:36 -0500 )edit

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: 2018-01-15 09:24:08 -0500

Seen: 282 times

Last updated: Jan 16 '18