Bug 1885693

Summary: [ceph-mgr] missing dependency for the python-enum34 in the ceph-mgr-14.2.8-111.el7cp.x86_64 on the RHEL7
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: kelwhite
Component: BuildAssignee: tserlin
Status: CLOSED ERRATA QA Contact: Sunil Angadi <sangadi>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1CC: ceph-eng-bugs, ceph-qe-bugs, lithomas, mhackett, rmandyam, sangadi, tserlin
Target Milestone: ---   
Target Release: 4.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-14.2.11-45.el8cp, ceph-14.2.11-45.el7cp Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-12 14:57:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description kelwhite 2020-10-06 18:30:27 UTC
Description of problem:
There seems to be missing dependency for the python-enum34 in the ceph-mgr-14.2.8-111.el7cp.x86_64 on the RHEL7.

It’s mentioned the changelog for the ceph  rpm packages:
* Mon Aug 24 2020 Thomas Serlin <tserlin> 2:14.2.8-100
- mgr: Add python-enum34 dependency to package for older distributions (rhbz#1848494)

But it doesn’t seem to be actually applied:
# rpm -q ceph-mgr --requires | grep enum
# 

On the ceph-mgr node the /var/log/ceph/ceph-mgr.log has:
2020-10-05 13:07:33.597 7f5551597cc0 -1 mgr[py] Module not found: 'volumes'
2020-10-05 13:07:33.597 7f5551597cc0 -1 mgr[py] Traceback (most recent call last):
  File "/usr/share/ceph/mgr/volumes/__init__.py", line 2, in <module>
    from .module import Module
  File "/usr/share/ceph/mgr/volumes/module.py", line 7, in <module>
    from .fs.volume import VolumeClient
  File "/usr/share/ceph/mgr/volumes/fs/volume.py", line 12, in <module>
    from .operations.group import open_group, create_group, remove_group, open_group_unique
  File "/usr/share/ceph/mgr/volumes/fs/operations/group.py", line 9, in <module>
    from .template import GroupTemplate
  File "/usr/share/ceph/mgr/volumes/fs/operations/template.py", line 3, in <module>
    from enum import Enum, unique
ImportError: No module named enum

2020-10-05 13:07:33.598 7f5551597cc0 -1 mgr[py] Class not found in module 'volumes'
2020-10-05 13:07:33.598 7f5551597cc0 -1 mgr[py] Error loading module 'volumes': (2) No such file or directory
2020-10-05 13:07:33.598 7f5551597cc0  1 mgr[py] Loading python module 'zabbix'
2020-10-05 13:07:33.611 7f5551597cc0 -1 log_channel(cluster) log [ERR] : Failed to load ceph-mgr modules: volumes

Version-Release number of selected component (if applicable):
RHCS 14.2.8-111

How reproducible:
Always

Expected results:

The python-enum34 package should bundled in ceph-mgr-14.2.8-111.el7cp.x86_64

Additional info:
Workaround is to manually install the "python-enum34"

Comment 12 errata-xmlrpc 2021-01-12 14:57:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Red Hat Ceph Storage 4.2 Security and Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:0081