[Controller/Infra node removal] [openstack-ansible] Need to remove infra/controller node from environment.

Dmitriy Rabotyagov noonedeadpunk at gmail.com
Fri Apr 14 09:40:22 UTC 2023


Hi, Danish,

I don't think we have anything established in our documentation at the
moment, as it's not very common to scale down an environment.

I would probably do it this way:
* Remove host from openstack_user_config.yml
* Remove all related containers and host inteslf from inventory, you
can leverage scripts/inventory-manage.py for that (with -r flag).
* Run haproxy-setup playbook to remove backends on this host from balancing
* Stop/mask keepalived on host that you're removing
* Run setup-openstack to reconfigure services regarding backends that
will be used for rabbitmq and memcached
* Run setup-infrastructure.yml playbook to reconfigure rabbit/galera
clusters and repo containers regarding members that should participate
* Stop containers (systemctl stop lxc) on host you're removing

You can indeed do lxc-containers-destroy as the first step as well
with limiting execution to the host you want to remove, but I'm not
sure how graceful this might be for galera/rabbit and services that
are currently connected to it. Eventually it should be fine, as the
setup is designed to survive controller failure, but it's always
better to avoid services use backends that are gonna be removed.

пт, 14 апр. 2023 г. в 11:25, Danish Khan <danish52.jmi at gmail.com>:

>
> Hello Team,
>
> Is it possible to remove an infra host from environment? If yes, can
> you please share the exact steps that need to be followed.
>
> I am trying to remove it manually by destroying all lxc containers
> from infra host which needs to be removed and then running setup
> openstack playbook. but it is not working properly.
>
> Can someone please share the exact steps needed to be followed to
> remove infra host from the environment.
>
> Openstack version: Wallaby or Yoga.
>
> Regards,
> Danish
>



More information about the openstack-discuss mailing list