tech:pb_openstack_cli_timeout_glance
Différences
Ci-dessous, les différences entre deux révisions de la page.
| tech:pb_openstack_cli_timeout_glance [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:pb_openstack_cli_timeout_glance [2025/04/24 15:32] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| {{tag> | {{tag> | ||
| - | = Pb openstack cli timeout glance | + | # Pb openstack cli timeout glance |
| Erreur | Erreur | ||
| - | <code -> | + | ~~~ |
| Error finding address for https:// | Error finding address for https:// | ||
| CommunicationError: | CommunicationError: | ||
| - | </ | + | ~~~ |
| OK | OK | ||
| - | < | + | ~~~bash |
| wget http:// | wget http:// | ||
| openstack image create cirros --file cirros-0.5.0-x86_64-disk.img --disk-format qcow2 --container-format bare --public | 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 | NOK après 18 minutes | ||
| - | < | + | ~~~bash |
| time openstack image create test --file big-image.vmdk --disk-format vmdk --container-format bare --debug | time openstack image create test --file big-image.vmdk --disk-format vmdk --container-format bare --debug | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~javascript |
| {" | {" | ||
| " | " | ||
| Ligne 35: | Ligne 36: | ||
| https:// | https:// | ||
| DELETE call to image for https:// | DELETE call to image for https:// | ||
| - | </ | + | ~~~ |
| - | === Solution | + | ### Solution |
| - | <code ini ~/.curlrc> | + | '' |
| + | ~~~ini | ||
| max-time = 0 | max-time = 0 | ||
| - | </ | + | ~~~ |
| Ou encore | Ou encore | ||
| - | < | + | ~~~bash |
| sudo apt-get install python-glanceclient | sudo apt-get install python-glanceclient | ||
| #sudo apt-get install python3-glanceclient | #sudo apt-get install python3-glanceclient | ||
| - | </ | + | ~~~ |
| - | + | '' | |
| - | <code bash openstack.rc> | + | ~~~bash |
| unset $(set |grep _ENDPOINT_ |cut -d= -f1) | unset $(set |grep _ENDPOINT_ |cut -d= -f1) | ||
| unset $(set |grep ^OS_ |cut -d= -f1) | unset $(set |grep ^OS_ |cut -d= -f1) | ||
| Ligne 67: | Ligne 69: | ||
| export OS_PASSWORD=" | export OS_PASSWORD=" | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~bash |
| source clouds.rc | source clouds.rc | ||
| glance image-create --name image-name --file big-image.vmdk --disk-format vmdk --container-format bare --visibility private | glance image-create --name image-name --file big-image.vmdk --disk-format vmdk --container-format bare --visibility private | ||
| - | </ | + | ~~~ |
| Ou | Ou | ||
| Faire tourner un serveur web pour partager le fichier image (qcow2, VMDK, raw...) | Faire tourner un serveur web pour partager le fichier image (qcow2, VMDK, raw...) | ||
| - | < | + | ~~~bash |
| python3 -m http.server 8081 | python3 -m http.server 8081 | ||
| - | </ | + | ~~~ |
| Puis | Puis | ||
| - | < | + | ~~~bash |
| glance task-create --type import --input ' | glance task-create --type import --input ' | ||
| - | </ | + | ~~~ |
tech/pb_openstack_cli_timeout_glance.1742825205.txt.gz · Dernière modification : de 127.0.0.1
