Error 412 between Glance and Swift - TempAuth
Hello!
I am having an issue when I am trying to upload an image to Glance. Glance is working fine when I am using the default_store =file. Since I installed Swift, I wanted to upload my images there with Glance. I changed the following fields in the glance-api.conf:
default_store = swift swift_store_auth_address = http://192.168.100.203:8080/v1.0/ swift_store_user = system:root swift_store_key = mypass swift_store_container = glance swift_store_create_container_on_put = True
Then I restarted Glance API, and used the glance command to upload an image, but I got this error:
glance add -A stack0t name=ttylinux-kernel is_public=true container_format=aki disk_format=aki < ttylinux-vmlinux
Failed to add image. Got error: 400 Bad Request
The server could not comply with the request since it is either malformed or otherwise incorrect.
Error uploading image: (ClientException): Auth GET failed: http://192.168.100.203:8080/1.0 412 Precondition Failed
Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.
I poked around a little, look at some Launchpad threads but none of the solutions worked for me. I tried with a Glance stable/diablo and a Glance trunk version but the error is the same.
I am using Swift 1.4.5. I can check my installation with the "swift stat -v" and a curl command, they both work fine.
Does anyone had this issue before? Thanks a ton for your help!
Warik