Allow a reconfiguration of the registry when blocked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Docker Registry Charm |
New
|
Undecided
|
Unassigned |
Bug Description
Following a docker upgrade, the registry was unable to start due to some mismatch between the old and new versions regarding runtime.
The simplest way to fix that was to get rid of the current container and start a new one.
To achieve that I had to:
* manually delete the container
* unset the flag charm.docker-
* trigger a config-changed: `juju run --application docker-registry "hooks/
We see the following path:
```
2022-01-03 09:53:17 INFO unit.docker-
2022-01-03 09:53:17 INFO unit.docker-
2022-01-03 09:53:17 INFO unit.docker-
2022-01-03 09:53:17 INFO unit.docker-
2022-01-03 09:53:17 INFO unit.docker-
2022-01-03 09:53:17 INFO unit.docker-
2022-01-03 09:53:17 INFO unit.docker-
```
As you can see, whatever we trigger, we end up blocked at "blocked" status.
The report_status method is triggered when "charm.
However, there is nothing in the code that remove this flag whatsoever.
Triggering manually "hooks/
I had to manually clear the flag "charm.
I suggest we add an action that clears the current container and restart everything (with a mandatory option if the storage is not swift).