Relations between subordinates don't work in 2.2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Undecided
|
Christian Muirhead |
Bug Description
2.1.3:
$ juju deploy cs:rabbitmq-server rabbitmq-server
$ juju deploy cs:nrpe nrpe
$ juju deploy cs:canonical-
$ juju add-relation rabbitmq-server nrpe
$ juju add-relation rabbitmq-server canonical-livepatch
$ juju add-relation nrpe canonical-livepatch
$ juju status | grep livepatch.*nrpe
nrpe-
$ juju run --unit=nrpe/0 relation-ids nrpe-external-
nrpe-
nrpe-
$ juju run --unit=nrpe/0 "relation-list -r nrpe-external-
rabbitmq-server/0
$ juju run --unit=nrpe/0 "relation-list -r nrpe-external-
canonical-
2.2.0 (2.2.1 is the same):
$ juju deploy cs:rabbitmq-server
$ juju deploy cs:nrpe
$ juju deploy cs:canonical-
$ juju add-relation rabbitmq-server nrpe
$ juju add-relation rabbitmq-server canonical-livepatch
$ juju add-relation canonical-livepatch nrpe
$ juju status | grep livepatch.*nrpe
nrpe-
$ juju run --unit=nrpe/0 relation-ids nrpe-external-
nrpe-
$ juju run --unit=nrpe/0 "relation-list -r nrpe-external-
rabbitmq-server/0
The relation's unitcount in the DB remains at 0. I guess the fixes to not enter unrelated subordinate scopes also took out related subordinate scopes.
This thoroughly confuses charms on upgrade to 2.2.1, as the relations disappear without hooks firing. Something like this might be a reasonable workaround for the canonical-
juju run --application canonical-livepatch "sudo apt install sqlite3; sudo sqlite3 /var/lib/
description: | updated |
description: | updated |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
milestone: | none → 2.2.2 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
I believe Christian is actively working on fixing this for 2.2.2.
John
=:->
On Thu, Jul 6, 2017 at 12:27 PM, William Grant <email address hidden>
wrote:
> Public bug reported: livepatch canonical-livepatch master canonical-livepatch nrpe master master: 1 master: 3 master: 1" master: 3" livepatch/ 0 livepatch master canonical-livepatch nrpe master master: 1 master: 1" livepatch canonical-livepatch master canonical-livepatch nrpe master master: 1 master: 3 master: 1" master: 3" livepatch/ 0 livepatch canonical-livepatch master canonical-livepatch nrpe master master: 1 master: 3 master: 1"
>
> 2.1.3:
> $ juju deploy cs:rabbitmq-server rabbitmq-server
> $ juju deploy cs:nrpe nrpe
> $ juju deploy cs:canonical-
> $ juju add-relation rabbitmq-server nrpe
> $ juju add-relation rabbitmq-server canonical-livepatch
> $ juju add-relation nrpe canonical-livepatch
> $ juju status | grep livepatch.*nrpe
> nrpe-external-
> subordinate
> $ juju run --unit=nrpe/0 relation-ids nrpe-external-
> nrpe-external-
> nrpe-external-
> $ juju run --unit=nrpe/0 "relation-list -r nrpe-external-
> rabbitmq-server/0
> $ juju run --unit=nrpe/0 "relation-list -r nrpe-external-
> canonical-
>
> 2.2.0 (2.2.1 is the same):
> $ juju deploy cs:rabbitmq-server
> $ juju deploy cs:nrpe
> $ juju deploy cs:canonical-
> $ juju add-relation rabbitmq-server nrpe
> $ juju add-relation rabbitmq-server canonical-livepatch
> $ juju add-relation canonical-livepatch nrpe
> $ juju status | grep livepatch.*nrpe
> nrpe-external-
> subordinate
> $ juju run --unit=nrpe/0 relation-ids nrpe-external-
> nrpe-external-
> $ juju run --unit=nrpe/0 "relation-list -r nrpe-external-
> rabbitmq-server/0
>
> The relation's unitcount in the DB remains at 0. I guess the fixes to
> not enter unrelated subordinate scopes also took out related subordinate
> scopes.
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
> ** Description changed:
>
> 2.1.3:
> - $ juju deploy cs:rabbitmq-server rabbitmq-server
> - $ juju deploy cs:nrpe nrpe
> - $ juju deploy cs:canonical-
> - $ juju add-relation rabbitmq-server nrpe
> - $ juju add-relation rabbitmq-server canonical-livepatch
> - $ juju add-relation nrpe canonical-livepatch
> - $ juju status | grep livepatch.*nrpe
> - nrpe-external-
> subordinate
> - $ juju run --unit=nrpe/0 relation-ids nrpe-external-
> - nrpe-external-
> - nrpe-external-
> - $ juju run --unit=nrpe/0 "relation-list -r nrpe-external-
> - rabbitmq-server/0
> - $ juju run --unit=nrpe/0 "relation-list -r nrpe-external-
> - canonical-
> + $ juju deploy cs:rabbitmq-server rabbitmq-server
> + $ juju deploy cs:nrpe nrpe
> + $ juju deploy cs:canonical-
> + $ juju add-relation rabbitmq-server nrpe
> + $ juju add-relation rabbitmq-server canonical-livepatch
> + $ juju add-relation nrpe canonical-livepatch
> + $ juju status | grep livepatch.*nrpe
> + nrpe-external-
> subordinate
> + $ juju run --unit=nrpe/0 relation-ids nrpe-external-
> + nrpe-external-
> + nrpe-external-
> + $ juju run --unit=nrpe/0 "relation-list -r nrpe-external-
> + rabbitmq-server/0
> + $ juju run --unit=nrpe/0 "relation-list -r nrpe-...