osism / issues

This repository is used for bug reports that are cross-project or not bound to a specific repository (or to an unknown repository).
https://www.osism.tech
1 stars 1 forks source link

Flag to fix cloud-init issues #213

Closed flyersa closed 2 years ago

flyersa commented 2 years ago

If openstack is installed with osism in certain environments that utilize cloud-init such as PXE booting from MaaS environments there can issues arrise by overriding netplan configs and hosts file upon reboot after osism bootstrap by cloud-init.

This causes multiple issues (nova vnc, no internal api availability etc.) with openstack services if hostnames are not fully resolvable for some reason by the internal hosts dns resolvers (which can happen in certain scenarios).

While this is not a osism issue directly it would anyway maybe be a good idea to add some kind of flag like cloudinit_no_overrides: true in a ansible config that will disable cloud inits ability to override hosts file and netplan configs in /etc/cloud/cloud.cfg ?

berendt commented 2 years ago

Makes sense to me.

berendt commented 2 years ago

@flyersa Do you think we could just include this in the cleanup role and completely remove existing Cloud Init configuration and Cloud Init itself after First Boot?

flyersa commented 2 years ago

Yes i think removing it completly would not cause any issues. In case of redeployment it needs to be setup again anyway by MaaS as example.