)]}'
{"specs/juno/bigswitch-tenantnames.rst":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"eb22ae365f39c55263bc567207d100fd817a76d5","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"The tenant name is not currently passed to the backend controller. This"},{"line_number":23,"context_line":"makes debugging networks for a specific tenant difficult because the tenant"},{"line_number":24,"context_line":"has to be located by UUID."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_fa7cc122","line":24,"updated":"2014-07-02 04:28:34.000000000","message":"the problem doesn\u0027t seem to be specific to big switch.\nhave you considered to solve it in upper layer?","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"73653f15ea38857662f735f55f4e23c537ded45b","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"The tenant name is not currently passed to the backend controller. This"},{"line_number":23,"context_line":"makes debugging networks for a specific tenant difficult because the tenant"},{"line_number":24,"context_line":"has to be located by UUID."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_64a2734c","line":24,"in_reply_to":"baada198_a4cf367e","updated":"2014-07-04 09:18:23.000000000","message":"I have spent hours trying to convince people to let this simple feature into a vendor-specific plugin and I don\u0027t seem to be making very good progress. I\u0027m not sure this is an acceptable feature to the community.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"982bf9ee1d9600722090f2208676a9bdb2543473","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"The tenant name is not currently passed to the backend controller. This"},{"line_number":23,"context_line":"makes debugging networks for a specific tenant difficult because the tenant"},{"line_number":24,"context_line":"has to be located by UUID."},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_a4cf367e","line":24,"in_reply_to":"baada198_fa7cc122","updated":"2014-07-04 01:01:56.000000000","message":"if we need to have a cache of names, how about implementing it in a way which is usable for other plugins?","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"06e218595a1fa3a086e839bb0c5dc0f2f8e0e3e3","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."}],"source_content_type":"text/x-rst","patch_set":1,"id":"dab895d6_7b355245","line":39,"updated":"2014-06-30 01:12:11.000000000","message":"Another alternative would be caching this information without storing anything in the database. This may be less efficient after restarting the neutron service but it would avoid replicating data in a new table.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"961957f293bd042a185bce24709ca1d0677389ea","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_35cee32e","line":39,"in_reply_to":"baada198_042d37fe","updated":"2014-07-04 10:41:32.000000000","message":"thank you for explanation.  it makes sense.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"982bf9ee1d9600722090f2208676a9bdb2543473","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_4433baaa","line":39,"in_reply_to":"baada198_3c5a9df3","updated":"2014-07-04 01:01:56.000000000","message":"ibm sdnve plugin seems to query keystone.\ni wonder how the situation is different for them.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"a8b7eab3f6b13818a56d92c194783994f782878e","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_042d37fe","line":39,"in_reply_to":"baada198_4433baaa","updated":"2014-07-04 09:11:22.000000000","message":"The default setup by devstack and the deployment guide give the admin role to the neutron service. This deployment style works for querying keystone with the neutron credentials. However, this level of privilege is excessive. \n\nAs long as the neutron user has a role in the service tenant, it will have the necessary permissions to validate tokens in the middleware without being granted the rest of the admin privileges (deleting other tenants, adding/removing roles, etc). Under these constraints, it cannot directly query the tenant list for details like this. \n\nIt\u0027s perhaps worth noting that the process the IBM plugin uses here is not how Neutron gets the tenant name for the context. Neutron is passed the the name in the request with the token as a token. This request is validated against keystone and then the name in the header is passed into the neutron context. This approach does not stop working if neutron isn\u0027t privileged with admin credentials.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"64eada563d952a322721756bc260516e6f00023b","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_3c5a9df3","line":39,"in_reply_to":"baada198_9caba9d5","updated":"2014-07-02 16:08:21.000000000","message":"I mentioned this in a comment to Yamamoto, but the keystone V2 API requires admin permissions to list tenants. Normally neutron is not configured with an admin account because there is no reason for it to be an admin.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"59c24020729efc9f4b75e4c2bf1bf424aee013fb","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."}],"source_content_type":"text/x-rst","patch_set":1,"id":"dab895d6_dbac9e38","line":39,"in_reply_to":"dab895d6_7b355245","updated":"2014-06-30 01:34:48.000000000","message":"If a full topology sync is triggered in a neutron after it had been restarted, all of the tenant names would be wiped out on the backend controller since the plugin would not know them at the time.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"b0b72163fadf682e6852b82ab84abcbfabcf5de4","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_9caba9d5","line":39,"in_reply_to":"dab895d6_dbac9e38","updated":"2014-07-02 16:05:46.000000000","message":"I think that could be resolved by the plugin consulting keystone during a sync operation for every resource that is being synced (e.g., a network). I realize this may not be a cost effective alternative but the benefit comes from avoiding the replication of this info in a DB.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"eb22ae365f39c55263bc567207d100fd817a76d5","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_3a77193c","line":42,"updated":"2014-07-02 04:28:34.000000000","message":"i prefer this alternative as it\u0027s simpler.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"8d73fa1ac93ad56e485a3d875376385071034d9a","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_d586ee12","line":42,"in_reply_to":"baada198_3a77193c","updated":"2014-07-02 05:44:32.000000000","message":"I think it\u0027s actually a really poor solution. It requires custom openstack code on a backend that\u0027s otherwise orchestration agnostic, and additionally it requires version specific code. \n\nAdditionally, it places burden on the end-user to configure the controller with a set of privileged keystone credentials and an endpoint URI. Then there has to be a workflow to troubleshoot the controller\u003c-\u003ekeystone connection that the user has to understand.\n\nI don\u0027t see how this is simpler in any way for the end user.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"5e73ff32019357cf78f656f6551e30818704fc3a","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_a7f2316d","line":42,"in_reply_to":"baada198_c70ac520","updated":"2014-07-02 06:26:01.000000000","message":"I don\u0027t think I would call that simpler. It requires more code (in the backend) and more user configuration than this spec\u0027s approach. \n\nI do understand that it eliminates the possibility of an outdated name, but an outdated name is already an order of magnitude better than no name and just a UUID. Also, the name will only be outdated until the next mutating operation on one of the tenant\u0027s resources.\n\nThe neutron credentials do not have permission to query the list of tenants. That\u0027s an admin-only operation in the keystone v2 API.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"04287e61b7652c7aa5d375e0f0eb3366fd130edc","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_c70ac520","line":42,"in_reply_to":"baada198_d586ee12","updated":"2014-07-02 06:08:10.000000000","message":"it\u0027s simpler because the info is kept in a single authoritative place.\nbut i can understand your argument.\n\nanother alternative is to make big switch plugin ask keystone rather than local db.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"b501748ff8e5476a122e6e37646aa23c77c193d2","unresolved":false,"context_lines":[{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Data model impact"},{"line_number":46,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_755fe2e5","line":43,"updated":"2014-07-02 05:13:10.000000000","message":"Another approach is to retrieve tenant_name from neutron context (which contains tenant_naeme and tenant_id information) if tenant_id of a target resource matches tenant_id of context object. For admin user, it is not true and we still need to fetch tenant_name from keystone.\n\nThis approach works for m. any cases (except admin user) and there is no need to cache/store tenant_name/id mapping in neutron side.\n\nThe above approach does not cover tenant_name change for a tenant, but changing a tenant name is rare. The backend controller can check tenant_name directly by communicating keystone periodically.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"8d73fa1ac93ad56e485a3d875376385071034d9a","unresolved":false,"context_lines":[{"line_number":40,"context_line":"Polling keystone from the controller. This requires tight-coupling between the"},{"line_number":41,"context_line":"controller and a specific version of openstack as well as the configuration"},{"line_number":42,"context_line":"of the keystone credentials/URL on the controller."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Data model impact"},{"line_number":46,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_f53f7223","line":43,"in_reply_to":"baada198_755fe2e5","updated":"2014-07-02 05:44:32.000000000","message":"This approach does extract it from the context. The problem is that this information only lasts the life of the request. If the full topology is being pushed to the controller as the result of a sync (new backend controller, etc), the tenant names will all be missing. \n\nNeutron is the single source of information for OpenStack tenants in our current operational model. There is no polling by the backend controller and I would really prefer to avoid all of the tight coupling that goes along with that (see my reply to Yamamoto above).","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"eb22ae365f39c55263bc567207d100fd817a76d5","unresolved":false,"context_lines":[{"line_number":45,"context_line":"Data model impact"},{"line_number":46,"context_line":"-----------------"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"N/A"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"REST API impact"},{"line_number":51,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_1a9fb551","line":48,"updated":"2014-07-02 04:28:34.000000000","message":"you are adding a big switch specific table, right?","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"8d73fa1ac93ad56e485a3d875376385071034d9a","unresolved":false,"context_lines":[{"line_number":45,"context_line":"Data model impact"},{"line_number":46,"context_line":"-----------------"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"N/A"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"REST API impact"},{"line_number":51,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"baada198_757a82f2","line":48,"in_reply_to":"baada198_1a9fb551","updated":"2014-07-02 05:44:32.000000000","message":"Yes, but it has no impact on the other neutron db objects so I had excluded it since this section is focused on impact. \n\nIf I re-upload the spec, I will mention it with the migration.","commit_id":"bae0311f3e4d58a5112ab90727915a07b403b8b3"}]}
