Ask Your Question
1

ceilometer metadata user_metadata does not present in ocata version

asked 2017-04-18 04:17:16 -0500

Tuan gravatar image

I ran this command: ceilometer resource-show <resource_id> to check user_metadata in metadata, but it does not have.

I have add to ceilometer.conf (compute node & central node)

reserved_metadata_keys = <key_name>

then restart ceilometer-compute & restart ceilometer-central, ceilometer-collector, ceilometer-notification

Still does not have user_metadata when show ceilometer resource.

I was installed openstack ocata with rdo repo

Help me fix this problem please

Thank you so much

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-04-22 09:36:26 -0500

Tuan gravatar image

updated 2017-04-23 05:33:15 -0500

I find in ceilometer source:

class InstanceDiscovery, function discover_libvirt_polling line 211 in ceilometer/compute/discovery.py (https://github.com/openstack/ceilomet...):

"metadata": {}

I add a manualy test with "metadata": {"key_name":"key_value"}

Then restart openstack-ceilometer-compute

After that, ceilometer resource-show <instance_id> have "user_metadata.key_name": "key_value" in metadata

In that source file, I have seen a notice like this: # NOTE(sileht): Other fields that Ceilometer tracks # where we can't get the value here, but their are # retreived by notification "metadata": {},

I think, in present, ceilometer compute can not get metadata instance

If is it true, I wonder why there are some document guide (ex: https://developer.openstack.org/draft...) but in ocata version still doesn't have

PS: still waiting for someone help about this

Thank you

UPDATE: Problem solved

change #instance_discovery_method = libvirt_metadata to instance_discovery_method = workload_partitioning in ceilometer.conf

then restart ceilometer compute agent

Ceilometer now can collect instance user_metadata.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2017-04-17 11:44:50 -0500

Seen: 160 times

Last updated: Apr 23 '17