)]}'
{"id":"openstack%2Fpython-neutronclient~111473","triplet_id":"openstack%2Fpython-neutronclient~master~I69270debe25aac2659977d66d7887154ef0cdddf","project":"openstack/python-neutronclient","branch":"master","topic":"bp/lbaas-api-and-objmodel-improvement","hashtags":[],"change_id":"I69270debe25aac2659977d66d7887154ef0cdddf","subject":"Introduce shadow resources for NeutronCommands","status":"MERGED","created":"2014-08-02 15:34:49.000000000","updated":"2014-08-04 14:41:52.000000000","submitted":"2014-08-04 14:41:52.000000000","submitter":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"123089d7c23a4ed18a40834ca8dd349cc3cc7cd4","_number":111473,"virtual_id_number":111473,"owner":{"_account_id":6530,"name":"craigtracey","email":"craigtracey@gmail.com","username":"craigtracey"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"all":[{"value":2,"date":"2014-08-04 14:41:52.000000000","post_submit":true,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":0,"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},{"value":0,"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"}],"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":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"all":[{"value":0,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":2,"date":"2014-08-04 12:41:19.000000000","_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},{"value":2,"date":"2014-08-03 21:16:50.000000000","_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"}],"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":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"all":[{"value":0,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":1,"date":"2014-08-04 12:41:19.000000000","_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},{"value":0,"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"}],"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":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2014-08-03 21:16:50.000000000","updated_by":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"reviewer":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"state":"REVIEWER"},{"updated":"2014-08-04 12:41:19.000000000","updated_by":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"reviewer":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"state":"REVIEWER"},{"updated":"2014-08-04 14:41:52.000000000","updated_by":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"reviewer":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"state":"REVIEWER"}],"messages":[{"id":"34cce7d4e8ce7d3b9cecd10ab738bb18b9da8c39","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2014-08-02 15:34:49.000000000","message":"Patch Set 1:\n\nStarting check jobs.\nhttp://status.openstack.org/zuul/","accounts_in_message":[],"_revision_number":1},{"id":"ba5044d9273b654d1b213ad2bfe81b271c705981","author":{"_account_id":6530,"name":"craigtracey","email":"craigtracey@gmail.com","username":"craigtracey"},"date":"2014-08-02 15:34:49.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"53a545ad897689190cb519e2e7f1c42f1a258ffc","author":{"_account_id":6530,"name":"craigtracey","email":"craigtracey@gmail.com","username":"craigtracey"},"date":"2014-08-02 15:39:34.000000000","message":"Uploaded patch set 2.","accounts_in_message":[],"_revision_number":2},{"id":"13864a3666c3490702ff2f20241095d43dfb7f4e","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2014-08-02 15:39:36.000000000","message":"Patch Set 2:\n\nStarting check jobs.\nhttp://status.openstack.org/zuul/","accounts_in_message":[],"_revision_number":2},{"id":"7817f0e42e07c473e70bcaa0be263ccda3e0eee9","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2014-08-02 16:38:39.000000000","message":"Patch Set 2: Verified+1\n\nBuild succeeded.\n\n- gate-python-neutronclient-pep8 http://logs.openstack.org/73/111473/2/check/gate-python-neutronclient-pep8/bf1ff56 : SUCCESS in 2m 46s\n- gate-python-neutronclient-docs http://docs-draft.openstack.org/73/111473/2/check/gate-python-neutronclient-docs/c88a9a1/doc/build/html/ : SUCCESS in 2m 52s\n- gate-python-neutronclient-python26 http://logs.openstack.org/73/111473/2/check/gate-python-neutronclient-python26/db529d8 : SUCCESS in 2m 11s\n- gate-python-neutronclient-python27 http://logs.openstack.org/73/111473/2/check/gate-python-neutronclient-python27/8e760a5 : SUCCESS in 2m 49s\n- check-tempest-dsvm-neutron http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-neutron/d213dd1 : SUCCESS in 46m 51s\n- check-tempest-dsvm-neutron-pg http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-neutron-pg/8601955 : SUCCESS in 48m 56s\n- check-tempest-dsvm-neutron-heat-slow http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-neutron-heat-slow/bbc7b33 : SUCCESS in 20m 17s\n- check-tempest-dsvm-neutron-full http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-neutron-full/3170463 : SUCCESS in 40m 14s (non-voting)\n- gate-tempest-dsvm-neutron-large-ops http://logs.openstack.org/73/111473/2/check/gate-tempest-dsvm-neutron-large-ops/a66d7e8 : SUCCESS in 23m 49s\n- check-grenade-dsvm-neutron http://logs.openstack.org/73/111473/2/check/check-grenade-dsvm-neutron/2ae3b32 : SUCCESS in 51m 59s (non-voting)\n- check-tempest-dsvm-full-havana http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-full-havana/c28fdc8 : SUCCESS in 35m 14s (non-voting)\n- check-tempest-dsvm-neutron-havana http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-neutron-havana/3c9e249 : SUCCESS in 32m 41s (non-voting)\n- check-tempest-dsvm-full-icehouse http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-full-icehouse/361f873 : SUCCESS in 47m 48s\n- check-tempest-dsvm-neutron-icehouse http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-neutron-icehouse/6fc3326 : SUCCESS in 55m 04s\n- gate-python-neutronclient-python33 http://logs.openstack.org/73/111473/2/check/gate-python-neutronclient-python33/7e3bc88 : FAILURE in 3m 28s (non-voting)\n- gate-python-neutronclient-pypy http://logs.openstack.org/73/111473/2/check/gate-python-neutronclient-pypy/96d57ee : SUCCESS in 4m 01s","accounts_in_message":[],"_revision_number":2},{"id":"306a282f3dfa79f48b90e596778edf1898247a09","author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"date":"2014-08-03 21:16:50.000000000","message":"Patch Set 2: Code-Review+2","accounts_in_message":[],"_revision_number":2},{"id":"0a3922ff1ca2d7f741f2609dec4c02e2c6a81f26","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2014-08-04 12:41:19.000000000","message":"Patch Set 2: -Verified\n\nStarting check jobs.\nhttp://status.openstack.org/zuul/","accounts_in_message":[],"_revision_number":2},{"id":"019ff1587306300d0eadf9a5a0a401bb70289266","author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"date":"2014-08-04 12:41:19.000000000","message":"Patch Set 2: Code-Review+2 Workflow+1","accounts_in_message":[],"_revision_number":2},{"id":"5ec088d86d17d75fe78a6c4e7e118c4713e932da","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2014-08-04 13:46:55.000000000","message":"Patch Set 2: Verified+1\n\nBuild succeeded.\n\n- gate-python-neutronclient-pep8 http://logs.openstack.org/73/111473/2/check/gate-python-neutronclient-pep8/4e7562a : SUCCESS in 1m 50s\n- gate-python-neutronclient-docs http://docs-draft.openstack.org/73/111473/2/check/gate-python-neutronclient-docs/27ae7f5/doc/build/html/ : SUCCESS in 2m 26s\n- gate-python-neutronclient-python26 http://logs.openstack.org/73/111473/2/check/gate-python-neutronclient-python26/3f68cfe : SUCCESS in 1m 55s\n- gate-python-neutronclient-python27 http://logs.openstack.org/73/111473/2/check/gate-python-neutronclient-python27/525045c : SUCCESS in 2m 16s\n- check-tempest-dsvm-neutron http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-neutron/b1d3074 : SUCCESS in 56m 03s\n- check-tempest-dsvm-neutron-pg http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-neutron-pg/1b60971 : SUCCESS in 1h 00m 36s\n- check-tempest-dsvm-neutron-heat-slow http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-neutron-heat-slow/d7956fa : SUCCESS in 26m 57s\n- check-tempest-dsvm-neutron-full http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-neutron-full/04008a8 : SUCCESS in 1h 01m 56s (non-voting)\n- gate-tempest-dsvm-neutron-large-ops http://logs.openstack.org/73/111473/2/check/gate-tempest-dsvm-neutron-large-ops/d596de9 : SUCCESS in 23m 26s\n- check-grenade-dsvm-neutron http://logs.openstack.org/73/111473/2/check/check-grenade-dsvm-neutron/82e52e4 : SUCCESS in 54m 59s (non-voting)\n- check-tempest-dsvm-full-havana http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-full-havana/6a32e4d : SUCCESS in 37m 51s (non-voting)\n- check-tempest-dsvm-neutron-havana http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-neutron-havana/1b19df8 : FAILURE in 34m 08s (non-voting)\n- check-tempest-dsvm-full-icehouse http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-full-icehouse/34a42bb : SUCCESS in 49m 37s\n- check-tempest-dsvm-neutron-icehouse http://logs.openstack.org/73/111473/2/check/check-tempest-dsvm-neutron-icehouse/b9cfa25 : SUCCESS in 55m 41s\n- gate-python-neutronclient-python33 http://logs.openstack.org/73/111473/2/check/gate-python-neutronclient-python33/0f32e0f : FAILURE in 3m 50s (non-voting)\n- gate-python-neutronclient-pypy http://logs.openstack.org/73/111473/2/check/gate-python-neutronclient-pypy/45f1c0d : SUCCESS in 2m 37s","accounts_in_message":[],"_revision_number":2},{"id":"53c8a51100c31cfb10f59c1513dcaa7e74ddf62e","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2014-08-04 13:46:59.000000000","message":"Patch Set 2: -Verified\n\nStarting gate jobs.\nhttp://status.openstack.org/zuul/","accounts_in_message":[],"_revision_number":2},{"id":"8d2fa7995c4a65d88e260d64128a9e365df7108f","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2014-08-04 14:41:52.000000000","message":"Change has been successfully merged into the git repository.","accounts_in_message":[],"_revision_number":2},{"id":"458f5cb288fcbcd8ad837ff8c807bff50e5afba8","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2014-08-04 14:41:52.000000000","message":"Patch Set 2: Verified+2\n\nBuild succeeded.\n\n- gate-python-neutronclient-docs http://docs-draft.openstack.org/73/111473/2/gate/gate-python-neutronclient-docs/73b3d86/doc/build/html/ : SUCCESS in 3m 06s\n- gate-python-neutronclient-pep8 http://logs.openstack.org/73/111473/2/gate/gate-python-neutronclient-pep8/82cfdbc : SUCCESS in 1m 53s\n- gate-python-neutronclient-python26 http://logs.openstack.org/73/111473/2/gate/gate-python-neutronclient-python26/98f4cc9 : SUCCESS in 3m 47s\n- gate-python-neutronclient-python27 http://logs.openstack.org/73/111473/2/gate/gate-python-neutronclient-python27/a230641 : SUCCESS in 1m 49s\n- gate-tempest-dsvm-neutron http://logs.openstack.org/73/111473/2/gate/gate-tempest-dsvm-neutron/656ddc2 : SUCCESS in 54m 29s\n- gate-tempest-dsvm-neutron-pg http://logs.openstack.org/73/111473/2/gate/gate-tempest-dsvm-neutron-pg/bb156ec : SUCCESS in 48m 23s\n- gate-tempest-dsvm-neutron-heat-slow http://logs.openstack.org/73/111473/2/gate/gate-tempest-dsvm-neutron-heat-slow/4606688 : SUCCESS in 20m 12s\n- gate-tempest-dsvm-neutron-large-ops http://logs.openstack.org/73/111473/2/gate/gate-tempest-dsvm-neutron-large-ops/0af2a45 : SUCCESS in 16m 50s\n- gate-python-neutronclient-pypy http://logs.openstack.org/73/111473/2/gate/gate-python-neutronclient-pypy/a29ef2e : SUCCESS in 2m 22s","accounts_in_message":[],"_revision_number":2}],"current_revision_number":2,"current_revision":"a3d0095964b9b15671a74bcf6f0835903d29be6c","revisions":{"5346039fec8a3230c1847b81a8f08ae4008ddae4":{"kind":"REWORK","_number":1,"created":"2014-08-02 15:34:49.000000000","uploader":{"_account_id":6530,"name":"craigtracey","email":"craigtracey@gmail.com","username":"craigtracey"},"ref":"refs/changes/73/111473/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-neutronclient","ref":"refs/changes/73/111473/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-neutronclient refs/changes/73/111473/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-neutronclient refs/changes/73/111473/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-neutronclient refs/changes/73/111473/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-neutronclient refs/changes/73/111473/1"}}},"commit":{"parents":[{"commit":"abc54a00b01ea305a9c58a379463edf62d0557ca","subject":"Merge \"Python 3: use six.iteritems()\"","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-neutronclient/commit/abc54a00b01ea305a9c58a379463edf62d0557ca"}]}],"author":{"name":"Craig Tracey","email":"craigtracey@gmail.com","date":"2014-08-02 05:09:46.000000000","tz":-240},"committer":{"name":"Craig Tracey","email":"craigtracey@gmail.com","date":"2014-08-02 14:53:18.000000000","tz":-240},"subject":"Introduce shadow resources for NeutronCommands","message":"Introduce shadow resources for NeutronCommands\n\nWith the acceptance of the v2 LBaaS object model we will be required to\nsupport both the original v1 (soon to be deprecated) and v2\nside-by-side. Not surprisingly these two modelsshare a number of object\ntypes (ie. pools, members, etc.) In order to handle this overlap of\nobject names, the API prefixes v1 with /lb whereas v2 is prefixed with\n/lbaas.\n\nThis presents a problem for python-neutronclient in that resource name\nalone (until now) was adequate for the string interpolation that helps\nderive the method name to be called. Now that we have, for instance,\ntwo different \"pool\" objects, we need a way to handle each uniquely.\n\nTherefore, in order to maintain backwards compatibility, and minimize\ncomplexity, this change introduces the concept of a shadow resource.\nThis shadow recource is used to direct the client at the correct paths\nand methods to call internally, get still leverage the same logic that\nhas enabled resources to be manipulated by the de facto resource name.\n\nShadow resources are only necessary when an API is in this particular\ntype of scenario: the deprecation of a previous and overlapping former\nAPI. Otherwise, new and existing API\u0027s can continue to use the same\nlogic as before.\n\nThis change also moves the \u0027resource\u0027 attributes from the Neutron\nsubclasses into NeutronCommand itself  as they were common to all the\nsubcommands already.\n\nChange-Id: I69270debe25aac2659977d66d7887154ef0cdddf\nPartially-implements: blueprint lbaas-api-and-objmodel-improvement\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-neutronclient/commit/5346039fec8a3230c1847b81a8f08ae4008ddae4"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-neutronclient/commit/5346039fec8a3230c1847b81a8f08ae4008ddae4"}]},"branch":"refs/heads/master"},"a3d0095964b9b15671a74bcf6f0835903d29be6c":{"kind":"REWORK","_number":2,"created":"2014-08-02 15:39:34.000000000","uploader":{"_account_id":6530,"name":"craigtracey","email":"craigtracey@gmail.com","username":"craigtracey"},"ref":"refs/changes/73/111473/2","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/python-neutronclient","ref":"refs/changes/73/111473/2","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/python-neutronclient refs/changes/73/111473/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/python-neutronclient refs/changes/73/111473/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/python-neutronclient refs/changes/73/111473/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/python-neutronclient refs/changes/73/111473/2"}}},"commit":{"parents":[{"commit":"abc54a00b01ea305a9c58a379463edf62d0557ca","subject":"Merge \"Python 3: use six.iteritems()\"","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-neutronclient/commit/abc54a00b01ea305a9c58a379463edf62d0557ca"}]}],"author":{"name":"Craig Tracey","email":"craigtracey@gmail.com","date":"2014-08-02 05:09:46.000000000","tz":-240},"committer":{"name":"Craig Tracey","email":"craigtracey@gmail.com","date":"2014-08-02 05:55:28.000000000","tz":-240},"subject":"Introduce shadow resources for NeutronCommands","message":"Introduce shadow resources for NeutronCommands\n\nWith the acceptance of the v2 LBaaS object model we will be required to\nsupport both the original v1 (soon to be deprecated) and v2\nside-by-side. Not surprisingly these two modelsshare a number of object\ntypes (ie. pools, members, etc.) In order to handle this overlap of\nobject names, the API prefixes v1 with /lb whereas v2 is prefixed with\n/lbaas.\n\nThis presents a problem for python-neutronclient in that resource name\nalone (until now) was adequate for the string interpolation that helps\nderive the method name to be called. Now that we have, for instance,\ntwo different \"pool\" objects, we need a way to handle each uniquely.\n\nTherefore, in order to maintain backwards compatibility, and minimize\ncomplexity, this change introduces the concept of a shadow resource.\nThis shadow recource is used to direct the client at the correct paths\nand methods to call internally, get still leverage the same logic that\nhas enabled resources to be manipulated by the de facto resource name.\n\nShadow resources are only necessary when an API is in this particular\ntype of scenario: the deprecation of a previous and overlapping former\nAPI. Otherwise, new and existing API\u0027s can continue to use the same\nlogic as before.\n\nThis change also moves the \u0027resource\u0027 attributes from the Neutron\nsubclasses into NeutronCommand itself  as they were common to all the\nsubcommands already.\n\nChange-Id: I69270debe25aac2659977d66d7887154ef0cdddf\nPartially-implements: blueprint lbaas-api-and-objmodel-improvement\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-neutronclient/commit/a3d0095964b9b15671a74bcf6f0835903d29be6c"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/python-neutronclient/commit/a3d0095964b9b15671a74bcf6f0835903d29be6c"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
