cannot remove host from aggregate

asked 2020-01-06 11:56:18 -0600

Daryl gravatar image

updated 2020-01-06 11:56:47 -0600

This is on Stein. I had two aggregates and deleted one; now I can't delete the other, because I can't remove the host from it:

stack@devstack:~/devstack$ openstack aggregate list
+----+------+-------------------+
| ID | Name | Availability Zone |
+----+------+-------------------+
|  2 | agg2 | AZ2               |
+----+------+-------------------+
stack@devstack:~/devstack$ openstack aggregate show agg2
+-------------------+----------------------------+
| Field             | Value                      |
+-------------------+----------------------------+
| availability_zone | AZ2                        |
| created_at        | 2019-12-19T17:11:17.000000 |
| deleted           | False                      |
| deleted_at        | None                       |
| hosts             | [u'compute-01']            |
| id                | 2                          |
| name              | agg2                       |
| properties        |                            |
| updated_at        | None                       |
+-------------------+----------------------------+
stack@devstack:~/devstack$ openstack aggregate remove host agg2 compute-01
Cannot remove host compute-01 in aggregate 2 (HTTP 404) (Request-ID: req-0c968aa5-d16a-41d7-ada7-46e165d17905)
stack@devstack:~/devstack$ openstack compute service list
+----+------------------+------------+----------+---------+-------+----------------------------+
| ID | Binary           | Host       | Zone     | Status  | State | Updated At                 |
+----+------------------+------------+----------+---------+-------+----------------------------+
|  2 | nova-scheduler   | devstack   | internal | enabled | up    | 2020-01-06T17:36:05.000000 |
|  4 | nova-consoleauth | devstack   | internal | enabled | up    | 2020-01-06T17:36:14.000000 |
|  6 | nova-conductor   | devstack   | internal | enabled | up    | 2020-01-06T17:36:09.000000 |
|  1 | nova-conductor   | devstack   | internal | enabled | up    | 2020-01-06T17:36:08.000000 |
|  2 | nova-compute     | devstack   | nova     | enabled | up    | 2020-01-06T17:36:07.000000 |
|  3 | nova-compute     | compute-01 | AZ2      | enabled | up    | 2020-01-06T17:36:09.000000 |
+----+------------------+------------+----------+---------+-------+----------------------------+

"openstack server list" returns empty, so I know the instance that was running on compute-01 is no more. Searching on this problem returned some older issues that were resolve using direct database queries, which I am not afraid of, but it seems this should be simpler. Any help would be appreciated.

edit retag flag offensive close merge delete

Comments

Can you check logs details error and confirm you are using admin rc

piyushsrivastava gravatar imagepiyushsrivastava ( 2020-01-06 12:23:06 -0600 )edit

My error.log file has one line in it. And just to make sure I'm looking in the right place, the log files are in /opt/stack/log. This bothers me because none of the files there have a data of today, except for dstat-csv.log. OS_USERNAME, OS_TENANT_NAME, and OS_PROJECT_NAME are all "admin".

Daryl gravatar imageDaryl ( 2020-01-06 13:57:55 -0600 )edit

Devstack uses the journald to keep logs. See https://docs.openstack.org/devstack/l....

Bernd Bausch gravatar imageBernd Bausch ( 2020-01-06 17:40:17 -0600 )edit

Thanks! That looks really useful.

Daryl gravatar imageDaryl ( 2020-01-07 10:05:59 -0600 )edit