Bug 1820980

Summary: Updating attached VM disk cause many warnings Can't find relative path for class "org.ovirt.engine.api.resource.StorageDomainVmDiskAttachmentsResource", will return null
Product: [oVirt] ovirt-engine Reporter: Avihai <aefrat>
Component: BLL.StorageAssignee: Ahmad Khiet <akhiet>
Status: CLOSED CURRENTRELEASE QA Contact: Shir Fishbain <sfishbai>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4.0CC: bugs, eshenitz, pagranat, tnisan
Target Milestone: ovirt-4.4.0Flags: pm-rhel: ovirt-4.4+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1842457 (view as bug list) Environment:
Last Closed: 2020-05-20 19:57:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1842457    
Attachments:
Description Flags
engine log
none
engine log and full response none

Description Avihai 2020-04-05 08:13:15 UTC
Created attachment 1676342 [details]
engine log

Description of problem:
Update attached disk cause many WARNINGS in the engine logs, no apparent effect other than that:

2020-04-04 17:29:41,623+03 WARN  [org.ovirt.engine.api.restapi.util.LinkHelper] (default task-16) [] Can't find relative path for class "org.ovirt.engine.api.resource.StorageDomainVmDiskAttachmentsResource", will return null


Version-Release number of selected component (if applicable):
4.4.0-0.31.master.el8ev

How reproducible:
100%

Steps to Reproduce:
1.Create VM
2.attach a disk
3.checkout engine logs

Actual results:
See the WARN errors.

Expected results:


Additional info:

Comment 1 Polina 2020-04-06 07:48:28 UTC
I see the same warnings in engine when sending get disks.
The following sequence of GET requests is sent.

https://{{host}}/ovirt-engine/api/datacenters
https://{{host}}/ovirt-engine/api/datacenters/a2a8201e-bcbe-4bb1-b207-d11a7d84bee6/storagedomains
https://{{host}}/ovirt-engine/api/datacenters/a2a8201e-bcbe-4bb1-b207-d11a7d84bee6/storagedomains/99db88f3-a794-491c-9cdc-0925289aab70/disks

In response to the get disks there is a 'null' in all the links :
...
   <actions>
            <link href="/ovirt-engine/api/storagedomains/99db88f3-a794-491c-9cdc-0925289aab70/null/ca60f727-8821-4b67-8f2e-c8f9f8011354/move" rel="move"/>
            <link href="/ovirt-engine/api/storagedomains/99db88f3-a794-491c-9cdc-0925289aab70/null/ca60f727-8821-4b67-8f2e-c8f9f8011354/register" rel="register"/>
            <link href="/ovirt-engine/api/storagedomains/99db88f3-a794-491c-9cdc-0925289aab70/null/ca60f727-8821-4b67-8f2e-c8f9f8011354/copy" rel="copy"/>
            <link href="/ovirt-engine/api/storagedomains/99db88f3-a794-491c-9cdc-0925289aab70/null/ca60f727-8821-4b67-8f2e-c8f9f8011354/sparsify" rel="sparsify"/>
            <link href="/ovirt-engine/api/storagedomains/99db88f3-a794-491c-9cdc-0925289aab70/null/ca60f727-8821-4b67-8f2e-c8f9f8011354/export" rel="export"/>
        </actions>
        <name>OVF_STORE</name>
        <description>OVF_STORE</description>
        <link href="/ovirt-engine/api/storagedomains/99db88f3-a794-491c-9cdc-0925289aab70/null/ca60f727-8821-4b67-8f2e-c8f9f8011354/permissions" rel="permissions"/>
        <link href="/ovirt-engine/api/storagedomains/99db88f3-a794-491c-9cdc-0925289aab70/null/ca60f727-8821-4b67-8f2e-c8f9f8011354/statistics" rel="statistics"/>
....

attached logs.tar.gz contains full response with 'null' in all links

Comment 2 Polina 2020-04-06 07:49:17 UTC
Created attachment 1676503 [details]
engine log and full response

Comment 3 Tal Nisan 2020-04-20 08:18:10 UTC
Should be solved in imageio 2.0, please retest

Comment 4 Shir Fishbain 2020-04-20 12:37:45 UTC
Verified - The warnings don't appear in the engine log when updating the attached VM disk.

ovirt-engine-4.4.0-0.33.master.el8ev.noarch
vdsm-4.40.13-1.el8ev.x86_64

Comment 5 Sandro Bonazzola 2020-05-20 19:57:49 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 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.