)]}'
{"id":"openstack%2Fpython-zaqarclient~277195","triplet_id":"openstack%2Fpython-zaqarclient~master~I17c0e32a3dabec8303b3055a0d97db857d947b34","project":"openstack/python-zaqarclient","branch":"master","topic":"bug/1542780","hashtags":[],"change_id":"I17c0e32a3dabec8303b3055a0d97db857d947b34","subject":"Do not catch ConflictError on subscription create","status":"MERGED","created":"2016-02-07 19:55:58.000000000","updated":"2016-02-24 01:40:08.000000000","submitted":"2016-02-24 01:40:08.000000000","submitter":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"total_comment_count":1,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"4209bc794eb214ec38624ae183bffd2e5b734f06","_number":277195,"virtual_id_number":277195,"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-02-24 01:40:08.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":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},{"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":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},"all":[{"value":2,"date":"2016-02-19 00:29:32.000000000","_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-02-24 01:22:58.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":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},{"value":1,"date":"2016-02-22 03:03:58.000000000","permitted_voting_range":{"min":1,"max":1},"_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-02-24 01:22:58.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":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},{"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":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},{"_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-08 15:53:57.000000000","updated_by":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"reviewer":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"state":"REVIEWER"},{"updated":"2016-02-15 20:56:06.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-02-22 03:03:58.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-24 01:22:58.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-02-24 01:40:08.000000000","updated_by":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"reviewer":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"state":"REVIEWER"}],"messages":[{"id":"40ea6173a0345710fb545c50019b1e1a9b58cef2","author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"date":"2016-02-07 19:55:58.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"53778458a65d1cb6c98e1cf082621c84439bcdd7","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-02-07 20:02:05.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\n\n- gate-python-zaqarclient-python34 http://logs.openstack.org/95/277195/1/check/gate-python-zaqarclient-python34/636e736/ : SUCCESS in 2m 45s\n- gate-python-zaqarclient-pypy http://logs.openstack.org/95/277195/1/check/gate-python-zaqarclient-pypy/f30ffd5/ : FAILURE in 5m 59s (non-voting)\n- check-osc-plugins http://logs.openstack.org/95/277195/1/check/check-osc-plugins/dcb9957/ : SUCCESS in 1m 13s (non-voting)\n- gate-python-zaqarclient-pep8 http://logs.openstack.org/95/277195/1/check/gate-python-zaqarclient-pep8/1249025/ : SUCCESS in 50s\n- gate-python-zaqarclient-python27 http://logs.openstack.org/95/277195/1/check/gate-python-zaqarclient-python27/4d0d4d3/ : SUCCESS in 57s","accounts_in_message":[],"_revision_number":1},{"id":"37c43197247dc0cca5b83671a8a0c44b9cd340d4","author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"date":"2016-02-07 20:05:25.000000000","message":"Uploaded patch set 2.","accounts_in_message":[],"_revision_number":2},{"id":"51017916bf00d124ea4b04b9741e0cf06c305457","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-02-07 20:11:17.000000000","message":"Patch Set 2: Verified+1\n\nBuild succeeded (check pipeline).\n\n- gate-python-zaqarclient-python34 http://logs.openstack.org/95/277195/2/check/gate-python-zaqarclient-python34/6eab4b4/ : SUCCESS in 2m 52s\n- gate-python-zaqarclient-pypy http://logs.openstack.org/95/277195/2/check/gate-python-zaqarclient-pypy/0d4f5b2/ : FAILURE in 5m 32s (non-voting)\n- check-osc-plugins http://logs.openstack.org/95/277195/2/check/check-osc-plugins/568f2e2/ : SUCCESS in 1m 17s (non-voting)\n- gate-python-zaqarclient-pep8 http://logs.openstack.org/95/277195/2/check/gate-python-zaqarclient-pep8/84a4e20/ : SUCCESS in 46s\n- gate-python-zaqarclient-python27 http://logs.openstack.org/95/277195/2/check/gate-python-zaqarclient-python27/be86d12/ : SUCCESS in 1m 01s","accounts_in_message":[],"_revision_number":2},{"id":"f7c97ede3e0d3ffcca1ed72eaa9522deae8fd62f","author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"date":"2016-02-08 15:53:57.000000000","message":"Patch Set 2: Code-Review+1","accounts_in_message":[],"_revision_number":2},{"id":"249cb4dd91edf880b109ee266897e6112049385b","author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"date":"2016-02-10 02:53:20.000000000","message":"Patch Set 2:\n\n(1 comment)","accounts_in_message":[],"_revision_number":2},{"id":"740928e9b39014a21d7df2e9e6a8f6da8382f3bf","author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"date":"2016-02-10 02:59:23.000000000","message":"Patch Set 3: Published edit on patch set 2","accounts_in_message":[],"_revision_number":3},{"id":"6c5f8b469e73205f1b7e531f35427438f86a04c0","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-02-10 03:12:41.000000000","message":"Patch Set 3: Verified+1\n\nBuild succeeded (check pipeline).\n\n- gate-python-zaqarclient-python34 http://logs.openstack.org/95/277195/3/check/gate-python-zaqarclient-python34/e4b82d0/ : SUCCESS in 2m 26s\n- gate-python-zaqarclient-pypy http://logs.openstack.org/95/277195/3/check/gate-python-zaqarclient-pypy/ce6b998/ : FAILURE in 5m 14s (non-voting)\n- check-osc-plugins http://logs.openstack.org/95/277195/3/check/check-osc-plugins/f53fb49/ : SUCCESS in 47s (non-voting)\n- gate-python-zaqarclient-pep8 http://logs.openstack.org/95/277195/3/check/gate-python-zaqarclient-pep8/553d99b/ : SUCCESS in 28s\n- gate-python-zaqarclient-python27 http://logs.openstack.org/95/277195/3/check/gate-python-zaqarclient-python27/7239a4c/ : SUCCESS in 28s","accounts_in_message":[],"_revision_number":3},{"id":"35517d57005d603b883a09bae5db9f90a6cff7e4","author":{"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},"date":"2016-02-15 20:56:06.000000000","message":"Patch Set 3: Code-Review+2\n\nLooks good to me - raising the exception is definitely preferable here.","accounts_in_message":[],"_revision_number":3},{"id":"0a19efddb9c59d72c74306b0ce2e934ba5ee3629","author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"date":"2016-02-16 21:28:05.000000000","message":"Patch Set 3: Code-Review-1\n\nWith this patch, does that mean when user create a subscription with duplicated subscriber, user will get an exception instead of a normal response? If so, we also need a change in cli. Please remind me if I missed anything, thanks.","accounts_in_message":[],"_revision_number":3},{"id":"db4553b9aaf030c2e4e384f5a5464f42cccbe2d2","author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"date":"2016-02-17 07:04:15.000000000","message":"Patch Set 3:\n\n\u003e With this patch, does that mean when user create a subscription\n \u003e with duplicated subscriber, user will get an exception instead of a\n \u003e normal response?\n\nYes, the user will get an exception and I think it\u0027s the most normal response from python-zaqarclient. Look at all these exceptions:\nhttps://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/transport/http.py#L30.\n\nNot only Zaqar raises exceptions, keystoneclient and requests libraries also. And all of these exceptions are uncatched, so the user can catch them and react. So I think it makes sense to allow the user to catch also exception when the user tries to create duplicated subscription.\n\n \u003e If so, we also need a change in cli. Please remind\n \u003e me if I missed anything, thanks.\n\nThat\u0027s right, our CLI often doesn\u0027t show what the exception happened which is bad. And it needs to be fixed. That\u0027s why I opened this bug report: https://bugs.launchpad.net/python-zaqarclient/+bug/1542804\nSo it will be fixed in the separate patch.","accounts_in_message":[],"_revision_number":3},{"id":"84eae7a5317e8ddf149bfc64d1b51c991f409913","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 4: Commit message was updated.","accounts_in_message":[],"_revision_number":4},{"id":"42b968125f7b2ed836bc4fb6641f737a9dc0eb80","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 5: Commit message was updated.","accounts_in_message":[],"_revision_number":5},{"id":"634ec1871fb9530a1e94174d6868f853257884a5","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-02-19 02:33:56.000000000","message":"Patch Set 5:\n\nBuild succeeded (check pipeline).\n\n- gate-python-zaqarclient-python34 http://logs.openstack.org/95/277195/5/check/gate-python-zaqarclient-python34/c793522/ : SUCCESS in 2m 52s\n- gate-python-zaqarclient-pypy http://logs.openstack.org/95/277195/5/check/gate-python-zaqarclient-pypy/ca2420a/ : FAILURE in 6m 32s (non-voting)\n- check-osc-plugins http://logs.openstack.org/95/277195/5/check/check-osc-plugins/16fa810/ : SUCCESS in 1m 13s (non-voting)\n- gate-python-zaqarclient-pep8 http://logs.openstack.org/95/277195/5/check/gate-python-zaqarclient-pep8/b069feb/ : SUCCESS in 46s\n- gate-python-zaqarclient-python27 http://logs.openstack.org/95/277195/5/check/gate-python-zaqarclient-python27/43eb6e3/ : SUCCESS in 1m 03s","accounts_in_message":[],"_revision_number":5},{"id":"9f803bad5465534725f8c08692aaa6358f95a78d","author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"date":"2016-02-19 10:55:39.000000000","message":"Topic changed from bug/1542804 to bug/1542780","accounts_in_message":[],"_revision_number":5},{"id":"ac74ccc3b68438f1c9c9dd27f52a3466a6a21203","author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"date":"2016-02-22 03:03:58.000000000","message":"Patch Set 5: Code-Review+1\n\nI think this patch is ok. This patch aim to let the subscription create behavior keep the same with others. It\u0027s better to upload a new patch to solve the problem which feilong said. And Eva did it here:\nhttps://review.openstack.org/#/c/282114/","accounts_in_message":[],"_revision_number":5},{"id":"78df90f73f0e6445d9bb2a4b906a4a9319b80b45","author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"date":"2016-02-24 01:22:58.000000000","message":"Patch Set 5: Code-Review+2 Workflow+1\n\nThanks for the explanation. All good now.","accounts_in_message":[],"_revision_number":5},{"id":"70f58db44f9b78b6821d2f7d101bcbea1eb7e36b","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-02-24 01:23:04.000000000","message":"Patch Set 5: -Verified\n\nStarting gate jobs.\nhttp://status.openstack.org/zuul/","accounts_in_message":[],"_revision_number":5},{"id":"a38ad0f3dfa6fc05af220cdd1f45b2660b1047ad","date":"2016-02-24 01:40:08.000000000","message":"Change has been successfully merged into the git repository by Jenkins","accounts_in_message":[],"_revision_number":5},{"id":"4209bc794eb214ec38624ae183bffd2e5b734f06","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2016-02-24 01:40:08.000000000","message":"Patch Set 5: Verified+2\n\nBuild succeeded (gate pipeline).\n\n- gate-python-zaqarclient-python34 http://logs.openstack.org/95/277195/5/gate/gate-python-zaqarclient-python34/edfe812/ : SUCCESS in 3m 01s\n- gate-python-zaqarclient-pep8 http://logs.openstack.org/95/277195/5/gate/gate-python-zaqarclient-pep8/e8f12d1/ : SUCCESS in 52s\n- gate-python-zaqarclient-python27 http://logs.openstack.org/95/277195/5/gate/gate-python-zaqarclient-python27/3f6ad75/ : SUCCESS in 1m 04s\n- gate-zaqarclient-dsvm-functional http://logs.openstack.org/95/277195/5/gate/gate-zaqarclient-dsvm-functional/1972049/ : SUCCESS in 16m 46s","accounts_in_message":[],"_revision_number":5}],"current_revision_number":5,"current_revision":"8eaf8139842227c106a978b9644630acafe3b6ab","revisions":{"ace8e7b22e6f83fe72264c5a1457c55db4280022":{"kind":"REWORK","_number":1,"created":"2016-02-07 19:55:58.000000000","uploader":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"ref":"refs/changes/95/277195/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-zaqarclient","ref":"refs/changes/95/277195/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/1"}}},"commit":{"parents":[{"commit":"ae5498a8ca511e833510fb184cd4adeedc947a23","subject":"Support claims for v2","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/ae5498a8ca511e833510fb184cd4adeedc947a23"}]}],"author":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-07 07:02:12.000000000","tz":180},"committer":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-07 19:55:34.000000000","tz":180},"subject":"Do not catch ConflictError on subscription create","message":"Do not catch ConflictError on subscription create\n\nCurrently \u0027Subscription\u0027 class catches ConflictError inside and prints\ntext \u0027The subscriber has been existed already.\u0027.\n\nThis is not good for two reasons:\n1. The library user(program) wants to handle this exception by himself\nusing convenient try/except mechanism along with many other exceptions\nthat can happen during .\n2. The library user might not want some text to be printed in this\nsituation by python-zaqarclient. For now this is the only situation when\npython-zaqarclient prints something when it is used as library.\n\nThis patch makes \"Subscription\" class not to handle ConflictError\nexception by itself.\n\nIn the future it would be good to list all exceptions that can be raised\nby the \"Client\" class\u0027s methods in their docstrings. See\n\"zaqarclient/queues/v1/client.py\" and \"zaqarclient/queues/v2/client.py\".\n\nAlso it would be good if \"Pool\" and \"Flavor\" classes would throw\nConflictError exception too.\n\nCloses-Bug: 1542780\nChange-Id: I17c0e32a3dabec8303b3055a0d97db857d947b34\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/ace8e7b22e6f83fe72264c5a1457c55db4280022"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/ace8e7b22e6f83fe72264c5a1457c55db4280022"}]},"branch":"refs/heads/master"},"150f7010e7e272ea192b11bd9ac64b6c0c08168f":{"kind":"REWORK","_number":2,"created":"2016-02-07 20:05:25.000000000","uploader":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"ref":"refs/changes/95/277195/2","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-zaqarclient","ref":"refs/changes/95/277195/2","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/2"}}},"commit":{"parents":[{"commit":"ae5498a8ca511e833510fb184cd4adeedc947a23","subject":"Support claims for v2","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/ae5498a8ca511e833510fb184cd4adeedc947a23"}]}],"author":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-07 07:02:12.000000000","tz":180},"committer":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-07 20:04:48.000000000","tz":180},"subject":"Do not catch ConflictError on subscription create","message":"Do not catch ConflictError on subscription create\n\nCurrently \u0027Subscription\u0027 class catches ConflictError inside and prints\ntext \u0027The subscriber has been existed already.\u0027.\n\nThis is not good for two reasons:\n1. The library user(program) wants to handle this exception by himself\nusing convenient try/except mechanism along with many other exceptions\nthat can happen during .\n2. The library user might not want some text to be printed in this\nsituation by python-zaqarclient. For now this is the only situation when\npython-zaqarclient prints something when it is used as library.\n\nThis patch makes \"Subscription\" class not to handle ConflictError\nexception by itself. And creates functional and unit tests to assert\nthat this behavior is raised, when Zaqar returns 409 response code on\nsubscription creation.\n\nIn the future it would be good to list all exceptions that can be raised\nby the \"Client\" class\u0027s methods in their docstrings. See\n\"zaqarclient/queues/v1/client.py\" and \"zaqarclient/queues/v2/client.py\".\n\nAlso it would be good if \"Pool\" and \"Flavor\" classes would throw\nConflictError exception too.\n\nCloses-Bug: 1542780\nChange-Id: I17c0e32a3dabec8303b3055a0d97db857d947b34\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/150f7010e7e272ea192b11bd9ac64b6c0c08168f"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/150f7010e7e272ea192b11bd9ac64b6c0c08168f"}]},"branch":"refs/heads/master"},"f42b59ea59e292d4a8c91f57fa5c53d5ca8fce1b":{"kind":"NO_CODE_CHANGE","_number":3,"created":"2016-02-10 02:59:23.000000000","uploader":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"ref":"refs/changes/95/277195/3","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-zaqarclient","ref":"refs/changes/95/277195/3","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/3 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/3 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/3 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/3"}}},"commit":{"parents":[{"commit":"ae5498a8ca511e833510fb184cd4adeedc947a23","subject":"Support claims for v2","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/ae5498a8ca511e833510fb184cd4adeedc947a23"}]}],"author":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-07 07:02:12.000000000","tz":180},"committer":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-10 02:59:13.000000000","tz":0},"subject":"Do not catch ConflictError on subscription create","message":"Do not catch ConflictError on subscription create\n\nCurrently \u0027Subscription\u0027 class catches ConflictError inside and prints\ntext \u0027The subscriber has been existed already.\u0027.\n\nThis is not good for two reasons:\n1. The library user(program) wants to handle this exception by himself\nusing convenient try/except mechanism along with many other exceptions\nthat can happen during subscription creation.\n2. The library user might not want some text to be printed in this\nsituation by python-zaqarclient. For now this is the only situation when\npython-zaqarclient prints something when it is used as library.\n\nThis patch makes \"Subscription\" class not to handle ConflictError\nexception by itself. And creates functional and unit tests to assert\nthat this behavior is raised, when Zaqar returns 409 response code on\nsubscription creation.\n\nIn the future it would be good to list all exceptions that can be raised\nby the \"Client\" class\u0027s methods in their docstrings. See\n\"zaqarclient/queues/v1/client.py\" and \"zaqarclient/queues/v2/client.py\".\n\nAlso it would be good if \"Pool\" and \"Flavor\" classes would throw\nConflictError exception too.\n\nCloses-Bug: 1542780\nChange-Id: I17c0e32a3dabec8303b3055a0d97db857d947b34\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/f42b59ea59e292d4a8c91f57fa5c53d5ca8fce1b"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/f42b59ea59e292d4a8c91f57fa5c53d5ca8fce1b"}]},"branch":"refs/heads/master"},"b47a4a4ceef4c5f2ed3d6eb0cbe6548cb1ab62a9":{"kind":"NO_CODE_CHANGE","_number":4,"created":"2016-02-19 00:27:22.000000000","uploader":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"ref":"refs/changes/95/277195/4","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-zaqarclient","ref":"refs/changes/95/277195/4","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/4 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/4 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/4 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/4"}}},"commit":{"parents":[{"commit":"ae5498a8ca511e833510fb184cd4adeedc947a23","subject":"Support claims for v2","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/ae5498a8ca511e833510fb184cd4adeedc947a23"}]}],"author":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-07 07:02:12.000000000","tz":180},"committer":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-08 19:02:11.000000000","tz":180},"subject":"Do not catch ConflictError on subscription create","message":"Do not catch ConflictError on subscription create\n\nCurrently \u0027Subscription\u0027 class catches ConflictError inside and prints\ntext \u0027The subscriber has been existed already.\u0027.\n\nThis is not good for two reasons:\n1. The library user(program) wants to handle this exception by himself\nusing convenient try/except mechanism along with many other exceptions\nthat can happen during .\n2. The library user might not want some text to be printed in this\nsituation by python-zaqarclient. For now this is the only situation when\npython-zaqarclient prints something when it is used as library.\n\nThis patch makes \"Subscription\" class not to handle ConflictError\nexception by itself. And creates functional and unit tests to assert\nthat this behavior is raised, when Zaqar returns 409 response code on\nsubscription creation.\n\nIn the future it would be good to list all exceptions that can be raised\nby the \"Client\" class\u0027s methods in their docstrings. See\n\"zaqarclient/queues/v1/client.py\" and \"zaqarclient/queues/v2/client.py\".\n\nAlso it would be good if \"Pool\" and \"Flavor\" classes would throw\nConflictError exception too.\n\nCloses-Bug: 1542780\nChange-Id: I17c0e32a3dabec8303b3055a0d97db857d947b34\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/b47a4a4ceef4c5f2ed3d6eb0cbe6548cb1ab62a9"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/b47a4a4ceef4c5f2ed3d6eb0cbe6548cb1ab62a9"}]},"branch":"refs/heads/master"},"8eaf8139842227c106a978b9644630acafe3b6ab":{"kind":"NO_CODE_CHANGE","_number":5,"created":"2016-02-19 00:29:32.000000000","uploader":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"ref":"refs/changes/95/277195/5","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-zaqarclient","ref":"refs/changes/95/277195/5","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/5 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/5 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/5 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-zaqarclient refs/changes/95/277195/5"}}},"commit":{"parents":[{"commit":"ae5498a8ca511e833510fb184cd4adeedc947a23","subject":"Support claims for v2","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/ae5498a8ca511e833510fb184cd4adeedc947a23"}]}],"author":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-07 07:02:12.000000000","tz":180},"committer":{"name":"Eva Balycheva","email":"ubershy@gmail.com","date":"2016-02-19 00:28:34.000000000","tz":180},"subject":"Do not catch ConflictError on subscription create","message":"Do not catch ConflictError on subscription create\n\nCurrently \u0027Subscription\u0027 class catches ConflictError inside and prints\ntext \u0027The subscriber has been existed already.\u0027.\n\nThis is not good for two reasons:\n1. The library user(program) wants to handle this exception by himself\nusing convenient try/except mechanism along with many other exceptions\nthat can happen during subscription creation.\n2. The library user might not want some text to be printed in this\nsituation by python-zaqarclient. For now this is the only situation when\npython-zaqarclient prints something when it is used as library.\n\nThis patch makes \"Subscription\" class not to handle ConflictError\nexception by itself. And creates functional and unit tests to assert\nthat this behavior is raised, when Zaqar returns 409 response code on\nsubscription creation.\n\nIn the future it would be good to list all exceptions that can be raised\nby the \"Client\" class\u0027s methods in their docstrings. See\n\"zaqarclient/queues/v1/client.py\" and \"zaqarclient/queues/v2/client.py\".\n\nAlso it would be good if \"Pool\" and \"Flavor\" classes would throw\nConflictError exception too.\n\nCloses-Bug: 1542780\nChange-Id: I17c0e32a3dabec8303b3055a0d97db857d947b34\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/8eaf8139842227c106a978b9644630acafe3b6ab"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-zaqarclient/commit/8eaf8139842227c106a978b9644630acafe3b6ab"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
