)]}'
{"specs/approved/driver-composition-reform.rst":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f08d0fb56d8cdaf8d99ba8d197fc07172f53971d","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"* ``deploy``: ``iscsi``, ``http``;"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"* ``boot``: ``pxe``, ``ipxe``, ``vmedia_ilo``, ``vmedia_irmc``;"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"* ``inspect``: ``inspector``, ``inspect_ilo``, ``inspect_irmc``."},{"line_number":87,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a122d0e_cf922e4b","line":84,"updated":"2016-04-18 18:53:50.000000000","message":"for consistency with line 109, ilo_vmedia, irmc_vmedia?","commit_id":"b2eb01f31e5ccafc73c76bd04c23b23411277ea7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f08d0fb56d8cdaf8d99ba8d197fc07172f53971d","unresolved":false,"context_lines":[{"line_number":93,"context_line":"* Create a set of vendor-specific drivers, based on the vendor-chosen name."},{"line_number":94,"context_line":"  E.g. in ``setup.cfg``::"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    ironic.dynamic-drivers \u003d"},{"line_number":97,"context_line":"        drac \u003d ironic.drivers.drac.DracDriver"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"  The existing drivers are left for compatibility, a hardcoded set of"}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a122d0e_ef056ac2","line":96,"updated":"2016-04-18 18:53:50.000000000","message":"i\u0027m not sure I like \u0027dynamic\u0027. It makes me think there are eg static ones (the existing ironic.drivers I guess). What about \u0027vendor-drivers\u0027?","commit_id":"b2eb01f31e5ccafc73c76bd04c23b23411277ea7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f08d0fb56d8cdaf8d99ba8d197fc07172f53971d","unresolved":false,"context_lines":[{"line_number":94,"context_line":"  E.g. in ``setup.cfg``::"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    ironic.dynamic-drivers \u003d"},{"line_number":97,"context_line":"        drac \u003d ironic.drivers.drac.DracDriver"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"  The existing drivers are left for compatibility, a hardcoded set of"},{"line_number":100,"context_line":"  interface implementations is provided for them."}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a122d0e_cfd6ae26","line":97,"updated":"2016-04-18 18:53:50.000000000","message":"just throwing it out there. Would we want to prefix the names with the vendor. Eg, dell-drac, hp-ilo, hp-oneview (or is it hpe-oneview, hmm, maybe forget the vendor name idea.)","commit_id":"b2eb01f31e5ccafc73c76bd04c23b23411277ea7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f08d0fb56d8cdaf8d99ba8d197fc07172f53971d","unresolved":false,"context_lines":[{"line_number":108,"context_line":"        ipxe \u003d ironic.driver.modules.pxe.IPxeBoot"},{"line_number":109,"context_line":"        ilo_vmedia \u003d ironic.driver.modules.ilo.IloVirtualMediaBoot"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"* Create a new configuration option group ``[\u003cdriver\u003e]`` for each driver"},{"line_number":112,"context_line":"  (if it doesn\u0027t already exist)."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"  Each driver group will have these configuration options, one for each type of"}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a122d0e_6fcb1a54","line":111,"updated":"2016-04-18 18:53:50.000000000","message":"for each vendor driver (dynamic driver), right? Not existing drivers.","commit_id":"b2eb01f31e5ccafc73c76bd04c23b23411277ea7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f08d0fb56d8cdaf8d99ba8d197fc07172f53971d","unresolved":false,"context_lines":[{"line_number":117,"context_line":"  * ``\u003cinterface_name\u003e_interfaces``: comma-separated list of supported"},{"line_number":118,"context_line":"      interface implementations;"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"  * ``default_\u003cinterface_name\u003e_interface``: a default implementation"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"  Example::"},{"line_number":123,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a122d0e_ef128ab3","line":120,"updated":"2016-04-18 18:53:50.000000000","message":"value could be empty to indicate that there is no default (interface isn\u0027t available), right?\n\nOh, I see you mention it at line 142. I think it\u0027d be useful to mention it here too.","commit_id":"b2eb01f31e5ccafc73c76bd04c23b23411277ea7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f08d0fb56d8cdaf8d99ba8d197fc07172f53971d","unresolved":false,"context_lines":[{"line_number":132,"context_line":"    default_inspect_interface \u003d"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    [ilo]"},{"line_number":135,"context_line":"    boot_interfaces \u003d pxe,ipxe,ilo_vmedia"},{"line_number":136,"context_line":"    default_boot_interface \u003d ilo_vmedia"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    inspect_interfaces \u003d inspector,ilo_inspect"}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a122d0e_4f73bee7","line":135,"updated":"2016-04-18 18:53:50.000000000","message":"It might be useful to have some keyword, eg \u0027default\u0027 or (\u0027[default]\u0027?), to indicate that this \u0027inherits\u0027 the corresponding interfaces from [default] too, rather than copy/paste \u0027pxe, ipxe\u0027 around.","commit_id":"b2eb01f31e5ccafc73c76bd04c23b23411277ea7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f08d0fb56d8cdaf8d99ba8d197fc07172f53971d","unresolved":false,"context_lines":[{"line_number":161,"context_line":""},{"line_number":162,"context_line":"* Create a new field on the node table for each of the interface with names:"},{"line_number":163,"context_line":"  ``\u003cinterface_name\u003e_interface``. A migration will be needed each time"},{"line_number":164,"context_line":"  we add a new interface (which hopefully won\u0027t happen too often)."},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"  These fields will always be set to ``None`` (DB ``NULL``) for the old-style"},{"line_number":167,"context_line":"  drivers. The API will prevent setting any other values there."}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a122d0e_aa4c0071","line":164,"updated":"2016-04-18 18:53:50.000000000","message":"What is the advantage of one field per interface, versus one field \u0027interfaces\u0027 that is a dictionary. For ease of searching/filtering?\n\nOk, I see at line 195, that you\u0027re going to use it for filtering.","commit_id":"b2eb01f31e5ccafc73c76bd04c23b23411277ea7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f08d0fb56d8cdaf8d99ba8d197fc07172f53971d","unresolved":false,"context_lines":[{"line_number":175,"context_line":"  checks that the driver supports all the provided interfaces."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"  To change between two incompatible interfaces sets, all changes should come"},{"line_number":178,"context_line":"  in one API call. E.g. for a node with the ``ilo`` driver and ``vmedia_ilo``"},{"line_number":179,"context_line":"  boot the following JSON patch will be allowed::"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"    ["}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a122d0e_2aa63010","line":178,"updated":"2016-04-18 18:53:50.000000000","message":"s/vmedia_ilo/ilo_vmedia/ ?","commit_id":"b2eb01f31e5ccafc73c76bd04c23b23411277ea7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f08d0fb56d8cdaf8d99ba8d197fc07172f53971d","unresolved":false,"context_lines":[{"line_number":186,"context_line":"  but the following patch will fail because of incompatible boot interface::"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"    ["},{"line_number":189,"context_line":"        {\"op\": \"replace\", \"path\": \"/driver\", \"value\": \"ipmitool\"},"},{"line_number":190,"context_line":"    ]"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"* Add new API ``GET /v1/drivers/DRIVER/interfaces`` reporting the list of"}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a122d0e_0aced4b3","line":189,"updated":"2016-04-18 18:53:50.000000000","message":"I was actually thinking that this would succeed, and use the default boot_interface value for ipmitool, IFF the ilo driver had been using the default boot_interface. BUT maybe this gets too complicated.","commit_id":"b2eb01f31e5ccafc73c76bd04c23b23411277ea7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f08d0fb56d8cdaf8d99ba8d197fc07172f53971d","unresolved":false,"context_lines":[{"line_number":190,"context_line":"    ]"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"* Add new API ``GET /v1/drivers/DRIVER/interfaces`` reporting the list of"},{"line_number":193,"context_line":"  enabled interfaces for a driver."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":196,"context_line":"  list API."}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a122d0e_8aff84a9","line":193,"updated":"2016-04-18 18:53:50.000000000","message":"I thought a driver\u0027s enabled interface was dictated by the node, not the driver. So for eg, \u0027ilo\u0027 driver, nodeA could disable inspect_interface, but nodeB could use inspect_interface. What would this API show for this example?","commit_id":"b2eb01f31e5ccafc73c76bd04c23b23411277ea7"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f08d0fb56d8cdaf8d99ba8d197fc07172f53971d","unresolved":false,"context_lines":[{"line_number":198,"context_line":"* Create a new table ``conductor_driver_interfaces`` to hold the relationship"},{"line_number":199,"context_line":"  between conductors and available driver interfaces. A warning will be issued"},{"line_number":200,"context_line":"  on conductor start up, if it detects that other conductors have a different"},{"line_number":201,"context_line":"  set of interfaces for the same enabled driver."},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"  This situation is inevitable during live upgrades, so it does not result in"},{"line_number":204,"context_line":"  an error. However, we will document that all conductors should have the same"}],"source_content_type":"text/x-rst","patch_set":7,"id":"1a122d0e_8ac0242c","line":201,"updated":"2016-04-18 18:53:50.000000000","message":"by \u0027enabled driver\u0027, you mean the \u0027dynamic-drivers\u0027 in setup.cfg, and by \u0027driver interfaces\u0027, do you mean the configuration options [driver]/*_interfaces must be the same (but the defaults could be different)?","commit_id":"b2eb01f31e5ccafc73c76bd04c23b23411277ea7"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"9c80976c23d7b6cc5acf8db2c2e08dc6e1229619","unresolved":false,"context_lines":[{"line_number":28,"context_line":"  write it directly from within the agent."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"* ``inspect``: there is generic inspection using ironic-inspector, but some"},{"line_number":31,"context_line":"  drivers allow also out-of-band inspection. This feature is optional, so we"},{"line_number":32,"context_line":"  should provide a way to disable it."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Currently we ended up with a complex and really confusing naming schema."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_8ce5690a","line":31,"updated":"2016-04-20 17:23:46.000000000","message":"\"also allow\"","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":28,"context_line":"  write it directly from within the agent."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"* ``inspect``: there is generic inspection using ironic-inspector, but some"},{"line_number":31,"context_line":"  drivers allow also out-of-band inspection. This feature is optional, so we"},{"line_number":32,"context_line":"  should provide a way to disable it."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Currently we ended up with a complex and really confusing naming schema."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_bef1fdcf","line":31,"in_reply_to":"1a122d0e_8ce5690a","updated":"2016-04-22 15:57:32.000000000","message":"Done","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"9c80976c23d7b6cc5acf8db2c2e08dc6e1229619","unresolved":false,"context_lines":[{"line_number":62,"context_line":"    dealing with some aspect of bare metal provisioning in a vendor-specific"},{"line_number":63,"context_line":"    way."},{"line_number":64,"context_line":"**hardware type**"},{"line_number":65,"context_line":"    A family of hardware supporting the same set of interfaces from ironic"},{"line_number":66,"context_line":"    standpoint. This can be as wide as all hardware supporting the IPMI"},{"line_number":67,"context_line":"    protocol or as this as several hardware models supporting some specific"},{"line_number":68,"context_line":"    interfaces."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_0ca799bd","line":65,"updated":"2016-04-20 17:23:46.000000000","message":"\"ironic\" -\u003e \"ironic\u0027s\", or \"the ironic\"","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":62,"context_line":"    dealing with some aspect of bare metal provisioning in a vendor-specific"},{"line_number":63,"context_line":"    way."},{"line_number":64,"context_line":"**hardware type**"},{"line_number":65,"context_line":"    A family of hardware supporting the same set of interfaces from ironic"},{"line_number":66,"context_line":"    standpoint. This can be as wide as all hardware supporting the IPMI"},{"line_number":67,"context_line":"    protocol or as this as several hardware models supporting some specific"},{"line_number":68,"context_line":"    interfaces."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_9eec01f5","line":65,"in_reply_to":"1a122d0e_0ca799bd","updated":"2016-04-22 15:57:32.000000000","message":"Done","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"9c80976c23d7b6cc5acf8db2c2e08dc6e1229619","unresolved":false,"context_lines":[{"line_number":64,"context_line":"**hardware type**"},{"line_number":65,"context_line":"    A family of hardware supporting the same set of interfaces from ironic"},{"line_number":66,"context_line":"    standpoint. This can be as wide as all hardware supporting the IPMI"},{"line_number":67,"context_line":"    protocol or as this as several hardware models supporting some specific"},{"line_number":68,"context_line":"    interfaces."},{"line_number":69,"context_line":"**dynamic driver**"},{"line_number":70,"context_line":"    A thin object bound to a node and carrying links to specific interface"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_ecc7bd61","line":67,"updated":"2016-04-20 17:23:46.000000000","message":"\"as this as\" -\u003e \"as narrow as\", I think.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":64,"context_line":"**hardware type**"},{"line_number":65,"context_line":"    A family of hardware supporting the same set of interfaces from ironic"},{"line_number":66,"context_line":"    standpoint. This can be as wide as all hardware supporting the IPMI"},{"line_number":67,"context_line":"    protocol or as this as several hardware models supporting some specific"},{"line_number":68,"context_line":"    interfaces."},{"line_number":69,"context_line":"**dynamic driver**"},{"line_number":70,"context_line":"    A thin object bound to a node and carrying links to specific interface"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_3e5a0d84","line":67,"in_reply_to":"1a122d0e_ecc7bd61","updated":"2016-04-22 15:57:32.000000000","message":"Done","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"9c80976c23d7b6cc5acf8db2c2e08dc6e1229619","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    interfaces."},{"line_number":69,"context_line":"**dynamic driver**"},{"line_number":70,"context_line":"    A thin object bound to a node and carrying links to specific interface"},{"line_number":71,"context_line":"    implementations. Such objects are created in run time, hence their name."},{"line_number":72,"context_line":"**classic driver**"},{"line_number":73,"context_line":"    An ironic driver before this spec: a class with links to interfaces"},{"line_number":74,"context_line":"    hardcoded in the Python code."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_4cad119a","line":71,"updated":"2016-04-20 17:23:46.000000000","message":"\"at run time\"","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    interfaces."},{"line_number":69,"context_line":"**dynamic driver**"},{"line_number":70,"context_line":"    A thin object bound to a node and carrying links to specific interface"},{"line_number":71,"context_line":"    implementations. Such objects are created in run time, hence their name."},{"line_number":72,"context_line":"**classic driver**"},{"line_number":73,"context_line":"    An ironic driver before this spec: a class with links to interfaces"},{"line_number":74,"context_line":"    hardcoded in the Python code."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_fe9415e9","line":71,"in_reply_to":"1a122d0e_4cad119a","updated":"2016-04-22 15:57:32.000000000","message":"Done","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8a1ceb517a4b490c19192263cb7f79b98e7a314","unresolved":false,"context_lines":[{"line_number":69,"context_line":"**dynamic driver**"},{"line_number":70,"context_line":"    A thin object bound to a node and carrying links to specific interface"},{"line_number":71,"context_line":"    implementations. Such objects are created in run time, hence their name."},{"line_number":72,"context_line":"**classic driver**"},{"line_number":73,"context_line":"    An ironic driver before this spec: a class with links to interfaces"},{"line_number":74,"context_line":"    hardcoded in the Python code."},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_7111815d","line":72,"updated":"2016-04-21 20:20:13.000000000","message":"I don\u0027t want to bikeshed but maybe I do. Do we want to encourage folks to use dynamic drivers? If so, what about calling this \u0027static driver\u0027?\n\n\u0027classic driver\u0027 is a good name; makes it sound like we are totally fine with them.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":69,"context_line":"**dynamic driver**"},{"line_number":70,"context_line":"    A thin object bound to a node and carrying links to specific interface"},{"line_number":71,"context_line":"    implementations. Such objects are created in run time, hence their name."},{"line_number":72,"context_line":"**classic driver**"},{"line_number":73,"context_line":"    An ironic driver before this spec: a class with links to interfaces"},{"line_number":74,"context_line":"    hardcoded in the Python code."},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_febb7573","line":72,"in_reply_to":"1a122d0e_7111815d","updated":"2016-04-22 15:57:32.000000000","message":"I like both :) will leave for now, so that we can bikeshed later.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"9c80976c23d7b6cc5acf8db2c2e08dc6e1229619","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"With this spec we are going to achieve the following goals:"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"* Make *vendors* in charge for defining a set of supported interfaces"},{"line_number":79,"context_line":"  implementations and the default implementation to be used."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* Allow *vendors* to guarantee that unsupported implementation will not be used"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_cc99217b","line":78,"updated":"2016-04-20 17:23:46.000000000","message":"\"in charge of\"\n\n\"interface implementations\"","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"With this spec we are going to achieve the following goals:"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"* Make *vendors* in charge for defining a set of supported interfaces"},{"line_number":79,"context_line":"  implementations and the default implementation to be used."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* Allow *vendors* to guarantee that unsupported implementation will not be used"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_5eab891e","line":78,"in_reply_to":"1a122d0e_cc99217b","updated":"2016-04-22 15:57:32.000000000","message":"Done","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8a1ceb517a4b490c19192263cb7f79b98e7a314","unresolved":false,"context_lines":[{"line_number":85,"context_line":"  in-tree interface implementations."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* Allow a user to switch between supported interface implementation for a node"},{"line_number":88,"context_line":"  via the bare metal API."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"* Make *hardware type* definition as declarative as it\u0027s possible."},{"line_number":91,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_a46759e9","line":88,"updated":"2016-04-21 20:20:13.000000000","message":"Will we still allow a user to switch vendors (or hardware types, I\u0027m still trying to grok the diff).","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":85,"context_line":"  in-tree interface implementations."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* Allow a user to switch between supported interface implementation for a node"},{"line_number":88,"context_line":"  via the bare metal API."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"* Make *hardware type* definition as declarative as it\u0027s possible."},{"line_number":91,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_fe625515","line":88,"in_reply_to":"1a122d0e_a46759e9","updated":"2016-04-22 15:57:32.000000000","message":"That\u0027s the plan, yes.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"9c80976c23d7b6cc5acf8db2c2e08dc6e1229619","unresolved":false,"context_lines":[{"line_number":87,"context_line":"* Allow a user to switch between supported interface implementation for a node"},{"line_number":88,"context_line":"  via the bare metal API."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"* Make *hardware type* definition as declarative as it\u0027s possible."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"Configuration"},{"line_number":93,"context_line":"-------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_8cc8c956","line":90,"updated":"2016-04-20 17:23:46.000000000","message":"\"Make the *hardware type* definition as declarative as possible\"","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"9c80976c23d7b6cc5acf8db2c2e08dc6e1229619","unresolved":false,"context_lines":[{"line_number":110,"context_line":"    ironic.hardware.interfaces.power \u003d"},{"line_number":111,"context_line":"        ipmitool \u003d ironic.drivers.modules.ipmitool:IpmitoolPower"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"* Compatibility between *hardware types* and *hardware interface* implentations"},{"line_number":114,"context_line":"  is expressed in the Python code - see `Hardware Types`_ for details."},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"* Create a new configuration option ``enabled_hardware_types`` with a list of"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_0c0af989","line":113,"updated":"2016-04-20 17:23:46.000000000","message":"Typo: \"implementations\"","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":110,"context_line":"    ironic.hardware.interfaces.power \u003d"},{"line_number":111,"context_line":"        ipmitool \u003d ironic.drivers.modules.ipmitool:IpmitoolPower"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"* Compatibility between *hardware types* and *hardware interface* implentations"},{"line_number":114,"context_line":"  is expressed in the Python code - see `Hardware Types`_ for details."},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"* Create a new configuration option ``enabled_hardware_types`` with a list of"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_3e44cd72","line":113,"in_reply_to":"1a122d0e_0c0af989","updated":"2016-04-22 15:57:32.000000000","message":"Done","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"3989576688691c0e17830da604404ba6b38be7fa","unresolved":false,"context_lines":[{"line_number":116,"context_line":"* Create a new configuration option ``enabled_hardware_types`` with a list of"},{"line_number":117,"context_line":"  enabled *hardware types*."},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"* Create a familty of configuration options ``enabled_\u003cINTERFACE\u003e_interfaces``"},{"line_number":120,"context_line":"  with a list of enabled implementations of each *hardware interface*."},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_a9039b75","line":119,"range":{"start_line":119,"start_character":11,"end_line":119,"end_character":18},"updated":"2016-04-22 10:29:20.000000000","message":"s/familty/family","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":116,"context_line":"* Create a new configuration option ``enabled_hardware_types`` with a list of"},{"line_number":117,"context_line":"  enabled *hardware types*."},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"* Create a familty of configuration options ``enabled_\u003cINTERFACE\u003e_interfaces``"},{"line_number":120,"context_line":"  with a list of enabled implementations of each *hardware interface*."},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_7e5e4546","line":119,"range":{"start_line":119,"start_character":11,"end_line":119,"end_character":18},"in_reply_to":"1a122d0e_a9039b75","updated":"2016-04-22 15:57:32.000000000","message":"Done","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"3989576688691c0e17830da604404ba6b38be7fa","unresolved":false,"context_lines":[{"line_number":136,"context_line":"Database and API"},{"line_number":137,"context_line":"----------------"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"* Create a new field on the node table for each of the interface with names:"},{"line_number":140,"context_line":"  ``\u003cinterface_name\u003e_interface``. A migration will be needed each time"},{"line_number":141,"context_line":"  we add a new interface (which hopefully won\u0027t happen too often)."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"  These fields will always be set to ``None`` (DB ``NULL``) for *classic"},{"line_number":144,"context_line":"  drivers*. The API will prevent setting any other values there."},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"  For *dynamic drivers* the ``None`` value will mean using the *vendor*"},{"line_number":147,"context_line":"  default. If the *vendor* default is ``None``, the interface will be disabled."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":150,"context_line":"  checks that the *hardware type* supports all the provided interfaces."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_49a7674f","line":147,"range":{"start_line":139,"start_character":0,"end_line":147,"end_character":79},"updated":"2016-04-22 10:29:20.000000000","message":"I thought we were going to break this out into separate tables? E.g.\n\nNode table - Containing nodes\ninterfaces_table - Containing a list of all loaded interfaces\ninterface_types_table - Containing all interface types\ninterface_node_map_table - Containing columns, node_id, interface_type_id, and interface_id","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":136,"context_line":"Database and API"},{"line_number":137,"context_line":"----------------"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"* Create a new field on the node table for each of the interface with names:"},{"line_number":140,"context_line":"  ``\u003cinterface_name\u003e_interface``. A migration will be needed each time"},{"line_number":141,"context_line":"  we add a new interface (which hopefully won\u0027t happen too often)."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"  These fields will always be set to ``None`` (DB ``NULL``) for *classic"},{"line_number":144,"context_line":"  drivers*. The API will prevent setting any other values there."},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"  For *dynamic drivers* the ``None`` value will mean using the *vendor*"},{"line_number":147,"context_line":"  default. If the *vendor* default is ``None``, the interface will be disabled."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":150,"context_line":"  checks that the *hardware type* supports all the provided interfaces."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_be061d1e","line":147,"range":{"start_line":139,"start_character":0,"end_line":147,"end_character":79},"in_reply_to":"1a122d0e_49a7674f","updated":"2016-04-22 15:57:32.000000000","message":"I was never going to do that. I think the plan was to have a mapping between a conductor and interfaces loaded on it, so that we can check it at start up time.\n\nI don\u0027t see a big benefit in having a separate table.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8a1ceb517a4b490c19192263cb7f79b98e7a314","unresolved":false,"context_lines":[{"line_number":146,"context_line":"  For *dynamic drivers* the ``None`` value will mean using the *vendor*"},{"line_number":147,"context_line":"  default. If the *vendor* default is ``None``, the interface will be disabled."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":150,"context_line":"  checks that the *hardware type* supports all the provided interfaces."},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"  To change between two incompatible interfaces sets, all changes should come"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_24bb4977","line":149,"updated":"2016-04-21 20:20:13.000000000","message":"wrt driver -- how are we distinguishing between classic and dynamic drivers? Is it encoded in the existing \u0027driver\u0027 field, or in some other field?\n\nOh, based on your example below, you\u0027re using the same \u0027driver\u0027 field. The classic drivers will have the same existing names. For dynamic drivers, this will be the hardware type string.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"3989576688691c0e17830da604404ba6b38be7fa","unresolved":false,"context_lines":[{"line_number":146,"context_line":"  For *dynamic drivers* the ``None`` value will mean using the *vendor*"},{"line_number":147,"context_line":"  default. If the *vendor* default is ``None``, the interface will be disabled."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":150,"context_line":"  checks that the *hardware type* supports all the provided interfaces."},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"  To change between two incompatible interfaces sets, all changes should come"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_4cc5b559","line":149,"in_reply_to":"1a122d0e_24bb4977","updated":"2016-04-22 10:29:20.000000000","message":"I wonder if we should deprecate the driver field, and add a new field on the node model, type or hardware_type. Making it easy to determine if someone is using the old system or the new system. E.g.\n\nif node.driver is not None: \nhandle like a old node\nelse\nhandle like a new node","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":146,"context_line":"  For *dynamic drivers* the ``None`` value will mean using the *vendor*"},{"line_number":147,"context_line":"  default. If the *vendor* default is ``None``, the interface will be disabled."},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":150,"context_line":"  checks that the *hardware type* supports all the provided interfaces."},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"  To change between two incompatible interfaces sets, all changes should come"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_a15d6217","line":149,"in_reply_to":"1a122d0e_4cc5b559","updated":"2016-04-22 15:57:32.000000000","message":"Please see Alternatives on why I don\u0027t deprecated the driver field. TL;DR it\u0027s part of API, so we can\u0027t deprecate it for real.\n\nWill clarify re distinguishing drivers.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"3989576688691c0e17830da604404ba6b38be7fa","unresolved":false,"context_lines":[{"line_number":156,"context_line":"    ["},{"line_number":157,"context_line":"        {\"op\": \"replace\", \"path\": \"/driver\", \"value\": \"generic-ipmi\"},"},{"line_number":158,"context_line":"        {\"op\": \"replace\", \"path\": \"/boot_interface\", \"value\": \"ipxe\"}"},{"line_number":159,"context_line":"    ]"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"  but the following patch will fail because of incompatible boot interface::"},{"line_number":162,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_cc13850c","line":159,"updated":"2016-04-22 10:29:20.000000000","message":"Based on the way that the json patch logic should work according the RFC, this would blow up during the first replace, because each operate is applied in order, and the request is not considered as a whole. So unless we do the the validate after processing the whole request, then we might run into problems.\n\nI would prefer if we allowed a user to set any interface on any node, and only consider validating it against the hardware type at the point something talks to the node validate API. Then if the user had a specific interface that was not compatible they would be able to see it in the output of the node validate: \n\n| power | Incompatible with current hardware type |","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":156,"context_line":"    ["},{"line_number":157,"context_line":"        {\"op\": \"replace\", \"path\": \"/driver\", \"value\": \"generic-ipmi\"},"},{"line_number":158,"context_line":"        {\"op\": \"replace\", \"path\": \"/boot_interface\", \"value\": \"ipxe\"}"},{"line_number":159,"context_line":"    ]"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"  but the following patch will fail because of incompatible boot interface::"},{"line_number":162,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_01e9b61a","line":159,"in_reply_to":"1a122d0e_cc13850c","updated":"2016-04-22 15:57:32.000000000","message":"We can do validation on the resulting node after update but before writing the update in database. I think it\u0027s pretty possible.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"3989576688691c0e17830da604404ba6b38be7fa","unresolved":false,"context_lines":[{"line_number":166,"context_line":""},{"line_number":167,"context_line":"* Add new API ``GET /v1/hardware/types`` listing all *hardware types*. List"},{"line_number":168,"context_line":"  enabled by default, also allow listing only disabled and both enabled and"},{"line_number":169,"context_line":"  disabled *hardware types*."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"* Add new API ``GET /v1/hardware/\u003cHW TYPE\u003e/interfaces`` reporting the list of"},{"line_number":172,"context_line":"  enabled *hardware interfaces* for a *hardware type*."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_ac03a975","line":169,"updated":"2016-04-22 10:29:20.000000000","message":"I don\u0027t like how we\u0027ve got a /v1/hardware part of this API that isn\u0027t used for anything, I would much prefer, GET /v1/hardware or GET /v1/hardware_types","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":166,"context_line":""},{"line_number":167,"context_line":"* Add new API ``GET /v1/hardware/types`` listing all *hardware types*. List"},{"line_number":168,"context_line":"  enabled by default, also allow listing only disabled and both enabled and"},{"line_number":169,"context_line":"  disabled *hardware types*."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"* Add new API ``GET /v1/hardware/\u003cHW TYPE\u003e/interfaces`` reporting the list of"},{"line_number":172,"context_line":"  enabled *hardware interfaces* for a *hardware type*."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_61d86a80","line":169,"in_reply_to":"1a122d0e_ac03a975","updated":"2016-04-22 15:57:32.000000000","message":"Done","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8a1ceb517a4b490c19192263cb7f79b98e7a314","unresolved":false,"context_lines":[{"line_number":170,"context_line":""},{"line_number":171,"context_line":"* Add new API ``GET /v1/hardware/\u003cHW TYPE\u003e/interfaces`` reporting the list of"},{"line_number":172,"context_line":"  enabled *hardware interfaces* for a *hardware type*."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":175,"context_line":"  list API."},{"line_number":176,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_241189b0","line":173,"updated":"2016-04-21 20:20:13.000000000","message":"Wondering if anyone would want an API to get a list of all the hardware interfaces (regardless of which hardware type supports them), eg GET /v1/hardware/interfaces (similar to hardware types, can see enabled by default, disabled, or all)\n\nWhich then makes me wonder whether it might be useful to have an API to get list of hardware types that support a particular interface. But maybe we won\u0027t go there for now.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"3989576688691c0e17830da604404ba6b38be7fa","unresolved":false,"context_lines":[{"line_number":170,"context_line":""},{"line_number":171,"context_line":"* Add new API ``GET /v1/hardware/\u003cHW TYPE\u003e/interfaces`` reporting the list of"},{"line_number":172,"context_line":"  enabled *hardware interfaces* for a *hardware type*."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":175,"context_line":"  list API."},{"line_number":176,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_acc60914","line":173,"in_reply_to":"1a122d0e_241189b0","updated":"2016-04-22 10:29:20.000000000","message":"I agree having an API to list all possible interfaces would be cool, and I think that it could potentially replace the API here because I think you could implement it as: \n\nGET /v1/interfaces?hardware_type\u003d\u003ctype\u003e","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":170,"context_line":""},{"line_number":171,"context_line":"* Add new API ``GET /v1/hardware/\u003cHW TYPE\u003e/interfaces`` reporting the list of"},{"line_number":172,"context_line":"  enabled *hardware interfaces* for a *hardware type*."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":175,"context_line":"  list API."},{"line_number":176,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_01ba56e1","line":173,"in_reply_to":"1a122d0e_acc60914","updated":"2016-04-22 15:57:32.000000000","message":"Maybe. I\u0027m leaving API bikeshedding for a later stage, when we agree on the very idea.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8a1ceb517a4b490c19192263cb7f79b98e7a314","unresolved":false,"context_lines":[{"line_number":172,"context_line":"  enabled *hardware interfaces* for a *hardware type*."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":175,"context_line":"  list API."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"* Create a new table ``conductor_hardware_interfaces`` to hold the relationship"},{"line_number":178,"context_line":"  between conductors and available interfaces. A warning will be issued"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_84fe9d36","line":175,"updated":"2016-04-21 20:20:13.000000000","message":"I might have missed it. How are nodes associated with hardware type? via the existing \u0027driver\u0027 field? Thinking that someone might want to filter nodes based on hardware type.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"3989576688691c0e17830da604404ba6b38be7fa","unresolved":false,"context_lines":[{"line_number":172,"context_line":"  enabled *hardware interfaces* for a *hardware type*."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":175,"context_line":"  list API."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"* Create a new table ``conductor_hardware_interfaces`` to hold the relationship"},{"line_number":178,"context_line":"  between conductors and available interfaces. A warning will be issued"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_6ce511a7","line":175,"in_reply_to":"1a122d0e_84fe9d36","updated":"2016-04-22 10:29:20.000000000","message":"++ and I think that would be easier if driver and hardware_type were split.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"3989576688691c0e17830da604404ba6b38be7fa","unresolved":false,"context_lines":[{"line_number":174,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":175,"context_line":"  list API."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"* Create a new table ``conductor_hardware_interfaces`` to hold the relationship"},{"line_number":178,"context_line":"  between conductors and available interfaces. A warning will be issued"},{"line_number":179,"context_line":"  on conductor start up, if it detects that other conductors have a different"},{"line_number":180,"context_line":"  set of interfaces for the same enabled *hardware type*."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"  This situation is inevitable during live upgrades, so it does not result in"},{"line_number":183,"context_line":"  an error. However, we will document that all conductors should have the same"},{"line_number":184,"context_line":"  set of interfaces for the same enabled *hardware typpes*."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"Alternatives"},{"line_number":187,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_4f48075c","line":184,"range":{"start_line":177,"start_character":2,"end_line":184,"end_character":59},"updated":"2016-04-22 10:29:20.000000000","message":"I would be very interested in making the node to conductor placement based on the available enabled interfaces, e.g. if I have two conductors, both with my_awesome_hardware_type enabled on it, but for some optimisation reason I want only one to provide MyAwesomeVirtualMediaBoot (something like that conductors server has faster IOPS I don\u0027t know :/), then if I create a node using MyAwesomeVirtualMediaBoot it should land on that conductor, and if I don\u0027t use that boot interface then it can land on either conductor. WDYT?","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8a1ceb517a4b490c19192263cb7f79b98e7a314","unresolved":false,"context_lines":[{"line_number":181,"context_line":""},{"line_number":182,"context_line":"  This situation is inevitable during live upgrades, so it does not result in"},{"line_number":183,"context_line":"  an error. However, we will document that all conductors should have the same"},{"line_number":184,"context_line":"  set of interfaces for the same enabled *hardware typpes*."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"Alternatives"},{"line_number":187,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_0703af0e","line":184,"updated":"2016-04-21 20:20:13.000000000","message":"s/typpes/types/","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":174,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":175,"context_line":"  list API."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"* Create a new table ``conductor_hardware_interfaces`` to hold the relationship"},{"line_number":178,"context_line":"  between conductors and available interfaces. A warning will be issued"},{"line_number":179,"context_line":"  on conductor start up, if it detects that other conductors have a different"},{"line_number":180,"context_line":"  set of interfaces for the same enabled *hardware type*."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"  This situation is inevitable during live upgrades, so it does not result in"},{"line_number":183,"context_line":"  an error. However, we will document that all conductors should have the same"},{"line_number":184,"context_line":"  set of interfaces for the same enabled *hardware typpes*."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"Alternatives"},{"line_number":187,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_e1063a84","line":184,"range":{"start_line":177,"start_character":2,"end_line":184,"end_character":59},"in_reply_to":"1a122d0e_4f48075c","updated":"2016-04-22 15:57:32.000000000","message":"I would love it, except that it will require a change to our hash ring.. which will require some interesting upgrade procedure... so while I like it, I\u0027m inclined to not put it in this spec. We can change it separately, if we feel like.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"9c80976c23d7b6cc5acf8db2c2e08dc6e1229619","unresolved":false,"context_lines":[{"line_number":187,"context_line":"------------"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"* We could put interfaces under a new JSON key on a node. However, we\u0027re"},{"line_number":190,"context_line":"  trying to move away from informaly defined JSON keys. It would also prevent"},{"line_number":191,"context_line":"  us from implement filtering nodes based on a particular interface."},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"* We could create a new API endpoint for updating the interfaces. This will be"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_97d9f2f5","line":190,"updated":"2016-04-20 17:23:46.000000000","message":"Typo: \"informally\"","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":187,"context_line":"------------"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"* We could put interfaces under a new JSON key on a node. However, we\u0027re"},{"line_number":190,"context_line":"  trying to move away from informaly defined JSON keys. It would also prevent"},{"line_number":191,"context_line":"  us from implement filtering nodes based on a particular interface."},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"* We could create a new API endpoint for updating the interfaces. This will be"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_61f34aa0","line":190,"in_reply_to":"1a122d0e_97d9f2f5","updated":"2016-04-22 15:57:32.000000000","message":"Done","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"9c80976c23d7b6cc5acf8db2c2e08dc6e1229619","unresolved":false,"context_lines":[{"line_number":199,"context_line":"  would involve adding a new ``hardware_type`` field to a node."},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"  This is more logical, but it poses upgrade problems. Due to API versioning"},{"line_number":202,"context_line":"  we will never be able to deprecated and remove the existing ``driver`` field."},{"line_number":203,"context_line":"  Then for users to be able to create nodes using old API versions, we will"},{"line_number":204,"context_line":"  also have to keep the *classic drivers* in tree forever. That will put"},{"line_number":205,"context_line":"  additional load on both the team and the gate."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_17c202e9","line":202,"updated":"2016-04-20 17:23:46.000000000","message":"\"deprecate\"","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":199,"context_line":"  would involve adding a new ``hardware_type`` field to a node."},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"  This is more logical, but it poses upgrade problems. Due to API versioning"},{"line_number":202,"context_line":"  we will never be able to deprecated and remove the existing ``driver`` field."},{"line_number":203,"context_line":"  Then for users to be able to create nodes using old API versions, we will"},{"line_number":204,"context_line":"  also have to keep the *classic drivers* in tree forever. That will put"},{"line_number":205,"context_line":"  additional load on both the team and the gate."}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_c1f21e9a","line":202,"in_reply_to":"1a122d0e_17c202e9","updated":"2016-04-22 15:57:32.000000000","message":"Done","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8a1ceb517a4b490c19192263cb7f79b98e7a314","unresolved":false,"context_lines":[{"line_number":201,"context_line":"  This is more logical, but it poses upgrade problems. Due to API versioning"},{"line_number":202,"context_line":"  we will never be able to deprecated and remove the existing ``driver`` field."},{"line_number":203,"context_line":"  Then for users to be able to create nodes using old API versions, we will"},{"line_number":204,"context_line":"  also have to keep the *classic drivers* in tree forever. That will put"},{"line_number":205,"context_line":"  additional load on both the team and the gate."},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_67f26308","line":204,"updated":"2016-04-21 20:20:13.000000000","message":"So we plan on deprecating the classic drivers at some point.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":201,"context_line":"  This is more logical, but it poses upgrade problems. Due to API versioning"},{"line_number":202,"context_line":"  we will never be able to deprecated and remove the existing ``driver`` field."},{"line_number":203,"context_line":"  Then for users to be able to create nodes using old API versions, we will"},{"line_number":204,"context_line":"  also have to keep the *classic drivers* in tree forever. That will put"},{"line_number":205,"context_line":"  additional load on both the team and the gate."},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"Data model impact"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_813f8624","line":204,"in_reply_to":"1a122d0e_67f26308","updated":"2016-04-22 15:57:32.000000000","message":"I hope so. We can\u0027t support and test 2 sets of drivers forever.","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8a1ceb517a4b490c19192263cb7f79b98e7a314","unresolved":false,"context_lines":[{"line_number":249,"context_line":""},{"line_number":250,"context_line":"* Create a new ``AbstractHardwareType`` class as an abstract base class for"},{"line_number":251,"context_line":"  all hardware types. Here is a simplified implementation, using only"},{"line_number":252,"context_line":"  power, deploy and inspect interfaces::"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"    import abc, six"},{"line_number":255,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_a4959989","line":252,"updated":"2016-04-21 20:20:13.000000000","message":"But all the existing interfaces would be in this class, right? How\u0027d we add new interfaces, eg, like the \u0027network\u0027 interface which is a core interface (https://review.openstack.org/#/c/285852)","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":249,"context_line":""},{"line_number":250,"context_line":"* Create a new ``AbstractHardwareType`` class as an abstract base class for"},{"line_number":251,"context_line":"  all hardware types. Here is a simplified implementation, using only"},{"line_number":252,"context_line":"  power, deploy and inspect interfaces::"},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"    import abc, six"},{"line_number":255,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_e1147aa0","line":252,"in_reply_to":"1a122d0e_a4959989","updated":"2016-04-22 15:57:32.000000000","message":"Yes","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8a1ceb517a4b490c19192263cb7f79b98e7a314","unresolved":false,"context_lines":[{"line_number":405,"context_line":""},{"line_number":406,"context_line":"Initial etherpad: https://etherpad.openstack.org/p/liberty-ironic-driver-composition"},{"line_number":407,"context_line":""},{"line_number":408,"context_line":".. _BareDriver: http://docs.openstack.org/developer/ironic/api/ironic.drivers.base.html#ironic.drivers.base.BaseDriver"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_4713e70d","line":408,"updated":"2016-04-21 20:20:13.000000000","message":"This BareDriver links to BaseDriver. Did you want BareDriver or BaseDriver?","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d2fdaf74e1e2b8e369bb2cc4dbf317995841a430","unresolved":false,"context_lines":[{"line_number":405,"context_line":""},{"line_number":406,"context_line":"Initial etherpad: https://etherpad.openstack.org/p/liberty-ironic-driver-composition"},{"line_number":407,"context_line":""},{"line_number":408,"context_line":".. _BareDriver: http://docs.openstack.org/developer/ironic/api/ironic.drivers.base.html#ironic.drivers.base.BaseDriver"}],"source_content_type":"text/x-rst","patch_set":8,"id":"1a122d0e_e17bdaf2","line":408,"in_reply_to":"1a122d0e_4713e70d","updated":"2016-04-22 15:57:32.000000000","message":"Done","commit_id":"4d013b18a5039fbf85bafe4813eacb680510193e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"1193ed44d3a3ccd0b2088b6fc77a2eac2ab26bf7","unresolved":false,"context_lines":[{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Our driver interface matrix becomes more and more complex. To top it all,"},{"line_number":21,"context_line":"nowadays we have many interfaces that can be used for every driver. To name a"},{"line_number":22,"context_line":"few:"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_24b9607a","line":20,"updated":"2016-04-22 16:13:15.000000000","message":"s/matrix becomes/matrix has become/\n\ns/it all,/it all off,/","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":17,"context_line":"Problem description"},{"line_number":18,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Our driver interface matrix becomes more and more complex. To top it all,"},{"line_number":21,"context_line":"nowadays we have many interfaces that can be used for every driver. To name a"},{"line_number":22,"context_line":"few:"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_aaa89778","line":20,"in_reply_to":"1a122d0e_24b9607a","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"1193ed44d3a3ccd0b2088b6fc77a2eac2ab26bf7","unresolved":false,"context_lines":[{"line_number":31,"context_line":"  drivers also allow out-of-band inspection. This feature is optional, so we"},{"line_number":32,"context_line":"  should provide a way to disable it."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Currently we ended up with a complex and really confusing naming schema."},{"line_number":35,"context_line":"Just an example:"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"* ``pxe_ipmitool`` uses PXE or iPXE for boot and iSCSI for deploy."}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_8425d4c3","line":34,"updated":"2016-04-22 16:13:15.000000000","message":"s/we ended/we have ended up/\n\nI like \"scheme\" better than \"schema\". Sounds better but I\u0027m not sure which one is more technically correct.","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":31,"context_line":"  drivers also allow out-of-band inspection. This feature is optional, so we"},{"line_number":32,"context_line":"  should provide a way to disable it."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Currently we ended up with a complex and really confusing naming schema."},{"line_number":35,"context_line":"Just an example:"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"* ``pxe_ipmitool`` uses PXE or iPXE for boot and iSCSI for deploy."}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_cadb531a","line":34,"in_reply_to":"1a122d0e_8425d4c3","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"1193ed44d3a3ccd0b2088b6fc77a2eac2ab26bf7","unresolved":false,"context_lines":[{"line_number":32,"context_line":"  should provide a way to disable it."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Currently we ended up with a complex and really confusing naming schema."},{"line_number":35,"context_line":"Just an example:"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"* ``pxe_ipmitool`` uses PXE or iPXE for boot and iSCSI for deploy."},{"line_number":38,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_ef28e187","line":35,"updated":"2016-04-22 16:13:15.000000000","message":"For example:\n\n\"Just an example\" sounds like there would be a single example.","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":32,"context_line":"  should provide a way to disable it."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Currently we ended up with a complex and really confusing naming schema."},{"line_number":35,"context_line":"Just an example:"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"* ``pxe_ipmitool`` uses PXE or iPXE for boot and iSCSI for deploy."},{"line_number":38,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_aad6d7ee","line":35,"in_reply_to":"1a122d0e_ef28e187","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"1193ed44d3a3ccd0b2088b6fc77a2eac2ab26bf7","unresolved":false,"context_lines":[{"line_number":67,"context_line":"    protocol or as narrow as several hardware models supporting some specific"},{"line_number":68,"context_line":"    interfaces."},{"line_number":69,"context_line":"**driver**"},{"line_number":70,"context_line":"    An thin object containing links to hardware interfaces. Before this spec"},{"line_number":71,"context_line":"    *driver* meant roughly the same as *hardware type* means in this spec."},{"line_number":72,"context_line":"**classic driver**"},{"line_number":73,"context_line":"    An ironic driver before this spec: a class with links to interfaces"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_0f4d5d72","line":70,"range":{"start_line":70,"start_character":4,"end_line":70,"end_character":12},"updated":"2016-04-22 16:13:15.000000000","message":"A thin","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"1193ed44d3a3ccd0b2088b6fc77a2eac2ab26bf7","unresolved":false,"context_lines":[{"line_number":81,"context_line":"* Make *vendors* in charge of defining a set of supported interface"},{"line_number":82,"context_line":"  implementations and the default implementation to be used."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"* Allow *vendors* to guarantee that unsupported implementation will not be used"},{"line_number":85,"context_line":"  with hardware types they define."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* reusing maximum of"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_8f684dbc","line":84,"range":{"start_line":84,"start_character":48,"end_line":84,"end_character":62},"updated":"2016-04-22 16:13:15.000000000","message":"implementations","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":81,"context_line":"* Make *vendors* in charge of defining a set of supported interface"},{"line_number":82,"context_line":"  implementations and the default implementation to be used."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"* Allow *vendors* to guarantee that unsupported implementation will not be used"},{"line_number":85,"context_line":"  with hardware types they define."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* reusing maximum of"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_ca2073fa","line":84,"range":{"start_line":84,"start_character":48,"end_line":84,"end_character":62},"in_reply_to":"1a122d0e_8f684dbc","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"1193ed44d3a3ccd0b2088b6fc77a2eac2ab26bf7","unresolved":false,"context_lines":[{"line_number":84,"context_line":"* Allow *vendors* to guarantee that unsupported implementation will not be used"},{"line_number":85,"context_line":"  with hardware types they define."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* reusing maximum of"},{"line_number":88,"context_line":"  in-tree interface implementations."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"* Allow a user to switch between supported interface implementation for a node"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_efebc110","line":87,"updated":"2016-04-22 16:13:15.000000000","message":"Allow 3rd parties to create out-of-tree *hardware types* that allow them to maximize their reuse of the in-tree interface implementations.","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":84,"context_line":"* Allow *vendors* to guarantee that unsupported implementation will not be used"},{"line_number":85,"context_line":"  with hardware types they define."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* reusing maximum of"},{"line_number":88,"context_line":"  in-tree interface implementations."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"* Allow a user to switch between supported interface implementation for a node"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_ea7baff2","line":87,"in_reply_to":"1a122d0e_efebc110","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"1193ed44d3a3ccd0b2088b6fc77a2eac2ab26bf7","unresolved":false,"context_lines":[{"line_number":87,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* reusing maximum of"},{"line_number":88,"context_line":"  in-tree interface implementations."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"* Allow a user to switch between supported interface implementation for a node"},{"line_number":91,"context_line":"  via the bare metal API."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"* Make *hardware type* definition as declarative as it\u0027s possible."}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_ef60e1a6","line":90,"range":{"start_line":90,"start_character":53,"end_line":90,"end_character":67},"updated":"2016-04-22 16:13:15.000000000","message":"implementations","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":87,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* reusing maximum of"},{"line_number":88,"context_line":"  in-tree interface implementations."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"* Allow a user to switch between supported interface implementation for a node"},{"line_number":91,"context_line":"  via the bare metal API."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"* Make *hardware type* definition as declarative as it\u0027s possible."}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_ea628f3c","line":90,"range":{"start_line":90,"start_character":53,"end_line":90,"end_character":67},"in_reply_to":"1a122d0e_ef60e1a6","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"1193ed44d3a3ccd0b2088b6fc77a2eac2ab26bf7","unresolved":false,"context_lines":[{"line_number":90,"context_line":"* Allow a user to switch between supported interface implementation for a node"},{"line_number":91,"context_line":"  via the bare metal API."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"* Make *hardware type* definition as declarative as it\u0027s possible."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"* Allow a user to switch *hardware type* for a node, just as it was possible"},{"line_number":96,"context_line":"  to change a driver before this spec."}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_0f371db1","line":93,"range":{"start_line":93,"start_character":52,"end_line":93,"end_character":56},"updated":"2016-04-22 16:13:15.000000000","message":"is\n\nSounds better to me.","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":90,"context_line":"* Allow a user to switch between supported interface implementation for a node"},{"line_number":91,"context_line":"  via the bare metal API."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"* Make *hardware type* definition as declarative as it\u0027s possible."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"* Allow a user to switch *hardware type* for a node, just as it was possible"},{"line_number":96,"context_line":"  to change a driver before this spec."}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_4a5aa384","line":93,"range":{"start_line":93,"start_character":52,"end_line":93,"end_character":56},"in_reply_to":"1a122d0e_0f371db1","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"8f8e88ea7306f41da0a8fa12a7ef044a879bc31a","unresolved":false,"context_lines":[{"line_number":102,"context_line":"  details. An entry point is created to provide a simple name for each"},{"line_number":103,"context_line":"  *hardware type*, for example::"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    ironic.hardware.types \u003d"},{"line_number":106,"context_line":"        generic-ipmi \u003d ironic.hardware.ipmi:GenericIpmiHardware"},{"line_number":107,"context_line":"        ilo-gen8 \u003d ironic.hardware.ilo:iLOGen8Hardware"},{"line_number":108,"context_line":"        ilo-gen9 \u003d ironic.hardware.ilo:iLOGen9Hardware"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_efdf410a","line":105,"updated":"2016-04-22 16:36:16.000000000","message":"Where would this content be?  Config file?  Python code?","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":102,"context_line":"  details. An entry point is created to provide a simple name for each"},{"line_number":103,"context_line":"  *hardware type*, for example::"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    ironic.hardware.types \u003d"},{"line_number":106,"context_line":"        generic-ipmi \u003d ironic.hardware.ipmi:GenericIpmiHardware"},{"line_number":107,"context_line":"        ilo-gen8 \u003d ironic.hardware.ilo:iLOGen8Hardware"},{"line_number":108,"context_line":"        ilo-gen9 \u003d ironic.hardware.ilo:iLOGen9Hardware"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_4ad103cd","line":105,"in_reply_to":"1a122d0e_efdf410a","updated":"2016-04-22 16:50:17.000000000","message":"Entrypoints are defined in setup.cfg","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"8f8e88ea7306f41da0a8fa12a7ef044a879bc31a","unresolved":false,"context_lines":[{"line_number":146,"context_line":"Database and API"},{"line_number":147,"context_line":"----------------"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"* Create a new field on the node table for each of the interface with names:"},{"line_number":150,"context_line":"  ``\u003cinterface_name\u003e_interface``. A migration will be needed each time"},{"line_number":151,"context_line":"  we add a new interface (which hopefully won\u0027t happen too often)."},{"line_number":152,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_4acaa3a2","line":149,"updated":"2016-04-22 16:36:16.000000000","message":"s/node/``node``/   ???","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":146,"context_line":"Database and API"},{"line_number":147,"context_line":"----------------"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"* Create a new field on the node table for each of the interface with names:"},{"line_number":150,"context_line":"  ``\u003cinterface_name\u003e_interface``. A migration will be needed each time"},{"line_number":151,"context_line":"  we add a new interface (which hopefully won\u0027t happen too often)."},{"line_number":152,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_4a9f4303","line":149,"in_reply_to":"1a122d0e_4acaa3a2","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"8f8e88ea7306f41da0a8fa12a7ef044a879bc31a","unresolved":false,"context_lines":[{"line_number":161,"context_line":""},{"line_number":162,"context_line":"  To change between two incompatible interfaces sets, all changes should come"},{"line_number":163,"context_line":"  in one API call. E.g. for a node with the ``ilo-gen8`` *hardware type*"},{"line_number":164,"context_line":"  and ``vmedia_ilo`` boot the following JSON patch will be allowed::"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    ["},{"line_number":167,"context_line":"        {\"op\": \"replace\", \"path\": \"/driver\", \"value\": \"generic-ipmi\"},"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_ca0353b7","line":164,"updated":"2016-04-22 16:36:16.000000000","message":"**boot interface**   I\u0027m not sure what to call it.","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":161,"context_line":""},{"line_number":162,"context_line":"  To change between two incompatible interfaces sets, all changes should come"},{"line_number":163,"context_line":"  in one API call. E.g. for a node with the ``ilo-gen8`` *hardware type*"},{"line_number":164,"context_line":"  and ``vmedia_ilo`` boot the following JSON patch will be allowed::"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    ["},{"line_number":167,"context_line":"        {\"op\": \"replace\", \"path\": \"/driver\", \"value\": \"generic-ipmi\"},"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_ca9353f9","line":164,"in_reply_to":"1a122d0e_ca0353b7","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"8f8e88ea7306f41da0a8fa12a7ef044a879bc31a","unresolved":false,"context_lines":[{"line_number":175,"context_line":"    ]"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"* Add new API ``GET /v1/hardware`` listing all *hardware types*. List"},{"line_number":178,"context_line":"  enabled by default, also allow listing only disabled and both enabled and"},{"line_number":179,"context_line":"  disabled *hardware types*."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"* Add new API ``GET /v1/hardware/\u003cHW TYPE\u003e`` reporting the *hardware type*"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_6aaaffd3","line":178,"updated":"2016-04-22 16:36:16.000000000","message":"the enabled *hardware types* by default, also allows listing only the disabled ...","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":175,"context_line":"    ]"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"* Add new API ``GET /v1/hardware`` listing all *hardware types*. List"},{"line_number":178,"context_line":"  enabled by default, also allow listing only disabled and both enabled and"},{"line_number":179,"context_line":"  disabled *hardware types*."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"* Add new API ``GET /v1/hardware/\u003cHW TYPE\u003e`` reporting the *hardware type*"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_0a638b1b","line":178,"in_reply_to":"1a122d0e_6aaaffd3","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"8f8e88ea7306f41da0a8fa12a7ef044a879bc31a","unresolved":false,"context_lines":[{"line_number":198,"context_line":""},{"line_number":199,"context_line":"* We could put interfaces under a new JSON key on a node. However, we\u0027re"},{"line_number":200,"context_line":"  trying to move away from informally defined JSON keys. It would also prevent"},{"line_number":201,"context_line":"  us from implement filtering nodes based on a particular interface."},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"* We could create a new API endpoint for updating the interfaces. This will be"},{"line_number":204,"context_line":"  inconsistent with how we update the ``driver`` field, unless we want"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_2f3e59da","line":201,"updated":"2016-04-22 16:36:16.000000000","message":"us from being able to implement the filtering of nodes based on a particular interface.","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":198,"context_line":""},{"line_number":199,"context_line":"* We could put interfaces under a new JSON key on a node. However, we\u0027re"},{"line_number":200,"context_line":"  trying to move away from informally defined JSON keys. It would also prevent"},{"line_number":201,"context_line":"  us from implement filtering nodes based on a particular interface."},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"* We could create a new API endpoint for updating the interfaces. This will be"},{"line_number":204,"context_line":"  inconsistent with how we update the ``driver`` field, unless we want"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_6a72ffe4","line":201,"in_reply_to":"1a122d0e_2f3e59da","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"8f8e88ea7306f41da0a8fa12a7ef044a879bc31a","unresolved":false,"context_lines":[{"line_number":202,"context_line":""},{"line_number":203,"context_line":"* We could create a new API endpoint for updating the interfaces. This will be"},{"line_number":204,"context_line":"  inconsistent with how we update the ``driver`` field, unless we want"},{"line_number":205,"context_line":"  to create a new API version, preventing updating this field via the regular"},{"line_number":206,"context_line":"  node update API."},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"* We could switch from using *driver* term to only using *hardware type*. This"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_4f12b563","line":205,"updated":"2016-04-22 16:36:16.000000000","message":"I don\u0027t quite understand this.","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":202,"context_line":""},{"line_number":203,"context_line":"* We could create a new API endpoint for updating the interfaces. This will be"},{"line_number":204,"context_line":"  inconsistent with how we update the ``driver`` field, unless we want"},{"line_number":205,"context_line":"  to create a new API version, preventing updating this field via the regular"},{"line_number":206,"context_line":"  node update API."},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"* We could switch from using *driver* term to only using *hardware type*. This"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_8a5e7b43","line":205,"in_reply_to":"1a122d0e_4f12b563","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"8f8e88ea7306f41da0a8fa12a7ef044a879bc31a","unresolved":false,"context_lines":[{"line_number":306,"context_line":"* Here is an example of how hardware types could be created::"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"    class GenericIpmiHardware(GenericHardwareType):"},{"line_number":309,"context_line":"        supported_power_interfaces \u003d [IpmitoolPower, IpminativePower]"},{"line_number":310,"context_line":"        default_power_interface \u003d IpmitoolPower"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"    class iLOGen8Hardware(GenericHardwareType):"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_2fb9397a","line":309,"updated":"2016-04-22 16:36:16.000000000","message":"Would this be better as a tuple, since the other classes use a tuple.","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":306,"context_line":"* Here is an example of how hardware types could be created::"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"    class GenericIpmiHardware(GenericHardwareType):"},{"line_number":309,"context_line":"        supported_power_interfaces \u003d [IpmitoolPower, IpminativePower]"},{"line_number":310,"context_line":"        default_power_interface \u003d IpmitoolPower"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"    class iLOGen8Hardware(GenericHardwareType):"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_aa537738","line":309,"in_reply_to":"1a122d0e_2fb9397a","updated":"2016-04-22 16:50:17.000000000","message":"Which other classes? I\u0027m using brackets below to deal with new lines.","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"8f8e88ea7306f41da0a8fa12a7ef044a879bc31a","unresolved":false,"context_lines":[{"line_number":405,"context_line":"* Unit test coverage will obviously be provided."},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"* A new gate job will be created, using a dynamic version of the IPMI driver."},{"line_number":408,"context_line":"  We will aim to make it the primary approach in the gate with time."},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":411,"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"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_0fc71d13","line":408,"range":{"start_line":408,"start_character":58,"end_line":408,"end_character":63},"updated":"2016-04-22 16:36:16.000000000","message":"over","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":405,"context_line":"* Unit test coverage will obviously be provided."},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"* A new gate job will be created, using a dynamic version of the IPMI driver."},{"line_number":408,"context_line":"  We will aim to make it the primary approach in the gate with time."},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":411,"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"}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_ea33af11","line":408,"range":{"start_line":408,"start_character":58,"end_line":408,"end_character":63},"in_reply_to":"1a122d0e_0fc71d13","updated":"2016-04-22 16:50:17.000000000","message":"Done","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"8f8e88ea7306f41da0a8fa12a7ef044a879bc31a","unresolved":false,"context_lines":[{"line_number":411,"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":412,"context_line":""},{"line_number":413,"context_line":"This reform is designed to be backward compatible. The *classic drivers* will"},{"line_number":414,"context_line":"be supported for some time after deprecation and will fully work."},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"We will recommend switching to using appropriate *dynamic drivers* as soon as"},{"line_number":417,"context_line":"it\u0027s possible."}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_0f60bd34","line":414,"updated":"2016-04-22 16:36:16.000000000","message":"Should we be more specific?  Like for X amount of named cycles?\n\nWhen will they become deprecated?  Immediately? After 1 cycle?","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"eba28bf3346a4642dbae694709fcb89e51d26b82","unresolved":false,"context_lines":[{"line_number":411,"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":412,"context_line":""},{"line_number":413,"context_line":"This reform is designed to be backward compatible. The *classic drivers* will"},{"line_number":414,"context_line":"be supported for some time after deprecation and will fully work."},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"We will recommend switching to using appropriate *dynamic drivers* as soon as"},{"line_number":417,"context_line":"it\u0027s possible."}],"source_content_type":"text/x-rst","patch_set":9,"id":"1a122d0e_f501d005","line":414,"in_reply_to":"1a122d0e_0f60bd34","updated":"2016-04-22 16:50:17.000000000","message":"I mention deprecation in \"user impact\". As to being more specific, I just don\u0027t want to copy over our deprecation policy :)","commit_id":"506edc589155adb42f99da9c0ddb71556be672b4"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":70,"context_line":"    A thin object containing links to hardware interfaces. Before this spec"},{"line_number":71,"context_line":"    *driver* meant roughly the same as *hardware type* means in this spec."},{"line_number":72,"context_line":"**classic driver**"},{"line_number":73,"context_line":"    An ironic driver before this spec: a class with links to interfaces"},{"line_number":74,"context_line":"    hardcoded in the Python code."},{"line_number":75,"context_line":"**dynamic driver**"},{"line_number":76,"context_line":"    A *driver* created at run time with links to interfaces generated based on"}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_7e3925d8","line":73,"updated":"2016-05-03 15:01:40.000000000","message":"I think \"from before\" is better.","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":70,"context_line":"    A thin object containing links to hardware interfaces. Before this spec"},{"line_number":71,"context_line":"    *driver* meant roughly the same as *hardware type* means in this spec."},{"line_number":72,"context_line":"**classic driver**"},{"line_number":73,"context_line":"    An ironic driver before this spec: a class with links to interfaces"},{"line_number":74,"context_line":"    hardcoded in the Python code."},{"line_number":75,"context_line":"**dynamic driver**"},{"line_number":76,"context_line":"    A *driver* created at run time with links to interfaces generated based on"}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_e954b9ca","line":73,"in_reply_to":"1a122d0e_7e3925d8","updated":"2016-05-23 12:37:45.000000000","message":"Done","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":82,"context_line":"  implementations and the default implementation to be used."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"* Allow *vendors* to guarantee that unsupported implementations will not"},{"line_number":85,"context_line":"  be used with hardware types they define."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* that allow them to"},{"line_number":88,"context_line":"  maximize their reuse of the in-tree interface implementations."}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_5e3429de","line":85,"updated":"2016-05-03 15:01:40.000000000","message":"Is this requirement important? If we drop it, then we could eliminate the notion of hardware types and just specify a tuple of interfaces for each node.","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"fcbf465eef0b8f12cc0d12ed368c0bb1ba342c6c","unresolved":false,"context_lines":[{"line_number":82,"context_line":"  implementations and the default implementation to be used."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"* Allow *vendors* to guarantee that unsupported implementations will not"},{"line_number":85,"context_line":"  be used with hardware types they define."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* that allow them to"},{"line_number":88,"context_line":"  maximize their reuse of the in-tree interface implementations."}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_813e6627","line":85,"in_reply_to":"1a122d0e_5e3429de","updated":"2016-05-03 15:40:00.000000000","message":"I think this is important because, as a vendor, I would like to avoid emails like:\n\n\"I have one of your servers, and I\u0027m trying to deploy it using Ironic, so I\u0027ve configured it with \u003csupported interface X\u003e and \u003cinsert unsupported interface Y\u003e. I don\u0027t get why it doesn\u0027t work.\"\n\nWe need some kind of validation of what interface is supported by what.\n\nAn alternative would be to have a support matrix on a wiki page somewhere, which we\u0027d have to keep up to date.","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":82,"context_line":"  implementations and the default implementation to be used."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"* Allow *vendors* to guarantee that unsupported implementations will not"},{"line_number":85,"context_line":"  be used with hardware types they define."},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* that allow them to"},{"line_number":88,"context_line":"  maximize their reuse of the in-tree interface implementations."}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_695729ca","line":85,"in_reply_to":"1a122d0e_813e6627","updated":"2016-05-23 12:37:45.000000000","message":"What Sam said","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":107,"context_line":"        ilo-gen8 \u003d ironic.hardware.ilo:iLOGen8Hardware"},{"line_number":108,"context_line":"        ilo-gen9 \u003d ironic.hardware.ilo:iLOGen9Hardware"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"* List of *hardware interfaces* is still hardcoded in the Python code."},{"line_number":111,"context_line":"  The interfaces are implemented in the same way as before this spec."},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"* For each *hardware interface*, all implementations get their own entrypoint"}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_be33bdf5","line":110,"updated":"2016-05-03 15:01:40.000000000","message":"Nit: \"The list\"","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":107,"context_line":"        ilo-gen8 \u003d ironic.hardware.ilo:iLOGen8Hardware"},{"line_number":108,"context_line":"        ilo-gen9 \u003d ironic.hardware.ilo:iLOGen9Hardware"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"* List of *hardware interfaces* is still hardcoded in the Python code."},{"line_number":111,"context_line":"  The interfaces are implemented in the same way as before this spec."},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"* For each *hardware interface*, all implementations get their own entrypoint"}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_a9fc71b8","line":110,"in_reply_to":"1a122d0e_be33bdf5","updated":"2016-05-23 12:37:45.000000000","message":"Done","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":134,"context_line":"  be preloaded during the start up and stored in the conductor."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"  .. note::"},{"line_number":137,"context_line":"    This will somewhat increase the memory usage per node. We can probably"},{"line_number":138,"context_line":"    define __slots__ on the driver class to reduce this effect."},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"* Modify the periodic tasks collection code to also collect periodic tasks"}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_9e2ec18a","line":137,"updated":"2016-05-03 15:01:40.000000000","message":"Is this currently a problem?","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":134,"context_line":"  be preloaded during the start up and stored in the conductor."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"  .. note::"},{"line_number":137,"context_line":"    This will somewhat increase the memory usage per node. We can probably"},{"line_number":138,"context_line":"    define __slots__ on the driver class to reduce this effect."},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"* Modify the periodic tasks collection code to also collect periodic tasks"}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_292fe13f","line":137,"in_reply_to":"1a122d0e_9e2ec18a","updated":"2016-05-23 12:37:45.000000000","message":"Right now a driver object is singleton.","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":169,"context_line":"* Update ``driver`` field to also support *hardware types*. This is required"},{"line_number":170,"context_line":"  for the ``driver`` field to still make sense for people using old API"},{"line_number":171,"context_line":"  versions. On updating the ``driver`` field reset ``hardware_type`` and all"},{"line_number":172,"context_line":"  ``\u003cinteface_name\u003e_interface`` to ``None``, unless ``hardware_type`` is"},{"line_number":173,"context_line":"  updated to the same value in the same API request."},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"  This makes it possible for clients of old API versions to use *dynamic"}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_fe4b755d","line":172,"updated":"2016-05-03 15:01:40.000000000","message":"Typo: \"interface_name\"","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":169,"context_line":"* Update ``driver`` field to also support *hardware types*. This is required"},{"line_number":170,"context_line":"  for the ``driver`` field to still make sense for people using old API"},{"line_number":171,"context_line":"  versions. On updating the ``driver`` field reset ``hardware_type`` and all"},{"line_number":172,"context_line":"  ``\u003cinteface_name\u003e_interface`` to ``None``, unless ``hardware_type`` is"},{"line_number":173,"context_line":"  updated to the same value in the same API request."},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"  This makes it possible for clients of old API versions to use *dynamic"}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_29a401b8","line":172,"in_reply_to":"1a122d0e_fe4b755d","updated":"2016-05-23 12:37:45.000000000","message":"Not really. I\u0027ll try to rephrase.","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":175,"context_line":"  This makes it possible for clients of old API versions to use *dynamic"},{"line_number":176,"context_line":"  drivers*, but only with their default interface implementations."},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":179,"context_line":"  checks that the *hardware type* supports all the provided interfaces."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"  To change between two incompatible interfaces sets, all changes should come"}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_de4e796d","line":178,"updated":"2016-05-03 15:01:40.000000000","message":"``driver``\n\"any of the interface fields\"","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":175,"context_line":"  This makes it possible for clients of old API versions to use *dynamic"},{"line_number":176,"context_line":"  drivers*, but only with their default interface implementations."},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":179,"context_line":"  checks that the *hardware type* supports all the provided interfaces."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"  To change between two incompatible interfaces sets, all changes should come"}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_69d0c9c9","line":178,"in_reply_to":"1a122d0e_de4e796d","updated":"2016-05-23 12:37:45.000000000","message":"Done","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":178,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":179,"context_line":"  checks that the *hardware type* supports all the provided interfaces."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"  To change between two incompatible interfaces sets, all changes should come"},{"line_number":182,"context_line":"  in one API call. E.g. for a node with the ``ilo-gen8`` *hardware type*"},{"line_number":183,"context_line":"  and ``vmedia_ilo`` boot interface the following JSON patch will be allowed::"},{"line_number":184,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_3e568d06","line":181,"updated":"2016-05-03 15:01:40.000000000","message":"\"sets of interfaces\"","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":178,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":179,"context_line":"  checks that the *hardware type* supports all the provided interfaces."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"  To change between two incompatible interfaces sets, all changes should come"},{"line_number":182,"context_line":"  in one API call. E.g. for a node with the ``ilo-gen8`` *hardware type*"},{"line_number":183,"context_line":"  and ``vmedia_ilo`` boot interface the following JSON patch will be allowed::"},{"line_number":184,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_49d345d5","line":181,"in_reply_to":"1a122d0e_3e568d06","updated":"2016-05-23 12:37:45.000000000","message":"Done","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":195,"context_line":""},{"line_number":196,"context_line":"* Add new API ``GET /v1/hardware`` listing all *hardware types*. List the"},{"line_number":197,"context_line":"  enabled *hardware types* by default, also allow listing only the disabled"},{"line_number":198,"context_line":"  and both enabled and disabled *hardware types*."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"* Add new API ``GET /v1/hardware/\u003cHW TYPE\u003e`` reporting the *hardware type*"},{"line_number":201,"context_line":"  information, including the list of enabled *hardware interfaces*."}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_1e591136","line":198,"updated":"2016-05-03 15:01:40.000000000","message":"Slightly clearer: \"also allow listing all *hardware types*, and listing only disabled *hardware types*\"","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":195,"context_line":""},{"line_number":196,"context_line":"* Add new API ``GET /v1/hardware`` listing all *hardware types*. List the"},{"line_number":197,"context_line":"  enabled *hardware types* by default, also allow listing only the disabled"},{"line_number":198,"context_line":"  and both enabled and disabled *hardware types*."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"* Add new API ``GET /v1/hardware/\u003cHW TYPE\u003e`` reporting the *hardware type*"},{"line_number":201,"context_line":"  information, including the list of enabled *hardware interfaces*."}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_69e729ac","line":198,"in_reply_to":"1a122d0e_1e591136","updated":"2016-05-23 12:37:45.000000000","message":"Done","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":208,"context_line":"  on conductor start up, if it detects that other conductors have a different"},{"line_number":209,"context_line":"  set of interfaces for the same enabled *hardware type*."},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"  This situation is inevitable during live upgrades, so it does not result in"},{"line_number":212,"context_line":"  an error. However, we will document that all conductors should have the same"},{"line_number":213,"context_line":"  set of interfaces for the same enabled *hardware types*."},{"line_number":214,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_7e400536","line":211,"updated":"2016-05-03 15:01:40.000000000","message":"\"so it must not result in an error\"","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":208,"context_line":"  on conductor start up, if it detects that other conductors have a different"},{"line_number":209,"context_line":"  set of interfaces for the same enabled *hardware type*."},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"  This situation is inevitable during live upgrades, so it does not result in"},{"line_number":212,"context_line":"  an error. However, we will document that all conductors should have the same"},{"line_number":213,"context_line":"  set of interfaces for the same enabled *hardware types*."},{"line_number":214,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_099bfd18","line":211,"in_reply_to":"1a122d0e_7e400536","updated":"2016-05-23 12:37:45.000000000","message":"Done","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":265,"context_line":""},{"line_number":266,"context_line":"* Update the node creation command to accept the ``--hardware-type`` argument"},{"line_number":267,"context_line":"  and one argument per each interface. Either ``--hardware-type`` or"},{"line_number":268,"context_line":"  ``--driver`` is required. Example::"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"    openstack baremetal node create --hardware-type\u003dilo-gen9 --power-interface\u003dredfish"},{"line_number":271,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_5e3b89c8","line":268,"updated":"2016-05-03 15:01:40.000000000","message":"\"per interface\"","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":265,"context_line":""},{"line_number":266,"context_line":"* Update the node creation command to accept the ``--hardware-type`` argument"},{"line_number":267,"context_line":"  and one argument per each interface. Either ``--hardware-type`` or"},{"line_number":268,"context_line":"  ``--driver`` is required. Example::"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"    openstack baremetal node create --hardware-type\u003dilo-gen9 --power-interface\u003dredfish"},{"line_number":271,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_496fc5fb","line":268,"in_reply_to":"1a122d0e_5e3b89c8","updated":"2016-05-23 12:37:45.000000000","message":"Done","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":317,"context_line":""},{"line_number":318,"context_line":"* Create a new ``GenericHardwareType`` class which most of the actual hardware"},{"line_number":319,"context_line":"  type classes will want to subclass. This class will insert generic"},{"line_number":320,"context_line":"  implentations for some interfaces and provide meaningful defaults::"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"    class GenericHardwareType(AbstractHardwareType):"},{"line_number":323,"context_line":"        supported_deploy_interfaces \u003d [AgentDeploy]"}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_be4a9d53","line":320,"updated":"2016-05-03 15:01:40.000000000","message":"Typo: \"implementations\"","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":317,"context_line":""},{"line_number":318,"context_line":"* Create a new ``GenericHardwareType`` class which most of the actual hardware"},{"line_number":319,"context_line":"  type classes will want to subclass. This class will insert generic"},{"line_number":320,"context_line":"  implentations for some interfaces and provide meaningful defaults::"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"    class GenericHardwareType(AbstractHardwareType):"},{"line_number":323,"context_line":"        supported_deploy_interfaces \u003d [AgentDeploy]"}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_c9529534","line":320,"in_reply_to":"1a122d0e_be4a9d53","updated":"2016-05-23 12:37:45.000000000","message":"Done","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":373,"context_line":"Other end user impact"},{"line_number":374,"context_line":"---------------------"},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"* Deprecate creating nodes with a *classic driver*. We don\u0027t have any ways to"},{"line_number":377,"context_line":"  notify a user of such deprecation, except for release notes."},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"  The `driver configuration warnings spec"}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_9e452145","line":376,"updated":"2016-05-03 15:01:40.000000000","message":"\"any way\"","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":373,"context_line":"Other end user impact"},{"line_number":374,"context_line":"---------------------"},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"* Deprecate creating nodes with a *classic driver*. We don\u0027t have any ways to"},{"line_number":377,"context_line":"  notify a user of such deprecation, except for release notes."},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"  The `driver configuration warnings spec"}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_a928f19a","line":376,"in_reply_to":"1a122d0e_9e452145","updated":"2016-05-23 12:37:45.000000000","message":"Hmm, I thought that\u0027s acceptable.","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"57cb59e221bca2507d95f4ccbabdc0288d0aa889","unresolved":false,"context_lines":[{"line_number":378,"context_line":""},{"line_number":379,"context_line":"  The `driver configuration warnings spec"},{"line_number":380,"context_line":"  \u003chttps://review.openstack.org/#/c/279070/\u003e`_ could help, but it\u0027s abandoned"},{"line_number":381,"context_line":"  right now. This spec proposed following the usual deprecation rules."},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"TODO"},{"line_number":384,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"1a122d0e_fe7255af","line":381,"updated":"2016-05-03 15:01:40.000000000","message":"By \"this spec\", do you mean the driver composition spec? If so, \"proposes\".","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"cad958827b215130d095bf8a71df834ec29271b2","unresolved":false,"context_lines":[{"line_number":378,"context_line":""},{"line_number":379,"context_line":"  The `driver configuration warnings spec"},{"line_number":380,"context_line":"  \u003chttps://review.openstack.org/#/c/279070/\u003e`_ could help, but it\u0027s abandoned"},{"line_number":381,"context_line":"  right now. This spec proposed following the usual deprecation rules."},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"TODO"},{"line_number":384,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"bab6814e_5badc8e7","line":381,"in_reply_to":"1a122d0e_fe7255af","updated":"2016-05-23 12:37:45.000000000","message":"Done","commit_id":"117a836995aabd99c6deb8a7d7cb4f6d1baa4f12"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"800b7f199a63d08ebd1bcbd620129e73542ab33d","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* To top it all, ``pxe_ipmitool`` is actually using agent!"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* So better names would probably be ``pxe_iscsi_ipmitool``,"},{"line_number":44,"context_line":"  ``ipxe_iscsi_ipmitool``, ``pxe_direct_ipmitool``, ``ipxe_direct_ipmitool``."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"* Now repeat the same with every power driver we have."}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_ed382240","line":43,"updated":"2016-05-24 00:09:55.000000000","message":"Maybe instead say \"To reflect all the possibilities, the names would have to be more like this\" or something to that effect. As it reads currently, it sounds like you might be proposing changing the names","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"f5df9fcf5fbaf40196df36a29c16d23b31962180","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"* To top it all, ``pxe_ipmitool`` is actually using agent!"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"* So better names would probably be ``pxe_iscsi_ipmitool``,"},{"line_number":44,"context_line":"  ``ipxe_iscsi_ipmitool``, ``pxe_direct_ipmitool``, ``ipxe_direct_ipmitool``."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"* Now repeat the same with every power driver we have."}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_96ca256d","line":43,"in_reply_to":"bab6814e_ed382240","updated":"2016-05-24 13:24:51.000000000","message":"Done","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"f35e47dde0a8879975892b1b53a6d596203f6603","unresolved":false,"context_lines":[{"line_number":183,"context_line":"  It\u0027s an error to try updating both the ``driver`` and ``hardware_type``"},{"line_number":184,"context_line":"  fields to different values in the same API request."},{"line_number":185,"context_line":"  It\u0027s an error to simultaneously update the ``driver`` field and"},{"line_number":186,"context_line":"  to set any of ``\u003cinterface_name_interface`` fields to a non-empty value"},{"line_number":187,"context_line":"  without also setting ``hardware_type``."},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"* Every time ``hardware_type`` and/or any of the interface fields is updated,"}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_2a706ca3","line":186,"updated":"2016-05-23 14:05:37.000000000","message":"Missing \"\u003e\"?","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"f5df9fcf5fbaf40196df36a29c16d23b31962180","unresolved":false,"context_lines":[{"line_number":183,"context_line":"  It\u0027s an error to try updating both the ``driver`` and ``hardware_type``"},{"line_number":184,"context_line":"  fields to different values in the same API request."},{"line_number":185,"context_line":"  It\u0027s an error to simultaneously update the ``driver`` field and"},{"line_number":186,"context_line":"  to set any of ``\u003cinterface_name_interface`` fields to a non-empty value"},{"line_number":187,"context_line":"  without also setting ``hardware_type``."},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"* Every time ``hardware_type`` and/or any of the interface fields is updated,"}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_16a595b4","line":186,"in_reply_to":"bab6814e_2a706ca3","updated":"2016-05-24 13:24:51.000000000","message":"Done","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"f35e47dde0a8879975892b1b53a6d596203f6603","unresolved":false,"context_lines":[{"line_number":269,"context_line":"    disabled hardware types."},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"  * ``dynamic`` (optional, boolean) - whether to return only *hardware types*"},{"line_number":272,"context_line":"    (``True``), only *classic drivers* (``False``) or both (the default)."},{"line_number":273,"context_line":""},{"line_number":274,"context_line":"  New response fields:"},{"line_number":275,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_ea6304af","line":272,"updated":"2016-05-23 14:05:37.000000000","message":"I don\u0027t like this use of True/False/absent for three-valued logic. I guess it works a bit like a SQL filter - do we use that construction elsewhere in the API?\n\nI\u0027d prefer an explicit enumeration (OK, a fixed set of strings, say \"dynamic\", \"classic\", \"all\"), or two boolean parameters \"include_dynamic\" and \"include_classic\" (and if you set them both to False, well, you\u0027ll get the empty response you asked for).","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"f5df9fcf5fbaf40196df36a29c16d23b31962180","unresolved":false,"context_lines":[{"line_number":269,"context_line":"    disabled hardware types."},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"  * ``dynamic`` (optional, boolean) - whether to return only *hardware types*"},{"line_number":272,"context_line":"    (``True``), only *classic drivers* (``False``) or both (the default)."},{"line_number":273,"context_line":""},{"line_number":274,"context_line":"  New response fields:"},{"line_number":275,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_76e6a1e9","line":272,"in_reply_to":"bab6814e_6d4a72ae","updated":"2016-05-24 13:24:51.000000000","message":"\u003e do we use that construction elsewhere in the API?\n\nAt least \"maintenance\" and \"associated\" parameters in the node listing API.\n\nWill fix anyway.","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"800b7f199a63d08ebd1bcbd620129e73542ab33d","unresolved":false,"context_lines":[{"line_number":269,"context_line":"    disabled hardware types."},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"  * ``dynamic`` (optional, boolean) - whether to return only *hardware types*"},{"line_number":272,"context_line":"    (``True``), only *classic drivers* (``False``) or both (the default)."},{"line_number":273,"context_line":""},{"line_number":274,"context_line":"  New response fields:"},{"line_number":275,"context_line":""}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_6d4a72ae","line":272,"in_reply_to":"bab6814e_ea6304af","updated":"2016-05-24 00:09:55.000000000","message":"+1 I agree with Miles","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"800b7f199a63d08ebd1bcbd620129e73542ab33d","unresolved":false,"context_lines":[{"line_number":313,"context_line":"Client (CLI) impact"},{"line_number":314,"context_line":"-------------------"},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"\"ironic\" CLI"},{"line_number":317,"context_line":"~~~~~~~~~~~~"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"* Update the node creation command to accept the ``--hardware-type`` argument"}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_adca9a18","line":316,"updated":"2016-05-24 00:09:55.000000000","message":"This is only tangentally related, but I feel like this big change is going to make our versioning problems in ironicclient worse -- the new drivers won\u0027t work unless you use a high enough microversion.","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"f5df9fcf5fbaf40196df36a29c16d23b31962180","unresolved":false,"context_lines":[{"line_number":313,"context_line":"Client (CLI) impact"},{"line_number":314,"context_line":"-------------------"},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"\"ironic\" CLI"},{"line_number":317,"context_line":"~~~~~~~~~~~~"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"* Update the node creation command to accept the ``--hardware-type`` argument"}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_96698528","line":316,"in_reply_to":"bab6814e_adca9a18","updated":"2016-05-24 13:24:51.000000000","message":"It seems like any new change makes our versioning problems in ironicclient worse :)","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"800b7f199a63d08ebd1bcbd620129e73542ab33d","unresolved":false,"context_lines":[{"line_number":380,"context_line":"            return None"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"  Note that some interfaces (power, deploy) are mandatory, while the other"},{"line_number":383,"context_line":"  (inspect) are not."},{"line_number":384,"context_line":""},{"line_number":385,"context_line":"* Create a new ``GenericHardwareType`` class which most of the actual hardware"},{"line_number":386,"context_line":"  type classes will want to subclass. This class will insert generic"}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_6d8f12cd","line":383,"updated":"2016-05-24 00:09:55.000000000","message":"How are drivers handled that don\u0027t have these interfaces specifed? is an operator permitted to mix in a generic version of it on their own via the dynamic driver configuration?","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"f5df9fcf5fbaf40196df36a29c16d23b31962180","unresolved":false,"context_lines":[{"line_number":380,"context_line":"            return None"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"  Note that some interfaces (power, deploy) are mandatory, while the other"},{"line_number":383,"context_line":"  (inspect) are not."},{"line_number":384,"context_line":""},{"line_number":385,"context_line":"* Create a new ``GenericHardwareType`` class which most of the actual hardware"},{"line_number":386,"context_line":"  type classes will want to subclass. This class will insert generic"}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_d6e14d9c","line":383,"in_reply_to":"bab6814e_6d8f12cd","updated":"2016-05-24 13:24:51.000000000","message":"Nothing additional is supported, so if interfaces are not specific, they will be disabled.","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"800b7f199a63d08ebd1bcbd620129e73542ab33d","unresolved":false,"context_lines":[{"line_number":393,"context_line":""},{"line_number":394,"context_line":"  Note that all properties contain classes, not instances."},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"* Here is an example of how hardware types could be created::"},{"line_number":397,"context_line":""},{"line_number":398,"context_line":"    class GenericIpmiHardware(GenericHardwareType):"},{"line_number":399,"context_line":"        supported_power_interfaces \u003d [IpmitoolPower, IpminativePower]"}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_cd61de13","line":396,"updated":"2016-05-24 00:09:55.000000000","message":"I\u0027d suggest adding another entrypoint example and/or moving the one you have down here. As well as maybe showing an example node object with the proper drivers configured.","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"f5df9fcf5fbaf40196df36a29c16d23b31962180","unresolved":false,"context_lines":[{"line_number":393,"context_line":""},{"line_number":394,"context_line":"  Note that all properties contain classes, not instances."},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"* Here is an example of how hardware types could be created::"},{"line_number":397,"context_line":""},{"line_number":398,"context_line":"    class GenericIpmiHardware(GenericHardwareType):"},{"line_number":399,"context_line":"        supported_power_interfaces \u003d [IpmitoolPower, IpminativePower]"}],"source_content_type":"text/x-rst","patch_set":13,"id":"bab6814e_563f1dd6","line":396,"in_reply_to":"bab6814e_cd61de13","updated":"2016-05-24 13:24:51.000000000","message":"A node example will be too bulky IMO. Will copy entrypoints.","commit_id":"5084f18426942ad538f51584d1db24d5187fb58d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"34f6f21850dc2efe4de82d5a77ce8c9740a21bc4","unresolved":false,"context_lines":[{"line_number":82,"context_line":"* Make *vendors* in charge of defining a set of supported interface"},{"line_number":83,"context_line":"  implementations and the default implementation to be used."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"* Allow *vendors* to guarantee that unsupported implementations will not"},{"line_number":86,"context_line":"  be used with hardware types they define."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* that allow them to"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_bfa868dc","line":85,"updated":"2016-05-31 17:08:00.000000000","message":"interface implementations I believe.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2fab6b347aff873990756f45769a6a2c23904afc","unresolved":false,"context_lines":[{"line_number":82,"context_line":"* Make *vendors* in charge of defining a set of supported interface"},{"line_number":83,"context_line":"  implementations and the default implementation to be used."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"* Allow *vendors* to guarantee that unsupported implementations will not"},{"line_number":86,"context_line":"  be used with hardware types they define."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* that allow them to"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_fd2e45a3","line":85,"in_reply_to":"9abb7d3a_bfa868dc","updated":"2016-06-01 14:36:47.000000000","message":"Done","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"c59a002e0d91168f2af590c24bdf3ff7a899265b","unresolved":false,"context_lines":[{"line_number":124,"context_line":"* Create a new configuration option ``enabled_hardware_types`` with a list of"},{"line_number":125,"context_line":"  enabled *hardware types*."},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"* Create a family of configuration options ``enabled_\u003cINTERFACE\u003e_interfaces``"},{"line_number":128,"context_line":"  with a list of enabled implementations of each *hardware interface*."},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"  Note that the default implementation is implicitly enabled for each"}],"source_content_type":"text/x-rst","patch_set":14,"id":"bab6814e_703bccd1","line":127,"updated":"2016-05-26 12:45:11.000000000","message":"Not sure that these options are needed. 1) They are low-level, user should work with predefined vendor-specific hardware types. 2) Conflicts possible between these options and \"enabled_hardware_types\".","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2fab6b347aff873990756f45769a6a2c23904afc","unresolved":false,"context_lines":[{"line_number":124,"context_line":"* Create a new configuration option ``enabled_hardware_types`` with a list of"},{"line_number":125,"context_line":"  enabled *hardware types*."},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"* Create a family of configuration options ``enabled_\u003cINTERFACE\u003e_interfaces``"},{"line_number":128,"context_line":"  with a list of enabled implementations of each *hardware interface*."},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"  Note that the default implementation is implicitly enabled for each"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_d85c2f1b","line":127,"in_reply_to":"bab6814e_703bccd1","updated":"2016-06-01 14:36:47.000000000","message":"We can\u0027t enable all possible implementations due to possibly undesired dependencies. E.g. if we don\u0027t have inspector interface disabled by default, all ironic installations enabling pxe_ipmitool will have to install python-ironic-inspector-client, etc.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"34f6f21850dc2efe4de82d5a77ce8c9740a21bc4","unresolved":false,"context_lines":[{"line_number":145,"context_line":"  for enabled interfaces of every enabled *hardware type*."},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"* Conductor will fail to start if there is a name clash between a *classic"},{"line_number":148,"context_line":"  driver* and a *hardware type*."},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"Database and API"},{"line_number":151,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_7f80c0c0","line":148,"updated":"2016-05-31 17:08:00.000000000","message":"Should a conductor also try to load all enabled interfaces and fail if some of them is faulty?","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2fab6b347aff873990756f45769a6a2c23904afc","unresolved":false,"context_lines":[{"line_number":145,"context_line":"  for enabled interfaces of every enabled *hardware type*."},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"* Conductor will fail to start if there is a name clash between a *classic"},{"line_number":148,"context_line":"  driver* and a *hardware type*."},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"Database and API"},{"line_number":151,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_18887770","line":148,"in_reply_to":"9abb7d3a_7f80c0c0","updated":"2016-06-01 14:36:47.000000000","message":"This is implied by line 137, will clarify.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"34f6f21850dc2efe4de82d5a77ce8c9740a21bc4","unresolved":false,"context_lines":[{"line_number":165,"context_line":"  drivers*. The API will prevent setting any other values there."},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"  For *dynamic drivers* the ``None`` value will mean using the *vendor*"},{"line_number":168,"context_line":"  default. If the *vendor* default is ``None``, the interface will be disabled."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"  Trying to set any of these fields to a value other than ``None`` will result"},{"line_number":171,"context_line":"  in an error if ``hardware_type`` is ``None``."}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_ff8830c7","line":168,"updated":"2016-05-31 17:08:00.000000000","message":"So if the vendor default is to have ironic inspector inspection or console enabled, I won\u0027t be able to turn it off?","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2fab6b347aff873990756f45769a6a2c23904afc","unresolved":false,"context_lines":[{"line_number":165,"context_line":"  drivers*. The API will prevent setting any other values there."},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"  For *dynamic drivers* the ``None`` value will mean using the *vendor*"},{"line_number":168,"context_line":"  default. If the *vendor* default is ``None``, the interface will be disabled."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"  Trying to set any of these fields to a value other than ``None`` will result"},{"line_number":171,"context_line":"  in an error if ``hardware_type`` is ``None``."}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_58431f13","line":168,"in_reply_to":"9abb7d3a_ff8830c7","updated":"2016-06-01 14:36:47.000000000","message":"Correct. I think it\u0027s reasonable and it definitely simplifies this spec. Note that currently only ironic inspector support is \"disableable\", so it\u0027s still an improvement.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"34f6f21850dc2efe4de82d5a77ce8c9740a21bc4","unresolved":false,"context_lines":[{"line_number":193,"context_line":""},{"line_number":194,"context_line":"  To change between two incompatible sets of interfaces, all changes should"},{"line_number":195,"context_line":"  come in one API call. E.g. for a node with the ``ilo-gen8`` *hardware type*"},{"line_number":196,"context_line":"  and ``vmedia_ilo`` boot interface the following JSON patch will be allowed::"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    ["},{"line_number":199,"context_line":"        {\"op\": \"replace\", \"path\": \"/boot_interface\", \"value\": \"ipxe\"},"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_fbdfa337","line":196,"updated":"2016-05-31 17:08:00.000000000","message":"As I have discovered recently, while doing json PATCH, after each patch application a document should be valid, and it will not be in this case after boot_interface is changed to ipxe but harware_type is still ilo. Maybe we should require to recreate a node in case of changing hardware_type? As it is much more substantial change, then eg change from pxe_ssh to agent_ssh in case of old drivers.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2fab6b347aff873990756f45769a6a2c23904afc","unresolved":false,"context_lines":[{"line_number":193,"context_line":""},{"line_number":194,"context_line":"  To change between two incompatible sets of interfaces, all changes should"},{"line_number":195,"context_line":"  come in one API call. E.g. for a node with the ``ilo-gen8`` *hardware type*"},{"line_number":196,"context_line":"  and ``vmedia_ilo`` boot interface the following JSON patch will be allowed::"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    ["},{"line_number":199,"context_line":"        {\"op\": \"replace\", \"path\": \"/boot_interface\", \"value\": \"ipxe\"},"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_38d61b28","line":196,"in_reply_to":"9abb7d3a_fbdfa337","updated":"2016-06-01 14:36:47.000000000","message":"We can *recommend* it for cases when there is no common set of interfaces, but requiring it is a serious overkill and usability problem.\n\nNow, I\u0027m not sure \"after each patch application a document should be valid\" is true. The RFC mandates that a patch must be atomic https://tools.ietf.org/html/rfc6902#section-5, which make me suspect that it\u0027s ok if some components of the patch end up with an inconsistent object as soon as the whole patch is fine.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"34f6f21850dc2efe4de82d5a77ce8c9740a21bc4","unresolved":false,"context_lines":[{"line_number":219,"context_line":"* Create a new table ``conductor_hardware_interfaces`` to hold the relationship"},{"line_number":220,"context_line":"  between conductors and available interfaces. A warning will be issued"},{"line_number":221,"context_line":"  on conductor start up, if it detects that other conductors have a different"},{"line_number":222,"context_line":"  set of interfaces for the same enabled *hardware type*."},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"  This situation is inevitable during live upgrades, so it must not result in"},{"line_number":225,"context_line":"  an error. However, we will document that all conductors should have the same"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_9babf774","line":222,"updated":"2016-05-31 17:08:00.000000000","message":"In this case the warning will tell an operator to change this conductor\u0027s config?","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2fab6b347aff873990756f45769a6a2c23904afc","unresolved":false,"context_lines":[{"line_number":219,"context_line":"* Create a new table ``conductor_hardware_interfaces`` to hold the relationship"},{"line_number":220,"context_line":"  between conductors and available interfaces. A warning will be issued"},{"line_number":221,"context_line":"  on conductor start up, if it detects that other conductors have a different"},{"line_number":222,"context_line":"  set of interfaces for the same enabled *hardware type*."},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"  This situation is inevitable during live upgrades, so it must not result in"},{"line_number":225,"context_line":"  an error. However, we will document that all conductors should have the same"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_d800af04","line":222,"in_reply_to":"9abb7d3a_9babf774","updated":"2016-06-01 14:36:47.000000000","message":"Yes","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"34f6f21850dc2efe4de82d5a77ce8c9740a21bc4","unresolved":false,"context_lines":[{"line_number":254,"context_line":"State Machine Impact"},{"line_number":255,"context_line":"--------------------"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"None"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"REST API impact"},{"line_number":260,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_fb004368","line":257,"updated":"2016-05-31 17:08:00.000000000","message":"We also should not allow interfaces modifications in some states (as already is the case with network interfaces).","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"924ec67f289cc2eb2c43145a7ff954b7f83b8172","unresolved":false,"context_lines":[{"line_number":254,"context_line":"State Machine Impact"},{"line_number":255,"context_line":"--------------------"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"None"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"REST API impact"},{"line_number":260,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_9e124a57","line":257,"in_reply_to":"9abb7d3a_235fcb76","updated":"2016-06-02 15:08:21.000000000","message":"Changing driver field for active node works OK right now.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"a8d2d5f207b1d9d0c44a8a87a824b19a57c1e207","unresolved":false,"context_lines":[{"line_number":254,"context_line":"State Machine Impact"},{"line_number":255,"context_line":"--------------------"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"None"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"REST API impact"},{"line_number":260,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_235fcb76","line":257,"in_reply_to":"9abb7d3a_2387cb13","updated":"2016-06-02 15:06:08.000000000","message":"I thought we forbid all updates in ACTIVE, but maybe I\u0027m wrong.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0b5d426fb10582ace4a87858e4cee0c960605bf4","unresolved":false,"context_lines":[{"line_number":254,"context_line":"State Machine Impact"},{"line_number":255,"context_line":"--------------------"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"None"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"REST API impact"},{"line_number":260,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_2387cb13","line":257,"in_reply_to":"9abb7d3a_831fdc59","updated":"2016-06-02 15:05:17.000000000","message":"We could forbid changing interfaces in ACTIVE, at least the ones that affect tear down process, like console, boot, network.\n\nupdating power, management and deploy is probably fine.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2fab6b347aff873990756f45769a6a2c23904afc","unresolved":false,"context_lines":[{"line_number":254,"context_line":"State Machine Impact"},{"line_number":255,"context_line":"--------------------"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"None"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"REST API impact"},{"line_number":260,"context_line":"---------------"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_831fdc59","line":257,"in_reply_to":"9abb7d3a_fb004368","updated":"2016-06-01 14:36:47.000000000","message":"That\u0027s interesting, because we currently don\u0027t put limits on changing a driver, except for states where update is not allowed at all. What would you suggest?","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"34f6f21850dc2efe4de82d5a77ce8c9740a21bc4","unresolved":false,"context_lines":[{"line_number":266,"context_line":"  * ``enabled`` (optional, boolean, default ``True``) - whether to show"},{"line_number":267,"context_line":"    enabled hardware types."},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"  * ``disabled`` (optional, boolean, default ``False``) - whether to show"},{"line_number":270,"context_line":"    disabled hardware types."},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"  * ``classic`` (optional, boolean, default ``True``) - whether to return"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_9bfad741","line":269,"updated":"2016-05-31 17:08:00.000000000","message":"The same dbapi function get_active_driver_dict is used both to list drivers in api and to reload hash ring, so if its output will be updated, hash ring load will have to be updated too.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2fab6b347aff873990756f45769a6a2c23904afc","unresolved":false,"context_lines":[{"line_number":266,"context_line":"  * ``enabled`` (optional, boolean, default ``True``) - whether to show"},{"line_number":267,"context_line":"    enabled hardware types."},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"  * ``disabled`` (optional, boolean, default ``False``) - whether to show"},{"line_number":270,"context_line":"    disabled hardware types."},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"  * ``classic`` (optional, boolean, default ``True``) - whether to return"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_8356bc03","line":269,"in_reply_to":"9abb7d3a_9bfad741","updated":"2016-06-01 14:36:47.000000000","message":"This is kind of a technical detail, we can split them away as needed.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"34f6f21850dc2efe4de82d5a77ce8c9740a21bc4","unresolved":false,"context_lines":[{"line_number":364,"context_line":"            pass"},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"        @abc.abstractproperty"},{"line_number":367,"context_line":"        def supported_deploy_interfaces(self):"},{"line_number":368,"context_line":"            pass"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"        @property"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_be3d0991","line":367,"updated":"2016-05-31 17:08:00.000000000","message":"As for deploy interfaces, I\u0027m wondering, should we require all hardware types to support all of them (iscsi and direct ATM)?","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2fab6b347aff873990756f45769a6a2c23904afc","unresolved":false,"context_lines":[{"line_number":364,"context_line":"            pass"},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"        @abc.abstractproperty"},{"line_number":367,"context_line":"        def supported_deploy_interfaces(self):"},{"line_number":368,"context_line":"            pass"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"        @property"}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_e3b3484b","line":367,"in_reply_to":"9abb7d3a_be3d0991","updated":"2016-06-01 14:36:47.000000000","message":"We can\u0027t be sure all hardware supports booting a ramdisk at all. E.g. there was a discussion about provisioning some switches where a driver would just call some function on this switch to load its firmware (if I got it right ofc).\n\nWe will still enforce it on reviews.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"c59a002e0d91168f2af590c24bdf3ff7a899265b","unresolved":false,"context_lines":[{"line_number":397,"context_line":"        supported_inspect_interfaces \u003d [InspectorInspect]"},{"line_number":398,"context_line":"        default_deploy_interface \u003d AgentDeploy"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"  Note that all properties contain classes, not instances."},{"line_number":401,"context_line":""},{"line_number":402,"context_line":"* Here is an example of how hardware types could be created::"},{"line_number":403,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"bab6814e_d068b8f7","line":400,"range":{"start_line":400,"start_character":1,"end_line":400,"end_character":58},"updated":"2016-05-26 12:45:11.000000000","message":"Maybe use entrypoints names here?","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2fab6b347aff873990756f45769a6a2c23904afc","unresolved":false,"context_lines":[{"line_number":397,"context_line":"        supported_inspect_interfaces \u003d [InspectorInspect]"},{"line_number":398,"context_line":"        default_deploy_interface \u003d AgentDeploy"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"  Note that all properties contain classes, not instances."},{"line_number":401,"context_line":""},{"line_number":402,"context_line":"* Here is an example of how hardware types could be created::"},{"line_number":403,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"9abb7d3a_03900c94","line":400,"range":{"start_line":400,"start_character":1,"end_line":400,"end_character":58},"in_reply_to":"bab6814e_d068b8f7","updated":"2016-06-01 14:36:47.000000000","message":"It seems like we don\u0027t use entry point names in code, and here it will require one more level of indirection.","commit_id":"1528dfe6414c9854b69dc4a56ba835bf72ea308d"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":61,"context_line":"**hardware interface** (or just **interface**)"},{"line_number":62,"context_line":"    A notion replacing the term \"driver interface\" - a set of functionality"},{"line_number":63,"context_line":"    dealing with some aspect of bare metal provisioning in a vendor-specific"},{"line_number":64,"context_line":"    way."},{"line_number":65,"context_line":"**hardware type**"},{"line_number":66,"context_line":"    A family of hardware supporting the same set of interfaces from the ironic"},{"line_number":67,"context_line":"    standpoint. This can be as wide as all hardware supporting the IPMI"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_dde829b6","line":64,"updated":"2016-06-16 15:25:44.000000000","message":"It\u0027s been awhile since I read this. So you mean eg Power, Management, Deploy, BootInterface?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":61,"context_line":"**hardware interface** (or just **interface**)"},{"line_number":62,"context_line":"    A notion replacing the term \"driver interface\" - a set of functionality"},{"line_number":63,"context_line":"    dealing with some aspect of bare metal provisioning in a vendor-specific"},{"line_number":64,"context_line":"    way."},{"line_number":65,"context_line":"**hardware type**"},{"line_number":66,"context_line":"    A family of hardware supporting the same set of interfaces from the ironic"},{"line_number":67,"context_line":"    standpoint. This can be as wide as all hardware supporting the IPMI"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_05c9abac","line":64,"in_reply_to":"7aa08908_dde829b6","updated":"2016-06-16 17:07:37.000000000","message":"Yes","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":83,"context_line":"  implementations and the default implementation to be used."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"* Allow *vendors* to guarantee that unsupported interface implementations"},{"line_number":86,"context_line":"  will not be used with hardware types they define."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* that allow them to"},{"line_number":89,"context_line":"  maximize their reuse of the in-tree interface implementations."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_fdb40583","line":86,"updated":"2016-06-16 15:25:44.000000000","message":"What does this mean? How do vendors guarantee this?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":83,"context_line":"  implementations and the default implementation to be used."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"* Allow *vendors* to guarantee that unsupported interface implementations"},{"line_number":86,"context_line":"  will not be used with hardware types they define."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* that allow them to"},{"line_number":89,"context_line":"  maximize their reuse of the in-tree interface implementations."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_85547bca","line":86,"in_reply_to":"7aa08908_fdb40583","updated":"2016-06-16 17:07:37.000000000","message":"We do it by not allowing 3rd party interfaces to declare compatibility with in-tree hardware types. I think that\u0027s what was the main topic on the summit session.","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":88,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* that allow them to"},{"line_number":89,"context_line":"  maximize their reuse of the in-tree interface implementations."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"* Allow a user to switch between supported interface implementations for a node"},{"line_number":92,"context_line":"  via the bare metal API."},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"* Make *hardware type* definition as declarative as is possible."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_dd45c96f","line":91,"updated":"2016-06-16 15:25:44.000000000","message":"supported interface implementations for that hardware type, right?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":88,"context_line":"* Allow 3rd parties to create out-of-tree *hardware types* that allow them to"},{"line_number":89,"context_line":"  maximize their reuse of the in-tree interface implementations."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"* Allow a user to switch between supported interface implementations for a node"},{"line_number":92,"context_line":"  via the bare metal API."},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"* Make *hardware type* definition as declarative as is possible."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_e559fffe","line":91,"in_reply_to":"7aa08908_dd45c96f","updated":"2016-06-16 17:07:37.000000000","message":"Right","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":91,"context_line":"* Allow a user to switch between supported interface implementations for a node"},{"line_number":92,"context_line":"  via the bare metal API."},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"* Make *hardware type* definition as declarative as is possible."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"* Allow a user to switch *hardware type* for a node, just as it was possible"},{"line_number":97,"context_line":"  to change a driver before this spec."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_c86fc5c2","line":94,"updated":"2016-06-16 15:25:44.000000000","message":"nit s/is//","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":94,"context_line":"* Make *hardware type* definition as declarative as is possible."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"* Allow a user to switch *hardware type* for a node, just as it was possible"},{"line_number":97,"context_line":"  to change a driver before this spec."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"Configuration"},{"line_number":100,"context_line":"-------------"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_488ab565","line":97,"updated":"2016-06-16 15:25:44.000000000","message":"Glad you added this because I wondered after I read line 92. Maybe move line 91-92 after this?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":108,"context_line":"        ilo-gen8 \u003d ironic.hardware.ilo:iLOGen8Hardware"},{"line_number":109,"context_line":"        ilo-gen9 \u003d ironic.hardware.ilo:iLOGen9Hardware"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"* The list of *hardware interfaces* is still hardcoded in the Python code."},{"line_number":112,"context_line":"  The interfaces are implemented in the same way as before this spec."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"* For each *hardware interface*, all implementations get their own entrypoint"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_c35b2685","line":111,"updated":"2016-06-16 15:25:44.000000000","message":"Do we provide a list of the interfaces? Do you mean the interface implementations or the interfaces, eg \u0027power\u0027, \u0027management\u0027...? I think they are only available to the user via the node-validate API.","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":108,"context_line":"        ilo-gen8 \u003d ironic.hardware.ilo:iLOGen8Hardware"},{"line_number":109,"context_line":"        ilo-gen9 \u003d ironic.hardware.ilo:iLOGen9Hardware"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"* The list of *hardware interfaces* is still hardcoded in the Python code."},{"line_number":112,"context_line":"  The interfaces are implemented in the same way as before this spec."},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"* For each *hardware interface*, all implementations get their own entrypoint"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_65c22f55","line":111,"in_reply_to":"7aa08908_c35b2685","updated":"2016-06-16 17:07:37.000000000","message":"What I\u0027m trying to say is that we don\u0027t allow plugins to add new interfaces (not implementations) in addition to \u0027power\u0027, \u0027deploy\u0027, etc.","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":128,"context_line":"  with a list of enabled implementations of each *hardware interface*."},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"  Note that the default implementation is implicitly enabled for each"},{"line_number":131,"context_line":"  interface of each enabled *hardware type*. There are several reasons for"},{"line_number":132,"context_line":"  that, the most important is to allow backward compatibility with the"},{"line_number":133,"context_line":"  ``driver`` fields as described below."},{"line_number":134,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_6e1cd96a","line":131,"updated":"2016-06-16 15:25:44.000000000","message":"So even if the default implementation isn\u0027t specified in \u0027enabled_\u003cINTERFACE\u003e_interfaces configuration option, it\u0027ll still work?\n\nIf that\u0027s the case, what about nodes that have drivers (er hardware types) associated with them, that aren\u0027t in the \u0027enabled_hardware_types\u0027 configuration option?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"b66eec45a5da865f59b38f32ed67723c90cafc6b","unresolved":false,"context_lines":[{"line_number":128,"context_line":"  with a list of enabled implementations of each *hardware interface*."},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"  Note that the default implementation is implicitly enabled for each"},{"line_number":131,"context_line":"  interface of each enabled *hardware type*. There are several reasons for"},{"line_number":132,"context_line":"  that, the most important is to allow backward compatibility with the"},{"line_number":133,"context_line":"  ``driver`` fields as described below."},{"line_number":134,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_1417f145","line":131,"in_reply_to":"7aa08908_6e1cd96a","updated":"2016-06-17 13:32:23.000000000","message":"\u003e So even if the default implementation isn\u0027t specified in \u0027enabled_\u003cINTERFACE\u003e_interfaces configuration option, it\u0027ll still work?\n\nCorrect\n\n\u003e  what about nodes that have drivers (er hardware types) associated with them, that aren\u0027t in the \u0027enabled_hardware_types\u0027 configuration option\n\nHow can it happen? Or rather: how is it different from the current situation?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"d7c8be2efdb015ec954c73862ab5c9473d32d8c5","unresolved":false,"context_lines":[{"line_number":140,"context_line":"  be preloaded during the start up and stored in the conductor."},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"  Conductor will fail to start if any **enabled** *hardware types* or"},{"line_number":143,"context_line":"  *inteface* implementations cannot be loaded (e.g. due to missing"},{"line_number":144,"context_line":"  dependencies)."},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"  The *classic drivers* will be loaded as before."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_92c880aa","line":143,"updated":"2016-06-15 16:39:48.000000000","message":"Typo: \"interface\"","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":143,"context_line":"  *inteface* implementations cannot be loaded (e.g. due to missing"},{"line_number":144,"context_line":"  dependencies)."},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"  The *classic drivers* will be loaded as before."},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"* Modify the periodic tasks collection code to also collect periodic tasks"},{"line_number":149,"context_line":"  for enabled interfaces of every enabled *hardware type*."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_eef1e902","line":146,"updated":"2016-06-16 15:25:44.000000000","message":"Wondering how the hardware types/interfaces here, related to the \u0027enabled_*\u0027 configuration options. I\u0027m guessing they will be loaded and will use hardware type/interfaces as long as they are supported, regardless of being enabled, right?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":143,"context_line":"  *inteface* implementations cannot be loaded (e.g. due to missing"},{"line_number":144,"context_line":"  dependencies)."},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"  The *classic drivers* will be loaded as before."},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"* Modify the periodic tasks collection code to also collect periodic tasks"},{"line_number":149,"context_line":"  for enabled interfaces of every enabled *hardware type*."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_c5868315","line":146,"in_reply_to":"7aa08908_eef1e902","updated":"2016-06-16 17:07:37.000000000","message":"Classis drivers didn\u0027t have support for enabling/disabling interfaces, cause each of them had all interfaces hardcoded in Python.","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"ac6cd10dffc3dfd1458d1c541710089f4078a856","unresolved":false,"context_lines":[{"line_number":169,"context_line":"  drivers*. The API will prevent setting any other values there."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"  For *dynamic drivers* the ``None`` value will mean using the *vendor*"},{"line_number":172,"context_line":"  default. If the *vendor* default is ``None``, the interface will be disabled."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"  Trying to set any of these fields to a value other than ``None`` will result"},{"line_number":175,"context_line":"  in an error if ``hardware_type`` is ``None``."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_a88d192c","line":172,"updated":"2016-06-16 14:43:27.000000000","message":"I assume the \"vendor default\" is defined by the hardware type?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":169,"context_line":"  drivers*. The API will prevent setting any other values there."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"  For *dynamic drivers* the ``None`` value will mean using the *vendor*"},{"line_number":172,"context_line":"  default. If the *vendor* default is ``None``, the interface will be disabled."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"  Trying to set any of these fields to a value other than ``None`` will result"},{"line_number":175,"context_line":"  in an error if ``hardware_type`` is ``None``."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_457bb329","line":172,"in_reply_to":"7aa08908_a88d192c","updated":"2016-06-16 17:07:37.000000000","message":"Correct","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":172,"context_line":"  default. If the *vendor* default is ``None``, the interface will be disabled."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"  Trying to set any of these fields to a value other than ``None`` will result"},{"line_number":175,"context_line":"  in an error if ``hardware_type`` is ``None``."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"* Update ``driver`` field to also support *hardware types*. This is required"},{"line_number":178,"context_line":"  for the ``driver`` field to still make sense for people using old API"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_6e769907","line":175,"updated":"2016-06-16 15:25:44.000000000","message":"And of course? trying to set to a non-supported value for that hardware type, is also an error.","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":172,"context_line":"  default. If the *vendor* default is ``None``, the interface will be disabled."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"  Trying to set any of these fields to a value other than ``None`` will result"},{"line_number":175,"context_line":"  in an error if ``hardware_type`` is ``None``."},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"* Update ``driver`` field to also support *hardware types*. This is required"},{"line_number":178,"context_line":"  for the ``driver`` field to still make sense for people using old API"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_e59a9f61","line":175,"in_reply_to":"7aa08908_6e769907","updated":"2016-06-16 17:07:37.000000000","message":"Correct","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":176,"context_line":""},{"line_number":177,"context_line":"* Update ``driver`` field to also support *hardware types*. This is required"},{"line_number":178,"context_line":"  for the ``driver`` field to still make sense for people using old API"},{"line_number":179,"context_line":"  versions."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"  On updating the ``driver`` field reset ``hardware_type`` and all"},{"line_number":182,"context_line":"  ``\u003cinteface_name\u003e_interface`` to ``None``, unless these fields are also"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_09454f14","line":179,"updated":"2016-06-16 15:25:44.000000000","message":"does this make sense?\n\nI would think that:\n- If someone uses api-before-reform, driver should behave as before and only use classic drivers/names.\n- if someone uses api-after-reform, (what I\u0027d like to see) the driver could only be changed to a hardware type. [to help transition away from classic]","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":176,"context_line":""},{"line_number":177,"context_line":"* Update ``driver`` field to also support *hardware types*. This is required"},{"line_number":178,"context_line":"  for the ``driver`` field to still make sense for people using old API"},{"line_number":179,"context_line":"  versions."},{"line_number":180,"context_line":""},{"line_number":181,"context_line":"  On updating the ``driver`` field reset ``hardware_type`` and all"},{"line_number":182,"context_line":"  ``\u003cinteface_name\u003e_interface`` to ``None``, unless these fields are also"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_05fd2b6e","line":179,"in_reply_to":"7aa08908_09454f14","updated":"2016-06-16 17:07:37.000000000","message":"It might be too breaking for people who use both new and old tools, I guess..","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":180,"context_line":""},{"line_number":181,"context_line":"  On updating the ``driver`` field reset ``hardware_type`` and all"},{"line_number":182,"context_line":"  ``\u003cinteface_name\u003e_interface`` to ``None``, unless these fields are also"},{"line_number":183,"context_line":"  updated in the same API request."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"  This makes it possible for clients of old API versions to use *dynamic"},{"line_number":186,"context_line":"  drivers*, but only with their default interface implementations."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_c96fc7c2","line":183,"updated":"2016-06-16 15:25:44.000000000","message":"in line 158, it sez, for hardware_type, \u0027Setting this field will set ``driver`` to the same value\u0027.\n\nSo if someone sets hardware_type \u003d \u0027foofoo\u0027, driver will be \u0027foofoo\u0027. then they set power_inteface \u003d \u0027foopower\u0027. And for whatever reason, they set driver to \u0027foofoo\u0027. Will it be obvious to them that they will have changed it so that they get the default power_interface which might not be foopower?\n\nOr maybe you mean if they try to update the driver to a different value?\n\nWhy wouldn\u0027t you set the hardware_type to be the same value as the driver (if the value is a hardware type)?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":180,"context_line":""},{"line_number":181,"context_line":"  On updating the ``driver`` field reset ``hardware_type`` and all"},{"line_number":182,"context_line":"  ``\u003cinteface_name\u003e_interface`` to ``None``, unless these fields are also"},{"line_number":183,"context_line":"  updated in the same API request."},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"  This makes it possible for clients of old API versions to use *dynamic"},{"line_number":186,"context_line":"  drivers*, but only with their default interface implementations."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_e55bbf84","line":183,"in_reply_to":"7aa08908_c96fc7c2","updated":"2016-06-16 17:07:37.000000000","message":"\u003e Or maybe you mean if they try to update the driver to a different value?\n\nGood clarification\n\n\u003e Why wouldn\u0027t you set the hardware_type to be the same value as the driver (if the value is a hardware type)?\n\nBut what if it\u0027s not? then we\u0027ll get inconsistent behavior","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"ac6cd10dffc3dfd1458d1c541710089f4078a856","unresolved":false,"context_lines":[{"line_number":214,"context_line":"    `RFC 6902 \u003chttps://tools.ietf.org/html/rfc6902#section-5\u003e`_ requires"},{"line_number":215,"context_line":"    a JSON patch to be atomic, because an HTTP PATCH operation must be atomic."},{"line_number":216,"context_line":"    Meaning, it\u0027s possible for some operations to end up with an inconsistent"},{"line_number":217,"context_line":"    object as soon as the end result is consistent."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"* Update ``GET /v1/drivers`` to also list *hardware types*. List the"},{"line_number":220,"context_line":"  enabled *hardware types* by default. Also allow listing all *hardware types*,"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_08cb8d4b","line":217,"updated":"2016-06-16 14:43:27.000000000","message":"\"as long as\"?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":216,"context_line":"    Meaning, it\u0027s possible for some operations to end up with an inconsistent"},{"line_number":217,"context_line":"    object as soon as the end result is consistent."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"* Update ``GET /v1/drivers`` to also list *hardware types*. List the"},{"line_number":220,"context_line":"  enabled *hardware types* by default. Also allow listing all *hardware types*,"},{"line_number":221,"context_line":"  and listing only disabled *hardware types*."},{"line_number":222,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_a9035bbd","line":219,"updated":"2016-06-16 15:25:44.000000000","message":"regardless of microversion?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":216,"context_line":"    Meaning, it\u0027s possible for some operations to end up with an inconsistent"},{"line_number":217,"context_line":"    object as soon as the end result is consistent."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"* Update ``GET /v1/drivers`` to also list *hardware types*. List the"},{"line_number":220,"context_line":"  enabled *hardware types* by default. Also allow listing all *hardware types*,"},{"line_number":221,"context_line":"  and listing only disabled *hardware types*."},{"line_number":222,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_65dfcfd6","line":219,"in_reply_to":"7aa08908_a9035bbd","updated":"2016-06-16 17:07:37.000000000","message":"mmm, good question. I would say yes, because we allow these drivers to be set without a microversion.","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":218,"context_line":""},{"line_number":219,"context_line":"* Update ``GET /v1/drivers`` to also list *hardware types*. List the"},{"line_number":220,"context_line":"  enabled *hardware types* by default. Also allow listing all *hardware types*,"},{"line_number":221,"context_line":"  and listing only disabled *hardware types*."},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"* Update ``GET /v1/drivers/\u003cHW TYPE\u003e`` to report the *hardware type*"},{"line_number":224,"context_line":"  information, including the list of enabled *hardware interfaces*."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_c9b507ee","line":221,"updated":"2016-06-16 15:25:44.000000000","message":"We don\u0027t do this with the existing GET /v1/drivers; would it be extended to list all classic drivers too, enabled or disabled?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":218,"context_line":""},{"line_number":219,"context_line":"* Update ``GET /v1/drivers`` to also list *hardware types*. List the"},{"line_number":220,"context_line":"  enabled *hardware types* by default. Also allow listing all *hardware types*,"},{"line_number":221,"context_line":"  and listing only disabled *hardware types*."},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"* Update ``GET /v1/drivers/\u003cHW TYPE\u003e`` to report the *hardware type*"},{"line_number":224,"context_line":"  information, including the list of enabled *hardware interfaces*."}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_4588d3c6","line":221,"in_reply_to":"7aa08908_c9b507ee","updated":"2016-06-16 17:07:37.000000000","message":"We can do it, I guess","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":222,"context_line":""},{"line_number":223,"context_line":"* Update ``GET /v1/drivers/\u003cHW TYPE\u003e`` to report the *hardware type*"},{"line_number":224,"context_line":"  information, including the list of enabled *hardware interfaces*."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":227,"context_line":"  list API."},{"line_number":228,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_89d49f1f","line":225,"updated":"2016-06-16 15:25:44.000000000","message":"So we don\u0027t want to have a new GET /v1/hardware_types?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":222,"context_line":""},{"line_number":223,"context_line":"* Update ``GET /v1/drivers/\u003cHW TYPE\u003e`` to report the *hardware type*"},{"line_number":224,"context_line":"  information, including the list of enabled *hardware interfaces*."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":227,"context_line":"  list API."},{"line_number":228,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_85a91b27","line":225,"in_reply_to":"7aa08908_89d49f1f","updated":"2016-06-16 17:07:37.000000000","message":"I don\u0027t remember right now, but there was some usability disaster about adding a new endpoint. I\u0027ll try to remember and clarify.","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"604aac63dca39ed5d7d0cd7e6514d6d1af271343","unresolved":false,"context_lines":[{"line_number":224,"context_line":"  information, including the list of enabled *hardware interfaces*."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":227,"context_line":"  list API."},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"* Create a new table ``conductor_hardware_interfaces`` to hold the relationship"},{"line_number":230,"context_line":"  between conductors and available interfaces. A warning will be issued"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_c9b187e2","line":227,"updated":"2016-06-16 15:25:44.000000000","message":"and filtering by hardware_type?\n\nI\u0027m trying to understand the relationship between hardware_type and driver, and whether we will deprecate one or the other, or whether they will both exist \"forever\".","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":224,"context_line":"  information, including the list of enabled *hardware interfaces*."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":227,"context_line":"  list API."},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"* Create a new table ``conductor_hardware_interfaces`` to hold the relationship"},{"line_number":230,"context_line":"  between conductors and available interfaces. A warning will be issued"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_85575b25","line":227,"in_reply_to":"7aa08908_c9b187e2","updated":"2016-06-16 17:07:37.000000000","message":"We can\u0027t deprecate the driver until we bump our minimum API version to after the reform :( which is probably never","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"ac6cd10dffc3dfd1458d1c541710089f4078a856","unresolved":false,"context_lines":[{"line_number":259,"context_line":"* For each interface, create a new node field ``\u003cinterface_name\u003e_interface``"},{"line_number":260,"context_line":"  initially set to ``NULL``."},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"TODO: ``conductor_hardware_interfaces``"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"State Machine Impact"},{"line_number":265,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_e881e1c4","line":262,"updated":"2016-06-16 14:43:27.000000000","message":"We should probably do this before approving the spec :D","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"ac6cd10dffc3dfd1458d1c541710089f4078a856","unresolved":false,"context_lines":[{"line_number":322,"context_line":"  implementations. We will need to support non-default implementations as well,"},{"line_number":323,"context_line":"  but it goes somewhat beyond the scope of this already big spec."},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"TODO: the same for the actual vendor passthru."},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"Client (CLI) impact"},{"line_number":328,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_e8b44183","line":325,"updated":"2016-06-16 14:43:27.000000000","message":"Ditto :)","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"ac6cd10dffc3dfd1458d1c541710089f4078a856","unresolved":false,"context_lines":[{"line_number":353,"context_line":"RPC API impact"},{"line_number":354,"context_line":"--------------"},{"line_number":355,"context_line":""},{"line_number":356,"context_line":"TODO"},{"line_number":357,"context_line":""},{"line_number":358,"context_line":"Driver API impact"},{"line_number":359,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_884bfd85","line":356,"updated":"2016-06-16 14:43:27.000000000","message":"Heh. Have fun!","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3f12e95b92e5c3ee0a0fe490744a4c4e4e8c401d","unresolved":false,"context_lines":[{"line_number":429,"context_line":"    class iLOGen9Hardware(iLOGen8Hardware):"},{"line_number":430,"context_line":"        supported_power_interfaces \u003d ("},{"line_number":431,"context_line":"            iLOGen8Hardware.supported_power_interfaces"},{"line_number":432,"context_line":"            + [RedfishPower]"},{"line_number":433,"context_line":"        )"},{"line_number":434,"context_line":""},{"line_number":435,"context_line":".. note::"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_bbef2285","line":432,"updated":"2016-06-16 15:37:56.000000000","message":"so is this value the class name? I mean, the full \u0027path\u0027 is ironic.drivers.modules.redfish.RedfishPower. If we just do RedfishPower, we\u0027re going to have to map it. Wouldn\u0027t it make more sense to be \u0027redfish\u0027, especially since I am assuming \u0027redfish\u0027 will be the value that is in node.power_interface?","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":429,"context_line":"    class iLOGen9Hardware(iLOGen8Hardware):"},{"line_number":430,"context_line":"        supported_power_interfaces \u003d ("},{"line_number":431,"context_line":"            iLOGen8Hardware.supported_power_interfaces"},{"line_number":432,"context_line":"            + [RedfishPower]"},{"line_number":433,"context_line":"        )"},{"line_number":434,"context_line":""},{"line_number":435,"context_line":".. note::"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_852e3ba3","line":432,"in_reply_to":"7aa08908_bbef2285","updated":"2016-06-16 17:07:37.000000000","message":"I assume these names are imported. We generally don\u0027t use entrypoint names in the code.","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"ac6cd10dffc3dfd1458d1c541710089f4078a856","unresolved":false,"context_lines":[{"line_number":468,"context_line":"* Each time the node is created or loaded for the database, a thin BareDriver_"},{"line_number":469,"context_line":"  object is created with all interfaces set on it. This is similar to how"},{"line_number":470,"context_line":"  network drivers already work. It gets assigned to ``task.driver``, and after"},{"line_number":471,"context_line":"  that everything works as before this spec."},{"line_number":472,"context_line":""},{"line_number":473,"context_line":"Nova driver impact"},{"line_number":474,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_83759e98","line":471,"updated":"2016-06-16 14:43:27.000000000","message":"I did something right! \\o/","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43732987b42a096e845f1611252606d9caa2f0f7","unresolved":false,"context_lines":[{"line_number":468,"context_line":"* Each time the node is created or loaded for the database, a thin BareDriver_"},{"line_number":469,"context_line":"  object is created with all interfaces set on it. This is similar to how"},{"line_number":470,"context_line":"  network drivers already work. It gets assigned to ``task.driver``, and after"},{"line_number":471,"context_line":"  that everything works as before this spec."},{"line_number":472,"context_line":""},{"line_number":473,"context_line":"Nova driver impact"},{"line_number":474,"context_line":"------------------"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_40128159","line":471,"in_reply_to":"7aa08908_83759e98","updated":"2016-06-16 17:07:37.000000000","message":"Apparently so :D","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"ac6cd10dffc3dfd1458d1c541710089f4078a856","unresolved":false,"context_lines":[{"line_number":503,"context_line":"Performance Impact"},{"line_number":504,"context_line":"------------------"},{"line_number":505,"context_line":""},{"line_number":506,"context_line":"* A driver object will be now created per node as opposed to creating one per"},{"line_number":507,"context_line":"  conductor right now. This will somewhat increase the memory usage per node."},{"line_number":508,"context_line":"  We can probably define __slots__ on the driver class to reduce this effect."},{"line_number":509,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_a399bad2","line":506,"updated":"2016-06-16 14:43:27.000000000","message":"nit: s/object/instance/","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"ac6cd10dffc3dfd1458d1c541710089f4078a856","unresolved":false,"context_lines":[{"line_number":536,"context_line":"-----------"},{"line_number":537,"context_line":""},{"line_number":538,"context_line":"Primary assignee:"},{"line_number":539,"context_line":"  Dmitry Tantsur (lp: divius, irc: dtantsur)"},{"line_number":540,"context_line":""},{"line_number":541,"context_line":"Work Items"},{"line_number":542,"context_line":"----------"}],"source_content_type":"text/x-rst","patch_set":15,"id":"7aa08908_a3809a4a","line":539,"updated":"2016-06-16 14:43:27.000000000","message":"Feel free to add me here as well.","commit_id":"4d3f76e866aad544c26da59dcc95cf912a4b83bc"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"5aaaf863cefdcc2ed7adb1833f2bc2740f0e928d","unresolved":false,"context_lines":[{"line_number":133,"context_line":"* Create a family of configuration options ``enabled_\u003cINTERFACE\u003e_interfaces``"},{"line_number":134,"context_line":"  with a list of enabled implementations of each *hardware interface*."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"  Note that the default implementation is implicitly enabled for each"},{"line_number":137,"context_line":"  interface of each enabled *hardware type*. There are several reasons for"},{"line_number":138,"context_line":"  that, the most important is to allow backward compatibility with the"},{"line_number":139,"context_line":"  ``driver`` fields as described below."}],"source_content_type":"text/x-rst","patch_set":16,"id":"7aa08908_ea251cc2","line":136,"updated":"2016-06-17 15:00:41.000000000","message":"so do we require it to be included in enabled_.*_interfaces or not?","commit_id":"8122bfd990e92d09676d7f00e44309fd6eaf1e03"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"5982897f760ed4360a29ca1fabc22cc8bcfdda78","unresolved":false,"context_lines":[{"line_number":133,"context_line":"* Create a family of configuration options ``enabled_\u003cINTERFACE\u003e_interfaces``"},{"line_number":134,"context_line":"  with a list of enabled implementations of each *hardware interface*."},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"  Note that the default implementation is implicitly enabled for each"},{"line_number":137,"context_line":"  interface of each enabled *hardware type*. There are several reasons for"},{"line_number":138,"context_line":"  that, the most important is to allow backward compatibility with the"},{"line_number":139,"context_line":"  ``driver`` fields as described below."}],"source_content_type":"text/x-rst","patch_set":16,"id":"7aa08908_55e210a1","line":136,"in_reply_to":"7aa08908_ea251cc2","updated":"2016-06-17 15:08:12.000000000","message":"Done","commit_id":"8122bfd990e92d09676d7f00e44309fd6eaf1e03"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"5aaaf863cefdcc2ed7adb1833f2bc2740f0e928d","unresolved":false,"context_lines":[{"line_number":145,"context_line":"  However, interface implementations themselves will stay singletons, and will"},{"line_number":146,"context_line":"  be preloaded during the start up and stored in the conductor."},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"  Conductor will fail to start if any **enabled** *hardware types* or"},{"line_number":149,"context_line":"  *interface* implementations cannot be loaded (e.g. due to missing"},{"line_number":150,"context_line":"  dependencies)."},{"line_number":151,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"7aa08908_9205aec3","line":148,"updated":"2016-06-17 15:00:41.000000000","message":"Is it possible to have enabled_.*_interfaces to include interfaces that are not used by any of the enabled hw type? I see that further in the spec you say that only enabled interfaces of enabled hw types will be loaded, might be worth including it here.","commit_id":"8122bfd990e92d09676d7f00e44309fd6eaf1e03"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"5982897f760ed4360a29ca1fabc22cc8bcfdda78","unresolved":false,"context_lines":[{"line_number":145,"context_line":"  However, interface implementations themselves will stay singletons, and will"},{"line_number":146,"context_line":"  be preloaded during the start up and stored in the conductor."},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"  Conductor will fail to start if any **enabled** *hardware types* or"},{"line_number":149,"context_line":"  *interface* implementations cannot be loaded (e.g. due to missing"},{"line_number":150,"context_line":"  dependencies)."},{"line_number":151,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"7aa08908_b5453470","line":148,"in_reply_to":"7aa08908_9205aec3","updated":"2016-06-17 15:08:12.000000000","message":"Done","commit_id":"8122bfd990e92d09676d7f00e44309fd6eaf1e03"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"5aaaf863cefdcc2ed7adb1833f2bc2740f0e928d","unresolved":false,"context_lines":[{"line_number":254,"context_line":"  This feature is guarded by an API version bump (as usual)."},{"line_number":255,"context_line":""},{"line_number":256,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":257,"context_line":"  list API. Allow filtering by the ``hardware_type`` field."},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"* Create a new table ``conductor_hardware_interfaces`` to hold the relationship"},{"line_number":260,"context_line":"  between conductors and available interfaces. A warning will be issued"}],"source_content_type":"text/x-rst","patch_set":16,"id":"7aa08908_8f82a750","line":257,"updated":"2016-06-17 15:00:41.000000000","message":"same for the bump","commit_id":"8122bfd990e92d09676d7f00e44309fd6eaf1e03"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"5982897f760ed4360a29ca1fabc22cc8bcfdda78","unresolved":false,"context_lines":[{"line_number":254,"context_line":"  This feature is guarded by an API version bump (as usual)."},{"line_number":255,"context_line":""},{"line_number":256,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":257,"context_line":"  list API. Allow filtering by the ``hardware_type`` field."},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"* Create a new table ``conductor_hardware_interfaces`` to hold the relationship"},{"line_number":260,"context_line":"  between conductors and available interfaces. A warning will be issued"}],"source_content_type":"text/x-rst","patch_set":16,"id":"7aa08908_75362c04","line":257,"in_reply_to":"7aa08908_8f82a750","updated":"2016-06-17 15:08:12.000000000","message":"Done","commit_id":"8122bfd990e92d09676d7f00e44309fd6eaf1e03"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"5aaaf863cefdcc2ed7adb1833f2bc2740f0e928d","unresolved":false,"context_lines":[{"line_number":313,"context_line":"  * ``enabled`` (optional, boolean, default ``True``) - whether to show"},{"line_number":314,"context_line":"    enabled hardware types."},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"  * ``disabled`` (optional, boolean, default ``False``) - whether to show"},{"line_number":317,"context_line":"    disabled hardware types."},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"  * ``classic`` (optional, boolean, default ``True``) - whether to return"}],"source_content_type":"text/x-rst","patch_set":16,"id":"7aa08908_52aa2672","line":316,"updated":"2016-06-17 15:00:41.000000000","message":"For disabled types, is it just going to be listing entrypoint names? Why is this needed? Might be in comments somewhere in earlier revisions.","commit_id":"8122bfd990e92d09676d7f00e44309fd6eaf1e03"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"5982897f760ed4360a29ca1fabc22cc8bcfdda78","unresolved":false,"context_lines":[{"line_number":313,"context_line":"  * ``enabled`` (optional, boolean, default ``True``) - whether to show"},{"line_number":314,"context_line":"    enabled hardware types."},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"  * ``disabled`` (optional, boolean, default ``False``) - whether to show"},{"line_number":317,"context_line":"    disabled hardware types."},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"  * ``classic`` (optional, boolean, default ``True``) - whether to return"}],"source_content_type":"text/x-rst","patch_set":16,"id":"7aa08908_b53c14e2","line":316,"in_reply_to":"7aa08908_52aa2672","updated":"2016-06-17 15:08:12.000000000","message":"Done","commit_id":"8122bfd990e92d09676d7f00e44309fd6eaf1e03"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"5aaaf863cefdcc2ed7adb1833f2bc2740f0e928d","unresolved":false,"context_lines":[{"line_number":325,"context_line":"  New response fields:"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"  ``enabled``"},{"line_number":328,"context_line":"    whether the *hardware type* is enabled (always ``True`` for *classic"},{"line_number":329,"context_line":"    drivers*)."},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"  ``dynamic``"}],"source_content_type":"text/x-rst","patch_set":16,"id":"7aa08908_4faa7f72","line":328,"range":{"start_line":328,"start_character":17,"end_line":328,"end_character":30},"updated":"2016-06-17 15:00:41.000000000","message":"s/hardware type/driver?","commit_id":"8122bfd990e92d09676d7f00e44309fd6eaf1e03"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"5aaaf863cefdcc2ed7adb1833f2bc2740f0e928d","unresolved":false,"context_lines":[{"line_number":351,"context_line":"  ``default_\u003cinterface_name\u003e_interface``"},{"line_number":352,"context_line":"    the default implementation for a given interface."},{"line_number":353,"context_line":""},{"line_number":354,"context_line":"  ``enabled_\u003cinterface_name\u003e_interfaces``"},{"line_number":355,"context_line":"    the list of enabled implementations for a given interface."},{"line_number":356,"context_line":""},{"line_number":357,"context_line":"* Update ``GET /v1/drivers/\u003cNAME\u003e/properties`` and ``GET"}],"source_content_type":"text/x-rst","patch_set":16,"id":"7aa08908_7265a243","line":354,"updated":"2016-06-17 15:00:41.000000000","message":"If it is disabled, what will be here?","commit_id":"8122bfd990e92d09676d7f00e44309fd6eaf1e03"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"5aaaf863cefdcc2ed7adb1833f2bc2740f0e928d","unresolved":false,"context_lines":[{"line_number":535,"context_line":"  notify a user of such deprecation, except for release notes."},{"line_number":536,"context_line":""},{"line_number":537,"context_line":"  The `driver configuration warnings spec"},{"line_number":538,"context_line":"  \u003chttps://review.openstack.org/#/c/279070/\u003e`_ could help, but it\u0027s abandoned"},{"line_number":539,"context_line":"  right now. This spec proposes following the usual deprecation rules instead."},{"line_number":540,"context_line":""},{"line_number":541,"context_line":"Scalability impact"}],"source_content_type":"text/x-rst","patch_set":16,"id":"7aa08908_125ffe41","line":538,"range":{"start_line":538,"start_character":68,"end_line":538,"end_character":77},"updated":"2016-06-17 15:00:41.000000000","message":"restored \\o/","commit_id":"8122bfd990e92d09676d7f00e44309fd6eaf1e03"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"5982897f760ed4360a29ca1fabc22cc8bcfdda78","unresolved":false,"context_lines":[{"line_number":535,"context_line":"  notify a user of such deprecation, except for release notes."},{"line_number":536,"context_line":""},{"line_number":537,"context_line":"  The `driver configuration warnings spec"},{"line_number":538,"context_line":"  \u003chttps://review.openstack.org/#/c/279070/\u003e`_ could help, but it\u0027s abandoned"},{"line_number":539,"context_line":"  right now. This spec proposes following the usual deprecation rules instead."},{"line_number":540,"context_line":""},{"line_number":541,"context_line":"Scalability impact"}],"source_content_type":"text/x-rst","patch_set":16,"id":"7aa08908_80ff1400","line":538,"range":{"start_line":538,"start_character":68,"end_line":538,"end_character":77},"in_reply_to":"7aa08908_125ffe41","updated":"2016-06-17 15:08:12.000000000","message":"Done","commit_id":"8122bfd990e92d09676d7f00e44309fd6eaf1e03"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"922316507d41c17f2606318272a8ff1662005117","unresolved":false,"context_lines":[{"line_number":195,"context_line":"    clients using different API versions."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"  * When ``driver`` field is updated, reset ``hardware_type`` and all"},{"line_number":198,"context_line":"    ``\u003cinteface_name\u003e_interface`` fields to ``None``."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"  For post-reform API version:"},{"line_number":201,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_acb7b183","line":198,"updated":"2016-06-17 14:36:43.000000000","message":"nit: interface_name\n\nWell, I think you mean \"when driver field is updated with a classic driver\", right? If it\u0027s updated with a hardware type, do we still null the hardware_type field? Why?\n\nI think it makes the most sense to also set hardware_type in this case, and null the interfaces, forcing it to use the defaults.\n\nNow I read rloo\u0027s comments and your response, and while it\u0027s inconsistent in code, it will only present to post-reform API users. And it will still be consistent from a client perspective, I think, because classic drivers will have a null hardware_type always, and dynamic drivers will have hardware_type set always (to the same as driver).\n\n(note that I really had to rack my brain for this, so if I\u0027m wrong somewhere please point it out).","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e33efe6fde258a85dfb65f57d5e97bee95b0fed1","unresolved":false,"context_lines":[{"line_number":195,"context_line":"    clients using different API versions."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"  * When ``driver`` field is updated, reset ``hardware_type`` and all"},{"line_number":198,"context_line":"    ``\u003cinteface_name\u003e_interface`` fields to ``None``."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"  For post-reform API version:"},{"line_number":201,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_550050ab","line":198,"in_reply_to":"7aa08908_32fddab1","updated":"2016-06-17 15:01:00.000000000","message":"Right, so if driver is given a hardware type, we should set hardware_type as well, right?","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"016e9f070e5178d8dadea0380bdb06a76cae7bbe","unresolved":false,"context_lines":[{"line_number":195,"context_line":"    clients using different API versions."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"  * When ``driver`` field is updated, reset ``hardware_type`` and all"},{"line_number":198,"context_line":"    ``\u003cinteface_name\u003e_interface`` fields to ``None``."},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"  For post-reform API version:"},{"line_number":201,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_32fddab1","line":198,"in_reply_to":"7aa08908_acb7b183","updated":"2016-06-17 14:50:44.000000000","message":"We null the hardware_type field because it cannot take a classic driver (it does not make sense for it). Everything else sounds valid in your comment.","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"922316507d41c17f2606318272a8ff1662005117","unresolved":false,"context_lines":[{"line_number":244,"context_line":"  by API versioning because we allow old API versions to use *hardware types*."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"* Allow ``GET /v1/drivers`` to filter only *hardware types* or only *classic"},{"line_number":247,"context_line":"  drivers*. Allow including disabled *hardware types* and *classic drivers*."},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"  This feature is guarded by an API version bump (as usual)."},{"line_number":250,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_4f2c3fac","line":247,"updated":"2016-06-17 14:36:43.000000000","message":"I\u0027m curious how listing disabled classic drivers will work, where are those stored in the DB? Or are we going to invoke stevedore every time this is called? Or cache that in memory somewhere after loading the drivers (we do loop over all drivers at startup, and just skip loading the disabled drivers)?","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e33efe6fde258a85dfb65f57d5e97bee95b0fed1","unresolved":false,"context_lines":[{"line_number":244,"context_line":"  by API versioning because we allow old API versions to use *hardware types*."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"* Allow ``GET /v1/drivers`` to filter only *hardware types* or only *classic"},{"line_number":247,"context_line":"  drivers*. Allow including disabled *hardware types* and *classic drivers*."},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"  This feature is guarded by an API version bump (as usual)."},{"line_number":250,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_b527f461","line":247,"in_reply_to":"7aa08908_32995a7a","updated":"2016-06-17 15:01:00.000000000","message":"Fine with me","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"016e9f070e5178d8dadea0380bdb06a76cae7bbe","unresolved":false,"context_lines":[{"line_number":244,"context_line":"  by API versioning because we allow old API versions to use *hardware types*."},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"* Allow ``GET /v1/drivers`` to filter only *hardware types* or only *classic"},{"line_number":247,"context_line":"  drivers*. Allow including disabled *hardware types* and *classic drivers*."},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"  This feature is guarded by an API version bump (as usual)."},{"line_number":250,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_32995a7a","line":247,"in_reply_to":"7aa08908_4f2c3fac","updated":"2016-06-17 14:50:44.000000000","message":"So, I have hard time thinking about it, so I\u0027ll just drop listing disabled drivers/hardware types from this spec. It\u0027s a nice addition, but it\u0027s not required for hardware composition.","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"922316507d41c17f2606318272a8ff1662005117","unresolved":false,"context_lines":[{"line_number":286,"context_line":"  to replicate all driver-related functionality nearly intact, for example"},{"line_number":287,"context_line":"  driver vendor passthru. So users would have to somehow figure out which"},{"line_number":288,"context_line":"  vendor passthru endpoint to use based on what kind of a driver is in the"},{"line_number":289,"context_line":"  ``driver`` field."},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"Data model impact"},{"line_number":292,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_0ff99780","line":289,"updated":"2016-06-17 14:36:43.000000000","message":"++ this is a poor option","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"922316507d41c17f2606318272a8ff1662005117","unresolved":false,"context_lines":[{"line_number":298,"context_line":""},{"line_number":299,"context_line":"* Create a new internal table ``hardware_interfaces``:"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"  ``id INT NOT NULL`` - record ID (primary key),"},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"  ``hardware_type VARCHAR(255)`` - *hardware type* entrypoint name,"},{"line_number":304,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_2f43b3b0","line":301,"updated":"2016-06-17 14:36:43.000000000","message":"We assume this is autoincrement, but if you spin another patch it might be worth adding","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"016e9f070e5178d8dadea0380bdb06a76cae7bbe","unresolved":false,"context_lines":[{"line_number":298,"context_line":""},{"line_number":299,"context_line":"* Create a new internal table ``hardware_interfaces``:"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"  ``id INT NOT NULL`` - record ID (primary key),"},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"  ``hardware_type VARCHAR(255)`` - *hardware type* entrypoint name,"},{"line_number":304,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_32f67a5d","line":301,"in_reply_to":"7aa08908_2f43b3b0","updated":"2016-06-17 14:50:44.000000000","message":"Done","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"922316507d41c17f2606318272a8ff1662005117","unresolved":false,"context_lines":[{"line_number":307,"context_line":"  ``name VARCHAR(255)`` - interface implementation entry point name."},{"line_number":308,"context_line":""},{"line_number":309,"context_line":"  This table is populated with enabled *hardware interfaces* on conductor"},{"line_number":310,"context_line":"  start up and for simplicity is never purged."},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"* Create a new internal table ``conductor_hardware_interfaces``:"},{"line_number":313,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_8f9587e5","line":310,"updated":"2016-06-17 14:36:43.000000000","message":"Hm, I think this is fine, but never purging makes me wonder if a conductor could end up with a hardware interface configured that doesn\u0027t actually exist. Maybe need to think on it more.","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"016e9f070e5178d8dadea0380bdb06a76cae7bbe","unresolved":false,"context_lines":[{"line_number":307,"context_line":"  ``name VARCHAR(255)`` - interface implementation entry point name."},{"line_number":308,"context_line":""},{"line_number":309,"context_line":"  This table is populated with enabled *hardware interfaces* on conductor"},{"line_number":310,"context_line":"  start up and for simplicity is never purged."},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"* Create a new internal table ``conductor_hardware_interfaces``:"},{"line_number":313,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_b2b70a84","line":310,"in_reply_to":"7aa08908_8f9587e5","updated":"2016-06-17 14:50:44.000000000","message":"This table is not used for validating anything in the conductor. It\u0027s not used for anything except for the next table.","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e33efe6fde258a85dfb65f57d5e97bee95b0fed1","unresolved":false,"context_lines":[{"line_number":307,"context_line":"  ``name VARCHAR(255)`` - interface implementation entry point name."},{"line_number":308,"context_line":""},{"line_number":309,"context_line":"  This table is populated with enabled *hardware interfaces* on conductor"},{"line_number":310,"context_line":"  start up and for simplicity is never purged."},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"* Create a new internal table ``conductor_hardware_interfaces``:"},{"line_number":313,"context_line":""}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_55c5f059","line":310,"in_reply_to":"7aa08908_b2b70a84","updated":"2016-06-17 15:01:00.000000000","message":"Right, but what if a conductor is stopped while MySQL is down, and the code changes (say to remove a driver) then?\n\nPerhaps we should also purge conductor_hardware_interfaces at startup to make absolutely sure there\u0027s no cruft in that table referencing an old record here.","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"922316507d41c17f2606318272a8ff1662005117","unresolved":false,"context_lines":[{"line_number":385,"context_line":""},{"line_number":386,"context_line":"  When requested for a *dynamic driver*, assume the default ``vendor``"},{"line_number":387,"context_line":"  interface implementation. We will need to support non-default implementations"},{"line_number":388,"context_line":"  as well, but it goes somewhat beyond the scope of this already big spec."},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"Client (CLI) impact"},{"line_number":391,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_328afa64","line":388,"updated":"2016-06-17 14:36:43.000000000","message":"I do somewhat wonder how this will work... we\u0027ll need to do it soon, I think. I don\u0027t think there\u0027s any in-tree driver vendor passthru once we promote agent APIs, so we\u0027ll need to do it before any third-party drivers that use d-v-p become a dynamic driver.","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"016e9f070e5178d8dadea0380bdb06a76cae7bbe","unresolved":false,"context_lines":[{"line_number":385,"context_line":""},{"line_number":386,"context_line":"  When requested for a *dynamic driver*, assume the default ``vendor``"},{"line_number":387,"context_line":"  interface implementation. We will need to support non-default implementations"},{"line_number":388,"context_line":"  as well, but it goes somewhat beyond the scope of this already big spec."},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"Client (CLI) impact"},{"line_number":391,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_b2454a70","line":388,"in_reply_to":"7aa08908_328afa64","updated":"2016-06-17 14:50:44.000000000","message":"Note that this is only a concern when a driver has several supported vendor interface implementation, which is pretty unlikely.","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e33efe6fde258a85dfb65f57d5e97bee95b0fed1","unresolved":false,"context_lines":[{"line_number":385,"context_line":""},{"line_number":386,"context_line":"  When requested for a *dynamic driver*, assume the default ``vendor``"},{"line_number":387,"context_line":"  interface implementation. We will need to support non-default implementations"},{"line_number":388,"context_line":"  as well, but it goes somewhat beyond the scope of this already big spec."},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"Client (CLI) impact"},{"line_number":391,"context_line":"-------------------"}],"source_content_type":"text/x-rst","patch_set":17,"id":"7aa08908_758d8c30","line":388,"in_reply_to":"7aa08908_b2454a70","updated":"2016-06-17 15:01:00.000000000","message":"I don\u0027t think it\u0027s unlikely, iLO (and DRAC, and...) supports ipmitool.","commit_id":"35cf32dab2abc75c00dbede9c8d7c3b2fb5921d5"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":162,"context_line":"* Conductor will fail to start if there is a name clash between a *classic"},{"line_number":163,"context_line":"  driver* and a *hardware type*."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"Database and API"},{"line_number":166,"context_line":"----------------"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"* Create a new field ``hardware_type`` on the node. This will store a"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_7e63061b","line":165,"updated":"2016-06-20 22:11:33.000000000","message":"by \u0027API\u0027 do you mean REST API? There are some things mentioned here that seem to be REST API changes, eg filtering nodes by \u003csome\u003e_interface.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"b7039f4c178245bff66a8f96795ef68c3cbd4286","unresolved":false,"context_lines":[{"line_number":168,"context_line":"* Create a new field ``hardware_type`` on the node. This will store a"},{"line_number":169,"context_line":"  *hardware type* for a node. Setting this field will set ``driver`` to the"},{"line_number":170,"context_line":"  same value, so that users of an old API version do not see incorrect"},{"line_number":171,"context_line":"  information. If ``hardware_type`` is ``None``, ``driver`` is used instead."},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"  *Classic driver* names are not accepted in this field."},{"line_number":174,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_13dc82e3","line":171,"updated":"2016-06-20 19:10:56.000000000","message":"There\u0027s some conflict here during the midcycle on whether we should have this additional field or not. I feel like we don\u0027t need it, but there might be a good reason we aren\u0027t remembering to have this.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"d4f6fe6960f522f17fae139538a29066fa11c938","unresolved":false,"context_lines":[{"line_number":168,"context_line":"* Create a new field ``hardware_type`` on the node. This will store a"},{"line_number":169,"context_line":"  *hardware type* for a node. Setting this field will set ``driver`` to the"},{"line_number":170,"context_line":"  same value, so that users of an old API version do not see incorrect"},{"line_number":171,"context_line":"  information. If ``hardware_type`` is ``None``, ``driver`` is used instead."},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"  *Classic driver* names are not accepted in this field."},{"line_number":174,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_d3b67a89","line":171,"in_reply_to":"5a9d85d2_13dc82e3","updated":"2016-06-20 19:17:04.000000000","message":"I agree that we don\u0027t need two fields, and truthfully I think we will create more problems trying to have two fields.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":197,"context_line":""},{"line_number":198,"context_line":"  * It is possible to update the ``driver`` field to both *classic drivers*"},{"line_number":199,"context_line":"    and *hardware types*. This is required to reasonably support clouds with"},{"line_number":200,"context_line":"    clients using different API versions."},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"  * When ``driver`` field is updated, reset ``hardware_type`` and all"},{"line_number":203,"context_line":"    ``\u003cinterface_name\u003e_interface`` fields to ``None``."}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_74684cf6","line":200,"updated":"2016-06-20 22:11:33.000000000","message":"I don\u0027t see why we should allow setting driver to hardware type with an old API version. I think I asked at the midcycle, but forgot the answer. Shouldn\u0027t they up the API version if they want to set it to a hardware type?","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"6b1b1e06215129d9eca04ee6b0cc2f22a6eead34","unresolved":false,"context_lines":[{"line_number":200,"context_line":"    clients using different API versions."},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"  * When ``driver`` field is updated, reset ``hardware_type`` and all"},{"line_number":203,"context_line":"    ``\u003cinterface_name\u003e_interface`` fields to ``None``."},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    .. note::"},{"line_number":206,"context_line":"       Setting ``hardware_type`` to ``None`` indicates that a *classic driver*"}],"source_content_type":"text/x-rst","patch_set":18,"id":"7aa08908_20a740a8","line":203,"updated":"2016-06-17 16:12:09.000000000","message":"I\u0027d still like to say \"is updated to a classic driver\", because we\u0027ll only null hardware_type if it\u0027s a classic driver","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3adc1b32c400c54c268cd32433dcafe2df9a7122","unresolved":false,"context_lines":[{"line_number":200,"context_line":"    clients using different API versions."},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"  * When ``driver`` field is updated, reset ``hardware_type`` and all"},{"line_number":203,"context_line":"    ``\u003cinterface_name\u003e_interface`` fields to ``None``."},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    .. note::"},{"line_number":206,"context_line":"       Setting ``hardware_type`` to ``None`` indicates that a *classic driver*"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_d78958cc","line":203,"in_reply_to":"5a9d85d2_8aa7b14e","updated":"2016-06-20 13:59:55.000000000","message":"Clarified in IRC, putting here for the record.\n\nWe agree that *_interface should be updated to NULL in any case, when updating driver in the old API.\n\nWe agreed in IRC that when updating driver to a classic driver in the old API, hardware_type will be set to NULL.\n\nWe agreed in IRC that when updating driver to a dynamic driver in the old API, hardware_type will be set to the dynamic driver.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c26e39c184b72068cad41b1d0aa3902c8a63405d","unresolved":false,"context_lines":[{"line_number":200,"context_line":"    clients using different API versions."},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"  * When ``driver`` field is updated, reset ``hardware_type`` and all"},{"line_number":203,"context_line":"    ``\u003cinterface_name\u003e_interface`` fields to ``None``."},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    .. note::"},{"line_number":206,"context_line":"       Setting ``hardware_type`` to ``None`` indicates that a *classic driver*"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_8aa7b14e","line":203,"in_reply_to":"7aa08908_20a740a8","updated":"2016-06-20 09:35:41.000000000","message":"I don\u0027t quite agree here. If we don\u0027t null the fields, people will experience some non-default behavior which they don\u0027t have chances to affect or even see (cause *_interface fields are behind the API version).","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":214,"context_line":""},{"line_number":215,"context_line":"  * Setting the ``driver`` field to a *hardware type* causes the"},{"line_number":216,"context_line":"    ``hardware_type`` field to be updated to the same value. The"},{"line_number":217,"context_line":"    ``\u003cinterface_name\u003e_interface`` fields are not automatically changed."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"  * Setting the ``driver`` field to a *classic driver* causes the"},{"line_number":220,"context_line":"    ``hardware_type`` and all ``\u003cinteface_name\u003e_interface`` fields to be set"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_05c8b854","line":217,"updated":"2016-06-20 22:11:33.000000000","message":"What if the interfaces are not supported by the new hardware type?\n\nHmm, maybe add something like \"if the *interface are not supported, the request will fail\".","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"cc630f7b244b7b301849fa46e85197ea66c37f49","unresolved":false,"context_lines":[{"line_number":217,"context_line":"    ``\u003cinterface_name\u003e_interface`` fields are not automatically changed."},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"  * Setting the ``driver`` field to a *classic driver* causes the"},{"line_number":220,"context_line":"    ``hardware_type`` and all ``\u003cinteface_name\u003e_interface`` fields to be set"},{"line_number":221,"context_line":"    to ``None``."},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"  This makes it possible for clients of old API versions to use *dynamic"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_65fd3c3a","line":220,"range":{"start_line":220,"start_character":33,"end_line":220,"end_character":41},"updated":"2016-06-20 18:32:34.000000000","message":"interface","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":225,"context_line":""},{"line_number":226,"context_line":"* Every time ``hardware_type`` and/or any of the interface fields is updated,"},{"line_number":227,"context_line":"  the conductor checks that the *hardware type* supports all the provided"},{"line_number":228,"context_line":"  interfaces (except when ``hardware_type`` is set to a *classic driver*)."},{"line_number":229,"context_line":""},{"line_number":230,"context_line":"  To change between two incompatible sets of interfaces, all changes should"},{"line_number":231,"context_line":"  come in one API call. E.g. for a node with the ``ilo-gen8`` *hardware type*"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_0524380b","line":228,"updated":"2016-06-20 22:11:33.000000000","message":"Can the \u0027hardware_type\u0027 field be set to a classic driver?\n\nOK, Dmitry just said this was a mistake; it cannot be set to a classic driver.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"528b57a9da89fc23ce9479c4eb7d2d5e7e72b8be","unresolved":false,"context_lines":[{"line_number":246,"context_line":"    `RFC 6902 \u003chttps://tools.ietf.org/html/rfc6902#section-5\u003e`_ requires"},{"line_number":247,"context_line":"    a JSON patch to be atomic, because an HTTP PATCH operation must be atomic."},{"line_number":248,"context_line":"    Meaning, it\u0027s possible for some operations to end up with an inconsistent"},{"line_number":249,"context_line":"    object as long as the end result is consistent."},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":252,"context_line":"  This change is **not** affected by API versioning because we allow old API"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_c6c7e443","line":249,"updated":"2016-06-20 15:47:17.000000000","message":"I\u0027m not sure I like this because I\u0027m thinking that from the client side of things this could lead to horrible long un-human friendly \"ironic node-update ...\" calls.\n\nMy idea for updating a node\u0027s hardware-type or \u003cname\u003e_interface field would be to let this be handled by node validation logic. E.g. I should be able to update the hardware-type to one that is incompatible with that nodes interfaces, and at that point the node fails validation, so will be taking out of the available pool. Doing \"ironic node-validate ...\" would show:\n\n    boot  | Invalid interface\n    power | Invalid interface\n\nAnd then I can follow it up with: \n\n\"ironic node-update \u003cuuid\u003e boot_interface\u003d...\"\n\"ironic node-update \u003cuuid\u003e power_interface\u003d...\"\n\nThis would be consistent with if I change the power interface and forget to add the right credentials to make it work.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"b40c76ef53fd861969c0d04bfdd5d05b4ea108f9","unresolved":false,"context_lines":[{"line_number":246,"context_line":"    `RFC 6902 \u003chttps://tools.ietf.org/html/rfc6902#section-5\u003e`_ requires"},{"line_number":247,"context_line":"    a JSON patch to be atomic, because an HTTP PATCH operation must be atomic."},{"line_number":248,"context_line":"    Meaning, it\u0027s possible for some operations to end up with an inconsistent"},{"line_number":249,"context_line":"    object as long as the end result is consistent."},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":252,"context_line":"  This change is **not** affected by API versioning because we allow old API"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_08756dca","line":249,"in_reply_to":"5a9d85d2_424756bb","updated":"2016-06-20 18:47:24.000000000","message":"As discussed during mid-cycle I think the proposed solution is OK, and we can allow for interfaces inconsistent with hardware_type in the future if we decide there is a use case there.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"7c9411da9cebf93f9a7e2b26f0e65cb654901737","unresolved":false,"context_lines":[{"line_number":246,"context_line":"    `RFC 6902 \u003chttps://tools.ietf.org/html/rfc6902#section-5\u003e`_ requires"},{"line_number":247,"context_line":"    a JSON patch to be atomic, because an HTTP PATCH operation must be atomic."},{"line_number":248,"context_line":"    Meaning, it\u0027s possible for some operations to end up with an inconsistent"},{"line_number":249,"context_line":"    object as long as the end result is consistent."},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":252,"context_line":"  This change is **not** affected by API versioning because we allow old API"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_4849355f","line":249,"in_reply_to":"5a9d85d2_424756bb","updated":"2016-06-20 18:37:00.000000000","message":"We just agreed during midcycle to do the strict validation, and can relax later if needed.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"1d9d6d61c6d5d1d6984e6b9ed684b5847f39f671","unresolved":false,"context_lines":[{"line_number":246,"context_line":"    `RFC 6902 \u003chttps://tools.ietf.org/html/rfc6902#section-5\u003e`_ requires"},{"line_number":247,"context_line":"    a JSON patch to be atomic, because an HTTP PATCH operation must be atomic."},{"line_number":248,"context_line":"    Meaning, it\u0027s possible for some operations to end up with an inconsistent"},{"line_number":249,"context_line":"    object as long as the end result is consistent."},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":252,"context_line":"  This change is **not** affected by API versioning because we allow old API"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_424756bb","line":249,"in_reply_to":"5a9d85d2_7344ef73","updated":"2016-06-20 18:09:10.000000000","message":"Not sure we should optimize for this case - it\u0027s going to be very rare... I do like the idea though","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"255f83c94638a1415ea48cde372a7deae9c510c5","unresolved":false,"context_lines":[{"line_number":246,"context_line":"    `RFC 6902 \u003chttps://tools.ietf.org/html/rfc6902#section-5\u003e`_ requires"},{"line_number":247,"context_line":"    a JSON patch to be atomic, because an HTTP PATCH operation must be atomic."},{"line_number":248,"context_line":"    Meaning, it\u0027s possible for some operations to end up with an inconsistent"},{"line_number":249,"context_line":"    object as long as the end result is consistent."},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":252,"context_line":"  This change is **not** affected by API versioning because we allow old API"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_7344ef73","line":249,"in_reply_to":"5a9d85d2_c6c7e443","updated":"2016-06-20 16:33:18.000000000","message":"Interesting idea, I\u0027ll think about it. We need to understand all the implications, e.g. a wrong power interface will cause a node to go to maintenance, right?","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":250,"context_line":""},{"line_number":251,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":252,"context_line":"  This change is **not** affected by API versioning because we allow old API"},{"line_number":253,"context_line":"  versions to use *hardware types* with the ``driver`` field."},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"* Allow ``GET /v1/drivers`` to filter only *hardware types* or only *classic"},{"line_number":256,"context_line":"  drivers*."}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_54fd5039","line":253,"updated":"2016-06-20 22:11:33.000000000","message":"I am still not convinced that we should let the driver field be updated with hardware types with old API version.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":255,"context_line":"* Allow ``GET /v1/drivers`` to filter only *hardware types* or only *classic"},{"line_number":256,"context_line":"  drivers*."},{"line_number":257,"context_line":""},{"line_number":258,"context_line":"  This feature is guarded by an API version bump (as usual)."},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"* Update ``GET /v1/drivers/\u003cHW TYPE\u003e`` to report the *hardware type*"},{"line_number":261,"context_line":"  information, including the list of enabled *hardware interfaces*."}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_d43b00ea","line":258,"updated":"2016-06-20 22:11:33.000000000","message":"If this is guarded, so should GET /v1/drivers wrt what it returns. if old API, only classic drivers; if new API version, both classic \u0026 hardware types.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":268,"context_line":"  This feature is guarded by an API version bump (as usual)."},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"* Create a new table ``conductor_hardware_interfaces`` to hold the relationship"},{"line_number":271,"context_line":"  between conductors and available interfaces. A warning will be issued"},{"line_number":272,"context_line":"  on conductor start up, if it detects that other conductors have a different"},{"line_number":273,"context_line":"  set of interfaces for the same enabled *hardware type*."},{"line_number":274,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_342d24a8","line":271,"updated":"2016-06-20 22:11:33.000000000","message":"conductors, hardware types and available interfaces, or only conductors and available interfaces?","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":274,"context_line":""},{"line_number":275,"context_line":"  This situation is inevitable during live upgrades, so it must not result in"},{"line_number":276,"context_line":"  an error. However, we will document that all conductors should have the same"},{"line_number":277,"context_line":"  set of interfaces for the same enabled *hardware types*."},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"  This table will not be exposed in the HTTP API for now."},{"line_number":280,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_2832e4f1","line":277,"updated":"2016-06-20 22:11:33.000000000","message":"I\u0027m not sure it is inevitable. It could happen, but we could document that for a rolling upgrade, they don\u0027t update their configs yet, to indicate what the enabled_hardware_types configuration value is. They should only update the config after the upgrade is completed.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"17738e498b1662307cda3288b2981573b7dae493","unresolved":false,"context_lines":[{"line_number":274,"context_line":""},{"line_number":275,"context_line":"  This situation is inevitable during live upgrades, so it must not result in"},{"line_number":276,"context_line":"  an error. However, we will document that all conductors should have the same"},{"line_number":277,"context_line":"  set of interfaces for the same enabled *hardware types*."},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"  This table will not be exposed in the HTTP API for now."},{"line_number":280,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_81c90f7b","line":277,"in_reply_to":"5a9d85d2_2832e4f1","updated":"2016-06-21 13:53:35.000000000","message":"Well, but to update the configs, you either need to do a rolling restart of conductors, or have an outage to do them all at once. I tend to think outages are unacceptable if we support rolling upgrades, so this case will still happen.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":5805,"name":"Chris Krelle","email":"nobodycam@gmail.com","username":"nobodycam"},"change_message_id":"9c5cda60cdc135af683c44404be950315a863855","unresolved":false,"context_lines":[{"line_number":302,"context_line":"Data model impact"},{"line_number":303,"context_line":"-----------------"},{"line_number":304,"context_line":""},{"line_number":305,"context_line":"* Create a new node field ``hardware_type`` initially set to ``NULL``."},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"* For each interface, create a new node field ``\u003cinterface_name\u003e_interface``"},{"line_number":308,"context_line":"  initially set to ``NULL``."}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_33e37ea5","line":305,"range":{"start_line":305,"start_character":2,"end_line":305,"end_character":70},"updated":"2016-06-20 19:12:57.000000000","message":"I believe this may be better if we only used driver field.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":318,"context_line":"  ``name VARCHAR(255)`` - interface implementation entry point name."},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"  This table is populated with enabled *hardware interfaces* on conductor"},{"line_number":321,"context_line":"  start up and for simplicity is never purged."},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"* Create a new internal table ``conductor_hardware_interfaces``:"},{"line_number":324,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_a8e25401","line":321,"updated":"2016-06-20 22:11:33.000000000","message":"I\u0027m not sure I understand this.\n\nuser sets enabled_power_interfaces to \u0027foo\u0027 and \u0027bar\u0027 (for hw type \u0027foobar\u0027) and conductor starts up. Two entries get added to this table, \u0027foo\u0027 and \u0027bar\u0027.\n\nuser changes enabled_power_interfaces to \u0027foo\u0027 only and restarts conductor. It is OK for \u0027bar\u0027 to still be in the table?\n\n[I haven\u0027t yet figured out what this table is for so maybe a dumb question.]","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":332,"context_line":"  they see other conductors enabling a different set of interfaces for the"},{"line_number":333,"context_line":"  same *hardware type*. The enabled *hardware types* themselves do not have to"},{"line_number":334,"context_line":"  match (just like today different conductors can have different sets of"},{"line_number":335,"context_line":"  drivers)."},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"State Machine Impact"},{"line_number":338,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_289dc465","line":335,"updated":"2016-06-20 22:11:33.000000000","message":"this part is fuzzy to me; I lost track of where the relationship is between hardware-type and supported interfaces. As long as it works I guess :)","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"17738e498b1662307cda3288b2981573b7dae493","unresolved":false,"context_lines":[{"line_number":332,"context_line":"  they see other conductors enabling a different set of interfaces for the"},{"line_number":333,"context_line":"  same *hardware type*. The enabled *hardware types* themselves do not have to"},{"line_number":334,"context_line":"  match (just like today different conductors can have different sets of"},{"line_number":335,"context_line":"  drivers)."},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"State Machine Impact"},{"line_number":338,"context_line":"--------------------"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_e1ea93ab","line":335,"in_reply_to":"5a9d85d2_289dc465","updated":"2016-06-21 13:53:35.000000000","message":"It\u0027s in code, see line 469 for example.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":359,"context_line":""},{"line_number":360,"context_line":"  This change is guarded by a new API version, **except** for listing"},{"line_number":361,"context_line":"  *hardware types*. They are always listed for reasons stated in the `Database"},{"line_number":362,"context_line":"  and API`_ section."},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"* Update ``GET /v1/drivers/\u003cNAME\u003e``:"},{"line_number":365,"context_line":""}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_08a448a4","line":362,"updated":"2016-06-20 22:11:33.000000000","message":"So if you issue this request with new API version, you\u0027ll see \u0027dynamic\u0027 But if you issue the request with old API version, you\u0027ll see the hardware types, but no \u0027dynamic\u0027 ? :-(","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":374,"context_line":"    the default implementation for a given interface."},{"line_number":375,"context_line":""},{"line_number":376,"context_line":"  ``enabled_\u003cinterface_name\u003e_interfaces``"},{"line_number":377,"context_line":"    the list of enabled implementations for a given interface."},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"* Update ``GET /v1/drivers/\u003cNAME\u003e/properties`` and ``GET"},{"line_number":380,"context_line":"  /v1/drivers/\u003cNAME\u003e/vendor_passthru/methods`` and the actual driver vendor"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_e8f57c83","line":377,"updated":"2016-06-20 22:11:33.000000000","message":"It seems to me that for a particular hardware type, there is, for a particular interface eg power:\n- default power interface\n- supported power interfaces\n- enabled power interfaces (this is specified by user via a config, and I don\u0027t know when we check that this is a subset of the supported power interfaces)\n\nBefore I forget, there is endpoint name and classname for these interfaces. Which values are you expecting when eg setting configuration options, the new node.*_interface values, and when returning values in responses.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ae699c523c413b5fe8dbce0d22785038301a0c3","unresolved":false,"context_lines":[{"line_number":399,"context_line":"* Extend the output of the ``driver-list`` command with the ``Dynamic`` column."},{"line_number":400,"context_line":""},{"line_number":401,"context_line":"* Extend the ``driver-list`` command with ``--no-classic`` and ``--no-dynamic``"},{"line_number":402,"context_line":"  flags disabling returning *classic* and *dynamic* drivers respectively."},{"line_number":403,"context_line":""},{"line_number":404,"context_line":"* Extend the output of the ``driver-show`` command with the newly introduced"},{"line_number":405,"context_line":"  fields."}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_086e082f","line":402,"updated":"2016-06-20 22:11:33.000000000","message":"the corresponding REST api is being extended with \u0027classic\u0027 and \u0027dynamic\u0027. Why did you decide to do the opposite here with no-classic and no-dynamic? (Default is ??)","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"528b57a9da89fc23ce9479c4eb7d2d5e7e72b8be","unresolved":false,"context_lines":[{"line_number":589,"context_line":"This spec changes the way we expect the developers to write their drivers."},{"line_number":590,"context_line":""},{"line_number":591,"context_line":"* No more *classic drivers* will be accepted in-tree as soon as this change"},{"line_number":592,"context_line":"  lands."},{"line_number":593,"context_line":""},{"line_number":594,"context_line":"* Developers should implement *hardware types* and *interfaces* to provide"},{"line_number":595,"context_line":"  new hardware support for Ironic. Built-in *interfaces* implementations will"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_5a87480f","line":592,"updated":"2016-06-20 15:47:17.000000000","message":"Will we be converting existing drivers into the new format? i.e. redefining pxe_ipmitool as a hardware type with the only supported interfaces and default interfaces being the ones that exist on the driver now?","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"255f83c94638a1415ea48cde372a7deae9c510c5","unresolved":false,"context_lines":[{"line_number":589,"context_line":"This spec changes the way we expect the developers to write their drivers."},{"line_number":590,"context_line":""},{"line_number":591,"context_line":"* No more *classic drivers* will be accepted in-tree as soon as this change"},{"line_number":592,"context_line":"  lands."},{"line_number":593,"context_line":""},{"line_number":594,"context_line":"* Developers should implement *hardware types* and *interfaces* to provide"},{"line_number":595,"context_line":"  new hardware support for Ironic. Built-in *interfaces* implementations will"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a9d85d2_93223bb8","line":592,"in_reply_to":"5a9d85d2_5a87480f","updated":"2016-06-20 16:33:18.000000000","message":"We could do it and we probably should. Unfortunately we can\u0027t do it for out-of-tree drivers, so we\u0027ll have to support both types for quite some time. I\u0027ll think about this one as well.","commit_id":"de1b0bf1092c1cbea1e848bc464f617173ff1bee"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0cefad87af9ed0c388205f6e3a61350f3c781ceb","unresolved":false,"context_lines":[{"line_number":76,"context_line":"    hardcoded in the Python code."},{"line_number":77,"context_line":"**dynamic driver**"},{"line_number":78,"context_line":"    A *driver* created at run time with links to interfaces generated based on"},{"line_number":79,"context_line":"    information in the node record."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"With this spec we are going to achieve the following goals:"},{"line_number":82,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_4c22bb01","line":79,"updated":"2016-06-21 14:52:52.000000000","message":"I think it would be good to throw in \"hardware type\" here somewhere because the spec uses them almost interchangeably.\n\nEg, s/record/record (including hardware type and interfaces)/","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":76,"context_line":"    hardcoded in the Python code."},{"line_number":77,"context_line":"**dynamic driver**"},{"line_number":78,"context_line":"    A *driver* created at run time with links to interfaces generated based on"},{"line_number":79,"context_line":"    information in the node record."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"With this spec we are going to achieve the following goals:"},{"line_number":82,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_71ee9c23","line":79,"in_reply_to":"5a9d85d2_4c22bb01","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0cefad87af9ed0c388205f6e3a61350f3c781ceb","unresolved":false,"context_lines":[{"line_number":165,"context_line":"Database and Rest API"},{"line_number":166,"context_line":"---------------------"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"* Allow the node ``driver`` field to accept the *dynamic drivers* as well."},{"line_number":169,"context_line":"  This will work in all API versions."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"  .. note::"}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_a95eb173","line":168,"updated":"2016-06-21 14:52:52.000000000","message":"The value could be a hardware type, right? The dynamic driver is \u0027a driver created at run time with links to interfaces generated based on information in the node record.\u0027\n\nOK, just checked with Dmitry and yes, it should be hardware type.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":165,"context_line":"Database and Rest API"},{"line_number":166,"context_line":"---------------------"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"* Allow the node ``driver`` field to accept the *dynamic drivers* as well."},{"line_number":169,"context_line":"  This will work in all API versions."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"  .. note::"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_91d06855","line":168,"in_reply_to":"5a9d85d2_a95eb173","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0cefad87af9ed0c388205f6e3a61350f3c781ceb","unresolved":false,"context_lines":[{"line_number":172,"context_line":"     There are two reasons for that:"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"     * Consistency: we never prevented new drivers to be used with old API"},{"line_number":175,"context_line":"       versions, and *dynamic drivers* will look mostly as just new drivers to"},{"line_number":176,"context_line":"       users."},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"     * Usability: as described below, we plan on deprecating the old drivers."}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_c9a05d46","line":175,"updated":"2016-06-21 14:52:52.000000000","message":"s/as just/like/ ?\n\ns/dynamic drivers/hardware types/","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":172,"context_line":"     There are two reasons for that:"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"     * Consistency: we never prevented new drivers to be used with old API"},{"line_number":175,"context_line":"       versions, and *dynamic drivers* will look mostly as just new drivers to"},{"line_number":176,"context_line":"       users."},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"     * Usability: as described below, we plan on deprecating the old drivers."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_f148cc2f","line":175,"in_reply_to":"5a9d85d2_c9a05d46","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0cefad87af9ed0c388205f6e3a61350f3c781ceb","unresolved":false,"context_lines":[{"line_number":175,"context_line":"       versions, and *dynamic drivers* will look mostly as just new drivers to"},{"line_number":176,"context_line":"       users."},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"     * Usability: as described below, we plan on deprecating the old drivers."},{"line_number":179,"context_line":"       Once we do it, it will be impossible to create nodes with these versions"},{"line_number":180,"context_line":"       of API. There will be no suitable drivers any more, if we dont\u0027t allow"},{"line_number":181,"context_line":"       the ``driver`` field to accept *dynamic drivers* in old versions of API."}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_8932d50e","line":178,"updated":"2016-06-21 14:52:52.000000000","message":"maybe s/old/old (classic)/","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":175,"context_line":"       versions, and *dynamic drivers* will look mostly as just new drivers to"},{"line_number":176,"context_line":"       users."},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"     * Usability: as described below, we plan on deprecating the old drivers."},{"line_number":179,"context_line":"       Once we do it, it will be impossible to create nodes with these versions"},{"line_number":180,"context_line":"       of API. There will be no suitable drivers any more, if we dont\u0027t allow"},{"line_number":181,"context_line":"       the ``driver`` field to accept *dynamic drivers* in old versions of API."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_31c6d467","line":178,"in_reply_to":"5a9d85d2_8932d50e","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0cefad87af9ed0c388205f6e3a61350f3c781ceb","unresolved":false,"context_lines":[{"line_number":177,"context_line":""},{"line_number":178,"context_line":"     * Usability: as described below, we plan on deprecating the old drivers."},{"line_number":179,"context_line":"       Once we do it, it will be impossible to create nodes with these versions"},{"line_number":180,"context_line":"       of API. There will be no suitable drivers any more, if we dont\u0027t allow"},{"line_number":181,"context_line":"       the ``driver`` field to accept *dynamic drivers* in old versions of API."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* For each interface create a new field on the ``node`` table named"}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_c9133d65","line":180,"updated":"2016-06-21 14:52:52.000000000","message":"s/dont\u0027t/don\u0027t/","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":177,"context_line":""},{"line_number":178,"context_line":"     * Usability: as described below, we plan on deprecating the old drivers."},{"line_number":179,"context_line":"       Once we do it, it will be impossible to create nodes with these versions"},{"line_number":180,"context_line":"       of API. There will be no suitable drivers any more, if we dont\u0027t allow"},{"line_number":181,"context_line":"       the ``driver`` field to accept *dynamic drivers* in old versions of API."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* For each interface create a new field on the ``node`` table named"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_d1ab1088","line":180,"in_reply_to":"5a9d85d2_c9133d65","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":178,"context_line":"     * Usability: as described below, we plan on deprecating the old drivers."},{"line_number":179,"context_line":"       Once we do it, it will be impossible to create nodes with these versions"},{"line_number":180,"context_line":"       of API. There will be no suitable drivers any more, if we dont\u0027t allow"},{"line_number":181,"context_line":"       the ``driver`` field to accept *dynamic drivers* in old versions of API."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* For each interface create a new field on the ``node`` table named"},{"line_number":184,"context_line":"  ``\u003cinterface_name\u003e_interface``. A migration will be needed each time"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_61171cee","line":181,"updated":"2016-06-21 18:08:53.000000000","message":"I would even expand this wording a bit more:\n\nWhen we remove the old driver classes, all clients will need to specify the new driver names when enrolling Nodes. To allow older clients to continue interacting with the API service, even as they use new driver names (hardware types), we must continue to use the same field name and API semantics.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0cefad87af9ed0c388205f6e3a61350f3c781ceb","unresolved":false,"context_lines":[{"line_number":178,"context_line":"     * Usability: as described below, we plan on deprecating the old drivers."},{"line_number":179,"context_line":"       Once we do it, it will be impossible to create nodes with these versions"},{"line_number":180,"context_line":"       of API. There will be no suitable drivers any more, if we dont\u0027t allow"},{"line_number":181,"context_line":"       the ``driver`` field to accept *dynamic drivers* in old versions of API."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* For each interface create a new field on the ``node`` table named"},{"line_number":184,"context_line":"  ``\u003cinterface_name\u003e_interface``. A migration will be needed each time"}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_2cb64f3d","line":181,"updated":"2016-06-21 14:52:52.000000000","message":"I\u0027d actually reword/reorder this. Eg:\n\nOnce we do it, there will be no suitable (classic) drivers any more, and if we don\u0027t allow the driver field to accept hardware types in old versions of the API, it will be impossible to create nodes in those APIs.\n\n[Good point!]","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":178,"context_line":"     * Usability: as described below, we plan on deprecating the old drivers."},{"line_number":179,"context_line":"       Once we do it, it will be impossible to create nodes with these versions"},{"line_number":180,"context_line":"       of API. There will be no suitable drivers any more, if we dont\u0027t allow"},{"line_number":181,"context_line":"       the ``driver`` field to accept *dynamic drivers* in old versions of API."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* For each interface create a new field on the ``node`` table named"},{"line_number":184,"context_line":"  ``\u003cinterface_name\u003e_interface``. A migration will be needed each time"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_b103e472","line":181,"in_reply_to":"3aaa91ec_1d99546f","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"346ef4040f994be514245309da6488923dfe1779","unresolved":false,"context_lines":[{"line_number":178,"context_line":"     * Usability: as described below, we plan on deprecating the old drivers."},{"line_number":179,"context_line":"       Once we do it, it will be impossible to create nodes with these versions"},{"line_number":180,"context_line":"       of API. There will be no suitable drivers any more, if we dont\u0027t allow"},{"line_number":181,"context_line":"       the ``driver`` field to accept *dynamic drivers* in old versions of API."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"* For each interface create a new field on the ``node`` table named"},{"line_number":184,"context_line":"  ``\u003cinterface_name\u003e_interface``. A migration will be needed each time"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_1d99546f","line":181,"in_reply_to":"3aaa91ec_61171cee","updated":"2016-06-21 20:35:14.000000000","message":"++ Deva has a way with words! :)","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"361801810d848cbfc27127b6b6e05887ea57a215","unresolved":false,"context_lines":[{"line_number":184,"context_line":"  ``\u003cinterface_name\u003e_interface``. A migration will be needed each time"},{"line_number":185,"context_line":"  we add a new interface (which hopefully won\u0027t happen too often)."},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"  For *dynamic drivers* the ``None`` value will mean using the *vendor*"},{"line_number":188,"context_line":"  default defined in the *hardware type*. If the *vendor* default is ``None``,"},{"line_number":189,"context_line":"  the interface will be disabled."},{"line_number":190,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_1dfbbfc2","line":187,"range":{"start_line":187,"start_character":24,"end_line":187,"end_character":27},"updated":"2016-06-21 15:27:47.000000000","message":"nit: For *dynamic drivers*, setting ``\u003cinterface_name\u003e_interface`` field to ``None`` will mean ...","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0cefad87af9ed0c388205f6e3a61350f3c781ceb","unresolved":false,"context_lines":[{"line_number":184,"context_line":"  ``\u003cinterface_name\u003e_interface``. A migration will be needed each time"},{"line_number":185,"context_line":"  we add a new interface (which hopefully won\u0027t happen too often)."},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"  For *dynamic drivers* the ``None`` value will mean using the *vendor*"},{"line_number":188,"context_line":"  default defined in the *hardware type*. If the *vendor* default is ``None``,"},{"line_number":189,"context_line":"  the interface will be disabled."},{"line_number":190,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_cc834b03","line":187,"updated":"2016-06-21 14:52:52.000000000","message":"s/dynamic drivers/hardware types/","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":184,"context_line":"  ``\u003cinterface_name\u003e_interface``. A migration will be needed each time"},{"line_number":185,"context_line":"  we add a new interface (which hopefully won\u0027t happen too often)."},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"  For *dynamic drivers* the ``None`` value will mean using the *vendor*"},{"line_number":188,"context_line":"  default defined in the *hardware type*. If the *vendor* default is ``None``,"},{"line_number":189,"context_line":"  the interface will be disabled."},{"line_number":190,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_b1b924ec","line":187,"range":{"start_line":187,"start_character":24,"end_line":187,"end_character":27},"in_reply_to":"5a9d85d2_1dfbbfc2","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":191,"context_line":"  Trying to set any of these fields to a value other than ``None`` will result"},{"line_number":192,"context_line":"  in an error if the ``driver`` field is set to a *classic driver*. Similarly,"},{"line_number":193,"context_line":"  all these fields are reset to ``None`` if the ``driver`` field is set to"},{"line_number":194,"context_line":"  a *classic driver* or if a pre-reform API version is used."},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"  .. note::"},{"line_number":197,"context_line":"      The latter is because a user of an old API will not be able to see or"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_c1d25034","line":194,"updated":"2016-06-21 18:08:53.000000000","message":"\"or if a pre-reform API version is used\"\n\nI do not think that we should do that. If the user specified some non-default interfaces and then, on the next request, changes the driver_name but happens to forgets to pass --api-revision\u003dX, we shouldn\u0027t implicitly NULL out those fields.\n\nWe should error if they are unsupported by the new driver.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"eb1813df1a2a6dc248125dac42c0e6c9372927f4","unresolved":false,"context_lines":[{"line_number":191,"context_line":"  Trying to set any of these fields to a value other than ``None`` will result"},{"line_number":192,"context_line":"  in an error if the ``driver`` field is set to a *classic driver*. Similarly,"},{"line_number":193,"context_line":"  all these fields are reset to ``None`` if the ``driver`` field is set to"},{"line_number":194,"context_line":"  a *classic driver* or if a pre-reform API version is used."},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"  .. note::"},{"line_number":197,"context_line":"      The latter is because a user of an old API will not be able to see or"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_6807d51c","line":194,"in_reply_to":"3aaa91ec_53dd936f","updated":"2016-06-22 11:25:22.000000000","message":"Well, old API wouldn\u0027t be able to change its driver *if* the new hardware type is incompatible with the interfaces already set.\n\nI\u0027m conflicted, that is a good point about forgetting --api-version. And it does make sense to not clear the interfaces as well. I guess I\u0027m good with either way, as long as it\u0027s well-documented.\n\n/me adds a tally to his \"CLI should use latest API\" board.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":191,"context_line":"  Trying to set any of these fields to a value other than ``None`` will result"},{"line_number":192,"context_line":"  in an error if the ``driver`` field is set to a *classic driver*. Similarly,"},{"line_number":193,"context_line":"  all these fields are reset to ``None`` if the ``driver`` field is set to"},{"line_number":194,"context_line":"  a *classic driver* or if a pre-reform API version is used."},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"  .. note::"},{"line_number":197,"context_line":"      The latter is because a user of an old API will not be able to see or"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_311ed4ba","line":194,"in_reply_to":"3aaa91ec_6807d51c","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8a9d4f8e3563584f5d54f727690c78b51a4753e8","unresolved":false,"context_lines":[{"line_number":191,"context_line":"  Trying to set any of these fields to a value other than ``None`` will result"},{"line_number":192,"context_line":"  in an error if the ``driver`` field is set to a *classic driver*. Similarly,"},{"line_number":193,"context_line":"  all these fields are reset to ``None`` if the ``driver`` field is set to"},{"line_number":194,"context_line":"  a *classic driver* or if a pre-reform API version is used."},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"  .. note::"},{"line_number":197,"context_line":"      The latter is because a user of an old API will not be able to see or"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_53dd936f","line":194,"in_reply_to":"3aaa91ec_c1d25034","updated":"2016-06-21 18:23:13.000000000","message":"\u003e We should error if they are unsupported by the new driver.\n\nDoes it mean that if an interface is set on a node, old API won\u0027t be able to change it\u0027s driver? I\u0027m not sure I like it, though I do agree with your concerns.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"b33a6ab2111988eff4412da3feeca6ed826451aa","unresolved":false,"context_lines":[{"line_number":224,"context_line":"    object as long as the end result is consistent."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"  The validation will be conducted on the API service side by checking the new"},{"line_number":227,"context_line":"  ``conductor_hardware_interfaces`` database table."},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":230,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_3691aaf1","line":227,"updated":"2016-06-22 11:40:42.000000000","message":"I think we are going to need node validate logic to catch cases when a particular combination becomes invalid without a node update, e.g. because an operator has changed the underlying configuration or a vendor has decided they don\u0027t support X interface anymore. \n\nOn IRC we discussed having both checks in place, a check on node-update so that a user can\u0027t update a node to an invalid state, and catching any other invalid interfaces via node validate.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":260,"context_line":"We are **not** planning to deprecate and remove the support for *classic"},{"line_number":261,"context_line":"drivers* in the V1 API."},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"We are planning to deprecate and remove the *classic drivers* which exist"},{"line_number":264,"context_line":"in-tree. Each driver will be deprecated as soon as its full-featured analog is"},{"line_number":265,"context_line":"created as a *hardware type*. The ironic team will work with the vendors to"},{"line_number":266,"context_line":"help them with the transition, including eventual switch of the CI."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_a1d74422","line":263,"updated":"2016-06-21 18:08:53.000000000","message":"What is the deprecation cycle going to be? I think it should be longer than our config option deprecation window, given how disruptive this will be to everyone downstream.\n\nHow are we going to message this to users during the deprecation period? Warnings in logs is not great, since this is all generated from API traffic at run time, not CONF settings at startup. Can we signal it in API responses?","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8a9d4f8e3563584f5d54f727690c78b51a4753e8","unresolved":false,"context_lines":[{"line_number":260,"context_line":"We are **not** planning to deprecate and remove the support for *classic"},{"line_number":261,"context_line":"drivers* in the V1 API."},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"We are planning to deprecate and remove the *classic drivers* which exist"},{"line_number":264,"context_line":"in-tree. Each driver will be deprecated as soon as its full-featured analog is"},{"line_number":265,"context_line":"created as a *hardware type*. The ironic team will work with the vendors to"},{"line_number":266,"context_line":"help them with the transition, including eventual switch of the CI."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_c15ff073","line":263,"in_reply_to":"3aaa91ec_a1d74422","updated":"2016-06-21 18:23:13.000000000","message":"\u003e  I think it should be longer than our config option deprecation window\n\n+1\n\n\u003e How are we going to message this to users during the deprecation period? \n\nWe have a warnings spec (linked below), we can use it.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"eb1813df1a2a6dc248125dac42c0e6c9372927f4","unresolved":false,"context_lines":[{"line_number":260,"context_line":"We are **not** planning to deprecate and remove the support for *classic"},{"line_number":261,"context_line":"drivers* in the V1 API."},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"We are planning to deprecate and remove the *classic drivers* which exist"},{"line_number":264,"context_line":"in-tree. Each driver will be deprecated as soon as its full-featured analog is"},{"line_number":265,"context_line":"created as a *hardware type*. The ironic team will work with the vendors to"},{"line_number":266,"context_line":"help them with the transition, including eventual switch of the CI."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_cb2523ac","line":263,"in_reply_to":"3aaa91ec_c15ff073","updated":"2016-06-22 11:25:22.000000000","message":"Maybe we should write down the deprecation details in here. I\u0027d vote for two cycles, I think.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":260,"context_line":"We are **not** planning to deprecate and remove the support for *classic"},{"line_number":261,"context_line":"drivers* in the V1 API."},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"We are planning to deprecate and remove the *classic drivers* which exist"},{"line_number":264,"context_line":"in-tree. Each driver will be deprecated as soon as its full-featured analog is"},{"line_number":265,"context_line":"created as a *hardware type*. The ironic team will work with the vendors to"},{"line_number":266,"context_line":"help them with the transition, including eventual switch of the CI."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_7165fc43","line":263,"in_reply_to":"3aaa91ec_cb2523ac","updated":"2016-06-22 12:11:21.000000000","message":"I\u0027ll put up a separate spec for deprecating classic drivers as suggested below.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0cefad87af9ed0c388205f6e3a61350f3c781ceb","unresolved":false,"context_lines":[{"line_number":262,"context_line":""},{"line_number":263,"context_line":"We are planning to deprecate and remove the *classic drivers* which exist"},{"line_number":264,"context_line":"in-tree. Each driver will be deprecated as soon as its full-featured analog is"},{"line_number":265,"context_line":"created as a *hardware type*. The ironic team will work with the vendors to"},{"line_number":266,"context_line":"help them with the transition, including eventual switch of the CI."},{"line_number":267,"context_line":""},{"line_number":268,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_ef1c3915","line":265,"updated":"2016-06-21 14:52:52.000000000","message":"We will? :)","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8a9d4f8e3563584f5d54f727690c78b51a4753e8","unresolved":false,"context_lines":[{"line_number":262,"context_line":""},{"line_number":263,"context_line":"We are planning to deprecate and remove the *classic drivers* which exist"},{"line_number":264,"context_line":"in-tree. Each driver will be deprecated as soon as its full-featured analog is"},{"line_number":265,"context_line":"created as a *hardware type*. The ironic team will work with the vendors to"},{"line_number":266,"context_line":"help them with the transition, including eventual switch of the CI."},{"line_number":267,"context_line":""},{"line_number":268,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_614b9cb1","line":265,"in_reply_to":"5a9d85d2_ef1c3915","updated":"2016-06-21 18:23:13.000000000","message":"Some of us at least ;)","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0cefad87af9ed0c388205f6e3a61350f3c781ceb","unresolved":false,"context_lines":[{"line_number":279,"context_line":"  We could then create a new API version, preventing updating ``driver`` via"},{"line_number":280,"context_line":"  the regular node update API, but that would be a breaking change."},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"* We could create a new field ``hardware_type``. This was a part of the"},{"line_number":283,"context_line":"  proposal previously, but we found that it complicates things substantially"},{"line_number":284,"context_line":"  without clear benefits."},{"line_number":285,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_efe39903","line":282,"updated":"2016-06-21 14:52:52.000000000","message":"instead of having the existing node.drivers accept a hardware type.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":279,"context_line":"  We could then create a new API version, preventing updating ``driver`` via"},{"line_number":280,"context_line":"  the regular node update API, but that would be a breaking change."},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"* We could create a new field ``hardware_type``. This was a part of the"},{"line_number":283,"context_line":"  proposal previously, but we found that it complicates things substantially"},{"line_number":284,"context_line":"  without clear benefits."},{"line_number":285,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_b1d644c3","line":282,"in_reply_to":"5a9d85d2_efe39903","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0cefad87af9ed0c388205f6e3a61350f3c781ceb","unresolved":false,"context_lines":[{"line_number":283,"context_line":"  proposal previously, but we found that it complicates things substantially"},{"line_number":284,"context_line":"  without clear benefits."},{"line_number":285,"context_line":""},{"line_number":286,"context_line":"* We could create a whole new family of API endpoints instead of reusing"},{"line_number":287,"context_line":"  ``/v1/drivers``, e.g.  ``/v1/hardware-types``. However, it would require us"},{"line_number":288,"context_line":"  to replicate all driver-related functionality nearly intact, for example"},{"line_number":289,"context_line":"  driver vendor passthru. So users would have to somehow figure out which"}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_2fc5a15a","line":286,"updated":"2016-06-21 14:52:52.000000000","message":"I\u0027m not sure we need this point, since we don\u0027t have a \u0027hardware_type\u0027 field but I suppose it is fine to leave it in.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":311,"context_line":""},{"line_number":312,"context_line":"  .. note::"},{"line_number":313,"context_line":"     This table is only used for links from the next table. No actions are"},{"line_number":314,"context_line":"     taken based on its contents, so it\u0027s safe to not clean it up."},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"* Create a new internal table ``conductor_hardware_interfaces``:"},{"line_number":317,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_01dd7842","line":314,"updated":"2016-06-21 18:08:53.000000000","message":"We must be able to clean up / purge records from this table, or version the records in it.\n\nWhat happens when a hardware_type\u0027s list of supported interfaces changes? Additions could be handled by this db structure, but not removals.\n\nIs it going to be possible for different versions (eg, across release boundaries) of a given hardware_interface to be substantially different? -- I think so. Do we need to track that in some way? Possibly.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"eaf2c0a5ce50a3ba01de02279a433efc31c76523","unresolved":false,"context_lines":[{"line_number":311,"context_line":""},{"line_number":312,"context_line":"  .. note::"},{"line_number":313,"context_line":"     This table is only used for links from the next table. No actions are"},{"line_number":314,"context_line":"     taken based on its contents, so it\u0027s safe to not clean it up."},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"* Create a new internal table ``conductor_hardware_interfaces``:"},{"line_number":317,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_892c9503","line":314,"range":{"start_line":314,"start_character":34,"end_line":314,"end_character":65},"updated":"2016-06-21 14:05:19.000000000","message":"is it safe to clean up?","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8a9d4f8e3563584f5d54f727690c78b51a4753e8","unresolved":false,"context_lines":[{"line_number":311,"context_line":""},{"line_number":312,"context_line":"  .. note::"},{"line_number":313,"context_line":"     This table is only used for links from the next table. No actions are"},{"line_number":314,"context_line":"     taken based on its contents, so it\u0027s safe to not clean it up."},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"* Create a new internal table ``conductor_hardware_interfaces``:"},{"line_number":317,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_416dc031","line":314,"in_reply_to":"3aaa91ec_01dd7842","updated":"2016-06-21 18:23:13.000000000","message":"\u003e We must be able to clean up / purge records from this table\n\nThat was my objection to having such intermediate tables at all (remember the tags patch?). Cleaning them is racy with adding information to them. I would prefer to not have this table at all and just build everything into \"conductor_hardware_interfaces\", but I remember you objecting to similar things with tags due to performance issues. Do you think it\u0027s fine this time?","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"eb1813df1a2a6dc248125dac42c0e6c9372927f4","unresolved":false,"context_lines":[{"line_number":311,"context_line":""},{"line_number":312,"context_line":"  .. note::"},{"line_number":313,"context_line":"     This table is only used for links from the next table. No actions are"},{"line_number":314,"context_line":"     taken based on its contents, so it\u0027s safe to not clean it up."},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"* Create a new internal table ``conductor_hardware_interfaces``:"},{"line_number":317,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_ab825750","line":314,"in_reply_to":"3aaa91ec_416dc031","updated":"2016-06-22 11:25:22.000000000","message":"+1 for single table, IMO, though I think not cleaning this up is fine (as seen on previous patch set comments)","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"f9861c1c81c1559390d5440a9b55d2a3853a9c6a","unresolved":false,"context_lines":[{"line_number":311,"context_line":""},{"line_number":312,"context_line":"  .. note::"},{"line_number":313,"context_line":"     This table is only used for links from the next table. No actions are"},{"line_number":314,"context_line":"     taken based on its contents, so it\u0027s safe to not clean it up."},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"* Create a new internal table ``conductor_hardware_interfaces``:"},{"line_number":317,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_0c98b3bf","line":314,"range":{"start_line":314,"start_character":34,"end_line":314,"end_character":65},"in_reply_to":"5a9d85d2_892c9503","updated":"2016-06-21 14:07:19.000000000","message":"Depending on how you implement it. Such clean ups are racing with additions, so it might require quite some code. The last time we\u0027ve discussed a similar case (for tags iirc) the consensus was to just leave it alone. We have a pretty limited number of hw types and interfaces, and it won\u0027t change too much with time.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":321,"context_line":"  ``hardware_interfaces`` table defined above)."},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"  This table will get populated on conductor start up and purged on deleting"},{"line_number":324,"context_line":"  the conductor record. The goal is for conductors to issue a warning when"},{"line_number":325,"context_line":"  they see other conductors enabling a different set of interfaces for the"},{"line_number":326,"context_line":"  same *hardware type*. The enabled *hardware types* themselves do not have to"},{"line_number":327,"context_line":"  match (just like today different conductors can have different sets of"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_e1e14c00","line":324,"updated":"2016-06-21 18:08:53.000000000","message":"instead of saying \"The goal is...\" could you describe how this will be done? Eg,\n\nOn conductor startup, during init_host(), the conductor will fetch the list of hardware_interfaces supported by all registered conductors and compare to its own configuration. If the same hardware_type is enabled on two conductors with a different set of enabled_interfaces, this will result in a WARNING log message. The enabled *hardware types* themselves do not have to match (just like today, different conductors can have different set of drivers).\n\nAlso, fwiw, I think this should result in an ERROR and the conductor should refuse to start.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"eb1813df1a2a6dc248125dac42c0e6c9372927f4","unresolved":false,"context_lines":[{"line_number":321,"context_line":"  ``hardware_interfaces`` table defined above)."},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"  This table will get populated on conductor start up and purged on deleting"},{"line_number":324,"context_line":"  the conductor record. The goal is for conductors to issue a warning when"},{"line_number":325,"context_line":"  they see other conductors enabling a different set of interfaces for the"},{"line_number":326,"context_line":"  same *hardware type*. The enabled *hardware types* themselves do not have to"},{"line_number":327,"context_line":"  match (just like today different conductors can have different sets of"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_8bee7b20","line":324,"in_reply_to":"3aaa91ec_1db6748a","updated":"2016-06-22 11:25:22.000000000","message":"Indeed, and I think that comment exists elsewhere actually.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"346ef4040f994be514245309da6488923dfe1779","unresolved":false,"context_lines":[{"line_number":321,"context_line":"  ``hardware_interfaces`` table defined above)."},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"  This table will get populated on conductor start up and purged on deleting"},{"line_number":324,"context_line":"  the conductor record. The goal is for conductors to issue a warning when"},{"line_number":325,"context_line":"  they see other conductors enabling a different set of interfaces for the"},{"line_number":326,"context_line":"  same *hardware type*. The enabled *hardware types* themselves do not have to"},{"line_number":327,"context_line":"  match (just like today different conductors can have different sets of"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_1db6748a","line":324,"in_reply_to":"3aaa91ec_6146fcc0","updated":"2016-06-21 20:35:14.000000000","message":"It is probably worth adding a comment as to why WARN instead of ERROR. I think it really is due to rolling upgrades (or at least, the only scenario that came up)?","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":321,"context_line":"  ``hardware_interfaces`` table defined above)."},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"  This table will get populated on conductor start up and purged on deleting"},{"line_number":324,"context_line":"  the conductor record. The goal is for conductors to issue a warning when"},{"line_number":325,"context_line":"  they see other conductors enabling a different set of interfaces for the"},{"line_number":326,"context_line":"  same *hardware type*. The enabled *hardware types* themselves do not have to"},{"line_number":327,"context_line":"  match (just like today different conductors can have different sets of"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_d144b075","line":324,"in_reply_to":"3aaa91ec_8bee7b20","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8a9d4f8e3563584f5d54f727690c78b51a4753e8","unresolved":false,"context_lines":[{"line_number":321,"context_line":"  ``hardware_interfaces`` table defined above)."},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"  This table will get populated on conductor start up and purged on deleting"},{"line_number":324,"context_line":"  the conductor record. The goal is for conductors to issue a warning when"},{"line_number":325,"context_line":"  they see other conductors enabling a different set of interfaces for the"},{"line_number":326,"context_line":"  same *hardware type*. The enabled *hardware types* themselves do not have to"},{"line_number":327,"context_line":"  match (just like today different conductors can have different sets of"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_6146fcc0","line":324,"in_reply_to":"3aaa91ec_e1e14c00","updated":"2016-06-21 18:23:13.000000000","message":"\u003e  I think this should result in an ERROR and the conductor should refuse to start.\n\nThat will require to bring your whole cluster down every time you change this list. I think we already discussed it and decided that issuing a warning is the least evil..","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":335,"context_line":"REST API impact"},{"line_number":336,"context_line":"---------------"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"* Update ``GET /v1/drivers``:"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"  New URL parameters:"},{"line_number":341,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_41e78012","line":338,"updated":"2016-06-21 18:08:53.000000000","message":"Suggestion: instead of a query parameter that toggles what to return, have this return ALL the drivers, and add a new response field to the JSON that indicates whether a driver is classic or dynamic.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8a9d4f8e3563584f5d54f727690c78b51a4753e8","unresolved":false,"context_lines":[{"line_number":335,"context_line":"REST API impact"},{"line_number":336,"context_line":"---------------"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"* Update ``GET /v1/drivers``:"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"  New URL parameters:"},{"line_number":341,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_21f51483","line":338,"in_reply_to":"3aaa91ec_41e78012","updated":"2016-06-21 18:23:13.000000000","message":"I propose this, but I also propose an ability to limit results based on the \"type\" (as you call it below)","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":347,"context_line":""},{"line_number":348,"context_line":"  New response field:"},{"line_number":349,"context_line":""},{"line_number":350,"context_line":"  ``dynamic``"},{"line_number":351,"context_line":"    whether the driver is *dynamic* or *classic*."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"  This change is guarded by a new API version, **except** for listing"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_21e4f40b","line":350,"updated":"2016-06-21 18:08:53.000000000","message":"suggestion: the response field should be called \"type\" with a value of \"classic\" or \"dynamic\".","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8a9d4f8e3563584f5d54f727690c78b51a4753e8","unresolved":false,"context_lines":[{"line_number":347,"context_line":""},{"line_number":348,"context_line":"  New response field:"},{"line_number":349,"context_line":""},{"line_number":350,"context_line":"  ``dynamic``"},{"line_number":351,"context_line":"    whether the driver is *dynamic* or *classic*."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"  This change is guarded by a new API version, **except** for listing"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_81e5e8a9","line":350,"in_reply_to":"3aaa91ec_21e4f40b","updated":"2016-06-21 18:23:13.000000000","message":"Good idea","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":347,"context_line":""},{"line_number":348,"context_line":"  New response field:"},{"line_number":349,"context_line":""},{"line_number":350,"context_line":"  ``dynamic``"},{"line_number":351,"context_line":"    whether the driver is *dynamic* or *classic*."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"  This change is guarded by a new API version, **except** for listing"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_7c795393","line":350,"in_reply_to":"3aaa91ec_81e5e8a9","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":350,"context_line":"  ``dynamic``"},{"line_number":351,"context_line":"    whether the driver is *dynamic* or *classic*."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"  This change is guarded by a new API version, **except** for listing"},{"line_number":354,"context_line":"  *hardware types*. They are always listed for reasons stated in the `Database"},{"line_number":355,"context_line":"  and Rest API`_ section."},{"line_number":356,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_81f168d0","line":353,"updated":"2016-06-21 18:08:53.000000000","message":"Please clarify. This sounds like you\u0027re saying even requesting an old API version is going to return new fields or new data.... which I hope is not what you mean.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8a9d4f8e3563584f5d54f727690c78b51a4753e8","unresolved":false,"context_lines":[{"line_number":350,"context_line":"  ``dynamic``"},{"line_number":351,"context_line":"    whether the driver is *dynamic* or *classic*."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"  This change is guarded by a new API version, **except** for listing"},{"line_number":354,"context_line":"  *hardware types*. They are always listed for reasons stated in the `Database"},{"line_number":355,"context_line":"  and Rest API`_ section."},{"line_number":356,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_c1dc101b","line":353,"in_reply_to":"3aaa91ec_81f168d0","updated":"2016-06-21 18:23:13.000000000","message":"I only mean we return all types of drivers.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":358,"context_line":""},{"line_number":359,"context_line":"  New response field:"},{"line_number":360,"context_line":""},{"line_number":361,"context_line":"  ``dynamic``"},{"line_number":362,"context_line":"    whether the driver is *dynamic* or *classic*."},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"  New response fields that are not ``None`` only for *hardware types*:"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_61eefced","line":361,"updated":"2016-06-21 18:08:53.000000000","message":"ditto, we should call this \"type\"","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":391,"context_line":""},{"line_number":392,"context_line":"  The same change is applied to the OSC plugin."},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"* Extend the output of the ``driver-list`` command with the ``Dynamic`` column."},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"* Extend the ``driver-list`` command with ``--no-classic`` and ``--no-dynamic``"},{"line_number":397,"context_line":"  flags disabling returning *classic* and *dynamic* drivers respectively."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_c1b9b0ee","line":394,"updated":"2016-06-21 18:08:53.000000000","message":"ditto, s/Dynamic/Type/","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":391,"context_line":""},{"line_number":392,"context_line":"  The same change is applied to the OSC plugin."},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"* Extend the output of the ``driver-list`` command with the ``Dynamic`` column."},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"* Extend the ``driver-list`` command with ``--no-classic`` and ``--no-dynamic``"},{"line_number":397,"context_line":"  flags disabling returning *classic* and *dynamic* drivers respectively."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_fcda6377","line":394,"in_reply_to":"3aaa91ec_c1b9b0ee","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0cefad87af9ed0c388205f6e3a61350f3c781ceb","unresolved":false,"context_lines":[{"line_number":394,"context_line":"* Extend the output of the ``driver-list`` command with the ``Dynamic`` column."},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"* Extend the ``driver-list`` command with ``--no-classic`` and ``--no-dynamic``"},{"line_number":397,"context_line":"  flags disabling returning *classic* and *dynamic* drivers respectively."},{"line_number":398,"context_line":""},{"line_number":399,"context_line":"* Extend the output of the ``driver-show`` command with the newly introduced"},{"line_number":400,"context_line":"  fields."}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_7299521f","line":397,"updated":"2016-06-21 14:52:52.000000000","message":"I\u0027m not convinced we should have --no-X options, it seems to me that to be consistent with our REST API, they should be --classic and --dynamic, defaulting to 1. But I will have to think about it. Maybe --classic-only, --dynamic-only. [but I don\u0027t want this to hold up the spec; we can change later if we think of something better.]","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":394,"context_line":"* Extend the output of the ``driver-list`` command with the ``Dynamic`` column."},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"* Extend the ``driver-list`` command with ``--no-classic`` and ``--no-dynamic``"},{"line_number":397,"context_line":"  flags disabling returning *classic* and *dynamic* drivers respectively."},{"line_number":398,"context_line":""},{"line_number":399,"context_line":"* Extend the output of the ``driver-show`` command with the newly introduced"},{"line_number":400,"context_line":"  fields."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_a1be24d2","line":397,"updated":"2016-06-21 18:08:53.000000000","message":"Standard approach in most CLIs is to use -no as a toggle, not -only. I suggest having both --classic / --dynamic and --no-classic / --no-dynamic.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"691ed2473b99ab4e148765fc0605a803090855e4","unresolved":false,"context_lines":[{"line_number":394,"context_line":"* Extend the output of the ``driver-list`` command with the ``Dynamic`` column."},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"* Extend the ``driver-list`` command with ``--no-classic`` and ``--no-dynamic``"},{"line_number":397,"context_line":"  flags disabling returning *classic* and *dynamic* drivers respectively."},{"line_number":398,"context_line":""},{"line_number":399,"context_line":"* Extend the output of the ``driver-show`` command with the newly introduced"},{"line_number":400,"context_line":"  fields."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_7e684fbb","line":397,"in_reply_to":"3aaa91ec_418940ca","updated":"2016-06-21 20:36:32.000000000","message":"+1 for \u0027type\u0027","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":394,"context_line":"* Extend the output of the ``driver-list`` command with the ``Dynamic`` column."},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"* Extend the ``driver-list`` command with ``--no-classic`` and ``--no-dynamic``"},{"line_number":397,"context_line":"  flags disabling returning *classic* and *dynamic* drivers respectively."},{"line_number":398,"context_line":""},{"line_number":399,"context_line":"* Extend the output of the ``driver-show`` command with the newly introduced"},{"line_number":400,"context_line":"  fields."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_5cbf37fb","line":397,"in_reply_to":"3aaa91ec_7e684fbb","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8a9d4f8e3563584f5d54f727690c78b51a4753e8","unresolved":false,"context_lines":[{"line_number":394,"context_line":"* Extend the output of the ``driver-list`` command with the ``Dynamic`` column."},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"* Extend the ``driver-list`` command with ``--no-classic`` and ``--no-dynamic``"},{"line_number":397,"context_line":"  flags disabling returning *classic* and *dynamic* drivers respectively."},{"line_number":398,"context_line":""},{"line_number":399,"context_line":"* Extend the output of the ``driver-show`` command with the newly introduced"},{"line_number":400,"context_line":"  fields."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_418940ca","line":397,"in_reply_to":"3aaa91ec_a1be24d2","updated":"2016-06-21 18:23:13.000000000","message":"the default is --classic --dynamic, how do you expect it to be used?\n\nanyway, if we change the response field to \"type\", we can just use --type\u003dstatic/dynamic here and return all if type is not set.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0cefad87af9ed0c388205f6e3a61350f3c781ceb","unresolved":false,"context_lines":[{"line_number":484,"context_line":"    class iLOGen9Hardware(iLOGen8Hardware):"},{"line_number":485,"context_line":"        supported_power_interfaces \u003d ("},{"line_number":486,"context_line":"            iLOGen8Hardware.supported_power_interfaces"},{"line_number":487,"context_line":"            + [RedfishPower]"},{"line_number":488,"context_line":"        )"},{"line_number":489,"context_line":""},{"line_number":490,"context_line":".. note::"}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_bd726bab","line":487,"updated":"2016-06-21 14:52:52.000000000","message":"My concern (unless I missed it), is how does the operator know what the supported interfaces are, in order to know what the possible values are for the enable_x_interface configuration options.\n\nOr maybe it doesn\u0027t matter. I\u0027m sure we\u0027ll find out later.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":484,"context_line":"    class iLOGen9Hardware(iLOGen8Hardware):"},{"line_number":485,"context_line":"        supported_power_interfaces \u003d ("},{"line_number":486,"context_line":"            iLOGen8Hardware.supported_power_interfaces"},{"line_number":487,"context_line":"            + [RedfishPower]"},{"line_number":488,"context_line":"        )"},{"line_number":489,"context_line":""},{"line_number":490,"context_line":".. note::"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_01b458f0","line":487,"updated":"2016-06-21 18:08:53.000000000","message":"Operator knows by making REST API call to GET /v1/drivers/NAME/ -- this will now return the enabled_\u003cinterface_type\u003e_interfaces lists. See above.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"346ef4040f994be514245309da6488923dfe1779","unresolved":false,"context_lines":[{"line_number":484,"context_line":"    class iLOGen9Hardware(iLOGen8Hardware):"},{"line_number":485,"context_line":"        supported_power_interfaces \u003d ("},{"line_number":486,"context_line":"            iLOGen8Hardware.supported_power_interfaces"},{"line_number":487,"context_line":"            + [RedfishPower]"},{"line_number":488,"context_line":"        )"},{"line_number":489,"context_line":""},{"line_number":490,"context_line":".. note::"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_18e8427c","line":487,"in_reply_to":"3aaa91ec_01b458f0","updated":"2016-06-21 20:35:14.000000000","message":"Right, you can get the default and enabled interfaces. not the supported. Eg, this class supports the Redfish, ilopower, ipmitoolpower and ipminativepower Power interfaces. Someone could set the enabled_power_interfaces config option to be: ipmitoolpower, foopower.\n\nThen GET /v1/drivers/ilo-gen9 would return for enabled_power_interfaces: ipmitoolpower.\n\nThere\u0027s no way, w/o looking at the code (or not setting any enabled_x_interfaces config options) to know what the supported interfaces are.\n\nIf you eg wanted to know the supported drivers, you could look in setup.cfg (which is probably not great). To know the supported interfaces, you have to look at code.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":484,"context_line":"    class iLOGen9Hardware(iLOGen8Hardware):"},{"line_number":485,"context_line":"        supported_power_interfaces \u003d ("},{"line_number":486,"context_line":"            iLOGen8Hardware.supported_power_interfaces"},{"line_number":487,"context_line":"            + [RedfishPower]"},{"line_number":488,"context_line":"        )"},{"line_number":489,"context_line":""},{"line_number":490,"context_line":".. note::"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_dc5847fd","line":487,"in_reply_to":"3aaa91ec_0be56b08","updated":"2016-06-22 12:11:21.000000000","message":"The situation is the same with drivers now, so I\u0027d prefer to live it as it is for now.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"eb1813df1a2a6dc248125dac42c0e6c9372927f4","unresolved":false,"context_lines":[{"line_number":484,"context_line":"    class iLOGen9Hardware(iLOGen8Hardware):"},{"line_number":485,"context_line":"        supported_power_interfaces \u003d ("},{"line_number":486,"context_line":"            iLOGen8Hardware.supported_power_interfaces"},{"line_number":487,"context_line":"            + [RedfishPower]"},{"line_number":488,"context_line":"        )"},{"line_number":489,"context_line":""},{"line_number":490,"context_line":".. note::"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_0be56b08","line":487,"in_reply_to":"3aaa91ec_18e8427c","updated":"2016-06-22 11:25:22.000000000","message":"That\u0027s a very good point, but I\u0027m not sure how we can solve it.\n\nMaybe we can build it into the config generator (and the operator can run it themselves if they are using out of tree drivers).\n\nOr maybe we just add it to docs (this is the current solution for enabled_drivers, which has the same problem).\n\nWe should also generate docs that describe each hardware type and what interfaces they support.\n\nFWIW, if one wanted to know *all* supported interfaces, those are indeed in setup.cfg as described below.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ed20c214c39f595bccbeb95425b691f41bfc90a","unresolved":false,"context_lines":[{"line_number":484,"context_line":"    class iLOGen9Hardware(iLOGen8Hardware):"},{"line_number":485,"context_line":"        supported_power_interfaces \u003d ("},{"line_number":486,"context_line":"            iLOGen8Hardware.supported_power_interfaces"},{"line_number":487,"context_line":"            + [RedfishPower]"},{"line_number":488,"context_line":"        )"},{"line_number":489,"context_line":""},{"line_number":490,"context_line":".. note::"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_eef902ca","line":487,"in_reply_to":"3aaa91ec_dc5847fd","updated":"2016-06-22 14:28:43.000000000","message":"We can leave this for now, but the situation isn\u0027t quite the same as with drivers. I think it is easier to say look at setup.cfg, but it is harder to find the file(s) that will have these classes, and to follow the chain to get the actual list of supported interfaces. I think some sort of script like Jim suggests would work if we are OK with just documenting it. The script could generate the info that would get added to our large install guide or some other page...","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"361801810d848cbfc27127b6b6e05887ea57a215","unresolved":false,"context_lines":[{"line_number":524,"context_line":"* At start up time the conductor instantiates all enabled hardware types,"},{"line_number":525,"context_line":"  as well as all enabled interface implementations for enabled hardware types."},{"line_number":526,"context_line":""},{"line_number":527,"context_line":"* Each time the node is created or loaded for the database, a thin BareDriver_"},{"line_number":528,"context_line":"  object is created with all interfaces set on it. This is similar to how"},{"line_number":529,"context_line":"  network drivers already work. It gets assigned to ``task.driver``, and after"},{"line_number":530,"context_line":"  that everything works as before this spec."}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_03935ea4","line":527,"range":{"start_line":527,"start_character":42,"end_line":527,"end_character":45},"updated":"2016-06-21 15:27:47.000000000","message":"nit: from","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":524,"context_line":"* At start up time the conductor instantiates all enabled hardware types,"},{"line_number":525,"context_line":"  as well as all enabled interface implementations for enabled hardware types."},{"line_number":526,"context_line":""},{"line_number":527,"context_line":"* Each time the node is created or loaded for the database, a thin BareDriver_"},{"line_number":528,"context_line":"  object is created with all interfaces set on it. This is similar to how"},{"line_number":529,"context_line":"  network drivers already work. It gets assigned to ``task.driver``, and after"},{"line_number":530,"context_line":"  that everything works as before this spec."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_9cba3fe0","line":527,"range":{"start_line":527,"start_character":42,"end_line":527,"end_character":45},"in_reply_to":"5a9d85d2_03935ea4","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":548,"context_line":"---------------------"},{"line_number":549,"context_line":""},{"line_number":550,"context_line":"* Deprecate creating nodes with a *classic driver*. We don\u0027t have any way to"},{"line_number":551,"context_line":"  notify a user of such deprecation, except for release notes."},{"line_number":552,"context_line":""},{"line_number":553,"context_line":"  The `driver configuration warnings spec"},{"line_number":554,"context_line":"  \u003chttps://review.openstack.org/#/c/279070/\u003e`_ may help eventually."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_e1b82ce8","line":551,"updated":"2016-06-21 18:08:53.000000000","message":"That\u0027s not acceptable, in my opinion. We need to agree on a way to notify operators as part of this deprecation plan.\n\nOne approach would be, in the result of \"GET /v1/drivers\" we could begin including deprecation warnings about drivers that become obsolete for at least one full cycle. This will, at a minimum, expose the information to users.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":548,"context_line":"---------------------"},{"line_number":549,"context_line":""},{"line_number":550,"context_line":"* Deprecate creating nodes with a *classic driver*. We don\u0027t have any way to"},{"line_number":551,"context_line":"  notify a user of such deprecation, except for release notes."},{"line_number":552,"context_line":""},{"line_number":553,"context_line":"  The `driver configuration warnings spec"},{"line_number":554,"context_line":"  \u003chttps://review.openstack.org/#/c/279070/\u003e`_ may help eventually."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_dcb4c7f3","line":551,"in_reply_to":"3aaa91ec_0b93ab5c","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"eb1813df1a2a6dc248125dac42c0e6c9372927f4","unresolved":false,"context_lines":[{"line_number":548,"context_line":"---------------------"},{"line_number":549,"context_line":""},{"line_number":550,"context_line":"* Deprecate creating nodes with a *classic driver*. We don\u0027t have any way to"},{"line_number":551,"context_line":"  notify a user of such deprecation, except for release notes."},{"line_number":552,"context_line":""},{"line_number":553,"context_line":"  The `driver configuration warnings spec"},{"line_number":554,"context_line":"  \u003chttps://review.openstack.org/#/c/279070/\u003e`_ may help eventually."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_0b93ab5c","line":551,"in_reply_to":"3aaa91ec_9858b258","updated":"2016-06-22 11:25:22.000000000","message":"There\u0027s lots of questions around how we deprecate classic drivers, maybe that could be proposed in a new (smaller) spec.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"a401aaa6605de0bd0abc602e1c47c5bd0c06c5ab","unresolved":false,"context_lines":[{"line_number":548,"context_line":"---------------------"},{"line_number":549,"context_line":""},{"line_number":550,"context_line":"* Deprecate creating nodes with a *classic driver*. We don\u0027t have any way to"},{"line_number":551,"context_line":"  notify a user of such deprecation, except for release notes."},{"line_number":552,"context_line":""},{"line_number":553,"context_line":"  The `driver configuration warnings spec"},{"line_number":554,"context_line":"  \u003chttps://review.openstack.org/#/c/279070/\u003e`_ may help eventually."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_e78e7926","line":551,"in_reply_to":"3aaa91ec_e1482c8a","updated":"2016-06-21 19:33:43.000000000","message":"One could add a Warning header, such as suggested in StackOverflow[1][2]\n\n[1] http://stackoverflow.com/questions/13884141/convention-for-http-response-header-to-notify-clients-of-deprecated-api\n[2] https://tools.ietf.org/html/rfc7234#section-5.5\n\nTL;DR user agent must not take automatic actions if a Warning header with code 299 is encountered","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8a9d4f8e3563584f5d54f727690c78b51a4753e8","unresolved":false,"context_lines":[{"line_number":548,"context_line":"---------------------"},{"line_number":549,"context_line":""},{"line_number":550,"context_line":"* Deprecate creating nodes with a *classic driver*. We don\u0027t have any way to"},{"line_number":551,"context_line":"  notify a user of such deprecation, except for release notes."},{"line_number":552,"context_line":""},{"line_number":553,"context_line":"  The `driver configuration warnings spec"},{"line_number":554,"context_line":"  \u003chttps://review.openstack.org/#/c/279070/\u003e`_ may help eventually."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_e1482c8a","line":551,"in_reply_to":"3aaa91ec_e1b82ce8","updated":"2016-06-21 18:23:13.000000000","message":"hmm, you mean adding a \"deprecated\" field to driver response? that\u0027s interesting, we can use it for other driver deprecations (e.g. if a vendor no longer wants to maintain it).","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"346ef4040f994be514245309da6488923dfe1779","unresolved":false,"context_lines":[{"line_number":548,"context_line":"---------------------"},{"line_number":549,"context_line":""},{"line_number":550,"context_line":"* Deprecate creating nodes with a *classic driver*. We don\u0027t have any way to"},{"line_number":551,"context_line":"  notify a user of such deprecation, except for release notes."},{"line_number":552,"context_line":""},{"line_number":553,"context_line":"  The `driver configuration warnings spec"},{"line_number":554,"context_line":"  \u003chttps://review.openstack.org/#/c/279070/\u003e`_ may help eventually."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_9858b258","line":551,"in_reply_to":"3aaa91ec_e78e7926","updated":"2016-06-21 20:35:14.000000000","message":"If we added a \u0027Description\u0027 field, would that be sufficient to include whatever we want there, info about deprecation and even the type (so we wouldn\u0027t need the new \u0027type\u0027 field)?","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"5f773f14aa1c4aa14703ccb4b3ea2669053ee9a9","unresolved":false,"context_lines":[{"line_number":613,"context_line":""},{"line_number":614,"context_line":"* Create the *hardware types* for hardware supported directly by the team,"},{"line_number":615,"context_line":"  i.e. the generic IPMI-compatible hardware. The SSH driver is pending removal,"},{"line_number":616,"context_line":"  so it won\u0027t get updated."},{"line_number":617,"context_line":""},{"line_number":618,"context_line":"* Work with the vendors to create a plan to switch their drivers and 3rdpart CI"},{"line_number":619,"context_line":"  to providing *hardware types*."}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_21693b26","line":616,"updated":"2016-06-21 13:53:28.000000000","message":"Well, we haven\u0027t finalized this decision (about ssh), but I think this wording is fine for now.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":613,"context_line":""},{"line_number":614,"context_line":"* Create the *hardware types* for hardware supported directly by the team,"},{"line_number":615,"context_line":"  i.e. the generic IPMI-compatible hardware. The SSH driver is pending removal,"},{"line_number":616,"context_line":"  so it won\u0027t get updated."},{"line_number":617,"context_line":""},{"line_number":618,"context_line":"* Work with the vendors to create a plan to switch their drivers and 3rdpart CI"},{"line_number":619,"context_line":"  to providing *hardware types*."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_7c94b336","line":616,"in_reply_to":"3aaa91ec_3310c74e","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8a9d4f8e3563584f5d54f727690c78b51a4753e8","unresolved":false,"context_lines":[{"line_number":613,"context_line":""},{"line_number":614,"context_line":"* Create the *hardware types* for hardware supported directly by the team,"},{"line_number":615,"context_line":"  i.e. the generic IPMI-compatible hardware. The SSH driver is pending removal,"},{"line_number":616,"context_line":"  so it won\u0027t get updated."},{"line_number":617,"context_line":""},{"line_number":618,"context_line":"* Work with the vendors to create a plan to switch their drivers and 3rdpart CI"},{"line_number":619,"context_line":"  to providing *hardware types*."}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_3310c74e","line":616,"in_reply_to":"5a9d85d2_21693b26","updated":"2016-06-21 18:23:13.000000000","message":"I\u0027ll change to \"if\"","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"5f773f14aa1c4aa14703ccb4b3ea2669053ee9a9","unresolved":false,"context_lines":[{"line_number":615,"context_line":"  i.e. the generic IPMI-compatible hardware. The SSH driver is pending removal,"},{"line_number":616,"context_line":"  so it won\u0027t get updated."},{"line_number":617,"context_line":""},{"line_number":618,"context_line":"* Work with the vendors to create a plan to switch their drivers and 3rdpart CI"},{"line_number":619,"context_line":"  to providing *hardware types*."},{"line_number":620,"context_line":""},{"line_number":621,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":19,"id":"5a9d85d2_611ce3c1","line":618,"updated":"2016-06-21 13:53:28.000000000","message":"nit: s/3rdpart/3rd party/","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":615,"context_line":"  i.e. the generic IPMI-compatible hardware. The SSH driver is pending removal,"},{"line_number":616,"context_line":"  so it won\u0027t get updated."},{"line_number":617,"context_line":""},{"line_number":618,"context_line":"* Work with the vendors to create a plan to switch their drivers and 3rdpart CI"},{"line_number":619,"context_line":"  to providing *hardware types*."},{"line_number":620,"context_line":""},{"line_number":621,"context_line":"Dependencies"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_dc996770","line":618,"in_reply_to":"5a9d85d2_611ce3c1","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0ed20c214c39f595bccbeb95425b691f41bfc90a","unresolved":false,"context_lines":[{"line_number":616,"context_line":"  so it won\u0027t get updated."},{"line_number":617,"context_line":""},{"line_number":618,"context_line":"* Work with the vendors to create a plan to switch their drivers and 3rdpart CI"},{"line_number":619,"context_line":"  to providing *hardware types*."},{"line_number":620,"context_line":""},{"line_number":621,"context_line":"Dependencies"},{"line_number":622,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_eecaa24e","line":619,"updated":"2016-06-22 14:28:43.000000000","message":"this was taking out. Is it cuz you are going to mention this in the deprecation-of-classic-drivers rfe? (I think this still belongs here; whether classic gets deprecated or not, we should try to get 3rd party vendors to work with hardware types. in fact, we should only add a hardware type if there is 3rd party CI for it. (Ok, I didn\u0027t really say that.)","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":617,"context_line":""},{"line_number":618,"context_line":"* Work with the vendors to create a plan to switch their drivers and 3rdpart CI"},{"line_number":619,"context_line":"  to providing *hardware types*."},{"line_number":620,"context_line":""},{"line_number":621,"context_line":"Dependencies"},{"line_number":622,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":623,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_41ce6084","line":620,"updated":"2016-06-21 18:08:53.000000000","message":"Grenade testing for upgrades / migration of existing workloads to new drivers.\nWe should be able to deploy an instance with a classic driver, upgrade ironic, drop support for the classic driver, and continue managing that instance (reboot, rebuild, clean, etc) with the corresponding dynamic driver.\n\nWe need to provide (and test) upgrade tooling for operators to handle this for all the in-tree drivers.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8a9d4f8e3563584f5d54f727690c78b51a4753e8","unresolved":false,"context_lines":[{"line_number":617,"context_line":""},{"line_number":618,"context_line":"* Work with the vendors to create a plan to switch their drivers and 3rdpart CI"},{"line_number":619,"context_line":"  to providing *hardware types*."},{"line_number":620,"context_line":""},{"line_number":621,"context_line":"Dependencies"},{"line_number":622,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":623,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_e1166c54","line":620,"in_reply_to":"3aaa91ec_41ce6084","updated":"2016-06-21 18:23:13.000000000","message":"\u003e Grenade testing for upgrades / migration of existing workloads to new drivers.\n\n+1\n\n\u003e We need to provide (and test) upgrade tooling for operators to handle this for all the in-tree drivers.\n\nMaybe..","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"480fd83fd1330466242408f5c3bcac70c6684547","unresolved":false,"context_lines":[{"line_number":617,"context_line":""},{"line_number":618,"context_line":"* Work with the vendors to create a plan to switch their drivers and 3rdpart CI"},{"line_number":619,"context_line":"  to providing *hardware types*."},{"line_number":620,"context_line":""},{"line_number":621,"context_line":"Dependencies"},{"line_number":622,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":623,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_9c799fff","line":620,"in_reply_to":"3aaa91ec_cbbb6371","updated":"2016-06-22 12:11:21.000000000","message":"Done","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"eb1813df1a2a6dc248125dac42c0e6c9372927f4","unresolved":false,"context_lines":[{"line_number":617,"context_line":""},{"line_number":618,"context_line":"* Work with the vendors to create a plan to switch their drivers and 3rdpart CI"},{"line_number":619,"context_line":"  to providing *hardware types*."},{"line_number":620,"context_line":""},{"line_number":621,"context_line":"Dependencies"},{"line_number":622,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":623,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_cbbb6371","line":620,"in_reply_to":"3aaa91ec_e1166c54","updated":"2016-06-22 11:25:22.000000000","message":"Realistically, here\u0027s what an operator needs to do:\n\n    # map drivers in use to what we want to move to\n    driver_map \u003d {\n        \u0027pxe_ipmitool\u0027: {\u0027hardware_type\u0027: \u0027generic-ipmi\u0027, \u0027inspection_interface\u0027: \u0027inspector\u0027},\n        \u0027agent_drac\u0027: {\u0027hardware_type\u0027: \u0027dell\u0027, \u0027power_interface\u0027: \u0027ipmitool\u0027}\n    }\n\n    for node in ironic.node.list():\n        # switch it to a dynamic driver\n        dynamic \u003d driver_map[node.driver]\n        # assume build_jsonpatch builds the json patch to update each field in `dynamic`\n        patch \u003d build_jsonpatch(dynamic)\n        ironic.node.update(node, patch)\n\nWe could build this for them, and they plug in the mapping. Then again, different generations of a hardware type (e.g. ilo-gen8 described above) may throw a wrench here.\n\nI\u0027m not sure we can make a tool that will work for everyone, though. Again, maybe a classic driver deprecation spec is in order. We don\u0027t need the deprecation to be tightly coupled to this work, it only depends on it.","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":631,"context_line":"* Unit test coverage will obviously be provided."},{"line_number":632,"context_line":""},{"line_number":633,"context_line":"* A new gate job will be created, using a dynamic version of the IPMI driver."},{"line_number":634,"context_line":"  We will aim to make it the primary approach in the gate over time."},{"line_number":635,"context_line":""},{"line_number":636,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":637,"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"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_21cb5474","line":634,"updated":"2016-06-21 18:08:53.000000000","message":"see above re: grenade testing","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"b18e9b5381f7f7086705da2020be1b6662a87608","unresolved":false,"context_lines":[{"line_number":636,"context_line":"Upgrades and Backwards Compatibility"},{"line_number":637,"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":638,"context_line":""},{"line_number":639,"context_line":"This reform is designed to be backward compatible. The *classic drivers* will"},{"line_number":640,"context_line":"be supported for some time after deprecation and will fully work."},{"line_number":641,"context_line":""},{"line_number":642,"context_line":"We will recommend switching to using appropriate *dynamic drivers* as soon as"}],"source_content_type":"text/x-rst","patch_set":19,"id":"3aaa91ec_81c84876","line":639,"updated":"2016-06-21 18:08:53.000000000","message":"see above re: upgrading to new driver and managing old instance","commit_id":"60efd72e0f86fc1bf99e181614fe8058ea7ad445"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"4d28106ec82a47cd3203504f503cf4f8f16f37c4","unresolved":false,"context_lines":[{"line_number":197,"context_line":""},{"line_number":198,"context_line":"* Every time ``driver`` and/or any of the interface fields is updated,"},{"line_number":199,"context_line":"  the conductor checks that the *hardware type* supports all the resulting"},{"line_number":200,"context_line":"  interfaces (except when ``driver`` is set to a *classic driver*)."},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"  To change between two incompatible sets of interfaces, all changes should"},{"line_number":203,"context_line":"  come in one API call. E.g. for a node with the ``ilo-gen8`` *hardware type*"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_5368bdf5","line":200,"updated":"2016-06-22 14:27:56.000000000","message":"I think we had discussed somewhere (at midcycle?) that we allow the driver to be changed regardless of what state the node is in. I suspect we\u0027d allow the same for the interfaces? (I would prefer if we restricted it at first (to what, enroll \u0026 manageable \u0026 available?), and then opened it up if necessary, versus allowing it and then having to deal with any issues that come out of that.)","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4dad051541079bbd0ab6fdff04e4f404a9284429","unresolved":false,"context_lines":[{"line_number":197,"context_line":""},{"line_number":198,"context_line":"* Every time ``driver`` and/or any of the interface fields is updated,"},{"line_number":199,"context_line":"  the conductor checks that the *hardware type* supports all the resulting"},{"line_number":200,"context_line":"  interfaces (except when ``driver`` is set to a *classic driver*)."},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"  To change between two incompatible sets of interfaces, all changes should"},{"line_number":203,"context_line":"  come in one API call. E.g. for a node with the ``ilo-gen8`` *hardware type*"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_a478baf3","line":200,"in_reply_to":"3aaa91ec_5368bdf5","updated":"2016-06-22 14:44:26.000000000","message":"There is no consensus on that. I see a valid case for updating things in active state, and I think we already limit all updates in transient states.","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2ca99a6ca89fcc29971f27f3771004a040cafdd4","unresolved":false,"context_lines":[{"line_number":197,"context_line":""},{"line_number":198,"context_line":"* Every time ``driver`` and/or any of the interface fields is updated,"},{"line_number":199,"context_line":"  the conductor checks that the *hardware type* supports all the resulting"},{"line_number":200,"context_line":"  interfaces (except when ``driver`` is set to a *classic driver*)."},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"  To change between two incompatible sets of interfaces, all changes should"},{"line_number":203,"context_line":"  come in one API call. E.g. for a node with the ``ilo-gen8`` *hardware type*"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_a7043cc0","line":200,"in_reply_to":"3aaa91ec_a478baf3","updated":"2016-06-22 21:22:06.000000000","message":"Ok. Something to keep in mind anyway. I\u0027m sure we\u0027ll find out...","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"f68cdc4808cc4f3d068b5921d80c413b76435185","unresolved":false,"context_lines":[{"line_number":223,"context_line":"  The validation will be conducted on the API service side by checking the new"},{"line_number":224,"context_line":"  ``conductor_hardware_interfaces`` database table."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"* If for some reason the existing *inteface* becomes invalid for a node (e.g."},{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_c9fec86a","line":226,"updated":"2016-06-22 12:45:33.000000000","message":"nit: s/inteface/interface/","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"f68cdc4808cc4f3d068b5921d80c413b76435185","unresolved":false,"context_lines":[{"line_number":224,"context_line":"  ``conductor_hardware_interfaces`` database table."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"* If for some reason the existing *inteface* becomes invalid for a node (e.g."},{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_69307457","line":227,"updated":"2016-06-22 12:45:33.000000000","message":"s/signalized/signaled/","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"f68cdc4808cc4f3d068b5921d80c413b76435185","unresolved":false,"context_lines":[{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":233,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_e923c403","line":230,"updated":"2016-06-22 12:45:33.000000000","message":"Hrm, I wonder how much code assumes this is not None... this could get fun. Not sure what a better solution is, though...","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"b1de3dca8b47e9b143358052a0cde900e5c38d91","unresolved":false,"context_lines":[{"line_number":223,"context_line":"  The validation will be conducted on the API service side by checking the new"},{"line_number":224,"context_line":"  ``conductor_hardware_interfaces`` database table."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"* If for some reason the existing *inteface* becomes invalid for a node (e.g."},{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":233,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_89184086","line":230,"range":{"start_line":226,"start_character":2,"end_line":230,"end_character":75},"updated":"2016-06-22 12:59:28.000000000","message":"Question: what is the procedure for the already enrolled node to be \"un-stuck\"?\n\n\nNit: rephrase\n* If an existing *interface* becomes invalid, for instance by obsoleting or disabling, related enrolled nodes will fail validation upon API state change request. Proper error response will be returned to the API user. On the programming....","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2ec13e61ce551b6b2fc3999c34d747ebb27144d4","unresolved":false,"context_lines":[{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":233,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_ba50a35f","line":230,"in_reply_to":"3aaa91ec_25e832e2","updated":"2016-06-23 10:54:34.000000000","message":"An interface *can* become invalid.\n\nIf I have a hardware type in one release:\n\n    class JrollHardware():\n        supported_power_interfaces \u003d [IPMIPower, JrollPower]\n\nAnd then in the next release:\n\n    class JrollHardware():\n        supported_power_interfaces \u003d [JrollPower]\n\nThen upon upgrade, a node with driver\u003djroll and power_interface\u003dipmitool, will now be invalid.\n\nThat said, I think nulling this in code is fine.","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2ca99a6ca89fcc29971f27f3771004a040cafdd4","unresolved":false,"context_lines":[{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":233,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_25e832e2","line":230,"in_reply_to":"3aaa91ec_4a911f52","updated":"2016-06-22 21:22:06.000000000","message":"I am not convinced that we need an Invalid\u003cinterface name\u003eInterface class; I don\u0027t know that it buys us much more than setting it to Null or whatever. Seems like an implementation detail.","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"4d28106ec82a47cd3203504f503cf4f8f16f37c4","unresolved":false,"context_lines":[{"line_number":223,"context_line":"  The validation will be conducted on the API service side by checking the new"},{"line_number":224,"context_line":"  ``conductor_hardware_interfaces`` database table."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"* If for some reason the existing *inteface* becomes invalid for a node (e.g."},{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":233,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_93034573","line":230,"range":{"start_line":226,"start_character":2,"end_line":230,"end_character":75},"in_reply_to":"3aaa91ec_5fa606c2","updated":"2016-06-22 14:27:56.000000000","message":"Hmm. This is interesting. What do we do now (with classic drivers) if an interface is disabled? I mean, what if the eg default *_interface is disabled.\n\nWhat does \u0027disabled\u0027 mean anyway? Broken, or someone indicated to ironic that something is disabled. This is a disable that doesn\u0027t mean the opposite of the enabled_x_interfaces configuration, right?","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"18e276e1e979597f899373596dd3eb0bc691f102","unresolved":false,"context_lines":[{"line_number":223,"context_line":"  The validation will be conducted on the API service side by checking the new"},{"line_number":224,"context_line":"  ``conductor_hardware_interfaces`` database table."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"* If for some reason the existing *inteface* becomes invalid for a node (e.g."},{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":233,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_9f250ead","line":230,"range":{"start_line":226,"start_character":2,"end_line":230,"end_character":75},"in_reply_to":"3aaa91ec_89184086","updated":"2016-06-22 13:02:47.000000000","message":"node-update with a working interface","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":18653,"name":"Milan Kováčik","email":"mkovacik@redhat.com","username":"dparalen"},"change_message_id":"4fd9eb33243dadff68ff06a0322505308c958e33","unresolved":false,"context_lines":[{"line_number":223,"context_line":"  The validation will be conducted on the API service side by checking the new"},{"line_number":224,"context_line":"  ``conductor_hardware_interfaces`` database table."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"* If for some reason the existing *inteface* becomes invalid for a node (e.g."},{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":233,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_5fa606c2","line":230,"range":{"start_line":226,"start_character":2,"end_line":230,"end_character":75},"in_reply_to":"3aaa91ec_9f250ead","updated":"2016-06-22 13:08:32.000000000","message":"NIT? The API response might want to suggest that to the user then.","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"483399d2e12299bed32fe3668de8d0cc1336a117","unresolved":false,"context_lines":[{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":233,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_4a911f52","line":230,"in_reply_to":"3aaa91ec_aa3523db","updated":"2016-06-22 15:02:34.000000000","message":"Ok, but what would it do when an actual method is called? Break with an exception?","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"596313f1c8f61e4d731402a89a02af0966b628d4","unresolved":false,"context_lines":[{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":233,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_aa3523db","line":230,"in_reply_to":"3aaa91ec_c434e6fc","updated":"2016-06-22 15:00:22.000000000","message":"I think we should have an Invalid\u003cinterface name\u003eInterface class that is populated into the task.driver.\u003cX interface\u003e when we detect an the node has an invalid interface at the point that we build the dynamic driver, this InvalidXInterface class should be a valid interface where all the required functions are implemented as no-ops so that it doesn\u0027t break anything and the validate function just has raise InvalidInterfaceError(...) which will show up when you do node-validate.","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"2ca99a6ca89fcc29971f27f3771004a040cafdd4","unresolved":false,"context_lines":[{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":233,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_25731282","line":230,"in_reply_to":"3aaa91ec_c434e6fc","updated":"2016-06-22 21:22:06.000000000","message":"If this section is *only* talking about disabled interfaces, how about rewording it then.\n\nIf an interface for a node becomes disabled after the node was enrolled (i.e., not a default interface and removed from the enabled_x_interfaces configuration option), it will be signalled via ...\n\nIf it is also including invalid interfaces, then other than being disabled, when would an interface become invalid?","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"4d28106ec82a47cd3203504f503cf4f8f16f37c4","unresolved":false,"context_lines":[{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":233,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_ee41023b","line":230,"in_reply_to":"3aaa91ec_e923c403","updated":"2016-06-22 14:27:56.000000000","message":"I don\u0027t think it should be changed to None. (It isn\u0027t a classic driver). The validate calls don\u0027t modify anything for a node; I don\u0027t think this should. If it isn\u0027t validated, we should *already* have code that will prevent eg a deploy from occurring if the deploy_interface is invalid. Changing it to None means that the user won\u0027t know what it had been set to that caused it to be invalid.","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"4dad051541079bbd0ab6fdff04e4f404a9284429","unresolved":false,"context_lines":[{"line_number":227,"context_line":"  it was disabled after the node was enrolled), it will be signalized via the"},{"line_number":228,"context_line":"  usual node validation API. The validation for this interface won\u0027t pass with"},{"line_number":229,"context_line":"  an appropriate error message. On the programming level, the driver attribute"},{"line_number":230,"context_line":"  for this interface (e.g. ``task.driver.deploy``) will be set to ``None``."},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"* Update ``GET /v1/drivers`` to also list enabled *hardware types*."},{"line_number":233,"context_line":"  This change is **not** affected by API versioning, because we allow old API"}],"source_content_type":"text/x-rst","patch_set":20,"id":"3aaa91ec_c434e6fc","line":230,"in_reply_to":"3aaa91ec_ee41023b","updated":"2016-06-22 14:44:26.000000000","message":"\u003e  What do we do now (with classic drivers) if an interface is disabled?\n\nit\u0027s not possible to disable interfaces with classic drivers. some drivers may have some interfaces set to None.\n\n\u003e What does \u0027disabled\u0027 mean anyway? Broken, or someone indicated to ironic that something is disabled.\n\nStopped being included in enabled_interfaces.\n\n\u003e The validate calls don\u0027t modify anything for a node; I don\u0027t think this should\n\nI\u0027m not saying about modifying a node here. I\u0027m only saying that we can\u0027t put anything meaningful in task.driver.\u003cinterface\u003e in such case, so it will be None (in the Python object, not in the database). It\u0027s not a persistent change and node-show won\u0027t show it.","commit_id":"98886ccd37bdb4824e6d62ea065ed01f915aad16"}],"specs/backlog/driver-composition-reform.rst":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"5ada05a6ad3179cc2edc5153b2a6dbc1338dd646","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"* For every changeable interface, enhance the base driver with a new dict"},{"line_number":46,"context_line":"  ``allowed_%(interface)s`` providing mappings from interface names to"},{"line_number":47,"context_line":"  interface implementation instance."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"},{"line_number":50,"context_line":"  we\u0027ll have an instance per node, so that we can change interface attributes."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3afb71cf_b20f8ee0","line":47,"updated":"2015-06-08 10:49:54.000000000","message":"Is this a hardcoded mapping in the code ?\n\nSay someone with an out-of-tree driver wants to add a new interface, he will have to modify the code to enable his new interface?\n\n/me thinks about pluggability here","commit_id":"a862f651ca5d004142a8286da34a5fe896604ce2"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"5ada05a6ad3179cc2edc5153b2a6dbc1338dd646","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"  Expose this field to user in such way so that the user can see values,"},{"line_number":57,"context_line":"  even if defaults are used. Allow changing this value only when node is in"},{"line_number":58,"context_line":"  ``enroll`` state."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* Create new set of drivers with clear names and extensible interfaces, e.g.:"},{"line_number":61,"context_line":"  ``drac``, ``ilo``, ``ipmitool``, etc."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3afb71cf_875fb640","line":58,"updated":"2015-06-08 10:49:54.000000000","message":"since we allow changing the driver at other states, perhaps this should be the same?","commit_id":"a862f651ca5d004142a8286da34a5fe896604ce2"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"5ada05a6ad3179cc2edc5153b2a6dbc1338dd646","unresolved":false,"context_lines":[{"line_number":58,"context_line":"  ``enroll`` state."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"* Create new set of drivers with clear names and extensible interfaces, e.g.:"},{"line_number":61,"context_line":"  ``drac``, ``ilo``, ``ipmitool``, etc."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"  Allow vendors decide which interface implementations should be default for"},{"line_number":64,"context_line":"  their drivers, but make sure all possible combinations are listed in"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3afb71cf_52929aa0","line":61,"updated":"2015-06-08 10:49:54.000000000","message":"One thing I wonder - maybe I shouldn\u0027t but I want to point out - is how this is going to work with the hash ring, currently we have one ring per driver[1], and since they are static composed we make sure that all conductors have the necessary code to manage a node using that driver.\n\nNow, since the base drivers are only power + management, we kinda lose this guarantees for the other interfaces.\n\nMaybe it\u0027s OK, I just wonder on a upgrade conductors may have different deploy interfaces enabled and nodes may require them but routing a request from a node may end up on the wrong conductor (one that can\u0027t manage that node \"entirely\")\n\n[1] https://github.com/openstack/ironic/blob/309707bab00a8a30d473815687515ac906ffbeb2/ironic/common/hash_ring.py#L184-L187","commit_id":"a862f651ca5d004142a8286da34a5fe896604ce2"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"5ada05a6ad3179cc2edc5153b2a6dbc1338dd646","unresolved":false,"context_lines":[{"line_number":63,"context_line":"  Allow vendors decide which interface implementations should be default for"},{"line_number":64,"context_line":"  their drivers, but make sure all possible combinations are listed in"},{"line_number":65,"context_line":"  ``allowed_%(interface)s`` for the driver."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"* Modify driver-specific periodic tasks code to also collect periodic tasks"},{"line_number":68,"context_line":"  for *possible* interfaces of every driver."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3afb71cf_521cda12","line":66,"updated":"2015-06-08 10:49:54.000000000","message":"Currently we can use the enabled_drivers configuration option to create a white list of the drivers that are enabled by that conductor.\n\nHow this is going to play out? Do we need something like \"enabled_interfaces\" configuration option to have the same effect?","commit_id":"a862f651ca5d004142a8286da34a5fe896604ce2"},{"author":{"_account_id":10697,"name":"Thiago Paiva Brito","email":"thiagop@lsd.ufcg.edu.br","username":"thiagop","inactive":true},"change_message_id":"ea21a3aecd3476dac96bf7bdf08d614062642c7f","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Our driver interface matrix becomes more and more complex. To top it all,"},{"line_number":21,"context_line":"nowadays we have many interfaces that can be used for every driver. To name a"},{"line_number":22,"context_line":"few (assuming boot-deploy separation lands):"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"* ``boot``: most drivers support PXE and iPXE, while some also support"},{"line_number":25,"context_line":"  virtual media."}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba15a1d1_1457fa58","line":22,"updated":"2015-09-16 18:06:42.000000000","message":"It has landed. :)","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9cfab814bdd994ba89639cce8c8ce15eb367805f","unresolved":false,"context_lines":[{"line_number":21,"context_line":"nowadays we have many interfaces that can be used for every driver. To name a"},{"line_number":22,"context_line":"few (assuming boot-deploy separation lands):"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"* ``boot``: most drivers support PXE and iPXE, while some also support"},{"line_number":25,"context_line":"  virtual media."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* ``deploy``: old iSCSI ramdisk and new agent ramdisk are supported by"}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_597e99e5","line":24,"updated":"2015-06-14 07:36:40.000000000","message":"+ and we have a proposal for a new \"petitboot\" bootloader as well","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"5a50a042051be481d20f871c6d6007fb8130fa5b","unresolved":false,"context_lines":[{"line_number":24,"context_line":"* ``boot``: most drivers support PXE and iPXE, while some also support"},{"line_number":25,"context_line":"  virtual media."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* ``deploy``: old iSCSI ramdisk and new agent ramdisk are supported by"},{"line_number":28,"context_line":"  all drivers."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"* ``inspect``: there is generic inspection using ironic-inspector, but some"}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_eac14655","line":27,"updated":"2015-06-17 10:59:19.000000000","message":"deploy being a core interface cannot be set to None","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9cda518423ae5955ae158cfb66b28ba79b4280e3","unresolved":false,"context_lines":[{"line_number":24,"context_line":"* ``boot``: most drivers support PXE and iPXE, while some also support"},{"line_number":25,"context_line":"  virtual media."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* ``deploy``: old iSCSI ramdisk and new agent ramdisk are supported by"},{"line_number":28,"context_line":"  all drivers."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"* ``inspect``: there is generic inspection using ironic-inspector, but some"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9a1a9d01_897be927","line":27,"in_reply_to":"fa32b979_eac14655","updated":"2015-09-29 14:39:00.000000000","message":"yeah, it\u0027s not assumed","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"5a50a042051be481d20f871c6d6007fb8130fa5b","unresolved":false,"context_lines":[{"line_number":27,"context_line":"* ``deploy``: old iSCSI ramdisk and new agent ramdisk are supported by"},{"line_number":28,"context_line":"  all drivers."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"* ``inspect``: there is generic inspection using ironic-inspector, but some"},{"line_number":31,"context_line":"  drivers allow also out-of-band inspection."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_6ace9683","line":30,"updated":"2015-06-17 10:59:19.000000000","message":"It should be possible to set standard interfaces like inspect to None, right ?","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9cda518423ae5955ae158cfb66b28ba79b4280e3","unresolved":false,"context_lines":[{"line_number":27,"context_line":"* ``deploy``: old iSCSI ramdisk and new agent ramdisk are supported by"},{"line_number":28,"context_line":"  all drivers."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"* ``inspect``: there is generic inspection using ironic-inspector, but some"},{"line_number":31,"context_line":"  drivers allow also out-of-band inspection."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9a1a9d01_e9906545","line":30,"in_reply_to":"fa32b979_6ace9683","updated":"2015-09-29 14:39:00.000000000","message":"right, we should mention it","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"5a50a042051be481d20f871c6d6007fb8130fa5b","unresolved":false,"context_lines":[{"line_number":30,"context_line":"* ``inspect``: there is generic inspection using ironic-inspector, but some"},{"line_number":31,"context_line":"  drivers allow also out-of-band inspection."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Proposed change"},{"line_number":34,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"On the Vancouver Summit we observed (see etherpad_) that the only interfaces"}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_a738573e","line":33,"updated":"2015-06-17 10:59:19.000000000","message":"I hope we will allow changing a interfaces for a node during it\u0027s life time.  I think we will have some APIs to do so, which can dynamically change the interfaces composing a driver. Something like:\n\n  GET /v1/nodes/\u003c\u003e/interfaces \n  POST /v1/nodes/\u003c\u003e/interfaces \n  PATCH /v1/nodes/\u003c\u003e/interfaces","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":10697,"name":"Thiago Paiva Brito","email":"thiagop@lsd.ufcg.edu.br","username":"thiagop","inactive":true},"change_message_id":"ea21a3aecd3476dac96bf7bdf08d614062642c7f","unresolved":false,"context_lines":[{"line_number":30,"context_line":"* ``inspect``: there is generic inspection using ironic-inspector, but some"},{"line_number":31,"context_line":"  drivers allow also out-of-band inspection."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Proposed change"},{"line_number":34,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"On the Vancouver Summit we observed (see etherpad_) that the only interfaces"}],"source_content_type":"text/x-rst","patch_set":3,"id":"ba15a1d1_b4f5ee57","line":33,"in_reply_to":"fa32b979_a738573e","updated":"2015-09-16 18:06:42.000000000","message":"+1","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9cda518423ae5955ae158cfb66b28ba79b4280e3","unresolved":false,"context_lines":[{"line_number":30,"context_line":"* ``inspect``: there is generic inspection using ironic-inspector, but some"},{"line_number":31,"context_line":"  drivers allow also out-of-band inspection."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Proposed change"},{"line_number":34,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"On the Vancouver Summit we observed (see etherpad_) that the only interfaces"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9a1a9d01_89c9a95b","line":33,"in_reply_to":"fa32b979_a738573e","updated":"2015-09-29 14:39:00.000000000","message":"I\u0027ll think about it. My main objection would be because I want to setup everything during the node creation. Though with ENROLL change is not that necessary...","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"5a50a042051be481d20f871c6d6007fb8130fa5b","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"On the Vancouver Summit we observed (see etherpad_) that the only interfaces"},{"line_number":37,"context_line":"that are really bound to a driver and can\u0027t be reasonably changed are"},{"line_number":38,"context_line":"``power`` and ``management``. We\u0027ll also fix the vendor passthru interface as"},{"line_number":39,"context_line":"it\u0027s designed for vendor additions."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"This spec proposes redefining a driver as power + management + passthru"}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_878193c5","line":38,"updated":"2015-06-17 10:59:19.000000000","message":"And console too.","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9cda518423ae5955ae158cfb66b28ba79b4280e3","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"On the Vancouver Summit we observed (see etherpad_) that the only interfaces"},{"line_number":37,"context_line":"that are really bound to a driver and can\u0027t be reasonably changed are"},{"line_number":38,"context_line":"``power`` and ``management``. We\u0027ll also fix the vendor passthru interface as"},{"line_number":39,"context_line":"it\u0027s designed for vendor additions."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"This spec proposes redefining a driver as power + management + passthru"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9a1a9d01_29c2dd34","line":38,"in_reply_to":"fa32b979_878193c5","updated":"2015-09-29 14:39:00.000000000","message":"Done","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"ccac46e5d0869f127918955067526d4b767924e9","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Actual changes are as follows:"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"* Create new set of entry points"},{"line_number":48,"context_line":"  ``ironic.drivers.%(driver_name)s.%(interface_name)`` which map"},{"line_number":49,"context_line":"  interface name to interface Python class for every changeable interface."},{"line_number":50,"context_line":"  Default interface is still taken from source code directly."}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_ef7ed4e2","line":47,"updated":"2015-06-19 05:53:11.000000000","message":"Does \"create\" mean \"add new set of entry points\" or \"replace the following old entry point to the new set of entry points\" in this context?\n\npxe_drac \u003d ironic.drivers.drac:PXEDracDriver\n\nWould you please update so that reader can understand which \"create\" means either \"add\" or \"replace\"?","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9cda518423ae5955ae158cfb66b28ba79b4280e3","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Actual changes are as follows:"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"* Create new set of entry points"},{"line_number":48,"context_line":"  ``ironic.drivers.%(driver_name)s.%(interface_name)`` which map"},{"line_number":49,"context_line":"  interface name to interface Python class for every changeable interface."},{"line_number":50,"context_line":"  Default interface is still taken from source code directly."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9a1a9d01_e905c579","line":47,"in_reply_to":"fa32b979_ef7ed4e2","updated":"2015-09-29 14:39:00.000000000","message":"I\u0027m not sure I get it, \"create\" never means \"replace\".","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"ccac46e5d0869f127918955067526d4b767924e9","unresolved":false,"context_lines":[{"line_number":62,"context_line":"  will be hardcoded in ``ironic.drivers.drac.DracDriver`` by the vendor."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"  .. note::"},{"line_number":65,"context_line":"    Though tempting, we don\u0027t provide analog of ``enabled_drivers`` for"},{"line_number":66,"context_line":"    interfaces, because of complications with hash ring, if different"},{"line_number":67,"context_line":"    conductors enabled different interface implementations for the same driver."},{"line_number":68,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_6f52c468","line":65,"updated":"2015-06-19 05:53:11.000000000","message":"It would be helpful if a reference about \"analog of ``enabled_drivers``\" is shown to readers who didn\u0027t attend the summit.","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9cda518423ae5955ae158cfb66b28ba79b4280e3","unresolved":false,"context_lines":[{"line_number":62,"context_line":"  will be hardcoded in ``ironic.drivers.drac.DracDriver`` by the vendor."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"  .. note::"},{"line_number":65,"context_line":"    Though tempting, we don\u0027t provide analog of ``enabled_drivers`` for"},{"line_number":66,"context_line":"    interfaces, because of complications with hash ring, if different"},{"line_number":67,"context_line":"    conductors enabled different interface implementations for the same driver."},{"line_number":68,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9a1a9d01_6941b5a8","line":65,"in_reply_to":"fa32b979_6f52c468","updated":"2015-09-29 14:39:00.000000000","message":"Sorry, I don\u0027t this either. It\u0027s unrelated to the summit, I\u0027m just saying that while we have enabled_drivers, we won\u0027t have enabled_interfaces (unless I change it in the next version of this spec).","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"3825735ecda0c24a1286b527c8df29ccb3719041","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    This, however, will limit ability of operators to use mixed environment"},{"line_number":70,"context_line":"    with Ironic conductors of different versions. We should clearly state that"},{"line_number":71,"context_line":"    all conductors should be upgraded before using new interface"},{"line_number":72,"context_line":"    implementations."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"},{"line_number":75,"context_line":"  we\u0027ll have an instance per node, so that we can change interface attributes."}],"source_content_type":"text/x-rst","patch_set":3,"id":"3afb71cf_0311ec03","line":72,"updated":"2015-06-10 21:29:23.000000000","message":"With regards to upgrading, will the code be expected to map the existing driver names through to useful interface values as part of the upgrade, so an operator who has upgraded is not impacted by being forced to update configuration or retool?","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9cda518423ae5955ae158cfb66b28ba79b4280e3","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    This, however, will limit ability of operators to use mixed environment"},{"line_number":70,"context_line":"    with Ironic conductors of different versions. We should clearly state that"},{"line_number":71,"context_line":"    all conductors should be upgraded before using new interface"},{"line_number":72,"context_line":"    implementations."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"},{"line_number":75,"context_line":"  we\u0027ll have an instance per node, so that we can change interface attributes."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9a1a9d01_291e5dbb","line":72,"in_reply_to":"3afb71cf_0311ec03","updated":"2015-09-29 14:39:00.000000000","message":"Yeah, we need some kind of mapping, I\u0027ll update the spec.","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9cfab814bdd994ba89639cce8c8ce15eb367805f","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    all conductors should be upgraded before using new interface"},{"line_number":72,"context_line":"    implementations."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"},{"line_number":75,"context_line":"  we\u0027ll have an instance per node, so that we can change interface attributes."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"  This will shift dependencies validation for non-default interfaces from"}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_f9820dc8","line":74,"updated":"2015-06-14 07:36:40.000000000","message":"This would have very far-reaching consequences and will change how users interaction with the service.\n\nToday, I can retrieve a list of supported drivers from Ironic, even if no Nodes are enrolled. This proposes to change that -- I will only know if a driver is supported by attempting to enroll a Node with a specific combination of interfaces.\n\nIt will change how driver periodic tasks work -- today, these are \"collected\" during the service init. This would not be possible if drivers are only instantiated when Nodes are created.\n\nIt will change the memory footprint of the Conductor from roughly constant to linearly dependent on the number of Nodes mapped to a given conductor.","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9cda518423ae5955ae158cfb66b28ba79b4280e3","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    all conductors should be upgraded before using new interface"},{"line_number":72,"context_line":"    implementations."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"},{"line_number":75,"context_line":"  we\u0027ll have an instance per node, so that we can change interface attributes."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"  This will shift dependencies validation for non-default interfaces from"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9a1a9d01_69dd35df","line":74,"in_reply_to":"fa32b979_87ae737f","updated":"2015-09-29 14:39:00.000000000","message":"Good catch, I\u0027ll think what we can do.","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"5a50a042051be481d20f871c6d6007fb8130fa5b","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    all conductors should be upgraded before using new interface"},{"line_number":72,"context_line":"    implementations."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"},{"line_number":75,"context_line":"  we\u0027ll have an instance per node, so that we can change interface attributes."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"  This will shift dependencies validation for non-default interfaces from"}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_87ae737f","line":74,"in_reply_to":"fa32b979_f9820dc8","updated":"2015-06-17 10:59:19.000000000","message":"I think we could prevent touching the part of loading drivers.  We can still load the drivers with the default interfaces in the start, but think of it as ability to tweak certain interfaces of the driver to something else with an API (instead of creating new drivers).  We can store the default interfaces composing a driver in the proposed interfaces field and provide the ability to change it with an API.\n\n  GET /v1/drivers/\n\nwill still work\n\n  GET /v1/drivers/\u003c\u003e/detail \n\ncan show the default interfaces composing a driver and the possible values for the interfaces.","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"5a50a042051be481d20f871c6d6007fb8130fa5b","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":"  This will shift dependencies validation for non-default interfaces from"},{"line_number":78,"context_line":"  start up to the moment of instantiating. Thus, operators won\u0027t have to"},{"line_number":79,"context_line":"  install dependencies for interface implementations they don\u0027t use."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* Add new node field ``interfaces`` - dict with keys being changeable"},{"line_number":82,"context_line":"  interface names, values being implementation names (taken from"}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_aa449e1a","line":79,"updated":"2015-06-17 10:59:19.000000000","message":"We can throw an error if interfaces are not found in the API to change interface, right ?\n\n  PATCH /v1/nodes/\u003c\u003e/interfaces","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"3825735ecda0c24a1286b527c8df29ccb3719041","unresolved":false,"context_lines":[{"line_number":78,"context_line":"  start up to the moment of instantiating. Thus, operators won\u0027t have to"},{"line_number":79,"context_line":"  install dependencies for interface implementations they don\u0027t use."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* Add new node field ``interfaces`` - dict with keys being changeable"},{"line_number":82,"context_line":"  interface names, values being implementation names (taken from"},{"line_number":83,"context_line":"  ``ironic.drivers.%(driver_name)s.%(interface_name)`` entry point - see"},{"line_number":84,"context_line":"  above). Allow to change it with usual update API."}],"source_content_type":"text/x-rst","patch_set":3,"id":"3afb71cf_a39218f4","line":81,"updated":"2015-06-10 21:29:23.000000000","message":"``interfaces`` seems kind of generic, and actually causes me to think about network interfaces.  I would advocate for something along the name of driver_interfaces.","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9cda518423ae5955ae158cfb66b28ba79b4280e3","unresolved":false,"context_lines":[{"line_number":78,"context_line":"  start up to the moment of instantiating. Thus, operators won\u0027t have to"},{"line_number":79,"context_line":"  install dependencies for interface implementations they don\u0027t use."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* Add new node field ``interfaces`` - dict with keys being changeable"},{"line_number":82,"context_line":"  interface names, values being implementation names (taken from"},{"line_number":83,"context_line":"  ``ironic.drivers.%(driver_name)s.%(interface_name)`` entry point - see"},{"line_number":84,"context_line":"  above). Allow to change it with usual update API."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9a1a9d01_69045549","line":81,"in_reply_to":"3afb71cf_a39218f4","updated":"2015-09-29 14:39:00.000000000","message":"Done","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"5c3396bc956a4c31f5c354b56058cd3e9cf0ba09","unresolved":false,"context_lines":[{"line_number":78,"context_line":"  start up to the moment of instantiating. Thus, operators won\u0027t have to"},{"line_number":79,"context_line":"  install dependencies for interface implementations they don\u0027t use."},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"* Add new node field ``interfaces`` - dict with keys being changeable"},{"line_number":82,"context_line":"  interface names, values being implementation names (taken from"},{"line_number":83,"context_line":"  ``ironic.drivers.%(driver_name)s.%(interface_name)`` entry point - see"},{"line_number":84,"context_line":"  above). Allow to change it with usual update API."}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_a1e2ff9d","line":81,"in_reply_to":"3afb71cf_a39218f4","updated":"2015-06-15 04:07:44.000000000","message":"I think so too. driver_interfaces is a little bit long name but it prevents from confusing users and it\u0027s very important.","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"5c3396bc956a4c31f5c354b56058cd3e9cf0ba09","unresolved":false,"context_lines":[{"line_number":84,"context_line":"  above). Allow to change it with usual update API."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"* Create new set of drivers with clear names and extensible interfaces, e.g.:"},{"line_number":87,"context_line":"  ``drac``, ``ilo``, ``ipmitool``, etc."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"  Allow vendors decide which interface implementations should be default for"},{"line_number":90,"context_line":"  their drivers, but make sure all possible combinations are listed in"}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_fc08b02a","line":87,"updated":"2015-06-15 04:07:44.000000000","message":"they are also be the power interfaces names, I think.","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9cda518423ae5955ae158cfb66b28ba79b4280e3","unresolved":false,"context_lines":[{"line_number":84,"context_line":"  above). Allow to change it with usual update API."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"* Create new set of drivers with clear names and extensible interfaces, e.g.:"},{"line_number":87,"context_line":"  ``drac``, ``ilo``, ``ipmitool``, etc."},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"  Allow vendors decide which interface implementations should be default for"},{"line_number":90,"context_line":"  their drivers, but make sure all possible combinations are listed in"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9a1a9d01_8901a93a","line":87,"in_reply_to":"fa32b979_fc08b02a","updated":"2015-09-29 14:39:00.000000000","message":"Done","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":9315,"name":"ramesh","email":"rameshg87@gmail.com","username":"rameshg87"},"change_message_id":"5a50a042051be481d20f871c6d6007fb8130fa5b","unresolved":false,"context_lines":[{"line_number":90,"context_line":"  their drivers, but make sure all possible combinations are listed in"},{"line_number":91,"context_line":"  the appropriate entry point."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"* Modify driver-specific periodic tasks code to also collect periodic tasks"},{"line_number":94,"context_line":"  for *possible* interfaces of every driver."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"Proposal for some standard interfaces names:"}],"source_content_type":"text/x-rst","patch_set":3,"id":"fa32b979_6ae77611","line":93,"updated":"2015-06-17 10:59:19.000000000","message":"It does complicate the periodic tasks right ? So what if we changed the interface but periodic task got registered.  If no nodes are no longer using the interface, it wouldn\u0027t make sense to keep enabling the periodic task.  So would we disable them somehow ?","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"9cda518423ae5955ae158cfb66b28ba79b4280e3","unresolved":false,"context_lines":[{"line_number":90,"context_line":"  their drivers, but make sure all possible combinations are listed in"},{"line_number":91,"context_line":"  the appropriate entry point."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"* Modify driver-specific periodic tasks code to also collect periodic tasks"},{"line_number":94,"context_line":"  for *possible* interfaces of every driver."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"Proposal for some standard interfaces names:"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9a1a9d01_c9a1e147","line":93,"in_reply_to":"fa32b979_6ae77611","updated":"2015-09-29 14:39:00.000000000","message":"I\u0027m starting to think that having enabled_interfaces is not such a bad idea...","commit_id":"9df09d07a9017dcecc2815c23ef9e9f4d0a38112"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"5d5951d5dac7358ebb4a23e35dc56e376912be31","unresolved":false,"context_lines":[{"line_number":69,"context_line":"We will introduce the first class **interface** concept. Interfaces will have"},{"line_number":70,"context_line":"their own setuptools entry points (and thus their own short names). We will use"},{"line_number":71,"context_line":"the configuration file to declare supported combinations between"},{"line_number":72,"context_line":"drivers and interfaces. We will assume that all conductors have the same set"},{"line_number":73,"context_line":"of interfaces for the same driver, so that not to overcomplicate the hash ring"},{"line_number":74,"context_line":"implementation."},{"line_number":75,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_3224955e","line":72,"updated":"2015-10-08 09:05:38.000000000","message":"There is no mechanism that is guaranteed this, user may have different sets of config files mentioned below across the conductors.","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8e6faaf63810ab08072add911aadc67a29a0898","unresolved":false,"context_lines":[{"line_number":82,"context_line":"Detailed Changes"},{"line_number":83,"context_line":"----------------"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"* Create a set of generic drivers, based on the vendor-chosen name, e.g.::"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    ironic.drivers \u003d"},{"line_number":88,"context_line":"        drac \u003d ironic.drivers.drac.DracDriver"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_abfda43b","line":85,"updated":"2015-10-07 21:56:58.000000000","message":"can we s/generic/vendor-specific/ ?\n\nIn setup.cfg, right?","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c44ef3eb1ac2ae6adb35db7417f40f75bada4923","unresolved":false,"context_lines":[{"line_number":82,"context_line":"Detailed Changes"},{"line_number":83,"context_line":"----------------"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"* Create a set of generic drivers, based on the vendor-chosen name, e.g.::"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    ironic.drivers \u003d"},{"line_number":88,"context_line":"        drac \u003d ironic.drivers.drac.DracDriver"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_cd5adf50","line":85,"in_reply_to":"7a2fa921_abfda43b","updated":"2015-10-12 13:03:23.000000000","message":"yes","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8e6faaf63810ab08072add911aadc67a29a0898","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        drac \u003d ironic.drivers.drac.DracDriver"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"  Old drivers are left for compatibility, a hardcoded mapping is provided for"},{"line_number":91,"context_line":"  them."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"* Create a new set of entry points"},{"line_number":94,"context_line":"  ``ironic.driver-interfaces.%(interface_name)`` which declare possible"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_2b6e7401","line":91,"updated":"2015-10-07 21:56:58.000000000","message":"By \u0027old drivers\u0027, you mean the existing drivers that we have in setup.cfg under \u0027ironic.drivers\u0027? By hardcoded mapping -- mapping to driver + driver-interfaces?","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c44ef3eb1ac2ae6adb35db7417f40f75bada4923","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        drac \u003d ironic.drivers.drac.DracDriver"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"  Old drivers are left for compatibility, a hardcoded mapping is provided for"},{"line_number":91,"context_line":"  them."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"* Create a new set of entry points"},{"line_number":94,"context_line":"  ``ironic.driver-interfaces.%(interface_name)`` which declare possible"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_ad5d234a","line":91,"in_reply_to":"7a2fa921_2b6e7401","updated":"2015-10-12 13:03:23.000000000","message":"Done","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8e6faaf63810ab08072add911aadc67a29a0898","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    ironic.driver-interfaces.boot \u003d"},{"line_number":98,"context_line":"        pxe \u003d ironic.driver.modules.pxe.PxeBoot"},{"line_number":99,"context_line":"        ipxe \u003d ironic.driver.modules.pxe.IPxeBoot"},{"line_number":100,"context_line":"        ilo_vmedia \u003d ironic.driver.modules.ilo.IloVirtualMediaBoot"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"* Create new set of configuration options"},{"line_number":103,"context_line":"  ``[%(driver_name)s] %(interface_name)s_interfaces`` which lists"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_06da8d78","line":100,"updated":"2015-10-07 21:56:58.000000000","message":"Do the names have to be unique across all interfaces or only unique for that interface? Eg, if I had some new acme HW that had its own boot and management and deploy, could I name them all \u0027acme\u0027?","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c44ef3eb1ac2ae6adb35db7417f40f75bada4923","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    ironic.driver-interfaces.boot \u003d"},{"line_number":98,"context_line":"        pxe \u003d ironic.driver.modules.pxe.PxeBoot"},{"line_number":99,"context_line":"        ipxe \u003d ironic.driver.modules.pxe.IPxeBoot"},{"line_number":100,"context_line":"        ilo_vmedia \u003d ironic.driver.modules.ilo.IloVirtualMediaBoot"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"* Create new set of configuration options"},{"line_number":103,"context_line":"  ``[%(driver_name)s] %(interface_name)s_interfaces`` which lists"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_ed423b68","line":100,"in_reply_to":"7a2fa921_06da8d78","updated":"2015-10-12 13:03:23.000000000","message":"Yes, as they will be in different namespaces","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8e6faaf63810ab08072add911aadc67a29a0898","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        ipxe \u003d ironic.driver.modules.pxe.IPxeBoot"},{"line_number":100,"context_line":"        ilo_vmedia \u003d ironic.driver.modules.ilo.IloVirtualMediaBoot"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"* Create new set of configuration options"},{"line_number":103,"context_line":"  ``[%(driver_name)s] %(interface_name)s_interfaces`` which lists"},{"line_number":104,"context_line":"  all implementations of a given interfaces supported by a driver."},{"line_number":105,"context_line":"  Create a new set of configuration options"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_66b7c1d8","line":102,"updated":"2015-10-07 21:56:58.000000000","message":"Dumb question. I thought you mean config options in etc/ironic/ironic.conf.sample, but now I\u0027m wondering if you mean in setup.cfg.","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c44ef3eb1ac2ae6adb35db7417f40f75bada4923","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        ipxe \u003d ironic.driver.modules.pxe.IPxeBoot"},{"line_number":100,"context_line":"        ilo_vmedia \u003d ironic.driver.modules.ilo.IloVirtualMediaBoot"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"* Create new set of configuration options"},{"line_number":103,"context_line":"  ``[%(driver_name)s] %(interface_name)s_interfaces`` which lists"},{"line_number":104,"context_line":"  all implementations of a given interfaces supported by a driver."},{"line_number":105,"context_line":"  Create a new set of configuration options"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_6d2e2ba7","line":102,"in_reply_to":"7a2fa921_66b7c1d8","updated":"2015-10-12 13:03:23.000000000","message":"Right, I meant ironic.conf","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8e6faaf63810ab08072add911aadc67a29a0898","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        ilo_vmedia \u003d ironic.driver.modules.ilo.IloVirtualMediaBoot"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"* Create new set of configuration options"},{"line_number":103,"context_line":"  ``[%(driver_name)s] %(interface_name)s_interfaces`` which lists"},{"line_number":104,"context_line":"  all implementations of a given interfaces supported by a driver."},{"line_number":105,"context_line":"  Create a new set of configuration options"},{"line_number":106,"context_line":"  ``[%(driver_name)s] default_%(interface_name)s_interface`` which states"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_e696714b","line":103,"updated":"2015-10-07 21:56:58.000000000","message":"maybe not use \u0027%()s\u0027 terminology cuz it seems messy. I like to use \u0027\u003c\u003e\u0027.\n\nIt also took me awhile to figure out what you meant. Maybe reword it.\n\nCreate a new configuration option group \"[\u003cdriver\u003e]\" for each driver (if it doesn\u0027t already exist).\n\nEach driver group will have these configuration options, one for each type of interface:\n    - \u003cinterface_name\u003e_interfaces: comma-separated list of supported implementations\n    - default_\u003cinterface_name\u003e_interface: \u003cdefault implementation\u003e\n\nI suppose we don\u0027t just want to use the first one in the \u003cinterface_name\u003e_interfaces list as the default?\n\nDo we need to indicate which interfaces are required?","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c44ef3eb1ac2ae6adb35db7417f40f75bada4923","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        ilo_vmedia \u003d ironic.driver.modules.ilo.IloVirtualMediaBoot"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"* Create new set of configuration options"},{"line_number":103,"context_line":"  ``[%(driver_name)s] %(interface_name)s_interfaces`` which lists"},{"line_number":104,"context_line":"  all implementations of a given interfaces supported by a driver."},{"line_number":105,"context_line":"  Create a new set of configuration options"},{"line_number":106,"context_line":"  ``[%(driver_name)s] default_%(interface_name)s_interface`` which states"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_983987db","line":103,"in_reply_to":"7a2fa921_e696714b","updated":"2015-10-12 13:03:23.000000000","message":"thanks!\n\n\u003e I suppose we don\u0027t just want to use the first one in the \u003cinterface_name\u003e_interfaces list as the default?\n\nI was thinking about it, but decided that explicit is better than implicit.\n\n\u003e Do we need to indicate which interfaces are required?\n\nThis is a hardcoded information, we don\u0027t want users to configure it","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"5d5951d5dac7358ebb4a23e35dc56e376912be31","unresolved":false,"context_lines":[{"line_number":107,"context_line":"  which interface implementation to use by default. The default value will be"},{"line_number":108,"context_line":"  determined by a vendor. Example::"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    [DEFAULT]"},{"line_number":111,"context_line":"    deploy_interfaces \u003d iscsi,direct"},{"line_number":112,"context_line":"    default_deploy_interface \u003d iscsi"},{"line_number":113,"context_line":"    inspect_interfaces \u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_520cb13a","line":110,"updated":"2015-10-08 09:05:38.000000000","message":"IMO support for \"default defaults\" not needed and can cause problems for users.","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c44ef3eb1ac2ae6adb35db7417f40f75bada4923","unresolved":false,"context_lines":[{"line_number":107,"context_line":"  which interface implementation to use by default. The default value will be"},{"line_number":108,"context_line":"  determined by a vendor. Example::"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    [DEFAULT]"},{"line_number":111,"context_line":"    deploy_interfaces \u003d iscsi,direct"},{"line_number":112,"context_line":"    default_deploy_interface \u003d iscsi"},{"line_number":113,"context_line":"    inspect_interfaces \u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_5833eff6","line":110,"in_reply_to":"7a2fa921_520cb13a","updated":"2015-10-12 13:03:23.000000000","message":"It\u0027s what oslo.config supports anyway","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8e6faaf63810ab08072add911aadc67a29a0898","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    boot_interfaces \u003d pxe,ipxe,ilo_vmedia"},{"line_number":121,"context_line":"    default_boot_interface \u003d ilo_vmedia"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"  Here we use values in ``DEFAULT`` section as a fallback."},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"},{"line_number":126,"context_line":"  we\u0027ll have an instance per node, so that we can change interface attributes."}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_e67d111d","line":123,"updated":"2015-10-07 21:56:58.000000000","message":"Can they specify None (no implementation)?","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c44ef3eb1ac2ae6adb35db7417f40f75bada4923","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    boot_interfaces \u003d pxe,ipxe,ilo_vmedia"},{"line_number":121,"context_line":"    default_boot_interface \u003d ilo_vmedia"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"  Here we use values in ``DEFAULT`` section as a fallback."},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"},{"line_number":126,"context_line":"  we\u0027ll have an instance per node, so that we can change interface attributes."}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_584a0f57","line":123,"in_reply_to":"7a2fa921_e67d111d","updated":"2015-10-12 13:03:23.000000000","message":"Empty value means None here","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8e6faaf63810ab08072add911aadc67a29a0898","unresolved":false,"context_lines":[{"line_number":124,"context_line":""},{"line_number":125,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"},{"line_number":126,"context_line":"  we\u0027ll have an instance per node, so that we can change interface attributes."},{"line_number":127,"context_line":"  However, interface implementations themselves will stay singletons, and will"},{"line_number":128,"context_line":"  be preloaded during the start up and stored in the ``enabled_interfaces``"},{"line_number":129,"context_line":"  attribute of a driver class."},{"line_number":130,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_26ff8968","line":127,"updated":"2015-10-07 21:56:58.000000000","message":"i\u0027m confused here. What is an \u0027interface attribute\u0027 vs an \u0027interface implementation\u0027?","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c44ef3eb1ac2ae6adb35db7417f40f75bada4923","unresolved":false,"context_lines":[{"line_number":124,"context_line":""},{"line_number":125,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"},{"line_number":126,"context_line":"  we\u0027ll have an instance per node, so that we can change interface attributes."},{"line_number":127,"context_line":"  However, interface implementations themselves will stay singletons, and will"},{"line_number":128,"context_line":"  be preloaded during the start up and stored in the ``enabled_interfaces``"},{"line_number":129,"context_line":"  attribute of a driver class."},{"line_number":130,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_d8f13f03","line":127,"in_reply_to":"7a2fa921_26ff8968","updated":"2015-10-12 13:03:23.000000000","message":"Done","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8e6faaf63810ab08072add911aadc67a29a0898","unresolved":false,"context_lines":[{"line_number":125,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"},{"line_number":126,"context_line":"  we\u0027ll have an instance per node, so that we can change interface attributes."},{"line_number":127,"context_line":"  However, interface implementations themselves will stay singletons, and will"},{"line_number":128,"context_line":"  be preloaded during the start up and stored in the ``enabled_interfaces``"},{"line_number":129,"context_line":"  attribute of a driver class."},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"  .. note::"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_a135c3da","line":128,"updated":"2015-10-07 21:56:58.000000000","message":"I don\u0027t understand what \u0027enabled_interfaces\u0027 are. How do we know which are enabled? Are they the interface names (\u0027boot\u0027, \u0027deploy\u0027), or are they the interface implementations (boot.pxe, boot.ipxe) or something else?","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c44ef3eb1ac2ae6adb35db7417f40f75bada4923","unresolved":false,"context_lines":[{"line_number":125,"context_line":"* Change how we load drivers: instead of one singleton instance of a driver,"},{"line_number":126,"context_line":"  we\u0027ll have an instance per node, so that we can change interface attributes."},{"line_number":127,"context_line":"  However, interface implementations themselves will stay singletons, and will"},{"line_number":128,"context_line":"  be preloaded during the start up and stored in the ``enabled_interfaces``"},{"line_number":129,"context_line":"  attribute of a driver class."},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"  .. note::"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_788cab7f","line":128,"in_reply_to":"7a2fa921_a135c3da","updated":"2015-10-12 13:03:23.000000000","message":"Done","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"5d5951d5dac7358ebb4a23e35dc56e376912be31","unresolved":false,"context_lines":[{"line_number":132,"context_line":"    This will somewhat increase the memory usage per node. We can probably"},{"line_number":133,"context_line":"    define __slots__ on the driver class to reduce this effect."},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"* Add new node field ``driver_interfaces`` - dict with keys being changeable"},{"line_number":136,"context_line":"  interface names, values being implementation names. Allow changing this"},{"line_number":137,"context_line":"  value via the usual update API."},{"line_number":138,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_378007f7","line":135,"updated":"2015-10-08 09:05:38.000000000","message":"Default is {} and use default values from config file?","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8e6faaf63810ab08072add911aadc67a29a0898","unresolved":false,"context_lines":[{"line_number":133,"context_line":"    define __slots__ on the driver class to reduce this effect."},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"* Add new node field ``driver_interfaces`` - dict with keys being changeable"},{"line_number":136,"context_line":"  interface names, values being implementation names. Allow changing this"},{"line_number":137,"context_line":"  value via the usual update API."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"  On changing this field, validate that the current driver (or a new one, if"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_26d229d3","line":136,"updated":"2015-10-07 21:56:58.000000000","message":"an interface name is something like \u0027boot\u0027. How is that changeable? Or do you mean its value can be changed?","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"b8e6faaf63810ab08072add911aadc67a29a0898","unresolved":false,"context_lines":[{"line_number":134,"context_line":""},{"line_number":135,"context_line":"* Add new node field ``driver_interfaces`` - dict with keys being changeable"},{"line_number":136,"context_line":"  interface names, values being implementation names. Allow changing this"},{"line_number":137,"context_line":"  value via the usual update API."},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"  On changing this field, validate that the current driver (or a new one, if"},{"line_number":140,"context_line":"  it\u0027s also updated) supports given interfaces. Validate that core interfaces"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_e603d140","line":137,"updated":"2015-10-07 21:56:58.000000000","message":"By \u0027changing this value\u0027, you mean anything in driver_interfaces?\n\nAnd the node\u0027s driver field will now have the new driver names? (We\u0027ll do the mapping between old driver name to new driver name?)","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"5d5951d5dac7358ebb4a23e35dc56e376912be31","unresolved":false,"context_lines":[{"line_number":163,"context_line":"* What if we have two conductors, with in-band inspection enabled only one of"},{"line_number":164,"context_line":"  them?"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"* Do we need a separate API and/or a separate table for ``driver_interfaces``"},{"line_number":167,"context_line":"  field on a node?"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_d7ed13b8","line":166,"updated":"2015-10-08 09:05:38.000000000","message":"+1 for table, maybe user wants  requests like \"get all nodes with deploy interface \u0027foo\u0027\".","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c44ef3eb1ac2ae6adb35db7417f40f75bada4923","unresolved":false,"context_lines":[{"line_number":163,"context_line":"* What if we have two conductors, with in-band inspection enabled only one of"},{"line_number":164,"context_line":"  them?"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"* Do we need a separate API and/or a separate table for ``driver_interfaces``"},{"line_number":167,"context_line":"  field on a node?"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7a2fa921_b8c0037e","line":166,"in_reply_to":"7a2fa921_d7ed13b8","updated":"2015-10-12 13:03:23.000000000","message":"Done","commit_id":"6eebb420d33f2a1d2b3f5038b5411145a8c0e8c2"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2c0b5a4bc6a68714b830c2452fd159c2d39cc9be","unresolved":false,"context_lines":[{"line_number":54,"context_line":"interface as it\u0027s designed for vendor additions."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"This spec proposes redefining a driver as power + management + passthru"},{"line_number":57,"context_line":"interfaces with other interfaces being changeable by an operator."},{"line_number":58,"context_line":"It is done by moving binding interface-driver to Stevedore entry points."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"The core concept of the new schema will be a **driver** which is now"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da85f559_fe43ba6a","line":57,"updated":"2015-11-08 23:27:17.000000000","message":"It\u0027s interesting - \"vendor passthru\" is intended for vendors, however we also use it for deploy drivers. Is part of the work defined for this to promote the deploy-related vendor passthru things? Can we make a note of it here somewhere?","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":58,"context_line":"It is done by moving binding interface-driver to Stevedore entry points."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"The core concept of the new schema will be a **driver** which is now"},{"line_number":61,"context_line":"vendor-driven. Driver is defined by the management capabilities of the"},{"line_number":62,"context_line":"particular type of hardware, and will be the same as ``power`` interface. So"},{"line_number":63,"context_line":"we\u0027ll end up with the following drivers: ``ipmitool``, ``pyghmi``, ``drac``,"},{"line_number":64,"context_line":"``ilo``, ``irmc``, ``ucsm`` and so on. The vendor will dictate the default set"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_bc3bded0","line":61,"updated":"2015-10-20 00:12:06.000000000","message":"\"is now vendor-driven\" isn\u0027t clear to me.\nPerhaps \"is now the short name of the hardware class\" would be better.","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"957bbf60420640aa5e4d5fb8adacd0ccef6d456a","unresolved":false,"context_lines":[{"line_number":58,"context_line":"It is done by moving binding interface-driver to Stevedore entry points."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"The core concept of the new schema will be a **driver** which is now"},{"line_number":61,"context_line":"vendor-driven. Driver is defined by the management capabilities of the"},{"line_number":62,"context_line":"particular type of hardware, and will be the same as ``power`` interface. So"},{"line_number":63,"context_line":"we\u0027ll end up with the following drivers: ``ipmitool``, ``pyghmi``, ``drac``,"},{"line_number":64,"context_line":"``ilo``, ``irmc``, ``ucsm`` and so on. The vendor will dictate the default set"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_bd66f827","line":61,"in_reply_to":"3a29b11f_bc3bded0","updated":"2015-10-22 11:46:24.000000000","message":"Done","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":61,"context_line":"vendor-driven. Driver is defined by the management capabilities of the"},{"line_number":62,"context_line":"particular type of hardware, and will be the same as ``power`` interface. So"},{"line_number":63,"context_line":"we\u0027ll end up with the following drivers: ``ipmitool``, ``pyghmi``, ``drac``,"},{"line_number":64,"context_line":"``ilo``, ``irmc``, ``ucsm`` and so on. The vendor will dictate the default set"},{"line_number":65,"context_line":"of interfaces a driver will provide. For example, ``ipmitool`` driver will use"},{"line_number":66,"context_line":"``pxe`` boot, ``iscsi`` deploy and no inspection. The hash ring will be built"},{"line_number":67,"context_line":"around these drivers."}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_dc36dae6","line":64,"updated":"2015-10-20 00:12:06.000000000","message":"\"The vendor will dictate\" -- I\u0027m not sure if you mean the company behind it\n(eg, Dell for the \u0027drac\u0027 driver) or something else. Clearly, that doesn\u0027t make\nsense in cases of community-supported drivers (ipmitool, snmp, ssh) so I think\nyou mean something[MaA[Ma@ more like \"The new hardware-specific base class will specify\na default set of interfaces, some of which may be changed at run-time.\"","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"957bbf60420640aa5e4d5fb8adacd0ccef6d456a","unresolved":false,"context_lines":[{"line_number":61,"context_line":"vendor-driven. Driver is defined by the management capabilities of the"},{"line_number":62,"context_line":"particular type of hardware, and will be the same as ``power`` interface. So"},{"line_number":63,"context_line":"we\u0027ll end up with the following drivers: ``ipmitool``, ``pyghmi``, ``drac``,"},{"line_number":64,"context_line":"``ilo``, ``irmc``, ``ucsm`` and so on. The vendor will dictate the default set"},{"line_number":65,"context_line":"of interfaces a driver will provide. For example, ``ipmitool`` driver will use"},{"line_number":66,"context_line":"``pxe`` boot, ``iscsi`` deploy and no inspection. The hash ring will be built"},{"line_number":67,"context_line":"around these drivers."}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_dd6974fa","line":64,"in_reply_to":"3a29b11f_dc36dae6","updated":"2015-10-22 11:46:24.000000000","message":"Done","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":66,"context_line":"``pxe`` boot, ``iscsi`` deploy and no inspection. The hash ring will be built"},{"line_number":67,"context_line":"around these drivers."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"We will introduce the first class **interface** concept. Interfaces will have"},{"line_number":70,"context_line":"their own setuptools entry points (and thus their own short names). We will use"},{"line_number":71,"context_line":"the configuration file to declare supported combinations between"},{"line_number":72,"context_line":"drivers and interfaces. We will assume that all conductors have the same set"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_7c3546d8","line":69,"updated":"2015-10-20 00:12:06.000000000","message":"The term \"interface\" already has semantic meaning in this space: each of \"boot\",\n\"power\", \"deploy\", \"management\", \"console\", etc, are interfaces.","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"957bbf60420640aa5e4d5fb8adacd0ccef6d456a","unresolved":false,"context_lines":[{"line_number":66,"context_line":"``pxe`` boot, ``iscsi`` deploy and no inspection. The hash ring will be built"},{"line_number":67,"context_line":"around these drivers."},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"We will introduce the first class **interface** concept. Interfaces will have"},{"line_number":70,"context_line":"their own setuptools entry points (and thus their own short names). We will use"},{"line_number":71,"context_line":"the configuration file to declare supported combinations between"},{"line_number":72,"context_line":"drivers and interfaces. We will assume that all conductors have the same set"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_9d6f7cfb","line":69,"in_reply_to":"3a29b11f_7c3546d8","updated":"2015-10-22 11:46:24.000000000","message":"I wanted to put emphasize on \"first class\". I\u0027ll rephrase.","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":94,"context_line":"* Create a set of vendor-specific drivers, based on the vendor-chosen name."},{"line_number":95,"context_line":"  E.g. in ``setup.cfg``::"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    ironic.drivers \u003d"},{"line_number":98,"context_line":"        drac \u003d ironic.drivers.drac.DracDriver"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"  The existing drivers are left for compatibility, a hardcoded set of"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_9c3062ea","line":97,"updated":"2015-10-20 00:12:06.000000000","message":"I think we should use a new location. That will allow us to more easily deprecate the current\nentrypoint over (a long, long) time. Perhaps \"ironic.dynamic_drivers \u003d ...\" ?","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"957bbf60420640aa5e4d5fb8adacd0ccef6d456a","unresolved":false,"context_lines":[{"line_number":94,"context_line":"* Create a set of vendor-specific drivers, based on the vendor-chosen name."},{"line_number":95,"context_line":"  E.g. in ``setup.cfg``::"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    ironic.drivers \u003d"},{"line_number":98,"context_line":"        drac \u003d ironic.drivers.drac.DracDriver"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"  The existing drivers are left for compatibility, a hardcoded set of"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_bd4d989b","line":97,"in_reply_to":"3a29b11f_9c3062ea","updated":"2015-10-22 11:46:24.000000000","message":"Done","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    ironic.drivers \u003d"},{"line_number":98,"context_line":"        drac \u003d ironic.drivers.drac.DracDriver"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"  The existing drivers are left for compatibility, a hardcoded set of"},{"line_number":101,"context_line":"  interface implementations is provided for them."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"* Create a new set of entry points"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_3c4eee6f","line":100,"updated":"2015-10-20 00:12:06.000000000","message":"s/drivers are left/entrypoints will continue to be registered/","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"957bbf60420640aa5e4d5fb8adacd0ccef6d456a","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    ironic.drivers \u003d"},{"line_number":98,"context_line":"        drac \u003d ironic.drivers.drac.DracDriver"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"  The existing drivers are left for compatibility, a hardcoded set of"},{"line_number":101,"context_line":"  interface implementations is provided for them."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"* Create a new set of entry points"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_dd509434","line":100,"in_reply_to":"3a29b11f_3c4eee6f","updated":"2015-10-22 11:46:24.000000000","message":"Done","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":100,"context_line":"  The existing drivers are left for compatibility, a hardcoded set of"},{"line_number":101,"context_line":"  interface implementations is provided for them."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"* Create a new set of entry points"},{"line_number":104,"context_line":"  ``ironic.driver-interfaces.\u003cinterface_name\u003e`` which declare possible"},{"line_number":105,"context_line":"  implementations for each interface, e.g.::"},{"line_number":106,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_5c516a0d","line":103,"updated":"2015-10-20 00:12:06.000000000","message":"what, if any, is the deprecation plan for existing entrypoints / driver names?","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"957bbf60420640aa5e4d5fb8adacd0ccef6d456a","unresolved":false,"context_lines":[{"line_number":100,"context_line":"  The existing drivers are left for compatibility, a hardcoded set of"},{"line_number":101,"context_line":"  interface implementations is provided for them."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"* Create a new set of entry points"},{"line_number":104,"context_line":"  ``ironic.driver-interfaces.\u003cinterface_name\u003e`` which declare possible"},{"line_number":105,"context_line":"  implementations for each interface, e.g.::"},{"line_number":106,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_bd34b8fb","line":103,"in_reply_to":"3a29b11f_5c516a0d","updated":"2015-10-22 11:46:24.000000000","message":"Didn\u0027t think about it. I think we can land backlog spec without a good deprecation plan at all.","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2c0b5a4bc6a68714b830c2452fd159c2d39cc9be","unresolved":false,"context_lines":[{"line_number":101,"context_line":"  interface implementations is provided for them."},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"* Create a new set of entry points"},{"line_number":104,"context_line":"  ``ironic.driver-interfaces.\u003cinterface_name\u003e`` which declare possible"},{"line_number":105,"context_line":"  implementations for each interface, e.g.::"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    ironic.driver-interfaces.boot \u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"da85f559_1e49de8b","line":104,"updated":"2015-11-08 23:27:17.000000000","message":"Nit: I think due to $python_things this will need to s/-/_/. Not 100% sure though and it isn\u0027t a big deal","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":115,"context_line":"  Each driver group will have these configuration options, one for each type of"},{"line_number":116,"context_line":"  interface:"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"  * ``\u003cinterface_name\u003e_interfaces``: comma-separated list of supported"},{"line_number":119,"context_line":"      interface implementations;"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"  * ``default_\u003cinterface_name\u003e_interface``: a default implementation"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_fc571600","line":118,"updated":"2015-10-20 00:12:06.000000000","message":"I think this option name would be more clear as \"enabled_\u003cname\u003e_interfaces\"","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"957bbf60420640aa5e4d5fb8adacd0ccef6d456a","unresolved":false,"context_lines":[{"line_number":115,"context_line":"  Each driver group will have these configuration options, one for each type of"},{"line_number":116,"context_line":"  interface:"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"  * ``\u003cinterface_name\u003e_interfaces``: comma-separated list of supported"},{"line_number":119,"context_line":"      interface implementations;"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"  * ``default_\u003cinterface_name\u003e_interface``: a default implementation"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_dd3734fd","line":118,"in_reply_to":"3a29b11f_fc571600","updated":"2015-10-22 11:46:24.000000000","message":"Done","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":143,"context_line":""},{"line_number":144,"context_line":"  However, interface implementations themselves will stay singletons, and will"},{"line_number":145,"context_line":"  be preloaded during the start up and stored in a new ``enabled_interfaces``"},{"line_number":146,"context_line":"  attribute of a driver class."},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"  .. note::"},{"line_number":149,"context_line":"    This will somewhat increase the memory usage per node. We can probably"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_1c5bf22f","line":146,"updated":"2015-10-20 00:12:06.000000000","message":"Is there any benefit to this approach as opposed to creating singletons of each\ncombination of interfaces that get loaded?","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"957bbf60420640aa5e4d5fb8adacd0ccef6d456a","unresolved":false,"context_lines":[{"line_number":143,"context_line":""},{"line_number":144,"context_line":"  However, interface implementations themselves will stay singletons, and will"},{"line_number":145,"context_line":"  be preloaded during the start up and stored in a new ``enabled_interfaces``"},{"line_number":146,"context_line":"  attribute of a driver class."},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"  .. note::"},{"line_number":149,"context_line":"    This will somewhat increase the memory usage per node. We can probably"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_7d3aa0e8","line":146,"in_reply_to":"3a29b11f_1c5bf22f","updated":"2015-10-22 11:46:24.000000000","message":"Done","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":147,"context_line":""},{"line_number":148,"context_line":"  .. note::"},{"line_number":149,"context_line":"    This will somewhat increase the memory usage per node. We can probably"},{"line_number":150,"context_line":"    define __slots__ on the driver class to reduce this effect."},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"* Modify driver-specific periodic tasks code to also collect periodic tasks"},{"line_number":153,"context_line":"  for *enabled* interfaces of every driver."}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_bc42fe3c","line":150,"updated":"2015-10-20 00:12:06.000000000","message":"please elaborate on __slot[Ma@s__ and how this will help","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"957bbf60420640aa5e4d5fb8adacd0ccef6d456a","unresolved":false,"context_lines":[{"line_number":147,"context_line":""},{"line_number":148,"context_line":"  .. note::"},{"line_number":149,"context_line":"    This will somewhat increase the memory usage per node. We can probably"},{"line_number":150,"context_line":"    define __slots__ on the driver class to reduce this effect."},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"* Modify driver-specific periodic tasks code to also collect periodic tasks"},{"line_number":153,"context_line":"  for *enabled* interfaces of every driver."}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_9d3d3cdf","line":150,"in_reply_to":"3a29b11f_bc42fe3c","updated":"2015-10-22 11:46:24.000000000","message":"Done","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":161,"context_line":"  ``NULL`` will be allowed in every column, the vendor-specific"},{"line_number":162,"context_line":"  default will be used in this case."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":165,"context_line":"  checks that the driver supports all the provided interfaces."},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"* Add new API ``GET /v1/drivers/DRIVER/interfaces`` reporting the list of"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_dc3d7abc","line":164,"updated":"2015-10-20 00:12:06.000000000","message":"This requires the API request (and API service) to wait for the RPC call to the conductor.","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"957bbf60420640aa5e4d5fb8adacd0ccef6d456a","unresolved":false,"context_lines":[{"line_number":161,"context_line":"  ``NULL`` will be allowed in every column, the vendor-specific"},{"line_number":162,"context_line":"  default will be used in this case."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":165,"context_line":"  checks that the driver supports all the provided interfaces."},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"* Add new API ``GET /v1/drivers/DRIVER/interfaces`` reporting the list of"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_b8028608","line":164,"in_reply_to":"3a29b11f_dc3d7abc","updated":"2015-10-22 11:46:24.000000000","message":"We already wait: https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/node.py#L1208-L1209","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":171,"context_line":"  list API."},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"Questions / Alternatives"},{"line_number":174,"context_line":"------------------------"},{"line_number":175,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_7c4c6670","line":172,"updated":"2015-10-20 00:12:06.000000000","message":"What is the API request whereby a user changes the selected interface for a given node? How is that request validated? What error codes might it generate?\n\nWhat behavior could be expected if an interface is changed on an already-provisioned node? Eg, the user changes boot_interface from PXE to VMEDIA on a running instance. I can think of cases where this makes sense, and cases where it does not. Do we prevent changing interfaces except for when the Node is in speciic states (eg, MANAGEABLE)?","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3eee413eec138b288007d4d2b6177aed0bc59e8c","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":171,"context_line":"  list API."},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"Questions / Alternatives"},{"line_number":174,"context_line":"------------------------"},{"line_number":175,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_d1a015f7","line":172,"updated":"2015-10-19 16:54:01.000000000","message":"What\u0027s the user flow for registering/creating a node?\n\nWe have \u0027ironic node-create -d \u003cdriver\u003e ...\u0027. \u003cdriver\u003e would be one of the names in setup.cfg. But we\u0027d also allow them to change any of the interfaces? Eg, what would \u0027ironic node-create -d agent_ilo ..\u0027 do, versus \u0027ironic node-create -d drac\u0027 ? with, without specifying any interfaces (and how does the user specify an interface?)\n\nand we have \u0027ironic driver-list\u0027, \u0027ironic driver-properties\u0027, \u0027ironic driver-show\u0027. Will they change? What will they show? info wrt the default interfaces?\n\nInstead of \u0027driver\u0027, will we have new \u0027interface\u0027 commands?\n\nIf a driver is updated, all interfaces will be replaced by the new driver (default) interfaces + explicit interfaces that were specified, right?","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"957bbf60420640aa5e4d5fb8adacd0ccef6d456a","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"},{"line_number":171,"context_line":"  list API."},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"Questions / Alternatives"},{"line_number":174,"context_line":"------------------------"},{"line_number":175,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_78f2ae07","line":172,"in_reply_to":"3a29b11f_7c4c6670","updated":"2015-10-22 11:46:24.000000000","message":"\u003e  how does the user specify an interface?\n\nsee Deva\u0027s suggestion\n\n\u003e and we have \u0027ironic driver-list\u0027, \u0027ironic driver-properties\u0027, \u0027ironic driver-show\u0027. Will they change?\n\ndriver-list and driver-show probably won\u0027t change, driver-properties... good question, need to think\n\n\u003e What behavior could be expected if an interface is changed on an already-provisioned node? Eg, the user changes boot_interface from PXE to VMEDIA on a running instance.\n\nI suggest preventing it for now, unless driver is also changed. The latter is because we do allow changing a driver for a running instance IIRC.","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":174,"context_line":"------------------------"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"* This spec does not specify how to prevent two conductors with the same"},{"line_number":177,"context_line":"  driver from having a different set of interfaces enabled."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"* We could have a separate table for the interfaces, but it would result in a"},{"line_number":180,"context_line":"  much more complex API without huge benefits."}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_9c47024b","line":177,"updated":"2015-10-20 00:12:06.000000000","message":"That could be done by adding a new \"driver_interfaces\" table with this structure:\n\n  `id` INT PK,\n  `conductor_id` INT FOREIGN KEY `conductors`.`id`,\n  `driver_name` VARCHAR NOT NULL,\n  `inteface_name` VARCHAR NOT NULL,\n  INDEX (driver_name, interface_name)\n\nand then, during conductor initialization,\n\n  SELECT DISTINCT driver_name, interface_name FROM \u003cnewtable\u003e\n  JOIN conductors ON conductor_id \u003d conductors.id\n  WHERE \u003cconductor is online\u003e\n\nand comparing that list to the configuration of the conductor that is starting up.\nIf something doesn\u0027t match, that conductor shuts down and logs an error.","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"957bbf60420640aa5e4d5fb8adacd0ccef6d456a","unresolved":false,"context_lines":[{"line_number":174,"context_line":"------------------------"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"* This spec does not specify how to prevent two conductors with the same"},{"line_number":177,"context_line":"  driver from having a different set of interfaces enabled."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"* We could have a separate table for the interfaces, but it would result in a"},{"line_number":180,"context_line":"  much more complex API without huge benefits."}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_18e29a2f","line":177,"in_reply_to":"3a29b11f_9c47024b","updated":"2015-10-22 11:46:24.000000000","message":"Done","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"9051896f175d4e7c111d545a82dba505ba504dc3","unresolved":false,"context_lines":[{"line_number":177,"context_line":"  driver from having a different set of interfaces enabled."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"* We could have a separate table for the interfaces, but it would result in a"},{"line_number":180,"context_line":"  much more complex API without huge benefits."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"* We could put interfaces under a new JSON key on a node. However, we\u0027re"},{"line_number":183,"context_line":"  trying to move away from informaly defined JSON keys. It would also prevent"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_3c758e97","line":180,"updated":"2015-10-20 00:12:06.000000000","message":"As I\u0027ve just proposed above, I think a purely internal table can be used\nto ensure consistency between the drivers. It doesn\u0027t need to be exposed\nin the API at all.","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3eee413eec138b288007d4d2b6177aed0bc59e8c","unresolved":false,"context_lines":[{"line_number":177,"context_line":"  driver from having a different set of interfaces enabled."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"* We could have a separate table for the interfaces, but it would result in a"},{"line_number":180,"context_line":"  much more complex API without huge benefits."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"* We could put interfaces under a new JSON key on a node. However, we\u0027re"},{"line_number":183,"context_line":"  trying to move away from informaly defined JSON keys. It would also prevent"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a29b11f_716d8103","line":180,"updated":"2015-10-19 16:54:01.000000000","message":"you mean for a node\u0027s driver interfaces? Any migrations wouldn\u0027t affect the node table itself. Although I don\u0027t think that is a compelling argument.","commit_id":"1c850491a9a2b759143aa0c1ad2fab455572251a"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"e24b6c001682dfe3425667084473f558ab56286c","unresolved":false,"context_lines":[{"line_number":72,"context_line":"drivers and interfaces. We will assume that all conductors have the same set"},{"line_number":73,"context_line":"of interfaces for the same driver, so that not to overcomplicate the hash ring"},{"line_number":74,"context_line":"implementation. There is no way we can enforce it right now, so it must be"},{"line_number":75,"context_line":"clearly documented."},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"On start up the conductor loads all enabled drivers. After that it loads and"},{"line_number":78,"context_line":"caches all enabled interface implementations to minimize runtime overhead"}],"source_content_type":"text/x-rst","patch_set":6,"id":"bae84128_1b5721cf","line":75,"updated":"2016-02-22 16:42:19.000000000","message":"how will rolling upgrades be handled when the next version of conductor introduces a new interface?","commit_id":"1dd0813b1461dbca4785861daaa57fb4568d054f"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"dfd1c339ce7df79ca442a04f237fbb52482765ff","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Proposal for some standard interfaces names:"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"* ``deploy``: ``iscsi``, ``direct``;"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"* ``boot``: ``pxe``, ``ipxe``, ``vmedia_ilo``, ``vmedia_irmc``;"},{"line_number":86,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"7a740942_e41bc11a","line":83,"updated":"2015-12-11 10:17:53.000000000","message":"if \u0027direct\u0027 means current IPA, a better name would be \u0027http\u0027 IMO (as with \u0027iscsi\u0027 describing the general way how node disk gets the image content)","commit_id":"1dd0813b1461dbca4785861daaa57fb4568d054f"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"e24b6c001682dfe3425667084473f558ab56286c","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Proposal for some standard interfaces names:"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"* ``deploy``: ``iscsi``, ``direct``;"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"* ``boot``: ``pxe``, ``ipxe``, ``vmedia_ilo``, ``vmedia_irmc``;"},{"line_number":86,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"bae84128_7bb8ede5","line":83,"in_reply_to":"7a740942_e41bc11a","updated":"2016-02-22 16:42:19.000000000","message":"I agree. \"iscsi\" is a protocol. I would thus use \"http\" for the \"agent fetches the image from an HTTP source\". If later we add other means (rbd, bittorrent, ...) we should name those interfaces similarly based on the protocol.","commit_id":"1dd0813b1461dbca4785861daaa57fb4568d054f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d29abc153b30d86659060ccdf55741811b3c40fd","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"Proposal for some standard interfaces names:"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"* ``deploy``: ``iscsi``, ``direct``;"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"* ``boot``: ``pxe``, ``ipxe``, ``vmedia_ilo``, ``vmedia_irmc``;"},{"line_number":86,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"1a122d0e_136aec1a","line":83,"in_reply_to":"bae84128_7bb8ede5","updated":"2016-04-15 09:43:25.000000000","message":"Done","commit_id":"1dd0813b1461dbca4785861daaa57fb4568d054f"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"e24b6c001682dfe3425667084473f558ab56286c","unresolved":false,"context_lines":[{"line_number":164,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":165,"context_line":"  checks that the driver supports all the provided interfaces."},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"* Add new API ``GET /v1/drivers/DRIVER/interfaces`` reporting the list of"},{"line_number":168,"context_line":"  enabled interfaces for a driver."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"}],"source_content_type":"text/x-rst","patch_set":6,"id":"bae84128_8da6580e","line":167,"updated":"2016-02-22 16:42:19.000000000","message":"what about changing the XXX interface on a Node? Eg,\n\n  PATCH /v1/nodes/NNNN/interfaces {\u0027op\u0027: \u0027replace\u0027, \u0027key\u0027: \u0027boot\u0027, \u0027value\u0027: \u0027ipxe\u0027}","commit_id":"1dd0813b1461dbca4785861daaa57fb4568d054f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d29abc153b30d86659060ccdf55741811b3c40fd","unresolved":false,"context_lines":[{"line_number":164,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":165,"context_line":"  checks that the driver supports all the provided interfaces."},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"* Add new API ``GET /v1/drivers/DRIVER/interfaces`` reporting the list of"},{"line_number":168,"context_line":"  enabled interfaces for a driver."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1a122d0e_937d5cea","line":167,"in_reply_to":"bae84128_7cd50be3","updated":"2016-04-15 09:43:25.000000000","message":"One more API to set the interfaces looks redundant to me. Or do you want the new fields to be not be updateable via regular node update? It will be quite inconsistent with how we update the driver..","commit_id":"1dd0813b1461dbca4785861daaa57fb4568d054f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"e217f8b415cc2ed82c584f77e15b91c2ae63e875","unresolved":false,"context_lines":[{"line_number":164,"context_line":"* Every time driver and/or any of interface field is updated, the conductor"},{"line_number":165,"context_line":"  checks that the driver supports all the provided interfaces."},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"* Add new API ``GET /v1/drivers/DRIVER/interfaces`` reporting the list of"},{"line_number":168,"context_line":"  enabled interfaces for a driver."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"* Allow filtering nodes by ``\u003cinterface_name\u003e_interface`` fields in the node"}],"source_content_type":"text/x-rst","patch_set":6,"id":"bae84128_7cd50be3","line":167,"in_reply_to":"bae84128_8da6580e","updated":"2016-02-24 14:56:10.000000000","message":"And also allow this change only when node is in some set of states (e.g. like we do for network provider)","commit_id":"1dd0813b1461dbca4785861daaa57fb4568d054f"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"e24b6c001682dfe3425667084473f558ab56286c","unresolved":false,"context_lines":[{"line_number":173,"context_line":"Questions / Alternatives"},{"line_number":174,"context_line":"------------------------"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"* This spec does not specify how to prevent two conductors with the same"},{"line_number":177,"context_line":"  driver from having a different set of interfaces enabled."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"* We could have a separate table for the interfaces, but it would result in a"}],"source_content_type":"text/x-rst","patch_set":6,"id":"bae84128_6d24b4ae","line":176,"updated":"2016-02-22 16:42:19.000000000","message":"we should prevent that.\n\none way is to ALTER the `conductors` table to include the interfaces, or add another table (with a 1:N) relationship to store this info. It does not ever need to be exposed in the REST API, and could be checked during conductor start-up to ensure homogenaeity in the cluster.\n\nHowever, that would prevent a rolling config update / software upgrade ....\n\nSo, I think it\u0027s worth having the table to track this, and then LOG a warning if something\u0027s out of sync.","commit_id":"1dd0813b1461dbca4785861daaa57fb4568d054f"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"e24b6c001682dfe3425667084473f558ab56286c","unresolved":false,"context_lines":[{"line_number":176,"context_line":"* This spec does not specify how to prevent two conductors with the same"},{"line_number":177,"context_line":"  driver from having a different set of interfaces enabled."},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"* We could have a separate table for the interfaces, but it would result in a"},{"line_number":180,"context_line":"  much more complex API without huge benefits."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"* We could put interfaces under a new JSON key on a node. However, we\u0027re"}],"source_content_type":"text/x-rst","patch_set":6,"id":"bae84128_cd3b40d0","line":179,"updated":"2016-02-22 16:42:19.000000000","message":"separate internal table +1\nexpose it in the REST API -1\n\nSee comment above","commit_id":"1dd0813b1461dbca4785861daaa57fb4568d054f"},{"author":{"_account_id":2889,"name":"Aeva Black","email":"aeva.online@gmail.com","username":"tenbrae"},"change_message_id":"e24b6c001682dfe3425667084473f558ab56286c","unresolved":false,"context_lines":[{"line_number":183,"context_line":"  trying to move away from informaly defined JSON keys. It would also prevent"},{"line_number":184,"context_line":"  us from implement filtering nodes based on a particular interface."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"* Do we need ``none`` (note that it\u0027s different from a Python ``None``) value"},{"line_number":187,"context_line":"  to indicate that the interface should be disabled?"}],"source_content_type":"text/x-rst","patch_set":6,"id":"bae84128_ad3d1cbd","line":186,"updated":"2016-02-22 16:42:19.000000000","message":"We do need a way to disable an interface.\n\nBut why is a python None insufficient for this?","commit_id":"1dd0813b1461dbca4785861daaa57fb4568d054f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d29abc153b30d86659060ccdf55741811b3c40fd","unresolved":false,"context_lines":[{"line_number":183,"context_line":"  trying to move away from informaly defined JSON keys. It would also prevent"},{"line_number":184,"context_line":"  us from implement filtering nodes based on a particular interface."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"* Do we need ``none`` (note that it\u0027s different from a Python ``None``) value"},{"line_number":187,"context_line":"  to indicate that the interface should be disabled?"}],"source_content_type":"text/x-rst","patch_set":6,"id":"1a122d0e_f382d0c7","line":186,"in_reply_to":"bae84128_ad3d1cbd","updated":"2016-04-15 09:43:25.000000000","message":"Done","commit_id":"1dd0813b1461dbca4785861daaa57fb4568d054f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"e217f8b415cc2ed82c584f77e15b91c2ae63e875","unresolved":false,"context_lines":[{"line_number":183,"context_line":"  trying to move away from informaly defined JSON keys. It would also prevent"},{"line_number":184,"context_line":"  us from implement filtering nodes based on a particular interface."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"* Do we need ``none`` (note that it\u0027s different from a Python ``None``) value"},{"line_number":187,"context_line":"  to indicate that the interface should be disabled?"}],"source_content_type":"text/x-rst","patch_set":6,"id":"bae84128_79a4fd49","line":186,"in_reply_to":"bae84128_ad3d1cbd","updated":"2016-02-24 14:56:10.000000000","message":"IIUC it is proposed to use None to denote that default should be used. It might make more sense to use None to disable interface and e.g. \u0027default\u0027 to use default interface from config.","commit_id":"1dd0813b1461dbca4785861daaa57fb4568d054f"}]}
