Ask Your Question
0

Openstack queens: minimal install, placement(?) issue.

asked 2019-02-25 16:18:49 -0500

kyleaschmitt gravatar image

I followed the minimal deployment for queens from the docs: https://docs.openstack.org/nova/queens/install/ (https://docs.openstack.org/nova/queen...)

At the verify stage I get:

+-------------------------------------------------------------------+
| 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 no compute resource providers in the Placement |
|   service but there are 3 compute nodes in the deployment.        |
|   This means no compute nodes are reporting into the              |
|   Placement service and need to be upgraded and/or fixed.         |
|   See                                                             |
|   https://docs.openstack.org/nova/latest/user/placement.html      |
|   for more details.                                               |
+-------------------------------------------------------------------+
| Check: Ironic Flavor Migration                                    |
| Result: Success                                                   |
| Details: None                                                     |
+-------------------------------------------------------------------+
| Check: API Service Version                                        |
| Result: Success                                                   |
| Details: None                                                     |
+-------------------------------------------------------------------+

The compute service list looks OK:

+----+------------------+-----------------+----------+---------+-------+----------------------------+
| ID | Binary           | Host            | Zone     | Status  | State | Updated At                 |
+----+------------------+-----------------+----------+---------+-------+----------------------------+
|  1 | nova-consoleauth |         ostack1 | internal | enabled | up    | 2019-02-25T22:00:51.000000 |
|  2 | nova-scheduler   |          ostack1 | internal | enabled | up    | 2019-02-25T22:00:55.000000 |
|  3 | nova-conductor   |         ostack1 | internal | enabled | up    | 2019-02-25T22:00:55.000000 |
| 15 | nova-compute     |         ostack2 | nova     | enabled | up    | 2019-02-25T22:00:49.000000 |
| 16 | nova-compute     |         ostack3 | nova     | enabled | up    | 2019-02-25T22:00:55.000000 |
| 17 | nova-compute     |         ostack4 | nova     | enabled | up    | 2019-02-25T22:00:57.000000 |
+----+------------------+-----------------+----------+---------+-------+----------------------------+

And nova-manage cell_v2 list_hosts looks ok to me, but this is my first time using cells:

+-----------+--------------------------------------+-----------------+
| Cell Name |              Cell UUID               |     Hostname    |
+-----------+--------------------------------------+-----------------+
|   cell1   | e2502b9a-b0d5-4dbd-a7a9-5d550e722c3a |         ostack2 |
|   cell1   | e2502b9a-b0d5-4dbd-a7a9-5d550e722c3a |         ostack3 |
|   cell1   | e2502b9a-b0d5-4dbd-a7a9-5d550e722c3a |         ostack4 |
+-----------+--------------------------------------+-----------------+

Attempts at starting a VM in that condition result in "No valid host was found...". What did I do wrong with this setup? Is there another step other than discover_hosts I missed?

Thanks --Kyle

edit retag flag offensive close merge delete

Comments

You deployed nova-compute on three nodes. While they registered with Nova, they also need to register with the Placement service. And that obviously failed.

Look for clues in the nova-compute and the placement log files.

Bernd Bausch gravatar imageBernd Bausch ( 2019-02-25 20:11:19 -0500 )edit

I think i have same problem like this, but i'm using Rocky running on 2 server with Centos. Where i can find placement.conf ?. Thanks.

battossai gravatar imagebattossai ( 2019-05-19 14:22:01 -0500 )edit

@battossai it looks like there is no placement.conf in Rocky. It’s configured in nova.conf.

See https://docs.openstack.org/nova/rocky... for deployment documentation.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-19 22:03:26 -0500 )edit

i belive i have follow this : https://docs.openstack.org/nova/rocky/install/controller-install-rdo.html (https://docs.openstack.org/nova/rocky...) with this : https://docs.openstack.org/nova/rocky/user/placement.html#deployment (https://docs.openstack.org/nova/rocky...), i just don't understand where to see, any clue ?

battossai gravatar imagebattossai ( 2019-05-20 01:32:20 -0500 )edit

It is sufficient to follow the install guide (your first URL).

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-20 03:03:43 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2019-02-26 09:34:01 -0500

kyleaschmitt gravatar image

I figured it out. As embarrassing as it is, I'll share it here so it helps someone else:

The nodes didn't have the queens repo installed. That's all.

sudo add-apt-repository -y cloud-archive:queens

And things just worked.

Now one more question: is there any way to query the host-versions from the openstack or nova-manage commands?

openstack host list and nova-manage cell_v2 list_hosts have shown all the hosts associated, even when they weren't the right version. If there's a command that shows which versions the hosts reporting in are at, it might save a lot of troubleshooting time.

Thanks! --Kyle

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: 2019-02-25 16:18:49 -0500

Seen: 74 times

Last updated: Feb 25