Bug 1332579
Summary: | [NoMethodError] undefined method `metrics_collector_queue_name' | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Colin Arnott <carnott> | |
Component: | C&U Capacity and Utilization | Assignee: | Keenan Brock <kbrock> | |
Status: | CLOSED ERRATA | QA Contact: | Nandini Chandra <nachandr> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 5.5.0 | CC: | benglish, cpelland, jhardy, jocarter, kbrock, ldomb, mfeifer, obarenbo, simaishi | |
Target Milestone: | GA | Keywords: | ZStream | |
Target Release: | 5.6.0 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | c&u:report | |||
Fixed In Version: | 5.6.0.6 | Doc Type: | Bug Fix | |
Doc Text: |
Previously, some reports run on virtual machines did not generate any data, and reported an error with the metrics_collector_queue_name method. This problem occurred when a virtual machine was disconnected from the EMS but remained connected to a cluster, and metrics collection continued to be scheduled for that virtual machine. The capture_cloud_targets metric has been rewritten to fix this issue, so that metrics collection only occurs on virtual machines which are both powered on and attached to an EMS.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1333095 (view as bug list) | Environment: | ||
Last Closed: | 2016-06-29 15:56:53 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1333095 |
Description
Colin Arnott
2016-05-03 14:09:01 UTC
This overlaps with https://bugzilla.redhat.com/show_bug.cgi?id=1331803 Looks like there is an issue with cloud providers and orphans. https://github.com/ManageIQ/manageiq/pull/8429 New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/db0a24629e9442b2ba754bb374c6141b9aba7430 commit db0a24629e9442b2ba754bb374c6141b9aba7430 Author: Keenan Brock <kbrock> AuthorDate: Wed May 4 22:43:34 2016 -0400 Commit: Keenan Brock <kbrock> CommitDate: Wed May 4 22:53:30 2016 -0400 Metric::Target capture_cloud_targets rewrite - only bring back vms that are on (when availability_zone.nil?) - only bring back vms that have an ems https://bugzilla.redhat.com/show_bug.cgi?id=1332579 https://bugzilla.redhat.com/show_bug.cgi?id=1331803 app/models/metric/targets.rb | 1 + 1 file changed, 1 insertion(+) *** Bug 1335150 has been marked as a duplicate of this bug. *** Nandini Orphaned: Vm has no ems, but has ems_cluster_id (or availability zone). 1. We've written code to prevent this from happening 2. We've written code to not blow up when this does happen (yes, overkill) 1. Create a VM on ec2 2. Assign the Vm to an availability zone and ems_cluster 3. go into the console write down the vm's availability_zone_id and ems_cluster_id 4. Go into amazon and remove the VM 5. Trigger an ems refresh before this patch: 1. you should have a Vm.where(:ems_id => nil).count 2. you should have Vm.where(:ems_id => nil).where.not(:ems_cluster_id => nil).count 3. Cap&U should blow up after this patch: 1. You should have a Vm.where(:ems_id => nil).count 2. You should NOT have Vm.where(:ems_id => nil).where.not(:ems_cluster_id => nil).count 3. Cap&U should work 4. Vm.where(:ems_id => nil).update_all(:ems_cluster_id => EmsCluster.first.id) 5. Cap&U should still work 1. Vm.where(:ems_id => nil).count 2. you should see a number higher than 0 3. Vm.where(:ems_id => nil).where.not(:ems_cluster_id => nil).count 4. you should see 0 5. Cap&U should work 4. Vm.where(:ems_id => nil).update_all(:availability_zone_id => AvailabilityZone.first.id) 5. Cap&U should still work Thanks Keenan. Steps to reproduce: 1)Terminate an instance from the ec2 console. 2)Refresh ems. With the fix, Run these commands on the rails console 1. Vm.where(:ems_id => nil).count Output : VM count is greater than 0. 2. Vm.where(:ems_id => nil).where.not(:availability_zone_id => nil).count Output : VM count = 0 Verified that C&U continues to work after this step. 3. Vm.where(:ems_id => nil).update_all(:availability_zone_id => AvailabilityZone.first.id) Verified that C&U continues to work after this step. Verified in 5.6.0.10 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 This is all set. marked attachment so bz doesn't keep emailing me |