Bug 1816603
Summary: | RFE: virt-v2v should improve the log info for install qemu-guest-agent on rhel8 guest | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | liuzi <zili> | ||||
Component: | virt-v2v | Assignee: | Richard W.M. Jones <rjones> | ||||
Status: | CLOSED NOTABUG | QA Contact: | liuzi <zili> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 8.2 | CC: | juzhou, mxie, mzhan, ptoscano, rjones, tgolembi, tyan, tzheng, virt-maint, xiaodwan | ||||
Target Milestone: | rc | Keywords: | Triaged | ||||
Target Release: | 8.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | V2V | ||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2021-04-27 16:16:16 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
liuzi
2020-03-24 11:04:03 UTC
(In reply to liuzi from comment #0) > Expected results: > 1> If virt-v2v install qemu-guest-agent successfully,virt-v2v should give a > info like: > virt-v2v: QEMU Guest Agent installed for this guest. This was done upstream already for Linux guests: https://github.com/libguestfs/libguestfs/commit/cbf887ed90e0ecb5c52fd2c663acb5b9b2e3e14a https://github.com/libguestfs/virt-v2v/commit/5e44c941bd26f1c588a64b493f0e74c2b1369ede For Windows the "installation" is different: we copy the installer and create a firstboot script that will run the installer. Hence virt-v2v cannot say that the qemu guest agent was installed for Windows. > 2>If the guest already installed the latest version > qemu-guest-agent,virt-v2v should give an info like: > virt-v2v: package qemu-guest-agent-xx-xx is already installed I'm not sure about this one, as virt-v2v generally does not print anything in case there is nothing to change, or there was no change/error. (In reply to Pino Toscano from comment #1) > (In reply to liuzi from comment #0) > > Expected results: > > 1> If virt-v2v install qemu-guest-agent successfully,virt-v2v should give a > > info like: > > virt-v2v: QEMU Guest Agent installed for this guest. > > This was done upstream already for Linux guests: > https://github.com/libguestfs/libguestfs/commit/ > cbf887ed90e0ecb5c52fd2c663acb5b9b2e3e14a > https://github.com/libguestfs/virt-v2v/commit/ > 5e44c941bd26f1c588a64b493f0e74c2b1369ede This is now available in virt-v2v 1.42.0, part of RHEL AV 8.3.0. > I'm not sure about this one, as virt-v2v generally does not print anything > in case there is nothing to change, or there was no change/error. The error msg is generated by rpm and printed by v2v. Not sure why v2v doesn't print it following the step in bug description. Maybe somewhere is different from handling rhv-guest-tools-iso? # rpm --upgrade -v http://download.eng.bos.redhat.com/brewroot/vol/rhel-8/packages/qemu-guest-agent/2.10.0/2.el8+5/x86_64/qemu-guest-agent-2.10.0-2.el8+5.x86_64.rpm Retrieving http://download.eng.bos.redhat.com/brewroot/vol/rhel-8/packages/qemu-guest-agent/2.10.0/2.el8+5/x86_64/qemu-guest-agent-2.10.0-2.el8+5.x86_64.rpm Verifying packages... Preparing packages... package qemu-guest-agent-15:4.2.0-27.module+el8.2.1+7092+9d345e72.x86_64 (which is newer than qemu-guest-agent-10:2.10.0-2.el8+5.x86_64) is already installed (In reply to Xiaodai Wang from comment #3) > > I'm not sure about this one, as virt-v2v generally does not print anything > > in case there is nothing to change, or there was no change/error. > > The error msg is generated by rpm and printed by v2v. Which error message? > Not sure why v2v > doesn't > print it following the step in bug description. Maybe somewhere is different > from > handling rhv-guest-tools-iso? > > # rpm --upgrade -v > http://download.eng.bos.redhat.com/brewroot/vol/rhel-8/packages/qemu-guest- > agent/2.10.0/2.el8+5/x86_64/qemu-guest-agent-2.10.0-2.el8+5.x86_64.rpm > Retrieving > http://download.eng.bos.redhat.com/brewroot/vol/rhel-8/packages/qemu-guest- > agent/2.10.0/2.el8+5/x86_64/qemu-guest-agent-2.10.0-2.el8+5.x86_64.rpm > Verifying packages... > Preparing packages... > package qemu-guest-agent-15:4.2.0-27.module+el8.2.1+7092+9d345e72.x86_64 > (which is newer than qemu-guest-agent-10:2.10.0-2.el8+5.x86_64) is already > installed virt-v2v inspects the guests, so it knows which packages are installed. In case qemu-guest-agent is already installed, virt-v2v does not even try to install it.
> virt-v2v inspects the guests, so it knows which packages are installed.
> In case qemu-guest-agent is already installed, virt-v2v does not even try to
> install it.
I tried the process on rhel7.8, it reports the following warning if qemu-guest-agent
is already installed and is newer than the version in rhv-guest-tools.
I uploaded the whole v2v log, you can check it.
libguestfs: trace: v2v: command "rpm --upgrade -v /var/tmp/qemu-guest-agent-2.12.0-2.el7.x86_64.rpm"
guestfsd: error: \tpackage qemu-guest-agent-10:2.12.0-3.el7.x86_64 (which is newer than qemu-guest-agent-10:2.12.0-2.el7.x86_64) is already installed
virt-v2v: warning: failed to install QEMU Guest Agent: command: package
qemu-guest-agent-10:2.12.0-3.el7.x86_64 (which is newer than
qemu-guest-agent-10:2.12.0-2.el7.x86_64) is already installed
Created attachment 1698279 [details]
v2v qemu-guest-agent log on rhel7.8
This is fine, if the version installed is already newer, virt-v2v should not downgrade it and does not need to report any error or message. (In reply to Richard W.M. Jones from comment #7) > This is fine, if the version installed is already newer, virt-v2v should not > downgrade it and does not need to report any error or message. Yes, I think this bug expects same warning message on rhel8. I don't think this is a bug. If qemu-ga is already installed (or a higher version is installed) virt-v2v needs to do nothing and doesn't need to print messages about it. |