Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1353430 - RHEV-M should rescan the scsi bus when creating and attaching a new FC storage domain
RHEV-M should rescan the scsi bus when creating and attaching a new FC storag...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
3.6.5
All Unspecified
unspecified Severity medium
: ovirt-4.0.2
: 4.0.2
Assigned To: Fred Rolland
Kevin Alon Goldblatt
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-07 00:40 EDT by nijin ashok
Modified: 2017-03-21 17:05 EDT (History)
12 users (show)

See Also:
Fixed In Version: ovirt-engine-4.0.2.2
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-08-23 16:43:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Storage
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
vdsm server and engine logs (754.63 KB, application/x-gzip)
2016-08-09 12:37 EDT, Kevin Alon Goldblatt
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 60582 master MERGED engine: ConnectStorageServer on attach FC SD 2016-07-26 06:19 EDT
oVirt gerrit 61389 ovirt-engine-4.0 MERGED engine: ConnectStorageServer on attach FC SD 2016-07-26 07:19 EDT
oVirt gerrit 61392 ovirt-engine-4.0.2 MERGED engine: ConnectStorageServer on attach FC SD 2016-07-26 07:19 EDT
Red Hat Product Errata RHEA-2016:1743 normal SHIPPED_LIVE Red Hat Virtualization Manager 4.0 GA Enhancement (ovirt-engine) 2016-09-02 17:54:01 EDT

  None (edit)
Description nijin ashok 2016-07-07 00:40:34 EDT
Description of problem:

Currently RHEV-M is only rescanning the scsi bus of host which is selected as "Use Host" when adding the FC storage domain. So the LUN will only be available in this host and will fail when attaching the storage domain to Data Center (unless the customer go in each host and scan the scsi bus manually).

I think as a part of attach process, we should recsan the scsi bus of every host in the Data Center so that the storage domain attach process should work without any manual intervention.

This is working for iscsi where we issue  connectStorageServer for each host. 

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

Red Hat Enterprise Virtualization 3.6
rhevm-3.6.5.3-0.1.el6.noarch
rhevm-backend-3.6.5.3-0.1.el6.noarchrhevm-backend-3.6.5.3-0.1.el6.noarch

How reproducible:

100%

Steps to Reproduce:

1. Assign a new FC LUN from the storage domain.

2. Add this to the RHEV-M without manually rescanning the scsi bus

3. Addition of storage domain will be successful. However the attach process fails with error "Storage domain does not exist"

Actual results:

Attaching storage domain fails with error "Storage domain does not exist"

Expected results:

Attaching storage domain should work without any manual intervention. 

Additional info:
Comment 3 Allon Mureinik 2016-07-07 08:07:06 EDT
Fred, shouldn't this have been solved by bug 1242200?
Comment 7 Kevin Alon Goldblatt 2016-08-09 12:20:17 EDT
rhevm-4.0.2.4-0.1.el7ev.noarch
vdsm-4.18.10-1.el7ev.x86_64

Tested with the following scenario:


Steps to Reproduce:
1. Create an FC domain and select a LUN >>>> The domain is created successfully but the Attach LUN is reported to have failed in the host that was selected in "Use Host".

Actual results:
The domain is created successfully but the Attach LUN is reported to have failed in the host that was selected in "Use Host".


Moving to ASSIGNED! 



