A few hints:
-
Name your charm “lab”, instead of layer-lab. It’s a convention for the code of a reactive charm to name it layer-xxxx, rather than to use it in the name.
-
Status indications are informative only. They don’t do anything. It’s the charm author that should set those to indicate what goes on in the charm. The changes are auditable via ‘juju show-status-log’
-
If you don’t know the hooks state machine, go back to that before you start with reactive. [Draft] Charm hooks
-
I wrote a tutorial about hook charms you might want to explore [Tutorial] A tiny hooks charm It needs an update I realize, but it’s better in my opinion than the reactive one if you are new to juju. But it’s perhaps a matter of preference.