Bug 896541 - References(Role="XXX") throws an exception
Summary: References(Role="XXX") throws an exception
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pywbem
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Nalley
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-17 14:14 UTC by Jan Safranek
Modified: 2013-02-08 17:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-08 17:03:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Safranek 2013-01-17 14:14:20 UTC
I have python provider of LMI_HostedStorageService association class (association between CIM_OperatingSystem and LMI_StorageService). If I call CIM_OperatingSystem.References with Role argument, I get CIMError: (1, "** this shouldn't happen").

Reproducer (in lmishell):
os=root.Linux_ComputerSystem.first_instance()
os.references(Role='Antecedent', ResultClass="LMI_HostedStorageService")

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/lmi/lmi_client_shell.py", line 387, in wrapped
    return fn(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/lmi/lmi_client_shell.py", line 573, in references
    references_list = self._client._get_references(self._inst, **references_args)
  File "/usr/lib/python2.7/site-packages/lmi/lmi_client_base.py", line 172, in _get_references
    return self._cliconn.References(instance.path, **params)
  File "/usr/lib/python2.7/site-packages/pywbem/cim_operations.py", line 749, in References
    **params)
  File "/usr/lib/python2.7/site-packages/pywbem/cim_operations.py", line 219, in imethodcall
    raise CIMError(code, tt[1]['DESCRIPTION'])


Version-Release number of selected component (if applicable):
pywbem-0.7.0-7.fc18.noarch

Comment 1 Jan Safranek 2013-01-17 14:22:39 UTC
Patch sent upstream: http://sourceforge.net/mailarchive/message.php?msg_id=30364424

Comment 2 Jan Safranek 2013-01-21 11:51:47 UTC
I pushed this patch upstream, SVN rev. 613.

Comment 3 Fedora Update System 2013-01-28 14:29:13 UTC
pywbem-0.7.0-8.20130128svn613.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/pywbem-0.7.0-8.20130128svn613.fc18

Comment 4 Fedora Update System 2013-01-30 00:49:30 UTC
pywbem-0.7.0-8.20130128svn613.fc18 has been pushed to the Fedora 18 testing repository.

Comment 5 Fedora Update System 2013-02-08 17:03:28 UTC
pywbem-0.7.0-8.20130128svn613.fc18 has been pushed to the Fedora 18 stable repository.


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