Bug 1496206 - Discover and login is performed only for the selected host when creating new storage domain
Summary: Discover and login is performed only for the selected host when creating new ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.3.0
: ---
Assignee: Allon Mureinik
QA Contact: Raz Tamir
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-26 16:24 UTC by Raz Tamir
Modified: 2019-04-28 14:22 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-09-28 14:15:43 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.3+
rule-engine: blocker+


Attachments (Terms of Use)
engine log (317.66 KB, application/x-gzip)
2017-09-26 16:24 UTC, Raz Tamir
no flags Details

Description Raz Tamir 2017-09-26 16:24:09 UTC
Created attachment 1331190 [details]
engine log

Description of problem:
When creating new storage domain, and discovering new targets, there's an option to login to a list of selected targets.
The selected targets will be available only for the host that is selected to add the new storage domain (Default: SPM). Screenshot attached

2017-09-26 19:00:06,502+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand] (default task-15) [2a3657b4-4412-457b-b3f3-d2fd479f0722] START, GetDeviceListVDSCommand(HostName = host_mixed_3, GetDeviceListVDSCommandP
arameters:{hostId='44df42f4-cfb8-48f5-bf1d-fb4d68b43d30', storageType='ISCSI', checkStatus='false', lunIds='null'}), log id: 5e2c0bea
2017-09-26 19:00:07,956+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand] (default task-15) [2a3657b4-4412-457b-b3f3-d2fd479f0722] FINISH, GetDeviceListVDSCommand, return: [LUNs:{id='3514f0c5a51600272', physical
VolumeId='j4eM41-4YFn-IxVQ-SEMA-Kiox-YZgj-jahPe5', volumeGroupId='DuwyG1-tVPj-qSPd-QSKK-mpuN-EbWg-Cjqp3P', serial='SXtremIO_XtremApp_XIO00153500071', lunMapping='2', vendorId='XtremIO', productId='XtremApp', lunConnections='[StorageServer
Connections:{id='null', connection='10.35.146.129', iqn='iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c00', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='null', netIfaceName='nul
l'}]', deviceSize='150', pvSize='149', peCount='null', peAllocatedCount='null', vendorName='XtremIO', pathsDictionary='[sdc=true]', pathsCapacity='[sdc=150]', lunType='ISCSI', status='Unknown', diskId='null', diskAlias='null', storageDoma
inId='null', storageDomainName='null', discardMaxSize='8388608', discardZeroesData='true'}, LUNs:{id='3514f0c5a51600271', physicalVolumeId='ZmEXut-OdKt-1vfx-JHjM-8cpe-kxBo-KTZmVj', volumeGroupId='slF8Mf-jc57-Zb7p-PqMl-tKT2-INnD-JY18iD', s
erial='SXtremIO_XtremApp_XIO00153500071', lunMapping='1', vendorId='XtremIO', productId='XtremApp', lunConnections='[StorageServerConnections:{id='null', connection='10.35.146.129', iqn='iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f
6c00', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='null', netIfaceName='null'}]', deviceSize='150', pvSize='149', peCount='null', peAllocatedCount='null', vendorName='XtremIO', pathsD
ictionary='[sdb=true]', pathsCapacity='[sdb=150]', lunType='ISCSI', status='Unknown', diskId='null', diskAlias='null', storageDomainId='null', storageDomainName='null', discardMaxSize='8388608', discardZeroesData='true'}, LUNs:{id='3514f0
c5a51600274', physicalVolumeId='VZIIkp-m5s6-WVqB-rJ0L-iBto-1Tl6-WUF2g2', volumeGroupId='3H7jG4-FUEi-evfI-XyQG-VTJx-aZ3T-Z6YCBQ', serial='SXtremIO_XtremApp_XIO00153500071', lunMapping='4', vendorId='XtremIO', productId='XtremApp', lunConne
ctions='[StorageServerConnections:{id='null', connection='10.35.146.129', iqn='iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c00', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='nu
ll', netIfaceName='null'}]', deviceSize='50', pvSize='49', peCount='null', peAllocatedCount='null', vendorName='XtremIO', pathsDictionary='[sde=true]', pathsCapacity='[sde=50]', lunType='ISCSI', status='Unknown', diskId='null', diskAlias=
'null', storageDomainId='null', storageDomainName='null', discardMaxSize='8388608', discardZeroesData='true'}, LUNs:{id='3514f0c5a51600273', physicalVolumeId='yzocOp-eOSo-kUkH-UpDK-abqt-BA2f-oIrjnT', volumeGroupId='970Gl2-7LlJ-XBhv-ZzDX-e
NPL-bxbk-BuTKCE', serial='SXtremIO_XtremApp_XIO00153500071', lunMapping='3', vendorId='XtremIO', productId='XtremApp', lunConnections='[StorageServerConnections:{id='null', connection='10.35.146.129', iqn='iqn.2008-05.com.xtremio:xio00153
500071-514f0c50023f6c00', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='null', netIfaceName='null'}]', deviceSize='150', pvSize='149', peCount='null', peAllocatedCount='null', vendorNam
e='XtremIO', pathsDictionary='[sdd=true]', pathsCapacity='[sdd=150]', lunType='ISCSI', status='Unknown', diskId='null', diskAlias='null', storageDomainId='null', storageDomainName='null', discardMaxSize='8388608', discardZeroesData='true'
}, LUNs:{id='3514f0c5a51600275', physicalVolumeId='0FKSUa-H5kJ-M8hd-Fatm-iciL-ebVP-pjK0sX', volumeGroupId='', serial='SXtremIO_XtremApp_XIO00153500071', lunMapping='5', vendorId='XtremIO', productId='XtremApp', lunConnections='[StorageSer
verConnections:{id='null', connection='10.35.146.129', iqn='iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c00', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='null', netIfaceName='
null'}]', deviceSize='50', pvSize='50', peCount='null', peAllocatedCount='null', vendorName='XtremIO', pathsDictionary='[sdf=true]', pathsCapacity='[sdf=50]', lunType='ISCSI', status='Unknown', diskId='null', diskAlias='null', storageDoma
inId='null', storageDomainName='null', discardMaxSize='8388608', discardZeroesData='true'}, LUNs:{id='3514f0c5a51600276', physicalVolumeId='2OMko2-5EG2-2Csn-3lLF-hm7N-ZUi5-WMOTjB', volumeGroupId='', serial='SXtremIO_XtremApp_XIO0015350007
1', lunMapping='6', vendorId='XtremIO', productId='XtremApp', lunConnections='[StorageServerConnections:{id='null', connection='10.35.146.129', iqn='iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c00', vfsType='null', mountOptions='n
ull', nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='null', netIfaceName='null'}]', deviceSize='50', pvSize='50', peCount='null', peAllocatedCount='null', vendorName='XtremIO', pathsDictionary='[sdg=true]', pathsCapacity='[
sdg=50]', lunType='ISCSI', status='Unknown', diskId='null', diskAlias='null', storageDomainId='null', storageDomainName='null', discardMaxSize='8388608', discardZeroesData='true'}], log id: 5e2c0bea
2017-09-26 19:00:19,552+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.DiscoverSendTargetsVDSCommand] (default task-31) [bc9f7454-ee0a-4373-9e85-2012f6158bf8] START, DiscoverSendTargetsVDSCommand(HostName = host_mixed_3, DiscoverSend
TargetsVDSCommandParameters:{hostId='44df42f4-cfb8-48f5-bf1d-fb4d68b43d30', connection='StorageServerConnections:{id='null', connection='10.35.146.129', iqn='null', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null'
, nfsTimeo='null', iface='null', netIfaceName='null'}'}), log id: 7ac6789e
2017-09-26 19:00:19,911+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.DiscoverSendTargetsVDSCommand] (default task-31) [bc9f7454-ee0a-4373-9e85-2012f6158bf8] FINISH, DiscoverSendTargetsVDSCommand, return: [StorageServerConnections:{
id='null', connection='10.35.146.129', iqn='iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c00', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='null', netIfaceName='null'}, StorageS
erverConnections:{id='null', connection='10.35.146.161', iqn='iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c01', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='null', netIfaceName
='null'}, StorageServerConnections:{id='null', connection='10.35.146.193', iqn='iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c04', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='n
ull', netIfaceName='null'}, StorageServerConnections:{id='null', connection='10.35.146.225', iqn='iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c05', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null', nfsTime
o='null', iface='null', netIfaceName='null'}], log id: 7ac6789e
2017-09-26 19:00:21,497+03 INFO  [org.ovirt.engine.core.bll.storage.connection.ConnectStorageToVdsCommand] (default task-7) [3486bc21-64fc-4fe7-ac1d-51b1e9fa0aa9] Running command: ConnectStorageToVdsCommand internal: false. Entities affec
ted :  ID: aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group CREATE_STORAGE_DOMAIN with role type ADMIN
2017-09-26 19:00:21,503+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (default task-7) [3486bc21-64fc-4fe7-ac1d-51b1e9fa0aa9] START, ConnectStorageServerVDSCommand(HostName = host_mixed_3, StorageServ
erConnectionManagementVDSParameters:{hostId='44df42f4-cfb8-48f5-bf1d-fb4d68b43d30', storagePoolId='00000000-0000-0000-0000-000000000000', storageType='ISCSI', connectionList='[StorageServerConnections:{id='null', connection='10.35.146.161
', iqn='iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c01', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='null', netIfaceName='null'}]'}), log id: 71934d6d
2017-09-26 19:00:23,443+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (default task-7) [3486bc21-64fc-4fe7-ac1d-51b1e9fa0aa9] FINISH, ConnectStorageServerVDSCommand, return: {00000000-0000-0000-0000-0
00000000000=0}, log id: 71934d6d
2017-09-26 19:00:23,659+03 INFO  [org.ovirt.engine.core.bll.storage.connection.ConnectStorageToVdsCommand] (default task-3) [d171cdff-4811-48c6-8263-2888c1ba33cf] Running command: ConnectStorageToVdsCommand internal: false. Entities affec
ted :  ID: aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group CREATE_STORAGE_DOMAIN with role type ADMIN
2017-09-26 19:00:23,667+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (default task-3) [d171cdff-4811-48c6-8263-2888c1ba33cf] START, ConnectStorageServerVDSCommand(HostName = host_mixed_3, StorageServ
erConnectionManagementVDSParameters:{hostId='44df42f4-cfb8-48f5-bf1d-fb4d68b43d30', storagePoolId='00000000-0000-0000-0000-000000000000', storageType='ISCSI', connectionList='[StorageServerConnections:{id='null', connection='10.35.146.193
', iqn='iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c04', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='null', netIfaceName='null'}]'}), log id: 2a94c17c
2017-09-26 19:00:27,016+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (default task-3) [d171cdff-4811-48c6-8263-2888c1ba33cf] FINISH, ConnectStorageServerVDSCommand, return: {00000000-0000-0000-0000-0
00000000000=0}, log id: 2a94c17c
2017-09-26 19:00:27,177+03 INFO  [org.ovirt.engine.core.bll.storage.connection.ConnectStorageToVdsCommand] (default task-14) [7f9f5a28-a1ef-4544-b390-6cf908f65bad] Running command: ConnectStorageToVdsCommand internal: false. Entities affe
cted :  ID: aaa00000-0000-0000-0000-123456789aaa Type: SystemAction group CREATE_STORAGE_DOMAIN with role type ADMIN
2017-09-26 19:00:27,183+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (default task-14) [7f9f5a28-a1ef-4544-b390-6cf908f65bad] START, ConnectStorageServerVDSCommand(HostName = host_mixed_3, StorageSer
verConnectionManagementVDSParameters:{hostId='44df42f4-cfb8-48f5-bf1d-fb4d68b43d30', storagePoolId='00000000-0000-0000-0000-000000000000', storageType='ISCSI', connectionList='[StorageServerConnections:{id='null', connection='10.35.146.22
5', iqn='iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c05', vfsType='null', mountOptions='null', nfsVersion='null', nfsRetrans='null', nfsTimeo='null', iface='null', netIfaceName='null'}]'}), log id: 76e36cb8
2017-09-26 19:00:31,866+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] (default task-14) [7f9f5a28-a1ef-4544-b390-6cf908f65bad] FINISH, ConnectStorageServerVDSCommand, return: {00000000-0000-0000-0000-
000000000000=0}, log id: 76e36cb8


Version-Release number of selected component (if applicable):
ovirt-engine-4.2.0-0.0.master.20170924221426.git196b802.el7.centos

How reproducible:
100%

Steps to Reproduce:
1. Discover new targets and login to all
1.1 Verify from the host using # iscsiadm -m session
2. Check from different host (iscsiadm -m session) - compare
3.

Actual results:
The host that was selected to discover and login will be the only one to login to new targets

Expected results:
All hosts should login to selected targets


Additional info:

Comment 1 Allon Mureinik 2017-09-26 16:25:48 UTC
This has always been the behavior. The login is performed when the domain is activated.

Comment 2 Raz Tamir 2017-09-26 16:34:24 UTC
In 4.1 this works as I described.

Also,
In case I have a host in the engine that is logged into all targets and I add new host it should login to all targets too (also happen in 4.1 and not in 4.2).

Comment 3 Allon Mureinik 2017-09-28 11:15:16 UTC
(In reply to Raz Tamir from comment #2)
> In 4.1 this works as I described.
> 
> Also,
> In case I have a host in the engine that is logged into all targets and I
> add new host it should login to all targets too (also happen in 4.1 and not
> in 4.2).

That doesn't sound right at all.
The only thing that should matter is the definition on the domain, not a random host you used for discovery.

Can you attach the logs for an 4.1 run of such a scenario?

Comment 4 Red Hat Bugzilla Rules Engine 2017-09-28 11:15:21 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 5 Raz Tamir 2017-09-28 14:15:43 UTC
(In reply to Allon Mureinik from comment #1)
> This has always been the behavior. The login is performed when the domain is
> activated.

Seems like my environment was in a bad state when open this bug - This is not a regression.

In 4.1 this works the same.
Sorry for the noise


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