)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"de3674580934d3b62818cf7bbd4f5fd114a8867e","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2017-09-04 19:51:19 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Owner-aware baremetal nodes"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Related-Bug: #1652957"},{"line_number":10,"context_line":"Change-Id: If476bab478ff58b30013aeca505e90e6f722f155"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":14,"id":"5f2577a7_ab734180","line":8,"updated":"2017-09-11 16:05:34.000000000","message":"Add some info here please.","commit_id":"8f1960f3f50631338a369081f503c42df2000a4c"}],"specs/approved/owner-aware-nodes.rst":[{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"638c36b498c824b4f75fdeb2ef32f6401c462de2","unresolved":false,"context_lines":[{"line_number":29,"context_line":"   default policy file. This role will describe a set of actions allowed to the"},{"line_number":30,"context_line":"   owning project\u0027s users."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"In case of nova, or another service that performs actions on the baremetal"},{"line_number":33,"context_line":"nodes, we need to provide admin credentials to it. In general, this should"},{"line_number":34,"context_line":"be avoided, nova could use the context provided by the user request to deploy"},{"line_number":35,"context_line":"the instance to a node that this particular user can manage."}],"source_content_type":"text/x-rst","patch_set":12,"id":"df3967d1_51f33e74","line":32,"updated":"2017-08-01 17:20:22.000000000","message":"In the case of ...","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7d32af7ebe72e65531a1963d2ab58187b29d8d21","unresolved":false,"context_lines":[{"line_number":29,"context_line":"   default policy file. This role will describe a set of actions allowed to the"},{"line_number":30,"context_line":"   owning project\u0027s users."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"In case of nova, or another service that performs actions on the baremetal"},{"line_number":33,"context_line":"nodes, we need to provide admin credentials to it. In general, this should"},{"line_number":34,"context_line":"be avoided, nova could use the context provided by the user request to deploy"},{"line_number":35,"context_line":"the instance to a node that this particular user can manage."}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_67d4f748","line":32,"in_reply_to":"df3967d1_51f33e74","updated":"2017-08-28 14:53:45.000000000","message":"Done","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"69acf429bca787d0f70bffe109b5d9f47dfae678","unresolved":false,"context_lines":[{"line_number":32,"context_line":"In case of nova, or another service that performs actions on the baremetal"},{"line_number":33,"context_line":"nodes, we need to provide admin credentials to it. In general, this should"},{"line_number":34,"context_line":"be avoided, nova could use the context provided by the user request to deploy"},{"line_number":35,"context_line":"the instance to a node that this particular user can manage."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Another use case where owner-aware nodes would bring benefit, is having"},{"line_number":38,"context_line":"several projects that need to be isolated in term of resource pools, so that"}],"source_content_type":"text/x-rst","patch_set":12,"id":"df3967d1_e0da5915","line":35,"updated":"2017-08-01 18:45:01.000000000","message":"My feeling is that assigning nodes to projects won\u0027t be the common case. Is there not a way that we could solve this problem without requiring nodes to be assigned to projects?\n\nIt seems that something like a \u0027sudo\u0027 for keystone would be useful, or perhaps something akin to keystone trusts where the user is granted a superset of privileges rather than a subset.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"3ce99a9a97fb3b89c2aeed262d966db733a4cdc3","unresolved":false,"context_lines":[{"line_number":32,"context_line":"In case of nova, or another service that performs actions on the baremetal"},{"line_number":33,"context_line":"nodes, we need to provide admin credentials to it. In general, this should"},{"line_number":34,"context_line":"be avoided, nova could use the context provided by the user request to deploy"},{"line_number":35,"context_line":"the instance to a node that this particular user can manage."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Another use case where owner-aware nodes would bring benefit, is having"},{"line_number":38,"context_line":"several projects that need to be isolated in term of resource pools, so that"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_1801df06","line":35,"in_reply_to":"7f287b81_edde6cd8","updated":"2017-08-30 08:57:24.000000000","message":"@vdrok: Right, I don\u0027t think \u0027supertrusts\u0027 exist currently - perhaps I went off on a tangent there, although they could be useful.\n\nPerhaps if we break apart the separate things we want from this a solution will present itself? How would you solve each of these problems (admin-less deployment, L32 and node pooling, L37) independently? I think that the solution for admin-less deployment would not likely involve projects, so why don\u0027t we consider that separately, then consider how to segregate nodes into separate pools of resources?","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7d32af7ebe72e65531a1963d2ab58187b29d8d21","unresolved":false,"context_lines":[{"line_number":32,"context_line":"In case of nova, or another service that performs actions on the baremetal"},{"line_number":33,"context_line":"nodes, we need to provide admin credentials to it. In general, this should"},{"line_number":34,"context_line":"be avoided, nova could use the context provided by the user request to deploy"},{"line_number":35,"context_line":"the instance to a node that this particular user can manage."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Another use case where owner-aware nodes would bring benefit, is having"},{"line_number":38,"context_line":"several projects that need to be isolated in term of resource pools, so that"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_a7009fac","line":35,"in_reply_to":"df3967d1_e0da5915","updated":"2017-08-28 14:53:45.000000000","message":"The project is what we\u0027ll most likely have present in the context, so this was my first thought.\n\nAs for making it a kind of sudo with trusts, sounds like an interesting idea. Tho when used with nova, I think this will complicate things. Firstly, we\u0027d need to pass the context the boot request came in from nova to ironic. Secondly, it seems like apart from that it\u0027s mostly the same, we\u0027d store trust id instead of project id. The upside of trust seems to be that it can be revoked easily, tho doing node-update remove owner should be as easy as that for an admin :)\n\nAlso I\u0027m no keystone expert, but trusts seem to me like also delegating a subset of possible actions to the trustee.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"e8d45ef22591fa4c431108b9078d3eb19b603916","unresolved":false,"context_lines":[{"line_number":32,"context_line":"In case of nova, or another service that performs actions on the baremetal"},{"line_number":33,"context_line":"nodes, we need to provide admin credentials to it. In general, this should"},{"line_number":34,"context_line":"be avoided, nova could use the context provided by the user request to deploy"},{"line_number":35,"context_line":"the instance to a node that this particular user can manage."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Another use case where owner-aware nodes would bring benefit, is having"},{"line_number":38,"context_line":"several projects that need to be isolated in term of resource pools, so that"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_edde6cd8","line":35,"in_reply_to":"df3967d1_e0da5915","updated":"2017-08-29 14:43:22.000000000","message":"We actually already do this for some things, like Neutron. We \"elevate\" the client connection to use an administrator role when needed:\n\nhttps://github.com/openstack/nova/blob/master/nova/network/neutronv2/api.py#L855-L857\n\nThe same could be done for Ironic.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"69acf429bca787d0f70bffe109b5d9f47dfae678","unresolved":false,"context_lines":[{"line_number":40,"context_line":"to split a single ironic installation into several \"sub-clouds\" without the"},{"line_number":41,"context_line":"need to setup several ironic services with different databases, and without"},{"line_number":42,"context_line":"the need to migrate data between multiple Ironic installations to move a node"},{"line_number":43,"context_line":"from one \"sub-cloud\" to another."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In both cases, the main thing that a user needs is deploy, rebuild and tear"},{"line_number":46,"context_line":"down their assigned nodes. A user in a project that is able to perform"}],"source_content_type":"text/x-rst","patch_set":12,"id":"df3967d1_a39b3bc7","line":43,"updated":"2017-08-01 18:45:01.000000000","message":"I think this is a very important use case for ironic. I was chatting to someone on IRC who had a very similar requirement.\n\nThat said, I\u0027m a little concerned about making projects the dimension of separation. Jay Pipes touched earlier on the distinction between ownership and permissions. There\u0027s also the question of scheduling. I may want to be able to allow users to target an arbitrary subset of nodes for scheduling, without necessarily adding any restrictions on which users can do that.\n\nI think ironic is in need of a more generic pooling system, with the flexibility of nova\u0027s aggregates (what a shame it doesn\u0027t \u0027just work\u0027 today).\n\nSome use cases that are not mine but feel like they shouldn\u0027t be designed out:\n\n* A node assigned to a project, restricts use to only users in that project.\n* A node assigned to multiple projects, restricts use to only users in those projects (a la glance membership).\n* Two pools representing disjoint sets of nodes, which may be scheduled against.\n* Two pools representing intersecting sets of nodes, which may be scheduled against (i.e. some nodes are in multiple pools).\n\nI\u0027m not suggesting that this spec needs to solve the general problem, only that I\u0027d like to see the general problem considered before deciding how this fits into the picture. \n\nPerhaps also less emphasis on this being *the* solution for pooling nodes.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"3ce99a9a97fb3b89c2aeed262d966db733a4cdc3","unresolved":false,"context_lines":[{"line_number":40,"context_line":"to split a single ironic installation into several \"sub-clouds\" without the"},{"line_number":41,"context_line":"need to setup several ironic services with different databases, and without"},{"line_number":42,"context_line":"the need to migrate data between multiple Ironic installations to move a node"},{"line_number":43,"context_line":"from one \"sub-cloud\" to another."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In both cases, the main thing that a user needs is deploy, rebuild and tear"},{"line_number":46,"context_line":"down their assigned nodes. A user in a project that is able to perform"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_d33c5894","line":43,"in_reply_to":"7f287b81_07177353","updated":"2017-08-30 08:57:24.000000000","message":"I think that a single baremetal_deployer role for all nodes is currently sufficient.\n\nOn the scheduling side, I wasn\u0027t really meaning removing nodes permanently from the schedulable pool, more about having abstractions for building pools/groups that could be scheduled against.\n\nHaving a list of owners (like glance image members) feels more flexible than a single owner. I\u0027m still not sure it covers all use cases though - we might want to limit scheduling to a subset of the nodes owned by a project. Again, that doesn\u0027t mean I don\u0027t like the idea of node ownership, I just we should be clear that it solves a particular use case and is not *the* way to partition nodes.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7d32af7ebe72e65531a1963d2ab58187b29d8d21","unresolved":false,"context_lines":[{"line_number":40,"context_line":"to split a single ironic installation into several \"sub-clouds\" without the"},{"line_number":41,"context_line":"need to setup several ironic services with different databases, and without"},{"line_number":42,"context_line":"the need to migrate data between multiple Ironic installations to move a node"},{"line_number":43,"context_line":"from one \"sub-cloud\" to another."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In both cases, the main thing that a user needs is deploy, rebuild and tear"},{"line_number":46,"context_line":"down their assigned nodes. A user in a project that is able to perform"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_07177353","line":43,"in_reply_to":"df3967d1_a39b3bc7","updated":"2017-08-28 14:53:45.000000000","message":"Right, but still I think ownership and permissions are isolated here. baremetal_deployer role says what you can do with a node, owner field says who can do that. Do you think it\u0027s make more sense to store both owner id and role name in the node? You can redefine baremetal_deployer to be whatever you want, but yes, it will be the same for all nodes.\n\nAs for just restricting a subset of nodes for scheduling without any restrictions to what you can do with them, you can already do that, just put them in maintenance :) or do you mean something more elaborate? Like telling nova compute to not report nodes having some field set? I\u0027m not sure it fits the current proposal, but if you could add more detail here, I\u0027ll think about how to fit it here.\n\nAs for pooling solution, we can actually do all the things you propose with the project_id filtering, if we make the owner field to be a list of project ids, which will mean multiple traits will be assigned to some resource providers.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"69acf429bca787d0f70bffe109b5d9f47dfae678","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In both cases, the main thing that a user needs is deploy, rebuild and tear"},{"line_number":46,"context_line":"down their assigned nodes. A user in a project that is able to perform"},{"line_number":47,"context_line":"provisioning actions with a node will be assigned a baremetal_deployer role."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":12,"id":"df3967d1_e36dc398","line":47,"updated":"2017-08-01 18:45:01.000000000","message":"This still seems useful in the case where nodes have no owner. Users across all projects could be assigned the baremetal_deployer role allowing them to deploy a node with no owner or owned by their project.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"3ce99a9a97fb3b89c2aeed262d966db733a4cdc3","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In both cases, the main thing that a user needs is deploy, rebuild and tear"},{"line_number":46,"context_line":"down their assigned nodes. A user in a project that is able to perform"},{"line_number":47,"context_line":"provisioning actions with a node will be assigned a baremetal_deployer role."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_134e6037","line":47,"in_reply_to":"7f287b81_02ae4197","updated":"2017-08-30 08:57:24.000000000","message":"I guess you potentially lose backwards compatibility by requiring users to have the baremetal_deployer role, which is an issue. I am a bit concerned about creating two separate sets of logic here though, depending on whether a user happens to have the baremetal_deployer role or not. It would be nice if we could fix the common case somehow (which remains admin-requiring in this spec, so nova still needs admin unless *all* nodes are owned), and work project ownership into that?","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7d32af7ebe72e65531a1963d2ab58187b29d8d21","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In both cases, the main thing that a user needs is deploy, rebuild and tear"},{"line_number":46,"context_line":"down their assigned nodes. A user in a project that is able to perform"},{"line_number":47,"context_line":"provisioning actions with a node will be assigned a baremetal_deployer role."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_02ae4197","line":47,"in_reply_to":"df3967d1_e36dc398","updated":"2017-08-28 14:53:45.000000000","message":"hrm, my intent was actually to make nodes with no owner to be admin only, do you think it\u0027s better to do the way you propose here?","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"69acf429bca787d0f70bffe109b5d9f47dfae678","unresolved":false,"context_lines":[{"line_number":51,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"To allow assigning nodes to a specific project, it is proposed to add a new"},{"line_number":54,"context_line":"``owner`` column in the ``nodes`` table, that will represent the"},{"line_number":55,"context_line":"identifier of the entity that has the baremetal_deployer role on this node."},{"line_number":56,"context_line":"In case of using keystone authorization, this will be a ``project_id`` the"},{"line_number":57,"context_line":"node was assigned to. In case of ``noauth`` mode, this can be any identifier."}],"source_content_type":"text/x-rst","patch_set":12,"id":"df3967d1_a3a1fbab","line":54,"updated":"2017-08-01 18:45:01.000000000","message":"Perhaps worth stating early on that null is possible and represents current behaviour? That question occurred to me and I found myself skipping ahead to find the answer.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7d32af7ebe72e65531a1963d2ab58187b29d8d21","unresolved":false,"context_lines":[{"line_number":51,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"To allow assigning nodes to a specific project, it is proposed to add a new"},{"line_number":54,"context_line":"``owner`` column in the ``nodes`` table, that will represent the"},{"line_number":55,"context_line":"identifier of the entity that has the baremetal_deployer role on this node."},{"line_number":56,"context_line":"In case of using keystone authorization, this will be a ``project_id`` the"},{"line_number":57,"context_line":"node was assigned to. In case of ``noauth`` mode, this can be any identifier."}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_4291e94d","line":54,"in_reply_to":"df3967d1_a3a1fbab","updated":"2017-08-28 14:53:45.000000000","message":"++ will do","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"69acf429bca787d0f70bffe109b5d9f47dfae678","unresolved":false,"context_lines":[{"line_number":81,"context_line":"#. Performing VIF attach/detach operations."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"#. Performing power actions through ironic API, in case of issues with soft"},{"line_number":84,"context_line":"   powering off or soft rebooting from inside the instance."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"It will be forbidden for baremetal_deployer to list/show any resources apart"},{"line_number":87,"context_line":"from the assigned nodes. To list or show resources, baremetal_observer role"}],"source_content_type":"text/x-rst","patch_set":12,"id":"df3967d1_03f447ce","line":84,"updated":"2017-08-01 18:45:01.000000000","message":"Needs updating for storage?","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7d32af7ebe72e65531a1963d2ab58187b29d8d21","unresolved":false,"context_lines":[{"line_number":81,"context_line":"#. Performing VIF attach/detach operations."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"#. Performing power actions through ironic API, in case of issues with soft"},{"line_number":84,"context_line":"   powering off or soft rebooting from inside the instance."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"It will be forbidden for baremetal_deployer to list/show any resources apart"},{"line_number":87,"context_line":"from the assigned nodes. To list or show resources, baremetal_observer role"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_42968941","line":84,"in_reply_to":"df3967d1_03f447ce","updated":"2017-08-28 14:53:45.000000000","message":"Done","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"69acf429bca787d0f70bffe109b5d9f47dfae678","unresolved":false,"context_lines":[{"line_number":105,"context_line":"   of nodes."},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"#. Use chassis to do the same thing, requiring ``chassis.uuid`` to be equal to"},{"line_number":108,"context_line":"   the project identifier."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"Data model impact"},{"line_number":111,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"df3967d1_e377033a","line":108,"updated":"2017-08-01 18:45:01.000000000","message":"I think the chassis concept is a bit overused currently, better not complicate it ;-)","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7d32af7ebe72e65531a1963d2ab58187b29d8d21","unresolved":false,"context_lines":[{"line_number":105,"context_line":"   of nodes."},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"#. Use chassis to do the same thing, requiring ``chassis.uuid`` to be equal to"},{"line_number":108,"context_line":"   the project identifier."},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"Data model impact"},{"line_number":111,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_62baa5c1","line":108,"in_reply_to":"df3967d1_e377033a","updated":"2017-08-28 14:53:45.000000000","message":"yeah absolutely agree","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"69acf429bca787d0f70bffe109b5d9f47dfae678","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"``owner`` field will be added to ``nodes`` table. It will be ``null`` by"},{"line_number":114,"context_line":"default, preserving the current behaviour. ``null`` means that this node is"},{"line_number":115,"context_line":"not assigned to any particular project, and is usable only by admin."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"This column\u0027s type will be String(length\u003d36), as the most common use for it is"},{"line_number":118,"context_line":"storing a UUID."}],"source_content_type":"text/x-rst","patch_set":12,"id":"df3967d1_a3be9b62","line":115,"updated":"2017-08-01 18:45:01.000000000","message":"What happens when some nodes are owned and some are not? Can a user in a project with dedicated nodes also provision nodes with no owner?","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"3ce99a9a97fb3b89c2aeed262d966db733a4cdc3","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"``owner`` field will be added to ``nodes`` table. It will be ``null`` by"},{"line_number":114,"context_line":"default, preserving the current behaviour. ``null`` means that this node is"},{"line_number":115,"context_line":"not assigned to any particular project, and is usable only by admin."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"This column\u0027s type will be String(length\u003d36), as the most common use for it is"},{"line_number":118,"context_line":"storing a UUID."}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_136780b9","line":115,"in_reply_to":"7f287b81_a2c3ed37","updated":"2017-08-30 08:57:24.000000000","message":"Ok, but would the nova ironic driver see that the node is not owned and use admin, even for users with the baremetal_deployer role?","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7d32af7ebe72e65531a1963d2ab58187b29d8d21","unresolved":false,"context_lines":[{"line_number":112,"context_line":""},{"line_number":113,"context_line":"``owner`` field will be added to ``nodes`` table. It will be ``null`` by"},{"line_number":114,"context_line":"default, preserving the current behaviour. ``null`` means that this node is"},{"line_number":115,"context_line":"not assigned to any particular project, and is usable only by admin."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"This column\u0027s type will be String(length\u003d36), as the most common use for it is"},{"line_number":118,"context_line":"storing a UUID."}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_a2c3ed37","line":115,"in_reply_to":"df3967d1_a3be9b62","updated":"2017-08-28 14:53:45.000000000","message":"nope, current behaviour means nodes being admin-only","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"69acf429bca787d0f70bffe109b5d9f47dfae678","unresolved":false,"context_lines":[{"line_number":305,"context_line":"continues to work as before, by querying all nodes with ironic service (admin)"},{"line_number":306,"context_line":"credentials. If set to ``True``, nova will use the credentials from its"},{"line_number":307,"context_line":"request context to query ironic, and ironic service admin credentials are not"},{"line_number":308,"context_line":"going to be required anymore."},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"In case of having several compute nodes with ironic virt driver, it is"},{"line_number":311,"context_line":"required for all of them to have the ``[ironic]use_owner_aware_nodes`` set"}],"source_content_type":"text/x-rst","patch_set":12,"id":"df3967d1_e39263f6","line":308,"updated":"2017-08-01 18:45:01.000000000","message":"It seems a shame that this is all or nothing. I could imagine a case where there is a large shared pool of nodes and several smaller pools dedicated to specific projects.\n\nIn that case, would it be possible to check whether the user has the baremetal_deployer role? If so, the shared nodes could be added to a shared node project, and the \u0027admin\u0027 user could just be another user with a baremetal_deployer role in the shared nodes project.\n\nIt does seem like things will get fiddly if ownership and non-ownership is mixed.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"3ce99a9a97fb3b89c2aeed262d966db733a4cdc3","unresolved":false,"context_lines":[{"line_number":305,"context_line":"continues to work as before, by querying all nodes with ironic service (admin)"},{"line_number":306,"context_line":"credentials. If set to ``True``, nova will use the credentials from its"},{"line_number":307,"context_line":"request context to query ironic, and ironic service admin credentials are not"},{"line_number":308,"context_line":"going to be required anymore."},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"In case of having several compute nodes with ironic virt driver, it is"},{"line_number":311,"context_line":"required for all of them to have the ``[ironic]use_owner_aware_nodes`` set"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_9385b009","line":308,"in_reply_to":"7f287b81_1df10602","updated":"2017-08-30 08:57:24.000000000","message":"Yes, I guess that\u0027s true.\n\nJust a thought here, if we are requiring users to have the baremetal_deployer role in order to deploy, then those users will have access to those ironic API calls (assuming they can reach it), without needing to use nova.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"d774c64690e70a70744fc09ab8b31a947c59f6dc","unresolved":false,"context_lines":[{"line_number":305,"context_line":"continues to work as before, by querying all nodes with ironic service (admin)"},{"line_number":306,"context_line":"credentials. If set to ``True``, nova will use the credentials from its"},{"line_number":307,"context_line":"request context to query ironic, and ironic service admin credentials are not"},{"line_number":308,"context_line":"going to be required anymore."},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"In case of having several compute nodes with ironic virt driver, it is"},{"line_number":311,"context_line":"required for all of them to have the ``[ironic]use_owner_aware_nodes`` set"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_1df10602","line":308,"in_reply_to":"df3967d1_e39263f6","updated":"2017-08-28 14:56:50.000000000","message":"Yeah, but the problem is, what is considered a baremetal_deployer is defined in the ironic policy, and it can be changed if needed by the operator, so not sure how we could achieve this. We could just do requests to ironic to check who is an owner of a particular node, but it seems like it is not a good way and will slow down scheduling.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"69acf429bca787d0f70bffe109b5d9f47dfae678","unresolved":false,"context_lines":[{"line_number":323,"context_line":"In order to upgrade, ironic API should be upgraded first, followed by nova"},{"line_number":324,"context_line":"computes. To avoid the situation described in the second paragraph in this"},{"line_number":325,"context_line":"section, ironic API should be shut down until all the nova computes will be"},{"line_number":326,"context_line":"changed to use ``[ironic]use_owner_aware_nodes\u003dTrue``."},{"line_number":327,"context_line":""},{"line_number":328,"context_line":"Nova\u0027s resource tracker will be responsible for keeping track of nodes\u0027"},{"line_number":329,"context_line":"``owner`` value, and updating the resource providers with this value set as a"}],"source_content_type":"text/x-rst","patch_set":12,"id":"df3967d1_23b2ab95","line":326,"updated":"2017-08-01 18:45:01.000000000","message":"This upgrade doesn\u0027t sound very rollable...","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7d32af7ebe72e65531a1963d2ab58187b29d8d21","unresolved":false,"context_lines":[{"line_number":323,"context_line":"In order to upgrade, ironic API should be upgraded first, followed by nova"},{"line_number":324,"context_line":"computes. To avoid the situation described in the second paragraph in this"},{"line_number":325,"context_line":"section, ironic API should be shut down until all the nova computes will be"},{"line_number":326,"context_line":"changed to use ``[ironic]use_owner_aware_nodes\u003dTrue``."},{"line_number":327,"context_line":""},{"line_number":328,"context_line":"Nova\u0027s resource tracker will be responsible for keeping track of nodes\u0027"},{"line_number":329,"context_line":"``owner`` value, and updating the resource providers with this value set as a"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_c2f8397c","line":326,"in_reply_to":"df3967d1_23b2ab95","updated":"2017-08-28 14:53:45.000000000","message":"Yeah :( tho even right now we have to restrict some actions during the upgrade to avoid weird situations. This is the case when it has to be done.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"638c36b498c824b4f75fdeb2ef32f6401c462de2","unresolved":false,"context_lines":[{"line_number":332,"context_line":"calls, e.g. VIF attachment, will fail, and it should cause the ``Rescheduled``"},{"line_number":333,"context_line":"exception, so that other nodes can be tried. If it gets updated only on nova"},{"line_number":334,"context_line":"side, and this resource provider gets selected by the scheduler, the deployment"},{"line_number":335,"context_line":"to such node will fail as well."},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"Ramdisk impact"},{"line_number":338,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"df3967d1_2cccddba","line":335,"updated":"2017-08-01 17:20:22.000000000","message":"This is an interesting use of traits. I guess it kind of makes sense: you\u0027re trying to say indicate two things:\n\n* this baremetal has the trait of being owned by \"foouser\"\n* I want to be able to placement only on barement owned by \"foouser\"\n\nWhere in a placement request would \"foouser\" be used? Is the assumption that it is implicit from the context of the request? Something needs to make sure the trait is passed to placement when filtering resource providers.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"1b54ef43470f59edeb9296ddcfe909b8dfcaa998","unresolved":false,"context_lines":[{"line_number":332,"context_line":"calls, e.g. VIF attachment, will fail, and it should cause the ``Rescheduled``"},{"line_number":333,"context_line":"exception, so that other nodes can be tried. If it gets updated only on nova"},{"line_number":334,"context_line":"side, and this resource provider gets selected by the scheduler, the deployment"},{"line_number":335,"context_line":"to such node will fail as well."},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"Ramdisk impact"},{"line_number":338,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_dddc9ee5","line":335,"in_reply_to":"7f287b81_7d45aa42","updated":"2017-08-28 15:13:56.000000000","message":"Actually, it seems like there is a /policies endpoint in keystone. So if nova could check if a request is done by an admin, it could also add an owned_by_admin trait to the request, and it would filter the nodes properly. And it seems like it covers all cases for us! (I hope :))","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7d32af7ebe72e65531a1963d2ab58187b29d8d21","unresolved":false,"context_lines":[{"line_number":332,"context_line":"calls, e.g. VIF attachment, will fail, and it should cause the ``Rescheduled``"},{"line_number":333,"context_line":"exception, so that other nodes can be tried. If it gets updated only on nova"},{"line_number":334,"context_line":"side, and this resource provider gets selected by the scheduler, the deployment"},{"line_number":335,"context_line":"to such node will fail as well."},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"Ramdisk impact"},{"line_number":338,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"7f287b81_7d45aa42","line":335,"in_reply_to":"df3967d1_2cccddba","updated":"2017-08-28 14:53:45.000000000","message":"Yup, exactly, from context. Also we\u0027ll need to indicate somehow that if an admin does a request with no trait, only nodes having owner\u003dNone should be selected. OTOH, we could just make some kind of fake trait for that, like owned_by_baremetal_admin? tho who is a baremetal_admin is defined in ironic policy, so not sure what\u0027s the best way here. need to check if there is a way to make placement not to return hosts with traits if none was requested.","commit_id":"e0041199b104840c9b7c4eed281c6b8c16f1332f"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"b1ef6c4f37cc4c2d48d378fd8d4a2664c689b162","unresolved":false,"context_lines":[{"line_number":32,"context_line":"In case of nova, or another service that performs actions on the baremetal"},{"line_number":33,"context_line":"nodes, we need to provide admin credentials to it. In general, this should"},{"line_number":34,"context_line":"be avoided, nova could use the context provided by the user request to deploy"},{"line_number":35,"context_line":"the instance to a node that this particular user can manage."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Another use case where owner-aware nodes would bring benefit, is having"},{"line_number":38,"context_line":"several projects that need to be isolated in term of resource pools, so that"}],"source_content_type":"text/x-rst","patch_set":14,"id":"7f287b81_8e7aa5b7","line":35,"updated":"2017-09-05 13:41:05.000000000","message":"So problem can now be avoided using the service user, as described here:\nhttp://specs.openstack.org/openstack/nova-specs/specs/ocata/implemented/use-service-tokens.html\n\nBasically Nova sends keystone middleware on downstream service two tokens, a Nova service token, along with the user\u0027s token. The middleware will ignore the expiry of the user token for a configurable number of hours to stop token expiry issues.\n\n... having said all that, I think it might make the next bits easier to implement. It also enables the option of reserving some things for only Nova to assign, if you so wish.","commit_id":"8f1960f3f50631338a369081f503c42df2000a4c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"48519d017dd27ac3b5579adc4de3c952b5684566","unresolved":false,"context_lines":[{"line_number":32,"context_line":"In case of nova, or another service that performs actions on the baremetal"},{"line_number":33,"context_line":"nodes, we need to provide admin credentials to it. In general, this should"},{"line_number":34,"context_line":"be avoided, nova could use the context provided by the user request to deploy"},{"line_number":35,"context_line":"the instance to a node that this particular user can manage."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Another use case where owner-aware nodes would bring benefit, is having"},{"line_number":38,"context_line":"several projects that need to be isolated in term of resource pools, so that"}],"source_content_type":"text/x-rst","patch_set":14,"id":"7f287b81_9eb774d9","line":35,"in_reply_to":"7f287b81_8e7aa5b7","updated":"2017-09-05 14:37:16.000000000","message":"Yes, this is useful, but not sure if it\u0027s related to the thing described here - there is no notion of nodes owned by a project at all currently in ironic. With user token you\u0027ll only be able to list nodes, if it is a baremetal_observer, or even won\u0027t be able to do anything at all.","commit_id":"8f1960f3f50631338a369081f503c42df2000a4c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"adcb24f084b70a29b0d41bb8455c9cb969f145a4","unresolved":false,"context_lines":[{"line_number":32,"context_line":"In case of nova, or another service that performs actions on the baremetal"},{"line_number":33,"context_line":"nodes, we need to provide admin credentials to it. In general, this should"},{"line_number":34,"context_line":"be avoided, nova could use the context provided by the user request to deploy"},{"line_number":35,"context_line":"the instance to a node that this particular user can manage."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Another use case where owner-aware nodes would bring benefit, is having"},{"line_number":38,"context_line":"several projects that need to be isolated in term of resource pools, so that"}],"source_content_type":"text/x-rst","patch_set":14,"id":"7f287b81_11cb7553","line":35,"in_reply_to":"7f287b81_9eb774d9","updated":"2017-09-05 14:56:44.000000000","message":"Or rather I\u0027d say, if we start actually passing user context to ironic (we will if what is proposed here is implemented), then yes, we\u0027d also pass the service token, to avoid that expiration problem.","commit_id":"8f1960f3f50631338a369081f503c42df2000a4c"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"de3674580934d3b62818cf7bbd4f5fd114a8867e","unresolved":false,"context_lines":[{"line_number":42,"context_line":"the need to migrate data between multiple Ironic installations to move a node"},{"line_number":43,"context_line":"from one \"sub-cloud\" to another."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In both cases, the main thing that a user needs is deploy, rebuild and tear"},{"line_number":46,"context_line":"down their assigned nodes. A user in a project that is able to perform"},{"line_number":47,"context_line":"provisioning actions with a node will be assigned a baremetal_deployer role."},{"line_number":48,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"5f2577a7_2b2e3143","line":45,"range":{"start_line":45,"start_character":42,"end_line":45,"end_character":57},"updated":"2017-09-11 16:05:34.000000000","message":"needs to do is deploy","commit_id":"8f1960f3f50631338a369081f503c42df2000a4c"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"b1ef6c4f37cc4c2d48d378fd8d4a2664c689b162","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In both cases, the main thing that a user needs is deploy, rebuild and tear"},{"line_number":46,"context_line":"down their assigned nodes. A user in a project that is able to perform"},{"line_number":47,"context_line":"provisioning actions with a node will be assigned a baremetal_deployer role."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":14,"id":"7f287b81_a9e55b3a","line":47,"updated":"2017-09-05 13:41:05.000000000","message":"I am curious...\n\nThe key bit here seems to be \"user awareness\" without the use of Nova?\n\nDoes this need to work also when using Nova? Would Nova be one of multiple users?\n\nI am guessing the problem with the Nova solution is host aggregates doesn\u0027t work as all the resource providers appear to come from the same \"host\". Is this because that doesn\u0027t work?","commit_id":"8f1960f3f50631338a369081f503c42df2000a4c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"48519d017dd27ac3b5579adc4de3c952b5684566","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"In both cases, the main thing that a user needs is deploy, rebuild and tear"},{"line_number":46,"context_line":"down their assigned nodes. A user in a project that is able to perform"},{"line_number":47,"context_line":"provisioning actions with a node will be assigned a baremetal_deployer role."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":14,"id":"7f287b81_1e3ee428","line":47,"in_reply_to":"7f287b81_a9e55b3a","updated":"2017-09-05 14:37:16.000000000","message":"yeah nova\u0027s host aggregates won\u0027t work for us because of the hash ring. and yes, we do want to make it possible for nova AND other ironic api consumers (standalone, mogan?) to know about node ownership.","commit_id":"8f1960f3f50631338a369081f503c42df2000a4c"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"b1ef6c4f37cc4c2d48d378fd8d4a2664c689b162","unresolved":false,"context_lines":[{"line_number":53,"context_line":"To allow assigning nodes to a specific project, it is proposed to make use of"},{"line_number":54,"context_line":"the Placement service."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Each node will be registered into the placement service as a resource provider."},{"line_number":57,"context_line":"This can be done only by an administrator. Trait set on this resource"},{"line_number":58,"context_line":"provider, for example, ``CUSTOM_IRONIC_OWNER_\u003cID\u003e`` can designate that this"},{"line_number":59,"context_line":"resource provider can be used by a specific owner. Each resource provider can"}],"source_content_type":"text/x-rst","patch_set":14,"id":"7f287b81_89673fb8","line":56,"range":{"start_line":56,"start_character":10,"end_line":56,"end_character":28},"updated":"2017-09-05 13:41:05.000000000","message":"Nova does that automatically, I am curious if this conflicts with that or works with it. I could see the adding of traits after Nova has added the entries?","commit_id":"8f1960f3f50631338a369081f503c42df2000a4c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"48519d017dd27ac3b5579adc4de3c952b5684566","unresolved":false,"context_lines":[{"line_number":53,"context_line":"To allow assigning nodes to a specific project, it is proposed to make use of"},{"line_number":54,"context_line":"the Placement service."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Each node will be registered into the placement service as a resource provider."},{"line_number":57,"context_line":"This can be done only by an administrator. Trait set on this resource"},{"line_number":58,"context_line":"provider, for example, ``CUSTOM_IRONIC_OWNER_\u003cID\u003e`` can designate that this"},{"line_number":59,"context_line":"resource provider can be used by a specific owner. Each resource provider can"}],"source_content_type":"text/x-rst","patch_set":14,"id":"7f287b81_1e270415","line":56,"range":{"start_line":56,"start_character":10,"end_line":56,"end_character":28},"in_reply_to":"7f287b81_89673fb8","updated":"2017-09-05 14:37:16.000000000","message":"Yes, nova does, here I was referring to standalone case. I\u0027ll need to clarify it better. And with traits, a couple PS ago, this was the proposal :) but what is currently descibed is, placement is the source of truth, and owner field in ironic is set if the user doing the request to deploy has a trait corresponding to project_id set in placement. if it\u0027s the case, this project_id will be set to owner column in ironic.","commit_id":"8f1960f3f50631338a369081f503c42df2000a4c"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"b1ef6c4f37cc4c2d48d378fd8d4a2664c689b162","unresolved":false,"context_lines":[{"line_number":59,"context_line":"resource provider can be used by a specific owner. Each resource provider can"},{"line_number":60,"context_line":"have multiple traits, so if necessary, an operator can allow multiple"},{"line_number":61,"context_line":"projects\u0027 users to deploy the node. Admin project ID trait needs to be assigned"},{"line_number":62,"context_line":"to all resource providers."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"The resource providers can be grouped into Placement service\u0027s aggregates as"},{"line_number":65,"context_line":"well. This can be done so that an operator can assign a trait to all resource"}],"source_content_type":"text/x-rst","patch_set":14,"id":"7f287b81_29272b67","line":62,"updated":"2017-09-05 13:41:05.000000000","message":"For some reason I like the idea of adding a role as well, instead of specific projects, but I am probably overthinking that.","commit_id":"8f1960f3f50631338a369081f503c42df2000a4c"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"b1ef6c4f37cc4c2d48d378fd8d4a2664c689b162","unresolved":false,"context_lines":[{"line_number":129,"context_line":"------------"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"#. Having separate ironic deployments when there is a need to split the pool"},{"line_number":132,"context_line":"   of nodes."},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"#. Use chassis to do the same thing, requiring ``chassis.uuid`` to be equal to"},{"line_number":135,"context_line":"   the project identifier. Similar thing could be done with a"}],"source_content_type":"text/x-rst","patch_set":14,"id":"7f287b81_a9531be2","line":132,"updated":"2017-09-05 13:41:05.000000000","message":"What about a node having both a resource class and a list of placement aggregate uuids?\n\nYou could then tell the Nova ironic driver to only expose the nodes for a specific placement aggregate. You can then use host aggregates in the normal way to influence scheduling.\n\nNot saying I like that approach yet, feels like too many layers, but I like the idea of listing it in the alternatives.","commit_id":"8f1960f3f50631338a369081f503c42df2000a4c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"48519d017dd27ac3b5579adc4de3c952b5684566","unresolved":false,"context_lines":[{"line_number":129,"context_line":"------------"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"#. Having separate ironic deployments when there is a need to split the pool"},{"line_number":132,"context_line":"   of nodes."},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"#. Use chassis to do the same thing, requiring ``chassis.uuid`` to be equal to"},{"line_number":135,"context_line":"   the project identifier. Similar thing could be done with a"}],"source_content_type":"text/x-rst","patch_set":14,"id":"7f287b81_1e5f0442","line":132,"in_reply_to":"7f287b81_a9531be2","updated":"2017-09-05 14:37:16.000000000","message":"Hrm, so is it going to be all or nothing? Like, all nodes from these aggregates are usable by nova?","commit_id":"8f1960f3f50631338a369081f503c42df2000a4c"}],"specs/approved/tenant-aware-nodes.rst":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"#. Updating some of the node\u0027s fields, namely ``instance_uuid`` (in case"},{"line_number":60,"context_line":"   it\u0027s needed) and ``instance_info`` (to pass any deployment-specific"},{"line_number":61,"context_line":"   information). This should be allowed only for nodes in ``available``"},{"line_number":62,"context_line":"   states."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"#. Performing VIF attach/detach operations."},{"line_number":65,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_8d31b95c","line":62,"range":{"start_line":61,"start_character":18,"end_line":62,"end_character":10},"updated":"2016-12-29 01:48:46.000000000","message":"Looks also that in deploy fail state because user should be able to fix mistake in instance configuration before rebuild.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"#. Updating some of the node\u0027s fields, namely ``instance_uuid`` (in case"},{"line_number":60,"context_line":"   it\u0027s needed) and ``instance_info`` (to pass any deployment-specific"},{"line_number":61,"context_line":"   information). This should be allowed only for nodes in ``available``"},{"line_number":62,"context_line":"   states."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"#. Performing VIF attach/detach operations."},{"line_number":65,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_8d5256dc","line":62,"range":{"start_line":61,"start_character":18,"end_line":62,"end_character":10},"in_reply_to":"da4df55a_8d31b95c","updated":"2016-12-29 16:31:52.000000000","message":"Done","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":66,"context_line":"#. Performing power actions through ironic API, in case of issues with soft"},{"line_number":67,"context_line":"   powering off or soft rebooting from inside the instance."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"It will be forbidden for baremetal_deployer to list/show any resources apart"},{"line_number":70,"context_line":"from the assigned nodes."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"All the allow/deny logic for the actions mentioned above is going to be done"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_6d15759a","line":69,"range":{"start_line":69,"start_character":25,"end_line":69,"end_character":43},"updated":"2016-12-29 01:48:46.000000000","message":"As I understand this will be default role for non-admin user, please mention above.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":66,"context_line":"#. Performing power actions through ironic API, in case of issues with soft"},{"line_number":67,"context_line":"   powering off or soft rebooting from inside the instance."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"It will be forbidden for baremetal_deployer to list/show any resources apart"},{"line_number":70,"context_line":"from the assigned nodes."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"All the allow/deny logic for the actions mentioned above is going to be done"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_ad5d5aee","line":69,"range":{"start_line":69,"start_character":25,"end_line":69,"end_character":43},"in_reply_to":"da4df55a_6d15759a","updated":"2016-12-29 16:31:52.000000000","message":"See lines 37-39","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":70,"context_line":"from the assigned nodes."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"All the allow/deny logic for the actions mentioned above is going to be done"},{"line_number":73,"context_line":"via policies."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Alternatives"},{"line_number":76,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_cd0e618b","line":73,"range":{"start_line":73,"start_character":4,"end_line":73,"end_character":12},"updated":"2016-12-29 01:48:46.000000000","message":"oslo policies","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":70,"context_line":"from the assigned nodes."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"All the allow/deny logic for the actions mentioned above is going to be done"},{"line_number":73,"context_line":"via policies."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Alternatives"},{"line_number":76,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_ed0e82e4","line":73,"range":{"start_line":73,"start_character":4,"end_line":73,"end_character":12},"in_reply_to":"da4df55a_cd0e618b","updated":"2016-12-29 16:31:52.000000000","message":"Done","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"All the allow/deny logic for the actions mentioned above is going to be done"},{"line_number":73,"context_line":"via policies."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Alternatives"},{"line_number":76,"context_line":"------------"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_cd46617a","line":74,"updated":"2016-12-29 01:48:46.000000000","message":"We should change also API that return list of nodes, non-admin user should see nodes only from own tenant.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"All the allow/deny logic for the actions mentioned above is going to be done"},{"line_number":73,"context_line":"via policies."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Alternatives"},{"line_number":76,"context_line":"------------"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_8daa566f","line":74,"in_reply_to":"da4df55a_cd46617a","updated":"2016-12-29 16:31:52.000000000","message":"Will add this to API impact.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":78,"context_line":"#. Having separate ironic deployments when there is a need to split the pool"},{"line_number":79,"context_line":"   of nodes."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"#. Use chassis to do the same thing, requiring ``chassis.uuid`` to be equal to"},{"line_number":82,"context_line":"   the tenant identifier."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_2d20cdf6","line":81,"updated":"2016-12-29 01:48:46.000000000","message":"Looks like a hack.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":78,"context_line":"#. Having separate ironic deployments when there is a need to split the pool"},{"line_number":79,"context_line":"   of nodes."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"#. Use chassis to do the same thing, requiring ``chassis.uuid`` to be equal to"},{"line_number":82,"context_line":"   the tenant identifier."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_adb55ad1","line":81,"in_reply_to":"da4df55a_2d20cdf6","updated":"2016-12-29 16:31:52.000000000","message":"That\u0027s what it is :)","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"``assigned_to`` field will be added to ``nodes`` table. It will be ``null`` by"},{"line_number":88,"context_line":"default, preserving the current behaviour. ``null`` means that this node is"},{"line_number":89,"context_line":"not assigned to any particular tenant, and is usable only by admin."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"State Machine Impact"},{"line_number":92,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_cd8581cf","line":89,"updated":"2016-12-29 01:48:46.000000000","message":"String with ... length? Index on this field?","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"``assigned_to`` field will be added to ``nodes`` table. It will be ``null`` by"},{"line_number":88,"context_line":"default, preserving the current behaviour. ``null`` means that this node is"},{"line_number":89,"context_line":"not assigned to any particular tenant, and is usable only by admin."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"State Machine Impact"},{"line_number":92,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_edfda26f","line":89,"in_reply_to":"da4df55a_cd8581cf","updated":"2016-12-29 16:31:52.000000000","message":"Will do","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"7a0db8d71b207aed8a8f6fc483d5e783717a4b0f","unresolved":false,"context_lines":[{"line_number":143,"context_line":"          \"type\": \"object\""},{"line_number":144,"context_line":"        },"},{"line_number":145,"context_line":"      },"},{"line_number":146,"context_line":"      \"oneOf\": ["},{"line_number":147,"context_line":"        {\"required\": [\"instance_uuid\"]},"},{"line_number":148,"context_line":"        {\"required\": [\"instance_info\"]}"},{"line_number":149,"context_line":"      ]"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_e89953c5","line":146,"updated":"2016-12-29 02:07:21.000000000","message":"Sorry there is one of.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":143,"context_line":"          \"type\": \"object\""},{"line_number":144,"context_line":"        },"},{"line_number":145,"context_line":"      },"},{"line_number":146,"context_line":"      \"oneOf\": ["},{"line_number":147,"context_line":"        {\"required\": [\"instance_uuid\"]},"},{"line_number":148,"context_line":"        {\"required\": [\"instance_info\"]}"},{"line_number":149,"context_line":"      ]"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_8defb6af","line":146,"in_reply_to":"da4df55a_e89953c5","updated":"2016-12-29 16:31:52.000000000","message":"Exactly, this basically means match the schema with either of them.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        },"},{"line_number":145,"context_line":"      },"},{"line_number":146,"context_line":"      \"oneOf\": ["},{"line_number":147,"context_line":"        {\"required\": [\"instance_uuid\"]},"},{"line_number":148,"context_line":"        {\"required\": [\"instance_info\"]}"},{"line_number":149,"context_line":"      ]"},{"line_number":150,"context_line":"    }"},{"line_number":151,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_0d014938","line":148,"range":{"start_line":147,"start_character":10,"end_line":148,"end_character":20},"updated":"2016-12-29 01:48:46.000000000","message":"Looks strange that both are required, Nova or standalone software can send one key after one.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"7a0db8d71b207aed8a8f6fc483d5e783717a4b0f","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        },"},{"line_number":145,"context_line":"      },"},{"line_number":146,"context_line":"      \"oneOf\": ["},{"line_number":147,"context_line":"        {\"required\": [\"instance_uuid\"]},"},{"line_number":148,"context_line":"        {\"required\": [\"instance_info\"]}"},{"line_number":149,"context_line":"      ]"},{"line_number":150,"context_line":"    }"},{"line_number":151,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_6802c30b","line":148,"range":{"start_line":147,"start_character":10,"end_line":148,"end_character":20},"in_reply_to":"da4df55a_0d014938","updated":"2016-12-29 02:07:21.000000000","message":"Maybe makes sense, I\u0027m not sure.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"7a0db8d71b207aed8a8f6fc483d5e783717a4b0f","unresolved":false,"context_lines":[{"line_number":176,"context_line":"  # Retrieve Node records"},{"line_number":177,"context_line":"  \"baremetal:node:get\": \"rule:is_admin or rule:is_observer or rule:is_deployer\""},{"line_number":178,"context_line":"  # Retrieve Node boot device metadata"},{"line_number":179,"context_line":"  \"baremetal:node:get_boot_device\": \"rule:is_admin or rule:is_observer or rule:is_deployer\""},{"line_number":180,"context_line":"  # View Node power and provision state"},{"line_number":181,"context_line":"  \"baremetal:node:get_states\": \"rule:is_admin or rule:is_observer or rule:is_deployer\""},{"line_number":182,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_e83dd3c4","line":179,"updated":"2016-12-29 02:07:21.000000000","message":"This is not needed for non-admin users, drivers change boot device automatically during deploy.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":176,"context_line":"  # Retrieve Node records"},{"line_number":177,"context_line":"  \"baremetal:node:get\": \"rule:is_admin or rule:is_observer or rule:is_deployer\""},{"line_number":178,"context_line":"  # Retrieve Node boot device metadata"},{"line_number":179,"context_line":"  \"baremetal:node:get_boot_device\": \"rule:is_admin or rule:is_observer or rule:is_deployer\""},{"line_number":180,"context_line":"  # View Node power and provision state"},{"line_number":181,"context_line":"  \"baremetal:node:get_states\": \"rule:is_admin or rule:is_observer or rule:is_deployer\""},{"line_number":182,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_ed34c24b","line":179,"in_reply_to":"da4df55a_e83dd3c4","updated":"2016-12-29 16:31:52.000000000","message":"Yeah, removing.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":188,"context_line":""},{"line_number":189,"context_line":"  # Set Node deployment information"},{"line_number":190,"context_line":"  \"baremetal:node:set_deploy_info\": \"rule:is_admin or rule:is_deployer\""},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"Client (CLI) impact"},{"line_number":193,"context_line":"-------------------"},{"line_number":194,"context_line":"Typically, but not always, if there are any REST API changes, there are"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_6d66552b","line":191,"updated":"2016-12-29 01:48:46.000000000","message":"Please add a list of API endpoints with info: default policies allow non-admin user access or not.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":188,"context_line":""},{"line_number":189,"context_line":"  # Set Node deployment information"},{"line_number":190,"context_line":"  \"baremetal:node:set_deploy_info\": \"rule:is_admin or rule:is_deployer\""},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"Client (CLI) impact"},{"line_number":193,"context_line":"-------------------"},{"line_number":194,"context_line":"Typically, but not always, if there are any REST API changes, there are"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_edb5a27e","line":191,"in_reply_to":"ba5201f7_b6be90d2","updated":"2016-12-29 16:31:52.000000000","message":"Hrm, why mention them all, even the ones that don\u0027t change? I\u0027m listing only the ones that change here.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"4ae1bd6dfa3a44fb015e2b7a16084e41918d1df1","unresolved":false,"context_lines":[{"line_number":188,"context_line":""},{"line_number":189,"context_line":"  # Set Node deployment information"},{"line_number":190,"context_line":"  \"baremetal:node:set_deploy_info\": \"rule:is_admin or rule:is_deployer\""},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"Client (CLI) impact"},{"line_number":193,"context_line":"-------------------"},{"line_number":194,"context_line":"Typically, but not always, if there are any REST API changes, there are"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_b6be90d2","line":191,"in_reply_to":"da4df55a_6d66552b","updated":"2016-12-29 07:00:04.000000000","message":"My opinion about node (all limited by tenant):\nboot devices - no\nconsoles -no\nall power states and limited provision states (all limited by current state)\nraid - no\nvendor - no\nput/delete maintenance - no\nget lists - yes\nvalidate - no\nget node - yes\npost node - no\npatch node - no\ndelete node - no","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":207,"context_line":"RPC API impact"},{"line_number":208,"context_line":"--------------"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"Changes which affect the RPC API should be listed here. For example:"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"* What are the changes, if any, to existing API calls?"},{"line_number":213,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_ad9e7d04","line":210,"updated":"2016-12-29 01:48:46.000000000","message":"Please remove this.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":207,"context_line":"RPC API impact"},{"line_number":208,"context_line":"--------------"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"Changes which affect the RPC API should be listed here. For example:"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"* What are the changes, if any, to existing API calls?"},{"line_number":213,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_1073d9b2","line":210,"in_reply_to":"da4df55a_ad9e7d04","updated":"2016-12-29 16:31:52.000000000","message":"Done","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"7a0db8d71b207aed8a8f6fc483d5e783717a4b0f","unresolved":false,"context_lines":[{"line_number":224,"context_line":""},{"line_number":225,"context_line":"Nova driver impact"},{"line_number":226,"context_line":"------------------"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"Chances are, if this change affects the REST or Driver APIs, it will also"},{"line_number":229,"context_line":"affect the Nova driver in some way. If this requires a functional change in"},{"line_number":230,"context_line":"Nova, chances are the Nova team will require a spec to discuss the changes to"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_086777e9","line":227,"updated":"2016-12-29 02:07:21.000000000","message":"A lot if we want not only standalone case for this feature.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":224,"context_line":""},{"line_number":225,"context_line":"Nova driver impact"},{"line_number":226,"context_line":"------------------"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"Chances are, if this change affects the REST or Driver APIs, it will also"},{"line_number":229,"context_line":"affect the Nova driver in some way. If this requires a functional change in"},{"line_number":230,"context_line":"Nova, chances are the Nova team will require a spec to discuss the changes to"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_506561df","line":227,"in_reply_to":"da4df55a_086777e9","updated":"2016-12-29 16:31:52.000000000","message":"Yes, will add things here","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":251,"context_line":"Security impact"},{"line_number":252,"context_line":"---------------"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"Describe any potential security impact on the system.  Some of the items to"},{"line_number":255,"context_line":"consider include:"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"* Does this change touch sensitive data such as tokens, keys, or credentials?"}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_0d8869c4","line":254,"updated":"2016-12-29 01:48:46.000000000","message":"It is is a security improvement.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":251,"context_line":"Security impact"},{"line_number":252,"context_line":"---------------"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"Describe any potential security impact on the system.  Some of the items to"},{"line_number":255,"context_line":"consider include:"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"* Does this change touch sensitive data such as tokens, keys, or credentials?"}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_706265da","line":254,"in_reply_to":"da4df55a_0d8869c4","updated":"2016-12-29 16:31:52.000000000","message":"Well, not really, we\u0027re allowing more users to do things :) Will add something here too.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":281,"context_line":""},{"line_number":282,"context_line":"Other end user impact"},{"line_number":283,"context_line":"---------------------"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"Aside from the API and client, are there other ways a user will interact with"},{"line_number":286,"context_line":"this feature?"},{"line_number":287,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_4d8ef1d0","line":284,"updated":"2016-12-29 01:48:46.000000000","message":"None","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":281,"context_line":""},{"line_number":282,"context_line":"Other end user impact"},{"line_number":283,"context_line":"---------------------"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"Aside from the API and client, are there other ways a user will interact with"},{"line_number":286,"context_line":"this feature?"},{"line_number":287,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_905fc90d","line":284,"in_reply_to":"da4df55a_4d8ef1d0","updated":"2016-12-29 16:31:52.000000000","message":"Actually, ironic-ui may use it, I\u0027m not really sure if there need to be any changes there.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":290,"context_line":""},{"line_number":291,"context_line":"Scalability impact"},{"line_number":292,"context_line":"------------------"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"Describe any potential scalability impact on the system, for example any"},{"line_number":295,"context_line":"increase in network, RPC, or database traffic, or whether the feature"},{"line_number":296,"context_line":"requires synchronization across multiple services."}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_6dbf3561","line":293,"updated":"2016-12-29 01:48:46.000000000","message":"None","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":290,"context_line":""},{"line_number":291,"context_line":"Scalability impact"},{"line_number":292,"context_line":"------------------"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"Describe any potential scalability impact on the system, for example any"},{"line_number":295,"context_line":"increase in network, RPC, or database traffic, or whether the feature"},{"line_number":296,"context_line":"requires synchronization across multiple services."}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_d09f91b2","line":293,"in_reply_to":"da4df55a_6dbf3561","updated":"2016-12-29 16:31:52.000000000","message":"Done","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6693424149a33c5d605f260988d2f073c52fdabb","unresolved":false,"context_lines":[{"line_number":306,"context_line":""},{"line_number":307,"context_line":"Performance Impact"},{"line_number":308,"context_line":"------------------"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"Describe any potential performance impact on the system, for example"},{"line_number":311,"context_line":"how often will new code be called, and is there a major change to the calling"},{"line_number":312,"context_line":"pattern of existing code."}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_8dc299e7","line":309,"updated":"2016-12-29 01:48:46.000000000","message":"None","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"408f91c11d72ef38e75f738a94349cff2d8a8be3","unresolved":false,"context_lines":[{"line_number":306,"context_line":""},{"line_number":307,"context_line":"Performance Impact"},{"line_number":308,"context_line":"------------------"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"Describe any potential performance impact on the system, for example"},{"line_number":311,"context_line":"how often will new code be called, and is there a major change to the calling"},{"line_number":312,"context_line":"pattern of existing code."}],"source_content_type":"text/x-rst","patch_set":1,"id":"ba5201f7_f0a49509","line":309,"in_reply_to":"da4df55a_8dc299e7","updated":"2016-12-29 16:31:52.000000000","message":"There is a slight one.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"7a0db8d71b207aed8a8f6fc483d5e783717a4b0f","unresolved":false,"context_lines":[{"line_number":427,"context_line":""},{"line_number":428,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":429,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":430,"context_line":""},{"line_number":431,"context_line":"Care must be taken to support our users by not breaking backwards compatibility"},{"line_number":432,"context_line":"with either REST API or Driver API changes."},{"line_number":433,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"da4df55a_88536716","line":430,"updated":"2016-12-29 02:07:21.000000000","message":"Full.","commit_id":"353c154fd25041b006aa0e30759d924ed589c127"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"e407039a6e9b7404743f83cf2f5eb633f734f5df","unresolved":false,"context_lines":[{"line_number":43,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"To allow assigning nodes to a specific tenant, it is proposed to add a new"},{"line_number":46,"context_line":"``assigned_to`` column in the ``nodes`` table, that will represent the"},{"line_number":47,"context_line":"identifier of the entity that has the ability to perform the provisioning"},{"line_number":48,"context_line":"actions on the node. In case of using keystone authorization, this will be"},{"line_number":49,"context_line":"a ``project_id`` the node was assigned to."}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba5201f7_8247461c","line":46,"updated":"2017-01-03 14:33:31.000000000","message":"can node be assigned to something else than a tenant?\nIf not, I think that having a field named ``tenant_id`` would be more accurate, and compliant with instance\u0027s fields in nova db (``project_id``, but probably using deprecated ``project`` instead of ``tenant`` is not the best idea)","commit_id":"3844f624f313e53175aa3a8e6441b3a1dda26ed6"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a68c9a820bb9294885e80a8d7efe4a5fdac8bdd5","unresolved":false,"context_lines":[{"line_number":43,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"To allow assigning nodes to a specific tenant, it is proposed to add a new"},{"line_number":46,"context_line":"``assigned_to`` column in the ``nodes`` table, that will represent the"},{"line_number":47,"context_line":"identifier of the entity that has the ability to perform the provisioning"},{"line_number":48,"context_line":"actions on the node. In case of using keystone authorization, this will be"},{"line_number":49,"context_line":"a ``project_id`` the node was assigned to."}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba5201f7_ef371aae","line":46,"in_reply_to":"ba5201f7_8247461c","updated":"2017-01-03 14:54:08.000000000","message":"Yes, in theory it can be anything, the request context is initialized via hook in our API, and context.tenant will contain anything that was passed in the following headers: \u0027HTTP_X_PROJECT_ID\u0027, \u0027HTTP_X_TENANT_ID\u0027, \u0027HTTP_X_TENANT\u0027.\n\ntenant is deprecated, project is the new thing, but I don\u0027t think it\u0027s worth tying this to keystone only. You can use noauth mode and still context.tenant will be initialized with the value in those headers.","commit_id":"3844f624f313e53175aa3a8e6441b3a1dda26ed6"},{"author":{"_account_id":23883,"name":"Joanna Taryma","email":"joanna.taryma@intel.com","username":"jtaryma"},"change_message_id":"e407039a6e9b7404743f83cf2f5eb633f734f5df","unresolved":false,"context_lines":[{"line_number":127,"context_line":"    - 409 Conflict, if the request was sent for a node not in an"},{"line_number":128,"context_line":"      ``available``, ``active`` or ``deploy fail`` state. It is also possible"},{"line_number":129,"context_line":"      to perform rebuild in an ``error`` state, but in this case it is not"},{"line_number":130,"context_line":"      guaranteed that it will succeed, and because of that, this transition"},{"line_number":131,"context_line":"      should be removed, but that\u0027s a separate story."},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"  * JSON schema of the POST request body is:"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba5201f7_9d4c0772","line":130,"updated":"2017-01-03 14:33:31.000000000","message":"I understand that it preserves logic from standard non-tenant-aware behavior? Otherwise I don\u0027t think 409 is the best error code.","commit_id":"3844f624f313e53175aa3a8e6441b3a1dda26ed6"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a68c9a820bb9294885e80a8d7efe4a5fdac8bdd5","unresolved":false,"context_lines":[{"line_number":127,"context_line":"    - 409 Conflict, if the request was sent for a node not in an"},{"line_number":128,"context_line":"      ``available``, ``active`` or ``deploy fail`` state. It is also possible"},{"line_number":129,"context_line":"      to perform rebuild in an ``error`` state, but in this case it is not"},{"line_number":130,"context_line":"      guaranteed that it will succeed, and because of that, this transition"},{"line_number":131,"context_line":"      should be removed, but that\u0027s a separate story."},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"  * JSON schema of the POST request body is:"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba5201f7_0fbe1ed4","line":130,"in_reply_to":"ba5201f7_9d4c0772","updated":"2017-01-03 14:54:08.000000000","message":"OK, I think I can change this to bad request, this is what we catch currently if node.udpate fails.","commit_id":"3844f624f313e53175aa3a8e6441b3a1dda26ed6"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6ee68d4046b2fc5fa726bde99fe77829f1f85d1b","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    node to admins and to users the node has been assigned to."},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"  * Method types are POST and DELETE. POST request will be updating the"},{"line_number":116,"context_line":"    deployment info, while DELETE will be deleting it."},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"  * Normal HTTP response code for POST request is 200 OK, for"},{"line_number":119,"context_line":"    DELETE request - 204 No Content."}],"source_content_type":"text/x-rst","patch_set":6,"id":"5a3905b3_cd9717ea","line":116,"updated":"2017-01-24 14:06:22.000000000","message":"DELETE deletes both instance_info and instance_uuid?","commit_id":"1e4902ede239d4ae28c39bcebc86d8d1a9fb28b8"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"475752385044c2b490d456eb7994820afc38d2fd","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    node to admins and to users the node has been assigned to."},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"  * Method types are POST and DELETE. POST request will be updating the"},{"line_number":116,"context_line":"    deployment info, while DELETE will be deleting it."},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"  * Normal HTTP response code for POST request is 200 OK, for"},{"line_number":119,"context_line":"    DELETE request - 204 No Content."}],"source_content_type":"text/x-rst","patch_set":6,"id":"5a3905b3_b0fdc4b2","line":116,"in_reply_to":"5a3905b3_cd9717ea","updated":"2017-01-24 14:16:16.000000000","message":"Yup, will add","commit_id":"1e4902ede239d4ae28c39bcebc86d8d1a9fb28b8"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"6ee68d4046b2fc5fa726bde99fe77829f1f85d1b","unresolved":false,"context_lines":[{"line_number":395,"context_line":""},{"line_number":396,"context_line":"* Change ``nodes``, ``nodes/detail``, ``nodes/\u003cnode identifier\u003e``"},{"line_number":397,"context_line":"  and ``nodes/\u003cnode identifier\u003e/states`` endpoints to filter the results by"},{"line_number":398,"context_line":"  tenant, if necessary."},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"* Change policy checkers as described in the `REST API impact`_ section."},{"line_number":401,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"5a3905b3_0d3affe6","line":398,"updated":"2017-01-24 14:06:22.000000000","message":"And update filter in DB API.","commit_id":"1e4902ede239d4ae28c39bcebc86d8d1a9fb28b8"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"475752385044c2b490d456eb7994820afc38d2fd","unresolved":false,"context_lines":[{"line_number":395,"context_line":""},{"line_number":396,"context_line":"* Change ``nodes``, ``nodes/detail``, ``nodes/\u003cnode identifier\u003e``"},{"line_number":397,"context_line":"  and ``nodes/\u003cnode identifier\u003e/states`` endpoints to filter the results by"},{"line_number":398,"context_line":"  tenant, if necessary."},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"* Change policy checkers as described in the `REST API impact`_ section."},{"line_number":401,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"5a3905b3_d08a501a","line":398,"in_reply_to":"5a3905b3_0d3affe6","updated":"2017-01-24 14:16:16.000000000","message":"Done","commit_id":"1e4902ede239d4ae28c39bcebc86d8d1a9fb28b8"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"bd500e7d19ae06a5de5e6ab77af4ea0cccbc0100","unresolved":false,"context_lines":[{"line_number":425,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":426,"context_line":""},{"line_number":427,"context_line":"All the changes are done only on API side, without any modifications to"},{"line_number":428,"context_line":"RPC API. To use this feature, only API needs to be updated. This change is"},{"line_number":429,"context_line":"fully backwards compatible, as ``assigned_to`` field in ``nodes`` table is"},{"line_number":430,"context_line":"empty by default, leaving the previous behaviour of only admin having the"},{"line_number":431,"context_line":"access to provisioning/power actions intact."}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a461143_474018a6","line":428,"range":{"start_line":428,"start_character":30,"end_line":428,"end_character":58},"updated":"2017-01-26 16:38:47.000000000","message":"DB as well? what about oslo.objects on old conductor side? will they continue to work with the new DB schema?","commit_id":"07e55854337ada819428f133eb351d52f2508dd2"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"f753b037acdb6d7082ff3bd4fade948a2319a602","unresolved":false,"context_lines":[{"line_number":425,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":426,"context_line":""},{"line_number":427,"context_line":"All the changes are done only on API side, without any modifications to"},{"line_number":428,"context_line":"RPC API. To use this feature, only API needs to be updated. This change is"},{"line_number":429,"context_line":"fully backwards compatible, as ``assigned_to`` field in ``nodes`` table is"},{"line_number":430,"context_line":"empty by default, leaving the previous behaviour of only admin having the"},{"line_number":431,"context_line":"access to provisioning/power actions intact."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a430d35_0efb3e48","line":428,"range":{"start_line":428,"start_character":30,"end_line":428,"end_character":58},"in_reply_to":"3a461143_474018a6","updated":"2017-02-07 11:54:16.000000000","message":"Yeah, right, it is an old bit, needs to be updated.","commit_id":"07e55854337ada819428f133eb351d52f2508dd2"},{"author":{"_account_id":15122,"name":"Kiseok Kim","email":"kiseok7@gmail.com","username":"Kiseok"},"change_message_id":"4911b826014b0455b040639ffd0fe197058f307f","unresolved":false,"context_lines":[{"line_number":43,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"To allow assigning nodes to a specific tenant, it is proposed to add a new"},{"line_number":46,"context_line":"``assigned_to`` column in the ``nodes`` table, that will represent the"},{"line_number":47,"context_line":"identifier of the entity that has the ability to perform the provisioning"},{"line_number":48,"context_line":"actions on the node. In case of using keystone authorization, this will be"},{"line_number":49,"context_line":"a ``project_id`` the node was assigned to. In case of ``noauth`` mode, this"}],"source_content_type":"text/x-rst","patch_set":9,"id":"ffe62b97_ddd67cf2","line":46,"range":{"start_line":46,"start_character":0,"end_line":46,"end_character":15},"updated":"2017-03-24 02:55:55.000000000","message":"How about \"project_id\" as column name?","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"30e335883ea244d542f34c0c2e94b814878accb2","unresolved":false,"context_lines":[{"line_number":43,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"To allow assigning nodes to a specific tenant, it is proposed to add a new"},{"line_number":46,"context_line":"``assigned_to`` column in the ``nodes`` table, that will represent the"},{"line_number":47,"context_line":"identifier of the entity that has the ability to perform the provisioning"},{"line_number":48,"context_line":"actions on the node. In case of using keystone authorization, this will be"},{"line_number":49,"context_line":"a ``project_id`` the node was assigned to. In case of ``noauth`` mode, this"}],"source_content_type":"text/x-rst","patch_set":9,"id":"7ffa3b31_f4fcb53f","line":46,"range":{"start_line":46,"start_character":0,"end_line":46,"end_character":15},"in_reply_to":"9ff52f3f_bb04cb7c","updated":"2017-04-14 09:13:52.000000000","message":"tenant is a deprecated term in keystone world, and project is kind of a broad term, so I\u0027d vote for something more specific with well known meaning. I\u0027m good with owner :)","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"12bc657485272a6b2277aa05636c58b1f8cf9678","unresolved":false,"context_lines":[{"line_number":43,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"To allow assigning nodes to a specific tenant, it is proposed to add a new"},{"line_number":46,"context_line":"``assigned_to`` column in the ``nodes`` table, that will represent the"},{"line_number":47,"context_line":"identifier of the entity that has the ability to perform the provisioning"},{"line_number":48,"context_line":"actions on the node. In case of using keystone authorization, this will be"},{"line_number":49,"context_line":"a ``project_id`` the node was assigned to. In case of ``noauth`` mode, this"}],"source_content_type":"text/x-rst","patch_set":9,"id":"9ff52f3f_bb04cb7c","line":46,"range":{"start_line":46,"start_character":0,"end_line":46,"end_character":15},"in_reply_to":"ffe62b97_6d2a53db","updated":"2017-04-13 17:45:29.000000000","message":"based on the description in this paragraph and the title of the spec, wouldn\u0027t \u0027tenant\u0027 or \u0027tenant_id\u0027 make sense instead of \u0027assigned_to\u0027? \u0027owner\u0027?  If you\u0027re getting this from context.tenant, then \u0027tenant\u0027 seems best.","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"067b3b3239ee060d14396cd680a2f83f79a17ae8","unresolved":false,"context_lines":[{"line_number":43,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"To allow assigning nodes to a specific tenant, it is proposed to add a new"},{"line_number":46,"context_line":"``assigned_to`` column in the ``nodes`` table, that will represent the"},{"line_number":47,"context_line":"identifier of the entity that has the ability to perform the provisioning"},{"line_number":48,"context_line":"actions on the node. In case of using keystone authorization, this will be"},{"line_number":49,"context_line":"a ``project_id`` the node was assigned to. In case of ``noauth`` mode, this"}],"source_content_type":"text/x-rst","patch_set":9,"id":"ffe62b97_6d2a53db","line":46,"range":{"start_line":46,"start_character":0,"end_line":46,"end_character":15},"in_reply_to":"ffe62b97_ddd67cf2","updated":"2017-03-29 12:33:27.000000000","message":"\"project\" term depend on keystone api version. Also standalone custom usage is possible.","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"30e335883ea244d542f34c0c2e94b814878accb2","unresolved":false,"context_lines":[{"line_number":46,"context_line":"``assigned_to`` column in the ``nodes`` table, that will represent the"},{"line_number":47,"context_line":"identifier of the entity that has the ability to perform the provisioning"},{"line_number":48,"context_line":"actions on the node. In case of using keystone authorization, this will be"},{"line_number":49,"context_line":"a ``project_id`` the node was assigned to. In case of ``noauth`` mode, this"},{"line_number":50,"context_line":"can be any identifier passed in ``HTTP_X_PROJECT_ID``, ``HTTP_X_TENANT_ID`` or"},{"line_number":51,"context_line":"``HTTP_X_TENANT`` headers, as this is where oslo_context gets"},{"line_number":52,"context_line":"``context.tenant`` value from."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"The provisioning actions allowed to such tenant are: deployment, rebuild and"},{"line_number":55,"context_line":"tear down. Any other actions, such as moving nodes to ``manageable`` or"}],"source_content_type":"text/x-rst","patch_set":9,"id":"7ffa3b31_b4bd0d6a","line":52,"range":{"start_line":49,"start_character":43,"end_line":52,"end_character":30},"updated":"2017-04-14 09:13:52.000000000","message":"I\u0027m not actually sure that it\u0027s worth doing this, as in noauth anyone can send anything in this header.","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"12bc657485272a6b2277aa05636c58b1f8cf9678","unresolved":false,"context_lines":[{"line_number":54,"context_line":"The provisioning actions allowed to such tenant are: deployment, rebuild and"},{"line_number":55,"context_line":"tear down. Any other actions, such as moving nodes to ``manageable`` or"},{"line_number":56,"context_line":"``available`` states, doing manual cleaning or running inspection, still have"},{"line_number":57,"context_line":"to be performed by an admin."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Apart from triggering the provisioning actions, the baremetal_deployer will"},{"line_number":60,"context_line":"need to be authorized for the following:"}],"source_content_type":"text/x-rst","patch_set":9,"id":"9ff52f3f_1b14d79f","line":57,"updated":"2017-04-13 17:45:29.000000000","message":"rescue is in the pipeline, what about that?\ncan they put it in maintenance?\n\nSince we already have terms for the states and verbs, maybe we should use them (the verbs, and states if we only allow verbs from certain states)  in the spec so there is no confusion. tear-down \u003d\u003d deleted?","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"30e335883ea244d542f34c0c2e94b814878accb2","unresolved":false,"context_lines":[{"line_number":54,"context_line":"The provisioning actions allowed to such tenant are: deployment, rebuild and"},{"line_number":55,"context_line":"tear down. Any other actions, such as moving nodes to ``manageable`` or"},{"line_number":56,"context_line":"``available`` states, doing manual cleaning or running inspection, still have"},{"line_number":57,"context_line":"to be performed by an admin."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Apart from triggering the provisioning actions, the baremetal_deployer will"},{"line_number":60,"context_line":"need to be authorized for the following:"}],"source_content_type":"text/x-rst","patch_set":9,"id":"7ffa3b31_d455391f","line":57,"in_reply_to":"9ff52f3f_1b14d79f","updated":"2017-04-14 09:13:52.000000000","message":"OK, I\u0027ll specify the transitions explicitly. rescue falls into admin-only actions I think.","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"5541f4ac512f59056331bed906503b67cf2b1ca1","unresolved":false,"context_lines":[{"line_number":57,"context_line":"to be performed by an admin."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Apart from triggering the provisioning actions, the baremetal_deployer will"},{"line_number":60,"context_line":"need to be authorized for the following:"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"#. Updating some of the node\u0027s fields, namely ``instance_uuid`` (in case"},{"line_number":63,"context_line":"   it\u0027s needed) and ``instance_info`` (to pass any deployment-specific"}],"source_content_type":"text/x-rst","patch_set":9,"id":"fa31d9ce_9505b8c3","line":60,"updated":"2017-02-13 04:02:37.000000000","message":"I understand this is only for creating tenant sub-pools. How about the automated cleaning? The different tenants may have different needs/prorities of the automated cleaning. But it  is one single configuration that gets applied to all the nodes. It may be useful to  update priorities of the automated cleaning steps for individual tenant resource pool. The admin user could update the automated cleaning steps priorities when node gets assigned to a tenant pool.","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"30e335883ea244d542f34c0c2e94b814878accb2","unresolved":false,"context_lines":[{"line_number":57,"context_line":"to be performed by an admin."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Apart from triggering the provisioning actions, the baremetal_deployer will"},{"line_number":60,"context_line":"need to be authorized for the following:"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"#. Updating some of the node\u0027s fields, namely ``instance_uuid`` (in case"},{"line_number":63,"context_line":"   it\u0027s needed) and ``instance_info`` (to pass any deployment-specific"}],"source_content_type":"text/x-rst","patch_set":9,"id":"7ffa3b31_8f031a0e","line":60,"in_reply_to":"9ff52f3f_3b8f9bcd","updated":"2017-04-14 09:13:52.000000000","message":"Shivanand, sorry for the delayed reply. Yeah, this spec for now focuses on the actions available to tenants, so this is kind of orthogonal to this spec, and is worth a separate proposal.\n\nAlso, as Ruby mentions, it might make more sense to do it per node (per resource class?) than per tenant, as it is pretty much hardware dependent.","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"e0304decc952a28b8246dec377c7833602897c6c","unresolved":false,"context_lines":[{"line_number":57,"context_line":"to be performed by an admin."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Apart from triggering the provisioning actions, the baremetal_deployer will"},{"line_number":60,"context_line":"need to be authorized for the following:"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"#. Updating some of the node\u0027s fields, namely ``instance_uuid`` (in case"},{"line_number":63,"context_line":"   it\u0027s needed) and ``instance_info`` (to pass any deployment-specific"}],"source_content_type":"text/x-rst","patch_set":9,"id":"ffe62b97_cbaad9d0","line":60,"in_reply_to":"fa31d9ce_9505b8c3","updated":"2017-03-27 11:48:16.000000000","message":"I think it\u0027s a good idea because this feature can reduce non-productive hardware usage time on the cluster, but even more simple proposal rejected by community: https://bugs.launchpad.net/ironic/+bug/1634118","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"12bc657485272a6b2277aa05636c58b1f8cf9678","unresolved":false,"context_lines":[{"line_number":57,"context_line":"to be performed by an admin."},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"Apart from triggering the provisioning actions, the baremetal_deployer will"},{"line_number":60,"context_line":"need to be authorized for the following:"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"#. Updating some of the node\u0027s fields, namely ``instance_uuid`` (in case"},{"line_number":63,"context_line":"   it\u0027s needed) and ``instance_info`` (to pass any deployment-specific"}],"source_content_type":"text/x-rst","patch_set":9,"id":"9ff52f3f_3b8f9bcd","line":60,"in_reply_to":"ffe62b97_cbaad9d0","updated":"2017-04-13 17:45:29.000000000","message":"I think the way to do this is to allow automated cleaning configurability on a per-node basis. (not per tenant, i don\u0027t really think, at least not now, that i want to add too much stuff related to tenants.) Anyway, I\u0027d prefer if this was not part of this spec.","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"12bc657485272a6b2277aa05636c58b1f8cf9678","unresolved":false,"context_lines":[{"line_number":70,"context_line":"   powering off or soft rebooting from inside the instance."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"It will be forbidden for baremetal_deployer to list/show any resources apart"},{"line_number":73,"context_line":"from the assigned nodes."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"``assigned_to`` changes, as well as any node update, should be allowed only to"},{"line_number":76,"context_line":"admin users, as defined by ``is_admin`` policy rule. If the tenant that is"}],"source_content_type":"text/x-rst","patch_set":9,"id":"9ff52f3f_9b0d8740","line":73,"updated":"2017-04-13 17:45:29.000000000","message":"aren\u0027t our policies set so that anyone can get (list, show) a resource?","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"30e335883ea244d542f34c0c2e94b814878accb2","unresolved":false,"context_lines":[{"line_number":70,"context_line":"   powering off or soft rebooting from inside the instance."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"It will be forbidden for baremetal_deployer to list/show any resources apart"},{"line_number":73,"context_line":"from the assigned nodes."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"``assigned_to`` changes, as well as any node update, should be allowed only to"},{"line_number":76,"context_line":"admin users, as defined by ``is_admin`` policy rule. If the tenant that is"}],"source_content_type":"text/x-rst","patch_set":9,"id":"7ffa3b31_4f5bd22d","line":73,"in_reply_to":"9ff52f3f_9b0d8740","updated":"2017-04-14 09:13:52.000000000","message":"not anyone, only baremetal_observer","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"12bc657485272a6b2277aa05636c58b1f8cf9678","unresolved":false,"context_lines":[{"line_number":74,"context_line":""},{"line_number":75,"context_line":"``assigned_to`` changes, as well as any node update, should be allowed only to"},{"line_number":76,"context_line":"admin users, as defined by ``is_admin`` policy rule. If the tenant that is"},{"line_number":77,"context_line":"referred in ``assigned_to`` column is deleted, the administrator needs to keep"},{"line_number":78,"context_line":"track of that and update the value accordingly, or remove it, to make the node"},{"line_number":79,"context_line":"admin-only again."},{"line_number":80,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"9ff52f3f_fe2c819a","line":77,"updated":"2017-04-13 17:45:29.000000000","message":"I don\u0027t understand this sentence. What do you mean by \u0027deleted\u0027 -- that node.assigned_to \u003d None, or deleted from whatever system (outside of ironic) keeps track of tenants?","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"30e335883ea244d542f34c0c2e94b814878accb2","unresolved":false,"context_lines":[{"line_number":74,"context_line":""},{"line_number":75,"context_line":"``assigned_to`` changes, as well as any node update, should be allowed only to"},{"line_number":76,"context_line":"admin users, as defined by ``is_admin`` policy rule. If the tenant that is"},{"line_number":77,"context_line":"referred in ``assigned_to`` column is deleted, the administrator needs to keep"},{"line_number":78,"context_line":"track of that and update the value accordingly, or remove it, to make the node"},{"line_number":79,"context_line":"admin-only again."},{"line_number":80,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"7ffa3b31_2f940644","line":77,"in_reply_to":"9ff52f3f_fe2c819a","updated":"2017-04-14 09:13:52.000000000","message":"yup, deleted in the system outside ironic.","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"12bc657485272a6b2277aa05636c58b1f8cf9678","unresolved":false,"context_lines":[{"line_number":97,"context_line":"default, preserving the current behaviour. ``null`` means that this node is"},{"line_number":98,"context_line":"not assigned to any particular tenant, and is usable only by admin."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"This column\u0027s type will be String(length\u003d36)."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"State Machine Impact"},{"line_number":103,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"9ff52f3f_3e32e9f2","line":100,"updated":"2017-04-13 17:45:29.000000000","message":"why\u0027d you pick 36?","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"30e335883ea244d542f34c0c2e94b814878accb2","unresolved":false,"context_lines":[{"line_number":97,"context_line":"default, preserving the current behaviour. ``null`` means that this node is"},{"line_number":98,"context_line":"not assigned to any particular tenant, and is usable only by admin."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"This column\u0027s type will be String(length\u003d36)."},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"State Machine Impact"},{"line_number":103,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":9,"id":"7ffa3b31_ef497e60","line":100,"in_reply_to":"9ff52f3f_3e32e9f2","updated":"2017-04-14 09:13:52.000000000","message":"it\u0027s a UUID length :) I don\u0027t think it makes sense to put some human-readable identifiers here, I guess I\u0027ll state this more explicitly.","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"12bc657485272a6b2277aa05636c58b1f8cf9678","unresolved":false,"context_lines":[{"line_number":110,"context_line":"#. A new endpoint will be introduced - ``nodes/\u003cnode identifier\u003e/deploy_info``:"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"   * This endpoint will allow to set the deployment specific information for"},{"line_number":113,"context_line":"     the node to admins and to users the node has been assigned to."},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"   * Method types are POST and DELETE. POST request will be updating the"},{"line_number":116,"context_line":"     deployment info, while DELETE will be deleting it."}],"source_content_type":"text/x-rst","patch_set":9,"id":"9ff52f3f_9e40d537","line":113,"updated":"2017-04-13 17:45:29.000000000","message":"a node can be assigned to max one tenant, or more than one?","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"30e335883ea244d542f34c0c2e94b814878accb2","unresolved":false,"context_lines":[{"line_number":110,"context_line":"#. A new endpoint will be introduced - ``nodes/\u003cnode identifier\u003e/deploy_info``:"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"   * This endpoint will allow to set the deployment specific information for"},{"line_number":113,"context_line":"     the node to admins and to users the node has been assigned to."},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"   * Method types are POST and DELETE. POST request will be updating the"},{"line_number":116,"context_line":"     deployment info, while DELETE will be deleting it."}],"source_content_type":"text/x-rst","patch_set":9,"id":"7ffa3b31_4fa992dd","line":113,"in_reply_to":"9ff52f3f_9e40d537","updated":"2017-04-14 09:13:52.000000000","message":"if you\u0027re asking if only one user can be put in the assigned_to column, then yes, only one. But we still don\u0027t forbid any admin user to do action with this node.","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"12bc657485272a6b2277aa05636c58b1f8cf9678","unresolved":false,"context_lines":[{"line_number":112,"context_line":"   * This endpoint will allow to set the deployment specific information for"},{"line_number":113,"context_line":"     the node to admins and to users the node has been assigned to."},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"   * Method types are POST and DELETE. POST request will be updating the"},{"line_number":116,"context_line":"     deployment info, while DELETE will be deleting it."},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"   * Normal HTTP response code for POST request is 200 OK, for"}],"source_content_type":"text/x-rst","patch_set":9,"id":"9ff52f3f_be74b99a","line":115,"updated":"2017-04-13 17:45:29.000000000","message":"if updating, why isn\u0027t it PATCH?","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"30e335883ea244d542f34c0c2e94b814878accb2","unresolved":false,"context_lines":[{"line_number":112,"context_line":"   * This endpoint will allow to set the deployment specific information for"},{"line_number":113,"context_line":"     the node to admins and to users the node has been assigned to."},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"   * Method types are POST and DELETE. POST request will be updating the"},{"line_number":116,"context_line":"     deployment info, while DELETE will be deleting it."},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"   * Normal HTTP response code for POST request is 200 OK, for"}],"source_content_type":"text/x-rst","patch_set":9,"id":"7ffa3b31_2fc5268f","line":115,"in_reply_to":"9ff52f3f_be74b99a","updated":"2017-04-14 09:13:52.000000000","message":"it is \"updating\" :) We consider the deploy_info here as kind of nested entity, when you do request to deploy_info, driver_info field actually changes. Maybe it makes more sense to do it with PATCH tho, as you can do one request to set instance_uuid, and another one to set instance_info (this is how it happens in nova now). I just don\u0027t like the complexity of PATCH when all we need is to write two fields. And PUT does not seem to fit, as it is intended for sending \"full entity\" in the request body, and in this case as I said we allow to do it in two steps. Suggestions welcome :)","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"12bc657485272a6b2277aa05636c58b1f8cf9678","unresolved":false,"context_lines":[{"line_number":406,"context_line":"Dependencies"},{"line_number":407,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":408,"context_line":""},{"line_number":409,"context_line":"Ironic nodes being resource providers in nova is a requirement for this spec."},{"line_number":410,"context_line":""},{"line_number":411,"context_line":"Implementing etags is a dependency, so that two users (no mater admin or not)"},{"line_number":412,"context_line":"are not able to set the deployment information on the same node simultaneously"}],"source_content_type":"text/x-rst","patch_set":9,"id":"9ff52f3f_de59bdfe","line":409,"updated":"2017-04-13 17:45:29.000000000","message":"why is it a requirement? won\u0027t this work standalone (w/o nova). Nova could use it whenever it is available right?","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"30e335883ea244d542f34c0c2e94b814878accb2","unresolved":false,"context_lines":[{"line_number":406,"context_line":"Dependencies"},{"line_number":407,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":408,"context_line":""},{"line_number":409,"context_line":"Ironic nodes being resource providers in nova is a requirement for this spec."},{"line_number":410,"context_line":""},{"line_number":411,"context_line":"Implementing etags is a dependency, so that two users (no mater admin or not)"},{"line_number":412,"context_line":"are not able to set the deployment information on the same node simultaneously"}],"source_content_type":"text/x-rst","patch_set":9,"id":"7ffa3b31_af0496c7","line":409,"in_reply_to":"9ff52f3f_de59bdfe","updated":"2017-04-14 09:13:52.000000000","message":"It is a requirement for nova to have project_id in resource providers table (see nova driver impact). I\u0027ll clarify.","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"12bc657485272a6b2277aa05636c58b1f8cf9678","unresolved":false,"context_lines":[{"line_number":431,"context_line":"This change is fully backwards compatible, as ``assigned_to`` field in"},{"line_number":432,"context_line":"``nodes`` table is empty by default, leaving the previous behaviour of only"},{"line_number":433,"context_line":"admin having the access to provisioning/power actions intact."},{"line_number":434,"context_line":""},{"line_number":435,"context_line":""},{"line_number":436,"context_line":"Documentation Impact"},{"line_number":437,"context_line":"\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":9,"id":"9ff52f3f_5e024db6","line":434,"updated":"2017-04-13 17:45:29.000000000","message":"would like you to elaborate on the assignment of node.assign_to. Can the admin update this value whenever/whatever state the node is in? What does it mean to unassign/change the value of node.assign_to?","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"30e335883ea244d542f34c0c2e94b814878accb2","unresolved":false,"context_lines":[{"line_number":431,"context_line":"This change is fully backwards compatible, as ``assigned_to`` field in"},{"line_number":432,"context_line":"``nodes`` table is empty by default, leaving the previous behaviour of only"},{"line_number":433,"context_line":"admin having the access to provisioning/power actions intact."},{"line_number":434,"context_line":""},{"line_number":435,"context_line":""},{"line_number":436,"context_line":"Documentation Impact"},{"line_number":437,"context_line":"\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":9,"id":"7ffa3b31_4fbab2de","line":434,"in_reply_to":"9ff52f3f_5e024db6","updated":"2017-04-14 09:13:52.000000000","message":"it can be done in any state, the change just means that another owner can do things now, and previous one can not.","commit_id":"2df4775adb34b0c42536d7debe772dae6e4985ee"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"0dcff47a53a4976170654e0588073199168fc974","unresolved":false,"context_lines":[{"line_number":31,"context_line":"the nodes assigned to one tenant are not used by another tenant. This allows"},{"line_number":32,"context_line":"to split a single ironic installation into several \"sub-clouds\" without the"},{"line_number":33,"context_line":"need to setup several ironic services with different databases, and without"},{"line_number":34,"context_line":"the need to go through adopting when there is a need to move a node from one"},{"line_number":35,"context_line":"\"sub-cloud\" to another."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"In both cases, the main thing that a non-admin tenant needs from a node is the"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_c60ba8d3","line":34,"updated":"2017-04-20 19:39:01.000000000","message":"I don\u0027t think you meant to write \"without the need to go through adopting when there is a need to move...\". Perhaps you meant to write \"without the need to migrate data between multiple Ironic installations\"?","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a5fe770f882f53d1aeb442a4acb97f31067a7474","unresolved":false,"context_lines":[{"line_number":31,"context_line":"the nodes assigned to one tenant are not used by another tenant. This allows"},{"line_number":32,"context_line":"to split a single ironic installation into several \"sub-clouds\" without the"},{"line_number":33,"context_line":"need to setup several ironic services with different databases, and without"},{"line_number":34,"context_line":"the need to go through adopting when there is a need to move a node from one"},{"line_number":35,"context_line":"\"sub-cloud\" to another."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"In both cases, the main thing that a non-admin tenant needs from a node is the"}],"source_content_type":"text/x-rst","patch_set":10,"id":"df3967d1_3c6a0180","line":34,"in_reply_to":"7ffa3b31_6605f445","updated":"2017-07-31 12:33:06.000000000","message":"Done","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"c3832ebef110239fad5ef385858a751238fb8614","unresolved":false,"context_lines":[{"line_number":31,"context_line":"the nodes assigned to one tenant are not used by another tenant. This allows"},{"line_number":32,"context_line":"to split a single ironic installation into several \"sub-clouds\" without the"},{"line_number":33,"context_line":"need to setup several ironic services with different databases, and without"},{"line_number":34,"context_line":"the need to go through adopting when there is a need to move a node from one"},{"line_number":35,"context_line":"\"sub-cloud\" to another."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"In both cases, the main thing that a non-admin tenant needs from a node is the"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_6605f445","line":34,"in_reply_to":"7ffa3b31_c60ba8d3","updated":"2017-04-20 20:17:46.000000000","message":"Yes, better to clarify as you suggest. Adopting process is basically creating a node manually and triggering set-provision-state adopt.","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"0dcff47a53a4976170654e0588073199168fc974","unresolved":false,"context_lines":[{"line_number":35,"context_line":"\"sub-cloud\" to another."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"In both cases, the main thing that a non-admin tenant needs from a node is the"},{"line_number":38,"context_line":"ability to perform assigned nodes\u0027 deployment, rebuild and tear down. Such"},{"line_number":39,"context_line":"tenant will be referred to as baremetal_deployer throughout the text."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_a60c1cec","line":38,"updated":"2017-04-20 19:39:01.000000000","message":"s/perform assigned nodes\u0027 deployment, rebuild, and tear down/deploy, rebuild and tear down their assigned nodes/","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a5fe770f882f53d1aeb442a4acb97f31067a7474","unresolved":false,"context_lines":[{"line_number":35,"context_line":"\"sub-cloud\" to another."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"In both cases, the main thing that a non-admin tenant needs from a node is the"},{"line_number":38,"context_line":"ability to perform assigned nodes\u0027 deployment, rebuild and tear down. Such"},{"line_number":39,"context_line":"tenant will be referred to as baremetal_deployer throughout the text."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"df3967d1_5c6dc596","line":38,"in_reply_to":"7ffa3b31_a60c1cec","updated":"2017-07-31 12:33:06.000000000","message":"Done","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"0dcff47a53a4976170654e0588073199168fc974","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"In both cases, the main thing that a non-admin tenant needs from a node is the"},{"line_number":38,"context_line":"ability to perform assigned nodes\u0027 deployment, rebuild and tear down. Such"},{"line_number":39,"context_line":"tenant will be referred to as baremetal_deployer throughout the text."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_86112007","line":39,"updated":"2017-04-20 19:39:01.000000000","message":"A couple points...\n\n1) Unfortunately, the above is redefining the term \"tenant\" to mean something that the term tenant (really, \"project\" now..) means in the rest of OpenStack services. In the rest of OpenStack services, a tenant (project) is a set of end-users of the cloud. Generally, we don\u0027t refer to administrative users -- those users that have the ability to see the resources of the underlying infrastructure -- as a \"tenant\". What you\u0027re referring to as a \"tenant\" here is really just an admin user that only has the ability to see a certain subset of the infrastructure\u0027s resources.\n\n2) You are coupling the concepts of \"ownership\" with \"permissions\". The two concepts are very different, and generally in OpenStack, we use the *role* in Keystone to determine access rights/permissions and we use the *project* to describe ownership.\n\nmore below...","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"c3832ebef110239fad5ef385858a751238fb8614","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":"In both cases, the main thing that a non-admin tenant needs from a node is the"},{"line_number":38,"context_line":"ability to perform assigned nodes\u0027 deployment, rebuild and tear down. Such"},{"line_number":39,"context_line":"tenant will be referred to as baremetal_deployer throughout the text."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_86480087","line":39,"in_reply_to":"7ffa3b31_86112007","updated":"2017-04-20 20:17:46.000000000","message":"OK, yeah, this is all about allowing some specific actions with a node to non-admins. I\u0027m not sure how to name this to avoid confusion, maybe replace tenant to owner everywhere? Basically tenant\u003downer\u003dproject in this spec.\n\nAs for \"What you\u0027re referring to as a \"tenant\" here is really just an admin user that only has the ability to see a certain subset of the infrastructure\u0027s resources.\", not sure I understand what you meant here, this user does not have to be an admin (and should not be). To list the resources of ironic, we already have a baremetal_observer role, which by default allows listing of all the resources in ironic. baremetal_deployer is separate.","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"0dcff47a53a4976170654e0588073199168fc974","unresolved":false,"context_lines":[{"line_number":49,"context_line":"a ``project_id`` the node was assigned to. In case of ``noauth`` mode, this"},{"line_number":50,"context_line":"can be any identifier passed in ``HTTP_X_PROJECT_ID``, ``HTTP_X_TENANT_ID`` or"},{"line_number":51,"context_line":"``HTTP_X_TENANT`` headers, as this is where oslo_context gets"},{"line_number":52,"context_line":"``context.tenant`` value from."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"The provisioning state transitions allowed to such tenant are:"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_66fa94bd","line":52,"updated":"2017-04-20 19:39:01.000000000","message":"Nova already provides the multi-tenancy, multi-user API on top of Ironic. We already have a construct for dealing with dividing up a set of infrastructure resources into different groups: the aggregate. There is even already a way via the AggregateMultiTenancyIsolation scheduler filter to specific which tenants a group of hosts/nodes should be used for which tenants. Has Ironic considered using this existing functionality?","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"c3832ebef110239fad5ef385858a751238fb8614","unresolved":false,"context_lines":[{"line_number":49,"context_line":"a ``project_id`` the node was assigned to. In case of ``noauth`` mode, this"},{"line_number":50,"context_line":"can be any identifier passed in ``HTTP_X_PROJECT_ID``, ``HTTP_X_TENANT_ID`` or"},{"line_number":51,"context_line":"``HTTP_X_TENANT`` headers, as this is where oslo_context gets"},{"line_number":52,"context_line":"``context.tenant`` value from."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"The provisioning state transitions allowed to such tenant are:"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_460c3840","line":52,"in_reply_to":"7ffa3b31_66fa94bd","updated":"2017-04-20 20:17:46.000000000","message":"Yes, but I\u0027m trying to make this possible for standalone ironic deployments as well, hence trying to come up with a solution so that ironic is a source of truth for all cases, to e.g. avoid duplicating the project_id both somewhere in ironic and nova, and setting it only in ironic.","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"0dcff47a53a4976170654e0588073199168fc974","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"Any other actions, such as moving nodes to ``manageable`` or ``available``"},{"line_number":62,"context_line":"states, doing manual cleaning, rescuing or running inspection, still have to be"},{"line_number":63,"context_line":"performed by an admin."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Apart from triggering the provisioning actions, the baremetal_deployer will"},{"line_number":66,"context_line":"need to be authorized for the following:"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_46f798d4","line":63,"updated":"2017-04-20 19:39:01.000000000","message":"I fail to see why any there should be any changes to the way that state transitions in Ironic. Whether a node belongs to a group of nodes that a tenant owns should not affect the lifecycle of a baremetal Ironic node. What am I missing here?","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"c3832ebef110239fad5ef385858a751238fb8614","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"Any other actions, such as moving nodes to ``manageable`` or ``available``"},{"line_number":62,"context_line":"states, doing manual cleaning, rescuing or running inspection, still have to be"},{"line_number":63,"context_line":"performed by an admin."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Apart from triggering the provisioning actions, the baremetal_deployer will"},{"line_number":66,"context_line":"need to be authorized for the following:"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_69426740","line":63,"in_reply_to":"7ffa3b31_46f798d4","updated":"2017-04-20 20:17:46.000000000","message":"It does not affect the state machine at all (well, in a sense of making changes to it). If say cleaning fails, the node will go into clean fail state, and moved to maintenance. Then, the admin will have to come in, investigate, and move the node to some other state if needed, or allocate another node for that tenant.\n\nThe things that the \"usual deployer\" should be able to do are deploy/redeploy/tear down with automated cleaning. The check to see if a specific user can set the target provision state to some specific value is checked by policy on the api level, not on the state machine level.\n\nThe cleaning failure is one example when the recovery should be an admin-only action. For example, the firmware write failed on some of the controllers. If a user will just move the node from maintenance and retries the cleaning, they can brick some controller, and the node will basically become broken. It should be investigated by an admin. The deployment failure on the other hand is pretty safe, eg if some incorrect image was provided, we can allow to redeploy.","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":11297,"name":"Nisha Agarwal","email":"agarwalnisha1980@gmail.com","username":"Nisha"},"change_message_id":"222434f01257eb62ec0844beb75fecbc70a62211","unresolved":false,"context_lines":[{"line_number":240,"context_line":"  # Change Node provision status"},{"line_number":241,"context_line":"  \"baremetal:node:set_provision_state\": \"rule:is_admin or rule:is_deployer\""},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"Any sensitive contents in node\u0027s ``driver_info`` for baremetal_deployer should"},{"line_number":244,"context_line":"be masked the same way as for baremetal_observer."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"As new methods are being added to the API, the following default policies"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_20110953","line":243,"range":{"start_line":243,"start_character":0,"end_line":243,"end_character":22},"updated":"2017-04-21 03:11:43.000000000","message":"i believe this means password. But does anything else apart from password is assumed here in sensitive information?","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"ec327f34c35905df0eb5957dda3624a99552ba5c","unresolved":false,"context_lines":[{"line_number":240,"context_line":"  # Change Node provision status"},{"line_number":241,"context_line":"  \"baremetal:node:set_provision_state\": \"rule:is_admin or rule:is_deployer\""},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"Any sensitive contents in node\u0027s ``driver_info`` for baremetal_deployer should"},{"line_number":244,"context_line":"be masked the same way as for baremetal_observer."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"As new methods are being added to the API, the following default policies"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_8ca01392","line":243,"in_reply_to":"7ffa3b31_20110953","updated":"2017-04-21 09:23:28.000000000","message":"Here I mean whatever we hide with the helper functions in the API. IIRC we also hide ssh key.","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":1063,"name":"Ed Leafe","email":"ed@leafe.com","username":"ed-leafe"},"change_message_id":"f4a37d75f254e02a280b57dfadc92a37224b6346","unresolved":false,"context_lines":[{"line_number":317,"context_line":"section, ironic API should be shut down until all the nova computes will be"},{"line_number":318,"context_line":"changed to use ``[ironic]use_tenant_aware_nodes\u003dTrue``."},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"Nova\u0027s resource tracker will be responsible for keeping track of nodes\u0027"},{"line_number":321,"context_line":"``owner`` value, and updating the resource providers table with this"},{"line_number":322,"context_line":"value. A corresponding column has to be added into ``resource_providers``"},{"line_number":323,"context_line":"table, this is going to be proposed separately to nova. When ``owner``"},{"line_number":324,"context_line":"value changes on ironic side, there can be a short period of time when nova"},{"line_number":325,"context_line":"uses the old value. In that period of time, one of the calls, e.g. VIF"},{"line_number":326,"context_line":"attachment, will fail, and it should cause the ``Rescheduled`` exception, so"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_9861aa08","line":323,"range":{"start_line":320,"start_character":0,"end_line":323,"end_character":6},"updated":"2017-04-19 18:48:40.000000000","message":"This is a significant change to the placement API and overall design. One thing we have insisted on is not to have any overt Nova-isms in placement, so that it can be used for all kinds of resources, not just virtualization. You seem to be proposing to add an Ironic-specific behavior to placement, and that is not going to work well, for the same reasons we avoid Nova-specific features.","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"b053ad87a626f7be23c997c0b9bad099b9237418","unresolved":false,"context_lines":[{"line_number":317,"context_line":"section, ironic API should be shut down until all the nova computes will be"},{"line_number":318,"context_line":"changed to use ``[ironic]use_tenant_aware_nodes\u003dTrue``."},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"Nova\u0027s resource tracker will be responsible for keeping track of nodes\u0027"},{"line_number":321,"context_line":"``owner`` value, and updating the resource providers table with this"},{"line_number":322,"context_line":"value. A corresponding column has to be added into ``resource_providers``"},{"line_number":323,"context_line":"table, this is going to be proposed separately to nova. When ``owner``"},{"line_number":324,"context_line":"value changes on ironic side, there can be a short period of time when nova"},{"line_number":325,"context_line":"uses the old value. In that period of time, one of the calls, e.g. VIF"},{"line_number":326,"context_line":"attachment, will fail, and it should cause the ``Rescheduled`` exception, so"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_a923f655","line":323,"range":{"start_line":320,"start_character":0,"end_line":323,"end_character":6},"in_reply_to":"7ffa3b31_9861aa08","updated":"2017-04-19 20:33:33.000000000","message":"Yup, and I understand your and Chris\u0027 logic, it does not look that good :) OTOH, it can be not something nova-specific, just some identifier?\n\nWhen I was thinking about this, I found https://github.com/openstack/nova/blob/master/nova/scheduler/filters/aggregate_multitenancy_isolation.py, hence this proposal.\n\nWhat would you think be a better place to store such kind of information, if you think it\u0027s worth it at all? Maybe creating traits on the fly according to the owner column and associating them with the resource provider? Basically, all of this is needed just so that scheduler does not pick up a node of another \"owner\" (both if a node has an owner that does not correspond what\u0027s in the context, or does not have owner, as it means it is admin-only).","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"69da05153f776f97517b34da5301bd6bcee7b2cf","unresolved":false,"context_lines":[{"line_number":320,"context_line":"Nova\u0027s resource tracker will be responsible for keeping track of nodes\u0027"},{"line_number":321,"context_line":"``owner`` value, and updating the resource providers table with this"},{"line_number":322,"context_line":"value. A corresponding column has to be added into ``resource_providers``"},{"line_number":323,"context_line":"table, this is going to be proposed separately to nova. When ``owner``"},{"line_number":324,"context_line":"value changes on ironic side, there can be a short period of time when nova"},{"line_number":325,"context_line":"uses the old value. In that period of time, one of the calls, e.g. VIF"},{"line_number":326,"context_line":"attachment, will fail, and it should cause the ``Rescheduled`` exception, so"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_cd6bdcb4","line":323,"in_reply_to":"7ffa3b31_a923f655","updated":"2017-04-20 10:18:13.000000000","message":"How bad/slow would it be to, instead of storing tenant information with the resource providers, enter a retry loop until a valid baremetal node has been landed upon? Since a single compute-node can know about multiple ironic nodes, that loop could potentially happen within the compute-node itself, without having to bump to the scheduler doing the retry (which, since there are some plans to limit/stop retries at the scheduler layer would be important).\n\nI\u0027m not saying this is a good idea, just throwing it out there to stimulate thinking about alternate strategies. If checking to see if the destination is \"okay\" is not a big problem, it might be a useful tool.","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"c3832ebef110239fad5ef385858a751238fb8614","unresolved":false,"context_lines":[{"line_number":320,"context_line":"Nova\u0027s resource tracker will be responsible for keeping track of nodes\u0027"},{"line_number":321,"context_line":"``owner`` value, and updating the resource providers table with this"},{"line_number":322,"context_line":"value. A corresponding column has to be added into ``resource_providers``"},{"line_number":323,"context_line":"table, this is going to be proposed separately to nova. When ``owner``"},{"line_number":324,"context_line":"value changes on ironic side, there can be a short period of time when nova"},{"line_number":325,"context_line":"uses the old value. In that period of time, one of the calls, e.g. VIF"},{"line_number":326,"context_line":"attachment, will fail, and it should cause the ``Rescheduled`` exception, so"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_e6c8e422","line":323,"in_reply_to":"7ffa3b31_cd6bdcb4","updated":"2017-04-20 20:17:46.000000000","message":"Hmm, but if say one tenant owns 2 nodes and another one owns 998, it will be a pretty high number of retries before succeeding?","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"},{"author":{"_account_id":11564,"name":"Chris Dent","email":"cdent@anticdent.org","username":"chdent"},"change_message_id":"21b8a6333db554e624ec4eebf7152ec5b774e53c","unresolved":false,"context_lines":[{"line_number":326,"context_line":"attachment, will fail, and it should cause the ``Rescheduled`` exception, so"},{"line_number":327,"context_line":"that other nodes can be tried. If it gets updated only on nova side, and this"},{"line_number":328,"context_line":"resource provider gets selected by the scheduler, the deployment to such node"},{"line_number":329,"context_line":"will fail as well."},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"Ramdisk impact"},{"line_number":332,"context_line":"--------------"}],"source_content_type":"text/x-rst","patch_set":10,"id":"7ffa3b31_dda3cb9d","line":329,"updated":"2017-04-18 17:07:15.000000000","message":"As a general rule, I think we need to think hard before we change the data model used in the placement service. Conceptually a resource provider hasn\u0027t been something that has an owner. Instead it is a thing which provides some inventory against which allocations (which very soon _will_ have an owner) can be made.\n\nAllocations having an owner makes conceptual sense.\n\nbaremetal nodes confuse the model because each single node is a resource provider with inventory that can be allocated against only once.\n\nI have more to say about this, but I\u0027m being called away, so will finish up later.","commit_id":"2753e29aef8208272f7b8c01f000b697852a408d"}]}
