charms.reactive 0.5.0.(*) requires refactoring of StateList
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Manila Charm |
Fix Released
|
High
|
Alex Kavanagh | ||
OpenStack Manila Generic Backend Charm |
Fix Released
|
High
|
Alex Kavanagh |
Bug Description
Bug https:/
2017-09-18 15:23:58 DEBUG install class ManilaPluginPro
2017-09-18 15:23:58 DEBUG install File "/var/lib/
2017-09-18 15:23:58 DEBUG install class states(
2017-09-18 15:23:58 DEBUG install AttributeError: module 'charms.
2017-09-18 15:23:58 ERROR juju.worker.
Technically, this is in the interface (charm-
Solution is to refactor the StateList out of manila-plugin so that manila & manila-generic can build again. It wasn't a very popular feature and it isn't likely that anyone else is affected.
Changed in charm-manila: | |
importance: | Undecided → Medium |
Changed in charm-manila: | |
status: | New → Triaged |
Changed in charm-manila: | |
status: | Triaged → Fix Committed |
Changed in charm-manila-generic: | |
assignee: | nobody → Alex Kavanagh (ajkavanagh) |
status: | New → Fix Committed |
importance: | Undecided → High |
milestone: | none → 17.11 |
Changed in charm-manila: | |
status: | Fix Committed → Fix Released |
Changed in charm-manila-generic: | |
status: | Fix Committed → Fix Released |
Confirmed this issue remains in charm-manila master:
2017-11-22 10:05:34 DEBUG install Preparing to unpack .../python3- psutil_ 3.4.2-1_ amd64.deb ... juju/agents/ unit-manila- 0/charm/ hooks/install" , line 19, in <module> juju/agents/ unit-manila- 0/.venv/ lib/python3. 5/site- packages/ charms/ reactive/ __init_ _.py", line 110, in main juju/agents/ unit-manila- 0/.venv/ lib/python3. 5/site- packages/ charms/ reactive/ bus.py" , line 398, in discover handlers_ from_file( search_ path, filepath) juju/agents/ unit-manila- 0/.venv/ lib/python3. 5/site- packages/ charms/ reactive/ bus.py" , line 428, in _register_ handlers_ from_file juju/agents/ unit-manila- 0/.venv/ lib/python3. 5/site- packages/ charms/ reactive/ bus.py" , line 416, in _load_module import_ module( package + module) juju/agents/ unit-manila- 0/.venv/ lib/python3. 5/importlib/ __init_ _.py", line 126, in import_module _gcd_import( name[level: ], package, level) _bootstrap> ", line 986, in _gcd_import _bootstrap> ", line 969, in _find_and_load _bootstrap> ", line 958, in _find_and_ load_unlocked _bootstrap> ", line 673, in _load_unlocked _bootstrap_ external> ", line 665, in exec_module _bootstrap> ", line 222, in _call_with_ frames_ removed juju/agents/ unit-manila- 0/charm/ hooks/relations /manila- plugin/ provides. py", line 20, in <module> vides(reactive. RelationBase) : juju/agents/ unit-manila- 0/charm/ hooks/relations /manila- plugin/ provides. py", line 39, in ManilaPluginPro vides reactive. bus.StateList) : juju/agents/ unit-manila- 0/charm/ hooks/relations /manila- plugin/ provides. py", line 40, in states bus.State( '{relation_ name}.connected ') reactive. bus' has no attribute 'State'
2017-11-22 10:05:34 DEBUG install Unpacking python3-psutil (3.4.2-1) ...
2017-11-22 10:05:35 DEBUG install Setting up python3-psutil (3.4.2-1) ...
2017-11-22 10:05:37 DEBUG install Traceback (most recent call last):
2017-11-22 10:05:37 DEBUG install File "/var/lib/
2017-11-22 10:05:37 DEBUG install main()
2017-11-22 10:05:37 DEBUG install File "/var/lib/
2017-11-22 10:05:37 DEBUG install bus.discover()
2017-11-22 10:05:37 DEBUG install File "/var/lib/
2017-11-22 10:05:37 DEBUG install _register_
2017-11-22 10:05:37 DEBUG install File "/var/lib/
2017-11-22 10:05:37 DEBUG install _load_module(root, filepath)
2017-11-22 10:05:37 DEBUG install File "/var/lib/
2017-11-22 10:05:37 DEBUG install return importlib.
2017-11-22 10:05:37 DEBUG install File "/var/lib/
2017-11-22 10:05:37 DEBUG install return _bootstrap.
2017-11-22 10:05:37 DEBUG install File "<frozen importlib.
2017-11-22 10:05:37 DEBUG install File "<frozen importlib.
2017-11-22 10:05:37 DEBUG install File "<frozen importlib.
2017-11-22 10:05:37 DEBUG install File "<frozen importlib.
2017-11-22 10:05:37 DEBUG install File "<frozen importlib.
2017-11-22 10:05:37 DEBUG install File "<frozen importlib.
2017-11-22 10:05:37 DEBUG install File "/var/lib/
2017-11-22 10:05:37 DEBUG install class ManilaPluginPro
2017-11-22 10:05:37 DEBUG install File "/var/lib/
2017-11-22 10:05:37 DEBUG install class states(
2017-11-22 10:05:37 DEBUG install File "/var/lib/
2017-11-22 10:05:37 DEBUG install connected = reactive.
2017-11-22 10:05:37 DEBUG install AttributeError: module 'charms.
2017-11-22 10:...