Bug 2013114 - ODF 4.9 deployment fails with " TypeError: '<' not supported between instances of 'str' and 'int'"
Summary: ODF 4.9 deployment fails with " TypeError: '<' not supported between instance...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: odf-operator
Version: 4.9
Hardware: ppc64le
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Nitin Goyal
QA Contact: Raz Tamir
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-12 07:19 UTC by Aditi
Modified: 2023-08-09 17:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-12 08:00:21 UTC
Embargoed:


Attachments (Terms of Use)

Description Aditi 2021-10-12 07:19:26 UTC
Description of problem (please be detailed as possible and provide log
snippests):

ODF 4.9 deployment failed with following error message:

ocs_ci/deployment/deployment.py:173: in deploy_cluster
    self.deploy_ocs()
ocs_ci/deployment/deployment.py:905: in deploy_ocs
    self.deploy_ocs_via_operator(image)
ocs_ci/deployment/deployment.py:448: in deploy_ocs_via_operator
    setup_local_storage(storageclass=self.DEFAULT_STORAGECLASS_LSO)
ocs_ci/deployment/helpers/lso_helpers.py:113: in setup_local_storage
    data["spec"]["channel"] = get_lso_channel()
ocs_ci/utility/retry.py:25: in f_retry
    return f(*args, **kwargs)
ocs_ci/utility/localstorage.py:220: in get_lso_channel
    versions.sort()
/usr/lib64/python3.8/distutils/version.py:52: in __lt__
    c = self._cmp(other)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = LooseVersion ('stable'), other = LooseVersion ('4.9')

    def _cmp (self, other):
        if isinstance(other, str):
            other = LooseVersion(other)

        if self.version == other.version:
            return 0
>       if self.version < other.version:
E       TypeError: '<' not supported between instances of 'str' and 'int'

/usr/lib64/python3.8/distutils/version.py:337: TypeError
================= 856 deselected, 1 error in 394.07s (0:06:34) =================







Version of all relevant components (if applicable):
4.9


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
yes, unable to deploy ODF 4.9

Is there any workaround available to the best of your knowledge?
no

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
1

Can this issue reproducible?
yes

Can this issue reproduce from the UI?


If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1.Tried to deploy ODF using ocs-ci
2.
3.


Actual results:
Got the following error:
02:50:08 - MainThread - ocs_ci.utility.utils - INFO - Executing command: oc version -o json
02:50:10 - MainThread - ocs_ci.utility.utils - INFO - Executing command: oc -n openshift-marketplace get packagemanifest  -n openshift-marketplace --selector=catalog=optional-operators -o yaml
02:50:14 - MainThread - ocs_ci.deployment.deployment - ERROR - '<' not supported between instances of 'str' and 'int'


Expected results:
ODF deployment should proceed 


Additional info:

Comment 2 Mudit Agarwal 2021-10-12 08:00:21 UTC
This looks like a ci issue.
Please raise an issue here: https://github.com/red-hat-storage/ocs-ci/issues


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