Installing and Configuring OpenStack (Juno) in Oracle® Solaris

Exit Print View

Updated: June 2016
 
 

Installing Glance

Setting up Glance requires configuring some information for authentication as well as specifying the location of the MySQL and RabbitMQ services.

How to Install and Configure Glance

  1. Configure Glance by either uncommenting or setting the parameters in these configuration files:
    • /etc/glance/glance-api.conf

      [DEFAULT]
      registry_host = $CONTROLLER_ADMIN_NODE
      
      auth_strategy = keystone
      default_publisher_id =image.$CONTROLLER_ADMIN_NODE
      rabbit_host = $CONTROLLER_ADMIN_NODE
      qpid_hostname =$CONTROLLER_ADMIN_NODE
      
      [database]
      connection = mysql://glance:service-password@$CONTROLLER_ADMIN_NODE/glance
      
      [keystone_authtoken]
      auth_uri= http://$CONTROLLER_ADMIN_NODE:5000/v2.0
      identity_uri = http://$CONTROLLER_ADMIN_NODE:35357
      admin_tenant_name = service
      admin_user = glance
      admin_password = service-password
      
    • /etc/glance/glance-cache.conf

      [DEFAULT]
      auth_url = http://$CONTROLLER_ADMIN_NODE:5000/v2.0/
      admin_tenant_name = service
      admin_user = glance
      admin_password = service-password
      
    • /etc/glance/glance-registry.conf

      [DEFAULT]
      default_publisher_id = image.$CONTROLLER_ADMIN_NODE
      rabbit_host = $CONTROLLER_ADMIN_NODE
      qpid_hostname = $CONTROLLER_ADMIN_NODE
      
      [database]
      connection = mysql://glance:service-password@$CONTROLLER_ADMIN_NODE/glance
      
      [keystone_authtoken]
      auth_uri = http://$CONTROLLER_ADMIN_NODE:5000/v2.0
      identity_uri = http://$CONTROLLER_ADMIN_NODE:35357
      admin_tenant_name = service
      admin_user = glance
      admin_password = service-password
      
    • /etc/glance/glance-scrubber.conf

      [DEFAULT]
      auth_url = http://$CONTROLLER_ADMIN_NODE:5000/v2.0/
      identity_uri = http://$CONTROLLER_ADMIN_NODE:35357
      admin_tenant_name = service
      admin_user = glance
      admin_password = service-password
      
      [database]
      connection=mysql://glance:service-password@$CONTROLLER_ADMIN_NODE/glance
      
  2. Enable the Glance SMF services.
    controller# svcadm enable -rs glance-api glance-db glance-registry glance-scrubber