In Controller Node
# apt-get install mongodb-server mongodb-clients python-pymongo
# nano /etc/mongodb.conf
bind_ip = 10.10.10.10
smallfiles = true
# service mongodb stop
# rm /var/lib/mongodb/journal/prealloc.*
# service mongodb start
# service mongodb restart
# mongo --host controller --eval '
db = db.getSiblingDB("ceilometer");
db.addUser({user: "ceilometer",
pwd: "openstack",
roles: [ "readWrite", "dbAdmin" ]})'
# source admin-openrc.sh
# keystone user-create --name ceilometer --pass openstack
# 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:8777 --internalurl http://controller:8777 --adminurl http://controller:8777 --region regionOne
# apt-get install ceilometer-api ceilometer-collector ceilometer-agent-central ceilometer-agent-notification ceilometer-alarm-evaluator ceilometer-alarm-notifier python-ceilometerclient
# nano /etc/ceilometer/ceilometer.conf
[database]
...
connection = mongodb://ceilometer:openstack@controller:27017/ceilometer
[DEFAULT]
...
rpc_backend = rabbit
rabbit_host = controller
rabbit_password = openstack
...
auth_strategy = keystone
...
log_dir = /var/log/ceilometer
[keystone_authtoken]
...
auth_uri = http://controller:5000/v2.0
identity_uri = http://controller:35357
admin_tenant_name = service
admin_user = ceilometer
admin_password = openstack
* Comment out any auth_host, auth_port, and auth_protocol
[service_credentials]
...
os_auth_url = http://controller:5000/v2.0
os_username = ceilometer
os_tenant_name = service
os_password = openstack
[publisher]
...
metering_secret = openstack
# service ceilometer-agent-central restart
# service ceilometer-agent-notification restart
# service ceilometer-api restart
# service ceilometer-collector restart
# service ceilometer-alarm-evaluator restart
# service ceilometer-alarm-notifier restart
0 comments:
Post a Comment