Bug 1655452 - Instance type is allowed to created with wrong console settings
Summary: Instance type is allowed to created with wrong console settings
Status: CLOSED DUPLICATE of bug 1656007
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ovirt-4.3.0
: ---
Assignee: Michal Skrivanek
QA Contact: meital avital
Depends On:
TreeView+ depends on / blocked
Reported: 2018-12-03 08:14 UTC by Liran Rotenberg
Modified: 2018-12-04 12:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-12-04 12:48:46 UTC
oVirt Team: Virt
rule-engine: ovirt-4.3+

Attachments (Terms of Use)

Description Liran Rotenberg 2018-12-03 08:14:30 UTC
Description of problem:
It is allowed to create a instance type with graphic protocol: spice and video type cirrus. 
Changing the video type and checking the instance type console again shows no change.

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

How reproducible:

Steps to Reproduce:
1. Create a new instance type for example in rest api:
POST https://<engine-fqdn>/ovirt-engine/api/instancetypes?create
    <description>I am a test</description>
        <policy id="00000000-0000-0000-0000-000000000000"/>
2. Check the console of the created instance type.
3. Edit the video type to QXL.
4. Check the instance type console again.

Actual results:
The instance type is created with spice, cirrus. Which is not supported.
Editing the video type doesn't actually change the instance type.

Expected results:
Instance type created with spice will be set with QXL. Editing the instance type will save the change of the video type.
Further more, if instance type is created with more than 1 monitor, allow only spice+qxl.

Additional info:
If a VM is created from a template with the instance type from step 1 using REST API. The VM creation will fail:
ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-26) [] Operation Failed: [User is not authorized to perform this action., User is not authorized to perform this action., Cannot add VM. Illegal number of monitors is provided, max allowed number of monitors is 1 for VNC and the max number in the ValidNumOfMonitors configuration variable for SPICE.]

Comment 1 Michal Skrivanek 2018-12-04 12:48:46 UTC
we're removing cirrus in bug 1656007 completely, so hopefully this behavior is going to get fixed too.

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

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