Bug 1883875 - Guest agent data is not being reported by virtctl when guest agent is installed and active
Summary: Guest agent data is not being reported by virtctl when guest agent is install...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 2.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.6.1
Assignee: lpivarc
QA Contact: zhe peng
URL:
Whiteboard:
Depends On: 1886453 1946082
Blocks: 1879428 1946081
TreeView+ depends on / blocked
 
Reported: 2020-09-30 12:50 UTC by Phillip Bailey
Modified: 2023-09-15 00:49 UTC (History)
12 users (show)

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:
Clone Of:
: 1946081 (view as bug list)
Environment:
Last Closed: 2021-04-07 08:46:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:1126 0 None None None 2021-04-07 08:46:36 UTC

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


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