Bug 1696111 - RHV could not detect Guest Agent when create snapshot for the running guest which installed qemu-guest-agent
Summary: RHV could not detect Guest Agent when create snapshot for the running guest w...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.4.0
: ---
Assignee: Tomasz Barański
QA Contact: Beni Pelled
URL:
Whiteboard:
Depends On:
Blocks: 1723582
TreeView+ depends on / blocked
 
Reported: 2019-04-04 07:43 UTC by liuzi
Modified: 2020-05-20 20:00 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1723582 (view as bug list)
Environment:
Last Closed: 2020-05-20 20:00:00 UTC
oVirt Team: Virt
Embargoed:
pm-rhel: ovirt-4.4+
rbarry: devel_ack+


Attachments (Terms of Use)
create snapshot (63.54 KB, image/png)
2019-04-04 07:43 UTC, liuzi
no flags Details
snapshot-applications (52.69 KB, image/png)
2019-04-04 07:45 UTC, liuzi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 100253 0 master ABANDONED db: qemu guest agent missing from viable guest agent names 2021-01-07 00:27:34 UTC
oVirt gerrit 100267 0 master MERGED db: qemu guest agent missing from viable guest agent names 2021-01-07 00:27:34 UTC
oVirt gerrit 100759 0 ovirt-engine-4.3 MERGED db: qemu guest agent missing from viable guest agent names 2021-01-07 00:27:34 UTC

Description liuzi 2019-04-04 07:43:57 UTC
Created attachment 1551701 [details]
create snapshot

Description:
RHV could not detect Guest Agent when create snapshot for the running guest which installed qemu-guest-agent

Background:
Virt-v2v will install qemu-guest-agent in linux guests during converting guests to RHV,pls refer to https://bugzilla.redhat.com/show_bug.cgi?id=1619665#c4

How reproducible:
100%

Version:
qemu-kvm-rhev-2.12.0-25.el7.x86_64
libvirt-4.5.0-11.el7.x86_64
libguestfs-1.40.2-2.el7.x86_64
python-ovirt-engine-sdk4-4.3.1-1.el7ev.x86_64

Steps:
1.Prepare a guest has correctly installed qume-guest-agent and make sure the service is running normally.
I have prepared a rhel7.6 guest on rhv4.3
# rpm -q qemu-guest-agent
qemu-guest-agent-2.12.0-2.el7.x86_64

# systemctl status qemu-guest-agent
● qemu-guest-agent.service - QEMU Guest Agent
   Loaded: loaded (/usr/lib/systemd/system/qemu-guest-agent.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-04-02 06:15:25 EDT; 1min 17s ago
 Main PID: 3095 (qemu-ga)
    Tasks: 1
   CGroup: /system.slice/qemu-guest-agent.service
           └─3095 /usr/bin/qemu-ga --method=virtio-serial --path=/dev/virtio-...

Apr 02 06:15:25 localhost.localdomain systemd[1]: Started QEMU Guest Agent.

2.Boot the guest and create snapshot for the guest on RHV GUI
Result: RHV will show warning info :Could not detect Guest Agent on the VM. Note that without a Guest Agent the data on the created snapshot may be inconsistent. Pls refer to screenshot named create-snapshot.
But the snapshot can be created normally and the snapshot can detect qemu-guest-agent,pls refer to screenshot named snapshot-applications

Actual results:
As above

Expected results:
RHV can detect Guest Agent when create snapshot for the running guest which installed qemu-guest-agent

Additional info:
1.Can be reproduced on rhv4.2
2.Cannot be reproduced when the guest installed ovirt-guest-agent.

Comment 1 liuzi 2019-04-04 07:45:38 UTC
Created attachment 1551702 [details]
snapshot-applications

Comment 2 Tomáš Golembiovský 2019-04-04 08:54:02 UTC
I assumed this was fixed as part of bug 1615830. Anyway, it should be possible to do that now.

The snapshot feature only depends on QEMU-GA so the check should be changed in engine. The warning message could be more specific about which agent it needs too.

Comment 3 Michal Skrivanek 2019-04-05 04:43:01 UTC
Ah, the bug 1615830 shouldn’t have been closed, it wasn’t finished!

Comment 4 Strahil Nikolov 2019-05-21 09:11:56 UTC
I experience the same issue on oVirt 4.3.4 RC1 - the warning is showed when using qemu-guest-agent , but is not shown with ovirt-guest-agent.
Tested on RHEL 8 VM and openSUSE Leap 15.0 .

Comment 5 Tomáš Golembiovský 2019-05-21 10:12:37 UTC
I am raising the priority because this is not just about a warning in UI. What is more important is that the fs-freeze is not performed. This is likely to result in corrupted snapshots.

Comment 6 Michal Skrivanek 2019-06-24 07:32:18 UTC
(In reply to liuzi from comment #0)
please don't open downstream RHV bugs when the issue is not RHV-specific

Comment 8 Strahil Nikolov 2019-07-05 15:49:56 UTC
I don't observe the issue any longer. I'm running  ovirt 4.3.5.3-1.el7 qemu-guest-agent (RHEL 8 & openSUSE 15.1).

Comment 9 Beni Pelled 2020-03-22 13:58:51 UTC
Verified on:
- RHV 4.3.9.4-11.el7
- libvirt-4.5.0-33.el7.x86_64 (host)
- vdsm-4.30.43-1.el7ev.x86_64 (host)


Verification steps:
1. Create a VM with Red Hat Enterprise Linux Server 7.7 (Maipo)
2. Make sure the qemu-guest-agent is up and running
3. Create a snapshot (with memory)


Result:
- The snapshot is successfully created wit no warning message or any other issue.

Comment 10 Sandro Bonazzola 2020-05-20 20:00:00 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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