Cannot do peer data IO during install #1452
Labels
feature
New feature or request
needs design
needs more thought or spec
testing
Related to ops.testing
I learned last week that you cannot read/write to the peer relation databag during install.
See juju bug
See thread in matrix
At the moment there is no good way to test this behaviour since scenario.State doesn't keep track of what events you've seen in the past.
Also, ops doesn't give you nice errors. I have encountered several times a 'permission denied' ModelError caused by attempting IO on peer data during
install
.Not sure how
ops
can surface this better though, because ops also doesn't keep track of the event history.Perhaps we could add a
NotAccessible
singleton to allow the user to do:state = State(relations={Relation(remote_app_data=NotAccessible(), local_app_data=NotAccessible())})
to signal that the relation is there, yet the databags can't be written or read.
The text was updated successfully, but these errors were encountered: