)]}'
{"id":"openstack%2Fpython-zaqarclient~282114","triplet_id":"openstack%2Fpython-zaqarclient~master~Ie2cc3081a5dd7c4f21c29bdf78a9bad76b515121","project":"openstack/python-zaqarclient","branch":"master","topic":"bug/1542804","hashtags":[],"change_id":"Ie2cc3081a5dd7c4f21c29bdf78a9bad76b515121","subject":"Make TransportErrors more descriptive","status":"MERGED","created":"2016-02-19 00:27:22.000000000","updated":"2016-03-01 22:40:12.000000000","submitted":"2016-03-01 22:40:12.000000000","submitter":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"total_comment_count":2,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"4dc9c41f9a4e9ab496052139f6307ad1da720180","_number":282114,"virtual_id_number":282114,"owner":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"all":[{"value":0,"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},{"value":2,"date":"2016-03-01 22:40:12.000000000","post_submit":true,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":0,"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},{"value":0,"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},{"value":0,"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","default_value":0,"optional":true},"Code-Review":{"approved":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"all":[{"value":0,"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},{"value":0,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":2,"date":"2016-03-01 22:16:06.000000000","_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},{"value":0,"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},{"value":0,"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","default_value":0,"optional":true},"Workflow":{"approved":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"all":[{"value":0,"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},{"value":0,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":1,"date":"2016-03-01 22:16:06.000000000","_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},{"value":0,"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},{"value":0,"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":3,"name":"Jenkins","username":"jenkins"},{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},{"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2016-02-22 02:55:59.000000000","updated_by":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"reviewer":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"state":"REVIEWER"},{"updated":"2016-02-26 22:05:04.000000000","updated_by":{"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},"reviewer":{"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},"state":"REVIEWER"},{"updated":"2016-03-01 22:16:06.000000000","updated_by":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"reviewer":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"state":"REVIEWER"},{"updated":"2016-03-01 22:40:12.000000000","updated_by":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"reviewer":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"state":"REVIEWER"}],"messages":[{"id":"e9019c177f1dedfd28bc6b2e9705991cb484ed34","author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"date":"2016-02-19 00:27:22.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"cf0beb99c6e9a9cfa6571561d6688968c8392731","author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"date":"2016-02-19 00:29:32.000000000","message":"Uploaded patch set 2: Patch Set 1 was rebased.","accounts_in_message":[],"_revision_number":2},{"id":"fe5abb6bcbaba2e7329464ca16fb375f5e731627","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-02-19 02:34:13.000000000","message":"Patch Set 2: Verified-1\n\nBuild failed (check pipeline).  For information on how to proceed, see http://docs.openstack.org/infra/manual/developers.html#automated-testing\n\n- gate-python-zaqarclient-python34 http://logs.openstack.org/14/282114/2/check/gate-python-zaqarclient-python34/073e8f9/ : FAILURE in 2m 53s\n- gate-python-zaqarclient-pypy http://logs.openstack.org/14/282114/2/check/gate-python-zaqarclient-pypy/4b81ce9/ : FAILURE in 5m 58s (non-voting)\n- check-osc-plugins http://logs.openstack.org/14/282114/2/check/check-osc-plugins/de3750c/ : SUCCESS in 1m 09s (non-voting)\n- gate-python-zaqarclient-pep8 http://logs.openstack.org/14/282114/2/check/gate-python-zaqarclient-pep8/4ccacb1/ : SUCCESS in 43s\n- gate-python-zaqarclient-python27 http://logs.openstack.org/14/282114/2/check/gate-python-zaqarclient-python27/0162d60/ : FAILURE in 48s","accounts_in_message":[],"_revision_number":2},{"id":"b7c13d6239b9f5a79b52ccbbcf7d77d83118b05b","author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"date":"2016-02-19 10:58:47.000000000","message":"Uploaded patch set 3.","accounts_in_message":[],"_revision_number":3},{"id":"1f693bbaf71d66a90e08e379734c7f50273a60e2","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-02-19 11:07:43.000000000","message":"Patch Set 3: Verified+1\n\nBuild succeeded (check pipeline).\n\n- gate-python-zaqarclient-python34 http://logs.openstack.org/14/282114/3/check/gate-python-zaqarclient-python34/522cf88/ : SUCCESS in 2m 39s\n- gate-python-zaqarclient-pypy http://logs.openstack.org/14/282114/3/check/gate-python-zaqarclient-pypy/1ffdf48/ : FAILURE in 5m 57s (non-voting)\n- check-osc-plugins http://logs.openstack.org/14/282114/3/check/check-osc-plugins/dff1b94/ : SUCCESS in 1m 06s (non-voting)\n- gate-python-zaqarclient-pep8 http://logs.openstack.org/14/282114/3/check/gate-python-zaqarclient-pep8/060e760/ : SUCCESS in 47s\n- gate-python-zaqarclient-python27 http://logs.openstack.org/14/282114/3/check/gate-python-zaqarclient-python27/bc723a0/ : SUCCESS in 56s","accounts_in_message":[],"_revision_number":3},{"id":"c2ffd093244e1694839deb9d79d6ef3d712f71fa","author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"date":"2016-02-19 12:21:37.000000000","message":"Uploaded patch set 4.","accounts_in_message":[],"_revision_number":4},{"id":"2e678a679dfc5ff5b1c0f40aee0561b30ea6320b","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-02-19 12:34:38.000000000","message":"Patch Set 4: Verified+1\n\nBuild succeeded (check pipeline).\n\n- gate-python-zaqarclient-python34 http://logs.openstack.org/14/282114/4/check/gate-python-zaqarclient-python34/5b02edf/ : SUCCESS in 2m 52s\n- gate-python-zaqarclient-pypy http://logs.openstack.org/14/282114/4/check/gate-python-zaqarclient-pypy/64f207f/ : FAILURE in 5m 12s (non-voting)\n- check-osc-plugins http://logs.openstack.org/14/282114/4/check/check-osc-plugins/a0dddc1/ : SUCCESS in 1m 01s (non-voting)\n- gate-python-zaqarclient-pep8 http://logs.openstack.org/14/282114/4/check/gate-python-zaqarclient-pep8/0dd3841/ : SUCCESS in 42s\n- gate-python-zaqarclient-python27 http://logs.openstack.org/14/282114/4/check/gate-python-zaqarclient-python27/62a332f/ : SUCCESS in 47s","accounts_in_message":[],"_revision_number":4},{"id":"fe4ac1bb0dc9340c01f6da51bf54e0c2dd69ee82","author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"date":"2016-02-22 02:55:59.000000000","message":"Patch Set 4: Code-Review+1\n\nI like this patch. The blank line confused me indeed.\n\nBTW, is it possible to write some test to ensure the behavior is ok in different kind of response?","accounts_in_message":[],"_revision_number":4},{"id":"09dfa165a94e34f8a20a70ec2a51967cb7adecc6","author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"date":"2016-02-24 01:26:46.000000000","message":"Patch Set 4: Code-Review+1\n\n(1 comment)\n\nOverall looks good for me. Just a tiny inline comments. Thanks.","accounts_in_message":[],"_revision_number":4},{"id":"ca516a37f0e5fac5514fe9ea65e5fb5b8228ab95","author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"date":"2016-02-24 11:41:34.000000000","message":"Patch Set 4:\n\n(1 comment)","accounts_in_message":[],"_revision_number":4},{"id":"8301b103ff3b4fcdef4dad05c30a4cc75f92b30c","author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"date":"2016-02-26 00:56:18.000000000","message":"Patch Set 4:\n\nYep, None as default value is better than \u0027???\u0027, IMHO.","accounts_in_message":[],"_revision_number":4},{"id":"bf669547a0f77791639482744eabe3116a8bb00a","author":{"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},"date":"2016-02-26 22:05:04.000000000","message":"Patch Set 4: Code-Review+2","accounts_in_message":[],"_revision_number":4},{"id":"582830097d80710d6a2ab63e134467824708f70e","author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"date":"2016-02-29 21:44:13.000000000","message":"Uploaded patch set 5.","accounts_in_message":[],"_revision_number":5},{"id":"db467f43c6cbc3c4aafb831734023be32fcd4a5a","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-02-29 23:19:49.000000000","message":"Patch Set 5: Verified+1\n\nBuild succeeded (check pipeline).\n\n- gate-python-zaqarclient-python34 http://logs.openstack.org/14/282114/5/check/gate-python-zaqarclient-python34/c7e84a8/ : SUCCESS in 3m 00s\n- gate-python-zaqarclient-pypy http://logs.openstack.org/14/282114/5/check/gate-python-zaqarclient-pypy/9633f68/ : FAILURE in 5m 51s (non-voting)\n- check-osc-plugins http://logs.openstack.org/14/282114/5/check/check-osc-plugins/a2c4893/ : SUCCESS in 1m 15s (non-voting)\n- gate-python-zaqarclient-pep8 http://logs.openstack.org/14/282114/5/check/gate-python-zaqarclient-pep8/35dad9e/ : SUCCESS in 57s\n- gate-python-zaqarclient-python27 http://logs.openstack.org/14/282114/5/check/gate-python-zaqarclient-python27/11d4ff7/ : SUCCESS in 47s","accounts_in_message":[],"_revision_number":5},{"id":"d6f755c033072c91122415e0e969fedae8002fed","author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"date":"2016-03-01 22:16:06.000000000","message":"Patch Set 5: Code-Review+2 Workflow+1\n\nNijia approve based on Ryan\u0027s +2.","accounts_in_message":[],"_revision_number":5},{"id":"cc8d1fd679bd3d90b7bc568c533f2d044b2cd16a","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-03-01 22:16:13.000000000","message":"Patch Set 5: -Verified\n\nStarting gate jobs.\nhttp://status.openstack.org/zuul/","accounts_in_message":[],"_revision_number":5},{"id":"314a46944d573595c7f5df8e1644851b0c147bef","date":"2016-03-01 22:40:12.000000000","message":"Change has been successfully merged into the git repository by Jenkins","accounts_in_message":[],"_revision_number":5},{"id":"d2b974f660b5c7611ee3cd12b3001deadd17abfa","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-03-01 22:40:12.000000000","message":"Patch Set 5: Verified+2\n\nBuild succeeded (gate pipeline).\n\n- gate-python-zaqarclient-python34 http://logs.openstack.org/14/282114/5/gate/gate-python-zaqarclient-python34/fb70390/ : SUCCESS in 6m 55s\n- gate-python-zaqarclient-pep8 http://logs.openstack.org/14/282114/5/gate/gate-python-zaqarclient-pep8/bf973d2/ : SUCCESS in 53s\n- gate-python-zaqarclient-python27 http://logs.openstack.org/14/282114/5/gate/gate-python-zaqarclient-python27/ff13a25/ : SUCCESS in 50s\n- gate-zaqarclient-dsvm-functional http://logs.openstack.org/14/282114/5/gate/gate-zaqarclient-dsvm-functional/b863365/ : SUCCESS in 19m 44s","accounts_in_message":[],"_revision_number":5}],"current_revision_number":5,"current_revision":"87f0fb56b3977cc08693902a660420bdafcb5114","revisions":{"17a721235218babb3fab570b56e78d1bcc2fceca":{"kind":"REWORK","_number":1,"created":"2016-02-19 00:27:22.000000000","uploader":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"ref":"refs/changes/14/282114/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-zaqarclient","ref":"refs/changes/14/282114/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/1"}}},"commit":{"parents":[{"commit":"b47a4a4ceef4c5f2ed3d6eb0cbe6548cb1ab62a9","subject":"Do not catch ConflictError on subscription create","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/b47a4a4ceef4c5f2ed3d6eb0cbe6548cb1ab62a9"}]}],"author":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-16 20:51:10.000000000","tz":180},"committer":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-19 00:23:44.000000000","tz":180},"subject":"Make TransportErrors more descriptive","message":"Make TransportErrors more descriptive\n\nProblems:\n\n1. In some cases no information is provided for the CLI user when\nthese exceptions are raised:\nhttps://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/\ntransport/http.py#L30.\nFor example, try \"openstack pool show unexisting_pool\". You will see\njust blank line. It is because the server returns no message in the 404\nresponse body. And the user sees the blank line.\n\n2. errors.ConflictError for 409 error response code is raised only in\nthe code that is handling subscriptions.\nBut the recent patch (https://review.openstack.org/274537) made Zaqar\nproduce 409 error responses also on operations with Pools. Now it\u0027s\nbetter to move errors.ConflictError to the list of the common error\nresponses, so it can be risen in http.py:\nhttps://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/\ntransport/http.py#L30\n\n3. Most of the error responses from Zaqar have bodies in\ntitle-description format. TransportErrors can only show descriptions\nfrom these responses. It\u0027s better to include also titles in the\nclient\u0027s exception messages.\n\n4. Some of the error responses from Zaqar are not in title-description\nformat, but still have some info in their bodies. It\u0027s better to include\nthis info to the client\u0027s exception message.\n\nSolution:\n\nThis patch makes all exceptions in zaqarclient/transport/errors.py show\nat least error response code. The patch TransportErrors properly gather\nthe info from Zaqar\u0027s error response bodies and show it. The patch moves\nraise of errors.ConflictError to zaqarclient/transport/http.py.\n\nPartial-Bug: 1542804\n\nChange-Id: Ie2cc3081a5dd7c4f21c29bdf78a9bad76b515121\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/17a721235218babb3fab570b56e78d1bcc2fceca"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/17a721235218babb3fab570b56e78d1bcc2fceca"}]},"branch":"refs/heads/master"},"eb5b5ae66eda92584700108f2b25483b2ae3b527":{"kind":"NO_CHANGE","_number":2,"created":"2016-02-19 00:29:32.000000000","uploader":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"ref":"refs/changes/14/282114/2","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-zaqarclient","ref":"refs/changes/14/282114/2","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/2"}}},"commit":{"parents":[{"commit":"8eaf8139842227c106a978b9644630acafe3b6ab","subject":"Do not catch ConflictError on subscription create","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/8eaf8139842227c106a978b9644630acafe3b6ab"}]}],"author":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-16 20:51:10.000000000","tz":180},"committer":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-19 00:29:14.000000000","tz":180},"subject":"Make TransportErrors more descriptive","message":"Make TransportErrors more descriptive\n\nProblems:\n\n1. In some cases no information is provided for the CLI user when\nthese exceptions are raised:\nhttps://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/\ntransport/http.py#L30.\nFor example, try \"openstack pool show unexisting_pool\". You will see\njust blank line. It is because the server returns no message in the 404\nresponse body. And the user sees the blank line.\n\n2. errors.ConflictError for 409 error response code is raised only in\nthe code that is handling subscriptions.\nBut the recent patch (https://review.openstack.org/274537) made Zaqar\nproduce 409 error responses also on operations with Pools. Now it\u0027s\nbetter to move errors.ConflictError to the list of the common error\nresponses, so it can be risen in http.py:\nhttps://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/\ntransport/http.py#L30\n\n3. Most of the error responses from Zaqar have bodies in\ntitle-description format. TransportErrors can only show descriptions\nfrom these responses. It\u0027s better to include also titles in the\nclient\u0027s exception messages.\n\n4. Some of the error responses from Zaqar are not in title-description\nformat, but still have some info in their bodies. It\u0027s better to include\nthis info to the client\u0027s exception message.\n\nSolution:\n\nThis patch makes all exceptions in zaqarclient/transport/errors.py show\nat least error response code. The patch TransportErrors properly gather\nthe info from Zaqar\u0027s error response bodies and show it. The patch moves\nraise of errors.ConflictError to zaqarclient/transport/http.py.\n\nPartial-Bug: 1542804\n\nChange-Id: Ie2cc3081a5dd7c4f21c29bdf78a9bad76b515121\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/eb5b5ae66eda92584700108f2b25483b2ae3b527"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/eb5b5ae66eda92584700108f2b25483b2ae3b527"}]},"branch":"refs/heads/master"},"5da94a1e8f1b5fd0532824f88259908b589599ff":{"kind":"REWORK","_number":3,"created":"2016-02-19 10:58:47.000000000","uploader":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"ref":"refs/changes/14/282114/3","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-zaqarclient","ref":"refs/changes/14/282114/3","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/3 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/3 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/3 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/3"}}},"commit":{"parents":[{"commit":"8eaf8139842227c106a978b9644630acafe3b6ab","subject":"Do not catch ConflictError on subscription create","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/8eaf8139842227c106a978b9644630acafe3b6ab"}]}],"author":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-16 20:51:10.000000000","tz":180},"committer":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-19 10:46:52.000000000","tz":180},"subject":"Make TransportErrors more descriptive","message":"Make TransportErrors more descriptive\n\nProblems:\n\n1. In some cases no information is provided for the CLI user when\nthese exceptions are raised:\nhttps://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/\ntransport/http.py#L30.\nFor example, try \"openstack pool show unexisting_pool\". You will see\njust blank line. It is because the server returns no message in the 404\nresponse body. And the user sees the blank line.\n\n2. errors.ConflictError for 409 error response code is raised only in\nthe code that is handling subscriptions.\nBut the recent patch (https://review.openstack.org/274537) made Zaqar\nproduce 409 error responses also on operations with Pools. Now it\u0027s\nbetter to move errors.ConflictError to the list of the common error\nresponses, so it can be risen in http.py:\nhttps://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/\ntransport/http.py#L30\n\n3. Most of the error responses from Zaqar have bodies in\ntitle-description format. TransportErrors can only show descriptions\nfrom these responses. It\u0027s better to include also titles in the\nclient\u0027s exception messages.\n\n4. Some of the error responses from Zaqar are not in title-description\nformat, but still have some info in their bodies. It\u0027s better to include\nthis info to the client\u0027s exception message.\n\nSolution:\n\nThis patch makes all exceptions in zaqarclient/transport/errors.py show\nat least error response code. The patch TransportErrors properly gather\nthe info from Zaqar\u0027s error response bodies and show it. The patch moves\nraise of errors.ConflictError to zaqarclient/transport/http.py.\n\nPartial-Bug: 1542804\n\nChange-Id: Ie2cc3081a5dd7c4f21c29bdf78a9bad76b515121\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/5da94a1e8f1b5fd0532824f88259908b589599ff"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/5da94a1e8f1b5fd0532824f88259908b589599ff"}]},"branch":"refs/heads/master"},"6478939db95fc72749c0967e96ac243ddbb041ed":{"kind":"REWORK","_number":4,"created":"2016-02-19 12:21:37.000000000","uploader":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"ref":"refs/changes/14/282114/4","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-zaqarclient","ref":"refs/changes/14/282114/4","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/4 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/4 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/4 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/4"}}},"commit":{"parents":[{"commit":"8eaf8139842227c106a978b9644630acafe3b6ab","subject":"Do not catch ConflictError on subscription create","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/8eaf8139842227c106a978b9644630acafe3b6ab"}]}],"author":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-16 20:51:10.000000000","tz":180},"committer":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-19 12:03:33.000000000","tz":180},"subject":"Make TransportErrors more descriptive","message":"Make TransportErrors more descriptive\n\nProblems:\n\n1. In some cases no information is provided for the CLI user when\nthese exceptions are raised:\nhttps://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/\ntransport/http.py#L30.\nFor example, try \"openstack pool show unexisting_pool\". You will see\njust blank line. It is because the server returns no message in the 404\nresponse body. And the user sees the blank line.\n\n2. Most of the error responses from Zaqar have bodies in\ntitle-description format. TransportErrors can only show descriptions\nfrom these responses. It\u0027s better to include also titles in the\nclient\u0027s exception messages.\n\n3. Some of the error responses from Zaqar are not in title-description\nformat, but still have some info in their bodies. It\u0027s better to include\nthis info to the client\u0027s exception message.\n\nSolution:\n\nThis patch makes all exceptions in zaqarclient/transport/errors.py show\nat least error response code. The patch TransportErrors properly gather\nthe info from Zaqar\u0027s error response bodies and show it.\n\nPartial-Bug: 1542804\n\nChange-Id: Ie2cc3081a5dd7c4f21c29bdf78a9bad76b515121\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/6478939db95fc72749c0967e96ac243ddbb041ed"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/6478939db95fc72749c0967e96ac243ddbb041ed"}]},"branch":"refs/heads/master"},"87f0fb56b3977cc08693902a660420bdafcb5114":{"kind":"REWORK","_number":5,"created":"2016-02-29 21:44:13.000000000","uploader":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"ref":"refs/changes/14/282114/5","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-zaqarclient","ref":"refs/changes/14/282114/5","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/5 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/5 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/5 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-zaqarclient refs/changes/14/282114/5"}}},"commit":{"parents":[{"commit":"8eaf8139842227c106a978b9644630acafe3b6ab","subject":"Do not catch ConflictError on subscription create","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/8eaf8139842227c106a978b9644630acafe3b6ab"}]}],"author":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-16 20:51:10.000000000","tz":180},"committer":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-29 21:43:53.000000000","tz":180},"subject":"Make TransportErrors more descriptive","message":"Make TransportErrors more descriptive\n\nProblems:\n\n1. In some cases no information is provided for the CLI user when\nthese exceptions are raised:\nhttps://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/\ntransport/http.py#L30.\nFor example, try \"openstack pool show unexisting_pool\". You will see\njust blank line. It is because the server returns no message in the 404\nresponse body. And the user sees the blank line.\n\n2. Most of the error responses from Zaqar have bodies in\ntitle-description format. TransportErrors can only show descriptions\nfrom these responses. It\u0027s better to include also titles in the\nclient\u0027s exception messages.\n\n3. Some of the error responses from Zaqar are not in title-description\nformat, but still have some info in their bodies. It\u0027s better to include\nthis info to the client\u0027s exception message.\n\nSolution:\n\nThis patch makes all exceptions in zaqarclient/transport/errors.py show\nat least error response code. The patch TransportErrors properly gather\nthe info from Zaqar\u0027s error response bodies and show it.\n\nPartial-Bug: 1542804\n\nChange-Id: Ie2cc3081a5dd7c4f21c29bdf78a9bad76b515121\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/87f0fb56b3977cc08693902a660420bdafcb5114"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/87f0fb56b3977cc08693902a660420bdafcb5114"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
