Bug 2351790 - [8.1][Cephadm-Ansible][Ceph Pre-Installation Checks][cephadm-preflight.yml] Playbook Fails at "Store All Preflight Check Results"
Summary: [8.1][Cephadm-Ansible][Ceph Pre-Installation Checks][cephadm-preflight.yml] P...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 8.1
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 8.1
Assignee: Kushal Deb
QA Contact: Mohit Bisht
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-13 02:54 UTC by Mohit Bisht
Modified: 2025-06-26 12:28 UTC (History)
6 users (show)

Fixed In Version: cephadm-ansible-4.1.3-1.el9cp
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2025-06-26 12:28:18 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-10841 0 None None None 2025-03-13 02:54:49 UTC
Red Hat Product Errata RHSA-2025:9775 0 None None None 2025-06-26 12:28:21 UTC

Description Mohit Bisht 2025-03-13 02:54:18 UTC
Description of problem:
========================
cephadm-preflight playbook is failing at the "Store All Preflight Check Results

Error:
*********
TASK [Store all preflight check results] *****************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:43 +0000 (0:00:00.068)       0:00:08.637 ******* 
fatal: [10.0.215.50]: FAILED! => 
  msg: |-
    The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'status'. 'dict object' has no attribute 'status'
  
    The error appears to be in '/usr/share/cephadm-ansible/checks.yml': line 177, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.
  
    The offending line appears to be:
  
  
    - name: Store all preflight check results
      ^ here

Full run log:
***************
# ansible-playbook -i hosts cephadm-preflight.yml --extra-vars "ceph_origin=custom" -e "custom_repo_url=http://download-01.beak-001.prod.iad2.dc.redhat.com/rhel-9/composes/auto/ceph-8.1-rhel-9/RHCEPH-8.1-RHEL-9-20250312.ci.0/compose/Tools/x86_64/os/"
PLAY [Insecure_registries] *******************************************************************************************************************************************************************************************************************

TASK [Fail if insecure_registry is undefined] ************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:34 +0000 (0:00:00.016)       0:00:00.016 ******* 
skipping: [localhost]

PLAY [Preflight] *****************************************************************************************************************************************************************************************************************************

TASK [Fail when ceph_origin is custom with no repository defined] ****************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:34 +0000 (0:00:00.039)       0:00:00.056 ******* 
skipping: [localhost]

TASK [Fail if baseurl is not defined for ceph_custom_repositories] ***************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:34 +0000 (0:00:00.017)       0:00:00.074 ******* 
skipping: [localhost]

PLAY [Pre-requisites playbook] ***************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:34 +0000 (0:00:00.028)       0:00:00.102 ******* 
ok: [10.0.215.50]

TASK [Initialize preflight results list] *****************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:35 +0000 (0:00:01.241)       0:00:01.344 ******* 
ok: [10.0.215.50]

TASK [Collect Installed Package Facts] *******************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:35 +0000 (0:00:00.023)       0:00:01.368 ******* 
ok: [10.0.215.50]

TASK [Check if OS is RHEL 9+] ****************************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:36 +0000 (0:00:00.819)       0:00:02.187 ******* 
ok: [10.0.215.50]

TASK [Ensure SELinux is set to Enforcing mode] ***********************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:36 +0000 (0:00:00.049)       0:00:02.237 ******* 
ok: [10.0.215.50]

TASK [Determine SELinux Check Result] ********************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:37 +0000 (0:00:00.544)       0:00:02.781 ******* 
ok: [10.0.215.50]

TASK [Determine SELinux Failure Reason] ******************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:37 +0000 (0:00:00.034)       0:00:02.816 ******* 
ok: [10.0.215.50]

TASK [Determine Package Installation Check Result] *******************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:37 +0000 (0:00:00.028)       0:00:02.844 ******* 
ok: [10.0.215.50]

TASK [Determine Package Installation Failure Reason] *****************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:37 +0000 (0:00:00.045)       0:00:02.889 ******* 
ok: [10.0.215.50]

TASK [Fetch Firewalld status] ****************************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:37 +0000 (0:00:00.049)       0:00:02.939 ******* 
ok: [10.0.215.50]

TASK [Extract Podman version if installed] ***************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:37 +0000 (0:00:00.521)       0:00:03.460 ******* 
ok: [10.0.215.50]

