The add method of swift.py have a problem.When a large image is uploading and the glance-api is restarted, then we can not delete the image content that have been uploaded in swift
Bug #1337367 reported by
Hua Wang
This bug report is a duplicate of:
Bug #1243127: Image is not clean when uploading image kill glance process.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Unassigned |
Bug Description
1. upload a large image, for example 50G
2. kill glance-api when image status:saving
3. restart glance-api
4. delete image
the image content that have been uploaded can not be deleted. I think the add method of glance/
manifest = "%s/%s-" % (location.
headers = {'ETag': hashlib.
connection.
the code above shoud put before the code we upload the image chunks.
If you have additional details, please add them to your existing bug instead of opening new one.