How do you uninstall an openstack project using openstack-ansible?

asked 2018-04-19 10:20:51 -0500

bnordgren gravatar image

I have an openstack cluster managed by openstack ansible. I installed "magnum" to try it out, by adding the specified section to openstack_user_config.yml and re-running setup-everything. Boom. System instability. All our glance images disappeared from the horizon interface, and there were strange network issues.

I've been trying to get rid of it ever since, but the install put magnum stuff everywhere. The stuff I've found includes a all the magnum containers, new magnum user for rabbitmq and glance, new domain, magnum command in the utility container, etc. I want all this magnum stuff gone.

I have un-edited my openstack_user_config.yml back to what it was, and used inventory_manage to delete the magnum containers. I re-ran setup-everything.yml, but nothing magnum related went away.

Currently, I'm trying: manually destroying the magnum containers, deleted the cached ansible facts on the deployment host, running lxc-containers-destroy on all containers on one of my control nodes, then setup-everything for those containers. Repeat for the other two controllers.

I went into this thinking that idempotency suggests making the system match the system description regardless of the initial state. Since that seems not to be the case, is there a recommended way to un-install?

edit retag flag offensive close merge delete


Google "How to clean up stuff from roles that aren't used any more on a server?".

Ansible doesn't automatically remove stuff that is not declared. You need Ansible code for removing Magnum. If the OSA project doesn't provide it, you have to write it yourself or perform the change manually.

Bernd Bausch gravatar imageBernd Bausch ( 2018-04-19 19:38:50 -0500 )edit