Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1335642 - (RHV_virt_sysprep) [RFE] Users should be able to seal VMs from RHEV-M
[RFE] Users should be able to seal VMs from RHEV-M
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
unspecified
Unspecified Unspecified
medium Severity medium
: ovirt-4.2.0
: 4.2.0
Assigned To: nobody nobody
Nisim Simsolo
https://trello.com/c/dN08y1W2
: FutureFeature, ZStream
Depends On: 1379181 1409380
Blocks: 1100489 1436219 1441935 1462593
  Show dependency treegraph
 
Reported: 2016-05-12 14:17 EDT by Jon Benedict
Modified: 2018-05-15 13:40 EDT (History)
19 users (show)

See Also:
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 13:38:32 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Virt
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
mavital: testing_plan_complete+


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 65140 master NEW core: Virt-sysprep integration 2016-10-05 14:36 EDT
oVirt gerrit 65141 master NEW ui: Sysprep operation for VM templates 2016-10-05 14:36 EDT
oVirt gerrit 66723 None None None 2016-11-21 05:15 EST
oVirt gerrit 68096 master MERGED core: Introducing SealVmTemplateCommand 2017-03-16 07:55 EDT
oVirt gerrit 68117 master MERGED ui: Seal Template checkbox in Make Template dialog 2017-03-16 19:16 EDT
oVirt gerrit 69705 master MERGED core: Add template sealing to AddVmTemplateCommand 2017-03-16 17:39 EDT
oVirt gerrit 72972 ovirt-4.1 MERGED virt: Add virt-sysprep support 2017-03-23 08:41 EDT
oVirt gerrit 73489 master MERGED core: Add exclusive locks to AddVmTemplateCommand 2017-03-19 12:26 EDT
oVirt gerrit 73670 master MERGED Added sealing option for Template creation. 2017-03-07 07:28 EST
oVirt gerrit 73675 model_4.1 MERGED Added sealing option for Template creation. 2017-03-07 07:29 EST
oVirt gerrit 73733 master MERGED restapi: Update to model 4.2.7 2017-03-08 06:22 EST
oVirt gerrit 73737 ovirt-engine-4.1 MERGED restapi: Update to model 4.1.32 2017-03-08 09:44 EST
oVirt gerrit 73994 master MERGED Update to model 4.2.7 and metamodel 1.2.3 2017-03-13 09:39 EDT
oVirt gerrit 73995 sdk_4.1 MERGED Update to model 4.1.32 and metamodel 1.1.13 2017-03-13 10:12 EDT
oVirt gerrit 74062 ovirt-engine-4.1.1.z MERGED restapi: Update to model 4.1.33 2017-03-14 10:19 EDT
oVirt gerrit 74099 sdk_4.1 MERGED Update to model 4.1.33 2017-03-15 07:27 EDT
oVirt gerrit 74419 master MERGED restapi: Implement 'seal' parameter for creation of a template 2017-03-21 14:14 EDT
Red Hat Product Errata RHEA-2018:1488 None None None 2018-05-15 13:40 EDT

  None (edit)
Description Jon Benedict 2016-05-12 14:17:02 EDT
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 13:30:41 EDT
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 04:52:34 EDT
upstream tracking https://trello.com/c/dN08y1W2
Comment 3 Michal Skrivanek 2016-12-16 10:21:25 EST
may appear in 4.1.z or even 4.1 GA
Comment 13 Nisim Simsolo 2018-01-03 11:05:26 EST
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 13:38:32 EDT
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

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