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
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.
https://github.com/ManageIQ/manageiq-providers-ovirt/pull/95
https://github.com/ManageIQ/manageiq-ui-classic/pull/2182
https://github.com/ManageIQ/manageiq/pull/15981
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
https://github.com/ManageIQ/manageiq/pull/16045
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(-)
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(-)
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(-)
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.
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).
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