Fix race when certificates relation is ready first
If the certificates relation is ready the charm can attempt to start the pebbles handlers before they are ready. This change causes the configure_charm to bail if any of the pebble handlers are not ready. configure_charm calls will be called by subsequent pebble_redy events. Change-Id: I16dc6b2e25ef31f3619303c4424f80de4d65e626
This commit is contained in:
parent
d9b89eadc2
commit
a3f95508f2
@ -298,6 +298,11 @@ class OVNCentralOperatorCharm(sunbeam_charm.OSBaseOperatorCharm):
|
||||
logging.debug("Aborting charm relations not ready")
|
||||
return
|
||||
|
||||
if not all([ph.pebble_ready for ph in self.pebble_handlers]):
|
||||
logging.debug(
|
||||
"Aborting configuration, not all pebble handlers are ready")
|
||||
return
|
||||
|
||||
# Render Config in all containers but init should *NOT* start
|
||||
# the service.
|
||||
for ph in self.pebble_handlers:
|
||||
|
Loading…
x
Reference in New Issue
Block a user