)]}'
{"tempest/api/image/v2/test_images_negative.py":[{"author":{"_account_id":6167,"name":"Ken\u0027ichi Ohmichi","email":"ken1ohmichi@gmail.com","username":"oomichi"},"change_message_id":"8de3e9a6fab89fedc05e7847fd72c12b9dfd40cb","unresolved":false,"context_lines":[{"line_number":97,"context_line":"                                           container_format\u003d\u0027bare\u0027,"},{"line_number":98,"context_line":"                                           disk_format\u003d\u0027raw\u0027)"},{"line_number":99,"context_line":"        image_id \u003d body[\u0027id\u0027]"},{"line_number":100,"context_line":"        self.assertRaises(exceptions.ServerFault, self.client.create_image,"},{"line_number":101,"context_line":"                          name\u003d\u0027test\u0027, id\u003dimage_id, container_format\u003d\u0027bare\u0027,"},{"line_number":102,"context_line":"                          disk_format\u003d\u0027raw\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_5216fb4c","line":100,"updated":"2014-09-05 01:37:30.000000000","message":"ServerFault happens if receiving HTTP500/501 response in tempest. Is that an expected status code in glance?\n\nI feel the expected status code would be HTTP409(Conflict) for the duplicated resource ideally for whole projects. and I\u0027m not sure that this status code is expected or just a bug or something.\n\nIf adding this test even if unexpected status code, it is difficult to fix the status code in the future, because we need to change both glance and tempest.","commit_id":"f8f64d62edf2ea50beee05bc037de6fbffe57c3e"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"97fe8063df2dd6e78179ab50620aeef4d2225f13","unresolved":false,"context_lines":[{"line_number":97,"context_line":"                                           container_format\u003d\u0027bare\u0027,"},{"line_number":98,"context_line":"                                           disk_format\u003d\u0027raw\u0027)"},{"line_number":99,"context_line":"        image_id \u003d body[\u0027id\u0027]"},{"line_number":100,"context_line":"        self.assertRaises(exceptions.ServerFault, self.client.create_image,"},{"line_number":101,"context_line":"                          name\u003d\u0027test\u0027, id\u003dimage_id, container_format\u003d\u0027bare\u0027,"},{"line_number":102,"context_line":"                          disk_format\u003d\u0027raw\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_c5078380","line":100,"in_reply_to":"fa98f980_5216fb4c","updated":"2014-09-05 02:57:11.000000000","message":"+1, based on current implement, Glance will return 409 for duplicate image id. So I\u0027m wondering why it will catch the ServerFault error.","commit_id":"f8f64d62edf2ea50beee05bc037de6fbffe57c3e"},{"author":{"_account_id":11075,"name":"Benny Kopilov","email":"bkopilov@redhat.com","username":"bkopilov"},"change_message_id":"227d3fa81f362adf371090df46d6a61ed2a89543","unresolved":false,"context_lines":[{"line_number":97,"context_line":"                                           container_format\u003d\u0027bare\u0027,"},{"line_number":98,"context_line":"                                           disk_format\u003d\u0027raw\u0027)"},{"line_number":99,"context_line":"        image_id \u003d body[\u0027id\u0027]"},{"line_number":100,"context_line":"        self.assertRaises(exceptions.ServerFault, self.client.create_image,"},{"line_number":101,"context_line":"                          name\u003d\u0027test\u0027, id\u003dimage_id, container_format\u003d\u0027bare\u0027,"},{"line_number":102,"context_line":"                          disk_format\u003d\u0027raw\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_65adf7e8","line":100,"in_reply_to":"fa98f980_5216fb4c","updated":"2014-09-05 07:10:34.000000000","message":"i caught this error in packet capute when running this query from tempest , but when i did it from glance cli i got erorr 409 message.","commit_id":"f8f64d62edf2ea50beee05bc037de6fbffe57c3e"},{"author":{"_account_id":6167,"name":"Ken\u0027ichi Ohmichi","email":"ken1ohmichi@gmail.com","username":"oomichi"},"change_message_id":"2a1b59f3d43fa08e0ad10c9f7e6b7bd97ffd14a9","unresolved":false,"context_lines":[{"line_number":97,"context_line":"                                           container_format\u003d\u0027bare\u0027,"},{"line_number":98,"context_line":"                                           disk_format\u003d\u0027raw\u0027)"},{"line_number":99,"context_line":"        image_id \u003d body[\u0027id\u0027]"},{"line_number":100,"context_line":"        self.assertRaises(exceptions.ServerFault, self.client.create_image,"},{"line_number":101,"context_line":"                          name\u003d\u0027test\u0027, id\u003dimage_id, container_format\u003d\u0027bare\u0027,"},{"line_number":102,"context_line":"                          disk_format\u003d\u0027raw\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_c82ebafa","line":100,"in_reply_to":"fa98f980_c5078380","updated":"2014-09-05 03:52:22.000000000","message":"Fei, thanks for good info.\nAs you said, I could get 409 in this case on my env:\n\n $ glance image-list\n +--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+\n | ID                                   | Name                            | Disk Format | Container Format | Size      | Status |\n +--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+\n | ce322e68-a3a3-473c-b802-4ae104f1ed5e | cirros-0.3.2-x86_64-uec         | ami         | ami              | 25165824  | active |\n | c5ef3dfa-b3c6-4f0b-86a0-38ada9a9aa8f | cirros-0.3.2-x86_64-uec-kernel  | aki         | aki              | 4969360   | active |\n | 03665b65-ffc1-447b-a07d-0bab6561e9f0 | cirros-0.3.2-x86_64-uec-ramdisk | ari         | ari              | 3723817   | active |\n | cf93fc04-0154-4fdf-906e-77d024bd2511 | Fedora-x86_64-20-20140618-sda   | qcow2       | bare             | 209649664 | active |\n +--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+\n $\n $ glance --debug image-create --name test --id ce322e68-a3a3-473c-b802-4ae104f1ed5e --container-format bare --disk-format raw\n curl -i -X POST -H \u0027x-image-meta-id: ce322e68-a3a3-473c-b802-4ae104f1ed5e\u0027 -H \u0027x-image-meta-container_format: bare\u0027 -H \u0027User-Agent: python-glanceclient\u0027 -H \u0027x-image-meta-is_public: False\u0027 -H \u0027X-Auth-Token: ***\u0027 -H \u0027Content-Type: application/octet-stream\u0027 -H \u0027x-image-meta-disk_format: raw\u0027 -H \u0027x-image-meta-name: test\u0027 http://192.168.11.62:9292/v1/images\n \n HTTP/1.1 409 Conflict\n date: Fri, 05 Sep 2014 03:49:28 GMT\n content-length: 95\n content-type: text/plain; charset\u003dUTF-8\n x-openstack-request-id: req-24ab527a-7711-4229-b912-0bbd1c1096f3\n \n 409 Conflict\n \n An image with identifier ce322e68-a3a3-473c-b802-4ae104f1ed5e already exists\n \n \n \n Request returned failure status: 409\n 409 Conflict\n An image with identifier ce322e68-a3a3-473c-b802-4ae104f1ed5e already exists\n     (HTTP 409)\n $\n\nSo this test result seems strange for me also.","commit_id":"f8f64d62edf2ea50beee05bc037de6fbffe57c3e"}]}
