Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Installazione e configurazione del servizio Image (Glance)Installazione GlanceServer designato per l'installazione: hostname1.domain.
Configurazione Glance
Editare i file di configurazione di Glance
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
[paste_deploy] | ||||||||
Added: | ||||||||
> > | config_file = /etc/glance/glance-api-paste.ini | |||||||
flavor = keystone
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Added: | ||||||||
> > | [keystone_authtoken]
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = | |||||||
[paste_deploy]
flavor = keystone
Verificare che sql_connection punti al DB MySQL piuttosto che a sqlite:
sql_connection = mysql://glance:<YOUR_GLANCEDB_PASSWORD>@localhost/glanceNota bene: inserendo esplicitamente l'hostname del server al posto di localhost sono stati verificati problemi di connessione.
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
# glance-manage db_sync | ||||||||
Added: | ||||||||
> > |
| |||||||
Troubleshooting
# mkdir /stackimages # cd /stackimages # wget https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img # glance index # glance add name=cirros-0.3.0-x86_64 disk_format=qcow2 container_format=bare < /stackimages/cirros-0.3.0-x86_64-disk.img Uploading image 'cirros-0.3.0-x86_64' ================================================================================================================================================================================[100%] 23.2M/s, ETA 0h 0m 0s Added new image with ID: a08912a4-3c73-4b17-9d96-bed2d1290d3d # glance index ID Name Disk Format Container Format Size ------------------------------------ ------------------------------ -------------------- -------------------- -------------- a08912a4-3c73-4b17-9d96-bed2d1290d3d cirros-0.3.0-x86_64 qcow2 bare 9761280-- PaoloVeronesi - 2012-08-30
|