Bug 1768017 - mgr-diskprediction-cloud is missing python dependencies
Summary: mgr-diskprediction-cloud is missing python dependencies
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: ceph
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Boris Ranto
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-01 21:02 UTC by Tomasz Torcz
Modified: 2020-06-23 12:53 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-23 12:53:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 42655 0 None None None 2019-11-05 15:29:49 UTC

Description Tomasz Torcz 2019-11-01 21:02:11 UTC
Description of problem:

lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]: Exception in thread Thread-2:
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]: Traceback (most recent call last):
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:   File "/lib64/python3.8/threading.py", line 932, in _bootstrap_inner
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]: Exception in thread Thread-4:
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]: Traceback (most recent call last):
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:   File "/lib64/python3.8/threading.py", line 932, in _bootstrap_inner
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:     self.run()
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:   File "/usr/share/ceph/mgr/diskprediction_cloud/task.py", line 54, in run
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:     self.run_agents()
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:   File "/usr/share/ceph/mgr/diskprediction_cloud/task.py", line 67, in run_agents
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:     from .common.grpcclient import GRPcClient, gen_configuration
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]: ImportError: cannot import name 'GRPcClient' from 'diskprediction_cloud.common.grpcclient' (/usr/share/ceph/mgr/diskprediction_cloud/common/grpcclient.py)
lis 01 21:19:51 naib.pipebreaker.pl audit[33218]: AVC avc:  denied  { name_connect } for  pid=33218 comm="dashboard" dest=8080 scontext=system_u:system_r:ceph_t:s0 tcontext=system_u:object_r:http_cache_port_t:s0 tclass=tcp_socket permissive=1
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:     self.run()
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:   File "/usr/share/ceph/mgr/diskprediction_cloud/task.py", line 54, in run
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:     self.run_agents()
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:   File "/usr/share/ceph/mgr/diskprediction_cloud/task.py", line 67, in run_agents
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:     from .common.grpcclient import GRPcClient, gen_configuration
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:   File "/usr/share/ceph/mgr/diskprediction_cloud/common/grpcclient.py", line 2, in <module>
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]:     import grpc
lis 01 21:19:51 naib.pipebreaker.pl ceph-mgr[33218]: ModuleNotFoundError: No module named 'grpc'


^^ this can be fixed by installing: python3-gprcio
Then it fails with:


lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]: Traceback (most recent call last):
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:   File "/lib64/python3.8/threading.py", line 932, in _bootstrap_inner
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:     self.run()
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:   File "/usr/share/ceph/mgr/diskprediction_cloud/task.py", line 54, in run
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:     self.run_agents()
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:   File "/usr/share/ceph/mgr/diskprediction_cloud/task.py", line 67, in run_agents
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:     from .common.grpcclient import GRPcClient, gen_configuration
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]: ImportError: cannot import name 'GRPcClient' from 'diskprediction_cloud.common.grpcclient' (/usr/share/ceph/mgr/diskprediction_cloud/common/grpcclient.py)
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:     self.run()
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:   File "/usr/share/ceph/mgr/diskprediction_cloud/task.py", line 54, in run
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:     self.run_agents()
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:   File "/usr/share/ceph/mgr/diskprediction_cloud/task.py", line 67, in run_agents
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:     from .common.grpcclient import GRPcClient, gen_configuration
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:   File "/usr/share/ceph/mgr/diskprediction_cloud/common/grpcclient.py", line 8, in <module>
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:     from . import client_pb2
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:   File "/usr/share/ceph/mgr/diskprediction_cloud/common/client_pb2.py", line 6, in <module>
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]:     from google.protobuf import descriptor as _descriptor
lis 01 21:27:45 naib.pipebreaker.pl ceph-mgr[34135]: ModuleNotFoundError: No module named 'google'


^^ this is fixable by installing: python3-protobuf


lis 01 21:33:44 naib.pipebreaker.pl ceph-mgr[35259]: ImportError: cannot import name 'GRPcClient' from 'diskprediction_cloud.common.grpcclient' (/usr/share/ceph/mgr/diskprediction_cloud/common/grpcclient.py)
lis 01 21:33:44 naib.pipebreaker.pl ceph-mgr[35259]:     self.run()
lis 01 21:33:44 naib.pipebreaker.pl ceph-mgr[35259]:   File "/usr/share/ceph/mgr/diskprediction_cloud/task.py", line 54, in run
lis 01 21:33:44 naib.pipebreaker.pl ceph-mgr[35259]:     self.run_agents()
lis 01 21:33:44 naib.pipebreaker.pl ceph-mgr[35259]:   File "/usr/share/ceph/mgr/diskprediction_cloud/task.py", line 67, in run_agents
lis 01 21:33:44 naib.pipebreaker.pl ceph-mgr[35259]:     from .common.grpcclient import GRPcClient, gen_configuration
lis 01 21:33:44 naib.pipebreaker.pl ceph-mgr[35259]:   File "/usr/share/ceph/mgr/diskprediction_cloud/common/grpcclient.py", line 8, in <module>
lis 01 21:33:44 naib.pipebreaker.pl ceph-mgr[35259]:     from . import client_pb2
lis 01 21:33:44 naib.pipebreaker.pl ceph-mgr[35259]:   File "/usr/share/ceph/mgr/diskprediction_cloud/common/client_pb2.py", line 16, in <module>
lis 01 21:33:44 naib.pipebreaker.pl ceph-mgr[35259]:     from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
lis 01 21:33:44 naib.pipebreaker.pl ceph-mgr[35259]: ModuleNotFoundError: No module named 'google.api'

^^ for this I haven't found which package is missing


Version-Release number of selected component (if applicable):
ceph-mgr-14.2.4-1.fc32.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Kaleb KEITHLEY 2019-11-05 15:22:52 UTC
I'm not a python or google APIs expert, but this

https://github.com/protocolbuffers/protobuf/issues/3773

seems (to me) to suggest that protoc has to be run to generate files from templates to resolve the reference to annotations_pb2

Comment 2 Kaleb KEITHLEY 2019-11-05 15:36:41 UTC
Partial fix (added missing python3-{gprcio,protobuf}  Requires: in ceph-14.2.4-2

Comment 3 Fedora Update System 2019-11-06 18:38:16 UTC
FEDORA-2019-b50e0a6cf2 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b50e0a6cf2

Comment 4 Fedora Update System 2019-11-07 01:44:53 UTC
ceph-14.2.4-2.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-b50e0a6cf2

Comment 5 Fedora Update System 2019-11-15 13:26:57 UTC
FEDORA-2019-5a4ce4e1ac has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-5a4ce4e1ac

Comment 6 Fedora Update System 2019-11-16 01:51:54 UTC
ceph-14.2.4-3.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-5a4ce4e1ac

Comment 7 Fedora Update System 2019-11-19 01:36:00 UTC
ceph-14.2.4-3.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Ben Cotton 2020-02-11 17:45:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.


Note You need to log in before you can comment on or make changes to this bug.