Bug 1884654

Summary: Utilization of a VMI is not populated
Product: OpenShift Container Platform Reporter: Petr Horáček <phoracek>
Component: Console Kubevirt PluginAssignee: Yaacov Zamir <yzamir>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.6CC: aos-bugs, gouyang, yzamir
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: we chack if VM is running before showing utilization data Consequence: VMI that do not have a VM, will not show utilization data Fix: Show utilization data if available, without chacking for VM is running Result: Utilization data is displayed when available
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:22:23 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:

Description Petr Horáček 2020-10-02 15:11:45 UTC
Description of problem:
When using a VM with guest agent installed, the Utilization dashboard is not populated.


Version-Release number of selected component (if applicable):
Client Version: 4.6.0-fc.7
Server Version: 4.6.0-fc.7
Kubernetes Version: v1.19.0+b4ffb45


How reproducible:


Steps to Reproduce:
1. Create a VMI

cat <<EOF | oc create -f -
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachineInstance
metadata:
  labels:
    special: samplevmi1
  name: samplevmi1
spec:
  domain:
    devices:
      interfaces:
      - masquerade: {}
        name: default
      disks:
      - disk:
          bus: virtio
        name: containerdisk
      - disk:
          bus: virtio
        name: cloudinitdisk
    machine:
      type: ""
    resources:
      requests:
        memory: 1024M
  networks:
  - name: default
    pod: {}
  volumes:
  - containerDisk:
      image: kubevirt/fedora-cloud-container-disk-demo:latest
    name: containerdisk
  - cloudInitNoCloud:
      userData: |
        #!/bin/bash
        echo "fedora" |passwd fedora --stdin
    name: cloudinitdisk
EOF


2. Install and start guest agent on the VMI (optional)

sudo dnf install -y qemu-guest-agent
sudo systemctl start qemu-guest-agent

Actual results:
Utilization dashboard is empty

Expected results:
The dashboard is showing usage statistics

Additional info:

Comment 1 Yaacov Zamir 2020-10-05 07:41:27 UTC
> 2. Install and start guest agent on the VMI (optional)

do you see Utilization dashboard data if you don't install guest agent ?

Comment 2 Tomas Jelinek 2020-10-05 07:57:10 UTC
After some more investigation it turns out that this is an issue with the VMI screen. It works well on the VM screen and since that is the main flow, 4.7.0 sounds like a good target release.

Comment 3 Yaacov Zamir 2020-10-07 07:02:48 UTC
*** Bug 1879428 has been marked as a duplicate of this bug. ***

Comment 5 Guohua Ouyang 2020-11-23 03:24:24 UTC
verified on master

Comment 8 errata-xmlrpc 2021-02-24 15:22:23 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633