Bug 949858

Summary: Cannot add VM if custom VM properties are in invalid format.
Product: [Retired] oVirt Reporter: Martin Pavlik <mpavlik>
Component: ovirt-engine-webadminAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED DUPLICATE QA Contact: Martin Pavlik <mpavlik>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, dyasny, ecohen, gklein, iheim, mgoldboi
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-09 08:18:50 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
engine.log
none
screenshot 1 none

Description Martin Pavlik 2013-04-09 07:48:59 UTC
Created attachment 733025 [details]
engine.log

Description of problem:
If user tries to add new VM it fails with following error message in UI.(screenshot 1)

Error while executing action:

VM2:

    Cannot add VM if custom VM properties are in invalid format. Please check the input.


Version-Release number of selected component (if applicable):
oVirt Engine Version: 3.3.0-0.2.master.20130408165931.giteca9964.fc18 

How reproducible:
100%

Steps to Reproduce:
1. Virtual Machines -> New Desktop -> Fill in Name -> click OK
  
Actual results:
error message appears, VM is not created

Expected results:
VM created with no error

Additional info:
it is possible to get past the problem following these steps:
1. Virtual Machines -> New Desktop -> Fill in Name
2. go to Custom Properties
   a) click on + button next to no available keys (second row appears)
   b) click on - button in second row
3. click OK in the dialog window (VM is created)


engine.log
2013-04-09 09:35:54,015 WARN  [org.ovirt.engine.core.bll.AddVmFromScratchCommand] (ajp--127.0.0.1-8702-8) [7d533f22] CanDoAction of action AddVmFromScratch failed. Reasons:VAR__ACTION__ADD,VAR__TYPE__VM,ACTION_TYPE_FAILED_INVALID_CUSTOM_VM_PROPERTIES_INVALID_SYNTAX

Comment 1 Martin Pavlik 2013-04-09 07:49:58 UTC
Created attachment 733029 [details]
screenshot 1

Comment 2 Martin Pavlik 2013-04-09 08:18:50 UTC

*** This bug has been marked as a duplicate of bug 924201 ***