Image status change "active" to "saving" when duplicate upload image to glance,details are as follows:
create image:
curl -i -X POST -H "Content-Type:application/json" -H "X-Auth-Token:480194c5e9a046b9be8150c80c7f439b" -d '{"name":"test_img","container_format":"bare","disk_format":"qcow2","visibility":"public"}' http://127.0.0.1:9292/v2/images
upload image:
curl -i -H "Content-Type:application/octet-stream" -H "X-Auth-Token:480194c5e9a046b9be8150c80c7f439b" -X PUT -T ./test.img http://127.0.0.1:9292/v2/images/04059ffa-56fa-4f67-a294-fdc10372e634/file
duplicate upload:
curl -i -H "Content-Type:application/octet-stream" -H "X-Auth-Token:480194c5e9a046b9be8150c80c7f439b" -X PUT -T ./xx.img http://127.0.0.1:9292/v2/images/04059ffa-56fa-4f67-a294-fdc10372e634/file
Clarified the bug with Yang XuRong.
What he means is that when a (duplicate) image is uploaded to an already active image the image state is changed from "active" to "saving" and stays in the "saving" state even after the image has been uploaded.