Red Hat Bugzilla – Bug 1298325
SCVMM Provider refresh error refresh_parser.rb:324:in `process_snapshots'
Last modified: 2016-10-03 12:16:05 EDT
Description of problem:
The following error gets created in the web UI following the SCVMM provider refresh:
undefined method `each' for nil:NilClass
[----] E, [2016-01-13T16:14:15.454469 #3064:6c398c] ERROR -- : MIQ(ManageIQ::Providers::Microsoft::InfraManager::Refresher#refresh) EMS: [SCVMM], id:  Refresh failed
[----] E, [2016-01-13T16:14:15.454712 #3064:6c398c] ERROR -- : [NoMethodError]: undefined method `each' for nil:NilClass Method:[rescue in block in refresh]
[----] E, [2016-01-13T16:14:15.454828 #3064:6c398c] ERROR -- : /var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:324:in `process_snapshots'
/var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:64:in `block in get_vms'
/var/www/miq/vmdb/app/models/manageiq/providers/microsoft/infra_manager/refresh_parser.rb:601:in `block in process_collection'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
i have a theoretical explanation for this error which can be proven or disproven by testing on a SCVMM SP1 environment first. Jeff, can you help with this?
Absolutely. As I said to dajo, everything seems to working fine on our environment. I'm still trying to figure out how to break it.
I can't reproduce it.
I'm going to need some more info. I routine check this provider and it always works. I put a snapshot on everything and it still works. I keep the latest Rollup Update installed. Perhaps the customer is running and older version.
As far as whether the older SCVMM SP1 is supported or not, well, I support this platform. I've always kept it up to date and it works just fine. I'm going to need more info.
Please make sure the customer is using the latest version. I've provided info at https://mojo.redhat.com/docs/DOC-1044058
I don't know what else to do.
environment affected :
OS Version of VMM Server: 6.2 (Windows Server 2012)
3.1.6109.0 System Center 2012 SP1 Update Rollup 11
Yes, that would be a good next step.
Jeff, can you do apply the rollups?
I installed the requested version, verified it, and created a few more checkpoints both from SCVMM and from Hyper-V Still seems to still be working. Kind of wish it wasn't.
I updated the mojo page as well.
I responded twice with the same answer, which is I cannot reproduce it. I have added all kinds of snapshots to no avail. I don't know what else to try.
Felix / Dave - I have no further suggestions.
The error indicates that we are trying to read the VMCheckpoints property from the VM but it is either not present or it has a NIL value. This is my best guess since none of us can reproduce it. I have made a PR to fix this.
New commit detected on ManageIQ/manageiq/master:
Author: Bronagh Sorota <firstname.lastname@example.org>
AuthorDate: Tue Apr 26 13:51:32 2016 -0400
Commit: Bronagh Sorota <email@example.com>
CommitDate: Wed May 18 12:48:09 2016 -0400
Return empty array if VMCheckpoints is NIL.
.../manageiq/providers/microsoft/infra_manager/refresh_parser.rb | 6 ++++++
1 file changed, 6 insertions(+)
I checked again with the new fix. Everything continues to work fine and I've gone to extreme measures with checkpoints. I even put the snapshots on a drive SCVMM can't see and it still worked fine.
Perhaps the checkpoint is just coincidental to another issue. This new bug produces a very similar error - https://bugzilla.redhat.com/show_bug.cgi?id=1347406
It's not the checkpoints unless the VM is simply corrupt. I've tried everything on all versions of SCVMM and Windows VMs. Please reopen it if you find additional information.
Moving to Verified using https://10.16.7.187/vm_infra/explorer as there was a code change.
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.