From vdsm.log on the host that was chosen in "Use Host"
---------------------------------------------------------
Domain.create' in bridge with {u'name': u'fc_domain', u'domainType': 2, u'domainClass': 1, u'typeArgs': u'FZkAt8-wbM3-R6K0-c
txv-Tfpk-RpTO-vPvOHH', u'version': u'3', u'storagedomainID': u'9bd915f2-1937-42b2-a74b-adc473658bbd'}
jsonrpc.Executor/6::DEBUG::2016-08-09 19:03:04,235::task::597::Storage.TaskManager.Task::(_updateState) Task=`f8bdcbd5-98c6-
4739-8242-a64d0787c03f`::moving from state init -> state preparing
jsonrpc.Executor/6::INFO::2016-08-09 19:03:04,235::logUtils::49::dispatcher::(wrapper) Run and protect: createStorageDomain(
storageType=2, sdUUID=u'9bd915f2-1937-42b2-a74b-adc473658bbd', domainName=u'fc_domain', typeSpecificArg=u'FZkAt8-wbM3-R6K0-c
txv-Tfpk-RpTO-vPvOHH', domClass=1, domVersion=u'3', options=None)
jsonrpc.Executor/6::ERROR::2016-08-09 19:03:04,235::sdc::140::Storage.StorageDomainCache::(_findDomain) looking for unfetche
d domain 9bd915f2-1937-42b2-a74b-adc473658bbd
jsonrpc.Executor/6::ERROR::2016-08-09 19:03:04,235::sdc::157::Storage.StorageDomainCache::(_findUnfetchedDomain) looking for
 domain 9bd915f2-1937-42b2-a74b-adc473658bbd
jsonrpc.Executor/6::ERROR::2016-08-09 19:03:04,237::sdc::146::Storage.StorageDomainCache::(_findDomain) domain 9bd915f2-1937
-42b2-a74b-adc473658bbd not found
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/sdc.py", line 144, in _findDomain
    dom = findMethod(sdUUID)
  File "/usr/share/vdsm/storage/sdc.py", line 174, in _findUnfetchedDomain
    raise se.StorageDomainDoesNotExist(sdUUID)
StorageDomainDoesNotExist: Storage domain does not exist: (u'9bd915f2-1937-42b2-a74b-adc473658bbd',)
jsonrpc.Executor/6::INFO::2016-08-09 19:03:04,237::blockSD::865::Storage.StorageDomain::(create) sdUUID=9bd915f2-1937-42b2-a
74b-adc473658bbd domainName=fc_domain domClass=1 vgUUID=FZkAt8-wbM3-R6K0-ctxv-Tfpk-RpTO-vPvOHH storageType=2 version=3
jsonrpc.Executor/6::DEBUG::2016-08-09 19:03:04,238::lvm::288::Storage.Misc.excCmd::(cmd) /usr/bin/taskset --cpu-list 0-3 /us
r/bin/sudo -n /usr/sbin/lvm vgs --config ' devices { preferred_names = ["^/dev/mapper/"] ignore_suspended_devices=1 write_ca
che_state=0 disable_after_error_count=3 filter = [ '\''a|/dev/mapper/3514f0c5a5160001f|/dev/mapper/3514f0c5a51600020|/dev/ma
pper/3514f0c5a51600021|/dev/mapper/3514f0c5a51600022|/dev/mapper/3514f0c5a51600023|/dev/mapper/3514f0c5a51600024|/dev/mapper
/3514f0c5a51600328|/dev/mapper/3514f0c5a51600329|'\'', '\''r|.*|'\'' ] }  global {  locking_type=1  prioritise_write_locks=1
  wait_for_locks=1  use_lvmetad=0 }  backup {  retain_min = 50  retain_days = 0 } ' --noheadings --units b --nosuffix --sepa
rator '|' --ignoreskippedcluster -o uuid,name,attr,size,free,extent_size,extent_count,free_count,tags,vg_mda_size,vg_mda_fre
e,lv_count,pv_count,pv_name (cwd None)
jsonrpc.Executor/6::DEBUG::2016-08-09 19:03:04,338::lvm::288::Storage.Misc.excCmd::(cmd) SUCCESS: <err> = "  WARNING: lvmeta
d is running but disabled. Restart lvmetad before enabling it!\n  Couldn't find device with uuid CVleRk-c492-fpP1-WFEc-N13T-
Lu1f-aKQFNf.\n"; <rc> = 0
Comment 8 Kevin Alon Goldblatt 2016-08-09 12:37 EDT
Created attachment 1189357 [details]
vdsm server and engine logs

Adding logs
Comment 9 Fred Rolland 2016-08-10 06:54:45 EDT
Hi Kevin,

Can you explain what exactly failed? What is "Attach LUN" ?

Also describe what is the test scenario you have done.

Thanks,

Fred
Comment 12 errata-xmlrpc 2016-08-23 16:43:46 EDT
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/RHEA-2016-1743.html

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