Bug 1335642 (RHV_virt_sysprep) - [RFE] Users should be able to seal VMs from RHEV-M
Summary: [RFE] Users should be able to seal VMs from RHEV-M
Keywords:
Status: CLOSED ERRATA
Alias: RHV_virt_sysprep
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Nobody
QA Contact: Nisim Simsolo
URL: https://trello.com/c/dN08y1W2
Whiteboard:
Depends On: 1379181 1409380
Blocks: 1100489 1436219 1441935 1462593
TreeView+ depends on / blocked
 
Reported: 2016-05-12 18:17 UTC by Jon Benedict
Modified: 2024-03-25 14:56 UTC (History)
18 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
A virtual machine can now be sealed, in the Manager, in preparation for deployment as a template.
Clone Of:
: 1436219 1441935 (view as bug list)
Environment:
Last Closed: 2018-05-15 17:38:32 UTC
oVirt Team: Virt
Target Upstream Version:
Embargoed:
lsvaty: testing_plan_complete-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:1488 0 None None None 2018-05-15 17:40:08 UTC
oVirt gerrit 65140 0 master ABANDONED core: Virt-sysprep integration 2020-10-02 11:16:10 UTC
oVirt gerrit 65141 0 master ABANDONED ui: Sysprep operation for VM templates 2020-10-02 11:16:03 UTC
oVirt gerrit 66723 0 None ABANDONED storage: Add virt-sysprep support 2020-10-02 11:16:10 UTC
oVirt gerrit 68096 0 master MERGED core: Introducing SealVmTemplateCommand 2020-10-02 11:16:03 UTC
oVirt gerrit 68117 0 master MERGED ui: Seal Template checkbox in Make Template dialog 2020-10-02 11:16:03 UTC
oVirt gerrit 69705 0 master MERGED core: Add template sealing to AddVmTemplateCommand 2020-10-02 11:16:03 UTC
oVirt gerrit 72972 0 ovirt-4.1 MERGED virt: Add virt-sysprep support 2020-10-02 11:16:02 UTC
oVirt gerrit 73489 0 master MERGED core: Add exclusive locks to AddVmTemplateCommand 2020-10-02 11:16:02 UTC
oVirt gerrit 73670 0 master MERGED Added sealing option for Template creation. 2020-10-02 11:16:09 UTC
oVirt gerrit 73675 0 model_4.1 MERGED Added sealing option for Template creation. 2020-10-02 11:16:09 UTC
oVirt gerrit 73733 0 master MERGED restapi: Update to model 4.2.7 2020-10-02 11:16:01 UTC
oVirt gerrit 73737 0 ovirt-engine-4.1 MERGED restapi: Update to model 4.1.32 2020-10-02 11:16:01 UTC
oVirt gerrit 73994 0 master MERGED Update to model 4.2.7 and metamodel 1.2.3 2020-10-02 11:16:01 UTC
oVirt gerrit 73995 0 sdk_4.1 MERGED Update to model 4.1.32 and metamodel 1.1.13 2020-10-02 11:16:01 UTC
oVirt gerrit 74062 0 ovirt-engine-4.1.1.z MERGED restapi: Update to model 4.1.33 2020-10-02 11:15:27 UTC
oVirt gerrit 74099 0 sdk_4.1 MERGED Update to model 4.1.33 2020-10-02 11:15:24 UTC
oVirt gerrit 74419 0 master MERGED restapi: Implement 'seal' parameter for creation of a template 2020-10-02 11:15:26 UTC

Description Jon Benedict 2016-05-12 18:17:02 UTC
Description of problem:
Currently, in order to properly "seal" (make a VM generic in preparation for cloning or template), it is a manual process or a painful RHEV-CLI process in order to use virt-sysprep. In RHEL+KVM (or CENTOS, Ubuntu, etc), this is not an issue. Our own Red Hat documentation suggests a painful manual removal of SSH keys, UDEV rules, MAC addresses, system id, and hostname. It is the complete opposite of automation.

In order to run sys-virtprep in RHEV, you have to go through the trouble of deploying the RHEV-CLI, locate the the disk image, activate the logical volume, run virt-sysprep, deactivate the logical volume, then create the template back in RHEV-M. 

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

How reproducible:
Create a VM in RHEV. You are unable to utilize `virt-sysprep` or other libguestfs tools in a convenient manner.

Expected results:
Have an option in the template tab or VM tab to open a dialog box for sealing options.

Comment 1 Zak Berrie 2016-07-14 17:30:41 UTC
I ran into this same issue at a customer site this week.

The process of building a template does seem archaic in comparison to the larger story we're delivering around hybrid cloud automation.

It would be helpful to have this functionality delivered from the UI for RHEL guests.

Comment 2 Michal Skrivanek 2016-09-26 08:52:34 UTC
upstream tracking https://trello.com/c/dN08y1W2

Comment 3 Michal Skrivanek 2016-12-16 15:21:25 UTC
may appear in 4.1.z or even 4.1 GA

Comment 13 Nisim Simsolo 2018-01-03 16:05:26 UTC
Verification builds:
rhvm-4.2.0.2-0.1.el7
qemu-kvm-rhev-2.9.0-16.el7_4.13.x86_64
sanlock-3.5.0-1.el7.x86_64
libvirt-client-3.2.0-14.el7_4.5.x86_64
vdsm-4.20.9.3-1.el7ev.x86_64
cloud-init-0.7.9-19.el7

Comment 16 errata-xmlrpc 2018-05-15 17:38:32 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/RHEA-2018:1488

Comment 17 Franta Kust 2019-05-16 13:04:37 UTC
BZ<2>Jira Resync


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