Outils pour utilisateurs

Outils du site


tech:pb_openstack_cli_timeout_glance

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

tech:pb_openstack_cli_timeout_glance [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:pb_openstack_cli_timeout_glance [2025/04/24 15:32] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 {{tag>Brouillon OpenStack cloud}} {{tag>Brouillon OpenStack cloud}}
  
-Pb openstack cli timeout glance+Pb openstack cli timeout glance
  
 Erreur  Erreur 
-<code ->+~~~
 Error finding address for https://192.168.21.53:9292/v2/images/52fc9459-7dcb-48f9-a8e3-b5c8d0d76359/file: The read operation timed out Error finding address for https://192.168.21.53:9292/v2/images/52fc9459-7dcb-48f9-a8e3-b5c8d0d76359/file: The read operation timed out
 CommunicationError: Error finding address for https://192.168.21.53:9292/v2/images/caf82982-01d8-47d2-b360-e34ea76e152e/file: The read operation timed out CommunicationError: Error finding address for https://192.168.21.53:9292/v2/images/caf82982-01d8-47d2-b360-e34ea76e152e/file: The read operation timed out
-</code>+~~~
  
 OK OK
-<code bash>+~~~bash
 wget http://download.cirros-cloud.net/0.5.0/cirros-0.5.0-x86_64-disk.img wget http://download.cirros-cloud.net/0.5.0/cirros-0.5.0-x86_64-disk.img
 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
-</code>+~~~
  
 NOK après 18 minutes NOK après 18 minutes
-<code bash>+~~~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
-</code>+~~~
  
  
-<code javascript>+~~~javascript
 {"container_format": "bare", "min_ram": 0, "updated_at": "2020-03-06T16:00:43Z", "file": "/v2/images/caf82982-01d8-47d2-b360-e34ea76e152e/file", "owner": "48ab5c57c7a246c58dc7ef86c7b36309",  {"container_format": "bare", "min_ram": 0, "updated_at": "2020-03-06T16:00:43Z", "file": "/v2/images/caf82982-01d8-47d2-b360-e34ea76e152e/file", "owner": "48ab5c57c7a246c58dc7ef86c7b36309", 
 "id": "caf82982-01d8-47d2-b360-e34ea76e152e", "size": null, "self": "/v2/images/caf82982-01d8-47d2-b360-e34ea76e152e", "disk_format": "vmdk", "os_hash_algo": null, "schema": "/v2/schemas/im$ "id": "caf82982-01d8-47d2-b360-e34ea76e152e", "size": null, "self": "/v2/images/caf82982-01d8-47d2-b360-e34ea76e152e", "disk_format": "vmdk", "os_hash_algo": null, "schema": "/v2/schemas/im$
Ligne 35: Ligne 36:
 https://192.168.21.53:9292 "DELETE /v2/images/caf82982-01d8-47d2-b360-e34ea76e152e HTTP/1.1" 204 0 https://192.168.21.53:9292 "DELETE /v2/images/caf82982-01d8-47d2-b360-e34ea76e152e HTTP/1.1" 204 0
 DELETE call to image for https://192.168.21.53:9292/v2/images/caf82982-01d8-47d2-b360-e34ea76e152e used request id req-3dc34178-3eb1-4cff-aef2-b09f1e6ffedf DELETE call to image for https://192.168.21.53:9292/v2/images/caf82982-01d8-47d2-b360-e34ea76e152e used request id req-3dc34178-3eb1-4cff-aef2-b09f1e6ffedf
-</code>+~~~
  
-=== Solution+### Solution
  
-<code ini ~/.curlrc>+''~/.curlrc'' 
 +~~~ini
 max-time = 0 max-time = 0
-</code>+~~~
  
 Ou encore  Ou encore 
-<code bash>+~~~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>+~~~
  
- +''openstack.rc'' 
-<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="P@ssw0rd" export OS_PASSWORD="P@ssw0rd"
-</code>+~~~
  
-<code bash>+~~~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
-</code>+~~~
  
 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...)
-<code bash>+~~~bash
 python3 -m http.server 8081 python3 -m http.server 8081
-</code>+~~~
  
 Puis Puis
-<code bash>+~~~bash
 glance task-create --type import --input '{"import_from_format": "vmdk", "import_from": "http://192.168.21.33:8081/plop.vmdk", "image_properties": {"name": "plop-imported", "disk_format": "vmdk", "container_format": "bare", "vmware_adaptertype": "ide", "vmware_disktype": "streamOptimized", "vmware_ostype": "otherGuest"}}' glance task-create --type import --input '{"import_from_format": "vmdk", "import_from": "http://192.168.21.33:8081/plop.vmdk", "image_properties": {"name": "plop-imported", "disk_format": "vmdk", "container_format": "bare", "vmware_adaptertype": "ide", "vmware_disktype": "streamOptimized", "vmware_ostype": "otherGuest"}}'
-</code>+~~~
  
  
  
tech/pb_openstack_cli_timeout_glance.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki