Description of problem: When navigating to a VM and then clicking on "Number of disks" to see the details, the usage is not reported. Version-Release number of selected component (if applicable): 5.5.2 How reproducible: always on VMware Steps to Reproduce: 1. add a VMware provider 2. run SSA for the VM and the data store (might not be necessary, but I wanted to make sure all data collection is executed) 3. navigate to a VM 4. click on "number of disks" Actual results: "Used size" is empty Expected results: Actual disk usage should be shown Additional info: I did test this also for templates and they do report the correct value for "used size"
Created attachment 1142273 [details] used size for a virtual machine reported value is empty
Created attachment 1142274 [details] used size for a template reported value is correct
HiHo, in my lab there are only RHEL6 VMs and they all show the same (missing) information. SSA works fine, as far as I can tell. It just doesn't show the correct "used size" in the details of the VM > Number of disks UI. I did run "InspectMe" for the VM and the template. VM collected data: [----] I, [2016-04-07T05:33:21.354349 #3080:1da8620] INFO -- : <AEMethod inspectme> Virtual Columns - disk_1_size: 5368709120 [----] I, [2016-04-07T05:33:21.357674 #3080:1da8620] INFO -- : <AEMethod inspectme> Virtual Columns - disk_1_size_on_disk: nil Template collected data: [----] I, [2016-04-07T05:34:15.480057 #3080:1daa3e4] INFO -- : <AEMethod inspectme> Virtual Columns - disk_1_size: 5368709120 [----] I, [2016-04-07T05:34:15.483523 #3080:1daa3e4] INFO -- : <AEMethod inspectme> Virtual Columns - disk_1_size_on_disk: 1289687040 For the VM "size on disk" is nil, but for the template it's the correct value. I'll upload all logs and attach them to this ticket. Regards, Christian
https://github.com/ManageIQ/manageiq/pull/7865
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/75153c9146c0ca75e700247be52588dac1ed83cf commit 75153c9146c0ca75e700247be52588dac1ed83cf Author: Adam Grare <agrare> AuthorDate: Mon Apr 11 10:15:39 2016 -0400 Commit: Adam Grare <agrare> CommitDate: Mon Apr 11 10:30:08 2016 -0400 Fix for used disk size not showing up on vms Fix a broken require which was throwing an exception when running SSA on a VM. This caused no XML to be returned for the disks section of VmConfig, so the "Used Size" and "Partitions Aligned" were always empty for a VM. https://bugzilla.redhat.com/show_bug.cgi?id=1322902 gems/pending/metadata/VmConfig/VmConfig.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
Root cause was a bad require causing a ruby LoadError in VmConfig#load_vim_snapshots. SSA on templates worked because they bypassed this require because a snapshot is not required for SSA on a template.
verified this bug in: 5.6.0.4-beta2.3.20160421172650_719e256 disk usage is collected correctly for vm's on vmware providers. refer the screen shot "ssa_used_size_works" steps followed: configure the appliance for smart state analysism,by installing vddk and enabling "smart proxy". 1. add the vmware provider, add the credentials for provider and hosts. 2. run the ssa on any vm. wait for ssa to complete. monitor evm.log 3. check the "number of disks" -> "used size" displayed correctly for the vm's. verified for RHEL 6 and Fedora 22 vm's.
Created attachment 1150644 [details] ssa_used_size_works for vmware vm's
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, 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/RHBA-2016:1348