File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 50
50
from charms .rolling_ops .v0 .rollingops import RollingOpsManager
51
51
from charms .tempo_coordinator_k8s .v0 .charm_tracing import trace_charm
52
52
from charms .tempo_coordinator_k8s .v0 .tracing import TracingEndpointRequirer
53
- from ops import EventBase , RelationBrokenEvent , RelationCreatedEvent
53
+ from ops import EventBase , ModelError , RelationBrokenEvent , RelationCreatedEvent
54
54
from ops .charm import RelationChangedEvent , UpdateStatusEvent
55
55
from ops .model import (
56
56
ActiveStatus ,
60
60
Unit ,
61
61
WaitingStatus ,
62
62
)
63
- from ops .pebble import Layer
63
+ from ops .pebble import ChangeError , Layer
64
64
from tenacity import RetryError , Retrying , stop_after_attempt , wait_fixed
65
65
66
66
from config import CharmConfig , MySQLConfig
@@ -703,6 +703,9 @@ def _configure_instance(self, container) -> None:
703
703
MySQLServiceNotRunningError ,
704
704
MySQLConfigureMySQLUsersError ,
705
705
MySQLConfigureInstanceError ,
706
+ ChangeError ,
707
+ TimeoutError ,
708
+ ModelError ,
706
709
):
707
710
# On any error, reset the data directory so hook is retried
708
711
# on empty data directory
You can’t perform that action at this time.
0 commit comments