Bug 1373076 - [RFE] Publish VM to a template
Summary: [RFE] Publish VM to a template
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: MVP
: 5.9.0
Assignee: Moti Asayag
QA Contact: Angelina Vasileva
Andrew Dahms
URL:
Whiteboard: rhev
Depends On:
Blocks: 1499106
TreeView+ depends on / blocked
 
Reported: 2016-09-05 06:03 UTC by Ilanit Stein
Modified: 2019-05-20 14:31 UTC (History)
6 users (show)

Fixed In Version: 5.9.0.1
Doc Type: Enhancement
Doc Text:
Feature: Update to "Support Matrix" & "PROVISIONING VIRTUAL MACHINES AND HOSTS" docs: Publish VM to a template for RHV provider was added in CFME-4.6. Related release note: There is a RHV bug however that in publish VM to a template, the sealing template (for linux only case) do not work. The related RHV-4.1 only bug (expected to be fixed on next RHV-4.1 zstream) Bug 1530223 - Template Seal option is not triggered via rest api in 4.1 The related CFME bug (that depend on the above RHV bug) - Bug 1525242 - [RHV] Template Seal option, chosen as part of Publish VM to a template dialog is not working.
Clone Of:
Environment:
Last Closed: 2018-03-01 13:07:41 UTC
Category: ---
Cloudforms Team: RHEVM
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0380 0 normal SHIPPED_LIVE Moderate: Red Hat CloudForms security, bug fix, and enhancement update 2018-03-01 18:37:12 UTC

Description Ilanit Stein 2016-09-05 06:03:31 UTC
Description of problem:

In CFME, under RHV VMs, 'lifecycle' menu: Add 'Publish this VM to a template' option. 
It should create a template from the VM. 

Version-Release number of selected component (if applicable):
CFME-4.1
RHV-4.0

Comment 2 Yaniv Kaul 2017-02-01 10:47:17 UTC
I assume from a down VM, not a running VM? (the latter can be accomplished in multiple steps).
I'd implement both via Ansible, btw.

Comment 9 CFME Bot 2017-09-26 12:31:48 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/d5c56a329ec8b83c7312935ae1bb8519c42b108c

commit d5c56a329ec8b83c7312935ae1bb8519c42b108c
Author:     Moti Asayag <masayag>
AuthorDate: Mon Aug 28 16:57:50 2017 +0300
Commit:     Moti Asayag <masayag>
CommitDate: Mon Sep 25 23:10:28 2017 +0300

    Support publish Vm by RHV
    
    RHV provider supports creating a template from a virtual machine.
    The dialog introduces the supported options for RHV, including sealing a
    template after its creation.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1373076

 ...provision_redhat_dialogs_clone_to_template.yaml | 332 +++++++++++++++++++++
 1 file changed, 332 insertions(+)
 create mode 100644 product/dialogs/miq_dialogs/miq_provision_redhat_dialogs_clone_to_template.yaml

Comment 11 CFME Bot 2017-09-26 18:01:48 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/3bec723ac98ee89e5496396570a488358a1e4323

commit 3bec723ac98ee89e5496396570a488358a1e4323
Author:     Moti Asayag <masayag>
AuthorDate: Tue Sep 26 19:18:51 2017 +0300
Commit:     Moti Asayag <masayag>
CommitDate: Tue Sep 26 19:19:06 2017 +0300

    Use more descriptive name for seal template
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1373076

 .../miq_dialogs/miq_provision_redhat_dialogs_clone_to_template.yaml     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 12 CFME Bot 2017-10-02 07:23:59 UTC
New commit detected on ManageIQ/manageiq-providers-ovirt/master:
https://github.com/ManageIQ/manageiq-providers-ovirt/commit/87e61e74fbc4238de43f5ab35eb807b58d1d1e5d

commit 87e61e74fbc4238de43f5ab35eb807b58d1d1e5d
Author:     Moti Asayag <masayag>
AuthorDate: Mon Aug 28 13:55:38 2017 +0300
Commit:     Moti Asayag <masayag>
CommitDate: Thu Sep 28 12:11:43 2017 +0300

    Support publish VM
    
    Creating a template from a VM is supported by RHV since forever.
    The PR introduces a new dialog to allow the creation of a template from
    a VM, including the ability to seal a template (for non-windows vms).
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1373076

 .../redhat/infra_manager/api_integration.rb        |  3 +-
 .../infra_manager/ovirt_services/strategies/v4.rb  | 76 ++++++++++++++++++++--
 .../redhat/infra_manager/provision/cloning.rb      | 41 +++++++++++-
 .../infra_manager/provision/state_machine.rb       | 20 +++---
 .../redhat/infra_manager/provision_workflow.rb     |  9 +++
 .../manageiq/providers/redhat/infra_manager/vm.rb  | 12 +++-
 .../providers/redhat/infra_manager/vm_spec.rb      | 44 +++++++++++++
 7 files changed, 186 insertions(+), 19 deletions(-)

Comment 13 CFME Bot 2017-10-02 09:58:32 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/41e742abd5183e991603dd0e5e43b757407a4ecb

commit 41e742abd5183e991603dd0e5e43b757407a4ecb
Author:     Moti Asayag <masayag>
AuthorDate: Wed Sep 13 14:16:01 2017 +0300
Commit:     Moti Asayag <masayag>
CommitDate: Tue Sep 26 19:24:37 2017 +0300

    Support template sealing when publishing a VM
    
    RHV supports sealing a template when publishing a VM.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1373076

 app/views/miq_request/_prov_field.html.haml   | 2 +-
 app/views/shared/views/_prov_dialog.html.haml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comment 14 Ilanit Stein 2017-11-19 11:51:03 UTC
Those bugs were found, in regards, to this feature:

Bug 1514895 - [RHV] Template Seal option, chosen as part of Publish VM to a template dialog is not working.

Bug 1514896 - [RHV] VM publish to a template for a locked VM generates exception in evm.log

Bug 1514905 - [RHV] Publish Windows VM to a template should be blocked.

Comment 15 Ilanit Stein 2017-12-27 14:14:50 UTC
Opened those additional related bugs:

Bug 1517901	Publish VM to a template with auto placement fail on Cluster not provided

Bug 1518082	Publish VM to a template request messages refer to VMs, while a template is actually created

Bug 1518081	Publish VM to a template dialog, Catalog tab, irrelevant Count of VMs" field.

Bug 1518077	Publish VM to a template contain VM naming, instead of Template naming.

Bug 1529080	Publish VM to a template Request last message do not indicate actual problem-invalid vm name

Bug 1529060	Mention length max limit aside VM\Template Name, in VM lifecycle operations

Bug 1529056	VM\Template Name in VM lifecycle operations should be validated 
before form submission

Bug 1529052	[RHV] VM\Template name&description max limit, in VM lifecycle operations dialog, do not match RHV limit

Verified on CFME-5.9.0.14/RHV-4.1.8

Polarion test plan:
RHEVM3/testrun?id=4_1_cfme_publish_vm_to_a_template_cfme_5_9_0_14_rhv_4_1_8

All the tests passed except those failed on Bug 1517901 (mentioned above).

Comment 18 errata-xmlrpc 2018-03-01 13:07:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHSA-2018:0380


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