Bug 1884654 - Utilization of a VMI is not populated
Summary: Utilization of a VMI is not populated
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Yaacov Zamir
QA Contact: Guohua Ouyang
URL:
Whiteboard:
: 1879428 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-02 15:11 UTC by Petr Horáček
Modified: 2021-02-24 15:22 UTC (History)
3 users (show)

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
Clone Of:
Environment:
Last Closed: 2021-02-24 15:22:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 6827 0 None closed Bug 1884654: show vmi utilization data 2020-11-23 03:11:12 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:22:55 UTC

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


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