From Fedora Project Wiki

No edit summary
No edit summary
Line 1: Line 1:
   yum install *ceilometer*
   yum install *ceilometer*


The mongoDB store also need to be installed and started:
The mongoDB store also must be installed and started:


   sudo yum install mongodb-server
   sudo yum install mongodb-server
   sudo sed -i '/--smallfiles/!s/OPTIONS=\"/OPTIONS=\"--smallfiles /' /etc/sysconfig/mongod
   sudo sed -i '/--smallfiles/!s/OPTIONS=\"/OPTIONS=\"--smallfiles /' /etc/sysconfig/mongod
   sudo service mongod start
   sudo service mongod start
Create the appropriate users and roles:
  SERVICE_TENANT=$(keystone tenant-list | grep service | awk '{print $2}')
  ADMIN_ROLE=$(keystone role-list | grep ' admin ' | awk '{print $2}')
  SERVICE_PASSWORD=servicepass
  RESELLER_ROLE=$(keystone role-create --name=ResellerAdmin | awk '/ id / {print $4}')
  CEILOMETER_USER=$(keystone user-create --name=ceilometer \
    --pass="$SERVICE_PASSWORD" \
    --tenant_id $SERVICE_TENANT \
    --email=ceilometer@example.com | awk '/ id / {print $4}')
  keystone user-role-add --tenant_id $SERVICE_TENANT \
    --user_id $CEILOMETER_USER \
    --role_id $RESELLER_ROLE
  sudo openstack-config --set /etc/ceilometer/ceilometer.conf keystone_authtoken auth_host localhost
  sudo openstack-config --set /etc/ceilometer/ceilometer.conf keystone_authtoken auth_port 35357
  sudo openstack-config --set /etc/ceilometer/ceilometer.conf keystone_authtoken auth_protocol http
  sudo openstack-config --set /etc/ceilometer/ceilometer.conf keystone_authtoken admin_tenant_name = service
  sudo openstack-config --set /etc/ceilometer/ceilometer.conf keystone_authtoken admin_user ceilometer
  sudo openstack-config --set /etc/ceilometer/ceilometer.conf keystone_authtoken admin_password $SERVICE_PASSWORD


Then start the services:
Then start the services:
Line 13: Line 34:
   done
   done


Finally register an appropriate endpoint with the service catalog:
Finally, register an appropriate endpoint with the service catalog:


   keystone service-create --name=ceilometer \
   keystone service-create --name=ceilometer \

Revision as of 11:15, 2 April 2013

 yum install *ceilometer*

The mongoDB store also must be installed and started:

 sudo yum install mongodb-server
 sudo sed -i '/--smallfiles/!s/OPTIONS=\"/OPTIONS=\"--smallfiles /' /etc/sysconfig/mongod
 sudo service mongod start

Create the appropriate users and roles:

 SERVICE_TENANT=$(keystone tenant-list | grep service | awk '{print $2}')
 ADMIN_ROLE=$(keystone role-list | grep ' admin ' | awk '{print $2}')
 SERVICE_PASSWORD=servicepass
 RESELLER_ROLE=$(keystone role-create --name=ResellerAdmin | awk '/ id / {print $4}')
 CEILOMETER_USER=$(keystone user-create --name=ceilometer \
   --pass="$SERVICE_PASSWORD" \
   --tenant_id $SERVICE_TENANT \
   --email=ceilometer@example.com | awk '/ id / {print $4}')
 keystone user-role-add --tenant_id $SERVICE_TENANT \
   --user_id $CEILOMETER_USER \
   --role_id $RESELLER_ROLE
 sudo openstack-config --set /etc/ceilometer/ceilometer.conf keystone_authtoken auth_host localhost
 sudo openstack-config --set /etc/ceilometer/ceilometer.conf keystone_authtoken auth_port 35357
 sudo openstack-config --set /etc/ceilometer/ceilometer.conf keystone_authtoken auth_protocol http
 sudo openstack-config --set /etc/ceilometer/ceilometer.conf keystone_authtoken admin_tenant_name = service
 sudo openstack-config --set /etc/ceilometer/ceilometer.conf keystone_authtoken admin_user ceilometer
 sudo openstack-config --set /etc/ceilometer/ceilometer.conf keystone_authtoken admin_password $SERVICE_PASSWORD

Then start the services:

 for svc in compute central collector api ; do
     sudo service openstack-ceilometer-$svc start
 done

Finally, register an appropriate endpoint with the service catalog:

 keystone service-create --name=ceilometer \
   --type=metering --description="Ceilometer Service"
 CEILOMETER_SERVICE=$(keystone service-list | awk '/ceilometer/ {print $2}')
 keystone endpoint-create \
   --region RegionOne \
   --service_id $CEILOMETER_SERVICE \
   --publicurl "http://localhost:8777/" \
   --adminurl "http://localhost:8777/" \
   --internalurl "http://localhost:8777/"