Moving bug to Gnocchi - PR to resolve this issue has been merged into the master branch.
** Also affects: gnocchi (Ubuntu) Importance: Undecided Status: New ** Changed in: gnocchi (Ubuntu) Status: New => Triaged ** Changed in: gnocchi (Ubuntu) Importance: Undecided => High ** Changed in: gnocchi (Ubuntu) Assignee: (unassigned) => James Page (james-page) ** Project changed: aodh => gnocchi ** Description changed: I used to create alarms with the following script [attached file] in aodh=1:13.0.0-0ubuntu1~cloud0 and had no issue. $ /tmp/alarm.sh +---------------------------+-----------------------------------------------------------------+ | Field | Value | +---------------------------+-----------------------------------------------------------------+ | aggregation_method | rate:mean | | alarm_actions | ['log:'] | | alarm_id | 4fee9626-52ec-4ca9-9854-89e6ceee67fe | | comparison_operator | gt | | description | Instance CPU High | | enabled | True | | evaluate_timestamp | 2022-03-07T16:01:53.153613 | | evaluation_periods | 1 | | granularity | 300 | | insufficient_data_actions | [] | | metric | cpu | | name | cpu_70_percent_1vcpu | | ok_actions | [] | | project_id | 576705cdebb4400ea03a1f75ec97bb2b | | query | {"=": {"server_group": "dcbea5f6-d39e-48f5-8639-4a5353ae4509"}} | | repeat_actions | False | | resource_type | instance | | severity | low | | state | insufficient data | | state_reason | Not evaluated yet | | state_timestamp | 2022-03-07T16:01:53.111684 | | threshold | 210000000000.0 | | time_constraints | [] | | timestamp | 2022-03-07T16:01:53.111684 | | type | gnocchi_aggregation_by_resources_threshold | | user_id | 04d28d85073b44ad9984a43126b034b0 | +---------------------------+-----------------------------------------------------------------+ - - After applying a patch in aodh for this bug https://bugs.launchpad.net/aodh/+bug/1946793. aodh=1:13.0.0-0ubuntu1.1~bpo20.04.1~ppa202202181220 I started seeing this error only when creating alarm of type gnocchi_aggregation_by_resources_threshold. + After applying a patch in aodh for this bug + https://bugs.launchpad.net/aodh/+bug/1946793. + aodh=1:13.0.0-0ubuntu1.1~bpo20.04.1~ppa202202181220 I started seeing + this error only when creating alarm of type + gnocchi_aggregation_by_resources_threshold. $ /tmp/alarm.sh {'cause': 'Metrics not found', 'detail': ['cpu']} (HTTP 400) (Request-ID: req-6db52ec4-a432-4e5e-a4a3-031a511c0fdf) - This is preventing a customer for going into production because of the + This is preventing a deployment for going into production because of the need to create this type of alarms in a heat template for autoscaling vms. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1963971 Title: Error while creating alarm of type gnocchi_aggregation_by_resources_threshold To manage notifications about this bug go to: https://bugs.launchpad.net/gnocchi/+bug/1963971/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs