Ceilometer doesnt get "image_ref" metadata
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
New
|
Undecided
|
Unassigned |
Bug Description
Hello everyone!
I'm using Ceilometer with Kolla-Ansible in the Wallaby version.
The issue is that Ceilometer doesnt get the "image_ref" field for the instances.
Using the CLI in my controller node I noticed something. If I list the servers, I get:
openstack server list
+------
| ID | Name | Status | Image | Flavor |
+------
| e0d92c67-
+------
As you can see, in the field "image" it says "N/A (booted from volume)", even when I'm expliciting using the Cirros image.
This also happens if I get the detail of this server:
openstack server show e0d92c67-
+------
| Field | Value |
+------
| OS-DCF:diskConfig | AUTO |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | net0=10.0.4.167 |
| config_drive | |
| created | 2021-10-
| flavor | m1.tiny (1) |
| hostId | d9286e3adc1622d
| id | e0d92c67-
| image | N/A (booted from volume) |
| key_name | mykey |
| name | test |
| progress | 0 |
| project_id | e8876499afc5461
| properties | |
| security_groups | name='default' |
| status | ACTIVE |
| updated | 2021-10-
| user_id | 3549fc293dfa408
| volumes_attached | id='c482dcd4-
+------
Also, in the field image, it says "N/A (booted from volume)".
But If I got to "Project / Compute / Instances / test", I DO get the "image_id" inside the metadata section, like this:
METADATA
Key Name mykey
Image Name cirros
Image ID ba02706d-
This are the fields of "instance" resource type:
openstack metric resource-type show instance
+------
| Field | Value |
+------
| attributes/
| attributes/
| attributes/
| attributes/
| attributes/
| attributes/
| attributes/host | max_length=255, min_length=0, required=True, type=string |
| attributes/
| attributes/
| attributes/
| name | instance |
| state | active |
+------
And this are the metric details of my instance:
+------
| Field | Value |
+------
| availability_zone | None |
| created_at | 2021-10-
| created_
| created_by_user_id | 0cec9b778acb484
| creator | 0cec9b778acb484
| deleted_at | None |
| display_name | test |
| ended_at | None |
| flavor_id | 1 |
| flavor_name | m1.tiny |
| host | urimeba |
| id | e0d92c67-
| image_ref | None |
| launched_at | 2021-10-
| metrics | compute.
| | disk.ephemeral.
| | disk.root.size: 0565e95c-
| | memory: 19bb0df7-
| | vcpus: 1dc0c271-
| original_
| project_id | e8876499afc5461
| revision_end | None |
| revision_start | 2021-10-
| server_group | None |
| started_at | 2021-10-
| type | instance |
| user_id | 3549fc293dfa408
+------
I'll appreciate any help!
Thanks :)