Installazione e configurazione del servizio Image (Glance)
Installazione Glance
Server designato per l'installazione: hostname1.domain.
Configurazione Glance
- Rimuovere, se esiste, il file
/var/lib/glance/glance.db
(cioè il DB sqlite). Verrà utilizzato MySQL.
- Collegarsi su MySQL da linea di comando lanciando
mysql -u root -p
e digitando la password dell'utente root.
Editare i file di configurazione di Glance
- Infine inizializzare il DB "glance":
# glance-manage db_sync
- Now you can populate or migrate the database
# glance-manage db_sync
Troubleshooting
- To begin troubleshooting, look at the logs in the
/var/log/glance/registry.log
or /var/log/glance/api.log
- You can find the version of the installation by using the
glance --version
command. The version number 2012.1 corresponds with the Essex release.
- Obtain a test image
# 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
This topic: MarcheCloud
> GestioneServiziGenerali >
FabricOps >
GestioneOpenstack > InstallingAndConfiguringGlance
Topic revision: r6 - 2012-10-22 - TWikiAdminUser