Bug 1530627 - No metrics collections
Summary: No metrics collections
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: GA
: cfme-future
Assignee: Barak
QA Contact: Gilad Shefer
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-03 14:20 UTC by Gilad Shefer
Modified: 2018-01-04 11:46 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-01-04 11:46:02 UTC
Category: ---
Cloudforms Team: Container Management
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gilad Shefer 2018-01-03 14:20:48 UTC
Description of problem:
There are no metrics collections from version 5.9.0.13.
* C&U on in the configuration
* Hawkular is up and running
* In the provider's details page:
     * Endpoints table contains the correct URL, Port and type.
     * Status.MetricAuthentication = valid
     * Status.LastMetricsCollection = Unavailable - 3 Minutes Ago


Version-Release number of selected component (if applicable):
5.9.0.13

How reproducible:

Steps to Reproduce:
1. Add provider with hawkular metrics
2. Set C&U configuration to on
3. wait for hawkular validation
4. wait for metrics collection

Actual results:
Last Metrics Collection = Unavailable - 3 Minutes Ago

Expected results:
Last Metrics Collection = Success - 3 Minutes Ago

Additional info:


    Recreation in the rails console:
        ems = ExtManagementSystem.first
        pod = ems.container_groups.first
        context = ManageIQ::Providers::Kubernetes::ContainerManager::MetricsCapture::HawkularCaptureContext.new(pod, 5.minutes.ago, 0.minutes.ago, 30)
        context.collect_metrics
    
    You will see the following output:
        irb(main):020:0> context.collect_metrics
NoMethodError: undefined method `keys' for nil:NilClass
	from /opt/rh/cfme-gemset/bundler/gems/manageiq-providers-kubernetes-165a34709d2d/app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/hawkular_capture_context.rb:136:in `get_metrics_key'
	from /opt/rh/cfme-gemset/bundler/gems/manageiq-providers-kubernetes-165a34709d2d/app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/hawkular_capture_context.rb:212:in `block in insert_metrics'
	from /opt/rh/cfme-gemset/bundler/gems/manageiq-providers-kubernetes-165a34709d2d/app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/hawkular_capture_context.rb:209:in `each'
	from /opt/rh/cfme-gemset/bundler/gems/manageiq-providers-kubernetes-165a34709d2d/app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/hawkular_capture_context.rb:209:in `insert_metrics'
	from /opt/rh/cfme-gemset/bundler/gems/manageiq-providers-kubernetes-165a34709d2d/app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/hawkular_capture_context.rb:244:in `collect_metrics_for_object'
	from /opt/rh/cfme-gemset/bundler/gems/manageiq-providers-kubernetes-165a34709d2d/app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/hawkular_capture_context.rb:90:in `collect_group_metrics'
	from /opt/rh/cfme-gemset/bundler/gems/manageiq-providers-kubernetes-165a34709d2d/app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/capture_context_mixin.rb:29:in `collect_metrics'
	from (irb):20
	from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands/console.rb:65:in `start'
	from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands/console_helper.rb:9:in `start'
	from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:78:in `console'
	from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
	from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands.rb:18:in `<top (required)>'
	from bin/rails:4:in `require'
	from bin/rails:4:in `<main>'
irb(main):021:0>

Comment 2 Dave Johnson 2018-01-03 14:45:00 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 3 Gilad Shefer 2018-01-04 11:46:02 UTC
After we tested it with another providers, both 3.6 and 3.7 we found that this bug happens for very specific environment.
Closing bug.


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