Open cbaenziger opened 6 years ago
The repxe-host.sh
script orchestrates all of this. if you are deleting a cluster, you need to do everything that repxe-host.sh
does to get it properly cleaned.
Ah this is a VM specific issue for testing. I can not see how to apply repxe-host.sh
to that yet...
I'd argue that would be a scope from something between tests/automated_install.sh
and the layer right above cluster-assign-roles.sh
then. not cluster-assign-roles.sh
itself.
@aespinosa Ah good idea; yes, my hang-up was this broke the idempotency of tests/automated_install.sh
so it may be possible to envision it doing the necessary work rather than cluster_assign_roles.rb
.
When deleting a cluster and reusing a bootstrap node, one will get an error like the following:
Unexpectedly, even if ~/.ssh/known_hosts is deleted, one gets this issue coming back. This is due to the SSH keys being stored in Knife vault and being replaced on the hosts[1] -- which are different than they were after the OS install. We should setup cluster-assign-roles to pre-load the correct host keys into the ssh known_hosts file or to ignore this issue when rebuilding a machine (maybe a rebuild/ignore known hosts flag)?
If not a production environment, one can also run the following to not overwrite the new ssh host key: