Bug 1883875

Summary: Guest agent data is not being reported by virtctl when guest agent is installed and active
Product: Container Native Virtualization (CNV) Reporter: Phillip Bailey <phbailey>
Component: VirtualizationAssignee: lpivarc
Status: CLOSED ERRATA QA Contact: zhe peng <zpeng>
Severity: high Docs Contact:
Priority: high    
Version: 2.5.0CC: cnv-qe-bugs, danken, fdeutsch, ibezukh, ipinto, kbidarka, lpivarc, ncredi, oramraz, sgarbour, sgott, vsibirsk
Target Milestone: ---Keywords: TestOnly
Target Release: 2.6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hco-bundle-registry-container-v2.6.0-489 virt-operator-container-v2.6.0-100 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1946081 (view as bug list) Environment:
Last Closed: 2021-04-07 08:46:03 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:
Bug Depends On: 1886453, 1946082    
Bug Blocks: 1879428, 1946081    

Description Phillip Bailey 2020-09-30 12:50:47 UTC
Description of problem:
After some period of time, guest agent data stops being reported by virtctl, even though the guest agent is active. The exact threshold at which the data stops being reported is unknown.


Version-Release number of selected component (if applicable):
virtctl client v0.33.0


How reproducible:
100%


Steps to Reproduce:
1. Create and start a VM or VMI
2. Install and enable the guest agent
3. Let it run for potentially up to 24 hours
4. Request the guestosinfo from virtctl

Actual results:
An error is displayed

Expected results:
The guestosinfo details are displayed

Additional info:
This is the error that I get:
virtctl -n rhodes guestosinfo vmi-fedora                                                                                                                                                                               
{"component":"","level":"error","msg":"Cannot retrieve GuestOSInfo: an error on the server (\"Operation cannot be fulfilled on virtualmachineinstance.kubevirt.io \\\"vmi-fedora\\\": VMI does not have guest agent connected\") has prevented
 the request from succeeding","pos":"vmi.go:449","timestamp":"2020-09-30T12:11:56.369648Z"}                                                                                                                                                   
Error getting guestosinfo of VirtualMachine vmi-fedora, an error on the server ("Operation cannot be fulfilled on virtualmachineinstance.kubevirt.io \"vmi-fedora\": VMI does not have guest agent connected") has prevented the request from 
succeeding

Comment 1 Nelly Credi 2020-09-30 15:45:29 UTC
based on the virtctl version indicated, im setting the bug version to 2.5 instead of 2.1

Comment 2 sgott 2020-09-30 16:10:42 UTC
Actually, it's important to clarify that. Phillip, what version of CNV is running on your cluster?

The description of this BZ makes it sound like it might be related to these BZs:

https://bugzilla.redhat.com/show_bug.cgi?id=1847525
https://bugzilla.redhat.com/show_bug.cgi?id=1856979

Comment 4 Kedar Bidarkar 2020-11-19 14:53:34 UTC
Ignore comment 3

We suspect this is a duplicate of this bug https://bugzilla.redhat.com/show_bug.cgi?id=1886453

Comment 6 Israel Pinto 2021-02-02 11:49:36 UTC
moving back to assign since: https://bugzilla.redhat.com/show_bug.cgi?id=1886453#c17

Comment 7 Shaul Garbourg 2021-02-04 10:45:45 UTC
The following steps were done:
1. Fedora VM was created and a guest agent was installed.
2. fslist returned the information properly.
3. Migrate the VM.
4. At the beginning (2 minutes after migration), the fslist worked and returned the information properly for the migrated VM. a few minutes later (4 mins). The fslist stopped working.

Lubo is investigating the code and will update on progress

Comment 8 lpivarc 2021-02-08 09:03:38 UTC
Fixing the bug in https://github.com/kubevirt/kubevirt/pull/4982

Comment 12 vsibirsk 2021-03-24 20:01:41 UTC
Verified on hco v2.6.1-5

Followed steps:
1) create and start vm - OK
2) check guest os info (virtctl get guestosinfo/fslist/userlist) - OK
3) wait ~ 1 hour and check guest os info again - OK
4) migrate vm and check guest os info after ~ 5 hour - OK

Comment 17 errata-xmlrpc 2021-04-07 08:46:03 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 (CNV 2.6.1 Images), 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-2021:1126

Comment 18 Red Hat Bugzilla 2023-09-15 00:49:00 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days