Bug 1489349 - cannot import storage storage domain when 'use manage gluster volume' feature is used.
Summary: cannot import storage storage domain when 'use manage gluster volume' featur...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhhi
Version: rhhi-1.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: RHHI 1.1
Assignee: Sahina Bose
QA Contact: RamaKasturi
URL:
Whiteboard:
Depends On: 1466326
Blocks: RHHI-1.1-Approved-Backlog-BZs
TreeView+ depends on / blocked
 
Reported: 2017-09-07 09:10 UTC by Sahina Bose
Modified: 2018-01-03 10:53 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1466326
Environment:
Last Closed: 2018-01-03 10:53:48 UTC
Embargoed:


Attachments (Terms of Use)

Description Sahina Bose 2017-09-07 09:10:02 UTC
+++ This bug was initially created as a clone of Bug #1466326 +++

Description of problem:
While importing a storage domain using 'use manager gluster volume' feature it fails with error "Error while executing action DisconnectStorageServerConnection: Error storage server disconnection" and "Error while executing action: Path filed cannot be empty".

Traceback in vdsm.log:
==========================

2017-06-28 19:56:45,514+0530 INFO  (jsonrpc/5) [dispatcher] Run and protect: disconnectStorageServer(domType=7, spUUID=u'00000000-0000-0000-0000-000000000000', conList=[{u'm
nt_options': u'backup-volfile-servers=10.70.36.80:10.70.36.81', u'id': u'00000000-0000-0000-0000-000000000000', u'connection': u'', u'iqn': u'', u'user': u'', u'tpgt': u'1',
 u'vfs_type': u'glusterfs', u'password': '********', u'port': u''}], options=None) (logUtils:51)
2017-06-28 19:56:45,515+0530 ERROR (jsonrpc/5) [storage.TaskManager.Task] (Task='d79757ac-7338-4171-b01b-b9a59222c98a') Unexpected error (task:870)
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/task.py", line 877, in _run
    return fn(*args, **kargs)
  File "/usr/lib/python2.7/site-packages/vdsm/logUtils.py", line 52, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/storage/hsm.py", line 2470, in disconnectStorageServer
    conObj = storageServer.ConnectionFactory.createConnection(conInfo)
  File "/usr/share/vdsm/storage/storageServer.py", line 638, in createConnection
    return ctor(**params)
  File "/usr/share/vdsm/storage/storageServer.py", line 245, in __init__
    self._volfileserver, volname = self._remotePath.split(":", 1)
ValueError: need more than 1 value to unpack
2017-06-28 19:56:45,555+0530 INFO  (jsonrpc/5) [storage.TaskManager.Task] (Task='d79757ac-7338-4171-b01b-b9a59222c98a') aborting: Task is aborted: u'need more than 1 value t
o unpack' - code 100 (task:1175)
2017-06-28 19:56:45,555+0530 ERROR (jsonrpc/5) [storage.Dispatcher] need more than 1 value to unpack (dispatcher:80)
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/dispatcher.py", line 72, in wrapper
    result = ctask.prepare(func, *args, **kwargs)
  File "/usr/share/vdsm/storage/task.py", line 105, in wrapper
    return m(self, *a, **kw)
  File "/usr/share/vdsm/storage/task.py", line 1183, in prepare
    raise self.error
ValueError: need more than 1 value to unpack
2017-06-28 19:56:45,566+0530 INFO  (jsonrpc/5) [jsonrpc.JsonRpcServer] RPC call StoragePool.disconnectStorageServer failed (error 452) in 0.05 seconds (__init__:533)


Version-Release number of selected component (if applicable):
Red Hat Virtualization Manager Version: 4.1.2.2-0.1.el7

How reproducible:
Always

Steps to Reproduce:
1. Create  new storage domain from UI
2. Now detach and remove that storage domain
3. Try importing the same domain using 'use manage gluster volume' feature

Actual results:
Importing of storage domain fails with error mentioned in the description.

Expected results:
Importing of storage domain should be successful.

Additional info:
Importing storage domain with out using 'use mange gluster volume' feature works fine.

--- Additional comment from RamaKasturi on 2017-06-29 08:45 EDT ---



--- Additional comment from RamaKasturi on 2017-06-29 08:45 EDT ---



--- Additional comment from RamaKasturi on 2017-06-29 08:50:56 EDT ---

Logs are present in the link below:
===================================

http://rhsqe-repo.lab.eng.blr.redhat.com/sosreports/HC/1466326/

Comment 2 RamaKasturi 2017-11-29 11:33:51 UTC
Verified and works fine with Red Hat Virtualization Manager Version: 4.1.8.1-0.1.el7

Followed the steps below to verify the bug.
===============================================
1) Create a gluster volume and add that as a storage domain in the UI using the feature 'Use managed gluster volume'.
2) Now moved the storage domain to maintenance, detached and removed it from UI .
3) Tried importing the same domain again using 'use managed gluster volume' feature and it worked well with out any issues.


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