Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1840202

Summary: [ceph-ansible] - rolling_update from 4.x to 5.x failing saying version comparison not possible between 'str' and 'int'
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: BuildAssignee: Ken Dreyer (Red Hat) <kdreyer>
Status: CLOSED ERRATA QA Contact: Manasa <mgowri>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.0CC: aschoen, ceph-eng-bugs, dsavinea, gmeno, kdreyer, mgowri, nthomas, vereddy, ykaul
Target Milestone: ---   
Target Release: 5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.0.0-8633.el8cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-30 08:25:30 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 Vasishta 2020-05-26 14:36:40 UTC
Description of problem:
Rolling update from 4.x to 5.x failed in task ceph-container-common : set_fact ceph_release jewel saying '<' not supported between instances of 'str' and 'int'

Version-Release number of selected component (if applicable):
$ rpm -qa|grep ansible
ceph-ansible-5.0.0-49.gc220e6f9.el8cp.noarch
ansible-2.9.9-1.el8ae.noarch

How reproducible:
Tried once

Steps to Reproduce:
1. Configure 4.x RHCS cluster and run rolling update to upgrade cluster to 5.x


Actual results:
 msg: |-
    The conditional check 'ceph_version.split('.')[0] is version('10', '==')' failed. The error was: Version comparison: '<' not supported between instances of 'str' and 'int'

    The error appears to be in '/usr/share/ceph-ansible/roles/ceph-container-common/tasks/release.yml': line 2, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.

    The offending line appears to be:

    ---
    - name: set_fact ceph_release jewel
      ^ here


Expected results:
Rolling update must not fail

Additional info:

Comment 13 errata-xmlrpc 2021-08-30 08:25:30 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 (Red Hat Ceph Storage 5.0 bug fix and enhancement), 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/RHBA-2021:3294