TASK [Determine if Podman meets version requirement (>=3.3)] *********************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:37 +0000 (0:00:00.031)       0:00:03.491 ******* 
ok: [10.0.215.50]

TASK [Validate RHEL software profile] ********************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:37 +0000 (0:00:00.050)       0:00:03.542 ******* 
ok: [10.0.215.50]

TASK [Define RHEL Profile Check Result] ******************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:38 +0000 (0:00:00.917)       0:00:04.460 ******* 
ok: [10.0.215.50]

TASK [Define RHEL Profile Check Reason] ******************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:38 +0000 (0:00:00.030)       0:00:04.490 ******* 
ok: [10.0.215.50]

TASK [Get current tuned profile] *************************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:38 +0000 (0:00:00.027)       0:00:04.517 ******* 
ok: [10.0.215.50]

TASK [Define Tuned Profile Check Result] *****************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:39 +0000 (0:00:00.330)       0:00:04.848 ******* 
ok: [10.0.215.50]

TASK [Define Tuned Profile Check Reason] *****************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:39 +0000 (0:00:00.028)       0:00:04.877 ******* 
ok: [10.0.215.50]

TASK [Check CPU x86-64-v2 support] ***********************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:39 +0000 (0:00:00.027)       0:00:04.905 ******* 
ok: [10.0.215.50]

TASK [Define CPU, RAM, Swap, and Filesystem Check Variables] *********************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:39 +0000 (0:00:00.227)       0:00:05.132 ******* 
ok: [10.0.215.50]

TASK [Ping all hosts in inventory to measure latency] ****************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:39 +0000 (0:00:00.139)       0:00:05.272 ******* 
ok: [10.0.215.50] => (item=10.0.215.50)

TASK [Define networking facts] ***************************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:42 +0000 (0:00:03.297)       0:00:08.569 ******* 
ok: [10.0.215.50]

TASK [Store all preflight check results] *****************************************************************************************************************************************************************************************************
Wednesday 12 March 2025  16:19:43 +0000 (0:00:00.068)       0:00:08.637 ******* 
fatal: [10.0.215.50]: FAILED! => 
  msg: |-
    The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'status'. 'dict object' has no attribute 'status'
  
    The error appears to be in '/usr/share/cephadm-ansible/checks.yml': line 177, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.
  
    The offending line appears to be:
  
  
    - name: Store all preflight check results
      ^ here

PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
10.0.215.50                : ok=22   changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
localhost                  : ok=0    changed=0    unreachable=0    failed=0    skipped=3    rescued=0    ignored=0   

Wednesday 12 March 2025  16:19:43 +0000 (0:00:00.055)       0:00:08.693 ******* 
=============================================================================== 
Ping all hosts in inventory to measure latency ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3.30s
Gathering Facts ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.24s
Validate RHEL software profile -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.92s
Collect Installed Package Facts ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.82s
Ensure SELinux is set to Enforcing mode ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.54s
Fetch Firewalld status ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.52s
Get current tuned profile ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.33s
Check CPU x86-64-v2 support ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.23s
Define CPU, RAM, Swap, and Filesystem Check Variables --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.14s
Define networking facts --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.07s
Store all preflight check results ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.06s
Determine if Podman meets version requirement (>=3.3) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
Check if OS is RHEL 9+ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
Determine Package Installation Failure Reason ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
Determine Package Installation Check Result ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
Fail if insecure_registry is undefined ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.04s
Determine SELinux Check Result -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.03s
Extract Podman version if installed --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.03s
Define RHEL Profile Check Result ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.03s
Determine SELinux Failure Reason ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.03s

Version-Release number of selected component (if applicable):
=================================================================
cephadm-ansible-4.0.0-1.el9cp.noarch

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

Steps to Reproduce:
=====================
1. Install cephadm-anisble
2. Run cephadm-preflight playbook

Actual results:
================
cephadm-preflight playbook is failing at the "Store All Preflight Check Results

Expected results:
==================
cephadm-preflight should pass and give "Ceph Pre-Installation Checks" report

Additional info:
==================
JIRA: https://jsw.ibm.com/browse/ISCE-1612

Comment 18 errata-xmlrpc 2025-06-26 12:28:18 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


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