Closed mbruzek closed 8 years ago
Theres only one problem with that. the bootstrap daemon is not under init's control, which is why its been left in this state so when the juju agent comes back online it fires back up the bootstrap daemon.
I know thats a really terrible reason for why this is this way...but its the only reason i have. With a proper upstart/systemd job this would be a non-issue.
This is fixed with #9
While working on a layer that consumes flannel (kubernetes), I notice that the
run_bootstrap_daemons
method is running each time for each kubernetes unit when the reactive framework re-evaluates states.To be clear the method short circuits preventing any problems, but the shell code is executed over and over again causing log spam and this is not the intended result.
The docstring on the method indicates this method "Not to be run after initial job completion".
I think we should update the method to use @when_not('flannel.sdn.available') and set that state after the first time it is run. I am also happy to do this work.