Ask Your Question
0

Change hostname (dns suffix) on a controller host

asked 2020-01-30 07:39:07 -0500

frippe75 gravatar image

Hi,

Renamed (move to another dns zone) http://openstack01.lab.net -> http://openstack01.os.lab.net

So basically lost connection to alot of services.

[root@openstack01 neutron(keystone_admin)]# openstack compute service list
+----+------------------+------------------------+----------+----------+-------+----------------------------+
| ID | Binary           | Host                   | Zone     | Status   | State | Updated At                 |
+----+------------------+------------------------+----------+----------+-------+----------------------------+
| 13 | nova-compute     | openstack01.lab.net    | nova     | disabled | down  | 2020-01-30T10:07:05.000000 |
| 14 | nova-compute     | openstack02.lab.net    | nova     | disabled | down  | 2020-01-30T10:53:53.000000 |
| 15 | nova-scheduler   | openstack01.os.lab.net | internal | enabled  | up    | 2020-01-30T13:31:20.000000 |
| 17 | nova-consoleauth | openstack01.os.lab.net | internal | enabled  | up    | 2020-01-30T13:31:23.000000 |
| 18 | nova-conductor   | openstack01.os.lab.net | internal | enabled  | up    | 2020-01-30T13:31:27.000000 |
| 19 | nova-compute     | openstack01.os.lab.net | nova     | enabled  | up    | 2020-01-30T13:31:20.000000 |
+----+------------------+------------------------+----------+----------+-------+----------------------------+

Tried to disable and delete the old one after adding the compute part via nova-manage... Cannot delete since old instances are remaining on the disabled. Was hoping to clean away the instances and delete and continue using the new one.

But I guess this will/might lead to other issues since there are neutron agents running as well. Not sure how to get them "back in"... Better to wipe and reinstall this... All config is done via IP addresses but I guess they all get added in by name ...

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-01-30 07:43:16 -0500

frippe75 gravatar image

updated 2020-01-30 07:56:46 -0500

I guess start cleaning out the following...

[root@openstack01 neutron(keystone_admin)]# openstack network agent list
+--------------------------------------+----------------------+------------------------+-------------------+-------+-------+---------------------------+
| ID                                   | Agent Type           | Host                   | Availability Zone | Alive | State | Binary                    |
+--------------------------------------+----------------------+------------------------+-------------------+-------+-------+---------------------------+
| 084d903e-5351-44fc-9d07-0d48841c3364 | Metering agent       | openstack01.os.lab.net | None              | :-)   | UP    | neutron-metering-agent    |
| 188b41aa-ca76-402a-986d-627b11cbc7e3 | DHCP agent           | openstack01.lab.net    | nova              | XXX   | UP    | neutron-dhcp-agent        |
| 937da23e-607f-4603-bec9-2e5ad50df102 | Metadata agent       | openstack01.lab.net    | None              | XXX   | UP    | neutron-metadata-agent    |
| a860ab21-79b9-4224-a566-141e6ac33c62 | Loadbalancerv2 agent | openstack01.lab.net    | None              | XXX   | UP    | neutron-lbaasv2-agent     |
| b0575a84-f5d2-48c3-abba-6491b916aa67 | Metering agent       | openstack01.lab.net    | None              | XXX   | UP    | neutron-metering-agent    |
| c11a0a1d-5ee8-49bf-a63f-c568de98d3b8 | Loadbalancerv2 agent | openstack01.os.lab.net | None              | :-)   | UP    | neutron-lbaasv2-agent     |
| c20fd389-926e-4f0b-9052-c87d87d21b3e | L3 agent             | openstack01.os.lab.net | nova              | :-)   | UP    | neutron-l3-agent          |
| c88f0bba-4ea9-4e4f-9d58-c17065d37573 | Open vSwitch agent   | openstack02.lab.net    | None              | XXX   | UP    | neutron-openvswitch-agent |
| cdb8955d-2ad5-4567-bcac-6d94d348d9fa | Open vSwitch agent   | openstack01.lab.net    | None              | XXX   | UP    | neutron-openvswitch-agent |
| dcb9c9cd-15c0-43ac-91e7-28868718229b | DHCP agent           | openstack01.os.lab.net | nova              | :-)   | UP    | neutron-dhcp-agent        |
| e9a368ca-6ba5-45cb-a2a0-f3c92a3e5eba | L3 agent             | openstack01.lab.net    | nova              | XXX   | UP    | neutron-l3-agent          |
| ff5b1e4e-4989-4960-80da-03cd63fe8e74 | Metadata agent       | openstack01.os.lab.net | None              | :-)   | UP    | neutron-metadata-agent    |
+--------------------------------------+----------------------+------------------------+-------------------+-------+-------+---------------------------+

Soo cleaned up

[root@openstack01 neutron(keystone_admin)]# openstack network agent list
+--------------------------------------+----------------------+------------------------+-------------------+-------+-------+------------------------+
| ID                                   | Agent Type           | Host                   | Availability Zone | Alive | State | Binary                 |
+--------------------------------------+----------------------+------------------------+-------------------+-------+-------+------------------------+
| 084d903e-5351-44fc-9d07-0d48841c3364 | Metering agent       | openstack01.os.lab.net | None              | :-)   | UP    | neutron-metering-agent |
| c11a0a1d-5ee8-49bf-a63f-c568de98d3b8 | Loadbalancerv2 agent | openstack01.os.lab.net | None              | :-)   | UP    | neutron-lbaasv2-agent  |
| c20fd389-926e-4f0b-9052-c87d87d21b3e | L3 agent             | openstack01.os.lab.net | nova              | :-)   | UP    | neutron-l3-agent       |
| dcb9c9cd-15c0-43ac-91e7-28868718229b | DHCP agent           | openstack01.os.lab.net | nova              | :-)   | UP    | neutron-dhcp-agent     |
| ff5b1e4e-4989-4960-80da-03cd63fe8e74 | Metadata agent       | openstack01.os.lab.net | None              | :-)   | UP    | neutron-metadata-agent |
+--------------------------------------+----------------------+------------------------+-------------------+-------+-------+------------------------+

But this could take a lot of time.... Any way to clean out a host entirely?

[root@openstack01 neutron(keystone_admin)]# openstack orchestration service list
+------------------------+-------------+--------------------------------------+------------------------+--------+----------------------------+--------+
| Hostname               | Binary      | Engine ID                            | Host                   | Topic  | Updated At                 | Status |
+------------------------+-------------+--------------------------------------+------------------------+--------+----------------------------+--------+
| openstack01.os.lab.net | heat-engine | 77162c48-0155-4e7c-adfa-d01db4da3935 | openstack01.os.lab.net | engine | 2020-01-30T13:51:16.000000 | up     |
| openstack01.os.lab.net | heat-engine | 13bb28b3-4b37-457b-ae85-48a109ef66c5 | openstack01.os.lab.net | engine | 2020-01-30T13:51:16.000000 | up     |
| openstack01.lab.net    | heat-engine | d27e4553-bfda-4db0-a5ed-1d105674b666 | openstack01.lab.net    | engine | 2020-01-29T09:58:41.000000 | down   |
| openstack01.lab.net    | heat-engine | 40561077-0e12-4e64-a8b0-f5ce87bd3dcc | openstack01.lab.net    | engine | 2020-01-29T09:58:41.000000 | down   |
| openstack01.lab.net    | heat-engine | 141e84fb-39c2-47b6-902d-a5f0e32e6d50 | openstack01.lab.net    | engine | 2020-01-29T09:58:41.000000 | down   |
| openstack01.os.lab.net | heat-engine | aa646cbe-68f0-490c-a21c-66b37856cdd0 | openstack01.os.lab.net | engine | 2020-01-30T13:51:16.000000 | up     |
| openstack01.lab.net    | heat-engine | 866e66aa-ac79-4ee3-a9e1-37056fd357df | openstack01.lab.net    | engine | 2020-01-29T09:58:41.000000 | down   |
| openstack01.os.lab.net | heat-engine | f433822d-00dc-4f07-9c3b-8de2eaeae49e | openstack01.os.lab.net | engine | 2020-01-30T13:51:16.000000 | up     |
+------------------------+-------------+--------------------------------------+------------------------+--------+----------------------------+--------+
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: 2020-01-30 07:39:07 -0500

Seen: 59 times

Last updated: Jan 30