Bug 1335642 (RHV_virt_sysprep)

Summary: [RFE] Users should be able to seal VMs from RHEV-M
Product: Red Hat Enterprise Virtualization Manager Reporter: Jon Benedict <jbenedic>
Component: ovirt-engineAssignee: Nobody <nobody>
Status: CLOSED ERRATA QA Contact: Nisim Simsolo <nsimsolo>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: apinnick, eheftman, jcoscia, kmorey, lsurette, mavital, mgoldboi, michal.skrivanek, mtessun, nsimsolo, rbalakri, Rhev-m-bugs, smelamud, spower, srevivo, troels, ykaul, zbrown
Target Milestone: ovirt-4.2.0Keywords: FutureFeature, ZStream
Target Release: 4.2.0Flags: lsvaty: testing_plan_complete-
Hardware: Unspecified   
OS: Unspecified   
URL: https://trello.com/c/dN08y1W2
Whiteboard:
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.
Story Points: ---
Clone Of:
: 1436219 1441935 (view as bug list) Environment:
Last Closed: 2018-05-15 17:38:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1379181, 1409380    
Bug Blocks: 1100489, 1436219, 1441935, 1462593    

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