Bug 1840202 - [ceph-ansible] - rolling_update from 4.x to 5.x failing saying version comparison not possible between 'str' and 'int'
Summary: [ceph-ansible] - rolling_update from 4.x to 5.x failing saying version compar...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Build
Version: 5.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 5.0
Assignee: Ken Dreyer (Red Hat)
QA Contact: Manasa
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-26 14:36 UTC by Vasishta
Modified: 2023-01-02 07:06 UTC (History)
9 users (show)

Fixed In Version: ceph-16.0.0-8633.el8cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-30 08:25:30 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-1241 0 None None None 2021-08-30 00:18:55 UTC
Red Hat Product Errata RHBA-2021:3294 0 None None None 2021-08-30 08:25:45 UTC

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


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