Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VMs with qemu guest agent don't render utilization disk chart #1055

Closed
sjd78 opened this issue Jul 3, 2019 · 0 comments · Fixed by #1056
Closed

VMs with qemu guest agent don't render utilization disk chart #1055

sjd78 opened this issue Jul 3, 2019 · 0 comments · Fixed by #1056
Labels
Severity: Low For bugs, lowly severe bugs. For enhancements, small scope or impact Type: Bug a bug

Comments

@sjd78
Copy link
Member

sjd78 commented Jul 3, 2019

For a VM with qemu guest agent, disk file system data may not be reported and the utilization graph is empty.

VM Portal version number: 1.5.2-1 (and 1.5.3-0 / master)
oVirt version number: 4.3 and 4.4
Browser and version: Firefox and Chrome, any version

Steps to Reproduce:

  1. Have a VM with the qemu guest agent installed
  2. Open VM details
  3. Witness no Disk utilization chart

Screen shot:
screenshot-chopper local dickerson-web com-2019 07 03-14-25-17 (1)

VM's disks.usage statistics:

{
  "kind": "gauge",
  "type": "string",
  "unit": "none",
  "values": {
    "value": [
      {
        "detail": "[]"
      }
    ]
  },
  "vm": {
    "href": "/ovirt-engine/api/vms/10ebb6ac-645d-42ec-8031-c844aa14666a",
    "id": "10ebb6ac-645d-42ec-8031-c844aa14666a"
  },
  "name": "disks.usage",
  "description": "Disk usage, in bytes, per filesystem as JSON (agent)",
  "href": "/ovirt-engine/api/vms/10ebb6ac-645d-42ec-8031-c844aa14666a/statistics/c5dd0086-d5f0-3abf-9628-4674abb3f5ac",
  "id": "c5dd0086-d5f0-3abf-9628-4674abb3f5ac"
}

Guest VM info:

[sdickers@centos7_1 ~]$ cat /etc/system-release
CentOS Linux release 7.6.1810 (Core) 
[sdickers@centos7_1 ~]$ yum info qemu-guest-agent
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Loading mirror speeds from cached hostfile
 * base: ewr.edge.kernel.org
 * extras: mirror.clarkson.edu
 * updates: mirror.clarkson.edu
Installed Packages
Name        : qemu-guest-agent
Arch        : x86_64
Epoch       : 10
Version     : 2.12.0
Release     : 2.el7
Size        : 293 k
Repo        : installed
From repo   : base
Summary     : QEMU guest agent
URL         : http://www.qemu.org/
License     : GPLv2
Description : qemu-kvm is an open source virtualizer that provides hardware emulation for
            : the KVM hypervisor.
            : 
            : This package provides an agent to run inside guests, which communicates
            : with the host over a virtio-serial channel named "org.qemu.guest_agent.0"
            : 
            : This package does not need to be installed on the host OS.

[sdickers@centos7_1 ~]$ 
sjd78 added a commit to sjd78/ovirt-web-ui that referenced this issue Jul 3, 2019
Fixes: oVirt#1055

There is a permutation where the standard QEMU guest agent
will not report actual per file system data.  In this case, the
VM's `disks.usage` statistic is an empty array.  This case is
now tested, and if the usage array is empty, the unallocated vs
provisioned donut chart is displayed (as if the guest agent is
not installed).
@sjd78 sjd78 added Severity: Low For bugs, lowly severe bugs. For enhancements, small scope or impact Type: Bug a bug labels Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Severity: Low For bugs, lowly severe bugs. For enhancements, small scope or impact Type: Bug a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant