Bug 1394160

Summary: Creation of template from snapshot fails on CPU profile doesn't match cluster
Product: [oVirt] ovirt-engine Reporter: Petr Matyáš <pmatyas>
Component: Backend.CoreAssignee: Andrej Krejcir <akrejcir>
Status: CLOSED CURRENTRELEASE QA Contact: Liran Rotenberg <lrotenbe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.5CC: akrejcir, bugs, dfediuck, michal.skrivanek
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
rule-engine: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 10:59:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
screenshot
none
engine log none

Description Petr Matyáš 2016-11-11 09:22:07 UTC
Created attachment 1219673 [details]
screenshot

Description of problem:
When I try to create template from snapshot to different cluster than the VM is in validation fails on "Cannot add Template. CPU Profile doesn't match provided Cluster." even though cluster a cpu profile matches.

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

How reproducible:
always

Steps to Reproduce:
1. create a snapshot for a VM
2. try to make template from that snapshot
3. select different cluster than the VM is in and confirm the dialogue

Actual results:
failed validation

Expected results:
should succeed

Additional info:
When creating template from VM directly, creation succeeds whatever cluster we select.

Comment 1 Petr Matyáš 2016-11-11 09:22:38 UTC
Created attachment 1219674 [details]
engine log

Comment 2 Liran Rotenberg 2017-12-05 08:36:18 UTC
Verification failed on 4.2.0-0.5.master.el7.

Steps:
1. Create a VM and create a snapshot for it in cluster1.
2. Create a new template from the snapshot in step 1 and select cluster2 (cpu profile auto change to cluster2 cpu profile).
3. Click OK to start making the template.


Result:
Operation Canceled
Error while executing action: 

template_test:
Cannot add Template. CPU Profile doesn't match provided Cluster.


Expected results:
Creation of the template(template_test) in cluster2 should start and succeed.

Comment 3 Andrej Krejcir 2017-12-05 10:13:04 UTC
The 4.2.0-0.5.master version probably does not contain the patch that fixes this bug. It should be in the new version.

Comment 4 Liran Rotenberg 2017-12-13 12:51:15 UTC
Verified on: 4.2.0.2-0.1.el7

Steps:
1. Create a VM and create a snapshot for it in cluster1.
2. Create a new template from the snapshot in step 1 and select cluster2 (cpu profile auto change to cluster2 cpu profile).
3. Click OK to start making the template.


Result:
Creation of the template(template_test) in cluster2 started and succeeded.

Comment 5 Sandro Bonazzola 2017-12-20 10:59:07 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

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