Openstack: Newton on Xenial
aodh version 3.0.0 Charm-Rev:4
ceilometer version 7.0.0 Charm-Rev: 240
ceilometer-agent version 7.0.0 Charm-Rev: 235
Both Ceilometer & Aodh deployed fine but on Horizon GUI Stats cannot be retrieved due access to object store.
Error Log:
ubuntu@juju-d29249-1-lxd-0:/var/log/ceilometer$ tail -f ceilometer-agent-central.log
2017-01-09 19:30:51.650 25741 ERROR ceilometer.agent.manager File "/usr/lib/python2.7/dist-packages/ceilometer/objectstore/swift.py", line 190, in get_samples
2017-01-09 19:30:51.650 25741 ERROR ceilometer.agent.manager cache, tenants):
2017-01-09 19:30:51.650 25741 ERROR ceilometer.agent.manager File "/usr/lib/python2.7/dist-packages/ceilometer/objectstore/swift.py", line 84, in _iter_accounts
2017-01-09 19:30:51.650 25741 ERROR ceilometer.agent.manager ksclient, tenants))
2017-01-09 19:30:51.650 25741 ERROR ceilometer.agent.manager File "/usr/lib/python2.7/dist-packages/ceilometer/objectstore/swift.py", line 96, in _get_account_info
2017-01-09 19:30:51.650 25741 ERROR ceilometer.agent.manager keystone_client.get_auth_token(ksclient)))
2017-01-09 19:30:51.650 25741 ERROR ceilometer.agent.manager File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 753, in get_account
2017-01-09 19:30:51.650 25741 ERROR ceilometer.agent.manager raise ClientException.from_response(resp, 'Account GET failed', body)
2017-01-09 19:30:51.650 25741 ERROR ceilometer.agent.manager ClientException: Account GET failed: http://172.27.40.189:80/swift/v1/AUTH_49e4f76ff87d4db5a182b1ff82d664a9?format=json 404 Not Found [first 60 chars of response] {"Code":"NoSuchBucket","BucketName":"AUTH_49e4f76ff87d4db5a1
2017-01-09 19:30:51.650 25741 ERROR ceilometer.agent.manager
172.27.40.189 belongs to Ceph-RadosGW.
Please note that all charms taken as is from charm store with no modifications.
The issue here is that the default support in ceilometer will assume that object-storage is swift, rather than a ceph-radosgw which behaves in a slightly different way in terms of URI's.
This is a missing feature in the ceilometer charm, probably best resolved using a relation between ceph-radosgw and ceilometer to allow discovery and configuration of the polling agent in ceilometer, and enablement of the required account and stats in radosgw.