Bug 1530627
| Summary: | No metrics collections | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Gilad Shefer <gshefer> |
| Component: | Providers | Assignee: | Barak <bazulay> |
| Status: | CLOSED NOTABUG | QA Contact: | Gilad Shefer <gshefer> |
| Severity: | urgent | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.9.0 | CC: | gblomqui, gshefer, jfrey, jhardy, obarenbo, smallamp, yzamir |
| Target Milestone: | GA | Keywords: | Regression |
| Target Release: | cfme-future | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-01-04 11:46:02 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | Container Management | Target Upstream Version: | |
| Embargoed: | |||
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. 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. |
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>