'NoneType' object has no attribute 'uri'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PostgreSQL Charm |
Invalid
|
Critical
|
Unassigned | ||
pgsql Interface for charms.reactive |
Fix Released
|
Critical
|
Stuart Bishop |
Bug Description
still hitting this every 1/5
unit-pdl-api-3: 14:04:50 INFO unit.pdl-
unit-pdl-api-3: 14:04:51 ERROR unit.pdl-
Traceback (most recent call last):
File "/usr/local/
bus.
File "/usr/local/
_invoke(
File "/usr/local/
handler.
File "/usr/local/
self.
File "/var/lib/
kv.
AttributeError: 'NoneType' object has no attribute 'uri'
description: | updated |
Changed in postgresql-charm: | |
status: | Incomplete → Triaged |
importance: | Undecided → Critical |
Changed in interface-pgsql: | |
status: | New → Triaged |
importance: | Undecided → Critical |
If pgsql.master is None, it means the master is not yet available. Handlers should generally wait for the relname. master. available state, at which point they can expect pgsql.master to be valid and pgsql.master.uri to work.
Is the handler guarded by @when(' XXXX.master. available' ), or some other state like XXX.connected ?