Ask Your Question
0

second compute added, command "nova-status upgrade check" warning for Check: Resource Providers

asked 2017-08-08 15:04:04 -0600

daniel hernandez gravatar image

Hi there, I want you guys asked about Cell_V2. Recently I added a second compute node to Ocata/Ubuntu deployment followed oficial Openstack guide. it was OK with only one compute node. Also now compute nodes are OK: root@controller:~# openstack compute service list

| ID | Binary | Host | Zone | Status | State | Updated At |

| 3 | nova-consoleauth | controller | internal | enabled | up | 2017-08-08T19:20:44.000000 |

| 4 | nova-scheduler | controller | internal | enabled | up | 2017-08-08T19:20:45.000000 |

| 5 | nova-conductor | controller | internal | enabled | up | 2017-08-08T19:20:44.000000 |

| 6 | nova-compute | compute | nova | enabled | up | 2017-08-08T19:20:45.000000 |

| 7 | nova-compute | compute2 | nova | enabled | up | 2017-08-08T19:20:49.000000 |

nova cell is OK too

root@controller:~# nova-manage cell_v2 list_cells

| Name | UUID |

| cell0 | 00000000-0000-0000-0000-000000000000

| cell1 | e518718f-4c4e-404f-8a4e-78e71d50c7cc |

However for command "nova-status upgrade check". there is a messages that second compute node cannot be use

| Upgrade Check Results |

| Check: Cells v2 | Result: Success | Details: None |

| Check: Placement API | Result: Success | Details: None |

| Check: Resource Providers | | Result: Warning |

| Details: There are 1 compute resource providers and 2 compute nodes in the deployment. Ideally the number of compute resource providers should equal the number of enabled compute nodes otherwise the cloud may be underutilized. |

I checked question related to cell/Placement in Ask.openstack.org but not find any similar issue answered. how can I added second or subsequently compute node to Cell_V2.

thanks in advance

edit retag flag offensive close merge delete

Comments

The added node is probably unable to get registered with the placement service. Look for relevant warning messages in its nova-compute log.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-08 18:16:24 -0600 )edit

3 answers

Sort by » oldest newest most voted
0

answered 2017-10-11 03:53:22 -0600

silently gravatar image

on new compute node ,executive as follow:

nova-manage cell_v2 discover_hosts --verbose
edit flag offensive delete link more
0

answered 2017-10-08 17:20:04 -0600

Davidshu gravatar image

updated 2017-10-08 17:22:44 -0600

Hi,

I have same problem and solve after removing inactive host from the database. Try what @daniel suggest and if doesn't fix it please try the following method:

  1. Verify if you have 2 or 1 compute node?
  2. If you have 2 compute node please check that 2 node are alive/valid.
  3. If you only have valid 1 compute node please remove the invalid host through mysql:

Login to mysql and start finding.

> mysql -u root -pyour-password
> use nova;
> select * from compute_nodes;

Look carefully and find the invalid hypervisor hostname.

> DELETE FROM compute_nodes where hypervisor_hostname='compute-node-name′;

Then remove host mapping on nova_api database:

> use nova_api;
> select * from host_mappings;
> DELETE FROM host_mappings WHERE host='compute-node-name';

And after that please try to run nova-status check upgrade, if it doesn't fix the problem please ensure that os_region_name match with your region settings in both controller and compute node. HTH

edit flag offensive delete link more
0

answered 2017-08-08 20:08:47 -0600

daniel hernandez gravatar image

Hi Bernd, I checked nova-compute log in compute2. I foung "The placement API endpoint not found. Placement is optional in Newton, but required in Ocata. Please enable the placement service before upgrading".
browsing on Ask.openstack.org for similar issue I found that issue source is "os_region_name = openstack" has to be commented or change to current region name used in deployment.

| Upgrade Check Results |

| Check: Cells v2 | | Result: Success | | Details: None |

| Check: Placement API | | Result: Success | | Details: None |

| Check: Resource Providers | | Result: Success | | Details: None |

thanks for your tip.

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: 2017-08-08 15:04:04 -0600

Seen: 458 times

Last updated: Oct 11