cpu metric not getting created for resource instance | Openstack wallaby | Centos
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
heat (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I am trying out the heat autoscalling and i am facing an issue where the instance created doesn't have cpu metric (enabled in ceilometer polling.yaml file)
(overcloud) [stack@hkg2director ~]$ gnocchi resource show 130a0dfd-
+------
| Field | Value |
+------
| created_
| created_by_user_id | 4cb066d9701440d
| creator | 4cb066d9701440d
| ended_at | None |
| id | 130a0dfd-
| metrics | compute.
| | disk.ephemeral.
| | disk.root.size: 3f60cb9f-
| | memory: 97f796ed-
| | vcpus: 513908f9-
| original_
| project_id | 5d922243077045c
| revision_end | None |
| revision_start | 2022-09-
| started_at | 2022-09-
| type | instance |
| user_id | c1905e3c5a37492
+------
For other instances also i do not see any cpu metric.
Now the issue is as cpu metric is not getting created the alarm is not getting any data from the VM in terms of cpu usage and my autoscaling feature is failing.
Please suggest how to fix this issue.
Hi Swogat,
By default as the instance is created, I also see this as missing, but I saw this coming up as soon as I trigger some load on the VM/Instance.
Example: yes > /dev/null &
and then run below:
(overcloud) [stack@undercloud ~]$ gnocchi resource show --type instance e6890d6e- 3e5f-4e8a- 9399-fc262f5701 7e
+------ ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---+ ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---+ 15T09:27: 09+00:00 | by_project_ id | 7abe36ce16574b5 3ad1de77e03e919 06 | abc16d92da4ff15 f4 | abc16d92da4ff15 f4:7abe36ce1657 4b53ad1de77e03e 91906 | o7tpsf4sbjsc- 3yyzws2exifc- server- etgudmvrriqv | c8a6-463d- afbd-bac5f6860f 8c | novacompute- 0.mydomain. com | 3e5f-4e8a- 9399-fc262f5701 7e | 40dc-4e21- 8305-4b7f2563c8 88 | 15T09:27: 17.725687+ 00:00 | instance. booting. time: 9007c507- 951a-4b70- 8d08-13da5fffec a3 | dc5f-4790- af7b-ac33b0132b cd | size: 0d3a2cbb- eea0-4943- 9be0-3c10f98634 b7 | 85a8-47f9- a1a3-272ac936ec 7c | 8f28-443f- ab24-53975f54f8 c8 | 2a34-4b97- a036-b8f71ecf33 c1 | 9f02-4b20- 805d-480eedeba4 c3
| Field | Value |
+------
| availability_zone | nova |
| created_at | 2022-09-
| created_
| created_by_user_id | f52fb8c4d8da471
| creator | f52fb8c4d8da471
| deleted_at | None |
| display_name | ab-qhje-
| ended_at | None |
| flavor_id | af93b39a-
| flavor_name | m1.small |
| host | overcloud-
| id | e6890d6e-
| image_ref | 56643348-
| launched_at | 2022-09-
| metrics | compute.
| | cpu: 84bb36a4-
| | disk.ephemeral.
| | disk.root.size: 73710230-
| | memory.usage: fbdd7a3f-
| | memory: f89f76b6-
| | vcpus: 6a7b4161-