Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1501416

Summary: lsmcli -u smispy volume-create: UNKNOWN_ERROR_NUMBER(-32601): 'module' object has no attribute 'AuthError'
Product: Red Hat Enterprise Linux 7 Reporter: Jakub Krysl <jkrysl>
Component: libstoragemgmtAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Jakub Krysl <jkrysl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: fge
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libstoragemgmt-1.6.0-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 15:37:02 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: 1478493    

Description Jakub Krysl 2017-10-12 14:26:43 UTC
Description of problem:
Hit this error with smispy plugin for EMC array with CI regression testing:
# lsmcli  -u "smispy://user@target?namespace=root/emc&no_ssl_verify=yes" volume-create --name='lsm-basic-test-lun' --size='2G' --pool='CLARiiON+FCN00122500421+U+Pool 0' --provisioning='DEFAULT' -P
Password: 
UNKNOWN_ERROR_NUMBER(-32601): 'module' object has no attribute 'AuthError' 

I am positive the password is correct, hit this with automated test. I tried to trigger it manually and got the same. Also tried a wrong password and got the same message.
Other commands do not return 'AuthError'.

Fails both with and without ssl.

No errors with libstoragemgmt-1.4.0-3, so setting Regression. (manually confirmed)

Version-Release number of selected component (if applicable):
1.5.0-2

How reproducible:
100%

Steps to Reproduce:
1.try to create volume using smispy plugin for EMC
lsmcli  -u "smispy+ssl://user@target?namespace=root/emc&no_ssl_verify=yes" volume-create --name='lsm-basic-test-lun' --size='2G' --pool='CLARiiON+FCN00122500421+U+Pool 0' --provisioning='DEFAULT' -P

Actual results:
UNKNOWN_ERROR_NUMBER(-32601): 'module' object has no attribute 'AuthError' 

Expected results:
volume created

Additional info:
We are running a server with daemon connected to EMC and using this server as a target for smispy plugin to connect to EMC array.

Comment 3 Gris Ge 2017-10-17 13:27:35 UTC
Patch has been submitted to upstream for review:
https://github.com/libstorage/libstoragemgmt/pull/314

Comment 5 Jakub Krysl 2017-10-20 09:50:49 UTC
wrong password:
# lsmcli  -u "smispy://user@target?namespace=root/emc" volume-create --name='lsm-basic-test-lun' --size='2G' --pool='CLARiiON+FCN00122500421+U+Pool 0' --provisioning='DEFAULT' -P
Password: 
PLUGIN_AUTH_FAILED(300): Unauthorized user 

correct password:
# lsmcli  -u "smispy://user@target?namespace=root/emc" volume-create --name='lsm-basic-test-lun' --size='2G' --pool='CLARiiON+FCN00122500421+U+Pool 0' --provisioning='DEFAULT' -P
Password: 
PLUGIN_BUG(2): global name 'pywbem' is not defined Data: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/lsm/plugin/smispy/utils.py", line 39, in cim_wrapper
    return method(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/lsm/plugin/smispy/smis.py", line 419, in volume_create
    'Size': pywbem.Uint64(size_bytes)}
NameError: global name 'pywbem' is not defined

Gris,
did I miss something in the update?
I installed libstoragemgmt using yum (1.4.0) and than installed lsm 1.6.0 packages from brew using 'yum update'. The packages are:
libstoragemgmt-python-1.6.0-1.el7.noarch.rpm
libstoragemgmt-smis-plugin-1.6.0-1.el7.noarch.rpm
libstoragemgmt-1.6.0-1.el7.x86_64.rpm
libstoragemgmt-python-clibs-1.6.0-1.el7.x86_64.rpm
Thanks

Comment 6 Gris Ge 2017-10-20 10:38:57 UTC
Sorry. Clearly I didn't fix the issue.
Will fix it soon.

Comment 7 Jakub Krysl 2017-10-20 11:19:39 UTC
Thanks for clarification, giving back.

Comment 8 Jakub Krysl 2017-10-20 15:00:41 UTC
This patch fixed it, volume is successfully created.

Comment 11 errata-xmlrpc 2018-04-10 15:37:02 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/RHEA-2018:0864