Add warning-level log message for wrong identity relation

For OpenStack versions >= Queens the Ceilometer Charm
requires a 'identity-credentials' relation to Keystone
and not a 'identity-service' relation.

Log a warning-level verbose message when 'identity-service'
relation is detected on a >= Queens deployment.

Change-Id: I8e3ff1b899b877cd2870f4bbaaea155e4433c4f4
Closes-Bug: #1751772
This commit is contained in:
Frode Nordahl 2018-02-26 12:20:09 +00:00
parent 3438d424b0
commit 8d3a868b64
No known key found for this signature in database
GPG Key ID: 6A5D59A3BA48373F
1 changed files with 3 additions and 0 deletions

View File

@ -393,6 +393,9 @@ def keystone_joined(relid=None):
cmp_codename = CompareOpenStackReleases(
get_os_codename_install_source(config('openstack-origin')))
if cmp_codename >= 'queens':
log("For OpenStack version Queens and onwards Ceilometer Charm "
"requires the 'identity-credentials' relation to Keystone, not "
"the 'identity-service' relation.", level=WARNING)
log('Skipping endpoint registration for >= Queens', level=DEBUG)
return