Glance を設定するには、認証に関する情報の構成、および MySQL および RabbitMQ サービスの場所の指定が必要です。
/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
controller# svcadm enable -rs glance-api glance-db glance-registry glance-scrubber