)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"09c0d49b83387b1110b964cbe7d74ff712dc30dc","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This spec describes the work required to add locality"},{"line_number":10,"context_line":"to replication sets and clusters."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"References: blueprint replication-cluster-locality"},{"line_number":13,"context_line":"Change-Id: I061f086f90899c6287fcdac3c88523d62f4e4b30"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"dab17558_0090a794","line":11,"updated":"2016-05-12 21:14:31.000000000","message":"Since this spec has an impact on the api, we should probably add the APIImpact flag to the commit message.","commit_id":"f0032066fda58a847ca001c3fe504e113d2746e3"}],"doc/source/index.rst":[{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"3c462e8f0626a942df1ce9102917492b681df4d9","unresolved":false,"context_lines":[{"line_number":43,"context_line":"   :maxdepth: 1"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"   specs/newton/*"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":48,"context_line":"Repository Information"},{"line_number":49,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab6814e_b06e09ff","line":46,"updated":"2016-05-19 17:03:47.000000000","message":"is this needed still?","commit_id":"3ea5d823ef85aa6272f530ea31734b1f44269594"}],"specs/newton/replication-cluster-locality.rst":[{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"195edab9473a39ddda31cf8451d5d085ad9f460a","unresolved":false,"context_lines":[{"line_number":88,"context_line":"               instances, extended_properties, locality):"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"* The locality argument will be used to create a server group with the"},{"line_number":91,"context_line":"  corresponding policy."},{"line_number":92,"context_line":"* The server group details will be converted to a Nova \u0027hint.\u0027"},{"line_number":93,"context_line":"* This hint will be passed into the Nova client in the create call in"},{"line_number":94,"context_line":"  taskmanager/models.py."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_c25d3cee","line":91,"updated":"2016-04-15 15:25:43.000000000","message":"I am assuming that locality and policy mean the same thing. Is the term locality used in other project? I would rather have a consistent term being used - I think policies would make more sense.","commit_id":"a5b1d4f5e70018a8e8999a8a98f5cf7061b9c04e"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"9388d4cb4fad99fdbc4b802118cabc41394cfea8","unresolved":false,"context_lines":[{"line_number":88,"context_line":"               instances, extended_properties, locality):"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"* The locality argument will be used to create a server group with the"},{"line_number":91,"context_line":"  corresponding policy."},{"line_number":92,"context_line":"* The server group details will be converted to a Nova \u0027hint.\u0027"},{"line_number":93,"context_line":"* This hint will be passed into the Nova client in the create call in"},{"line_number":94,"context_line":"  taskmanager/models.py."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_1576a3d6","line":91,"in_reply_to":"1a122d0e_c25d3cee","updated":"2016-04-20 06:52:06.000000000","message":"Right now, the locality corresponds to policies in the server group, yes. The only concern I have with that is that the nova team may choose to implement new \u0027policies\u0027 in their server groups that have nothing to do with locality. I\u0027m open to see what others think, though, and make changes if deemed appropriate. (For reference, policy is a generic term that\u0027s used in other OpenStack projects to mean different things. i.e. QoS/RBAC policy in neutron, migration policy in cinder, etc., none of which refer to \u0027locality\u0027)","commit_id":"a5b1d4f5e70018a8e8999a8a98f5cf7061b9c04e"},{"author":{"_account_id":14823,"name":"Pete MacKinnon","email":"pmackinn@redhat.com","username":"pmackinn"},"change_message_id":"b2c9a2160bc33a5274f8017af59639dcfcf585df","unresolved":false,"context_lines":[{"line_number":194,"context_line":"not have locality associated with them, they would not return the flag"},{"line_number":195,"context_line":"regardless).  Note: An alternate name of the flag could be \u0027policy\u0027 instead of"},{"line_number":196,"context_line":"\u0027locality.\u0027"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"Public API Security"},{"line_number":199,"context_line":"-------------------"},{"line_number":200,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_fafeaaac","line":197,"updated":"2016-04-25 15:43:47.000000000","message":"\"policy\" sounds too generic but agree with other reviewers on consistency with Nova terminology.","commit_id":"a5b1d4f5e70018a8e8999a8a98f5cf7061b9c04e"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"c437902e290eb5d0ba99240408657d558e52f0e5","unresolved":false,"context_lines":[{"line_number":194,"context_line":"not have locality associated with them, they would not return the flag"},{"line_number":195,"context_line":"regardless).  Note: An alternate name of the flag could be \u0027policy\u0027 instead of"},{"line_number":196,"context_line":"\u0027locality.\u0027"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"Public API Security"},{"line_number":199,"context_line":"-------------------"},{"line_number":200,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_5bafb7e2","line":197,"in_reply_to":"1a122d0e_fafeaaac","updated":"2016-05-05 13:47:45.000000000","message":"I think nova is considering including more in server_group policy than just \u0027locality\u0027 so I\u0027m going to removed the suggestion from the spec.","commit_id":"a5b1d4f5e70018a8e8999a8a98f5cf7061b9c04e"},{"author":{"_account_id":14823,"name":"Pete MacKinnon","email":"pmackinn@redhat.com","username":"pmackinn"},"change_message_id":"b2c9a2160bc33a5274f8017af59639dcfcf585df","unresolved":false,"context_lines":[{"line_number":227,"context_line":"------------------------"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"The create command will now accept a --locality flag that can be one of two"},{"line_number":230,"context_line":"values: affinity and anti-affinity.  The command would look like:"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":".. code-block:: bash"},{"line_number":233,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_dacace4e","line":230,"updated":"2016-04-25 15:43:47.000000000","message":"Does Nova reflect the no-hint option? i.e., affinity/locality was not specified in the create. If no hint is supplied does Nova default to affinity in the server group (assuming available resources)?","commit_id":"a5b1d4f5e70018a8e8999a8a98f5cf7061b9c04e"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"5dcf53c4840dd7097dd68844a1df59d3d8532167","unresolved":false,"context_lines":[{"line_number":227,"context_line":"------------------------"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"The create command will now accept a --locality flag that can be one of two"},{"line_number":230,"context_line":"values: affinity and anti-affinity.  The command would look like:"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":".. code-block:: bash"},{"line_number":233,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_e8650945","line":230,"in_reply_to":"1a122d0e_dacace4e","updated":"2016-04-27 17:27:14.000000000","message":"If no hint is supplied, nova does what it does now (using its default algorithm for determining where to put an instance). If you don\u0027t specify --locality then we don\u0027t create a server_group at all.","commit_id":"a5b1d4f5e70018a8e8999a8a98f5cf7061b9c04e"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"c437902e290eb5d0ba99240408657d558e52f0e5","unresolved":false,"context_lines":[{"line_number":227,"context_line":"------------------------"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"The create command will now accept a --locality flag that can be one of two"},{"line_number":230,"context_line":"values: affinity and anti-affinity.  The command would look like:"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":".. code-block:: bash"},{"line_number":233,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_fbe7a3e0","line":230,"in_reply_to":"1a122d0e_e8650945","updated":"2016-05-05 13:47:45.000000000","message":"Done","commit_id":"a5b1d4f5e70018a8e8999a8a98f5cf7061b9c04e"},{"author":{"_account_id":14823,"name":"Pete MacKinnon","email":"pmackinn@redhat.com","username":"pmackinn"},"change_message_id":"b2c9a2160bc33a5274f8017af59639dcfcf585df","unresolved":false,"context_lines":[{"line_number":278,"context_line":"    | updated           | 2015-12-13T12:37:03     |"},{"line_number":279,"context_line":"    | volume            | 1                       |"},{"line_number":280,"context_line":"    | volume_used       | 0.1                     |"},{"line_number":281,"context_line":"    | locality          | affinity                |"},{"line_number":282,"context_line":"    +-------------------+-------------------------+"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"Internal API"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_ba3a7232","line":281,"updated":"2016-04-25 15:43:47.000000000","message":"Could \"trove show\" tell us the name of the server group also?","commit_id":"a5b1d4f5e70018a8e8999a8a98f5cf7061b9c04e"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"c437902e290eb5d0ba99240408657d558e52f0e5","unresolved":false,"context_lines":[{"line_number":278,"context_line":"    | updated           | 2015-12-13T12:37:03     |"},{"line_number":279,"context_line":"    | volume            | 1                       |"},{"line_number":280,"context_line":"    | volume_used       | 0.1                     |"},{"line_number":281,"context_line":"    | locality          | affinity                |"},{"line_number":282,"context_line":"    +-------------------+-------------------------+"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"Internal API"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_bbe1abd2","line":281,"in_reply_to":"1a122d0e_48cebd2d","updated":"2016-05-05 13:47:45.000000000","message":"Done","commit_id":"a5b1d4f5e70018a8e8999a8a98f5cf7061b9c04e"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"5dcf53c4840dd7097dd68844a1df59d3d8532167","unresolved":false,"context_lines":[{"line_number":278,"context_line":"    | updated           | 2015-12-13T12:37:03     |"},{"line_number":279,"context_line":"    | volume            | 1                       |"},{"line_number":280,"context_line":"    | volume_used       | 0.1                     |"},{"line_number":281,"context_line":"    | locality          | affinity                |"},{"line_number":282,"context_line":"    +-------------------+-------------------------+"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"Internal API"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_48cebd2d","line":281,"in_reply_to":"1a122d0e_ba3a7232","updated":"2016-04-27 17:27:14.000000000","message":"It could, but just like the \u0027instance id\u0027 it\u0027s probably better to hide that detail from the end user.","commit_id":"a5b1d4f5e70018a8e8999a8a98f5cf7061b9c04e"},{"author":{"_account_id":14823,"name":"Pete MacKinnon","email":"pmackinn@redhat.com","username":"pmackinn"},"change_message_id":"b2c9a2160bc33a5274f8017af59639dcfcf585df","unresolved":false,"context_lines":[{"line_number":320,"context_line":"\u0027affinity\u0027, and \u0027anti-affinity\u0027 in it. The value chosen will need"},{"line_number":321,"context_line":"to be passed down into the respective create calls. The show commands"},{"line_number":322,"context_line":"will need to be enhanced as well to recognize the new \u0027locality\u0027 element."},{"line_number":323,"context_line":""},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"Implementation"},{"line_number":326,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_ba21d2fe","line":323,"updated":"2016-04-25 15:43:47.000000000","message":"How does an operator know which server group is in use for selecting the appropriate hint? Will that be in the Trove dashboard or they need to query Nova?","commit_id":"a5b1d4f5e70018a8e8999a8a98f5cf7061b9c04e"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"5dcf53c4840dd7097dd68844a1df59d3d8532167","unresolved":false,"context_lines":[{"line_number":320,"context_line":"\u0027affinity\u0027, and \u0027anti-affinity\u0027 in it. The value chosen will need"},{"line_number":321,"context_line":"to be passed down into the respective create calls. The show commands"},{"line_number":322,"context_line":"will need to be enhanced as well to recognize the new \u0027locality\u0027 element."},{"line_number":323,"context_line":""},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"Implementation"},{"line_number":326,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a122d0e_68ae192f","line":323,"in_reply_to":"1a122d0e_ba21d2fe","updated":"2016-04-27 17:27:14.000000000","message":"The server_group is just how the locality is implemented - it\u0027s created on-the-fly with the right policy (\u0027affinity\u0027 or \u0027anti-affinity\u0027), so that\u0027s all that needs to be specified.  (I hope that helps; I\u0027m not 100% sure I understand the question ;) )","commit_id":"a5b1d4f5e70018a8e8999a8a98f5cf7061b9c04e"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"507dd254044ab809d7854c5c91ed3056c4a2067e","unresolved":false,"context_lines":[{"line_number":51,"context_line":"By the same token, clusters would benefit from having instances on different"},{"line_number":52,"context_line":"hypervisors."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"Replication/cluster locality seeks to address this issue.  (Granted,"},{"line_number":55,"context_line":"anti-affinity seems more relevant - and desirable - however the two go"},{"line_number":56,"context_line":"hand-in-hand as will be seen in the next section.)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Proposed Change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_52270d64","line":56,"range":{"start_line":54,"start_character":60,"end_line":56,"end_character":49},"updated":"2016-05-08 11:20:23.000000000","message":"what is the granularity of affinity/anti-affinity? Is the extent of locality being exposed strictly restricted to hypervisor?\n\nIn the case of clustering, one thing to remember is that it is a good thing if all instances in a cluster are nearby (same dc, az, ...) and not far away (packet latency). I assume that accomplishing that is independent of this spec.\n\nIt is only in that context that this sentence seems to make sense.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"0fd9241f247fd6f970174144809ca8734bdbd723","unresolved":false,"context_lines":[{"line_number":51,"context_line":"By the same token, clusters would benefit from having instances on different"},{"line_number":52,"context_line":"hypervisors."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"Replication/cluster locality seeks to address this issue.  (Granted,"},{"line_number":55,"context_line":"anti-affinity seems more relevant - and desirable - however the two go"},{"line_number":56,"context_line":"hand-in-hand as will be seen in the next section.)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Proposed Change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_971423e9","line":56,"range":{"start_line":54,"start_character":60,"end_line":56,"end_character":49},"in_reply_to":"dab17558_52270d64","updated":"2016-05-11 19:04:40.000000000","message":"Yes, the granularity is only based on hypervisor. We\u0027re going to be using Nova\u0027s mechanism for this, so that\u0027s all we get.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"96ea3fd1a5b4ce18f41a3250571ff30e66d7292f","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                        image_id, databases, users, datastore_manager,"},{"line_number":77,"context_line":"                        packages, volume_size, backup_id, availability_zone,"},{"line_number":78,"context_line":"                        root_password, nics, overrides, slave_of_id,"},{"line_number":79,"context_line":"                        cluster_config, volume_type, locality):"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* The create method in cluster/models.py will likewise be modified to include"},{"line_number":82,"context_line":"  a \u0027locality\u0027 argument."}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_cbc5043d","line":79,"updated":"2016-05-08 19:20:42.000000000","message":"What do you think about using a keyword argument called \"hint\"? This should match, to some extent, nova\u0027s CLI and prepare Trove\u0027s internal API for future hints/changes like this.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3ed50d96083d492be9c2a9343e20d836d849814d","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                        image_id, databases, users, datastore_manager,"},{"line_number":77,"context_line":"                        packages, volume_size, backup_id, availability_zone,"},{"line_number":78,"context_line":"                        root_password, nics, overrides, slave_of_id,"},{"line_number":79,"context_line":"                        cluster_config, volume_type, locality):"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* The create method in cluster/models.py will likewise be modified to include"},{"line_number":82,"context_line":"  a \u0027locality\u0027 argument."}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_eff11497","line":79,"in_reply_to":"dab17558_1ebbfe76","updated":"2016-05-12 20:33:40.000000000","message":"My point is: Can we use `hint` here instead of locality? \n\nInstead of converting to hint right before calling nova, I\u0027m wondering if we would be better off just using `hint` internally in Trove as well. The signature you\u0027d be modifying is the `create_instance` one. We could make it look more like novaclient\u0027s build call by just using hint here as well.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"dd543a7c1ffd4720a7062c3850544fe389ad82e4","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                        image_id, databases, users, datastore_manager,"},{"line_number":77,"context_line":"                        packages, volume_size, backup_id, availability_zone,"},{"line_number":78,"context_line":"                        root_password, nics, overrides, slave_of_id,"},{"line_number":79,"context_line":"                        cluster_config, volume_type, locality):"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* The create method in cluster/models.py will likewise be modified to include"},{"line_number":82,"context_line":"  a \u0027locality\u0027 argument."}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_b2304c57","line":79,"in_reply_to":"dab17558_577abb24","updated":"2016-05-11 23:10:05.000000000","message":"No, I\u0027m proposing to use `hint\u003d` just internally. Instead of adding a `locality` argument to `create_instance`, I\u0027m proposing to add `hint\u003dNone` and pass a dict with \u0027hints\u0027 to it.\n\nWe need to convert `locality` to `hint` at some point, anyway. right?\n\nI\u0027m happy either way, TBH. I\u0027m just looking ahead and prepare us for future hints if we ever add those.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"90d470fe73b863aa7a8feca68a1227a1225a4d46","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                        image_id, databases, users, datastore_manager,"},{"line_number":77,"context_line":"                        packages, volume_size, backup_id, availability_zone,"},{"line_number":78,"context_line":"                        root_password, nics, overrides, slave_of_id,"},{"line_number":79,"context_line":"                        cluster_config, volume_type, locality):"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* The create method in cluster/models.py will likewise be modified to include"},{"line_number":82,"context_line":"  a \u0027locality\u0027 argument."}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_1ebbfe76","line":79,"in_reply_to":"dab17558_b2304c57","updated":"2016-05-12 16:40:37.000000000","message":"It does get converted to a \u0027scheduler_hint\u0027 in the implementation. See line 92.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"0fd9241f247fd6f970174144809ca8734bdbd723","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                        image_id, databases, users, datastore_manager,"},{"line_number":77,"context_line":"                        packages, volume_size, backup_id, availability_zone,"},{"line_number":78,"context_line":"                        root_password, nics, overrides, slave_of_id,"},{"line_number":79,"context_line":"                        cluster_config, volume_type, locality):"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* The create method in cluster/models.py will likewise be modified to include"},{"line_number":82,"context_line":"  a \u0027locality\u0027 argument."}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_577abb24","line":79,"in_reply_to":"dab17558_cbc5043d","updated":"2016-05-11 19:04:40.000000000","message":"The \u0027hint\u0027 that\u0027s generated by the locality argument to pass to nova is:\n\n  group\u003d\u003cserver_group_id\u003e\n\nSo we can\u0027t have the end user do that. Are you proposing something like this?\n\n  trove create myinst 15 --size 1 --hint\u003dlocality\u003daffinity\n\nThat seems a bit clunky ...","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"507dd254044ab809d7854c5c91ed3056c4a2067e","unresolved":false,"context_lines":[{"line_number":111,"context_line":"Database"},{"line_number":112,"context_line":"--------"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"No changes"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"Public API"},{"line_number":117,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_322a492d","line":114,"range":{"start_line":114,"start_character":0,"end_line":114,"end_character":2},"updated":"2016-05-08 11:20:23.000000000","message":"that\u0027s interesting. it would be interesting to know how a later action (say resize-instance) would respect the initial choice.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"0fd9241f247fd6f970174144809ca8734bdbd723","unresolved":false,"context_lines":[{"line_number":111,"context_line":"Database"},{"line_number":112,"context_line":"--------"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"No changes"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"Public API"},{"line_number":117,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_b74847cd","line":114,"range":{"start_line":114,"start_character":0,"end_line":114,"end_character":2},"in_reply_to":"dab17558_322a492d","updated":"2016-05-11 19:04:40.000000000","message":"Whatever Nova does in that instance is what Trove would do.  I suspect that Nove will respect the server_group and fail the resize if it can\u0027t (but I haven\u0027t verified that).","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"96ea3fd1a5b4ce18f41a3250571ff30e66d7292f","unresolved":false,"context_lines":[{"line_number":133,"context_line":"            \"flavorRef\": 7,"},{"line_number":134,"context_line":"            \"name\": \"myinst\","},{"line_number":135,"context_line":"            \"replica_count\": 2,"},{"line_number":136,"context_line":"            \"locality\": \"affinity\""},{"line_number":137,"context_line":"        }"},{"line_number":138,"context_line":"    }"},{"line_number":139,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_abc0802b","line":136,"updated":"2016-05-08 19:20:42.000000000","message":"IIUC, the two possible values here are \"affinity\" and \"anti-affinity\". Trove will take care of creating the required service-groups and manage the remaining operations. Right?","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"0fd9241f247fd6f970174144809ca8734bdbd723","unresolved":false,"context_lines":[{"line_number":133,"context_line":"            \"flavorRef\": 7,"},{"line_number":134,"context_line":"            \"name\": \"myinst\","},{"line_number":135,"context_line":"            \"replica_count\": 2,"},{"line_number":136,"context_line":"            \"locality\": \"affinity\""},{"line_number":137,"context_line":"        }"},{"line_number":138,"context_line":"    }"},{"line_number":139,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_d717cba0","line":136,"in_reply_to":"dab17558_abc0802b","updated":"2016-05-11 19:04:40.000000000","message":"If you mean server_groups, then yes.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"dd543a7c1ffd4720a7062c3850544fe389ad82e4","unresolved":false,"context_lines":[{"line_number":133,"context_line":"            \"flavorRef\": 7,"},{"line_number":134,"context_line":"            \"name\": \"myinst\","},{"line_number":135,"context_line":"            \"replica_count\": 2,"},{"line_number":136,"context_line":"            \"locality\": \"affinity\""},{"line_number":137,"context_line":"        }"},{"line_number":138,"context_line":"    }"},{"line_number":139,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_f236544f","line":136,"in_reply_to":"dab17558_d717cba0","updated":"2016-05-11 23:10:05.000000000","message":"yeah, I meant server_groups. Freudian slip, sorry.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"507dd254044ab809d7854c5c91ed3056c4a2067e","unresolved":false,"context_lines":[{"line_number":187,"context_line":"    }"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"The \u0027show\u0027 and \u0027cluster-show\u0027 commands will also now return an attribute"},{"line_number":190,"context_line":"\u0027locality\u0027 that will look like the one returned from their respective create"},{"line_number":191,"context_line":"commands.  Although this doesn\u0027t represent a \u0027change\u0027 in the API, it is listed"},{"line_number":192,"context_line":"here for reference.  Since the flag will only be returned if the locality has"},{"line_number":193,"context_line":"been specified, it will be fully backwards compatible (as older instances will"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_92217550","line":190,"range":{"start_line":190,"start_character":1,"end_line":190,"end_character":9},"updated":"2016-05-08 11:20:23.000000000","message":"where will it get it from if you don\u0027t persist it to the database?","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"0fd9241f247fd6f970174144809ca8734bdbd723","unresolved":false,"context_lines":[{"line_number":187,"context_line":"    }"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"The \u0027show\u0027 and \u0027cluster-show\u0027 commands will also now return an attribute"},{"line_number":190,"context_line":"\u0027locality\u0027 that will look like the one returned from their respective create"},{"line_number":191,"context_line":"commands.  Although this doesn\u0027t represent a \u0027change\u0027 in the API, it is listed"},{"line_number":192,"context_line":"here for reference.  Since the flag will only be returned if the locality has"},{"line_number":193,"context_line":"been specified, it will be fully backwards compatible (as older instances will"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_1250410a","line":190,"range":{"start_line":190,"start_character":1,"end_line":190,"end_character":9},"in_reply_to":"dab17558_92217550","updated":"2016-05-11 19:04:40.000000000","message":"It\u0027s looked up from the server-group-list from Nova.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"96ea3fd1a5b4ce18f41a3250571ff30e66d7292f","unresolved":false,"context_lines":[{"line_number":188,"context_line":""},{"line_number":189,"context_line":"The \u0027show\u0027 and \u0027cluster-show\u0027 commands will also now return an attribute"},{"line_number":190,"context_line":"\u0027locality\u0027 that will look like the one returned from their respective create"},{"line_number":191,"context_line":"commands.  Although this doesn\u0027t represent a \u0027change\u0027 in the API, it is listed"},{"line_number":192,"context_line":"here for reference.  Since the flag will only be returned if the locality has"},{"line_number":193,"context_line":"been specified, it will be fully backwards compatible (as older instances will"},{"line_number":194,"context_line":"not have locality associated with them, they would not return the flag"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_0bdeec10","line":191,"updated":"2016-05-08 19:20:42.000000000","message":"Could you elaborate on what you mean by this not being a \"change\" on the API? I think I\u0027m missing something here.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"0fd9241f247fd6f970174144809ca8734bdbd723","unresolved":false,"context_lines":[{"line_number":188,"context_line":""},{"line_number":189,"context_line":"The \u0027show\u0027 and \u0027cluster-show\u0027 commands will also now return an attribute"},{"line_number":190,"context_line":"\u0027locality\u0027 that will look like the one returned from their respective create"},{"line_number":191,"context_line":"commands.  Although this doesn\u0027t represent a \u0027change\u0027 in the API, it is listed"},{"line_number":192,"context_line":"here for reference.  Since the flag will only be returned if the locality has"},{"line_number":193,"context_line":"been specified, it will be fully backwards compatible (as older instances will"},{"line_number":194,"context_line":"not have locality associated with them, they would not return the flag"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_327e256a","line":191,"in_reply_to":"dab17558_0bdeec10","updated":"2016-05-11 19:04:40.000000000","message":"It\u0027s an addition to the payload being returned.  If that\u0027s considered altering the API, then I guess it is a change.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"dd543a7c1ffd4720a7062c3850544fe389ad82e4","unresolved":false,"context_lines":[{"line_number":188,"context_line":""},{"line_number":189,"context_line":"The \u0027show\u0027 and \u0027cluster-show\u0027 commands will also now return an attribute"},{"line_number":190,"context_line":"\u0027locality\u0027 that will look like the one returned from their respective create"},{"line_number":191,"context_line":"commands.  Although this doesn\u0027t represent a \u0027change\u0027 in the API, it is listed"},{"line_number":192,"context_line":"here for reference.  Since the flag will only be returned if the locality has"},{"line_number":193,"context_line":"been specified, it will be fully backwards compatible (as older instances will"},{"line_number":194,"context_line":"not have locality associated with them, they would not return the flag"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_724384af","line":191,"in_reply_to":"dab17558_327e256a","updated":"2016-05-11 23:10:05.000000000","message":"My opinion is that it is indeed changing the API in a backwards compatible way.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"96ea3fd1a5b4ce18f41a3250571ff30e66d7292f","unresolved":false,"context_lines":[{"line_number":192,"context_line":"here for reference.  Since the flag will only be returned if the locality has"},{"line_number":193,"context_line":"been specified, it will be fully backwards compatible (as older instances will"},{"line_number":194,"context_line":"not have locality associated with them, they would not return the flag"},{"line_number":195,"context_line":"regardless)."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"Public API Security"},{"line_number":198,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_ebe0c8ce","line":195,"updated":"2016-05-08 19:20:42.000000000","message":"mmhhh... I\u0027d argue that the attribute should *always* be returned. Consistency across calls is something that the API-WG has been trying to enforce. We made this mistake (for lack of a better term) in Glance too. I\u0027ll ask someone from the API-WG to chime in here.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3ed50d96083d492be9c2a9343e20d836d849814d","unresolved":false,"context_lines":[{"line_number":192,"context_line":"here for reference.  Since the flag will only be returned if the locality has"},{"line_number":193,"context_line":"been specified, it will be fully backwards compatible (as older instances will"},{"line_number":194,"context_line":"not have locality associated with them, they would not return the flag"},{"line_number":195,"context_line":"regardless)."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"Public API Security"},{"line_number":198,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_2f495c8f","line":195,"in_reply_to":"dab17558_1c9ae6c5","updated":"2016-05-12 20:33:40.000000000","message":"IMHO, yes. I believe we should avoid adding more APIs responses like this. Changing them later won\u0027t be as simple as returning it and bumping the API version.\n\nI don\u0027t think Nova does the right thing there. Unfortunately, many some things are just hard to change after they\u0027ve gone public, especially when they have an impact on public APIs.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"0fd9241f247fd6f970174144809ca8734bdbd723","unresolved":false,"context_lines":[{"line_number":192,"context_line":"here for reference.  Since the flag will only be returned if the locality has"},{"line_number":193,"context_line":"been specified, it will be fully backwards compatible (as older instances will"},{"line_number":194,"context_line":"not have locality associated with them, they would not return the flag"},{"line_number":195,"context_line":"regardless)."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"Public API Security"},{"line_number":198,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_726b8d1e","line":195,"in_reply_to":"dab17558_6e904a44","updated":"2016-05-11 19:04:40.000000000","message":"I think we have a whole bunch of stuff that\u0027s not always returned...","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"dd543a7c1ffd4720a7062c3850544fe389ad82e4","unresolved":false,"context_lines":[{"line_number":192,"context_line":"here for reference.  Since the flag will only be returned if the locality has"},{"line_number":193,"context_line":"been specified, it will be fully backwards compatible (as older instances will"},{"line_number":194,"context_line":"not have locality associated with them, they would not return the flag"},{"line_number":195,"context_line":"regardless)."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"Public API Security"},{"line_number":198,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_b27e8ce1","line":195,"in_reply_to":"dab17558_72c26d86","updated":"2016-05-11 23:10:05.000000000","message":"mmh, still I think returning the field conditionally will put us in an unfortunate position from an API perspective. I think this would be a good moment to start suppressing things out or ignore unknown fields from the client side.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"90d470fe73b863aa7a8feca68a1227a1225a4d46","unresolved":false,"context_lines":[{"line_number":192,"context_line":"here for reference.  Since the flag will only be returned if the locality has"},{"line_number":193,"context_line":"been specified, it will be fully backwards compatible (as older instances will"},{"line_number":194,"context_line":"not have locality associated with them, they would not return the flag"},{"line_number":195,"context_line":"regardless)."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"Public API Security"},{"line_number":198,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_1c9ae6c5","line":195,"in_reply_to":"dab17558_b27e8ce1","updated":"2016-05-12 16:40:37.000000000","message":"I\u0027m trying to be consistent with what\u0027s been done before.  Maybe it\u0027s not correct, but is now the time change it? In the middle of this feature? Maybe should take a higher level approach and fix them all if that\u0027s what should be done. (BTW, Nova doesn\u0027t return all its attributes in its \u0027show\u0027 command all the time either...)","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"0fd9241f247fd6f970174144809ca8734bdbd723","unresolved":false,"context_lines":[{"line_number":192,"context_line":"here for reference.  Since the flag will only be returned if the locality has"},{"line_number":193,"context_line":"been specified, it will be fully backwards compatible (as older instances will"},{"line_number":194,"context_line":"not have locality associated with them, they would not return the flag"},{"line_number":195,"context_line":"regardless)."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"Public API Security"},{"line_number":198,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_72c26d86","line":195,"in_reply_to":"dab17558_ebe0c8ce","updated":"2016-05-11 19:04:40.000000000","message":"That means it\u0027ll be printed out by default (unless we suppress it)","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},"change_message_id":"2760146950ceb1d84ede55c8da36ec5fd47bf4f1","unresolved":false,"context_lines":[{"line_number":192,"context_line":"here for reference.  Since the flag will only be returned if the locality has"},{"line_number":193,"context_line":"been specified, it will be fully backwards compatible (as older instances will"},{"line_number":194,"context_line":"not have locality associated with them, they would not return the flag"},{"line_number":195,"context_line":"regardless)."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"Public API Security"},{"line_number":198,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_6e904a44","line":195,"in_reply_to":"dab17558_ebe0c8ce","updated":"2016-05-09 16:16:55.000000000","message":"Yeah, if you\u0027re going to add a field to the JSON object that\u0027s ok: old clients should safely ignore it. It\u0027s very, very preferable to fill the field with `null` rather than omit it conditionally.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"96ea3fd1a5b4ce18f41a3250571ff30e66d7292f","unresolved":false,"context_lines":[{"line_number":226,"context_line":"------------------------"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"The create command will now accept a --locality flag that can be one of two"},{"line_number":229,"context_line":"values: affinity and anti-affinity.  The command would look like:"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":".. code-block:: bash"},{"line_number":232,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_4be8f4b4","line":229,"updated":"2016-05-08 19:20:42.000000000","message":"Which one will be the default? If there\u0027s no default, then we should probably say it may also be null.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"0fd9241f247fd6f970174144809ca8734bdbd723","unresolved":false,"context_lines":[{"line_number":226,"context_line":"------------------------"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"The create command will now accept a --locality flag that can be one of two"},{"line_number":229,"context_line":"values: affinity and anti-affinity.  The command would look like:"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":".. code-block:: bash"},{"line_number":232,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_525769c9","line":229,"in_reply_to":"dab17558_4be8f4b4","updated":"2016-05-11 19:04:40.000000000","message":"Are you implying --locality\u003dNone should be accepted?  We don\u0027t do that with any other optional parameters.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"dd543a7c1ffd4720a7062c3850544fe389ad82e4","unresolved":false,"context_lines":[{"line_number":226,"context_line":"------------------------"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"The create command will now accept a --locality flag that can be one of two"},{"line_number":229,"context_line":"values: affinity and anti-affinity.  The command would look like:"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":".. code-block:: bash"},{"line_number":232,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_b2cccc35","line":229,"in_reply_to":"dab17558_525769c9","updated":"2016-05-11 23:10:05.000000000","message":"Nope. What I\u0027m saying is. If neither `affinity` nor `anti-affinity` are the default values for `locality`, we\u0027re implying that `locality` could be None. I\u0027m not saying that `--locality\u003dNone` should be accepted but rather that we should document the behavior for when it\u0027s not passed.\n\nI think it\u0027d be good to have it described here, even if the behavior would be the same we have today.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3ed50d96083d492be9c2a9343e20d836d849814d","unresolved":false,"context_lines":[{"line_number":226,"context_line":"------------------------"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"The create command will now accept a --locality flag that can be one of two"},{"line_number":229,"context_line":"values: affinity and anti-affinity.  The command would look like:"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":".. code-block:: bash"},{"line_number":232,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_ca399eda","line":229,"in_reply_to":"dab17558_9c7b7629","updated":"2016-05-12 20:33:40.000000000","message":"Oh boy, I totally missed those lines. I\u0027m so sorry. \n\nNow that you mention it, though, if there will be a new patch set for this spec then I think it\u0027d be good to have those two lines moved up here.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"90d470fe73b863aa7a8feca68a1227a1225a4d46","unresolved":false,"context_lines":[{"line_number":226,"context_line":"------------------------"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"The create command will now accept a --locality flag that can be one of two"},{"line_number":229,"context_line":"values: affinity and anti-affinity.  The command would look like:"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":".. code-block:: bash"},{"line_number":232,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_9c7b7629","line":229,"in_reply_to":"dab17558_b2cccc35","updated":"2016-05-12 16:40:37.000000000","message":"It\u0027s described on line 283-284.  Would you rather I move it up here?","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"96ea3fd1a5b4ce18f41a3250571ff30e66d7292f","unresolved":false,"context_lines":[{"line_number":250,"context_line":""},{"line_number":251,"context_line":".. code-block:: bash"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    trove create my_replica 7 --size 1 --locality affinity --replica_of \u003cid\u003e"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"When growing a cluster, the same locality will be applied to any new instances"},{"line_number":256,"context_line":"created. Because of this, the locality flag will not be available for"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_2bebf0b1","line":253,"updated":"2016-05-08 19:20:42.000000000","message":"Could you elaborate on why this should fail?","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"0fd9241f247fd6f970174144809ca8734bdbd723","unresolved":false,"context_lines":[{"line_number":250,"context_line":""},{"line_number":251,"context_line":".. code-block:: bash"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    trove create my_replica 7 --size 1 --locality affinity --replica_of \u003cid\u003e"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"When growing a cluster, the same locality will be applied to any new instances"},{"line_number":256,"context_line":"created. Because of this, the locality flag will not be available for"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_f2d81d55","line":253,"in_reply_to":"dab17558_2bebf0b1","updated":"2016-05-11 19:04:40.000000000","message":"Because \u0027this flag cannot be changed once it has been associated with an instance.\u0027 This is a Nova restriction in that you can\u0027t add or remove servers from server_groups manually.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"dd543a7c1ffd4720a7062c3850544fe389ad82e4","unresolved":false,"context_lines":[{"line_number":250,"context_line":""},{"line_number":251,"context_line":".. code-block:: bash"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    trove create my_replica 7 --size 1 --locality affinity --replica_of \u003cid\u003e"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"When growing a cluster, the same locality will be applied to any new instances"},{"line_number":256,"context_line":"created. Because of this, the locality flag will not be available for"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_72df04d6","line":253,"in_reply_to":"dab17558_f2d81d55","updated":"2016-05-11 23:10:05.000000000","message":"Ah-ha! Thanks for clarifying.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"96ea3fd1a5b4ce18f41a3250571ff30e66d7292f","unresolved":false,"context_lines":[{"line_number":358,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"Since this change is completely backwards compatible, no upgrade issues are"},{"line_number":361,"context_line":"expected."},{"line_number":362,"context_line":""},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_8bd2dcfe","line":361,"updated":"2016-05-08 19:20:42.000000000","message":"I agree with Amrith it\u0027s a bit weird this doesn\u0027t require changing the database. If a database change is required, this section will likely have to reflect that.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"0fd9241f247fd6f970174144809ca8734bdbd723","unresolved":false,"context_lines":[{"line_number":358,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"Since this change is completely backwards compatible, no upgrade issues are"},{"line_number":361,"context_line":"expected."},{"line_number":362,"context_line":""},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_f28dbd31","line":361,"in_reply_to":"dab17558_8bd2dcfe","updated":"2016-05-11 19:04:40.000000000","message":"I\u0027m not sure what to say here.  If you\u0027d like to have the server_group id stored in the db, I guess that it could be done but it\u0027s not necessary.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"dd543a7c1ffd4720a7062c3850544fe389ad82e4","unresolved":false,"context_lines":[{"line_number":358,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":359,"context_line":""},{"line_number":360,"context_line":"Since this change is completely backwards compatible, no upgrade issues are"},{"line_number":361,"context_line":"expected."},{"line_number":362,"context_line":""},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":3,"id":"dab17558_320a9c26","line":361,"in_reply_to":"dab17558_f28dbd31","updated":"2016-05-11 23:10:05.000000000","message":"I didn\u0027t say I want a DB change but it seems(ed) weird we would be able to do all the above without persisting the affinity/server_group.\n\nBased on this proposal, we\u0027ll attempt to do operations on Nova and expect it to do all the checks for us, which is fine.","commit_id":"f11111479f140e983208af6e8becced89581b4e9"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"1f493c8adb80c8bc11198e2410a69a1850140684","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                        image_id, databases, users, datastore_manager,"},{"line_number":77,"context_line":"                        packages, volume_size, backup_id, availability_zone,"},{"line_number":78,"context_line":"                        root_password, nics, overrides, slave_of_id,"},{"line_number":79,"context_line":"                        cluster_config, volume_type, locality):"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* The create method in cluster/models.py will likewise be modified to include"},{"line_number":82,"context_line":"  a \u0027locality\u0027 argument."}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_0abe06ff","line":79,"range":{"start_line":79,"start_character":53,"end_line":79,"end_character":61},"updated":"2016-05-12 20:37:56.000000000","message":"I replied to your comment in the previous PS about using `hint` or `locality` here. I don\u0027t feel strongly about either but thought I\u0027d give you a heads up about my reply.","commit_id":"f0032066fda58a847ca001c3fe504e113d2746e3"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"fae1ad0cec6e7f3e20e3e2e2f6145fb04dd60c18","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                        image_id, databases, users, datastore_manager,"},{"line_number":77,"context_line":"                        packages, volume_size, backup_id, availability_zone,"},{"line_number":78,"context_line":"                        root_password, nics, overrides, slave_of_id,"},{"line_number":79,"context_line":"                        cluster_config, volume_type, locality):"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* The create method in cluster/models.py will likewise be modified to include"},{"line_number":82,"context_line":"  a \u0027locality\u0027 argument."}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_c5afd129","line":79,"range":{"start_line":79,"start_character":53,"end_line":79,"end_character":61},"in_reply_to":"dab17558_0abe06ff","updated":"2016-05-12 21:07:20.000000000","message":"It\u0027s not a hint at this point - later in the code it becomes a Nova hint.","commit_id":"f0032066fda58a847ca001c3fe504e113d2746e3"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"1f493c8adb80c8bc11198e2410a69a1850140684","unresolved":false,"context_lines":[{"line_number":188,"context_line":""},{"line_number":189,"context_line":"The \u0027show\u0027 and \u0027cluster-show\u0027 commands will also now return an attribute"},{"line_number":190,"context_line":"\u0027locality\u0027 that will look like the one returned from their respective create"},{"line_number":191,"context_line":"commands.  Since the flag will only be returned if the locality has been"},{"line_number":192,"context_line":"specified, it will be fully backwards compatible (as older instances will not"},{"line_number":193,"context_line":"have locality associated with them, they would not return the flag regardless)."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"Public API Security"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_ca719e79","line":192,"range":{"start_line":191,"start_character":11,"end_line":192,"end_character":10},"updated":"2016-05-12 20:37:56.000000000","message":"As mentioned in my reply on the previous PS, I\u0027m still concerned about this part here. I do believe we would be better off not adding this kind of behavior in the API.","commit_id":"f0032066fda58a847ca001c3fe504e113d2746e3"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"09c0d49b83387b1110b964cbe7d74ff712dc30dc","unresolved":false,"context_lines":[{"line_number":188,"context_line":""},{"line_number":189,"context_line":"The \u0027show\u0027 and \u0027cluster-show\u0027 commands will also now return an attribute"},{"line_number":190,"context_line":"\u0027locality\u0027 that will look like the one returned from their respective create"},{"line_number":191,"context_line":"commands.  Since the flag will only be returned if the locality has been"},{"line_number":192,"context_line":"specified, it will be fully backwards compatible (as older instances will not"},{"line_number":193,"context_line":"have locality associated with them, they would not return the flag regardless)."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"Public API Security"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_209fabb5","line":192,"range":{"start_line":191,"start_character":11,"end_line":192,"end_character":10},"in_reply_to":"dab17558_0581d98f","updated":"2016-05-12 21:14:31.000000000","message":"The behavior exists for other attributes but this one is new. What I\u0027m asking is not to fix it all in this spec but to avoid doing the same with this attribute.","commit_id":"f0032066fda58a847ca001c3fe504e113d2746e3"},{"author":{"_account_id":10215,"name":"Peter Stachowski","email":"peter@tesora.com","username":"peterstac"},"change_message_id":"fae1ad0cec6e7f3e20e3e2e2f6145fb04dd60c18","unresolved":false,"context_lines":[{"line_number":188,"context_line":""},{"line_number":189,"context_line":"The \u0027show\u0027 and \u0027cluster-show\u0027 commands will also now return an attribute"},{"line_number":190,"context_line":"\u0027locality\u0027 that will look like the one returned from their respective create"},{"line_number":191,"context_line":"commands.  Since the flag will only be returned if the locality has been"},{"line_number":192,"context_line":"specified, it will be fully backwards compatible (as older instances will not"},{"line_number":193,"context_line":"have locality associated with them, they would not return the flag regardless)."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"Public API Security"}],"source_content_type":"text/x-rst","patch_set":4,"id":"dab17558_0581d98f","line":192,"range":{"start_line":191,"start_character":11,"end_line":192,"end_character":10},"in_reply_to":"dab17558_ca719e79","updated":"2016-05-12 21:07:20.000000000","message":"This behaviour already exists (as it does in Nova as well).  I think it\u0027s well out of scope to fix it here.","commit_id":"f0032066fda58a847ca001c3fe504e113d2746e3"}]}
