Bug 2351292

Summary: [8.1] [Add-host] [Mix OS] While adding RHEL 8 host to the RHEL 9 admin node it fails with error "No module named 'dataclasses'"
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vinayak Papnoi <vpapnoi>
Component: CephadmAssignee: Adam King <adking>
Status: CLOSED ERRATA QA Contact: Vinayak Papnoi <vpapnoi>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.1CC: cephqe-warriors, tserlin
Target Milestone: ---Keywords: Automation, Regression
Target Release: 8.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-19.2.1-148.el9cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-06-26 12:28:05 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 Vinayak Papnoi 2025-03-11 07:47:48 UTC
Description of problem:
=======================
While performing add host for RHEL 8 host to the RHEL 9 admin node it fails with below error:

[ceph: root@ceph-vpap-81-bmunv8-node1-installer /]# ceph orch host add ceph-vpap-81-bmunv8-node2 10.0.67.137 crash mgr mon osd alertmanager node-exporter
Error EINVAL: check-host failed:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/var/lib/ceph/6a3afba0-fe47-11ef-a55c-fa163ee59147/cephadm.60ed76ae9fff5863897f3db3904e7408a6cbb3e7059b72fbb40aa12e28166a5f/__main__.py", line 171, in <module>
  File "/var/lib/ceph/6a3afba0-fe47-11ef-a55c-fa163ee59147/cephadm.60ed76ae9fff5863897f3db3904e7408a6cbb3e7059b72fbb40aa12e28166a5f/cephadmlib/daemons/__init__.py", line 8, in <module>
  File "/var/lib/ceph/6a3afba0-fe47-11ef-a55c-fa163ee59147/cephadm.60ed76ae9fff5863897f3db3904e7408a6cbb3e7059b72fbb40aa12e28166a5f/cephadmlib/daemons/smb.py", line 1, in <module>
ModuleNotFoundError: No module named 'dataclasses'


Scenario:
Admin node - RHEL 9
Other node - RHEL 8



Version-Release number of selected component (if applicable):
=============================================================
ceph 19.2.1-26

How reproducible:
=================
Always

Steps to Reproduce:
===================
1. Bootstrap CEPH 8.1 cluster with RHEL 9 as the admin node
2. Add RHEL 8.x host to the cluster using "ceph orch host add" command
3.

Actual results:
===============
As seen in description

Expected results:
=================
Add host should succeed

Additional info:
================
This failure is observed for build version "19.2.1-26" and up. The test was passing for previous versions.

Comment 19 errata-xmlrpc 2025-06-26 12:28:05 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 8.1 security, bug fix, and enhancement updates), 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-2025:9775