Ask Your Question
0

Found 0 unmapped computes in cell: 88fdcc1f-ddea-4505-a6b1-394c10708dee

asked 2018-11-22 14:11:17 -0600

najeh gravatar image

updated 2018-11-22 14:32:19 -0600

I installed rocky in ubuntu 18.04 and everything work correctly but i failed in adding compute node to controller node . when i tried to show nova-compute from contoller node using this command i recieve error

/bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

Found 2 cell mappings.

Skipping cell0 since it does not contain hosts.

Getting computes from cell 'cell1': 88fdcc1f-ddea-4505-a6b1-394c10708dee

Found 0 unmapped computes in cell: 88fdcc1f-ddea-4505-a6b1-394c10708dee

openstack compute service list --service nova-compute

Empty result

Any ideas on what I can do next?

edit retag flag offensive close merge delete

Comments

2 answers

Sort by ยป oldest newest most voted
0

answered 2018-11-23 00:51:38 -0600

updated 2018-11-23 02:47:48 -0600

@frippe75 Try to add the compute node in database manually,like below mentioned

In nova api-database, there is a table called host_mappings will there, you can manually add your compute node in that table

edit flag offensive delete link more

Comments

@Eranachandran how can i add my compute node to the compute_node table ?

can i use this command

Insert into compute_nodes (id, host_ip, mapped) values (1, 192.168.1.x, 1);

najeh gravatar imagenajeh ( 2018-11-23 08:21:53 -0600 )edit
0

answered 2018-11-22 23:17:04 -0600

frippe75 gravatar image

So interesting! I have been spending hours (days soon) trying to resolve this. I deployed the rocky release using packstack on centos 7.5.1804 and an allinone deployment. packstack succeeds but I cannot spawn an instance. Tried to redeploy after setting selinux in permissive mode. same result.

[root@openstack nova(keystone_admin)]# /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
Found 2 cell mappings.
Skipping cell0 since it does not contain hosts.
Getting computes from cell 'default': d26a5f4e-b59f-4e1b-808f-7caa29f9f5b2
Found 0 unmapped computes in cell: d26a5f4e-b59f-4e1b-808f-7caa29f9f5b2

Multiple ways of finding out the same thing...

[root@openstack nova(keystone_admin)]# nova-status upgrade check
+--------------------------------------------------------------------+
| Upgrade Check Results                                              |
+--------------------------------------------------------------------+
| Check: Cells v2                                                    |
| Result: Success                                                    |
| Details: No host mappings or compute nodes were found. Remember to |
|   run command 'nova-manage cell_v2 discover_hosts' when new        |
|   compute hosts are deployed.                                      |
+--------------------------------------------------------------------+
| Check: Placement API                                               |
| Result: Success                                                    |
| Details: None                                                      |
+--------------------------------------------------------------------+
| Check: Resource Providers                                          |
| Result: Success                                                    |
| Details: There are no compute resource providers in the Placement  |
|   service nor are there compute nodes in the database.             |
|   Remember to configure new compute nodes to report into the       |
|   Placement service. See                                           |
|   https://docs.openstack.org/nova/latest/user/placement.html       |
|   for more details.                                                |
+--------------------------------------------------------------------+

From nova-placement-api.log:

2018-11-22 16:25:02.813 28109 INFO nova.scheduler.host_manager [req-624b4df5-30e7-4eb5-bbff-f7d14f50fb13 - - - - -] Host mapping not found for host openstack.frippe.com. Not tracking instance info for this host.
2018-11-22 16:25:02.813 28109 INFO nova.scheduler.host_manager [req-624b4df5-30e7-4eb5-bbff-f7d14f50fb13 - - - - -] Received a sync request from an unknown host 'openstack.xxx.com'. Re-created its InstanceList.
2018-11-22 17:52:12.870 28109 INFO nova.scheduler.manager [req-d7b6724d-7406-4cf6-a747-f428c49aa302 e763008d9b3e49e2803d39ad1d43696e d365b3a65ba6428f86119b6f84fac7e8 - default default] Got no allocation candidates from the Placement API. This could be due to insufficient resources or a temporary occurrence as compute nodes start up.
2018-11-23 04:59:54.091 28108 INFO nova.scheduler.manager [req-1c63094b-0c63-4b26-ad1f-865777293c8e e763008d9b3e49e2803d39ad1d43696e d365b3a65ba6428f86119b6f84fac7e8 - default default] Got no allocation candidates from the Placement API. This could be due to insufficient resources or a temporary occurrence as compute nodes start up.

I do get something from service list:

[root@openstack nova(keystone_admin)]# openstack compute service list --service nova-compute
+----+--------------+----------------------+------+---------+-------+----------------------------+
| ID | Binary       | Host                 | Zone | Status  | State | Updated At                 |
+----+--------------+----------------------+------+---------+-------+----------------------------+
| 10 | nova-compute | openstack.xxx.com | nova | enabled | up    | 2018-11-23T04:14:33.000000 |
+----+--------------+----------------------+------+---------+-------+----------------------------+
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: 2018-11-22 14:11:17 -0600

Seen: 48 times

Last updated: Nov 23