how to upload large image of around 30 to 40G to glance via curl

asked 2016-08-11 21:30:34 -0500

Pavanasam R gravatar image


currently i'm using curl with option --data-binary to upload images to glance. it works fine for smaller image size.

curl ${OS_GLANCE_URL}/images/$BASE_IMAGE_ID/file -X PUT -H "Content-Type: application/octet-stream" -H "X-Auth-Token: $OS_TOKEN" --data-binary @${baseImage} | python -mjson.tool

but when i try to upload larger image sizes, its throwing me below error.

curl: option --data-binary: out of memory curl: try 'curl --help' or 'curl --manual' for more information No JSON object could be decoded

Could someone please advice, how to upload large image size of 30 - 40G, via curl or any other utility other than python openstack/glance cli tools.

Thank you.

edit retag flag offensive close merge delete