Could simulate this bug by running tests/gate-basic-trusty-mitaka on designate charm.
Module "defaults" is only called once on core.py: https://github.com/openstack/charms.openstack/blob/master/charms_openstack/charm/core.py#L908
Moving the import inside function "upgrade_if_available" solves this issue and all tests finish with OK
Btw, gate-basic-bionic-queens pass for Designate charm with no issues: https://review.openstack.org/#/c/593607/
Also tried with xenial version and hook install worked correctly. Xenial runs Python 3.5.2. Therefore, I guess it is a python 3.4 -> 3.5 issue.
Could simulate this bug by running tests/gate- basic-trusty- mitaka on designate charm.
Module "defaults" is only called once on core.py: https:/ /github. com/openstack/ charms. openstack/ blob/master/ charms_ openstack/ charm/core. py#L908
Moving the import inside function "upgrade_ if_available" solves this issue and all tests finish with OK
Btw, gate-basic- bionic- queens pass for Designate charm with no issues: /review. openstack. org/#/c/ 593607/
https:/
Also tried with xenial version and hook install worked correctly.
Xenial runs Python 3.5.2. Therefore, I guess it is a python 3.4 -> 3.5 issue.