Bug 1889571

Summary: Autoscaling with gnocchi based aodh alarms requires use of naive instance_discovery_method setting with ceilometer compute agents
Product: Red Hat OpenStack Reporter: Shailesh Chhabdiya <schhabdi>
Component: gnocchiAssignee: Paul Leimer <pleimer>
Status: CLOSED DUPLICATE QA Contact: Leonid Natapov <lnatapov>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: apevec, jjoyce, jschluet, lhh, mrunge, pkilambi, pleimer, rchowdry
Target Milestone: z14Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-06 06:16:14 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: 1899612    
Bug Blocks:    

Description Shailesh Chhabdiya 2020-10-20 02:49:19 UTC
Description of problem:
While enabling the autoscaling in the RHOSP setup doesn't work as by default "instance_discovery_method=libvirt_metadata" is set in ceilometer.conf

After changing the value to "naive" it starts working

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

How reproducible:
Setup the env as per doc: https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/html/auto_scaling_for_instances/configuring_auto_scaling_for_compute_instances


Actual results:
Doesn't work with default value

Expected results:
Should work as expected

Additional info:
Here is the upstream bug: https://bugs.launchpad.net/charm-ceilometer-agent/+bug/1749954

The state remains in "insufficient data"

(overcloud) [stack@sbdtel-hcm-ospd autoscaleout]$ openstack alarm list
+--------------------------------------+--------------------------------------------+-------------------------------------+-------------------+----------+---------+
| alarm_id                             | type                                       | name                                | state             | severity | enabled |
+--------------------------------------+--------------------------------------------+-------------------------------------+-------------------+----------+---------+
| d85cbb4d-5125-4502-a73a-9181ff5cbb52 | gnocchi_aggregation_by_resources_threshold | example-cpu_alarm_high-yhwhsf64mxuc | insufficient data | low      | True    |
| 1d2aa76a-2aa6-4b2a-bc6a-458bc6d684bd | gnocchi_aggregation_by_resources_threshold | example-cpu_alarm_low-5qtd35xpu2cx  | insufficient data | low      | True    |

Comment 3 Paul Leimer 2020-11-19 16:58:23 UTC
I was able to reproduce this bug in the lab. Documentation changes have been proposed: https://bugzilla.redhat.com/show_bug.cgi?id=1899612

Comment 4 Matthias Runge 2021-07-06 06:16:14 UTC
This was targeted for osp13z14, but misses a build. The fix is proposed as documentation fix, I'm going to close this in favor of the documentation change.

*** This bug has been marked as a duplicate of bug 1899612 ***