Instalación y configuración de OpenStack en Oracle® Solaris 11.2

Salir de la Vista de impresión

Actualización: Abril de 2015
 
 

Instalación de Glance

La configuración de Glance requiere configurar cierta información para la autenticación, así como especificar la ubicación de los servicios MySQL y RabbitMQ.

Cómo instalar y configurar Glance

  1. Instale el paquete de Glance.
    controller# pkg install glance
  2. Configure Glance quitando los comentarios de los parámetros de estos archivos de configuración o estableciendo dichos parámetros:
    • /etc/glance/glance-api.conf

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

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

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

      [filter:authtoken]
      auth_uri = http://$CONTROLLER_ADM_NODE:5000/v2.0/
      identity_uri = http://$CONTROLLER_ADM_NODE:35357
      admin_tenant_name = tenant
      admin_user = glance
      admin_password = service-password
      
    • /etc/glance/glance-registry-paste.ini

      [filter:authtoken]
      auth_uri = http://$CONTROLLER_ADM_NODE:5000/v2.0/
      identity_uri = http://$CONTROLLER_ADM_NODE:35357
      admin_tenant_name = tenant
      admin_user = glance
      admin_password = service-password
      
    • /etc/glance/glance-scrubber.conf

      [DEFAULT]
      auth_url = http://$CONTROLLER_ADM_NODE:5000/v2.0/
      identity_uri = http://$CONTROLLER_ADM_NODE:35357
      admin_tenant_name = tenant
      admin_user = glance
      admin_password = service-password
      
      [database]
      connection=mysql://glance:glance@$CONTROLLER_ADM_NODE/glance
      
  3. Active los servicios SMF de Glance.
    controller# svcadm enable -rs glance-api glance-db glance-registry glance-scrubber