no attribute 'is_container'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PostgreSQL Charm |
Fix Released
|
Undecided
|
Stuart Bishop |
Bug Description
Hi! I've noticed that if I tro to unrelate the postgresql charm and gogs charm it got things wrong.
The debug-log says that:
unit-postgresql-0: 19:19:15 DEBUG unit.postgresql
unit-postgresql-0: 19:19:15 DEBUG unit.postgresql
unit-postgresql-0: 19:19:15 DEBUG unit.postgresql
unit-postgresql-0: 19:19:15 DEBUG unit.postgresql
unit-postgresql-0: 19:19:15 DEBUG unit.postgresql
unit-postgresql-0: 19:19:15 DEBUG unit.postgresql
unit-postgresql-0: 19:19:15 DEBUG unit.postgresql
unit-postgresql-0: 19:19:15 DEBUG unit.postgresql
unit-postgresql-0: 19:19:15 DEBUG unit.postgresql
unit-postgresql-0: 19:19:15 DEBUG unit.postgresql
Something very odd happened here.
Did you have gogs and PostgreSQL installed in the same machine? Or subordinate charms installed onto the PostgreSQL application?
That particular code path is first called on installation (one of the first things that happens after charms.reactive bootstraps). For it to fail later, during the db-relation hook, indicates that the version of charmh-elpers installed by charms.reactive during initial setup has been destroyed, or the environment altered somehow so the wrong version of charm-helpers is being found.