glance image uplaod using curl is not uploading fulle image size
Hi All,
I'm trying to upload a image to glance via Curl. the image is getting uploaded, but only very little part of it (no error or output displayed on screen). For ex, if my image size is around 16GB, its getting uploaded around 500MB only. Below is the command format i've used. Thanks in advance for your help.
url ${OS_GLANCE_URL}/images/$IMAGE_ID/file -X PUT -H "Content-Type: application/octet-stream" -H "X-Auth-Token: $OS_TOKEN" -d @image1.raw
url ${OS_GLANCE_URL}/images/$IMAGE_ID/file -X PUT -H "Content-Type: application/octet-stream" -H "X-Auth-Token: $OS_TOKEN" -d @image2.qcow2
Initial image creation:
curl ${OS_GLANCE_URL}/images -s -X POST -H "$(cat ${confDir}/headers.txt)" -d @${confDir}/createImage.json | python -mjson.tool
cat headers.txt
Accept: application/json
X-Auth-Token: <OS-token>
raw format:
cat createImage.json
{
"container_format": "bare",
"disk_format": "raw,
"name": "Image_RAW"
}
qcow2 format:
cat createImage.json
{
"container_format": "bare",
"disk_format": "qcow2",
"name": "Image_qcow2"
}
i've used glance V2 api