I have machines running on MaaS using Juju. Some of them failed to deploy because a hook didn't run because of an (invalid) setting I set in the config. In the Jju UI, I tried marking them as resolved, and then trying to remove them (and repeated through a few cycles of them going green and and then red).
(I believe doing resolve + remove will make juju not get stuck on the fact that the hook didn't work, and let juju just get rid of the machine.)
Now I have units that seem stuck and say
agent-state: error agent-state-info: 'hook failed: "install"' agent-version: 126.96.36.199 life: dying
in juju status. I've tried destroying the units and the machines they are on. Is there any way to just give up on those units and recycle the machines the are on for another try?
I also tried marking the units resolved on the command line, but I'm getting conflicting messages. I get
ERROR cannot set resolved mode for unit "ceph-osd/1": already resolved when I tried to mark it resolved, but status says the same error message above after that when I run
agent-state: error agent-state-info: 'hook failed: "install"' life: dying
Update: I just came back after an hour or two, and found that one of the units I was having trouble with went away. So, waiting did work.