Bug 1387310

Summary: Metrics capture does not work in Cloud - moved to gnocchi API in OSP10
Product: Red Hat CloudForms Management Engine Reporter: Marek Aufart <maufart>
Component: ProvidersAssignee: Marek Aufart <maufart>
Status: CLOSED CURRENTRELEASE QA Contact: Omri Hochman <ohochman>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: cpelland, dcain, jfrey, jhardy, obarenbo, tzumainn
Target Milestone: GAKeywords: TestOnly
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: openstack
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1395223 (view as bug list) Environment:
Last Closed: 2017-06-12 17:41:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1395223    

Description Marek Aufart 2016-10-20 15:20:36 UTC
Description of problem:
OSP 10 moved metrics-related API calls to Gnocchi. We need update Openstack provider with a new service for metrics called Gnocchi (different to metering for Ceilometer) and use it for metrics loading from Overcloud.

Undercloud should use an existing Ceilometer API calls in OSP10 and older (and in close future until Gnocchi appears in overcloud - 11/Ocata or later).

Version-Release number of selected component (if applicable):
5.7, 5.6

How reproducible:
always with OSP10 overcloud

Steps to Reproduce:
1. setup OSP10
2. add Cloud provider
3. provision an instance
4. capture metrics from rails console - Vm.last.perf_capture("realtime", 3.hours.ago.utc, Time.now.utc)

Actual results:
getting 410 error for /v2/meters: This telemetry installation is configured to use Gnocchi. Please use the Gnocchi API available on the metric endpoint to retrieve data.

Expected results:
no errors, metrics were loaded

Additional info:
Error log: http://paste.openstack.org/show/586570/

Comment 2 Marek Aufart 2016-11-14 17:47:38 UTC
5.7 PR: https://github.com/ManageIQ/manageiq/pull/12547

Comment 5 Ronnie Rasouli 2017-03-14 14:29:39 UTC
verified on 5.8.0.4

The default RHOS10 are Gnocchi, metrics has been collected