[MIR] python-vitrageclient, python-zunclient

Bug #1893935 reported by Michal Nasiadka
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Cloud Archive
High
Unassigned
Victoria
High
Unassigned
python-vitrageclient (Ubuntu)
High
Unassigned
Groovy
High
Unassigned
python-zunclient (Ubuntu)
High
Unassigned
Groovy
High
Unassigned

Bug Description

Kolla built containers with heat-engine fail with following logs:
https://f20bec36e3f198a9ccf9-fa78c758d05065ae4af77013f9d746d5.ssl.cf2.rackcdn.com/749469/2/check/kolla-ansible-ubuntu-binary/059e66f/primary/logs/kolla/heat/heat-engine.txt

2020-09-02 10:50:52.676 6 CRITICAL heat-engine [-] Unhandled error: AttributeError: 'EntryPoint' object has no attribute 'module'
2020-09-02 10:50:52.676 6 ERROR heat-engine Traceback (most recent call last):
2020-09-02 10:50:52.676 6 ERROR heat-engine File "/usr/lib/python3/dist-packages/stevedore/extension.py", line 221, in _load_plugins
2020-09-02 10:50:52.676 6 ERROR heat-engine ext = self._load_one_plugin(ep,
2020-09-02 10:50:52.676 6 ERROR heat-engine File "/usr/lib/python3/dist-packages/stevedore/enabled.py", line 77, in _load_one_plugin
2020-09-02 10:50:52.676 6 ERROR heat-engine ext = super(EnabledExtensionManager, self)._load_one_plugin(
2020-09-02 10:50:52.676 6 ERROR heat-engine File "/usr/lib/python3/dist-packages/stevedore/extension.py", line 255, in _load_one_plugin
2020-09-02 10:50:52.676 6 ERROR heat-engine plugin = ep.load()
2020-09-02 10:50:52.676 6 ERROR heat-engine File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
2020-09-02 10:50:52.676 6 ERROR heat-engine module = import_module(match.group('module'))
2020-09-02 10:50:52.676 6 ERROR heat-engine File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
2020-09-02 10:50:52.676 6 ERROR heat-engine return _bootstrap._gcd_import(name[level:], package, level)
2020-09-02 10:50:52.676 6 ERROR heat-engine File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
2020-09-02 10:50:52.676 6 ERROR heat-engine File "<frozen importlib._bootstrap>", line 991, in _find_and_load
2020-09-02 10:50:52.676 6 ERROR heat-engine File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
2020-09-02 10:50:52.676 6 ERROR heat-engine File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
2020-09-02 10:50:52.676 6 ERROR heat-engine File "<frozen importlib._bootstrap_external>", line 783, in exec_module
2020-09-02 10:50:52.676 6 ERROR heat-engine File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
2020-09-02 10:50:52.676 6 ERROR heat-engine File "/usr/lib/python3/dist-packages/heat/engine/clients/os/vitrage.py", line 16, in <module>
2020-09-02 10:50:52.676 6 ERROR heat-engine from vitrageclient import client as vitrage_client
2020-09-02 10:50:52.676 6 ERROR heat-engine ModuleNotFoundError: No module named 'vitrageclient'

Seems the culprit is missing python-vitrageclient package, which is part of heat requirements.txt - but not installed as a dependency when installing heat-engine from UCA (https://github.com/openstack/kolla/blob/master/docker/heat/heat-engine/Dockerfile.j2)

affects: heat (Ubuntu) → cloud-archive
Revision history for this message
Chris MacNaughton (chris.macnaughton) wrote :

vitrageclient is currently in the Recommends section of python3-heat. As vitrageclient is an optional dependency (you only need it if you have heat and vitrage), this is fairly reasonable and can be resolved by doing something like: sudo apt-get --install-suggests install python3-heat

Changed in cloud-archive:
status: New → Invalid
Revision history for this message
Aurelien Lourot (aurelien-lourot) wrote :

Re-opening as python3-vitrageclient should be declared as a hard dependency and not a recommended one. This is hitting charm-heat on focal-victoria: https://bugs.launchpad.net/charm-heat/+bug/1895300

Revision history for this message
Aurelien Lourot (aurelien-lourot) wrote :

Same with python3-zunclient

Changed in cloud-archive:
status: Invalid → Confirmed
summary: - Missing dependency on vitrageclient in master
+ Missing dependency on vitrageclient and zunclient in master
Changed in cloud-archive:
status: Confirmed → Triaged
importance: Undecided → High
summary: - Missing dependency on vitrageclient and zunclient in master
+ [MIR] python-vitrageclient, python-zunclient
Changed in python-vitrageclient (Ubuntu Groovy):
status: New → Triaged
Changed in python-zunclient (Ubuntu Groovy):
status: New → In Progress
status: In Progress → Triaged
Changed in python-vitrageclient (Ubuntu Groovy):
importance: Undecided → High
Changed in python-zunclient (Ubuntu Groovy):
importance: Undecided → High
Revision history for this message
Corey Bryant (corey.bryant) wrote :

check-mir for python-vitrageclient:

Checking support status of binary dependencies...
 * libjs-bootstrap binary and source package is in universe
 * python3-pydot binary and source package is in universe
 * python3-pydotplus binary and source package is in universe

check-mir for python-zunclient:

Checking support status of binary dependencies...
 * libjs-bootstrap binary and source package is in universe
 * python3-docker binary and source package is in universe
 * python3-websocket binary and source package is in universe

We'll need to assess whether these can be moved to Suggests or if they also require MIRs.

Another option perhaps is to patch heat. zun server packages don't exist in Ubuntu and we don't maintain vitrage packages.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I think this is actually a regression in stevedore. I opened the following bug with more details. Hopefully it will get triaged soon and we'll find out. If it is a regression in stevedore then we won't need the MIRs.

https://bugs.launchpad.net/ubuntu/+source/stevedore/+bug/1897969

Revision history for this message
Brian Murray (brian-murray) wrote :

The Groovy Gorilla has reached end of life, so this bug will not be fixed for that release

Changed in python-vitrageclient (Ubuntu Groovy):
status: Triaged → Won't Fix
Changed in python-zunclient (Ubuntu Groovy):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers