Bug 1651939

Summary: a new size of the direct LUN not updated in Admin Portal
Product: Red Hat Enterprise Virtualization Manager Reporter: Olimp Bockowski <obockows>
Component: ovirt-engineAssignee: Fedor Gavrilov <fgavrilo>
Status: CLOSED ERRATA QA Contact: meital avital <mavital>
Severity: low Docs Contact:
Priority: low    
Version: 4.2.7CC: aefrat, eshenitz, fgavrilo, frolland, mkalinin, nsoffer, obockows, pelauter, tnisan
Target Milestone: ovirt-4.4.0Flags: lsvaty: testing_plan_complete-
Target Release: 4.3.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1741153 1741155 (view as bug list) Environment:
Last Closed: 2020-08-04 13:16:18 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: 1741153, 1741155    

Description Olimp Bockowski 2018-11-21 09:24:45 UTC
Description of problem:
The direct LUN is extended on a storage device. Since the Bug 1155275 "[RFE][Cinder] - Online update LUN size to the Guest after LUN resize" 
(https://bugzilla.redhat.com/show_bug.cgi?id=1155275) is not implemented yet, there is a recommendation to put the VM down and start again to have a new size:
https://access.redhat.com/solutions/1230283
The new size is ok for VM and is seen on the hypervisor, multipathd shows the proper size as well, but still in the Admin Portal the LUN size is not updated. 


Version-Release number of selected component (if applicable):
4.x 

How reproducible:
always

Steps to Reproduce:
1. expand LUN on a storage device
2. put the Vm down and start again
3. check and confirm the size inside the VM, even some VG increase can be performed, check on hypervisor the LUN size in multipathd
4. check GUI and confirm it is not updated.

Actual results:
not updated in Admin Portal only

Expected results:
it is updated everywhere

Additional info:
The problems seems to be lack of action "refreshlun" 
I fixed the problem running REST API request:

curl --request POST  --header "Accept: application/xml" --header "Host: ${FQDN}" --header "Authorization: Bearer  ${TOKEN}"  --cacert /etc/pki/ovirt-engine/apache-ca.pem https://${FQDN}:443/ovirt-engine/api/disks/${LUNID}/refreshlun --header "Content-Type: application/xml" --data "<action><host id='${HOSTID}'/></action>"

Comment 1 Tal Nisan 2018-11-25 15:17:10 UTC
Hi Olimp,
In that case I think the right way is to update the docs with the last step you mentioned, isn't it?

Comment 8 Sandro Bonazzola 2019-01-28 09:44:03 UTC
This bug has not been marked as blocker for oVirt 4.3.0.
Since we are releasing it tomorrow, January 29th, this bug has been re-targeted to 4.3.1.

Comment 10 Marina Kalinin 2019-02-26 15:17:54 UTC
How about adding a button to UI "refresh lun" that will run this API command per user request?

Comment 12 Nir Soffer 2019-02-26 16:00:49 UTC
Adding an easy way to refresh LUN size sounds like a good idea, something
like "Refresh Host Capabilities".

Comment 13 Daniel Gur 2019-08-28 13:13:07 UTC
sync2jira

Comment 14 Daniel Gur 2019-08-28 13:17:20 UTC
sync2jira

Comment 17 RHV bug bot 2019-12-13 13:16:12 UTC
WARN: Bug status (ON_QA) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops: Bug status (ON_QA) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops

Comment 18 RHV bug bot 2019-12-20 17:45:41 UTC
WARN: Bug status (ON_QA) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops: Bug status (ON_QA) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops

Comment 19 RHV bug bot 2020-01-08 14:47:51 UTC
WARN: Bug status (ON_QA) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops: Bug status (ON_QA) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops

Comment 20 RHV bug bot 2020-01-08 15:17:45 UTC
WARN: Bug status (ON_QA) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops: Bug status (ON_QA) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops

Comment 21 RHV bug bot 2020-01-24 19:49:36 UTC
WARN: Bug status (ON_QA) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops: Bug status (ON_QA) wasn't changed but the folowing should be fixed:

[Found non-acked flags: '{}', ]

For more info please contact: rhv-devops

Comment 22 Daniel 2020-03-04 09:05:27 UTC
Verified via web admin and logs on version 4.4.0-0.24.master.el8ev.
Refresh LUN button works and refresh the LUN disk as expected.
Current bug is closed as verified - button works as it should and really refresh LUN disk and the size changed as it should.

At the end of the refresh process, an UI error raised both on web admin and logs. Thus, a bug with the complete details and scenario will be open.

Comment 29 errata-xmlrpc 2020-08-04 13:16:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: RHV Manager (ovirt-engine) 4.4 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHSA-2020:3247