Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1098590

Summary: [Admin Portal] When suspending a VM there's "down" icon for a while
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engineAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Ilanit Stein <istein>
Severity: medium Docs Contact:
Priority: low    
Version: 3.4.0CC: gklein, istein, jbelka, lsurette, michal.skrivanek, rbalakri, rgolan, Rhev-m-bugs, srevivo, ykaul
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.6.0-9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-20 01:10:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vdsm.log
none
engine.log
none
engine.log, vdsm.log none

Description Jiri Belka 2014-05-16 15:37:48 UTC
Description of problem:
When suspending a VM there's "down" icon for a while, this seems odd.

Flow:
- up icon
- suspend action
- down icon
- in-progress icon
- sleep icon

Version-Release number of selected component (if applicable):
rhevm-webadmin-portal-3.4.0-0.20.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. see flow above
2.
3.

Actual results:
'down' icon for a VM which is not down

Expected results:
up -> in-progress -> sleep

Additional info:

Comment 1 Michal Skrivanek 2014-05-17 07:37:22 UTC
vdsm logs would help. I suppose the down state is reported briefly

Comment 2 Jiri Belka 2014-05-21 08:41:17 UTC
Created attachment 897882 [details]
vdsm.log

Comment 3 Jiri Belka 2014-05-21 08:41:40 UTC
Created attachment 897883 [details]
engine.log

Comment 4 Michal Skrivanek 2014-05-23 10:40:17 UTC
Roy, please check the NPE in VURTI in engine.log 

2014-05-21 08:07:41,921 WARN  [org.ovirt.engine.core.vdsbroker.VdsManager] (DefaultQuartzScheduler_Worker-74) Failed to refresh VDS , vds = 8359aae1-3a72-4e04-86d0-08d1b601d5ec : dell-r21
0ii-04, error = java.lang.NullPointerException, continuing.: java.lang.NullPointerException
        at org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.handOverVM(VdsUpdateRunTimeInfo.java:1816) [vdsbroker.jar:]
...

Comment 5 Michal Skrivanek 2014-05-23 10:43:53 UTC
also, I don't find anything strange in dsm logs, nor in engine.log...

Comment 6 Roy Golan 2014-08-11 23:13:00 UTC
(In reply to Michal Skrivanek from comment #4)
> Roy, please check the NPE in VURTI in engine.log 
> 
> 2014-05-21 08:07:41,921 WARN  [org.ovirt.engine.core.vdsbroker.VdsManager]
> (DefaultQuartzScheduler_Worker-74) Failed to refresh VDS , vds =
> 8359aae1-3a72-4e04-86d0-08d1b601d5ec : dell-r21
> 0ii-04, error = java.lang.NullPointerException, continuing.:
> java.lang.NullPointerException
>         at
> org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.
> handOverVM(VdsUpdateRunTimeInfo.java:1816) [vdsbroker.jar:]
> 

there is an open bug for that. I'll trace it an comment again.

for the matter itself, we are reflecting the statuses the VM goes through so for a really prompt status transition I don't think its worth the noise in the code.

we would have to figure out that we are in transition to suspend, i.e we need to save the context in the UI somehow. its nothing we currently have.

suggesting to close notabug

Comment 7 Michal Skrivanek 2014-08-12 13:42:41 UTC
I didn't find anything wrong in the logs (other than the VM got suspended in the meantime, while we timed out on response from GA, which doesn't seem significant)

engine log looks fine too, Jiri, can you reproduce it?

Comment 8 Jiri Belka 2014-08-14 07:58:59 UTC
Yes, I still see the 'issue' still with 3.5.0-0.0.master.20140804172041.git23b558e.el6

Comment 9 Michal Skrivanek 2014-08-18 12:17:16 UTC
logs may help this time (and time window). thanks!

Comment 10 Jiri Belka 2014-08-19 07:41:37 UTC
Created attachment 928213 [details]
engine.log, vdsm.log

there's still 'down' icon for a while before there's 'in progress' icon...

Comment 11 Omer Frenkel 2015-08-19 15:15:30 UTC
this has changed in 3.6, there is no more intermidiate status during the volumes creation, vm is up (and locked, with lock status) until it start to hibernate to file (save state) and then down (suspended)
please verify.

Comment 12 Ilanit Stein 2015-11-11 14:29:25 UTC
Verified on rhevm 3.6.0-18.

Following suspend action the VM "UP" icon moves to "UP"+""lock picture", and then icon changes to "sleep" icons.