Comment 2 for bug 2031631

Revision history for this message
Alex Lutay (taurus) wrote :

I am facing this issue constantly with mysql-k8s+mysql-test-app charm.
Steps to reproduce:

juju deploy mysql-k8s --trust --channel 8.0/beta -n 3
juju wait-for application mysql-k8s
juju deploy mysql-test-app --channel edge
juju relate mysql-k8s mysql-test-app:database
sleep 120 # wait some time
juju remove-relation mysql-k8s mysql-test-app
sleep 60 # wait some time
juju relate mysql-k8s mysql-test-app:database

Agent went into the failed at least on some unit (could be many):
> Unit Workload Agent Address Ports Message
> mysql-k8s/2 active failed 10.1.84.121
> mysql-test-app/0 waiting failed 10.1.84.98

Debug-log:
unit-mysql-test-app-0: 12:57:30 ERROR juju.worker.uniter resolver loop error: cannot enter scope for unit "mysql-test-app/0" in relation "mysql-test-app:database mysql-k8s:database": inconsistent state in EnterScope

Juju 3.1.6-9a5f4ee from 3.1/edge (rev 24354).