Documentation is not updated to use AuthPlugins

Bug #1523881 reported by Stéphane Albert on 2015-12-08
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
cloudkitty
Medium
Christophe Sauthier

Bug Description

Doc is missing informations on how to setup the auth_section and use AuthPlugins facilities.

tags: added: low-hanging-fruit
Changed in cloudkitty:
importance: Undecided → Medium
status: New → Triaged
Xavier (xavier-l) wrote :

i try to install CloudKitty on Mitaka. I've followed the install documentation.

i've checkout the version stable/mitaka (0.5)

i have this configuration file :

[DEFAULT]
verbose = True
log_dir = /var/log/cloudkitty

[oslo_messaging_rabbit]
rabbit_userid = openstack
rabbit_password = ********
rabbit_hosts = controller

[auth]
username = cloudkitty
password = ********
tenant = service
region = eu-es
url = http://controller:5000/v2.0

[keystone_authtoken]
username = cloudkitty
password = ********
project_name = service
region = eu-es
auth_url = http://controller:5000/v2.0
auth_plugin = password

[database]
connection = mysql://cloudkitty:********@controller/cloudkitty

[keystone_fetcher]
username = admin
password = ********
tenant = admin
region = eu-es
url = http://controller:5000/v2.0

[ceilometer_collector]
username = cloudkitty
password = ********
tenant = service
region = eu-es
url = http://controller:5000

and i get this error :

CRITICAL cloudkitty [-] MissingAuthPlugin: An auth plugin is required to determine endpoint URL

I am also affected by the very same bug while trying to install CloudKitty in Mitaka. I have adapted some of the commands listed in the docs, though:

openstack user create --domain default --password-prompt cloudkitty
openstack role add --project service --user cloudkitty admin
openstack role create rating
openstack role add --project demo --user cloudkitty rating
openstack service create --name CloudKitty --description "OpenStack Billing" rating
openstack endpoint create --region RegionOne rating public http://controller:8888
openstack endpoint create --region RegionOne rating admin http://controller:8888
openstack endpoint create --region RegionOne rating internal http://controller:8888

I double-checked cloudkitty.conf, and the item "auth_plugin" is properly configured in the section "[keystone_authtoken]".

Changed in cloudkitty:
assignee: nobody → Christophe Sauthier (christophe.sauthier)
Jeremy Liu (liujiong) wrote :

seems like some sections are missed too.

Saulo (sauloaugustosilva) wrote :

Hi All ,
Any update . I don´t think that is a doc bug . After all configuration including some that is not on the doc as described bellow I cloud not start the service due :
 MissingAuthPlugin: An auth plugin is required to determine endpoint URL

Any update on that ?

Max Nowak (max-nowak) wrote :

For anyone still wondering how to do this, I think I figured it out. Take a look at how the cloudkitty devstack plugin config (https://github.com/openstack/cloudkitty/blob/master/devstack/plugin.sh) looks like, and use that in your config! It needs an authinfos section that other sections then reference, like this:

[authinfos]
auth_type = v2password
auth_url = $keystone_url:5000/v2.0/
username = cloudkitty
password = $service_password
tenant_name = $service_tenant_name (probably 'services')
region_name = $region

[keystone_fetcher]
auth_section = authinfos

[ceilometer_collector]
auth_section = authinfos

[collect]
collector = ceilometer
services = $services_to_collect

Hope that helps!

Jeremy Liu (liujiong) wrote :

Hi Max, nice work. Thanks.
I've uploaded a CR trying to fix the problem.
You can find it in gerrit https://review.openstack.org/#/c/329242/

Changed in cloudkitty:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers