Created attachment 738513[details]
log
Description of problem:
adding a domain -> closing the dialogue with the X -> adding a second domain.
the new domain dialogue will suddenly disappear (looks like crash)
Version-Release number of selected component (if applicable):
sf13.1
How reproducible:
100%
Steps to Reproduce:
1. create 3 iscsi luns and an iscsi cluster with two hosts
2. open the new domain dialogue and log in to all 3 luns
3. expend the first domain -> select the check box -> ok -> once the sand clock starts -> close the dialogue with X
4. open a new domain dialogue -> start creating a new domain (select the DC atc)
Actual results:
the new domain dialogue disappears (looks like a crash)
Expected results:
since closing the dialogue does not cancel the action we should be able to create several domains like that and the new dialogue should not crash.
either way, dialogue should never disappear the way it does.
Additional info: engine log
2013-04-22 15:39:56,231 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand] (ajp-/127.0.0.1:8702-3) START, GetDeviceListVDSCommand(HostName = cougar01, HostId = 42248b17-62ab-4f1f-88e0-5f24b445d00b, storageType=ISCSI), log id: 4fde853f
2013-04-22 15:39:59,159 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand] (ajp-/127.0.0.1:8702-3) FINISH, GetDeviceListVDSCommand, return: [org.ovirt.engine.core.common.businessentities.LUNs@5e550e4b, org.ovirt.engine.core.common.businessentities.LUNs@913bc119, org.ovirt.engine.core.common.businessentities.LUNs@62b8632e], log id: 4fde853f
2013-04-22 15:40:06,257 INFO [org.ovirt.engine.core.bll.storage.AddSANStorageDomainCommand] (ajp-/127.0.0.1:8702-2) [677de470] Running command: AddSANStorageDomainCommand internal: false. Entities affected : ID: aaa00000-0000-0000-0000-123456789aaa Type: System
2013-04-22 15:40:06,265 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] START, CreateVGVDSCommand(HostName = cougar01, HostId = 42248b17-62ab-4f1f-88e0-5f24b445d00b, storageDomainId=62f382b7-5512-4000-a260-1ee7728484cb, deviceList=[1Dafna-021366551], force=false), log id: 292c923f
2013-04-22 15:40:07,716 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] FINISH, CreateVGVDSCommand, return: QCHwh7-sBBH-FF0I-xa0A-GtZb-C2NE-RMmXKV, log id: 292c923f
2013-04-22 15:40:07,719 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] START, CreateStorageDomainVDSCommand(HostName = cougar01, HostId = 42248b17-62ab-4f1f-88e0-5f24b445d00b, storageDomain=org.ovirt.engine.core.common.businessentities.StorageDomainStatic@945bb439, args=QCHwh7-sBBH-FF0I-xa0A-GtZb-C2NE-RMmXKV), log id: 47ba1605
2013-04-22 15:40:12,958 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand] (ajp-/127.0.0.1:8702-9) START, GetDeviceListVDSCommand(HostName = cougar01, HostId = 42248b17-62ab-4f1f-88e0-5f24b445d00b, storageType=ISCSI), log id: 7f687e00
2013-04-22 15:40:15,539 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] FINISH, CreateStorageDomainVDSCommand, log id: 47ba1605
2013-04-22 15:40:15,543 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetStorageDomainStatsVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] START, GetStorageDomainStatsVDSCommand(HostName = cougar01, HostId = 42248b17-62ab-4f1f-88e0-5f24b445d00b, storageDomainId=62f382b7-5512-4000-a260-1ee7728484cb), log id: f5c3f70
2013-04-22 15:40:15,888 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand] (ajp-/127.0.0.1:8702-9) FINISH, GetDeviceListVDSCommand, return: [org.ovirt.engine.core.common.businessentities.LUNs@5e550e4b, org.ovirt.engine.core.common.businessentities.LUNs@1f9db398, org.ovirt.engine.core.common.businessentities.LUNs@62b8632e], log id: 7f687e00
2013-04-22 15:40:15,929 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetStorageDomainStatsVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] FINISH, GetStorageDomainStatsVDSCommand, return: org.ovirt.engine.core.common.businessentities.storage_domains@8e306253, log id: f5c3f70
2013-04-22 15:40:15,936 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetVGInfoVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] START, GetVGInfoVDSCommand(HostName = cougar01, HostId = 42248b17-62ab-4f1f-88e0-5f24b445d00b, VGID=QCHwh7-sBBH-FF0I-xa0A-GtZb-C2NE-RMmXKV), log id: 4691cbd8
2013-04-22 15:40:16,312 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetVGInfoVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] FINISH, GetVGInfoVDSCommand, return: [org.ovirt.engine.core.common.businessentities.LUNs@62131bd8], log id: 4691cbd8
The underlining issue is similar to bug 954361.
I.e. the problem is that the UI handles storage domain creation as a complex action - the UI calls three actions consequentially: AddStorageServerConnection, AddNFSStorageDomain, RemoveStorageServerConnection. In order to fix such issues described in the bugs, these actions should be consolidated to a single backend command which could handle error flows.
(In reply to Ayal Baron from comment #6)
> Daniel, why is this not a duplicate of bug 954361?
The scenarios and impact are different though both requires the same fix (as described in comment #1). So we can leave this bug as 'Depends On' the RFE or close as duplicate.
Created attachment 738513 [details] log Description of problem: adding a domain -> closing the dialogue with the X -> adding a second domain. the new domain dialogue will suddenly disappear (looks like crash) Version-Release number of selected component (if applicable): sf13.1 How reproducible: 100% Steps to Reproduce: 1. create 3 iscsi luns and an iscsi cluster with two hosts 2. open the new domain dialogue and log in to all 3 luns 3. expend the first domain -> select the check box -> ok -> once the sand clock starts -> close the dialogue with X 4. open a new domain dialogue -> start creating a new domain (select the DC atc) Actual results: the new domain dialogue disappears (looks like a crash) Expected results: since closing the dialogue does not cancel the action we should be able to create several domains like that and the new dialogue should not crash. either way, dialogue should never disappear the way it does. Additional info: engine log 2013-04-22 15:39:56,231 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand] (ajp-/127.0.0.1:8702-3) START, GetDeviceListVDSCommand(HostName = cougar01, HostId = 42248b17-62ab-4f1f-88e0-5f24b445d00b, storageType=ISCSI), log id: 4fde853f 2013-04-22 15:39:59,159 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand] (ajp-/127.0.0.1:8702-3) FINISH, GetDeviceListVDSCommand, return: [org.ovirt.engine.core.common.businessentities.LUNs@5e550e4b, org.ovirt.engine.core.common.businessentities.LUNs@913bc119, org.ovirt.engine.core.common.businessentities.LUNs@62b8632e], log id: 4fde853f 2013-04-22 15:40:06,257 INFO [org.ovirt.engine.core.bll.storage.AddSANStorageDomainCommand] (ajp-/127.0.0.1:8702-2) [677de470] Running command: AddSANStorageDomainCommand internal: false. Entities affected : ID: aaa00000-0000-0000-0000-123456789aaa Type: System 2013-04-22 15:40:06,265 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] START, CreateVGVDSCommand(HostName = cougar01, HostId = 42248b17-62ab-4f1f-88e0-5f24b445d00b, storageDomainId=62f382b7-5512-4000-a260-1ee7728484cb, deviceList=[1Dafna-021366551], force=false), log id: 292c923f 2013-04-22 15:40:07,716 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVGVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] FINISH, CreateVGVDSCommand, return: QCHwh7-sBBH-FF0I-xa0A-GtZb-C2NE-RMmXKV, log id: 292c923f 2013-04-22 15:40:07,719 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] START, CreateStorageDomainVDSCommand(HostName = cougar01, HostId = 42248b17-62ab-4f1f-88e0-5f24b445d00b, storageDomain=org.ovirt.engine.core.common.businessentities.StorageDomainStatic@945bb439, args=QCHwh7-sBBH-FF0I-xa0A-GtZb-C2NE-RMmXKV), log id: 47ba1605 2013-04-22 15:40:12,958 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand] (ajp-/127.0.0.1:8702-9) START, GetDeviceListVDSCommand(HostName = cougar01, HostId = 42248b17-62ab-4f1f-88e0-5f24b445d00b, storageType=ISCSI), log id: 7f687e00 2013-04-22 15:40:15,539 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStorageDomainVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] FINISH, CreateStorageDomainVDSCommand, log id: 47ba1605 2013-04-22 15:40:15,543 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetStorageDomainStatsVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] START, GetStorageDomainStatsVDSCommand(HostName = cougar01, HostId = 42248b17-62ab-4f1f-88e0-5f24b445d00b, storageDomainId=62f382b7-5512-4000-a260-1ee7728484cb), log id: f5c3f70 2013-04-22 15:40:15,888 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetDeviceListVDSCommand] (ajp-/127.0.0.1:8702-9) FINISH, GetDeviceListVDSCommand, return: [org.ovirt.engine.core.common.businessentities.LUNs@5e550e4b, org.ovirt.engine.core.common.businessentities.LUNs@1f9db398, org.ovirt.engine.core.common.businessentities.LUNs@62b8632e], log id: 7f687e00 2013-04-22 15:40:15,929 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetStorageDomainStatsVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] FINISH, GetStorageDomainStatsVDSCommand, return: org.ovirt.engine.core.common.businessentities.storage_domains@8e306253, log id: f5c3f70 2013-04-22 15:40:15,936 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetVGInfoVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] START, GetVGInfoVDSCommand(HostName = cougar01, HostId = 42248b17-62ab-4f1f-88e0-5f24b445d00b, VGID=QCHwh7-sBBH-FF0I-xa0A-GtZb-C2NE-RMmXKV), log id: 4691cbd8 2013-04-22 15:40:16,312 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetVGInfoVDSCommand] (ajp-/127.0.0.1:8702-2) [677de470] FINISH, GetVGInfoVDSCommand, return: [org.ovirt.engine.core.common.businessentities.LUNs@62131bd8], log id: 4691cbd8