RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1221731 - Overcloud missing ceilometer keystone user and endpoints
Summary: Overcloud missing ceilometer keystone user and endpoints
Keywords:
Status: CLOSED EOL
Alias: None
Product: RDO
Classification: Community
Component: openstack-tripleo
Version: trunk
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: Kilo
Assignee: James Slagle
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-14 16:55 UTC by Marius Cornea
Modified: 2016-05-19 15:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-19 15:36:43 UTC
Embargoed:


Attachments (Terms of Use)
Ceilometer details (4.57 KB, text/plain)
2015-05-14 16:55 UTC, Marius Cornea
no flags Details

Description Marius Cornea 2015-05-14 16:55:37 UTC
Created attachment 1025513 [details]
Ceilometer details

Description of problem:
Keystone user and endpoints for ceilometer are missing on the overcloud controller. 

Version-Release number of selected component (if applicable):
CentOS 7.1
instack-0.0.6-post6.el7.centos.noarch
openstack-tripleo-heat-templates-0.8.6-dev5.el7.centos.noarch
openstack-tripleo-puppet-elements-0.0.1-dev63.el7.centos.noarch
openstack-puppet-modules-2015.1.0-2.el7.noarch

How reproducible:
TripleO installation on virtual env according to https://repos.fedorapeople.org/repos/openstack-m/docs/master/

Steps to Reproduce:
1. Follow steps in the docs to get the overcloud deployed on CentOS 7.1
2. 
3. 

Actual results:
Ceilometer packages are installed, configuration files look ok, mongo db is present, services are running but keystone user and endpoints are missing.

[stack@instack ~]$ ceilometer meter-list
publicURL endpoint for metering service not found

Expected results:
Ceilometer shows overcloud related meters.

Additional info:
I'm attaching a file containing the ceilometer related config files as they show up on the overcloud controller.

Comment 1 Udi Kalifon 2015-05-14 17:40:48 UTC
Can you check "keystone user-list" and "keystone endpoint-list" ?

Comment 2 Marius Cornea 2015-05-14 18:32:24 UTC
Yes, the user/endpoints url don't show up:

[stack@instack ~]$ keystone user-list | grep ceilometer
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
[stack@instack ~]$ 

[stack@instack ~]$ keystone endpoint-list | grep 8777
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
[stack@instack ~]$

Comment 3 Marius Cornea 2015-05-15 10:09:02 UTC
I was able to get it working by running the following

keystone user-create --name ceilometer --pass CEILOMETER_PASS
keystone user-role-add --user ceilometer --tenant service --role admin
keystone service-create --name ceilometer --type metering --description "Telemetry"
keystone endpoint-create \
  --service-id $(keystone service-list | awk '/ metering / {print $2}') \
  --publicurl http://CONTROLLER_IP:8777 \
  --internalurl http://CONTROLLER_IP:8777 \
  --adminurl http://CONTROLLER_IP:8777 \
  --region regionOne

I also had to change os_tenant_name=admin to os_tenant_name=service in /etc/ceilometer/ceilometer.conf on the controller node. This was set correctly on the compute node. 

Thanks,
Marius

Comment 4 Ben Nemec 2015-05-15 18:08:54 UTC
This should at least get ceilometer registered with Keystone: https://review.gerrithub.io/#/c/233508/

Comment 5 Marius Cornea 2015-05-18 09:28:50 UTC
It looks good to me. I applied the patch, redeployed the overcloud and ceilometer is registered with Keystone and returns overcloud meters.

Comment 8 Chandan Kumar 2016-05-19 15:36:43 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.


Note You need to log in before you can comment on or make changes to this bug.