tech:pb_openstack_cli_timeout_glance
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| tech:pb_openstack_cli_timeout_glance [2025/04/24 15:32] – Jean-Baptiste | tech:pb_openstack_cli_timeout_glance [2026/06/04 13:41] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Pb openstack cli timeout glance | ||
| + | |||
| + | Erreur | ||
| + | ~~~ | ||
| + | Error finding address for https:// | ||
| + | CommunicationError: | ||
| + | ~~~ | ||
| + | |||
| + | OK | ||
| + | ~~~bash | ||
| + | wget http:// | ||
| + | openstack image create cirros --file cirros-0.5.0-x86_64-disk.img --disk-format qcow2 --container-format bare --public | ||
| + | ~~~ | ||
| + | |||
| + | NOK après 18 minutes | ||
| + | ~~~bash | ||
| + | time openstack image create test --file big-image.vmdk --disk-format vmdk --container-format bare --debug | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ~~~javascript | ||
| + | {" | ||
| + | " | ||
| + | ge", " | ||
| + | " | ||
| + | | ||
| + | curl -g -i -X PUT -H ' | ||
| + | b978fa588b' | ||
| + | |||
| + | curl -g -i -X DELETE -H ' | ||
| + | b7ab978fa588b' | ||
| + | Starting new HTTPS connection (2): 192.168.21.53: | ||
| + | https:// | ||
| + | DELETE call to image for https:// | ||
| + | ~~~ | ||
| + | |||
| + | ### Solution | ||
| + | |||
| + | '' | ||
| + | ~~~ini | ||
| + | max-time = 0 | ||
| + | ~~~ | ||
| + | |||
| + | Ou encore | ||
| + | ~~~bash | ||
| + | sudo apt-get install python-glanceclient | ||
| + | #sudo apt-get install python3-glanceclient | ||
| + | ~~~ | ||
| + | |||
| + | '' | ||
| + | ~~~bash | ||
| + | unset $(set | grep _ENDPOINT_ | cut -d= -f1) | ||
| + | unset $(set | grep ^OS_ | cut -d= -f1) | ||
| + | |||
| + | export LC_ALL=C | ||
| + | # LC_ALL=C.UTF-8 | ||
| + | export OS_NO_CACHE=' | ||
| + | export OS_CACERT=/ | ||
| + | |||
| + | export OS_IDENTITY_API_VERSION=' | ||
| + | export OS_AUTH_URL=" | ||
| + | export OS_USERNAME=admin | ||
| + | export OS_PROJECT_NAME=admin | ||
| + | export OS_USER_DOMAIN_NAME=Default | ||
| + | export OS_PROJECT_DOMAIN_NAME=Default | ||
| + | |||
| + | export OS_PASSWORD=" | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | source clouds.rc | ||
| + | glance image-create --name image-name --file big-image.vmdk --disk-format vmdk --container-format bare --visibility private | ||
| + | ~~~ | ||
| + | |||
| + | Ou | ||
| + | |||
| + | Faire tourner un serveur web pour partager le fichier image (qcow2, VMDK, raw...) | ||
| + | ~~~bash | ||
| + | python3 -m http.server 8081 | ||
| + | ~~~ | ||
| + | |||
| + | Puis | ||
| + | ~~~bash | ||
| + | glance task-create --type import --input ' | ||
| + | ~~~ | ||
| + | |||
| + | |||
