Bug 1605034

Summary: OSP13 Director is unable to edit overcloud-full.qcow2 images
Product: Red Hat Enterprise Linux 7 Reporter: cblake <cblake>
Component: libguestfsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.5CC: apevec, dprince, lhh, mburns, pmannidi, ptoscano, rjones
Target Milestone: pre-dev-freezeKeywords: ZStream
Target Release: 7.5   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-20 19:46:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
libguestfs-test-tool debug none

Description cblake@redhat.com 2018-07-20 03:55:16 UTC
Description of problem:
unable to modify overcloud-full.qcow2 using normal tools

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

How reproducible:
Always

Steps to Reproduce:
1. install undercloud as per docs
2. run virt-customize to change overcloud-full.qcow2 root password
3.

Actual results:
(undercloud) [stack@lxvcw1di201 images]$ virt-customize --selinux-relabel -a overcloud-full.qcow2 --root-password password:Password123
[   0.0] Examining the guest ...
virt-customize: error: libguestfs error: guestfs_launch failed.
This usually means the libguestfs appliance failed to start or crashed.
Do:
  export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again.  For further information, read:
  http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.

If reporting bugs, run virt-customize with debugging enabled and include 
the complete output:

  virt-customize -v -x [...]
(undercloud) [stack@lxvcw1di201 images]$

Expected results:
overcloud-full.qcow root password changes

Additional info:
md5 checksum of qcow2 vs original rhosp image matches

Suspect related to this bug
https://bugzilla.redhat.com/show_bug.cgi?id=1597313

The undercloud kernel is:
(undercloud) [stack@lxvcw1di201 overcloud]$ uname -r
3.10.0-862.6.3.el7.x86_64

Comment 1 cblake@redhat.com 2018-07-20 04:03:55 UTC
Created attachment 1464852 [details]
libguestfs-test-tool debug

Comment 2 PURANDHAR SAIRAM MANNIDI 2018-07-20 04:06:42 UTC
Director is running as VM on KVM

Comment 3 Dan Prince 2018-07-20 18:39:52 UTC
Moving this to libguestfs component as nothing here is Director/Undercloud specific I think.

Comment 4 Richard W.M. Jones 2018-07-20 19:46:36 UTC
It's a duplicate of bug 1535973.

For additional info see
https://bugzilla.redhat.com/show_bug.cgi?id=1538033

*** This bug has been marked as a duplicate of bug 1535973 ***

Comment 5 Richard W.M. Jones 2018-07-20 19:48:06 UTC
Also as a workaround you can set:

export LIBGUESTFS_BACKEND_SETTINGS=force_tcg

but this will cause everything to run very slowly.