Bug 1225417

Summary: Disks not visible in Storage devices tab on clicking Sync option
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Arthy Loganathan <aloganat>
Component: vdsmAssignee: Timothy Asir <tjeyasin>
Status: CLOSED ERRATA QA Contact: RamaKasturi <knarra>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.1CC: asrivast, dpati, knarra, ltrilety, nlevinki, rhs-bugs, rnachimu, sabose
Target Milestone: ---   
Target Release: RHGS 3.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm-4.16.20-1.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-29 04:53:28 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: 1223855, 1226846    
Bug Blocks: 1202842    

Description Arthy Loganathan 2015-05-27 10:30:23 UTC
Description of problem:
Not able to see disks in storage devices tab.

Version-Release number of selected component (if applicable):
rhsc-3.1.0-0.57.master.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. Add rhs nodes in xml rpc mode
2. Go to Storage Devices tab and click sync

Actual results:
Disks in rhs node are not listed

Expected results:
All the Disks in rhs node should be listed

Additional info:

Engine Log snippet:
2015-05-27 20:21:07,981 INFO  [org.ovirt.engine.core.vdsbroker.gluster.GetStorageDeviceListVDSCommand] (org.ovirt.thread.pool-6-thread-16) [6a078bc2] HostName = gsnode1.redhat.com
2015-05-27 20:21:07,982 ERROR [org.ovirt.engine.core.vdsbroker.gluster.GetStorageDeviceListVDSCommand] (org.ovirt.thread.pool-6-thread-16) [6a078bc2] Command GetStorageDeviceListVDSCommand(HostName = gsnode1.redhat.com, HostId = 6f7fea68-32dd-4376-86fd-95d332ea78c6) execution failed. Exception: VDSErrorException: VDSGenericException: VDSErrorException: Failed to GetStorageDeviceListVDS, error = 'NoneType' object has no attribute 'get', code = -32603
2015-05-27 20:21:07,982 INFO  [org.ovirt.engine.core.vdsbroker.gluster.GetStorageDeviceListVDSCommand] (org.ovirt.thread.pool-6-thread-16) [6a078bc2] FINISH, GetStorageDeviceListVDSCommand, log id: 72697cbb
2015-05-27 20:21:07,982 ERROR [org.ovirt.engine.core.bll.gluster.StorageDeviceSyncJob] (org.ovirt.thread.pool-6-thread-16) Exception retriving storage device from vds VdcBLLException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed to GetStorageDeviceListVDS, error = 'NoneType' object has no attribute 'get', code = -32603 (Failed with error unexpected and code 16)


Vdsm Log snippet:

Thread-14::ERROR::2015-05-27 20:28:37,601::BindingXMLRPC::1152::vds::(wrapper) unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/rpc/BindingXMLRPC.py", line 1136, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/gluster/api.py", line 69, in wrapper
    rv = func(*args, **kwargs)
  File "/usr/share/vdsm/gluster/api.py", line 447, in storageDevicesList
    status = self.svdsmProxy.glusterStorageDevicesList()
  File "/usr/share/vdsm/supervdsm.py", line 50, in __call__
    return callMethod()
  File "/usr/share/vdsm/supervdsm.py", line 48, in <lambda>
    **kwargs)
  File "<string>", line 2, in glusterStorageDevicesList
  File "/usr/lib64/python2.6/multiprocessing/managers.py", line 740, in _callmethod
    raise convert_to_error(kind, result)
AttributeError: 'NoneType' object has no attribute 'get'

Comment 2 Ramesh N 2015-05-27 11:37:10 UTC
DeviceList is failing in RHEL6.6 build. 

Tim: Can u back port the patch which u had sent upstream?

Comment 3 Timothy Asir 2015-05-28 12:24:17 UTC
We have a workaround for this bug.
https://gerrit.ovirt.org/#/c/41466/ till it gets fixed by blivet team

for rhel: https://bugzilla.redhat.com/show_bug.cgi?id=1225417

Comment 5 RamaKasturi 2015-06-18 08:57:05 UTC
Verified and works fine with build rhsc-3.1.0-0.60.el6.noarch.

Syncing of storage devices is successful when hosts are added in xmlrpc mode and able to create a brick, marking it verified.

Comment 6 errata-xmlrpc 2015-07-29 04:53:28 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://rhn.redhat.com/errata/RHSA-2015-1495.html