Bug 809821

Summary: [UserPortal-gwtp] VM can not start after set its snapshot to "preview" mode
Product: [Retired] oVirt Reporter: Avihai Shoham <ashoham>
Component: ovirt-engine-userportalAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED WORKSFORME QA Contact:
Severity: urgent Docs Contact:
Priority: high    
Version: unspecifiedCC: acathrow, ashoham, dyasny, iheim, mgoldboi, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-09 11:47:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot
none
NullPointerException description none

Description Avihai Shoham 2012-04-04 13:08:11 UTC
Created attachment 575123 [details]
screenshot

Description of problem:

when i set one of the snapshot to "preview mode" i saw  that round brackets were added to VM name

This happen only when using userportal , and it doesn't reproduced in webadmin.


How reproducible:


Steps to Reproduce:
1.login to userportal 
2.have a VM with snapshots
3. choose snapshot and set it to preview mode
  
see attached file

Comment 1 Avihai Shoham 2012-04-04 13:46:43 UTC
it occurs in the new userportal (userportal-gwtp)

Comment 2 Avihai Shoham 2012-04-04 14:16:10 UTC
Created attachment 575135 [details]
NullPointerException description

Comment 3 Avihai Shoham 2012-04-04 14:18:42 UTC
the problem with this bug , is that it will breed NullPointerException when a user will run  VM. see  attachment 575135 [details]

Comment 4 Avihai Shoham 2012-04-04 14:40:51 UTC
to fix this issue we need to resolve the round brackets which added to VM name.

Steps to Reproduce:
1.login to userportal 
2.have a VM with snapshots
3. choose snapshot and set it to preview mode (you will see that brackets were added to VM name)
4.RunOnce VM

Comment 5 Einav Cohen 2012-04-11 14:18:31 UTC
There is a possibility that there are two separate problems here, not sure if/how much they are related:

- The brackets should contain the VM description; in case the description of the VM is empty, you shouldn't see brackets at all. Here is seems that the description is empty, yet you are seeing the brackets; maybe the description is null and we are expecting a real string (i.e. empty string or non-empty string) and fail because of that; I assume that this happens only in "preview", when the relevant snapshot's configuration is being "loaded".

- When running the VM, there shouldn't be the exception - it seems more like an engine-core bug.

Tomas - please consult derez (that implemented the new snapshots view) with regards to this behavior.

[derez - you can take a look as well if you are seeing something that doesn't seem right]

Comment 6 Tomas Jelinek 2012-04-27 14:45:33 UTC
Currently it works for me - both the rounded brackets are not shown when there is no description and also the machine starts without any problem when the snapshot is in preview mode.

Could you please verify if it works also for you, so I can close this bug? I would say it has been fixed with some different patch.