)]}'
{"id":"openstack%2Fpython-glanceclient~258024","triplet_id":"openstack%2Fpython-glanceclient~master~I09cb2f222cac175f25cb5f0a3ddc9b156194d36e","project":"openstack/python-glanceclient","branch":"master","hashtags":[],"change_id":"I09cb2f222cac175f25cb5f0a3ddc9b156194d36e","subject":"Fix image-create in CLI if token expires","status":"ABANDONED","created":"2015-12-15 17:37:55.000000000","updated":"2016-02-18 13:25:44.000000000","total_comment_count":3,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"d2410f11105ac41feb793cfb731d4519bf198d5c","_number":258024,"virtual_id_number":258024,"owner":{"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"},"actions":{},"labels":{"Verified":{"recommended":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"all":[{"value":1,"date":"2015-12-15 21:46:39.000000000","_account_id":3,"name":"Jenkins","username":"jenkins"},{"_account_id":14676,"name":"Kairat Kushaev","email":"kkushaev@mirantis.com","username":"kairat_kushaev"},{"date":"2015-12-16 10:24:33.000000000","_account_id":455,"name":"Stuart McLaren","email":"stuart.mclaren@hpe.com","username":"stuart-mclaren"},{"date":"2015-12-28 12:14:30.000000000","_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","value":1,"default_value":0,"optional":true},"Code-Review":{"disliked":{"_account_id":14676,"name":"Kairat Kushaev","email":"kkushaev@mirantis.com","username":"kairat_kushaev"},"all":[{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":-1,"date":"2015-12-24 16:34:05.000000000","permitted_voting_range":{"min":-1,"max":1},"_account_id":14676,"name":"Kairat Kushaev","email":"kkushaev@mirantis.com","username":"kairat_kushaev"},{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":455,"name":"Stuart McLaren","email":"stuart.mclaren@hpe.com","username":"stuart-mclaren"},{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"}],"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":"","value":-1,"default_value":0,"optional":true},"Workflow":{"all":[{"_account_id":3,"name":"Jenkins","username":"jenkins"},{"_account_id":14676,"name":"Kairat Kushaev","email":"kkushaev@mirantis.com","username":"kairat_kushaev"},{"_account_id":455,"name":"Stuart McLaren","email":"stuart.mclaren@hpe.com","username":"stuart-mclaren"},{"value":0,"permitted_voting_range":{"min":-1,"max":0},"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true},"Review-Priority":{"all":[{"_account_id":3,"name":"Jenkins","username":"jenkins"},{"_account_id":14676,"name":"Kairat Kushaev","email":"kkushaev@mirantis.com","username":"kairat_kushaev"},{"_account_id":455,"name":"Stuart McLaren","email":"stuart.mclaren@hpe.com","username":"stuart-mclaren"},{"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"}],"values":{"-1":"Branch Freeze"," 0":"No Priority","+1":"Important Change","+2":"Top Priority / Holds Gate"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":3,"name":"Jenkins","username":"jenkins"},{"_account_id":455,"name":"Stuart McLaren","email":"stuart.mclaren@hpe.com","username":"stuart-mclaren"},{"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"},{"_account_id":14676,"name":"Kairat Kushaev","email":"kkushaev@mirantis.com","username":"kairat_kushaev"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2015-12-15 21:46:39.000000000","updated_by":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"reviewer":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"state":"REVIEWER"},{"updated":"2015-12-16 10:24:33.000000000","updated_by":{"_account_id":455,"name":"Stuart McLaren","email":"stuart.mclaren@hpe.com","username":"stuart-mclaren"},"reviewer":{"_account_id":455,"name":"Stuart McLaren","email":"stuart.mclaren@hpe.com","username":"stuart-mclaren"},"state":"REVIEWER"},{"updated":"2015-12-24 16:34:05.000000000","updated_by":{"_account_id":14676,"name":"Kairat Kushaev","email":"kkushaev@mirantis.com","username":"kairat_kushaev"},"reviewer":{"_account_id":14676,"name":"Kairat Kushaev","email":"kkushaev@mirantis.com","username":"kairat_kushaev"},"state":"REVIEWER"}],"messages":[{"id":"3f5a31a58582f3308feeb206ec855450994a98c3","author":{"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"},"date":"2015-12-15 17:37:55.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"91dbeb4ba7d1486f9cc2abf52374110eddc37e87","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2015-12-15 21:46:39.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\n\n- gate-python-glanceclient-pep8 http://logs.openstack.org/24/258024/1/check/gate-python-glanceclient-pep8/d38d25b/ : SUCCESS in 52s\n- gate-python-glanceclient-docs http://docs-draft.openstack.org/24/258024/1/check/gate-python-glanceclient-docs/b425103//doc/build/html/ : SUCCESS in 1m 06s\n- gate-python-glanceclient-python27 http://logs.openstack.org/24/258024/1/check/gate-python-glanceclient-python27/9a4313a/ : SUCCESS in 1m 00s\n- gate-python-glanceclient-python34 http://logs.openstack.org/24/258024/1/check/gate-python-glanceclient-python34/5123c38/ : SUCCESS in 1m 24s\n- gate-tempest-dsvm-neutron-src-python-glanceclient http://logs.openstack.org/24/258024/1/check/gate-tempest-dsvm-neutron-src-python-glanceclient/057d24e/ : SUCCESS in 1h 12m 37s\n- gate-glanceclient-dsvm-functional http://logs.openstack.org/24/258024/1/check/gate-glanceclient-dsvm-functional/47c36f6/ : SUCCESS in 28m 06s","accounts_in_message":[],"_revision_number":1},{"id":"236a505a1fc760c8727d91453848db0758d5eea3","author":{"_account_id":455,"name":"Stuart McLaren","email":"stuart.mclaren@hpe.com","username":"stuart-mclaren"},"date":"2015-12-16 10:24:33.000000000","message":"Patch Set 1:\n\n(1 comment)","accounts_in_message":[],"_revision_number":1},{"id":"ffefee2d7026e13c999ecb758c64ec6167131a84","author":{"_account_id":14676,"name":"Kairat Kushaev","email":"kkushaev@mirantis.com","username":"kairat_kushaev"},"date":"2015-12-24 16:34:05.000000000","message":"Patch Set 1: Code-Review-1\n\n(1 comment)","accounts_in_message":[],"_revision_number":1},{"id":"8c1f84eb8a043081661958a6177af648735f7acf","author":{"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"},"date":"2015-12-28 12:14:30.000000000","message":"Patch Set 1:\n\n(1 comment)","accounts_in_message":[],"_revision_number":1},{"id":"d2410f11105ac41feb793cfb731d4519bf198d5c","author":{"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"},"date":"2016-02-18 13:25:44.000000000","message":"Abandoned","accounts_in_message":[],"_revision_number":1}],"current_revision_number":1,"current_revision":"e236bb6008f45484fbb5faceb0a9173633fb1a00","revisions":{"e236bb6008f45484fbb5faceb0a9173633fb1a00":{"kind":"REWORK","_number":1,"created":"2015-12-15 17:37:55.000000000","uploader":{"_account_id":11391,"name":"Mikhail Fedosin","email":"mfedosin@redhat.com","username":"fedosinme"},"ref":"refs/changes/24/258024/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-glanceclient","ref":"refs/changes/24/258024/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-glanceclient refs/changes/24/258024/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-glanceclient refs/changes/24/258024/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-glanceclient refs/changes/24/258024/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-glanceclient refs/changes/24/258024/1"}}},"commit":{"parents":[{"commit":"96f62fe7a04ebe7a2a8450d16e5ea6c60e56ac90","subject":"Updated from global requirements","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-glanceclient/commit/96f62fe7a04ebe7a2a8450d16e5ea6c60e56ac90"}]}],"author":{"name":"Mike Fedosin","email":"mfedosin@mirantis.com","date":"2015-12-15 16:42:13.000000000","tz":180},"committer":{"name":"Mike Fedosin","email":"mfedosin@mirantis.com","date":"2015-12-15 17:37:52.000000000","tz":180},"subject":"Fix image-create in CLI if token expires","message":"Fix image-create in CLI if token expires\n\nCurrent implementation of image-create in CLI\nsupports optional --file parameter and if it\u0027s\nprovided then the creation workflow is the next:\n1. Create an empty instance in queued status.\n2. Upload an image file.\n3. Get created image info.\n\nUnfortunately if token expires during image upload\nthe 3rd step fails with 401 error and user sees\nan error message even if image was successfully\ncreated.\n\nThis commit fixes this by hadling 401 error with\nrecreating a client and sending the \u0027get\u0027 request\nagain.\n\nChange-Id: I09cb2f222cac175f25cb5f0a3ddc9b156194d36e\nCloses-bug: #1519546\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-glanceclient/commit/e236bb6008f45484fbb5faceb0a9173633fb1a00"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-glanceclient/commit/e236bb6008f45484fbb5faceb0a9173633fb1a00"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
