Bug 1721662

Summary: Exception (function' object has no attribute 'im_self') while running CDH 5.x
Product: Red Hat OpenStack Reporter: Luigi Toscano <ltoscano>
Component: python-sahara-plugin-cdhAssignee: Telles Nobrega <tenobreg>
Status: CLOSED ERRATA QA Contact: Luigi Toscano <ltoscano>
Severity: high Docs Contact: Tana <tberry>
Priority: high    
Version: 15.0 (Stein)CC: tenobreg
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-sahara-plugin-cdh-1.0.1-0.20191022220431.3c4b424.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-05 11:58:26 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:
Bug Depends On:    
Bug Blocks: 1612113    

Description Luigi Toscano 2019-06-18 20:09:15 UTC
Description of problem:

When starting a RHEL7 CDH image on a RHEL8 system (Stein), the deployment fails and the following exception is visible inside sahara-engine.log




[instance: none, cluster: 37140c3c-75f7-4f8e-96b0-9da92063cc21] Operation with name Await starting Cloudera Ma>
[instance: none, cluster: 37140c3c-75f7-4f8e-96b0-9da92063cc21] Error during operating on cluster (reason: 'functio>
[...]
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/sahara/service/ops.py", line 207, in wrapper
    f(cluster_id, *args, **kwds)
  File "/usr/lib/python3.6/site-packages/sahara/service/ops.py", line 310, in _provision_cluster
    plugin.configure_cluster(cluster)
  File "/usr/lib/python3.6/site-packages/sahara_plugin_cdh/plugins/cdh/plugin.py", line 62, in configure_cluster
    cluster.hadoop_version).configure_cluster(cluster)
  File "/usr/lib/python3.6/site-packages/sahara_plugin_cdh/plugins/cdh/abstractversionhandler.py", line 161, in configure_cluster
    self.deploy.configure_cluster(cluster)
  File "/usr/lib/python3.6/site-packages/sahara_plugin_cdh/plugins/cdh/v5_13_0/deploy.py", line 37, in configure_cluster
    CU.update_cloudera_password(cluster)
  File "/usr/lib/python3.6/site-packages/sahara_plugin_cdh/plugins/cdh/cloudera_utils.py", line 114, in update_cloudera_password
    user = api.get_user(self.CM_DEFAULT_USERNAME)
  File "/usr/lib/python3.6/site-packages/sahara_plugin_cdh/plugins/cdh/client/api_client.py", line 128, in get_user
    return users.get_user(self, username)
  File "/usr/lib/python3.6/site-packages/sahara_plugin_cdh/plugins/cdh/client/users.py", line 38, in get_user
    '%s/%s' % (USERS_PATH, username), ApiUser)
  File "/usr/lib/python3.6/site-packages/sahara_plugin_cdh/plugins/cdh/client/types.py", line 145, in call
    check_api_version(method.im_self, api_version)
AttributeError: 'function' object has no attribute 'im_self'


Version-Release number of selected component (if applicable):
openstack-sahara-api-10.0.1-0.20190503161819.994ff8c.el8ost.noarch
openstack-sahara-common-10.0.1-0.20190503161819.994ff8c.el8ost.noarch
python3-sahara-10.0.1-0.20190503161819.994ff8c.el8ost.noarch
python3-sahara-plugin-mapr-1.0.1-0.20190503160355.7f4e060.el8ost.noarch
python3-saharaclient-2.2.0-0.20190312151158.25043cb.el8ost.noarch




See also the upstream story.

Comment 15 Luigi Toscano 2020-02-14 10:24:06 UTC
The issue is no longer visible and a CDH cluster can be created.

Verified on:
openstack-sahara-common-10.0.1-0.20191022230426.1fa76ce.el8ost.noarch
openstack-sahara-engine-10.0.1-0.20191022230426.1fa76ce.el8ost.noarch
python3-sahara-10.0.1-0.20191022230426.1fa76ce.el8ost.noarch
python3-sahara-plugin-ambari-1.0.1-0.20191212120442.9f0c190.el8ost.noarch
python3-sahara-plugin-cdh-1.0.2-0.20191212130444.09ce917.el8ost.noarch
python3-sahara-plugin-mapr-1.0.2-0.20191212130444.f58087b.el8ost.noarch
python3-saharaclient-2.2.1-0.20190701100404.564380a.el8ost.noarch

Comment 16 Alex McLeod 2020-02-19 12:48:23 UTC
If this bug requires doc text for errata release, please set the 'Doc Type' and provide draft text according to the template in the 'Doc Text' field. The documentation team will review, edit, and approve the text.

If this bug does not require doc text, please set the 'requires_doc_text' flag to '-'.

Comment 18 errata-xmlrpc 2020-03-05 11:58:26 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, 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-2020:0716

Comment 19 Red Hat Bugzilla 2023-09-14 05:30:32 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days