Bug 1820980 - Updating attached VM disk cause many warnings Can't find relative path for class "org.ovirt.engine.api.resource.StorageDomainVmDiskAttachmentsResource", will return null
Summary: Updating attached VM disk cause many warnings Can't find relative path for cl...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.4.0
: ---
Assignee: Ahmad Khiet
QA Contact: Shir Fishbain
URL:
Whiteboard:
Depends On:
Blocks: 1842457
TreeView+ depends on / blocked
 
Reported: 2020-04-05 08:13 UTC by Avihai
Modified: 2020-06-01 09:57 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
: 1842457 (view as bug list)
Environment:
Last Closed: 2020-05-20 19:57:49 UTC
oVirt Team: Storage
Embargoed:
pm-rhel: ovirt-4.4+


Attachments (Terms of Use)
engine log (513.49 KB, text/plain)
2020-04-05 08:13 UTC, Avihai
no flags Details
engine log and full response (627.25 KB, application/gzip)
2020-04-06 07:49 UTC, Polina
no flags Details

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.


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