Bug 1566393 - When registering a VM that has disks on detached SD, error appears in engine.log, showing null as the SD name
Summary: When registering a VM that has disks on detached SD, error appears in engine....
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.2.2.6
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.2.4
: ---
Assignee: Maor
QA Contact: Evelina Shames
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-12 08:51 UTC by Natalie Gavrielov
Modified: 2018-06-26 08:45 UTC (History)
3 users (show)

Fixed In Version: ovirt-engine-4.2.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-26 08:45:17 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2+
ylavi: exception+


Attachments (Terms of Use)
engine.log and vdsm.log (2.42 MB, application/zip)
2018-04-12 08:51 UTC, Natalie Gavrielov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 90230 0 master MERGED core: Fix info log in engine 2018-04-15 20:40:21 UTC
oVirt gerrit 90289 0 ovirt-engine-4.2 MERGED core: Fix info log in engine 2018-05-08 11:15:04 UTC

Description Natalie Gavrielov 2018-04-12 08:51:19 UTC
Created attachment 1420757 [details]
engine.log and vdsm.log

Description of problem:
When registering a VM that has some disks on unattached storage domains, errors are generated to the engine.log showing the missing storage domains names as 'null'. 

Version-Release number of selected component:
rhvm-4.2.2.6-0.1.el7.noarch
vdsm-4.20.23-1.el7ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. create a VM with disks on 6 storage domains: 2 NFS, 2 iscsi, 2 gluster (one on each storage domain)
2. detach all storage domains
3. attach only part of them (one of each type)
4. register the VM

Actual results:
Error in engine.log, for each disk that wasn't registered, showing null as the storage domain name:
2018-04-11 23:06:15,347+03 ERROR [org.ovirt.engine.core.bll.validator.ImportValidator] (default task-23) [5b8e49a8-98bc-448a-861d-ae815b56bd9a] Storage Domain 'null' with id 'dd0bf7a0-9a84-4290-9568-6e0c3538f886', could not be found for disk alias 'test_vm_disk_nfs_4' with image id 'df183cf5-2661-4d11-a3bf-a324e8fea78c'
2018-04-11 23:06:15,347+03 ERROR [org.ovirt.engine.core.bll.validator.ImportValidator] (default task-23) [5b8e49a8-98bc-448a-861d-ae815b56bd9a] Storage Domain 'null' with id '70bffef2-09ef-4001-b842-f858c255852b', could not be found for disk alias 'test_vm_disk_iscsi_4' with image id 'dff4dc75-56e2-4368-8473-89ac0e556d10'
2018-04-11 23:06:15,349+03 ERROR [org.ovirt.engine.core.bll.validator.ImportValidator] (default task-23) [5b8e49a8-98bc-448a-861d-ae815b56bd9a] Storage Domain 'null' with id '6f11866f-dcf4-4aeb-86d3-889f06a2794b', could not be found for disk alias 'test_vm_disk_gluster_4' with image id '68580eaa-3cd6-4706-8c75-6101cd573d5c'

Expected results:
1. The storage domain name to be displayed.
2. Maybe these messages could be logged as WARN instead of ERROR.

Additional info:
Found in verification of bug 1547907

Comment 1 Maor 2018-04-12 12:42:01 UTC
The error message is when storage domain does not exists in the Data Center.
The same can also be when the storage domain does not exists in the setup at all.
Therefore we can not know the name of the storage domain.

Comment 2 Maor 2018-04-12 12:43:11 UTC
Will changing the name to 'unknown' will be better?
Like so:
 "Storage Domain 'unknown' with id 'dd0bf7a0-9a84-4290-9568-6e0c3538f886', could not be found for disk alias...."

Comment 3 Natalie Gavrielov 2018-04-12 13:21:21 UTC
(In reply to Maor from comment #2)
> Will changing the name to 'unknown' will be better?
> Like so:
>  "Storage Domain 'unknown' with id 'dd0bf7a0-9a84-4290-9568-6e0c3538f886',
> could not be found for disk alias...."

I think it's best to display the actual name of the storage domain.

Comment 4 Natalie Gavrielov 2018-04-12 13:24:27 UTC
(In reply to Natalie Gavrielov from comment #3)
> (In reply to Maor from comment #2)
> > Will changing the name to 'unknown' will be better?
> > Like so:
> >  "Storage Domain 'unknown' with id 'dd0bf7a0-9a84-4290-9568-6e0c3538f886',
> > could not be found for disk alias...."
> 
> I think it's best to display the actual name of the storage domain.

I mean, to find a way to do so

Comment 5 Natalie Gavrielov 2018-04-12 13:27:41 UTC
Maor,

I think it is better to display 'unknown' than 'null', but it would still look like a bug.
The optimal solution is to display the name.

Comment 6 Maor 2018-04-12 14:00:18 UTC
(In reply to Natalie Gavrielov from comment #5)
> Maor,
> 
> I think it is better to display 'unknown' than 'null', but it would still
> look like a bug.
> The optimal solution is to display the name.

The solution should be comprehensive for all use cases including a use case when the storage domains does not exists in the setup.
For this use case there is no way to know the storage domains' names.

Comment 7 Maor 2018-04-12 14:01:06 UTC
(In reply to Maor from comment #6)
> (In reply to Natalie Gavrielov from comment #5)
> > Maor,
> > 
> > I think it is better to display 'unknown' than 'null', but it would still
> > look like a bug.
> > The optimal solution is to display the name.
> 
> The solution should be comprehensive for all use cases including a use case
> when the storage domains does not exists in the setup.
> For this use case there is no way to know the storage domains' names.

Let's go with the 'unknown' for now, it will be better than null

Comment 8 Evelina Shames 2018-06-12 12:53:22 UTC
Verified.
ovirt-engine-4.2.4.2-0.1.el7_3.noarch

Comment 9 Sandro Bonazzola 2018-06-26 08:45:17 UTC
This bugzilla is included in oVirt 4.2.4 release, published on June 26th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.4 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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