)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This adds API version 1.30, which adds dynamic driver parameters"},{"line_number":10,"context_line":"and response fields to `GET /v1/drivers` and `GET /v1/drivers/\u003cname\u003e`."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Changes RAID APIs to work for dynamic drivers."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Also changes GET /v1/drivers/\u003cname\u003e/properties to work for dynamic"},{"line_number":15,"context_line":"drivers. It uses the calculated default implementation for each"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"3a461143_a7c45c5f","line":12,"updated":"2017-01-26 16:59:11.000000000","message":"I thought this meant the REST API. I didn\u0027t see where any API was changed. You just fixed the code in conductor so it\u0027d work?","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"}],"doc/source/dev/webapi-version-history.rst":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"432856d7ca677587ec3046136e060f84286a9d80","unresolved":false,"context_lines":[{"line_number":29,"context_line":"        * default_raid_interface: entrypoint name of the calculated default raid interface."},{"line_number":30,"context_line":"        * default_storage_interface: entrypoint name of the calculated default storage interface."},{"line_number":31,"context_line":"        * default_vendor_interface: entrypoint name of the calculated default vendor interface."},{"line_number":32,"context_line":"        * enabled_boot_interface: list of entrypoint names of enabled boot interfaces."},{"line_number":33,"context_line":"        * enabled_console_interface: list of entrypoint names of enabled console interfaces."},{"line_number":34,"context_line":"        * enabled_deploy_interface: list of entrypoint names of enabled deploy interfaces."},{"line_number":35,"context_line":"        * enabled_inspect_interface: list of entrypoint names of enabled inspect interfaces."}],"source_content_type":"text/x-rst","patch_set":15,"id":"5a3905b3_0cef661e","line":32,"range":{"start_line":32,"start_character":10,"end_line":32,"end_character":32},"updated":"2017-01-24 14:08:27.000000000","message":"s missing at the end everywhere :)","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"7fd7e649c82ac4ea2ac6b48f81468f6e70094592","unresolved":false,"context_lines":[{"line_number":29,"context_line":"        * default_raid_interface: entrypoint name of the calculated default raid interface."},{"line_number":30,"context_line":"        * default_storage_interface: entrypoint name of the calculated default storage interface."},{"line_number":31,"context_line":"        * default_vendor_interface: entrypoint name of the calculated default vendor interface."},{"line_number":32,"context_line":"        * enabled_boot_interface: list of entrypoint names of enabled boot interfaces."},{"line_number":33,"context_line":"        * enabled_console_interface: list of entrypoint names of enabled console interfaces."},{"line_number":34,"context_line":"        * enabled_deploy_interface: list of entrypoint names of enabled deploy interfaces."},{"line_number":35,"context_line":"        * enabled_inspect_interface: list of entrypoint names of enabled inspect interfaces."}],"source_content_type":"text/x-rst","patch_set":15,"id":"5a3905b3_db651145","line":32,"range":{"start_line":32,"start_character":10,"end_line":32,"end_character":32},"in_reply_to":"5a3905b3_0cef661e","updated":"2017-01-24 14:48:44.000000000","message":"Done","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"432856d7ca677587ec3046136e060f84286a9d80","unresolved":false,"context_lines":[{"line_number":48,"context_line":"      /v1/drivers/\u003cname\u003e/vendor_passthru, and GET/POST"},{"line_number":49,"context_line":"      /v1/nodes/\u003cname\u003e/vendor_passthru now support dynamic drivers. The first"},{"line_number":50,"context_line":"      two of these use the calculated default vendor implementation for the"},{"line_number":51,"context_line":"      driver, and the last uses the vendor implementation set for the node."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"**1.29** (Ocata)"}],"source_content_type":"text/x-rst","patch_set":15,"id":"5a3905b3_6c4e2a3c","line":51,"range":{"start_line":51,"start_character":36,"end_line":51,"end_character":74},"updated":"2017-01-24 14:08:27.000000000","message":"Hm, there is no way to set it from API yet.","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"7fd7e649c82ac4ea2ac6b48f81468f6e70094592","unresolved":false,"context_lines":[{"line_number":48,"context_line":"      /v1/drivers/\u003cname\u003e/vendor_passthru, and GET/POST"},{"line_number":49,"context_line":"      /v1/nodes/\u003cname\u003e/vendor_passthru now support dynamic drivers. The first"},{"line_number":50,"context_line":"      two of these use the calculated default vendor implementation for the"},{"line_number":51,"context_line":"      driver, and the last uses the vendor implementation set for the node."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"**1.29** (Ocata)"}],"source_content_type":"text/x-rst","patch_set":15,"id":"5a3905b3_5b520168","line":51,"range":{"start_line":51,"start_character":36,"end_line":51,"end_character":74},"in_reply_to":"5a3905b3_6c4e2a3c","updated":"2017-01-24 14:48:44.000000000","message":"... somehow I thought that was done already. Another patch coming, I guess :)","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d64991a456054c5fdb17e74e60bf123d78b926c7","unresolved":false,"context_lines":[{"line_number":27,"context_line":"        * default_network_interface: entrypoint name of the calculated default network interface."},{"line_number":28,"context_line":"        * default_power_interface: entrypoint name of the calculated default power interface."},{"line_number":29,"context_line":"        * default_raid_interface: entrypoint name of the calculated default raid interface."},{"line_number":30,"context_line":"        * default_storage_interface: entrypoint name of the calculated default storage interface."},{"line_number":31,"context_line":"        * default_vendor_interface: entrypoint name of the calculated default vendor interface."},{"line_number":32,"context_line":"        * enabled_boot_interfaces: list of entrypoint names of enabled boot interfaces."},{"line_number":33,"context_line":"        * enabled_console_interfaces: list of entrypoint names of enabled console interfaces."}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a3905b3_5a99ed1e","line":30,"updated":"2017-01-25 09:39:34.000000000","message":"we don\u0027t expose storage_interface yet","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e26c4074e4417427acca90fb6c63a6c9b10712fc","unresolved":false,"context_lines":[{"line_number":27,"context_line":"        * default_network_interface: entrypoint name of the calculated default network interface."},{"line_number":28,"context_line":"        * default_power_interface: entrypoint name of the calculated default power interface."},{"line_number":29,"context_line":"        * default_raid_interface: entrypoint name of the calculated default raid interface."},{"line_number":30,"context_line":"        * default_storage_interface: entrypoint name of the calculated default storage interface."},{"line_number":31,"context_line":"        * default_vendor_interface: entrypoint name of the calculated default vendor interface."},{"line_number":32,"context_line":"        * enabled_boot_interfaces: list of entrypoint names of enabled boot interfaces."},{"line_number":33,"context_line":"        * enabled_console_interfaces: list of entrypoint names of enabled console interfaces."}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a3905b3_5d0e42e6","line":30,"in_reply_to":"5a3905b3_5a99ed1e","updated":"2017-01-25 14:36:12.000000000","message":"Ah right, I\u0027ll remove it from actual code too :P","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d64991a456054c5fdb17e74e60bf123d78b926c7","unresolved":false,"context_lines":[{"line_number":37,"context_line":"        * enabled_network_interfaces: list of entrypoint names of enabled network interfaces."},{"line_number":38,"context_line":"        * enabled_power_interfaces: list of entrypoint names of enabled power interfaces."},{"line_number":39,"context_line":"        * enabled_raid_interfaces: list of entrypoint names of enabled raid interfaces."},{"line_number":40,"context_line":"        * enabled_storage_interfaces: list of entrypoint names of enabled storage interfaces."},{"line_number":41,"context_line":"        * enabled_vendor_interfaces: list of entrypoint names of enabled vendor interfaces."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    * GET /v1/drivers/\u003cname\u003e/properties now supports dynamic drivers. It uses"}],"source_content_type":"text/x-rst","patch_set":18,"id":"5a3905b3_7a9ea908","line":40,"updated":"2017-01-25 09:39:34.000000000","message":"ditto","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"0270a6ffbef647a59821dd41a9da440a556f9804","unresolved":false,"context_lines":[{"line_number":2,"context_line":"REST API Version History"},{"line_number":3,"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"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"**1.30** (Ocata)"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    Added dynamic driver APIs."},{"line_number":8,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3a461143_7358af57","line":5,"updated":"2017-01-25 15:46:51.000000000","message":"This require API ref update, probably will be done in a separate patch, I can assist here :)","commit_id":"ccda459fdc5a65512c6c205769e701c7340269e8"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"a72565d09220204d845bd2f85b10a8fad5473e28","unresolved":false,"context_lines":[{"line_number":2,"context_line":"REST API Version History"},{"line_number":3,"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"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"**1.30** (Ocata)"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    Added dynamic driver APIs."},{"line_number":8,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3a461143_961d09c0","line":5,"in_reply_to":"3a461143_7358af57","updated":"2017-01-25 16:05:50.000000000","message":"Yeah, I\u0027d like to do it seperate.","commit_id":"ccda459fdc5a65512c6c205769e701c7340269e8"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"0270a6ffbef647a59821dd41a9da440a556f9804","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    Added dynamic driver APIs."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"    * GET /v1/drivers now accepts a ``type`` parameter (optional, one of"},{"line_number":10,"context_line":"      ``classic`` or ``dynamic``), to limit the result to only classic drivers"},{"line_number":11,"context_line":"      or dynamic drivers (hardware types)."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3a461143_73934ffb","line":9,"updated":"2017-01-25 15:46:51.000000000","message":"It also accepts detail parameter.","commit_id":"ccda459fdc5a65512c6c205769e701c7340269e8"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"a72565d09220204d845bd2f85b10a8fad5473e28","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    Added dynamic driver APIs."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"    * GET /v1/drivers now accepts a ``type`` parameter (optional, one of"},{"line_number":10,"context_line":"      ``classic`` or ``dynamic``), to limit the result to only classic drivers"},{"line_number":11,"context_line":"      or dynamic drivers (hardware types)."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"3a461143_d67dd1e8","line":9,"in_reply_to":"3a461143_73934ffb","updated":"2017-01-25 16:05:50.000000000","message":"+1, done","commit_id":"ccda459fdc5a65512c6c205769e701c7340269e8"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"45df61df8b7fdc9488c07d1551754bcf35b643eb","unresolved":false,"context_lines":[{"line_number":10,"context_line":"      ``classic`` or ``dynamic``), to limit the result to only classic drivers"},{"line_number":11,"context_line":"      or dynamic drivers (hardware types)."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"    * GET /v1/drivers now returns a ``type`` field to show if the driver is"},{"line_number":14,"context_line":"      classic or dynamic."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"    * GET /v1/drivers/\u003cname\u003e now returns a ``type`` field to show if the driver"},{"line_number":17,"context_line":"      is classic or dynamic."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    * GET /v1/drivers/\u003cname\u003e now returns new fields that are null for classic"},{"line_number":20,"context_line":"      drivers, and set as following for dynamic drivers:"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"        * default_boot_interface: entrypoint name of the calculated default boot interface."},{"line_number":23,"context_line":"        * default_console_interface: entrypoint name of the calculated default console interface."}],"source_content_type":"text/x-rst","patch_set":20,"id":"3a461143_76817d8f","line":20,"range":{"start_line":13,"start_character":6,"end_line":20,"end_character":56},"updated":"2017-01-25 16:09:11.000000000","message":"I feel its better to say \"get URL now returns an additional field ``type``\". Otherwise for new users it seems these APIs just returns the type field. What do you think?","commit_id":"8fc7fb7aa415b62d41e973e8e6ba0c6feee94810"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"a7d77e5a75bee8f2bf7bca84b43a7b0f37c4eed9","unresolved":false,"context_lines":[{"line_number":10,"context_line":"      ``classic`` or ``dynamic``), to limit the result to only classic drivers"},{"line_number":11,"context_line":"      or dynamic drivers (hardware types)."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"    * GET /v1/drivers now returns a ``type`` field to show if the driver is"},{"line_number":14,"context_line":"      classic or dynamic."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"    * GET /v1/drivers/\u003cname\u003e now returns a ``type`` field to show if the driver"},{"line_number":17,"context_line":"      is classic or dynamic."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    * GET /v1/drivers/\u003cname\u003e now returns new fields that are null for classic"},{"line_number":20,"context_line":"      drivers, and set as following for dynamic drivers:"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"        * default_boot_interface: entrypoint name of the calculated default boot interface."},{"line_number":23,"context_line":"        * default_console_interface: entrypoint name of the calculated default console interface."}],"source_content_type":"text/x-rst","patch_set":20,"id":"3a461143_e91f5259","line":20,"range":{"start_line":13,"start_character":6,"end_line":20,"end_character":56},"in_reply_to":"3a461143_76817d8f","updated":"2017-01-25 16:14:50.000000000","message":"I don\u0027t personally think it\u0027s confusing, but it can\u0027t hurt to add. I do see your point. Thanks :)","commit_id":"8fc7fb7aa415b62d41e973e8e6ba0c6feee94810"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        * enabled_network_interfaces: list of entrypoint names of enabled network interfaces."},{"line_number":40,"context_line":"        * enabled_power_interfaces: list of entrypoint names of enabled power interfaces."},{"line_number":41,"context_line":"        * enabled_raid_interfaces: list of entrypoint names of enabled raid interfaces."},{"line_number":42,"context_line":"        * enabled_vendor_interfaces: list of entrypoint names of enabled vendor interfaces."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    * GET /v1/drivers/\u003cname\u003e/properties now supports dynamic drivers. It uses"},{"line_number":45,"context_line":"      the calculated default implementation for each interface when calculating"}],"source_content_type":"text/x-rst","patch_set":22,"id":"3a461143_c4aa7470","line":42,"updated":"2017-01-25 20:59:00.000000000","message":"might be easier to read if the above were split into two sections, something like\n\n..and set as follows for dynamic drivers:\n\n    *The value of the default_\u003cinterface-type\u003e_interface is the entrypoint name of the calculated default interface for that type:\n        * default_boot_interface\n        * default_console_interface\n        * ... etc\n\n   * The value of the enabled_\u003cinterface-type\u003e_interfaces is a list of entrypoint names of the enabled interfaces for that type:\n        * enabled_boot_interfaces\n        * enabled_console_interfaces\n        * ...","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        * enabled_network_interfaces: list of entrypoint names of enabled network interfaces."},{"line_number":40,"context_line":"        * enabled_power_interfaces: list of entrypoint names of enabled power interfaces."},{"line_number":41,"context_line":"        * enabled_raid_interfaces: list of entrypoint names of enabled raid interfaces."},{"line_number":42,"context_line":"        * enabled_vendor_interfaces: list of entrypoint names of enabled vendor interfaces."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    * GET /v1/drivers/\u003cname\u003e/properties now supports dynamic drivers. It uses"},{"line_number":45,"context_line":"      the calculated default implementation for each interface when calculating"}],"source_content_type":"text/x-rst","patch_set":22,"id":"3a461143_05dc5ae3","line":42,"in_reply_to":"3a461143_c4aa7470","updated":"2017-01-26 12:11:46.000000000","message":"Done","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":57,"context_line":"      /v1/nodes/\u003cname\u003e/vendor_passthru now support dynamic drivers. The first"},{"line_number":58,"context_line":"      two of these use the calculated default vendor implementation for the"},{"line_number":59,"context_line":"      driver, and the last uses the vendor implementation set for the node."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"**1.29** (Ocata)"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-rst","patch_set":23,"id":"3a461143_477d781b","line":60,"updated":"2017-01-26 16:59:11.000000000","message":"I don\u0027t know if you want to mention GET /v1/drivers/logical_disk_properties now supports dynamic drivers. It uses the calculated default implementation...","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":57,"context_line":"      /v1/nodes/\u003cname\u003e/vendor_passthru now support dynamic drivers. The first"},{"line_number":58,"context_line":"      two of these use the calculated default vendor implementation for the"},{"line_number":59,"context_line":"      driver, and the last uses the vendor implementation set for the node."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"**1.29** (Ocata)"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-rst","patch_set":23,"id":"3a461143_bec4615f","line":60,"in_reply_to":"3a461143_477d781b","updated":"2017-01-26 17:50:05.000000000","message":"Actually, am thinking we should remove the things that don\u0027t depend on the version. WDYT?","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0b5374b36b2a4b7749270b73787914ed17418b32","unresolved":false,"context_lines":[{"line_number":57,"context_line":"      /v1/nodes/\u003cname\u003e/vendor_passthru now support dynamic drivers. The first"},{"line_number":58,"context_line":"      two of these use the calculated default vendor implementation for the"},{"line_number":59,"context_line":"      driver, and the last uses the vendor implementation set for the node."},{"line_number":60,"context_line":""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"**1.29** (Ocata)"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-rst","patch_set":23,"id":"3a461143_0e4e2496","line":60,"in_reply_to":"3a461143_bec4615f","updated":"2017-01-26 18:48:21.000000000","message":"That\u0027s a good point. Hmm. the problem is that if you don\u0027t have an ironic that support 1.30, you won\u0027t get any hw types anyway. I *think* this page was written to document what features via API are available based on the API version, so yeah, remove the things. Will also make this page a bit shorter :)","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a5d1c8165beffb25441c63f7818bbecfc8c47151","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"    * GET /v1/drivers now accepts a ``type`` parameter (optional, one of"},{"line_number":10,"context_line":"      ``classic`` or ``dynamic``), to limit the result to only classic drivers"},{"line_number":11,"context_line":"      or dynamic drivers (hardware types)."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"    * GET /v1/drivers now accepts a ``detail`` parameter (optional, one of"},{"line_number":14,"context_line":"      ``True`` or ``False``), to show all fields for a driver."}],"source_content_type":"text/x-rst","patch_set":24,"id":"3a461143_1b8a791b","line":11,"updated":"2017-01-30 18:21:37.000000000","message":"Defaults to not limiting the result (guessing so, since it\u0027s optional)?","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3750981bb01b85be8c54549d6b1923978717095b","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"    * GET /v1/drivers now accepts a ``type`` parameter (optional, one of"},{"line_number":10,"context_line":"      ``classic`` or ``dynamic``), to limit the result to only classic drivers"},{"line_number":11,"context_line":"      or dynamic drivers (hardware types)."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"    * GET /v1/drivers now accepts a ``detail`` parameter (optional, one of"},{"line_number":14,"context_line":"      ``True`` or ``False``), to show all fields for a driver."}],"source_content_type":"text/x-rst","patch_set":24,"id":"3a461143_67b3dee9","line":11,"in_reply_to":"3a461143_1b8a791b","updated":"2017-01-30 20:35:07.000000000","message":"Yes, optionally limit the result. Done.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"7fb326f46edfa7ecdf597c917074abfdf55a15eb","unresolved":false,"context_lines":[{"line_number":11,"context_line":"      or dynamic drivers (hardware types)."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"    * GET /v1/drivers now accepts a ``detail`` parameter (optional, one of"},{"line_number":14,"context_line":"      ``True`` or ``False``), to show all fields for a driver."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"    * GET /v1/drivers now returns an additional ``type`` field to show if the"},{"line_number":17,"context_line":"      driver is classic or dynamic."}],"source_content_type":"text/x-rst","patch_set":24,"id":"3a461143_bf1e1861","line":14,"updated":"2017-01-26 19:26:43.000000000","message":"Is there a default value for this?","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"996c45a2491129fdf1c045bf8398101da5f35fe2","unresolved":false,"context_lines":[{"line_number":11,"context_line":"      or dynamic drivers (hardware types)."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"    * GET /v1/drivers now accepts a ``detail`` parameter (optional, one of"},{"line_number":14,"context_line":"      ``True`` or ``False``), to show all fields for a driver."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"    * GET /v1/drivers now returns an additional ``type`` field to show if the"},{"line_number":17,"context_line":"      driver is classic or dynamic."}],"source_content_type":"text/x-rst","patch_set":24,"id":"3a461143_bf4a98c3","line":14,"in_reply_to":"3a461143_bf1e1861","updated":"2017-01-26 19:29:43.000000000","message":"False, I can add that in a follow up (I need to edit these docs anyway)","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3750981bb01b85be8c54549d6b1923978717095b","unresolved":false,"context_lines":[{"line_number":11,"context_line":"      or dynamic drivers (hardware types)."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"    * GET /v1/drivers now accepts a ``detail`` parameter (optional, one of"},{"line_number":14,"context_line":"      ``True`` or ``False``), to show all fields for a driver."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"    * GET /v1/drivers now returns an additional ``type`` field to show if the"},{"line_number":17,"context_line":"      driver is classic or dynamic."}],"source_content_type":"text/x-rst","patch_set":24,"id":"3a461143_87cc4a6b","line":14,"in_reply_to":"3a461143_bf4a98c3","updated":"2017-01-30 20:35:07.000000000","message":"Done","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a5d1c8165beffb25441c63f7818bbecfc8c47151","unresolved":false,"context_lines":[{"line_number":16,"context_line":"    * GET /v1/drivers now returns an additional ``type`` field to show if the"},{"line_number":17,"context_line":"      driver is classic or dynamic."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    * GET /v1/drivers/\u003cname\u003e now returns an additional ``type`` field to show"},{"line_number":20,"context_line":"      if the driver is classic or dynamic."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    * GET /v1/drivers/\u003cname\u003e now returns additional fields that are null for"}],"source_content_type":"text/x-rst","patch_set":24,"id":"3a461143_46a34800","line":19,"updated":"2017-01-30 18:21:37.000000000","message":"nit: it might be good to talk about precedence here (dynamic has precedence over classic). see api/.../driver.py L394","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3750981bb01b85be8c54549d6b1923978717095b","unresolved":false,"context_lines":[{"line_number":16,"context_line":"    * GET /v1/drivers now returns an additional ``type`` field to show if the"},{"line_number":17,"context_line":"      driver is classic or dynamic."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    * GET /v1/drivers/\u003cname\u003e now returns an additional ``type`` field to show"},{"line_number":20,"context_line":"      if the driver is classic or dynamic."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    * GET /v1/drivers/\u003cname\u003e now returns additional fields that are null for"}],"source_content_type":"text/x-rst","patch_set":24,"id":"3a461143_c7f01294","line":19,"in_reply_to":"3a461143_46a34800","updated":"2017-01-30 20:35:07.000000000","message":"Drivers and hardware types can\u0027t have the same name anyway (though there\u0027s still a bit of validation to write for that), so I don\u0027t think it\u0027s worth mentioning here.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"}],"ironic/api/controllers/v1/driver.py":[{"author":{"_account_id":18320,"name":"Dao Cong Tien","email":"tiendc@vn.fujitsu.com","username":"TienDC"},"change_message_id":"8ce2422c3ca8f9ba4d1b5e63834213922a3a8d1a","unresolved":false,"context_lines":[{"line_number":106,"context_line":"    enabled_vendor_interfaces \u003d [wtypes.text]"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    @staticmethod"},{"line_number":109,"context_line":"    def convert_with_links(name, hosts, type, detail\u003dFalse,"},{"line_number":110,"context_line":"                           interface_info\u003dNone):"},{"line_number":111,"context_line":"        driver \u003d Driver()"},{"line_number":112,"context_line":"        driver.name \u003d name"}],"source_content_type":"text/x-python","patch_set":12,"id":"5a3905b3_c47ddbb2","line":109,"range":{"start_line":109,"start_character":40,"end_line":109,"end_character":44},"updated":"2017-01-20 09:27:37.000000000","message":"\u0027type\u0027 shadows built-in name.","commit_id":"faf891c85bfcdfa937eba2ae3ae574ab4a35935c"},{"author":{"_account_id":18320,"name":"Dao Cong Tien","email":"tiendc@vn.fujitsu.com","username":"TienDC"},"change_message_id":"8ce2422c3ca8f9ba4d1b5e63834213922a3a8d1a","unresolved":false,"context_lines":[{"line_number":318,"context_line":""},{"line_number":319,"context_line":"    @METRICS.timer(\u0027DriversController.get_all\u0027)"},{"line_number":320,"context_line":"    @expose.expose(DriverList, wtypes.text, types.boolean)"},{"line_number":321,"context_line":"    def get_all(self, type\u003dNone, detail\u003dFalse):"},{"line_number":322,"context_line":"        \"\"\"Retrieve a list of drivers.\"\"\""},{"line_number":323,"context_line":"        # FIXME(deva): formatting of the auto-generated REST API docs"},{"line_number":324,"context_line":"        #              will break from a single-line doc string."}],"source_content_type":"text/x-python","patch_set":12,"id":"5a3905b3_d1167ff0","line":321,"range":{"start_line":321,"start_character":22,"end_line":321,"end_character":26},"updated":"2017-01-20 09:27:37.000000000","message":"\u0027type\u0027 shadows built-in name.","commit_id":"faf891c85bfcdfa937eba2ae3ae574ab4a35935c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"432856d7ca677587ec3046136e060f84286a9d80","unresolved":false,"context_lines":[{"line_number":337,"context_line":"        policy.authorize(\u0027baremetal:driver:get\u0027, cdict, cdict)"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"        api_utils.check_allow_filter_driver_type(type)"},{"line_number":340,"context_line":"        if type not in (None, \u0027classic\u0027, \u0027dynamic\u0027):"},{"line_number":341,"context_line":"            raise exception.Invalid(_("},{"line_number":342,"context_line":"                \u0027\"type\" filter must be one of \"classic\" or \"dynamic\".\u0027))"},{"line_number":343,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"5a3905b3_e7beb563","line":340,"range":{"start_line":340,"start_character":23,"end_line":340,"end_character":51},"updated":"2017-01-24 14:08:27.000000000","message":"we could reuse wtypes.Enum, but as validate is not called for wsme, we\u0027d still have to override frombasetype... May be fine as is, can be cleaned up later.","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"7fd7e649c82ac4ea2ac6b48f81468f6e70094592","unresolved":false,"context_lines":[{"line_number":337,"context_line":"        policy.authorize(\u0027baremetal:driver:get\u0027, cdict, cdict)"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"        api_utils.check_allow_filter_driver_type(type)"},{"line_number":340,"context_line":"        if type not in (None, \u0027classic\u0027, \u0027dynamic\u0027):"},{"line_number":341,"context_line":"            raise exception.Invalid(_("},{"line_number":342,"context_line":"                \u0027\"type\" filter must be one of \"classic\" or \"dynamic\".\u0027))"},{"line_number":343,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"5a3905b3_bbc92528","line":340,"range":{"start_line":340,"start_character":23,"end_line":340,"end_character":51},"in_reply_to":"5a3905b3_e7beb563","updated":"2017-01-24 14:48:44.000000000","message":"Yeah, let\u0027s do it later","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"432856d7ca677587ec3046136e060f84286a9d80","unresolved":false,"context_lines":[{"line_number":347,"context_line":"            driver_list \u003d pecan.request.dbapi.get_active_driver_dict()"},{"line_number":348,"context_line":"        if type is None or type \u003d\u003d \u0027dynamic\u0027:"},{"line_number":349,"context_line":"            hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":350,"context_line":"        return DriverList.convert_with_links(driver_list, hw_type_list,"},{"line_number":351,"context_line":"                                             detail\u003ddetail)"},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"    @METRICS.timer(\u0027DriversController.get_one\u0027)"},{"line_number":354,"context_line":"    @expose.expose(Driver, wtypes.text)"}],"source_content_type":"text/x-python","patch_set":15,"id":"5a3905b3_c7f0d869","line":351,"range":{"start_line":350,"start_character":8,"end_line":351,"end_character":59},"updated":"2017-01-24 14:08:27.000000000","message":"This won\u0027t return hardware types for old api versions, while the spec says it should?\n\n Return both *classic drivers* and *hardware types* no matter which API\n version is used.","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"7fd7e649c82ac4ea2ac6b48f81468f6e70094592","unresolved":false,"context_lines":[{"line_number":347,"context_line":"            driver_list \u003d pecan.request.dbapi.get_active_driver_dict()"},{"line_number":348,"context_line":"        if type is None or type \u003d\u003d \u0027dynamic\u0027:"},{"line_number":349,"context_line":"            hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":350,"context_line":"        return DriverList.convert_with_links(driver_list, hw_type_list,"},{"line_number":351,"context_line":"                                             detail\u003ddetail)"},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"    @METRICS.timer(\u0027DriversController.get_one\u0027)"},{"line_number":354,"context_line":"    @expose.expose(Driver, wtypes.text)"}],"source_content_type":"text/x-python","patch_set":15,"id":"5a3905b3_5b0a0127","line":351,"range":{"start_line":350,"start_character":8,"end_line":351,"end_character":59},"in_reply_to":"5a3905b3_c7f0d869","updated":"2017-01-24 14:48:44.000000000","message":"Ah, good point, will fix.","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"432856d7ca677587ec3046136e060f84286a9d80","unresolved":false,"context_lines":[{"line_number":371,"context_line":"        driver \u003d _find_driver(driver_dict, \u0027classic\u0027)"},{"line_number":372,"context_line":"        if driver:"},{"line_number":373,"context_line":"            return driver"},{"line_number":374,"context_line":"        hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":375,"context_line":"        driver \u003d _find_driver(hw_type_list, \u0027dynamic\u0027)"},{"line_number":376,"context_line":"        if driver:"},{"line_number":377,"context_line":"            return driver"},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"        raise exception.DriverNotFound(driver_name\u003ddriver_name)"},{"line_number":380,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"5a3905b3_c7eb7811","line":377,"range":{"start_line":374,"start_character":8,"end_line":377,"end_character":25},"updated":"2017-01-24 14:08:27.000000000","message":"I\u0027m not sure about this one. If the request version is \u003c 1.30, then type will not be included in the Driver object, so the user won\u0027t know if it\u0027s classic or dynamic. And afterwards methods/properties calls will fail. Maybe check the api version here too?","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"7fd7e649c82ac4ea2ac6b48f81468f6e70094592","unresolved":false,"context_lines":[{"line_number":371,"context_line":"        driver \u003d _find_driver(driver_dict, \u0027classic\u0027)"},{"line_number":372,"context_line":"        if driver:"},{"line_number":373,"context_line":"            return driver"},{"line_number":374,"context_line":"        hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":375,"context_line":"        driver \u003d _find_driver(hw_type_list, \u0027dynamic\u0027)"},{"line_number":376,"context_line":"        if driver:"},{"line_number":377,"context_line":"            return driver"},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"        raise exception.DriverNotFound(driver_name\u003ddriver_name)"},{"line_number":380,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"5a3905b3_f6ae647f","line":377,"range":{"start_line":374,"start_character":8,"end_line":377,"end_character":25},"in_reply_to":"5a3905b3_c7eb7811","updated":"2017-01-24 14:48:44.000000000","message":"I see your point, but if /v1/drivers returns hardware types, and /v1/drivers/some-hw-type returns 404, it\u0027s the same problem, different API calls :(","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"63e799a8861b3e4d3da6d63030195e16a669c686","unresolved":false,"context_lines":[{"line_number":371,"context_line":"        driver \u003d _find_driver(driver_dict, \u0027classic\u0027)"},{"line_number":372,"context_line":"        if driver:"},{"line_number":373,"context_line":"            return driver"},{"line_number":374,"context_line":"        hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":375,"context_line":"        driver \u003d _find_driver(hw_type_list, \u0027dynamic\u0027)"},{"line_number":376,"context_line":"        if driver:"},{"line_number":377,"context_line":"            return driver"},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"        raise exception.DriverNotFound(driver_name\u003ddriver_name)"},{"line_number":380,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"5a3905b3_818f9873","line":377,"range":{"start_line":374,"start_character":8,"end_line":377,"end_character":25},"in_reply_to":"5a3905b3_f6ae647f","updated":"2017-01-24 14:57:24.000000000","message":"Actually, figured out in irc methods/properties calls should not be versioned. Will fix.","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2db5ba4b8c6ae0cbcf6e16dddbbb8d1ae63328a5","unresolved":false,"context_lines":[{"line_number":184,"context_line":"            for dname in drivers]"},{"line_number":185,"context_line":"        if api_utils.allow_dynamic_drivers() and detail:"},{"line_number":186,"context_line":"            iface_info \u003d pecan.request.dbapi.list_hardware_type_interfaces("},{"line_number":187,"context_line":"                hardware_types.keys())"},{"line_number":188,"context_line":"        else:"},{"line_number":189,"context_line":"            iface_info \u003d []"},{"line_number":190,"context_line":"        for htname in hardware_types:"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_7a59498e","line":187,"updated":"2017-01-25 09:38:06.000000000","message":"nit: keys() is probably not needed (and it behavior differs on Py3)","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e26c4074e4417427acca90fb6c63a6c9b10712fc","unresolved":false,"context_lines":[{"line_number":184,"context_line":"            for dname in drivers]"},{"line_number":185,"context_line":"        if api_utils.allow_dynamic_drivers() and detail:"},{"line_number":186,"context_line":"            iface_info \u003d pecan.request.dbapi.list_hardware_type_interfaces("},{"line_number":187,"context_line":"                hardware_types.keys())"},{"line_number":188,"context_line":"        else:"},{"line_number":189,"context_line":"            iface_info \u003d []"},{"line_number":190,"context_line":"        for htname in hardware_types:"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_102bc134","line":187,"in_reply_to":"5a3905b3_7a59498e","updated":"2017-01-25 14:36:12.000000000","message":"Done","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2db5ba4b8c6ae0cbcf6e16dddbbb8d1ae63328a5","unresolved":false,"context_lines":[{"line_number":187,"context_line":"                hardware_types.keys())"},{"line_number":188,"context_line":"        else:"},{"line_number":189,"context_line":"            iface_info \u003d []"},{"line_number":190,"context_line":"        for htname in hardware_types:"},{"line_number":191,"context_line":"            interface_info \u003d [i for i in iface_info"},{"line_number":192,"context_line":"                              if i[\u0027hardware_type\u0027] \u003d\u003d htname]"},{"line_number":193,"context_line":"            collection.drivers.append("}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_9a5ef574","line":190,"updated":"2017-01-25 09:38:06.000000000","message":"nit: I think we should leave a note that we always return hardware types, but only return new fields in new API versions","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e26c4074e4417427acca90fb6c63a6c9b10712fc","unresolved":false,"context_lines":[{"line_number":187,"context_line":"                hardware_types.keys())"},{"line_number":188,"context_line":"        else:"},{"line_number":189,"context_line":"            iface_info \u003d []"},{"line_number":190,"context_line":"        for htname in hardware_types:"},{"line_number":191,"context_line":"            interface_info \u003d [i for i in iface_info"},{"line_number":192,"context_line":"                              if i[\u0027hardware_type\u0027] \u003d\u003d htname]"},{"line_number":193,"context_line":"            collection.drivers.append("}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_90f891c6","line":190,"in_reply_to":"5a3905b3_9a5ef574","updated":"2017-01-25 14:36:12.000000000","message":"Done","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2db5ba4b8c6ae0cbcf6e16dddbbb8d1ae63328a5","unresolved":false,"context_lines":[{"line_number":364,"context_line":"        hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":365,"context_line":"        driver \u003d _find_driver(hw_type_list, \u0027dynamic\u0027)"},{"line_number":366,"context_line":"        if driver:"},{"line_number":367,"context_line":"            return driver"},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"        raise exception.DriverNotFound(driver_name\u003ddriver_name)"},{"line_number":370,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_ba53b16b","line":367,"updated":"2017-01-25 09:38:06.000000000","message":"nit: we may want to reverse the order here, as in driver_factory we check for hardware types first (IIRC). anyway, we should not allow name collisions, so it may not be a huge deal.","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e26c4074e4417427acca90fb6c63a6c9b10712fc","unresolved":false,"context_lines":[{"line_number":364,"context_line":"        hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":365,"context_line":"        driver \u003d _find_driver(hw_type_list, \u0027dynamic\u0027)"},{"line_number":366,"context_line":"        if driver:"},{"line_number":367,"context_line":"            return driver"},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"        raise exception.DriverNotFound(driver_name\u003ddriver_name)"},{"line_number":370,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_53b3930a","line":367,"in_reply_to":"5a3905b3_ba53b16b","updated":"2017-01-25 14:36:12.000000000","message":"Done","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"0270a6ffbef647a59821dd41a9da440a556f9804","unresolved":false,"context_lines":[{"line_number":319,"context_line":""},{"line_number":320,"context_line":"    @METRICS.timer(\u0027DriversController.get_all\u0027)"},{"line_number":321,"context_line":"    @expose.expose(DriverList, wtypes.text, types.boolean)"},{"line_number":322,"context_line":"    def get_all(self, type\u003dNone, detail\u003dFalse):"},{"line_number":323,"context_line":"        \"\"\"Retrieve a list of drivers.\"\"\""},{"line_number":324,"context_line":"        # FIXME(deva): formatting of the auto-generated REST API docs"},{"line_number":325,"context_line":"        #              will break from a single-line doc string."}],"source_content_type":"text/x-python","patch_set":19,"id":"3a461143_939c3b6b","line":322,"updated":"2017-01-25 15:46:51.000000000","message":"If detail param is specified in request with older API version than 1.30 now it just return a list of drivers, while previously we got error:\n\"Unknown argument\"","commit_id":"ccda459fdc5a65512c6c205769e701c7340269e8"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"43b6102f07d844f8eb495decea63406dfe50c030","unresolved":false,"context_lines":[{"line_number":319,"context_line":""},{"line_number":320,"context_line":"    @METRICS.timer(\u0027DriversController.get_all\u0027)"},{"line_number":321,"context_line":"    @expose.expose(DriverList, wtypes.text, types.boolean)"},{"line_number":322,"context_line":"    def get_all(self, type\u003dNone, detail\u003dFalse):"},{"line_number":323,"context_line":"        \"\"\"Retrieve a list of drivers.\"\"\""},{"line_number":324,"context_line":"        # FIXME(deva): formatting of the auto-generated REST API docs"},{"line_number":325,"context_line":"        #              will break from a single-line doc string."}],"source_content_type":"text/x-python","patch_set":19,"id":"3a461143_968d097e","line":322,"in_reply_to":"3a461143_939c3b6b","updated":"2017-01-25 15:53:04.000000000","message":"Hm, yeah, maybe we should check for detail too in check_allow_filter_driver_type?","commit_id":"ccda459fdc5a65512c6c205769e701c7340269e8"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"a72565d09220204d845bd2f85b10a8fad5473e28","unresolved":false,"context_lines":[{"line_number":319,"context_line":""},{"line_number":320,"context_line":"    @METRICS.timer(\u0027DriversController.get_all\u0027)"},{"line_number":321,"context_line":"    @expose.expose(DriverList, wtypes.text, types.boolean)"},{"line_number":322,"context_line":"    def get_all(self, type\u003dNone, detail\u003dFalse):"},{"line_number":323,"context_line":"        \"\"\"Retrieve a list of drivers.\"\"\""},{"line_number":324,"context_line":"        # FIXME(deva): formatting of the auto-generated REST API docs"},{"line_number":325,"context_line":"        #              will break from a single-line doc string."}],"source_content_type":"text/x-python","patch_set":19,"id":"3a461143_161119ad","line":322,"in_reply_to":"3a461143_968d097e","updated":"2017-01-25 16:05:50.000000000","message":"+1, good catch","commit_id":"ccda459fdc5a65512c6c205769e701c7340269e8"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"45df61df8b7fdc9488c07d1551754bcf35b643eb","unresolved":false,"context_lines":[{"line_number":130,"context_line":"            ]"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"        if api_utils.allow_dynamic_drivers():"},{"line_number":133,"context_line":"            driver.type \u003d type"},{"line_number":134,"context_line":"            if type \u003d\u003d \u0027dynamic\u0027 and detail:"},{"line_number":135,"context_line":"                if interface_info is None:"},{"line_number":136,"context_line":"                    # TODO(jroll) objectify this"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a461143_365e1546","line":133,"range":{"start_line":133,"start_character":26,"end_line":133,"end_character":30},"updated":"2017-01-25 16:09:11.000000000","message":"Can we use driver_type instead of `type` as it is python keyword?","commit_id":"8fc7fb7aa415b62d41e973e8e6ba0c6feee94810"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"a7d77e5a75bee8f2bf7bca84b43a7b0f37c4eed9","unresolved":false,"context_lines":[{"line_number":130,"context_line":"            ]"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"        if api_utils.allow_dynamic_drivers():"},{"line_number":133,"context_line":"            driver.type \u003d type"},{"line_number":134,"context_line":"            if type \u003d\u003d \u0027dynamic\u0027 and detail:"},{"line_number":135,"context_line":"                if interface_info is None:"},{"line_number":136,"context_line":"                    # TODO(jroll) objectify this"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a461143_69b9a22e","line":133,"range":{"start_line":133,"start_character":26,"end_line":133,"end_character":30},"in_reply_to":"3a461143_365e1546","updated":"2017-01-25 16:14:50.000000000","message":"For this method, yes, but I\u0027d prefer to leave the API parameter as \u0027type\u0027","commit_id":"8fc7fb7aa415b62d41e973e8e6ba0c6feee94810"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"1c7e6809938fd3211945ca45a6685d66950e8a83","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        if api_utils.allow_dynamic_drivers():"},{"line_number":133,"context_line":"            driver.type \u003d type"},{"line_number":134,"context_line":"            if type \u003d\u003d \u0027dynamic\u0027 and detail:"},{"line_number":135,"context_line":"                if interface_info is None:"},{"line_number":136,"context_line":"                    # TODO(jroll) objectify this"},{"line_number":137,"context_line":"                    interface_info \u003d (pecan.request.dbapi"},{"line_number":138,"context_line":"                                      .list_hardware_type_interfaces([name]))"},{"line_number":139,"context_line":"                for iface_type in driver_base.ALL_INTERFACES:"},{"line_number":140,"context_line":"                    default \u003d None"},{"line_number":141,"context_line":"                    enabled \u003d []"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a461143_f6dc8d48","line":138,"range":{"start_line":135,"start_character":16,"end_line":138,"end_character":77},"updated":"2017-01-25 15:56:28.000000000","message":"Aha, I see that you\u0027ve changed it! :) unittest would be good.","commit_id":"8fc7fb7aa415b62d41e973e8e6ba0c6feee94810"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"a7d77e5a75bee8f2bf7bca84b43a7b0f37c4eed9","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        if api_utils.allow_dynamic_drivers():"},{"line_number":133,"context_line":"            driver.type \u003d type"},{"line_number":134,"context_line":"            if type \u003d\u003d \u0027dynamic\u0027 and detail:"},{"line_number":135,"context_line":"                if interface_info is None:"},{"line_number":136,"context_line":"                    # TODO(jroll) objectify this"},{"line_number":137,"context_line":"                    interface_info \u003d (pecan.request.dbapi"},{"line_number":138,"context_line":"                                      .list_hardware_type_interfaces([name]))"},{"line_number":139,"context_line":"                for iface_type in driver_base.ALL_INTERFACES:"},{"line_number":140,"context_line":"                    default \u003d None"},{"line_number":141,"context_line":"                    enabled \u003d []"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a461143_5609e130","line":138,"range":{"start_line":135,"start_character":16,"end_line":138,"end_character":77},"in_reply_to":"3a461143_f6dc8d48","updated":"2017-01-25 16:14:50.000000000","message":"This is exercised with the tests for get_one() with a hardware type, but we mock it so didn\u0027t catch this bug. I\u0027ll add an assert, though.","commit_id":"8fc7fb7aa415b62d41e973e8e6ba0c6feee94810"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"249005597eff332a96cc619df88c11ee5614b8cc","unresolved":false,"context_lines":[{"line_number":319,"context_line":""},{"line_number":320,"context_line":"    @METRICS.timer(\u0027DriversController.get_all\u0027)"},{"line_number":321,"context_line":"    @expose.expose(DriverList, wtypes.text, types.boolean)"},{"line_number":322,"context_line":"    def get_all(self, type\u003dNone, detail\u003dFalse):"},{"line_number":323,"context_line":"        \"\"\"Retrieve a list of drivers.\"\"\""},{"line_number":324,"context_line":"        # FIXME(deva): formatting of the auto-generated REST API docs"},{"line_number":325,"context_line":"        #              will break from a single-line doc string."}],"source_content_type":"text/x-python","patch_set":21,"id":"3a461143_0caaecd4","line":322,"range":{"start_line":322,"start_character":40,"end_line":322,"end_character":45},"updated":"2017-01-25 16:33:41.000000000","message":"Could be None by default, so that we could check if it was set either to True or False, we raise 406","commit_id":"040f9fa702826b72a35ba9be6cbc67dc7c2aea08"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    @staticmethod"},{"line_number":107,"context_line":"    def convert_with_links(name, hosts, driver_type, detail\u003dFalse,"},{"line_number":108,"context_line":"                           interface_info\u003dNone):"},{"line_number":109,"context_line":"        driver \u003d Driver()"},{"line_number":110,"context_line":"        driver.name \u003d name"},{"line_number":111,"context_line":"        driver.hosts \u003d hosts"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_526d6231","line":108,"updated":"2017-01-25 20:59:00.000000000","message":"nit: we should add a docstring to describe all these.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    @staticmethod"},{"line_number":107,"context_line":"    def convert_with_links(name, hosts, driver_type, detail\u003dFalse,"},{"line_number":108,"context_line":"                           interface_info\u003dNone):"},{"line_number":109,"context_line":"        driver \u003d Driver()"},{"line_number":110,"context_line":"        driver.name \u003d name"},{"line_number":111,"context_line":"        driver.hosts \u003d hosts"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_65fa7e44","line":108,"in_reply_to":"3a461143_526d6231","updated":"2017-01-26 12:11:46.000000000","message":"Done","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":144,"context_line":"                            iface_name \u003d iface[\u0027interface_name\u0027]"},{"line_number":145,"context_line":"                            enabled.append(iface_name)"},{"line_number":146,"context_line":"                            if iface[\u0027default\u0027]:"},{"line_number":147,"context_line":"                                default \u003d iface_name"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"                    default_key \u003d \u0027default_%s_interface\u0027 % iface_type"},{"line_number":150,"context_line":"                    enabled_key \u003d \u0027enabled_%s_interfaces\u0027 % iface_type"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_73cee05b","line":147,"updated":"2017-01-25 20:59:00.000000000","message":"I could be wrong, but interface_info is a list of ConductorHardwareInterfaces objects. So if you have more than one conductor, say 2 conductors, and assuming all the conductors have the same enabled/default interfaces for all the hw types etc, you\u0027ll get 2 objects that only differ by conductor ID I think. Maybe enabled should be a set, not a list, otherwise i think we\u0027ll have duplicated interfaces.\n\nI\u0027m not sure what to do if the conductors have different defaults for an interface... I think what you have is fine for now. Maybe put a note saying we assume the conductors should all have the same defaults? (I think you had a TODO to ensure this.)","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":144,"context_line":"                            iface_name \u003d iface[\u0027interface_name\u0027]"},{"line_number":145,"context_line":"                            enabled.append(iface_name)"},{"line_number":146,"context_line":"                            if iface[\u0027default\u0027]:"},{"line_number":147,"context_line":"                                default \u003d iface_name"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"                    default_key \u003d \u0027default_%s_interface\u0027 % iface_type"},{"line_number":150,"context_line":"                    enabled_key \u003d \u0027enabled_%s_interfaces\u0027 % iface_type"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_85bcca6d","line":147,"in_reply_to":"3a461143_73cee05b","updated":"2017-01-26 12:11:46.000000000","message":"Ah, good point, will fix.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":163,"context_line":"    def sample(cls):"},{"line_number":164,"context_line":"        sample \u003d cls(name\u003d\"sample-driver\","},{"line_number":165,"context_line":"                     hosts\u003d[\"fake-host\"],"},{"line_number":166,"context_line":"                     type\u003d\"classic\")"},{"line_number":167,"context_line":"        return sample"},{"line_number":168,"context_line":""},{"line_number":169,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_93498cd3","line":166,"updated":"2017-01-25 20:59:00.000000000","message":"it looks like we only show \u0027type\u0027 if API version \u003e\u003d 1.30. And if we show type, we also show all the [enabled|default]_\u003cinterface_type\u003e_interface(s) values?","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":163,"context_line":"    def sample(cls):"},{"line_number":164,"context_line":"        sample \u003d cls(name\u003d\"sample-driver\","},{"line_number":165,"context_line":"                     hosts\u003d[\"fake-host\"],"},{"line_number":166,"context_line":"                     type\u003d\"classic\")"},{"line_number":167,"context_line":"        return sample"},{"line_number":168,"context_line":""},{"line_number":169,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_4507421c","line":166,"in_reply_to":"3a461143_93498cd3","updated":"2017-01-26 12:11:46.000000000","message":"Looks like we tend to add new fields to sample(), so yeah I\u0027ll add those.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":174,"context_line":"    \"\"\"A list containing drivers objects\"\"\""},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"    @staticmethod"},{"line_number":177,"context_line":"    def convert_with_links(drivers, hardware_types, detail\u003dFalse):"},{"line_number":178,"context_line":"        collection \u003d DriverList()"},{"line_number":179,"context_line":"        collection.drivers \u003d ["},{"line_number":180,"context_line":"            Driver.convert_with_links(dname, list(drivers[dname]), \u0027classic\u0027,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_73518062","line":177,"updated":"2017-01-25 20:59:00.000000000","message":"docstring would be good. drivers \u0026 hardware_types are lists of names of those things?","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":174,"context_line":"    \"\"\"A list containing drivers objects\"\"\""},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"    @staticmethod"},{"line_number":177,"context_line":"    def convert_with_links(drivers, hardware_types, detail\u003dFalse):"},{"line_number":178,"context_line":"        collection \u003d DriverList()"},{"line_number":179,"context_line":"        collection.drivers \u003d ["},{"line_number":180,"context_line":"            Driver.convert_with_links(dname, list(drivers[dname]), \u0027classic\u0027,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_08cf1180","line":177,"in_reply_to":"3a461143_73518062","updated":"2017-01-26 12:11:46.000000000","message":"Done","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":178,"context_line":"        collection \u003d DriverList()"},{"line_number":179,"context_line":"        collection.drivers \u003d ["},{"line_number":180,"context_line":"            Driver.convert_with_links(dname, list(drivers[dname]), \u0027classic\u0027,"},{"line_number":181,"context_line":"                                      detail\u003ddetail)"},{"line_number":182,"context_line":"            for dname in drivers]"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"        # NOTE(jroll) we return hardware types in all API versions,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_b39048ee","line":181,"updated":"2017-01-25 20:59:00.000000000","message":"is detail new with 1.30? we should just make it false if \u003c 1.30.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":178,"context_line":"        collection \u003d DriverList()"},{"line_number":179,"context_line":"        collection.drivers \u003d ["},{"line_number":180,"context_line":"            Driver.convert_with_links(dname, list(drivers[dname]), \u0027classic\u0027,"},{"line_number":181,"context_line":"                                      detail\u003ddetail)"},{"line_number":182,"context_line":"            for dname in drivers]"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"        # NOTE(jroll) we return hardware types in all API versions,"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_c83b49ea","line":181,"in_reply_to":"3a461143_b39048ee","updated":"2017-01-26 12:11:46.000000000","message":"It is, for GET /v1/drivers, however this method is used to build the object, it\u0027s somewhat unrelated to the version. See my comment in get_one()","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":183,"context_line":""},{"line_number":184,"context_line":"        # NOTE(jroll) we return hardware types in all API versions,"},{"line_number":185,"context_line":"        # but restrict type/default/enabled fields to 1.30"},{"line_number":186,"context_line":"        if api_utils.allow_dynamic_drivers() and detail:"},{"line_number":187,"context_line":"            iface_info \u003d pecan.request.dbapi.list_hardware_type_interfaces("},{"line_number":188,"context_line":"                list(hardware_types))"},{"line_number":189,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_c5e7cb3e","line":186,"updated":"2017-01-25 20:59:00.000000000","message":"i think we should assume that detail is set properly; ie, that when this method is called with detail\u003dTrue, that dynamic drivers are allowed, etc. Otherwise, I\u0027m going to have to think about combinations of detail and allow_dynamic_drivers() values...","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":183,"context_line":""},{"line_number":184,"context_line":"        # NOTE(jroll) we return hardware types in all API versions,"},{"line_number":185,"context_line":"        # but restrict type/default/enabled fields to 1.30"},{"line_number":186,"context_line":"        if api_utils.allow_dynamic_drivers() and detail:"},{"line_number":187,"context_line":"            iface_info \u003d pecan.request.dbapi.list_hardware_type_interfaces("},{"line_number":188,"context_line":"                list(hardware_types))"},{"line_number":189,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_48abd91d","line":186,"in_reply_to":"3a461143_c5e7cb3e","updated":"2017-01-26 12:11:46.000000000","message":"That will just have us checking the same combination elsewhere, I don\u0027t think changing this adds much value.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":358,"context_line":"            for name, hosts in driver_dict.items():"},{"line_number":359,"context_line":"                if name \u003d\u003d driver_name:"},{"line_number":360,"context_line":"                    return Driver.convert_with_links(name, list(hosts),"},{"line_number":361,"context_line":"                                                     driver_type, detail\u003dTrue)"},{"line_number":362,"context_line":""},{"line_number":363,"context_line":"        hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":364,"context_line":"        driver \u003d _find_driver(hw_type_list, \u0027dynamic\u0027)"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_8541433c","line":361,"updated":"2017-01-25 20:59:00.000000000","message":"i think we need to check if detail is allowed, if not, we should set this to False.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":358,"context_line":"            for name, hosts in driver_dict.items():"},{"line_number":359,"context_line":"                if name \u003d\u003d driver_name:"},{"line_number":360,"context_line":"                    return Driver.convert_with_links(name, list(hosts),"},{"line_number":361,"context_line":"                                                     driver_type, detail\u003dTrue)"},{"line_number":362,"context_line":""},{"line_number":363,"context_line":"        hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":364,"context_line":"        driver \u003d _find_driver(hw_type_list, \u0027dynamic\u0027)"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_8895c1e5","line":361,"in_reply_to":"3a461143_8541433c","updated":"2017-01-26 12:11:46.000000000","message":"get_one should always be detailed, since we don\u0027t expose it as a parameter. e.g. if we add a \u0027foo\u0027 field to driver later, that would be part of the \"detailed\" view of the driver, but would use a check_foo_allowed() or something to know if we should expose it in the response.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"89cacd4eac4efa41bf66278f6791b8bcf7a9ad53","unresolved":false,"context_lines":[{"line_number":358,"context_line":"            for name, hosts in driver_dict.items():"},{"line_number":359,"context_line":"                if name \u003d\u003d driver_name:"},{"line_number":360,"context_line":"                    return Driver.convert_with_links(name, list(hosts),"},{"line_number":361,"context_line":"                                                     driver_type, detail\u003dTrue)"},{"line_number":362,"context_line":""},{"line_number":363,"context_line":"        hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":364,"context_line":"        driver \u003d _find_driver(hw_type_list, \u0027dynamic\u0027)"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_2ec20a34","line":361,"in_reply_to":"3a461143_8895c1e5","updated":"2017-01-26 16:59:20.000000000","message":"Sorry, my bad. I was thinking we wanted to check the version stuff at a higher level, but you\u0027re doing it at a lower level.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":108,"context_line":"                           interface_info\u003dNone):"},{"line_number":109,"context_line":"        \"\"\"Convert driver/hardware type info to an API-serializable object."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        :param hosts: list of conductor hostnames driver is active on."},{"line_number":112,"context_line":"        :param driver_type: \u0027classic\u0027 for classic drivers, \u0027dynamic\u0027 for"},{"line_number":113,"context_line":"                            hardware types."},{"line_number":114,"context_line":"        :param detail: boolean, whether to include detailed info, such as"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_381ed0ba","line":111,"updated":"2017-01-26 16:59:11.000000000","message":"missing :param name: ...","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":108,"context_line":"                           interface_info\u003dNone):"},{"line_number":109,"context_line":"        \"\"\"Convert driver/hardware type info to an API-serializable object."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        :param hosts: list of conductor hostnames driver is active on."},{"line_number":112,"context_line":"        :param driver_type: \u0027classic\u0027 for classic drivers, \u0027dynamic\u0027 for"},{"line_number":113,"context_line":"                            hardware types."},{"line_number":114,"context_line":"        :param detail: boolean, whether to include detailed info, such as"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_de884d25","line":111,"in_reply_to":"3a461143_381ed0ba","updated":"2017-01-26 17:50:05.000000000","message":"Done","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9399656952f1cf29a25f1eb92fdfee8b99f405a2","unresolved":false,"context_lines":[{"line_number":360,"context_line":"        api_utils.check_allow_filter_driver_type(type)"},{"line_number":361,"context_line":"        if type not in (None, \u0027classic\u0027, \u0027dynamic\u0027):"},{"line_number":362,"context_line":"            raise exception.Invalid(_("},{"line_number":363,"context_line":"                \u0027\"type\" filter must be one of \"classic\" or \"dynamic\".\u0027))"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"        driver_list \u003d []"},{"line_number":366,"context_line":"        hw_type_list \u003d []"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_fc4b6329","line":363,"updated":"2017-01-26 14:08:29.000000000","message":"might be introduce a separate type for this, and validate in L349 types.driver_type?","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"83750a401f945c7968ee8718c1e73c61546c2911","unresolved":false,"context_lines":[{"line_number":360,"context_line":"        api_utils.check_allow_filter_driver_type(type)"},{"line_number":361,"context_line":"        if type not in (None, \u0027classic\u0027, \u0027dynamic\u0027):"},{"line_number":362,"context_line":"            raise exception.Invalid(_("},{"line_number":363,"context_line":"                \u0027\"type\" filter must be one of \"classic\" or \"dynamic\".\u0027))"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"        driver_list \u003d []"},{"line_number":366,"context_line":"        hw_type_list \u003d []"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_d804e57f","line":363,"in_reply_to":"3a461143_fc4b6329","updated":"2017-01-26 16:59:04.000000000","message":"I\u0027d really rather not for something so simple.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"15f51470cf7e7bcb2869da57a76039a443a5c661","unresolved":false,"context_lines":[{"line_number":362,"context_line":"            raise exception.Invalid(_("},{"line_number":363,"context_line":"                \u0027\"type\" filter must be one of \"classic\" or \"dynamic\".\u0027))"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"        driver_list \u003d []"},{"line_number":366,"context_line":"        hw_type_list \u003d []"},{"line_number":367,"context_line":"        if type is None or type \u003d\u003d \u0027classic\u0027:"},{"line_number":368,"context_line":"            driver_list \u003d pecan.request.dbapi.get_active_driver_dict()"},{"line_number":369,"context_line":"        if type is None or type \u003d\u003d \u0027dynamic\u0027:"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_24130a0f","line":366,"range":{"start_line":365,"start_character":8,"end_line":366,"end_character":25},"updated":"2017-01-26 16:01:56.000000000","message":"These are dicts in fact. It works as is, tho doing {} would be a bit more self-explanatory","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"83750a401f945c7968ee8718c1e73c61546c2911","unresolved":false,"context_lines":[{"line_number":362,"context_line":"            raise exception.Invalid(_("},{"line_number":363,"context_line":"                \u0027\"type\" filter must be one of \"classic\" or \"dynamic\".\u0027))"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"        driver_list \u003d []"},{"line_number":366,"context_line":"        hw_type_list \u003d []"},{"line_number":367,"context_line":"        if type is None or type \u003d\u003d \u0027classic\u0027:"},{"line_number":368,"context_line":"            driver_list \u003d pecan.request.dbapi.get_active_driver_dict()"},{"line_number":369,"context_line":"        if type is None or type \u003d\u003d \u0027dynamic\u0027:"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_78cdb15c","line":366,"range":{"start_line":365,"start_character":8,"end_line":366,"end_character":25},"in_reply_to":"3a461143_24130a0f","updated":"2017-01-26 16:59:04.000000000","message":"Oh, good point!","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"7fb326f46edfa7ecdf597c917074abfdf55a15eb","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    hosts \u003d [wtypes.text]"},{"line_number":73,"context_line":"    \"\"\"A list of active conductors that support this driver\"\"\""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    type \u003d wtypes.text"},{"line_number":76,"context_line":"    \"\"\"Whether the driver is classic or dynamic (hardware type)\"\"\""},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    links \u003d wsme.wsattr([link.Link], readonly\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_3f586832","line":75,"updated":"2017-01-26 19:26:43.000000000","message":"I\u0027m guessing this can\u0027t be \u0027driver_type\u0027 or some other name.\n\nSince \u0027type\u0027 is a built-in python function.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"996c45a2491129fdf1c045bf8398101da5f35fe2","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    hosts \u003d [wtypes.text]"},{"line_number":73,"context_line":"    \"\"\"A list of active conductors that support this driver\"\"\""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    type \u003d wtypes.text"},{"line_number":76,"context_line":"    \"\"\"Whether the driver is classic or dynamic (hardware type)\"\"\""},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    links \u003d wsme.wsattr([link.Link], readonly\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_7f4030a6","line":75,"in_reply_to":"3a461143_3f586832","updated":"2017-01-26 19:29:43.000000000","message":"It could, but I think this makes the most sense for the actual API (and as such needs to be named here). I\u0027m okay with overriding `type` since we shouldn\u0027t be using it anyway, and this is a small scope :P","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"9165ec7c834b2b0802c67a60d38d18216ca7aeb5","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    hosts \u003d [wtypes.text]"},{"line_number":73,"context_line":"    \"\"\"A list of active conductors that support this driver\"\"\""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    type \u003d wtypes.text"},{"line_number":76,"context_line":"    \"\"\"Whether the driver is classic or dynamic (hardware type)\"\"\""},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    links \u003d wsme.wsattr([link.Link], readonly\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_b0d39e5e","line":75,"in_reply_to":"3a461143_7f4030a6","updated":"2017-01-27 00:26:37.000000000","message":"Makes sense. Thanks","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a5d1c8165beffb25441c63f7818bbecfc8c47151","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    hosts \u003d [wtypes.text]"},{"line_number":73,"context_line":"    \"\"\"A list of active conductors that support this driver\"\"\""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"    type \u003d wtypes.text"},{"line_number":76,"context_line":"    \"\"\"Whether the driver is classic or dynamic (hardware type)\"\"\""},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    links \u003d wsme.wsattr([link.Link], readonly\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_5b332162","line":75,"in_reply_to":"3a461143_b0d39e5e","updated":"2017-01-30 18:21:37.000000000","message":"It might be possible to name this driver_type here and rename it before returning the API response.\n\nI\u0027d vote that if someone needs to use \"type\" builtin (which they shouldn\u0027t), then they should change it at that time.\n\nSo, +1 to leaving as-is.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"704be9288471d291ef47057debca0662541297e4","unresolved":false,"context_lines":[{"line_number":114,"context_line":"                            hardware types."},{"line_number":115,"context_line":"        :param detail: boolean, whether to include detailed info, such as"},{"line_number":116,"context_line":"                       the \u0027type\u0027 field and default/enabled interfaces fields."},{"line_number":117,"context_line":"        :param interface_info: optional dict of hardware interface info."},{"line_number":118,"context_line":"        :returns: API-serializable driver object."},{"line_number":119,"context_line":"        \"\"\""},{"line_number":120,"context_line":"        driver \u003d Driver()"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_5fba946f","line":117,"updated":"2017-01-26 19:52:56.000000000","message":"Seems like this is a \u0027list of dicts\u0027 and not a dict.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a5d1c8165beffb25441c63f7818bbecfc8c47151","unresolved":false,"context_lines":[{"line_number":114,"context_line":"                            hardware types."},{"line_number":115,"context_line":"        :param detail: boolean, whether to include detailed info, such as"},{"line_number":116,"context_line":"                       the \u0027type\u0027 field and default/enabled interfaces fields."},{"line_number":117,"context_line":"        :param interface_info: optional dict of hardware interface info."},{"line_number":118,"context_line":"        :returns: API-serializable driver object."},{"line_number":119,"context_line":"        \"\"\""},{"line_number":120,"context_line":"        driver \u003d Driver()"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_bb25e509","line":117,"in_reply_to":"3a461143_5a3f02d6","updated":"2017-01-30 18:21:37.000000000","message":"+1","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"d3f035f0ff2387c7b03d0cdfa0f7aad62f28037d","unresolved":false,"context_lines":[{"line_number":114,"context_line":"                            hardware types."},{"line_number":115,"context_line":"        :param detail: boolean, whether to include detailed info, such as"},{"line_number":116,"context_line":"                       the \u0027type\u0027 field and default/enabled interfaces fields."},{"line_number":117,"context_line":"        :param interface_info: optional dict of hardware interface info."},{"line_number":118,"context_line":"        :returns: API-serializable driver object."},{"line_number":119,"context_line":"        \"\"\""},{"line_number":120,"context_line":"        driver \u003d Driver()"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_5a3f02d6","line":117,"in_reply_to":"3a461143_5fba946f","updated":"2017-01-26 19:55:55.000000000","message":"Done","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a5d1c8165beffb25441c63f7818bbecfc8c47151","unresolved":false,"context_lines":[{"line_number":154,"context_line":"                        if iface[\u0027interface_type\u0027] \u003d\u003d iface_type:"},{"line_number":155,"context_line":"                            iface_name \u003d iface[\u0027interface_name\u0027]"},{"line_number":156,"context_line":"                            enabled.add(iface_name)"},{"line_number":157,"context_line":"                            # NOTE(jroll) this assumes the default is the same"},{"line_number":158,"context_line":"                            # on all conductors"},{"line_number":159,"context_line":"                            if iface[\u0027default\u0027]:"},{"line_number":160,"context_line":"                                default \u003d iface_name"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_5be6c1b0","line":157,"updated":"2017-01-30 18:21:37.000000000","message":"this is supposed to be the case on a properly configured control plane, right?\n\nif not, you could make default_%s_interfaces be a list, and return a list of the defaults across conductors. or a {host: default} mapping","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3750981bb01b85be8c54549d6b1923978717095b","unresolved":false,"context_lines":[{"line_number":154,"context_line":"                        if iface[\u0027interface_type\u0027] \u003d\u003d iface_type:"},{"line_number":155,"context_line":"                            iface_name \u003d iface[\u0027interface_name\u0027]"},{"line_number":156,"context_line":"                            enabled.add(iface_name)"},{"line_number":157,"context_line":"                            # NOTE(jroll) this assumes the default is the same"},{"line_number":158,"context_line":"                            # on all conductors"},{"line_number":159,"context_line":"                            if iface[\u0027default\u0027]:"},{"line_number":160,"context_line":"                                default \u003d iface_name"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_2719d6d7","line":157,"in_reply_to":"3a461143_5be6c1b0","updated":"2017-01-30 20:35:07.000000000","message":"Yes, when things are properly configured. However, we can\u0027t force proper configuration here because one might like to do a rolling restart of conductors to change this config. So there could be races/problems here, but it\u0027s probably fine.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a5d1c8165beffb25441c63f7818bbecfc8c47151","unresolved":false,"context_lines":[{"line_number":210,"context_line":"                                      detail\u003ddetail)"},{"line_number":211,"context_line":"            for dname in drivers]"},{"line_number":212,"context_line":""},{"line_number":213,"context_line":"        # NOTE(jroll) we return hardware types in all API versions,"},{"line_number":214,"context_line":"        # but restrict type/default/enabled fields to 1.30"},{"line_number":215,"context_line":"        if api_utils.allow_dynamic_drivers() and detail:"},{"line_number":216,"context_line":"            iface_info \u003d pecan.request.dbapi.list_hardware_type_interfaces("}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_26063c1d","line":213,"updated":"2017-01-30 18:21:37.000000000","message":"that\u0027s the check on L143, right?","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3750981bb01b85be8c54549d6b1923978717095b","unresolved":false,"context_lines":[{"line_number":210,"context_line":"                                      detail\u003ddetail)"},{"line_number":211,"context_line":"            for dname in drivers]"},{"line_number":212,"context_line":""},{"line_number":213,"context_line":"        # NOTE(jroll) we return hardware types in all API versions,"},{"line_number":214,"context_line":"        # but restrict type/default/enabled fields to 1.30"},{"line_number":215,"context_line":"        if api_utils.allow_dynamic_drivers() and detail:"},{"line_number":216,"context_line":"            iface_info \u003d pecan.request.dbapi.list_hardware_type_interfaces("}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_67867edc","line":213,"in_reply_to":"3a461143_26063c1d","updated":"2017-01-30 20:35:07.000000000","message":"Yep. We also check it here to avoid an extra DB query. :) i\u0027ll clarify the note.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"704be9288471d291ef47057debca0662541297e4","unresolved":false,"context_lines":[{"line_number":348,"context_line":""},{"line_number":349,"context_line":"    @METRICS.timer(\u0027DriversController.get_all\u0027)"},{"line_number":350,"context_line":"    @expose.expose(DriverList, wtypes.text, types.boolean)"},{"line_number":351,"context_line":"    def get_all(self, type\u003dNone, detail\u003dNone):"},{"line_number":352,"context_line":"        \"\"\"Retrieve a list of drivers.\"\"\""},{"line_number":353,"context_line":"        # FIXME(deva): formatting of the auto-generated REST API docs"},{"line_number":354,"context_line":"        #              will break from a single-line doc string."}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_da721249","line":351,"updated":"2017-01-26 19:52:56.000000000","message":"I\u0027d prefer \u0027driver_type\" so not have collision with built-in function \u0027type\u0027","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"9165ec7c834b2b0802c67a60d38d18216ca7aeb5","unresolved":false,"context_lines":[{"line_number":348,"context_line":""},{"line_number":349,"context_line":"    @METRICS.timer(\u0027DriversController.get_all\u0027)"},{"line_number":350,"context_line":"    @expose.expose(DriverList, wtypes.text, types.boolean)"},{"line_number":351,"context_line":"    def get_all(self, type\u003dNone, detail\u003dNone):"},{"line_number":352,"context_line":"        \"\"\"Retrieve a list of drivers.\"\"\""},{"line_number":353,"context_line":"        # FIXME(deva): formatting of the auto-generated REST API docs"},{"line_number":354,"context_line":"        #              will break from a single-line doc string."}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_30d96e84","line":351,"in_reply_to":"3a461143_ba59c65c","updated":"2017-01-27 00:26:37.000000000","message":"Makes sense. Thanks","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"d3f035f0ff2387c7b03d0cdfa0f7aad62f28037d","unresolved":false,"context_lines":[{"line_number":348,"context_line":""},{"line_number":349,"context_line":"    @METRICS.timer(\u0027DriversController.get_all\u0027)"},{"line_number":350,"context_line":"    @expose.expose(DriverList, wtypes.text, types.boolean)"},{"line_number":351,"context_line":"    def get_all(self, type\u003dNone, detail\u003dNone):"},{"line_number":352,"context_line":"        \"\"\"Retrieve a list of drivers.\"\"\""},{"line_number":353,"context_line":"        # FIXME(deva): formatting of the auto-generated REST API docs"},{"line_number":354,"context_line":"        #              will break from a single-line doc string."}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_ba59c65c","line":351,"in_reply_to":"3a461143_da721249","updated":"2017-01-26 19:55:55.000000000","message":"We want `type` to be in the API, and pecan takes that from the argument list, so need to leave this as is.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a5d1c8165beffb25441c63f7818bbecfc8c47151","unresolved":false,"context_lines":[{"line_number":361,"context_line":"        api_utils.check_allow_filter_driver_type(type)"},{"line_number":362,"context_line":"        if type not in (None, \u0027classic\u0027, \u0027dynamic\u0027):"},{"line_number":363,"context_line":"            raise exception.Invalid(_("},{"line_number":364,"context_line":"                \u0027\"type\" filter must be one of \"classic\" or \"dynamic\".\u0027))"},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"        driver_list \u003d {}"},{"line_number":367,"context_line":"        hw_type_list \u003d {}"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_e618b477","line":364,"updated":"2017-01-30 18:21:37.000000000","message":"must be unspecified or one of \"classic\" or \"dynamic\"","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3750981bb01b85be8c54549d6b1923978717095b","unresolved":false,"context_lines":[{"line_number":361,"context_line":"        api_utils.check_allow_filter_driver_type(type)"},{"line_number":362,"context_line":"        if type not in (None, \u0027classic\u0027, \u0027dynamic\u0027):"},{"line_number":363,"context_line":"            raise exception.Invalid(_("},{"line_number":364,"context_line":"                \u0027\"type\" filter must be one of \"classic\" or \"dynamic\".\u0027))"},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"        driver_list \u003d {}"},{"line_number":367,"context_line":"        hw_type_list \u003d {}"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_e7498eb8","line":364,"in_reply_to":"3a461143_e618b477","updated":"2017-01-30 20:35:07.000000000","message":"Done","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"704be9288471d291ef47057debca0662541297e4","unresolved":false,"context_lines":[{"line_number":389,"context_line":"                    return Driver.convert_with_links(name, list(hosts),"},{"line_number":390,"context_line":"                                                     driver_type, detail\u003dTrue)"},{"line_number":391,"context_line":""},{"line_number":392,"context_line":"        hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":393,"context_line":"        driver \u003d _find_driver(hw_type_list, \u0027dynamic\u0027)"},{"line_number":394,"context_line":"        if driver:"},{"line_number":395,"context_line":"            return driver"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_5aa3824f","line":392,"range":{"start_line":392,"start_character":16,"end_line":392,"end_character":20},"updated":"2017-01-26 19:52:56.000000000","message":"nit: Seems like this is actually a dict","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"d3f035f0ff2387c7b03d0cdfa0f7aad62f28037d","unresolved":false,"context_lines":[{"line_number":389,"context_line":"                    return Driver.convert_with_links(name, list(hosts),"},{"line_number":390,"context_line":"                                                     driver_type, detail\u003dTrue)"},{"line_number":391,"context_line":""},{"line_number":392,"context_line":"        hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":393,"context_line":"        driver \u003d _find_driver(hw_type_list, \u0027dynamic\u0027)"},{"line_number":394,"context_line":"        if driver:"},{"line_number":395,"context_line":"            return driver"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_1a1c9a76","line":392,"range":{"start_line":392,"start_character":16,"end_line":392,"end_character":20},"in_reply_to":"3a461143_5aa3824f","updated":"2017-01-26 19:55:55.000000000","message":"Done","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a5d1c8165beffb25441c63f7818bbecfc8c47151","unresolved":false,"context_lines":[{"line_number":391,"context_line":""},{"line_number":392,"context_line":"        hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":393,"context_line":"        driver \u003d _find_driver(hw_type_list, \u0027dynamic\u0027)"},{"line_number":394,"context_line":"        if driver:"},{"line_number":395,"context_line":"            return driver"},{"line_number":396,"context_line":"        driver_dict \u003d pecan.request.dbapi.get_active_driver_dict()"},{"line_number":397,"context_line":"        driver \u003d _find_driver(driver_dict, \u0027classic\u0027)"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_2689dc75","line":394,"updated":"2017-01-30 18:21:37.000000000","message":"nit: it might be good to note precedence rules in the API ref (dynamic has precedence over classic)","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3750981bb01b85be8c54549d6b1923978717095b","unresolved":false,"context_lines":[{"line_number":391,"context_line":""},{"line_number":392,"context_line":"        hw_type_list \u003d pecan.request.dbapi.get_active_hardware_type_dict()"},{"line_number":393,"context_line":"        driver \u003d _find_driver(hw_type_list, \u0027dynamic\u0027)"},{"line_number":394,"context_line":"        if driver:"},{"line_number":395,"context_line":"            return driver"},{"line_number":396,"context_line":"        driver_dict \u003d pecan.request.dbapi.get_active_driver_dict()"},{"line_number":397,"context_line":"        driver \u003d _find_driver(driver_dict, \u0027classic\u0027)"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_87dd2ae2","line":394,"in_reply_to":"3a461143_2689dc75","updated":"2017-01-30 20:35:07.000000000","message":"ditto to api version history comment.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"6ec8be190196b741ba2fc5ef7da2241167b41510","unresolved":false,"context_lines":[{"line_number":152,"context_line":"                    default \u003d None"},{"line_number":153,"context_line":"                    enabled \u003d set()"},{"line_number":154,"context_line":"                    for iface in interface_info:"},{"line_number":155,"context_line":"                        if iface[\u0027interface_type\u0027] \u003d\u003d iface_type:"},{"line_number":156,"context_line":"                            iface_name \u003d iface[\u0027interface_name\u0027]"},{"line_number":157,"context_line":"                            enabled.add(iface_name)"},{"line_number":158,"context_line":"                            # NOTE(jroll) this assumes the default is the same"}],"source_content_type":"text/x-python","patch_set":26,"id":"3a461143_60a48807","line":155,"updated":"2017-01-31 14:03:09.000000000","message":"nit: I\u0027d prefer to reduce indentation here by doing this like\n\n if iface[\u0027interface_type\u0027] !\u003d iface_type:\n    continue","commit_id":"e77675781231409d16744ab9d1b13ffc92d358f6"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"6ec8be190196b741ba2fc5ef7da2241167b41510","unresolved":false,"context_lines":[{"line_number":365,"context_line":"        if type not in (None, \u0027classic\u0027, \u0027dynamic\u0027):"},{"line_number":366,"context_line":"            raise exception.Invalid(_("},{"line_number":367,"context_line":"                \u0027\"type\" filter must be one of \"classic\" or \"dynamic\", \u0027"},{"line_number":368,"context_line":"                \u0027if specified.\u0027))"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"        driver_list \u003d {}"},{"line_number":371,"context_line":"        hw_type_dict \u003d {}"}],"source_content_type":"text/x-python","patch_set":26,"id":"3a461143_80a7b409","line":368,"updated":"2017-01-31 14:03:09.000000000","message":"I wonder if we can move this check to check_filter_driver_type (renamed from check_allow_filter_driver_type)","commit_id":"e77675781231409d16744ab9d1b13ffc92d358f6"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"a8434d948fa6b560fe7710e2c1bc47cdfe3e304e","unresolved":false,"context_lines":[{"line_number":367,"context_line":"                \u0027\"type\" filter must be one of \"classic\" or \"dynamic\", \u0027"},{"line_number":368,"context_line":"                \u0027if specified.\u0027))"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"        driver_list \u003d {}"},{"line_number":371,"context_line":"        hw_type_dict \u003d {}"},{"line_number":372,"context_line":"        if type is None or type \u003d\u003d \u0027classic\u0027:"},{"line_number":373,"context_line":"            driver_list \u003d pecan.request.dbapi.get_active_driver_dict()"}],"source_content_type":"text/x-python","patch_set":26,"id":"3a461143_cafd646f","line":370,"updated":"2017-01-31 11:10:50.000000000","message":"dict too :P","commit_id":"e77675781231409d16744ab9d1b13ffc92d358f6"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3e59bd10dc495a4efde4bfce2d0ab1d7cfe83ef0","unresolved":false,"context_lines":[{"line_number":367,"context_line":"                \u0027\"type\" filter must be one of \"classic\" or \"dynamic\", \u0027"},{"line_number":368,"context_line":"                \u0027if specified.\u0027))"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"        driver_list \u003d {}"},{"line_number":371,"context_line":"        hw_type_dict \u003d {}"},{"line_number":372,"context_line":"        if type is None or type \u003d\u003d \u0027classic\u0027:"},{"line_number":373,"context_line":"            driver_list \u003d pecan.request.dbapi.get_active_driver_dict()"}],"source_content_type":"text/x-python","patch_set":26,"id":"3a461143_95cd3468","line":370,"in_reply_to":"3a461143_cafd646f","updated":"2017-01-31 13:55:34.000000000","message":"Heh, this was already like this. I\u0027ll try to remember to fix it in a follow up when I have some time","commit_id":"e77675781231409d16744ab9d1b13ffc92d358f6"}],"ironic/api/controllers/v1/utils.py":[{"author":{"_account_id":18320,"name":"Dao Cong Tien","email":"tiendc@vn.fujitsu.com","username":"TienDC"},"change_message_id":"8ce2422c3ca8f9ba4d1b5e63834213922a3a8d1a","unresolved":false,"context_lines":[{"line_number":353,"context_line":"def check_allow_filter_driver_type(driver_type):"},{"line_number":354,"context_line":"    \"\"\"Check if filtering drivers by classic/dynamic is allowed."},{"line_number":355,"context_line":""},{"line_number":356,"context_line":"    Version 1.28 of the API allows this."},{"line_number":357,"context_line":"    \"\"\""},{"line_number":358,"context_line":"    if (driver_type is not None and pecan.request.version.minor \u003c"},{"line_number":359,"context_line":"            versions.MINOR_29_DYNAMIC_DRIVERS):"}],"source_content_type":"text/x-python","patch_set":12,"id":"5a3905b3_da5e99e8","line":356,"range":{"start_line":356,"start_character":12,"end_line":356,"end_character":16},"updated":"2017-01-20 09:27:37.000000000","message":"nit: s/1.28/1.29/","commit_id":"faf891c85bfcdfa937eba2ae3ae574ab4a35935c"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"432856d7ca677587ec3046136e060f84286a9d80","unresolved":false,"context_lines":[{"line_number":357,"context_line":"    \"\"\""},{"line_number":358,"context_line":"    if (driver_type is not None and pecan.request.version.minor \u003c"},{"line_number":359,"context_line":"            versions.MINOR_30_DYNAMIC_DRIVERS):"},{"line_number":360,"context_line":"        raise exception.NotAcceptable(_("},{"line_number":361,"context_line":"            \"Request not acceptable. The minimal required API version \""},{"line_number":362,"context_line":"            \"should be %(base)s.%(opr)s\") %"},{"line_number":363,"context_line":"            {\u0027base\u0027: versions.BASE_VERSION,"},{"line_number":364,"context_line":"             \u0027opr\u0027: versions.MINOR_30_DYNAMIC_DRIVERS})"},{"line_number":365,"context_line":""},{"line_number":366,"context_line":""},{"line_number":367,"context_line":"def initial_node_provision_state():"}],"source_content_type":"text/x-python","patch_set":15,"id":"5a3905b3_aabe31ab","line":364,"range":{"start_line":360,"start_character":14,"end_line":364,"end_character":55},"updated":"2017-01-24 14:08:27.000000000","message":"This is the only place so far we have so detailed description :)","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"7fd7e649c82ac4ea2ac6b48f81468f6e70094592","unresolved":false,"context_lines":[{"line_number":357,"context_line":"    \"\"\""},{"line_number":358,"context_line":"    if (driver_type is not None and pecan.request.version.minor \u003c"},{"line_number":359,"context_line":"            versions.MINOR_30_DYNAMIC_DRIVERS):"},{"line_number":360,"context_line":"        raise exception.NotAcceptable(_("},{"line_number":361,"context_line":"            \"Request not acceptable. The minimal required API version \""},{"line_number":362,"context_line":"            \"should be %(base)s.%(opr)s\") %"},{"line_number":363,"context_line":"            {\u0027base\u0027: versions.BASE_VERSION,"},{"line_number":364,"context_line":"             \u0027opr\u0027: versions.MINOR_30_DYNAMIC_DRIVERS})"},{"line_number":365,"context_line":""},{"line_number":366,"context_line":""},{"line_number":367,"context_line":"def initial_node_provision_state():"}],"source_content_type":"text/x-python","patch_set":15,"id":"5a3905b3_96be00ac","line":364,"range":{"start_line":360,"start_character":14,"end_line":364,"end_character":55},"in_reply_to":"5a3905b3_aabe31ab","updated":"2017-01-24 14:48:44.000000000","message":"And a few of them above :P","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"432856d7ca677587ec3046136e060f84286a9d80","unresolved":false,"context_lines":[{"line_number":506,"context_line":"def allow_dynamic_drivers():"},{"line_number":507,"context_line":"    \"\"\"Check if dynamic driver API calls are allowed."},{"line_number":508,"context_line":""},{"line_number":509,"context_line":"    Version 1.30 of the API added TODO."},{"line_number":510,"context_line":"    \"\"\""},{"line_number":511,"context_line":"    return (pecan.request.version.minor \u003e\u003d"},{"line_number":512,"context_line":"            versions.MINOR_30_DYNAMIC_DRIVERS)"}],"source_content_type":"text/x-python","patch_set":15,"id":"5a3905b3_874a5053","line":509,"range":{"start_line":509,"start_character":28,"end_line":509,"end_character":39},"updated":"2017-01-24 14:08:27.000000000","message":"?","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"7fd7e649c82ac4ea2ac6b48f81468f6e70094592","unresolved":false,"context_lines":[{"line_number":506,"context_line":"def allow_dynamic_drivers():"},{"line_number":507,"context_line":"    \"\"\"Check if dynamic driver API calls are allowed."},{"line_number":508,"context_line":""},{"line_number":509,"context_line":"    Version 1.30 of the API added TODO."},{"line_number":510,"context_line":"    \"\"\""},{"line_number":511,"context_line":"    return (pecan.request.version.minor \u003e\u003d"},{"line_number":512,"context_line":"            versions.MINOR_30_DYNAMIC_DRIVERS)"}],"source_content_type":"text/x-python","patch_set":15,"id":"5a3905b3_f6e584db","line":509,"range":{"start_line":509,"start_character":28,"end_line":509,"end_character":39},"in_reply_to":"5a3905b3_874a5053","updated":"2017-01-24 14:48:44.000000000","message":"Oops!","commit_id":"47e34a0291143c17e3bc3aeb3946cdb3507cfbce"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2db5ba4b8c6ae0cbcf6e16dddbbb8d1ae63328a5","unresolved":false,"context_lines":[{"line_number":356,"context_line":"    Version 1.30 of the API allows this."},{"line_number":357,"context_line":"    \"\"\""},{"line_number":358,"context_line":"    if (driver_type is not None and pecan.request.version.minor \u003c"},{"line_number":359,"context_line":"            versions.MINOR_30_DYNAMIC_DRIVERS):"},{"line_number":360,"context_line":"        raise exception.NotAcceptable(_("},{"line_number":361,"context_line":"            \"Request not acceptable. The minimal required API version \""},{"line_number":362,"context_line":"            \"should be %(base)s.%(opr)s\") %"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_da507d61","line":359,"updated":"2017-01-25 09:38:06.000000000","message":"nit:\n\n if driver_type is not None and not allow_dynamic_drivers():","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e26c4074e4417427acca90fb6c63a6c9b10712fc","unresolved":false,"context_lines":[{"line_number":356,"context_line":"    Version 1.30 of the API allows this."},{"line_number":357,"context_line":"    \"\"\""},{"line_number":358,"context_line":"    if (driver_type is not None and pecan.request.version.minor \u003c"},{"line_number":359,"context_line":"            versions.MINOR_30_DYNAMIC_DRIVERS):"},{"line_number":360,"context_line":"        raise exception.NotAcceptable(_("},{"line_number":361,"context_line":"            \"Request not acceptable. The minimal required API version \""},{"line_number":362,"context_line":"            \"should be %(base)s.%(opr)s\") %"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_30a51db5","line":359,"in_reply_to":"5a3905b3_da507d61","updated":"2017-01-25 14:36:12.000000000","message":"Done","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"15f51470cf7e7bcb2869da57a76039a443a5c661","unresolved":false,"context_lines":[{"line_number":363,"context_line":"             \u0027opr\u0027: versions.MINOR_30_DYNAMIC_DRIVERS})"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"def check_allow_driver_detail(detail):"},{"line_number":367,"context_line":"    \"\"\"Check if getting detailed driver info is allowed."},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"    Version 1.30 of the API allows this."}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_24eb0ab2","line":366,"updated":"2017-01-26 16:01:56.000000000","message":"These two can be combined","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"83750a401f945c7968ee8718c1e73c61546c2911","unresolved":false,"context_lines":[{"line_number":363,"context_line":"             \u0027opr\u0027: versions.MINOR_30_DYNAMIC_DRIVERS})"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":""},{"line_number":366,"context_line":"def check_allow_driver_detail(detail):"},{"line_number":367,"context_line":"    \"\"\"Check if getting detailed driver info is allowed."},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"    Version 1.30 of the API allows this."}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_b8739914","line":366,"in_reply_to":"3a461143_24eb0ab2","updated":"2017-01-26 16:59:04.000000000","message":"Meh, I like the explicitness.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":523,"context_line":"    \"\"\""},{"line_number":524,"context_line":"    return (pecan.request.version.minor \u003e\u003d"},{"line_number":525,"context_line":"            versions.MINOR_30_DYNAMIC_DRIVERS)"},{"line_number":526,"context_line":""},{"line_number":527,"context_line":""},{"line_number":528,"context_line":"def get_controller_reserved_names(cls):"},{"line_number":529,"context_line":"    \"\"\"Get reserved names for a given controller."}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_a7d7fceb","line":526,"updated":"2017-01-26 16:59:11.000000000","message":"I didn\u0027t see any unit tests for any of this new code.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":523,"context_line":"    \"\"\""},{"line_number":524,"context_line":"    return (pecan.request.version.minor \u003e\u003d"},{"line_number":525,"context_line":"            versions.MINOR_30_DYNAMIC_DRIVERS)"},{"line_number":526,"context_line":""},{"line_number":527,"context_line":""},{"line_number":528,"context_line":"def get_controller_reserved_names(cls):"},{"line_number":529,"context_line":"    \"\"\"Get reserved names for a given controller."}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_deb68ddb","line":526,"in_reply_to":"3a461143_a7d7fceb","updated":"2017-01-26 17:50:05.000000000","message":"Oh, oops. (Honestly things this simple shouldn\u0027t need tests, but we do, so)\n\nDone.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0b5374b36b2a4b7749270b73787914ed17418b32","unresolved":false,"context_lines":[{"line_number":523,"context_line":"    \"\"\""},{"line_number":524,"context_line":"    return (pecan.request.version.minor \u003e\u003d"},{"line_number":525,"context_line":"            versions.MINOR_30_DYNAMIC_DRIVERS)"},{"line_number":526,"context_line":""},{"line_number":527,"context_line":""},{"line_number":528,"context_line":"def get_controller_reserved_names(cls):"},{"line_number":529,"context_line":"    \"\"\"Get reserved names for a given controller."}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_2e13e067","line":526,"in_reply_to":"3a461143_deb68ddb","updated":"2017-01-26 18:48:21.000000000","message":"Yeah, we can delete the existing unit tests, but if we do, someone is going to come along and want to add them.\n\nAnyway, consistency...","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"}],"ironic/conductor/manager.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"c3440f813a7363fe16bb744f6a485f23b9e3fc41","unresolved":false,"context_lines":[{"line_number":372,"context_line":"        # implementation, as there is little we could reasonably lock on here."},{"line_number":373,"context_line":"        LOG.debug(\"RPC driver_vendor_passthru for driver %s.\", driver_name)"},{"line_number":374,"context_line":"        driver \u003d driver_factory.get_driver_or_hardware_type(driver_name)"},{"line_number":375,"context_line":"        if not getattr(driver, \u0027vendor\u0027, None):"},{"line_number":376,"context_line":"            raise exception.UnsupportedDriverExtension("},{"line_number":377,"context_line":"                driver\u003ddriver_name,"},{"line_number":378,"context_line":"                extension\u003d\u0027vendor interface\u0027)"},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"        try:"},{"line_number":381,"context_line":"            vendor_opts \u003d driver.vendor.driver_routes[driver_method]"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_2555e21c","line":378,"range":{"start_line":375,"start_character":8,"end_line":378,"end_character":45},"updated":"2017-01-25 10:02:23.000000000","message":"Hrm, if it is a hardware type, there is no vendor interface attribute in it. Is it supposed to do the default vendor interface calculation here?","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e4485a3a57fc685c8e8fc912384c886660b97ca1","unresolved":false,"context_lines":[{"line_number":372,"context_line":"        # implementation, as there is little we could reasonably lock on here."},{"line_number":373,"context_line":"        LOG.debug(\"RPC driver_vendor_passthru for driver %s.\", driver_name)"},{"line_number":374,"context_line":"        driver \u003d driver_factory.get_driver_or_hardware_type(driver_name)"},{"line_number":375,"context_line":"        if not getattr(driver, \u0027vendor\u0027, None):"},{"line_number":376,"context_line":"            raise exception.UnsupportedDriverExtension("},{"line_number":377,"context_line":"                driver\u003ddriver_name,"},{"line_number":378,"context_line":"                extension\u003d\u0027vendor interface\u0027)"},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"        try:"},{"line_number":381,"context_line":"            vendor_opts \u003d driver.vendor.driver_routes[driver_method]"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a461143_330c6742","line":378,"range":{"start_line":375,"start_character":8,"end_line":378,"end_character":45},"in_reply_to":"5a3905b3_1d5d9aec","updated":"2017-01-25 15:47:28.000000000","message":"I lied, this is only attached when we initialize a task object. Fixed.","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e26c4074e4417427acca90fb6c63a6c9b10712fc","unresolved":false,"context_lines":[{"line_number":372,"context_line":"        # implementation, as there is little we could reasonably lock on here."},{"line_number":373,"context_line":"        LOG.debug(\"RPC driver_vendor_passthru for driver %s.\", driver_name)"},{"line_number":374,"context_line":"        driver \u003d driver_factory.get_driver_or_hardware_type(driver_name)"},{"line_number":375,"context_line":"        if not getattr(driver, \u0027vendor\u0027, None):"},{"line_number":376,"context_line":"            raise exception.UnsupportedDriverExtension("},{"line_number":377,"context_line":"                driver\u003ddriver_name,"},{"line_number":378,"context_line":"                extension\u003d\u0027vendor interface\u0027)"},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"        try:"},{"line_number":381,"context_line":"            vendor_opts \u003d driver.vendor.driver_routes[driver_method]"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_1d5d9aec","line":378,"range":{"start_line":375,"start_character":8,"end_line":378,"end_character":45},"in_reply_to":"5a3905b3_2555e21c","updated":"2017-01-25 14:36:12.000000000","message":"We do have a vendor attribute, and attach it here, like all others: https://github.com/openstack/ironic/blob/master/ironic/common/driver_factory.py#L66","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"c3440f813a7363fe16bb744f6a485f23b9e3fc41","unresolved":false,"context_lines":[{"line_number":446,"context_line":"        LOG.debug(\"RPC get_driver_vendor_passthru_methods for driver %s\","},{"line_number":447,"context_line":"                  driver_name)"},{"line_number":448,"context_line":"        driver \u003d driver_factory.get_driver_or_hardware_type(driver_name)"},{"line_number":449,"context_line":"        if not getattr(driver, \u0027vendor\u0027, None):"},{"line_number":450,"context_line":"            raise exception.UnsupportedDriverExtension("},{"line_number":451,"context_line":"                driver\u003ddriver_name,"},{"line_number":452,"context_line":"                extension\u003d\u0027vendor interface\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_45302e08","line":449,"updated":"2017-01-25 10:02:23.000000000","message":"ditto","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e26c4074e4417427acca90fb6c63a6c9b10712fc","unresolved":false,"context_lines":[{"line_number":446,"context_line":"        LOG.debug(\"RPC get_driver_vendor_passthru_methods for driver %s\","},{"line_number":447,"context_line":"                  driver_name)"},{"line_number":448,"context_line":"        driver \u003d driver_factory.get_driver_or_hardware_type(driver_name)"},{"line_number":449,"context_line":"        if not getattr(driver, \u0027vendor\u0027, None):"},{"line_number":450,"context_line":"            raise exception.UnsupportedDriverExtension("},{"line_number":451,"context_line":"                driver\u003ddriver_name,"},{"line_number":452,"context_line":"                extension\u003d\u0027vendor interface\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_9d718a7a","line":449,"in_reply_to":"5a3905b3_45302e08","updated":"2017-01-25 14:36:12.000000000","message":"ditto :)","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":340,"context_line":""},{"line_number":341,"context_line":"        RPC method which handles driver-level vendor passthru calls. These"},{"line_number":342,"context_line":"        calls don\u0027t require a node UUID and are executed on a random"},{"line_number":343,"context_line":"        conductor with the specified driver. If the method mode is"},{"line_number":344,"context_line":"        async the conductor will start background worker to perform"},{"line_number":345,"context_line":"        vendor action."},{"line_number":346,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_78da3f7a","line":343,"updated":"2017-01-25 20:59:00.000000000","message":"Maybe we should mention that we use the default vendor interface for dynamic drivers.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":340,"context_line":""},{"line_number":341,"context_line":"        RPC method which handles driver-level vendor passthru calls. These"},{"line_number":342,"context_line":"        calls don\u0027t require a node UUID and are executed on a random"},{"line_number":343,"context_line":"        conductor with the specified driver. If the method mode is"},{"line_number":344,"context_line":"        async the conductor will start background worker to perform"},{"line_number":345,"context_line":"        vendor action."},{"line_number":346,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_cb09832e","line":343,"in_reply_to":"3a461143_78da3f7a","updated":"2017-01-26 12:11:46.000000000","message":"Done","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":345,"context_line":"        vendor action."},{"line_number":346,"context_line":""},{"line_number":347,"context_line":"        :param context: an admin context."},{"line_number":348,"context_line":"        :param driver_name: name of the driver on which to call the method."},{"line_number":349,"context_line":"        :param driver_method: name of the vendor method, for use by the driver."},{"line_number":350,"context_line":"        :param http_method: the HTTP method used for the request."},{"line_number":351,"context_line":"        :param info: user-supplied data to pass through to the driver."}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_78c15f80","line":348,"updated":"2017-01-25 20:59:00.000000000","message":"do we want to clarify \u0027driver\u0027 as classic or dynamic, or are we using driver to mean both now?","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":345,"context_line":"        vendor action."},{"line_number":346,"context_line":""},{"line_number":347,"context_line":"        :param context: an admin context."},{"line_number":348,"context_line":"        :param driver_name: name of the driver on which to call the method."},{"line_number":349,"context_line":"        :param driver_method: name of the vendor method, for use by the driver."},{"line_number":350,"context_line":"        :param http_method: the HTTP method used for the request."},{"line_number":351,"context_line":"        :param info: user-supplied data to pass through to the driver."}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_ab043715","line":348,"in_reply_to":"3a461143_78c15f80","updated":"2017-01-26 12:11:46.000000000","message":"Here it means both, I can change this line to clarify.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":374,"context_line":"        LOG.debug(\"RPC driver_vendor_passthru for driver %s.\", driver_name)"},{"line_number":375,"context_line":"        driver \u003d driver_factory.get_driver_or_hardware_type(driver_name)"},{"line_number":376,"context_line":"        if isinstance(driver, hardware_type.AbstractHardwareType):"},{"line_number":377,"context_line":"            vendor \u003d driver_factory.default_interface(driver, \u0027vendor\u0027)"},{"line_number":378,"context_line":"        else:"},{"line_number":379,"context_line":"            if not getattr(driver, \u0027vendor\u0027, None):"},{"line_number":380,"context_line":"                raise exception.UnsupportedDriverExtension("}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_b848275d","line":377,"updated":"2017-01-25 20:59:00.000000000","message":"vendor can be None, right? If so, we should raise an exception?","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":374,"context_line":"        LOG.debug(\"RPC driver_vendor_passthru for driver %s.\", driver_name)"},{"line_number":375,"context_line":"        driver \u003d driver_factory.get_driver_or_hardware_type(driver_name)"},{"line_number":376,"context_line":"        if isinstance(driver, hardware_type.AbstractHardwareType):"},{"line_number":377,"context_line":"            vendor \u003d driver_factory.default_interface(driver, \u0027vendor\u0027)"},{"line_number":378,"context_line":"        else:"},{"line_number":379,"context_line":"            if not getattr(driver, \u0027vendor\u0027, None):"},{"line_number":380,"context_line":"                raise exception.UnsupportedDriverExtension("}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_ab527711","line":377,"in_reply_to":"3a461143_b848275d","updated":"2017-01-26 12:11:46.000000000","message":"Done","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":442,"context_line":"        \"\"\"Retrieve information about vendor methods of the given driver."},{"line_number":443,"context_line":""},{"line_number":444,"context_line":"        :param context: an admin context."},{"line_number":445,"context_line":"        :param driver_name: name of the driver."},{"line_number":446,"context_line":"        :returns: dictionary of \u003cmethod name\u003e:\u003cmethod metadata\u003e entries."},{"line_number":447,"context_line":""},{"line_number":448,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_38b997ea","line":445,"updated":"2017-01-25 20:59:00.000000000","message":"ditto about driver, classic or dynamic.\n\nFor dynamic, these are methods for the default vendor interface.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":442,"context_line":"        \"\"\"Retrieve information about vendor methods of the given driver."},{"line_number":443,"context_line":""},{"line_number":444,"context_line":"        :param context: an admin context."},{"line_number":445,"context_line":"        :param driver_name: name of the driver."},{"line_number":446,"context_line":"        :returns: dictionary of \u003cmethod name\u003e:\u003cmethod metadata\u003e entries."},{"line_number":447,"context_line":""},{"line_number":448,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_4bbaf324","line":445,"in_reply_to":"3a461143_38b997ea","updated":"2017-01-26 12:11:46.000000000","message":"Done","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":452,"context_line":"                  driver_name)"},{"line_number":453,"context_line":"        driver \u003d driver_factory.get_driver_or_hardware_type(driver_name)"},{"line_number":454,"context_line":"        if isinstance(driver, hardware_type.AbstractHardwareType):"},{"line_number":455,"context_line":"            vendor \u003d driver_factory.default_interface(driver, \u0027vendor\u0027)"},{"line_number":456,"context_line":"        else:"},{"line_number":457,"context_line":"            if not getattr(driver, \u0027vendor\u0027, None):"},{"line_number":458,"context_line":"                raise exception.UnsupportedDriverExtension("}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_38b0b7f4","line":455,"updated":"2017-01-25 20:59:00.000000000","message":"can vendor be None?","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":452,"context_line":"                  driver_name)"},{"line_number":453,"context_line":"        driver \u003d driver_factory.get_driver_or_hardware_type(driver_name)"},{"line_number":454,"context_line":"        if isinstance(driver, hardware_type.AbstractHardwareType):"},{"line_number":455,"context_line":"            vendor \u003d driver_factory.default_interface(driver, \u0027vendor\u0027)"},{"line_number":456,"context_line":"        else:"},{"line_number":457,"context_line":"            if not getattr(driver, \u0027vendor\u0027, None):"},{"line_number":458,"context_line":"                raise exception.UnsupportedDriverExtension("}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_ab3c3794","line":455,"in_reply_to":"3a461143_38b0b7f4","updated":"2017-01-26 12:11:46.000000000","message":"Done","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":2372,"context_line":"        LOG.debug(\"RPC get_raid_logical_disk_properties \""},{"line_number":2373,"context_line":"                  \"called for driver %s\", driver_name)"},{"line_number":2374,"context_line":""},{"line_number":2375,"context_line":"        driver \u003d driver_factory.get_driver(driver_name)"},{"line_number":2376,"context_line":"        if not getattr(driver, \u0027raid\u0027, None):"},{"line_number":2377,"context_line":"            raise exception.UnsupportedDriverExtension("},{"line_number":2378,"context_line":"                driver\u003ddriver_name, extension\u003d\u0027raid\u0027)"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_337378b3","line":2375,"updated":"2017-01-25 20:59:00.000000000","message":"hmm. I guess we want to handle dynamic drivers here? using default (if any) raid interface?","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":2372,"context_line":"        LOG.debug(\"RPC get_raid_logical_disk_properties \""},{"line_number":2373,"context_line":"                  \"called for driver %s\", driver_name)"},{"line_number":2374,"context_line":""},{"line_number":2375,"context_line":"        driver \u003d driver_factory.get_driver(driver_name)"},{"line_number":2376,"context_line":"        if not getattr(driver, \u0027raid\u0027, None):"},{"line_number":2377,"context_line":"            raise exception.UnsupportedDriverExtension("},{"line_number":2378,"context_line":"                driver\u003ddriver_name, extension\u003d\u0027raid\u0027)"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_ab0a77d0","line":2375,"in_reply_to":"3a461143_337378b3","updated":"2017-01-26 12:11:46.000000000","message":"Ugh, this wasn\u0027t in the spec so I totally missed it. Will update.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"15f51470cf7e7bcb2869da57a76039a443a5c661","unresolved":false,"context_lines":[{"line_number":358,"context_line":"                 vendor interface, if the vendor interface does not implement"},{"line_number":359,"context_line":"                 driver-level vendor passthru or if the passthru method is"},{"line_number":360,"context_line":"                 unsupported."},{"line_number":361,"context_line":"        :raises: DriverNotFound if the supplied driver is not loaded."},{"line_number":362,"context_line":"        :raises: NoFreeConductorWorker when there is no free worker to start"},{"line_number":363,"context_line":"                 async task."},{"line_number":364,"context_line":"        :returns: A dictionary containing:"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_534a9d84","line":361,"updated":"2017-01-26 16:01:56.000000000","message":"ditto","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":358,"context_line":"                 vendor interface, if the vendor interface does not implement"},{"line_number":359,"context_line":"                 driver-level vendor passthru or if the passthru method is"},{"line_number":360,"context_line":"                 unsupported."},{"line_number":361,"context_line":"        :raises: DriverNotFound if the supplied driver is not loaded."},{"line_number":362,"context_line":"        :raises: NoFreeConductorWorker when there is no free worker to start"},{"line_number":363,"context_line":"                 async task."},{"line_number":364,"context_line":"        :returns: A dictionary containing:"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_9efde53c","line":361,"in_reply_to":"3a461143_534a9d84","updated":"2017-01-26 17:50:05.000000000","message":"Done","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":377,"context_line":"        LOG.debug(\"RPC driver_vendor_passthru for driver %s.\", driver_name)"},{"line_number":378,"context_line":"        driver \u003d driver_factory.get_driver_or_hardware_type(driver_name)"},{"line_number":379,"context_line":"        if isinstance(driver, hardware_type.AbstractHardwareType):"},{"line_number":380,"context_line":"            vendor \u003d driver_factory.default_interface(driver, \u0027vendor\u0027)"},{"line_number":381,"context_line":"            if vendor is not None:"},{"line_number":382,"context_line":"                vendor \u003d driver_factory.get_interface(driver, \u0027vendor\u0027, vendor)"},{"line_number":383,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_ce0c2645","line":380,"updated":"2017-01-26 16:59:11.000000000","message":"just a nit cuz i didn\u0027t catch this before. this is the (entrypoint) name of the vendor interface, so it\u0027d be clearer as s/vendor/vendor_name/\n\nActually, maybe it would be better to rename default_interface to default_interface_name.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":377,"context_line":"        LOG.debug(\"RPC driver_vendor_passthru for driver %s.\", driver_name)"},{"line_number":378,"context_line":"        driver \u003d driver_factory.get_driver_or_hardware_type(driver_name)"},{"line_number":379,"context_line":"        if isinstance(driver, hardware_type.AbstractHardwareType):"},{"line_number":380,"context_line":"            vendor \u003d driver_factory.default_interface(driver, \u0027vendor\u0027)"},{"line_number":381,"context_line":"            if vendor is not None:"},{"line_number":382,"context_line":"                vendor \u003d driver_factory.get_interface(driver, \u0027vendor\u0027, vendor)"},{"line_number":383,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_de95ade4","line":380,"in_reply_to":"3a461143_ce0c2645","updated":"2017-01-26 17:50:05.000000000","message":"Done. Let\u0027s rename default_interface in a later patch, though.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"15f51470cf7e7bcb2869da57a76039a443a5c661","unresolved":false,"context_lines":[{"line_number":451,"context_line":""},{"line_number":452,"context_line":"        :param context: an admin context."},{"line_number":453,"context_line":"        :param driver_name: name of the driver or hardware_type"},{"line_number":454,"context_line":"        :returns: dictionary of \u003cmethod name\u003e:\u003cmethod metadata\u003e entries."},{"line_number":455,"context_line":""},{"line_number":456,"context_line":"        \"\"\""},{"line_number":457,"context_line":"        # Any locking in a top-level vendor action will need to be done by the"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_734f9992","line":454,"updated":"2017-01-26 16:01:56.000000000","message":"ditto","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":451,"context_line":""},{"line_number":452,"context_line":"        :param context: an admin context."},{"line_number":453,"context_line":"        :param driver_name: name of the driver or hardware_type"},{"line_number":454,"context_line":"        :returns: dictionary of \u003cmethod name\u003e:\u003cmethod metadata\u003e entries."},{"line_number":455,"context_line":""},{"line_number":456,"context_line":"        \"\"\""},{"line_number":457,"context_line":"        # Any locking in a top-level vendor action will need to be done by the"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_be8f01cb","line":454,"in_reply_to":"3a461143_734f9992","updated":"2017-01-26 17:50:05.000000000","message":"Done","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":462,"context_line":"        if isinstance(driver, hardware_type.AbstractHardwareType):"},{"line_number":463,"context_line":"            vendor \u003d driver_factory.default_interface(driver, \u0027vendor\u0027)"},{"line_number":464,"context_line":"            if vendor is not None:"},{"line_number":465,"context_line":"                vendor \u003d driver_factory.get_interface(driver, \u0027vendor\u0027, vendor)"},{"line_number":466,"context_line":"        else:"},{"line_number":467,"context_line":"            vendor \u003d getattr(driver, \u0027vendor\u0027, None)"},{"line_number":468,"context_line":""}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_a4b53a32","line":465,"updated":"2017-01-26 16:59:11.000000000","message":"same nit cuz I\u0027m bummed that I didn\u0027t catch this :)","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":462,"context_line":"        if isinstance(driver, hardware_type.AbstractHardwareType):"},{"line_number":463,"context_line":"            vendor \u003d driver_factory.default_interface(driver, \u0027vendor\u0027)"},{"line_number":464,"context_line":"            if vendor is not None:"},{"line_number":465,"context_line":"                vendor \u003d driver_factory.get_interface(driver, \u0027vendor\u0027, vendor)"},{"line_number":466,"context_line":"        else:"},{"line_number":467,"context_line":"            vendor \u003d getattr(driver, \u0027vendor\u0027, None)"},{"line_number":468,"context_line":""}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_5e78ddc4","line":465,"in_reply_to":"3a461143_a4b53a32","updated":"2017-01-26 17:50:05.000000000","message":"Done","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":2372,"context_line":""},{"line_number":2373,"context_line":"        Gets the information about logical disk properties which can"},{"line_number":2374,"context_line":"        be specified in the input RAID configuration."},{"line_number":2375,"context_line":""},{"line_number":2376,"context_line":"        :param context: request context."},{"line_number":2377,"context_line":"        :param driver_name: name of the driver"},{"line_number":2378,"context_line":"        :raises: UnsupportedDriverExtension, if the driver doesn\u0027t"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_4496564d","line":2375,"updated":"2017-01-26 16:59:11.000000000","message":"nit maybe add \u0027For dynamic drivers, the default vendor interface is used.\u0027.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":2372,"context_line":""},{"line_number":2373,"context_line":"        Gets the information about logical disk properties which can"},{"line_number":2374,"context_line":"        be specified in the input RAID configuration."},{"line_number":2375,"context_line":""},{"line_number":2376,"context_line":"        :param context: request context."},{"line_number":2377,"context_line":"        :param driver_name: name of the driver"},{"line_number":2378,"context_line":"        :raises: UnsupportedDriverExtension, if the driver doesn\u0027t"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_fe3429fc","line":2375,"in_reply_to":"3a461143_4496564d","updated":"2017-01-26 17:50:05.000000000","message":"Done","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"15f51470cf7e7bcb2869da57a76039a443a5c661","unresolved":false,"context_lines":[{"line_number":2375,"context_line":""},{"line_number":2376,"context_line":"        :param context: request context."},{"line_number":2377,"context_line":"        :param driver_name: name of the driver"},{"line_number":2378,"context_line":"        :raises: UnsupportedDriverExtension, if the driver doesn\u0027t"},{"line_number":2379,"context_line":"            support RAID configuration."},{"line_number":2380,"context_line":"        :returns: A dictionary containing the properties and a textual"},{"line_number":2381,"context_line":"            description for them."}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_736879f6","line":2378,"updated":"2017-01-26 16:01:56.000000000","message":"InterfaceNotFoundInEntrypoint?","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"83750a401f945c7968ee8718c1e73c61546c2911","unresolved":false,"context_lines":[{"line_number":2375,"context_line":""},{"line_number":2376,"context_line":"        :param context: request context."},{"line_number":2377,"context_line":"        :param driver_name: name of the driver"},{"line_number":2378,"context_line":"        :raises: UnsupportedDriverExtension, if the driver doesn\u0027t"},{"line_number":2379,"context_line":"            support RAID configuration."},{"line_number":2380,"context_line":"        :returns: A dictionary containing the properties and a textual"},{"line_number":2381,"context_line":"            description for them."}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_3816c955","line":2378,"in_reply_to":"3a461143_736879f6","updated":"2017-01-26 16:59:04.000000000","message":"Done","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"}],"ironic/db/sqlalchemy/api.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"abde092cfec56eb3534fe304409f99ac314dda45","unresolved":false,"context_lines":[{"line_number":799,"context_line":"        interval \u003d CONF.conductor.heartbeat_timeout"},{"line_number":800,"context_line":"        limit \u003d timeutils.utcnow() - datetime.timedelta(seconds\u003dinterval)"},{"line_number":801,"context_line":""},{"line_number":802,"context_line":"        result \u003d (model_query(models.ConductorHardwareInterfaces)"},{"line_number":803,"context_line":"                  .distinct(models.ConductorHardwareInterfaces.hardware_type,"},{"line_number":804,"context_line":"                            models.ConductorHardwareInterfaces.interface_type,"},{"line_number":805,"context_line":"                            models.ConductorHardwareInterfaces.interface_name)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba5201f7_dc2403b4","line":802,"updated":"2017-01-09 16:56:35.000000000","message":"I think if you add models.Conductor here, then due to the join it will fetch the required fields, and you won\u0027t need the 2nd query.","commit_id":"1914a51ffc1851e82a93cfe9499aa28bd56c2853"},{"author":{"_account_id":18320,"name":"Dao Cong Tien","email":"tiendc@vn.fujitsu.com","username":"TienDC"},"change_message_id":"96cd4d3d867b9decc5e1d7dff0cc3d99fba4e4d2","unresolved":false,"context_lines":[{"line_number":831,"context_line":"                 .filter(models.ConductorHardwareInterfaces.hardware_type"},{"line_number":832,"context_line":"                         .in_(hardware_types)))"},{"line_number":833,"context_line":""},{"line_number":834,"context_line":"        query \u003d self._filter_active_conductors(query)"},{"line_number":835,"context_line":"        return query.all()"},{"line_number":836,"context_line":""},{"line_number":837,"context_line":"    def register_conductor_hardware_interfaces(self, conductor_id,"}],"source_content_type":"text/x-python","patch_set":13,"id":"5a3905b3_a89cd00f","line":834,"range":{"start_line":834,"start_character":16,"end_line":834,"end_character":46},"updated":"2017-01-23 03:20:51.000000000","message":"\u0027self\u0027 has no _filter_active_conductors.","commit_id":"e4bef1511da5bbafb2bf91d7877f1def2613bbc6"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2db5ba4b8c6ae0cbcf6e16dddbbb8d1ae63328a5","unresolved":false,"context_lines":[{"line_number":829,"context_line":"    def list_hardware_type_interfaces(self, hardware_types):"},{"line_number":830,"context_line":"        query \u003d (model_query(models.ConductorHardwareInterfaces)"},{"line_number":831,"context_line":"                 .filter(models.ConductorHardwareInterfaces.hardware_type"},{"line_number":832,"context_line":"                         .in_(hardware_types)))"},{"line_number":833,"context_line":""},{"line_number":834,"context_line":"        query \u003d _filter_active_conductors(query)"},{"line_number":835,"context_line":"        return query.all()"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_1a4be5b1","line":832,"updated":"2017-01-25 09:38:06.000000000","message":"nit: you may want to force hardware_types to be a list, as you try to pass dict.keys() here which is an iterator in python 3","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e26c4074e4417427acca90fb6c63a6c9b10712fc","unresolved":false,"context_lines":[{"line_number":829,"context_line":"    def list_hardware_type_interfaces(self, hardware_types):"},{"line_number":830,"context_line":"        query \u003d (model_query(models.ConductorHardwareInterfaces)"},{"line_number":831,"context_line":"                 .filter(models.ConductorHardwareInterfaces.hardware_type"},{"line_number":832,"context_line":"                         .in_(hardware_types)))"},{"line_number":833,"context_line":""},{"line_number":834,"context_line":"        query \u003d _filter_active_conductors(query)"},{"line_number":835,"context_line":"        return query.all()"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_b0cd8d5f","line":832,"in_reply_to":"5a3905b3_1a4be5b1","updated":"2017-01-25 14:36:12.000000000","message":"Fixed the caller instead :)","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":829,"context_line":"    def list_hardware_type_interfaces(self, hardware_types):"},{"line_number":830,"context_line":"        query \u003d (model_query(models.ConductorHardwareInterfaces)"},{"line_number":831,"context_line":"                 .filter(models.ConductorHardwareInterfaces.hardware_type"},{"line_number":832,"context_line":"                         .in_(hardware_types)))"},{"line_number":833,"context_line":""},{"line_number":834,"context_line":"        query \u003d _filter_active_conductors(query)"},{"line_number":835,"context_line":"        return query.all()"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_4ddb07ee","line":832,"updated":"2017-01-25 20:59:00.000000000","message":"I trust that this works.","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"89cacd4eac4efa41bf66278f6791b8bcf7a9ad53","unresolved":false,"context_lines":[{"line_number":829,"context_line":"    def list_hardware_type_interfaces(self, hardware_types):"},{"line_number":830,"context_line":"        query \u003d (model_query(models.ConductorHardwareInterfaces)"},{"line_number":831,"context_line":"                 .filter(models.ConductorHardwareInterfaces.hardware_type"},{"line_number":832,"context_line":"                         .in_(hardware_types)))"},{"line_number":833,"context_line":""},{"line_number":834,"context_line":"        query \u003d _filter_active_conductors(query)"},{"line_number":835,"context_line":"        return query.all()"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_e492e24a","line":832,"in_reply_to":"3a461143_0bcf0b80","updated":"2017-01-26 16:59:20.000000000","message":"it just means that I didn\u0027t want to look into it to convince myself it works.  Probably should not have added that comment :(","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":829,"context_line":"    def list_hardware_type_interfaces(self, hardware_types):"},{"line_number":830,"context_line":"        query \u003d (model_query(models.ConductorHardwareInterfaces)"},{"line_number":831,"context_line":"                 .filter(models.ConductorHardwareInterfaces.hardware_type"},{"line_number":832,"context_line":"                         .in_(hardware_types)))"},{"line_number":833,"context_line":""},{"line_number":834,"context_line":"        query \u003d _filter_active_conductors(query)"},{"line_number":835,"context_line":"        return query.all()"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_0bcf0b80","line":832,"in_reply_to":"3a461143_4ddb07ee","updated":"2017-01-26 12:11:46.000000000","message":"Not sure what this comment means. Is the unit test not enough? Do you want a link to in_() docs?","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":832,"context_line":"                         .in_(hardware_types)))"},{"line_number":833,"context_line":""},{"line_number":834,"context_line":"        query \u003d _filter_active_conductors(query)"},{"line_number":835,"context_line":"        return query.all()"},{"line_number":836,"context_line":""},{"line_number":837,"context_line":"    def register_conductor_hardware_interfaces(self, conductor_id,"},{"line_number":838,"context_line":"                                               hardware_type, interface_type,"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_27486c87","line":835,"updated":"2017-01-26 16:59:11.000000000","message":"there\u0027s probably room for improvement down the road. if we assume all active conductors have the same hardware-type-interfaces, we only need to return a set from one conductor -- for use in this particular feature anyway.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":832,"context_line":"                         .in_(hardware_types)))"},{"line_number":833,"context_line":""},{"line_number":834,"context_line":"        query \u003d _filter_active_conductors(query)"},{"line_number":835,"context_line":"        return query.all()"},{"line_number":836,"context_line":""},{"line_number":837,"context_line":"    def register_conductor_hardware_interfaces(self, conductor_id,"},{"line_number":838,"context_line":"                                               hardware_type, interface_type,"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_390deb37","line":835,"in_reply_to":"3a461143_27486c87","updated":"2017-01-26 17:50:05.000000000","message":"Conductors can have different hardware types enabled. We only assume for a given hardware type, all conductors have the same enabled/default interfaces.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0b5374b36b2a4b7749270b73787914ed17418b32","unresolved":false,"context_lines":[{"line_number":832,"context_line":"                         .in_(hardware_types)))"},{"line_number":833,"context_line":""},{"line_number":834,"context_line":"        query \u003d _filter_active_conductors(query)"},{"line_number":835,"context_line":"        return query.all()"},{"line_number":836,"context_line":""},{"line_number":837,"context_line":"    def register_conductor_hardware_interfaces(self, conductor_id,"},{"line_number":838,"context_line":"                                               hardware_type, interface_type,"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_813d85bd","line":835,"in_reply_to":"3a461143_390deb37","updated":"2017-01-26 18:48:21.000000000","message":"oh, my head hurts! :D","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"}],"ironic/drivers/generic.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2db5ba4b8c6ae0cbcf6e16dddbbb8d1ae63328a5","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    @property"},{"line_number":89,"context_line":"    def supported_vendor_interfaces(self):"},{"line_number":90,"context_line":"        \"\"\"List of supported vendor interfaces.\"\"\""},{"line_number":91,"context_line":"        return [noop.NoVendor, fake.FakeVendorB]"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_fa4d39c5","line":91,"updated":"2017-01-25 09:38:06.000000000","message":"I don\u0027t quite agree with adding FakeVendorB here. This type is not the same as FakeHardware (which we also have btw), it has a real use case (see the docstring)","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"e26c4074e4417427acca90fb6c63a6c9b10712fc","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    @property"},{"line_number":89,"context_line":"    def supported_vendor_interfaces(self):"},{"line_number":90,"context_line":"        \"\"\"List of supported vendor interfaces.\"\"\""},{"line_number":91,"context_line":"        return [noop.NoVendor, fake.FakeVendorB]"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_10ed818e","line":91,"in_reply_to":"5a3905b3_8008442a","updated":"2017-01-25 14:36:12.000000000","message":"Ah, my fault, I threw this in here for testing and forgot about it. :)","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"c3440f813a7363fe16bb744f6a485f23b9e3fc41","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    @property"},{"line_number":89,"context_line":"    def supported_vendor_interfaces(self):"},{"line_number":90,"context_line":"        \"\"\"List of supported vendor interfaces.\"\"\""},{"line_number":91,"context_line":"        return [noop.NoVendor, fake.FakeVendorB]"}],"source_content_type":"text/x-python","patch_set":18,"id":"5a3905b3_8008442a","line":91,"in_reply_to":"5a3905b3_fa4d39c5","updated":"2017-01-25 10:02:23.000000000","message":"++ yeah, seems like fake stuff should not be here.","commit_id":"f0ab3c790dbbe5e7a78e615580062d1b9c31aca3"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"ac24b66e8a9e199b20ebd0ec0ab87f4c10a97750","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    @property"},{"line_number":89,"context_line":"    def supported_vendor_interfaces(self):"},{"line_number":90,"context_line":"        \"\"\"List of supported vendor interfaces.\"\"\""},{"line_number":91,"context_line":"        return [noop.NoVendor, fake.FakeVendorB]"}],"source_content_type":"text/x-python","patch_set":19,"id":"3a461143_75525adf","line":91,"updated":"2017-01-25 14:03:24.000000000","message":"I still think this implementation should be removed","commit_id":"ccda459fdc5a65512c6c205769e701c7340269e8"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"a72565d09220204d845bd2f85b10a8fad5473e28","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    @property"},{"line_number":89,"context_line":"    def supported_vendor_interfaces(self):"},{"line_number":90,"context_line":"        \"\"\"List of supported vendor interfaces.\"\"\""},{"line_number":91,"context_line":"        return [noop.NoVendor, fake.FakeVendorB]"}],"source_content_type":"text/x-python","patch_set":19,"id":"3a461143_36545553","line":91,"in_reply_to":"3a461143_75525adf","updated":"2017-01-25 16:05:50.000000000","message":"Done","commit_id":"ccda459fdc5a65512c6c205769e701c7340269e8"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"392a6de233d4137a18357204a90fdd0691bb1781","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    @property"},{"line_number":89,"context_line":"    def supported_vendor_interfaces(self):"},{"line_number":90,"context_line":"        \"\"\"List of supported vendor interfaces.\"\"\""},{"line_number":91,"context_line":"        return [noop.NoVendor, fake.FakeVendorB]"}],"source_content_type":"text/x-python","patch_set":20,"id":"3a461143_d6ba31c0","line":91,"range":{"start_line":91,"start_character":31,"end_line":91,"end_character":47},"updated":"2017-01-25 15:58:19.000000000","message":"hah, still here :D","commit_id":"8fc7fb7aa415b62d41e973e8e6ba0c6feee94810"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"2965789f9ef826d60c4c0a3c603446593ee0845c","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    @property"},{"line_number":89,"context_line":"    def supported_vendor_interfaces(self):"},{"line_number":90,"context_line":"        \"\"\"List of supported vendor interfaces.\"\"\""},{"line_number":91,"context_line":"        return [noop.NoVendor]"}],"source_content_type":"text/x-python","patch_set":22,"id":"3a461143_7e3eafb9","line":91,"updated":"2017-01-25 18:07:59.000000000","message":"nit: this duplicates definition in AbstractHardwareType","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"}],"ironic/drivers/hardware_type.py":[{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"9165ec7c834b2b0802c67a60d38d18216ca7aeb5","unresolved":false,"context_lines":[{"line_number":92,"context_line":"        \"\"\"List of supported vendor interfaces.\"\"\""},{"line_number":93,"context_line":"        return [noop.NoVendor]"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def get_properties(self):"},{"line_number":96,"context_line":"        \"\"\"Get the properties of the hardware type."},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        Note that this returns properties for the default interface of each"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_6be14b9a","line":95,"updated":"2017-01-27 00:26:37.000000000","message":"Is there a unit test for this? Okay for follow-up if not.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3750981bb01b85be8c54549d6b1923978717095b","unresolved":false,"context_lines":[{"line_number":92,"context_line":"        \"\"\"List of supported vendor interfaces.\"\"\""},{"line_number":93,"context_line":"        return [noop.NoVendor]"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def get_properties(self):"},{"line_number":96,"context_line":"        \"\"\"Get the properties of the hardware type."},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        Note that this returns properties for the default interface of each"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_a776a6d4","line":95,"in_reply_to":"3a461143_6be14b9a","updated":"2017-01-30 20:35:07.000000000","message":"Not directly, nor for classic drivers (ironic/drivers/base.py). We do test it transiently, I believe. I\u0027ll try to write one up in a follow up.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"}],"ironic/drivers/modules/noop.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":65,"context_line":"class NoRAID(FailMixin, base.RAIDInterface):"},{"line_number":66,"context_line":"    \"\"\"RAID interface implementation that raises errors on all requests.\"\"\""},{"line_number":67,"context_line":"    create_configuration \u003d delete_configuration \u003d _fail"},{"line_number":68,"context_line":"    validate_raid_config \u003d _fail"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_8735a0db","line":68,"updated":"2017-01-26 16:59:11.000000000","message":"you shouldn\u0027t have to do this; it looks like a bug in RAIDInterface (guessing cuz interface.raid_schema doesn\u0027t exist). OK for now; I\u0027ll fix it later.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":65,"context_line":"class NoRAID(FailMixin, base.RAIDInterface):"},{"line_number":66,"context_line":"    \"\"\"RAID interface implementation that raises errors on all requests.\"\"\""},{"line_number":67,"context_line":"    create_configuration \u003d delete_configuration \u003d _fail"},{"line_number":68,"context_line":"    validate_raid_config \u003d _fail"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_b919db7b","line":68,"in_reply_to":"3a461143_8735a0db","updated":"2017-01-26 17:50:05.000000000","message":":)","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"9165ec7c834b2b0802c67a60d38d18216ca7aeb5","unresolved":false,"context_lines":[{"line_number":65,"context_line":"class NoRAID(FailMixin, base.RAIDInterface):"},{"line_number":66,"context_line":"    \"\"\"RAID interface implementation that raises errors on all requests.\"\"\""},{"line_number":67,"context_line":"    create_configuration \u003d delete_configuration \u003d _fail"},{"line_number":68,"context_line":"    validate_raid_config \u003d _fail"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_2b8583ac","line":68,"updated":"2017-01-27 00:26:37.000000000","message":"I\u0027ll admit I don\u0027t understand what this is for and how it relates to the API change.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dd38920b77c2b01b1e1dae6f5b1bbcfccf5036b7","unresolved":false,"context_lines":[{"line_number":65,"context_line":"class NoRAID(FailMixin, base.RAIDInterface):"},{"line_number":66,"context_line":"    \"\"\"RAID interface implementation that raises errors on all requests.\"\"\""},{"line_number":67,"context_line":"    create_configuration \u003d delete_configuration \u003d _fail"},{"line_number":68,"context_line":"    validate_raid_config \u003d _fail"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_f17c4574","line":68,"in_reply_to":"3a461143_2b8583ac","updated":"2017-01-27 03:04:48.000000000","message":"I thought I understood, and since John asked, I thought I\u0027d \u0027fix\u0027 it. However, it turns out I didn\u0027t understand.\n\nI mean, we may want this still, because w/o it, validate_raid_config() will succeed. And maybe these classes are meant to fail.\n\nIf that\u0027s the case that we want this, we may want to add similar thing/methods to all these classes...","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"d28b590778490d59cb7cc8d989789623b410bdb5","unresolved":false,"context_lines":[{"line_number":65,"context_line":"class NoRAID(FailMixin, base.RAIDInterface):"},{"line_number":66,"context_line":"    \"\"\"RAID interface implementation that raises errors on all requests.\"\"\""},{"line_number":67,"context_line":"    create_configuration \u003d delete_configuration \u003d _fail"},{"line_number":68,"context_line":"    validate_raid_config \u003d _fail"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_72d482bc","line":68,"in_reply_to":"3a461143_31975b49","updated":"2017-01-30 17:01:50.000000000","message":"so outside the scope of this patch\n\nwe need to articulate what the NoX classes should do, not do. Ie, which methods should be set to _fail? Not get_properties(). And then someone should go through all these  classes and make sure they comply.\n\nDid anyone look to see what the output is if validate fails? (I don\u0027t have a working system right now) Wondering if it is clear that the validate fail is OK to the user.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3750981bb01b85be8c54549d6b1923978717095b","unresolved":false,"context_lines":[{"line_number":65,"context_line":"class NoRAID(FailMixin, base.RAIDInterface):"},{"line_number":66,"context_line":"    \"\"\"RAID interface implementation that raises errors on all requests.\"\"\""},{"line_number":67,"context_line":"    create_configuration \u003d delete_configuration \u003d _fail"},{"line_number":68,"context_line":"    validate_raid_config \u003d _fail"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_c7049219","line":68,"in_reply_to":"3a461143_72d482bc","updated":"2017-01-30 20:35:07.000000000","message":"Signature problem is fixed.\n\nI\u0027ll check out the validation failure message when I get a chance.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"c6d36fc890a90266aba6cd15c3b310bf1cb8c4e0","unresolved":false,"context_lines":[{"line_number":65,"context_line":"class NoRAID(FailMixin, base.RAIDInterface):"},{"line_number":66,"context_line":"    \"\"\"RAID interface implementation that raises errors on all requests.\"\"\""},{"line_number":67,"context_line":"    create_configuration \u003d delete_configuration \u003d _fail"},{"line_number":68,"context_line":"    validate_raid_config \u003d _fail"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_31975b49","line":68,"in_reply_to":"3a461143_afa96ee1","updated":"2017-01-30 15:51:28.000000000","message":"Note: dtantsur pointed out this is a signature mismatch","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"31fd9d027067dd65c12de8dbc69bc25ac1503128","unresolved":false,"context_lines":[{"line_number":65,"context_line":"class NoRAID(FailMixin, base.RAIDInterface):"},{"line_number":66,"context_line":"    \"\"\"RAID interface implementation that raises errors on all requests.\"\"\""},{"line_number":67,"context_line":"    create_configuration \u003d delete_configuration \u003d _fail"},{"line_number":68,"context_line":"    validate_raid_config \u003d _fail"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_afa96ee1","line":68,"in_reply_to":"3a461143_f17c4574","updated":"2017-01-27 11:18:08.000000000","message":"Well, validate is set to _fail already in the mixin: https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/noop.py#L39\n\nBut validate_raid_config() is special (for only the raid interface), and it makes sense to fail validation if we won\u0027t be able to create the config (IMO).","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"}],"ironic/tests/unit/api/v1/test_drivers.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"ac24b66e8a9e199b20ebd0ec0ab87f4c10a97750","unresolved":false,"context_lines":[{"line_number":173,"context_line":"                # NOTE(jroll) we don\u0027t expose storage interface yet"},{"line_number":174,"context_line":"                if iface !\u003d \u0027storage\u0027:"},{"line_number":175,"context_line":"                    self.assertIn(\u0027default_%s_interface\u0027 % iface, data.keys())"},{"line_number":176,"context_line":"                    self.assertIn(\u0027enabled_%s_interfaces\u0027 % iface, data.keys())"},{"line_number":177,"context_line":"            self.assertIsNotNone(data[\u0027default_deploy_interface\u0027])"},{"line_number":178,"context_line":"            self.assertIsNotNone(data[\u0027enabled_deploy_interfaces\u0027])"},{"line_number":179,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":19,"id":"3a461143_55555ec4","line":176,"updated":"2017-01-25 14:03:24.000000000","message":"nit: keys() is redundant","commit_id":"ccda459fdc5a65512c6c205769e701c7340269e8"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"a72565d09220204d845bd2f85b10a8fad5473e28","unresolved":false,"context_lines":[{"line_number":173,"context_line":"                # NOTE(jroll) we don\u0027t expose storage interface yet"},{"line_number":174,"context_line":"                if iface !\u003d \u0027storage\u0027:"},{"line_number":175,"context_line":"                    self.assertIn(\u0027default_%s_interface\u0027 % iface, data.keys())"},{"line_number":176,"context_line":"                    self.assertIn(\u0027enabled_%s_interfaces\u0027 % iface, data.keys())"},{"line_number":177,"context_line":"            self.assertIsNotNone(data[\u0027default_deploy_interface\u0027])"},{"line_number":178,"context_line":"            self.assertIsNotNone(data[\u0027enabled_deploy_interfaces\u0027])"},{"line_number":179,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":19,"id":"3a461143_d6cb111d","line":176,"in_reply_to":"3a461143_55555ec4","updated":"2017-01-25 16:05:50.000000000","message":"Done","commit_id":"ccda459fdc5a65512c6c205769e701c7340269e8"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                self.assertEqual(e[\u0027type\u0027], d[\u0027type\u0027])"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"            if detail:"},{"line_number":83,"context_line":"                self.assertIn(\u0027default_deploy_interface\u0027, d)"},{"line_number":84,"context_line":"            else:"},{"line_number":85,"context_line":"                # ensure we don\u0027t spill these fields into driver listing"},{"line_number":86,"context_line":"                # one should be enough"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_98ba5d22","line":83,"updated":"2017-01-26 16:59:11.000000000","message":"I\u0027m stuck here. If detail but not use_dynamic, the request has detail\u003dTrue but the header version is \u003c 1.30? If that\u0027s the case, this shouldn\u0027t be true, should it?\n\nOH, I see, you don\u0027t actually test for use_dynamic\u003dFalse, detail\u003dTrue.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                self.assertEqual(e[\u0027type\u0027], d[\u0027type\u0027])"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"            if detail:"},{"line_number":83,"context_line":"                self.assertIn(\u0027default_deploy_interface\u0027, d)"},{"line_number":84,"context_line":"            else:"},{"line_number":85,"context_line":"                # ensure we don\u0027t spill these fields into driver listing"},{"line_number":86,"context_line":"                # one should be enough"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_793db3ba","line":83,"in_reply_to":"3a461143_98ba5d22","updated":"2017-01-26 17:50:05.000000000","message":"Yep","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":441,"context_line":"                         driver._DRIVER_PROPERTIES[driver_name])"},{"line_number":442,"context_line":""},{"line_number":443,"context_line":"    def test_driver_properties_hw_type(self, mock_topic, mock_properties):"},{"line_number":444,"context_line":"        # Can get driver properties for fake driver."},{"line_number":445,"context_line":"        driver._DRIVER_PROPERTIES \u003d {}"},{"line_number":446,"context_line":"        driver_name \u003d \u0027manual-management\u0027"},{"line_number":447,"context_line":"        mock_topic.return_value \u003d \u0027fake_topic\u0027"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_330d0a38","line":444,"updated":"2017-01-26 16:59:11.000000000","message":"nit: s/fake driver/manual-management hardware type/","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":441,"context_line":"                         driver._DRIVER_PROPERTIES[driver_name])"},{"line_number":442,"context_line":""},{"line_number":443,"context_line":"    def test_driver_properties_hw_type(self, mock_topic, mock_properties):"},{"line_number":444,"context_line":"        # Can get driver properties for fake driver."},{"line_number":445,"context_line":"        driver._DRIVER_PROPERTIES \u003d {}"},{"line_number":446,"context_line":"        driver_name \u003d \u0027manual-management\u0027"},{"line_number":447,"context_line":"        mock_topic.return_value \u003d \u0027fake_topic\u0027"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_f9852359","line":444,"in_reply_to":"3a461143_330d0a38","updated":"2017-01-26 17:50:05.000000000","message":"Done","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"fa5b53f2ce6f575b337bc0372dd7bae965d17bb8","unresolved":false,"context_lines":[{"line_number":79,"context_line":"            if use_dynamic:"},{"line_number":80,"context_line":"                self.assertEqual(e[\u0027type\u0027], d[\u0027type\u0027])"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"            if detail:"},{"line_number":83,"context_line":"                self.assertIn(\u0027default_deploy_interface\u0027, d)"},{"line_number":84,"context_line":"            else:"},{"line_number":85,"context_line":"                # ensure we don\u0027t spill these fields into driver listing"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_e182c951","line":82,"updated":"2017-01-26 18:48:11.000000000","message":"nit: might be useful to add a comment somewhere that this test doesn\u0027t handle the case where detail\u003dTrue and use_dynamic\u003dFalse.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"996c45a2491129fdf1c045bf8398101da5f35fe2","unresolved":false,"context_lines":[{"line_number":79,"context_line":"            if use_dynamic:"},{"line_number":80,"context_line":"                self.assertEqual(e[\u0027type\u0027], d[\u0027type\u0027])"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"            if detail:"},{"line_number":83,"context_line":"                self.assertIn(\u0027default_deploy_interface\u0027, d)"},{"line_number":84,"context_line":"            else:"},{"line_number":85,"context_line":"                # ensure we don\u0027t spill these fields into driver listing"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_ff1260b3","line":82,"in_reply_to":"3a461143_e182c951","updated":"2017-01-26 19:29:43.000000000","message":"Can do that in a follow-up","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3750981bb01b85be8c54549d6b1923978717095b","unresolved":false,"context_lines":[{"line_number":79,"context_line":"            if use_dynamic:"},{"line_number":80,"context_line":"                self.assertEqual(e[\u0027type\u0027], d[\u0027type\u0027])"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"            if detail:"},{"line_number":83,"context_line":"                self.assertIn(\u0027default_deploy_interface\u0027, d)"},{"line_number":84,"context_line":"            else:"},{"line_number":85,"context_line":"                # ensure we don\u0027t spill these fields into driver listing"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_f9d4d220","line":82,"in_reply_to":"3a461143_ff1260b3","updated":"2017-01-30 20:35:07.000000000","message":"Done","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"}],"ironic/tests/unit/conductor/test_manager.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"15f51470cf7e7bcb2869da57a76039a443a5c661","unresolved":false,"context_lines":[{"line_number":637,"context_line":"        self._test_vendor_passthru_async(\u0027fake\u0027, None)"},{"line_number":638,"context_line":""},{"line_number":639,"context_line":"    def test_vendor_passthru_async_hw_type(self):"},{"line_number":640,"context_line":"        self.config(enabled_vendor_interfaces\u003d[\u0027fake\u0027])"},{"line_number":641,"context_line":"        self._test_vendor_passthru_async(\u0027fake-hardware\u0027, \u0027fake\u0027)"},{"line_number":642,"context_line":""},{"line_number":643,"context_line":"    @mock.patch.object(task_manager.TaskManager, \u0027upgrade_lock\u0027)"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_e7a4a4ba","line":640,"updated":"2017-01-26 16:01:56.000000000","message":"already enabled in base class","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":968,"context_line":"                                                               driver_name)"},{"line_number":969,"context_line":"        # The function reference should not be returned"},{"line_number":970,"context_line":"        del fake_routes[\u0027test_method\u0027][\u0027func\u0027]"},{"line_number":971,"context_line":"        self.assertEqual(fake_routes, data)"},{"line_number":972,"context_line":""},{"line_number":973,"context_line":"    def test_get_driver_vendor_passthru_methods(self):"},{"line_number":974,"context_line":"        self._test_get_driver_vendor_passthru_methods(False)"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_4df91980","line":971,"updated":"2017-01-26 16:59:11.000000000","message":"if is_hw_type, I don\u0027t know if you want to assert that mock_get_if was called (and not called if not is_hw_type).","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":968,"context_line":"                                                               driver_name)"},{"line_number":969,"context_line":"        # The function reference should not be returned"},{"line_number":970,"context_line":"        del fake_routes[\u0027test_method\u0027][\u0027func\u0027]"},{"line_number":971,"context_line":"        self.assertEqual(fake_routes, data)"},{"line_number":972,"context_line":""},{"line_number":973,"context_line":"    def test_get_driver_vendor_passthru_methods(self):"},{"line_number":974,"context_line":"        self._test_get_driver_vendor_passthru_methods(False)"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_f9ec432b","line":971,"in_reply_to":"3a461143_4df91980","updated":"2017-01-26 17:50:05.000000000","message":"Done","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":3842,"context_line":"        exc \u003d self.assertRaises(messaging.rpc.ExpectedException,"},{"line_number":3843,"context_line":"                                self.service.get_raid_logical_disk_properties,"},{"line_number":3844,"context_line":"                                self.context, self.driver_name)"},{"line_number":3845,"context_line":"        self.assertEqual(exception.UnsupportedDriverExtension, exc.exc_info[0])"},{"line_number":3846,"context_line":""},{"line_number":3847,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3848,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_6dfed539","line":3845,"updated":"2017-01-26 16:59:11.000000000","message":"do we want a test that shows that get_raid_logical_disk_properties works for hw types?","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":3842,"context_line":"        exc \u003d self.assertRaises(messaging.rpc.ExpectedException,"},{"line_number":3843,"context_line":"                                self.service.get_raid_logical_disk_properties,"},{"line_number":3844,"context_line":"                                self.context, self.driver_name)"},{"line_number":3845,"context_line":"        self.assertEqual(exception.UnsupportedDriverExtension, exc.exc_info[0])"},{"line_number":3846,"context_line":""},{"line_number":3847,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3848,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_f91b637e","line":3845,"in_reply_to":"3a461143_6dfed539","updated":"2017-01-26 17:50:05.000000000","message":"This class inherits from RaidTestCases, with driver_name and raid_interface set differently, so we do test this with test_get_raid_logical_disk_properties. The methods I have here override the tests from the parent because we have to \"disable\" the raid interface differently.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0b5374b36b2a4b7749270b73787914ed17418b32","unresolved":false,"context_lines":[{"line_number":3842,"context_line":"        exc \u003d self.assertRaises(messaging.rpc.ExpectedException,"},{"line_number":3843,"context_line":"                                self.service.get_raid_logical_disk_properties,"},{"line_number":3844,"context_line":"                                self.context, self.driver_name)"},{"line_number":3845,"context_line":"        self.assertEqual(exception.UnsupportedDriverExtension, exc.exc_info[0])"},{"line_number":3846,"context_line":""},{"line_number":3847,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3848,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_c1eeadb3","line":3845,"in_reply_to":"3a461143_f91b637e","updated":"2017-01-26 18:48:21.000000000","message":"That is so cool! I learned something new :) We should take advantage of this more often.","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"fa5b53f2ce6f575b337bc0372dd7bae965d17bb8","unresolved":false,"context_lines":[{"line_number":976,"context_line":"        if is_hw_type:"},{"line_number":977,"context_line":"            mock_get_if.assert_called_once_with(mock.ANY, \u0027vendor\u0027, \u0027fake\u0027)"},{"line_number":978,"context_line":"        else:"},{"line_number":979,"context_line":"            self.assertEqual(0, mock_get_if.call_count)"},{"line_number":980,"context_line":""},{"line_number":981,"context_line":"    def test_get_driver_vendor_passthru_methods(self):"},{"line_number":982,"context_line":"        self._test_get_driver_vendor_passthru_methods(False)"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_a15601d0","line":979,"updated":"2017-01-26 18:48:11.000000000","message":"nit: or self.assertFalse(mock_get_if.called). or even better mock_get_if.assert_not_called()!","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"996c45a2491129fdf1c045bf8398101da5f35fe2","unresolved":false,"context_lines":[{"line_number":976,"context_line":"        if is_hw_type:"},{"line_number":977,"context_line":"            mock_get_if.assert_called_once_with(mock.ANY, \u0027vendor\u0027, \u0027fake\u0027)"},{"line_number":978,"context_line":"        else:"},{"line_number":979,"context_line":"            self.assertEqual(0, mock_get_if.call_count)"},{"line_number":980,"context_line":""},{"line_number":981,"context_line":"    def test_get_driver_vendor_passthru_methods(self):"},{"line_number":982,"context_line":"        self._test_get_driver_vendor_passthru_methods(False)"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_7f275012","line":979,"in_reply_to":"3a461143_a15601d0","updated":"2017-01-26 19:29:43.000000000","message":"Can do that in a follow-up","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dd38920b77c2b01b1e1dae6f5b1bbcfccf5036b7","unresolved":false,"context_lines":[{"line_number":3852,"context_line":"                                self.context, self.driver_name)"},{"line_number":3853,"context_line":"        self.assertEqual(exception.UnsupportedDriverExtension, exc.exc_info[0])"},{"line_number":3854,"context_line":""},{"line_number":3855,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3856,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"},{"line_number":3857,"context_line":"        self.config(enabled_raid_interfaces\u003d[\u0027no-raid\u0027])"},{"line_number":3858,"context_line":"        self.node.raid_interface \u003d \u0027no-raid\u0027"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_91edc1f1","line":3855,"updated":"2017-01-27 03:04:48.000000000","message":"I looked at the corresponding/original test at L3813. The raid_interface here should be None I think. You\u0027re setting it to the \u0027no-raid\u0027 interface. The \u0027no-raid\u0027 interface IS supported here.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"8f39aa2f34aa920626a76b155d65bb92a13c6514","unresolved":false,"context_lines":[{"line_number":3852,"context_line":"                                self.context, self.driver_name)"},{"line_number":3853,"context_line":"        self.assertEqual(exception.UnsupportedDriverExtension, exc.exc_info[0])"},{"line_number":3854,"context_line":""},{"line_number":3855,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3856,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"},{"line_number":3857,"context_line":"        self.config(enabled_raid_interfaces\u003d[\u0027no-raid\u0027])"},{"line_number":3858,"context_line":"        self.node.raid_interface \u003d \u0027no-raid\u0027"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_79166ca8","line":3855,"in_reply_to":"3a461143_3e9cca68","updated":"2017-01-27 13:45:45.000000000","message":"Ooo, good point. We validate this in update_node(), which is why my code below gets around it: https://github.com/openstack/ironic/blob/0ca92550b3dbebf7f852f46b7aae7727a37d659a/ironic/conductor/manager.py#L169\n\n/me wonders if fake-hardware should support no-*","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"aa1dc7e39a9c13dfce7188e5ceed5d1e59cc7ef8","unresolved":false,"context_lines":[{"line_number":3852,"context_line":"                                self.context, self.driver_name)"},{"line_number":3853,"context_line":"        self.assertEqual(exception.UnsupportedDriverExtension, exc.exc_info[0])"},{"line_number":3854,"context_line":""},{"line_number":3855,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3856,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"},{"line_number":3857,"context_line":"        self.config(enabled_raid_interfaces\u003d[\u0027no-raid\u0027])"},{"line_number":3858,"context_line":"        self.node.raid_interface \u003d \u0027no-raid\u0027"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_3e9cca68","line":3855,"in_reply_to":"3a461143_91edc1f1","updated":"2017-01-27 13:29:34.000000000","message":"Hm, why is it supported? fake-hardware has only fake raid supported","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dd38920b77c2b01b1e1dae6f5b1bbcfccf5036b7","unresolved":false,"context_lines":[{"line_number":3855,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3856,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"},{"line_number":3857,"context_line":"        self.config(enabled_raid_interfaces\u003d[\u0027no-raid\u0027])"},{"line_number":3858,"context_line":"        self.node.raid_interface \u003d \u0027no-raid\u0027"},{"line_number":3859,"context_line":"        self.node.save()"},{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_51f43986","line":3858,"updated":"2017-01-27 03:04:48.000000000","message":"fwiw, I tried setting this to None and enabled_raid_interfaces to [] and I got exception.NoValidDefaultForInterface. Gotta run so don\u0027t know if that is expected or not :)","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"269a509ad59fd1cdb8ce6f1b2ce0edd83a5d1f3d","unresolved":false,"context_lines":[{"line_number":3855,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3856,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"},{"line_number":3857,"context_line":"        self.config(enabled_raid_interfaces\u003d[\u0027no-raid\u0027])"},{"line_number":3858,"context_line":"        self.node.raid_interface \u003d \u0027no-raid\u0027"},{"line_number":3859,"context_line":"        self.node.save()"},{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_f63ea989","line":3858,"in_reply_to":"3a461143_1950085d","updated":"2017-01-30 15:22:25.000000000","message":"Yeah, I think you\u0027re right, I\u0027ll add to my todo list to validate defaults at startup. :)","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"f94b1d4fa8dc5b192c75d1f44aa69bd4f8fefe68","unresolved":false,"context_lines":[{"line_number":3855,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3856,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"},{"line_number":3857,"context_line":"        self.config(enabled_raid_interfaces\u003d[\u0027no-raid\u0027])"},{"line_number":3858,"context_line":"        self.node.raid_interface \u003d \u0027no-raid\u0027"},{"line_number":3859,"context_line":"        self.node.save()"},{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_a2642649","line":3858,"in_reply_to":"3a461143_51f43986","updated":"2017-01-27 10:49:16.000000000","message":"Yep, and that would be caught ahead of time at conductor startup.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3750981bb01b85be8c54549d6b1923978717095b","unresolved":false,"context_lines":[{"line_number":3855,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3856,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"},{"line_number":3857,"context_line":"        self.config(enabled_raid_interfaces\u003d[\u0027no-raid\u0027])"},{"line_number":3858,"context_line":"        self.node.raid_interface \u003d \u0027no-raid\u0027"},{"line_number":3859,"context_line":"        self.node.save()"},{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_9c957c88","line":3858,"in_reply_to":"3a461143_957e3817","updated":"2017-01-30 20:35:07.000000000","message":"Yep, validation to come","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"aa1dc7e39a9c13dfce7188e5ceed5d1e59cc7ef8","unresolved":false,"context_lines":[{"line_number":3855,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3856,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"},{"line_number":3857,"context_line":"        self.config(enabled_raid_interfaces\u003d[\u0027no-raid\u0027])"},{"line_number":3858,"context_line":"        self.node.raid_interface \u003d \u0027no-raid\u0027"},{"line_number":3859,"context_line":"        self.node.save()"},{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_be399a43","line":3858,"in_reply_to":"3a461143_a2642649","updated":"2017-01-27 13:29:34.000000000","message":"I\u0027m not sure if it\u0027s going to be caught at conductor startup. This will be happening when trying to initialize the task manager.\n\nThis https://github.com/openstack/ironic/blob/0ca92550b3dbebf7f852f46b7aae7727a37d659a/ironic/conductor/base_manager.py#L237 can be None right? And we\u0027ll be ignoring it in dbapi.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"8f39aa2f34aa920626a76b155d65bb92a13c6514","unresolved":false,"context_lines":[{"line_number":3855,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3856,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"},{"line_number":3857,"context_line":"        self.config(enabled_raid_interfaces\u003d[\u0027no-raid\u0027])"},{"line_number":3858,"context_line":"        self.node.raid_interface \u003d \u0027no-raid\u0027"},{"line_number":3859,"context_line":"        self.node.save()"},{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_f9f41c88","line":3858,"in_reply_to":"3a461143_be399a43","updated":"2017-01-27 13:45:45.000000000","message":"What does \u0027can be None\u0027 mean? Any loaded hardware types will get defaults checked there, and any hardware types that are not loaded won\u0027t get this RPC call, because the conductor doesn\u0027t support it.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"d28b590778490d59cb7cc8d989789623b410bdb5","unresolved":false,"context_lines":[{"line_number":3855,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3856,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"},{"line_number":3857,"context_line":"        self.config(enabled_raid_interfaces\u003d[\u0027no-raid\u0027])"},{"line_number":3858,"context_line":"        self.node.raid_interface \u003d \u0027no-raid\u0027"},{"line_number":3859,"context_line":"        self.node.save()"},{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_957e3817","line":3858,"in_reply_to":"3a461143_f63ea989","updated":"2017-01-30 17:01:50.000000000","message":"discussed with Jim and Dmitry on irc today [1]. It turns out enabled_raid_interfaces \u0027cannot\u0027 be set to None. We need to document that and update the config help. And as Jim will do, validate that it is not None...\n\n[1] http://eavesdrop.openstack.org/irclogs/%23openstack-ironic/%23openstack-ironic.2017-01-30.log.html#t2017-01-30T15:36:11","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3829a0d776692d6599d250b88f1f783ef78e0abb","unresolved":false,"context_lines":[{"line_number":3855,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3856,"context_line":"        raid_config \u003d {\u0027logical_disks\u0027: [{\u0027size_gb\u0027: 100, \u0027raid_level\u0027: \u00271\u0027}]}"},{"line_number":3857,"context_line":"        self.config(enabled_raid_interfaces\u003d[\u0027no-raid\u0027])"},{"line_number":3858,"context_line":"        self.node.raid_interface \u003d \u0027no-raid\u0027"},{"line_number":3859,"context_line":"        self.node.save()"},{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_1950085d","line":3858,"in_reply_to":"3a461143_f9f41c88","updated":"2017-01-27 13:48:06.000000000","message":"Ah, sorry, wrong link :) I meant https://github.com/openstack/ironic/blob/0ca92550b3dbebf7f852f46b7aae7727a37d659a/ironic/conductor/base_manager.py#L259","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dd38920b77c2b01b1e1dae6f5b1bbcfccf5036b7","unresolved":false,"context_lines":[{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"},{"line_number":3862,"context_line":"            self.service.set_target_raid_config,"},{"line_number":3863,"context_line":"            self.context, self.node.uuid, raid_config)"},{"line_number":3864,"context_line":"        self.node.refresh()"},{"line_number":3865,"context_line":"        self.assertEqual({}, self.node.target_raid_config)"},{"line_number":3866,"context_line":"        self.assertEqual(exception.UnsupportedDriverExtension, exc.exc_info[0])"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_d192e94a","line":3863,"updated":"2017-01-27 03:04:48.000000000","message":"So I think you set noop.noRAID.validate_raid_config \u003d _fail, to get an exception to be raised when noop.noRAID.validate_raid_config is invoked.  I think this test is meant to see if an exception is raised at L2372 of conductor/manager.py. Instead, it is testing for the exception raised at L2377 of conductor/manager.py","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"3750981bb01b85be8c54549d6b1923978717095b","unresolved":false,"context_lines":[{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"},{"line_number":3862,"context_line":"            self.service.set_target_raid_config,"},{"line_number":3863,"context_line":"            self.context, self.node.uuid, raid_config)"},{"line_number":3864,"context_line":"        self.node.refresh()"},{"line_number":3865,"context_line":"        self.assertEqual({}, self.node.target_raid_config)"},{"line_number":3866,"context_line":"        self.assertEqual(exception.UnsupportedDriverExtension, exc.exc_info[0])"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_bcb79838","line":3863,"in_reply_to":"3a461143_3b7bb58d","updated":"2017-01-30 20:35:07.000000000","message":"Yeah, I\u0027ve written a comment here and will write some docs.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"31fd9d027067dd65c12de8dbc69bc25ac1503128","unresolved":false,"context_lines":[{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"},{"line_number":3862,"context_line":"            self.service.set_target_raid_config,"},{"line_number":3863,"context_line":"            self.context, self.node.uuid, raid_config)"},{"line_number":3864,"context_line":"        self.node.refresh()"},{"line_number":3865,"context_line":"        self.assertEqual({}, self.node.target_raid_config)"},{"line_number":3866,"context_line":"        self.assertEqual(exception.UnsupportedDriverExtension, exc.exc_info[0])"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_efab76d4","line":3863,"in_reply_to":"3a461143_4222a201","updated":"2017-01-27 11:18:08.000000000","message":"After poking around some more and talking to Dmitry, I think doing it like this makes sense to me.","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"f94b1d4fa8dc5b192c75d1f44aa69bd4f8fefe68","unresolved":false,"context_lines":[{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"},{"line_number":3862,"context_line":"            self.service.set_target_raid_config,"},{"line_number":3863,"context_line":"            self.context, self.node.uuid, raid_config)"},{"line_number":3864,"context_line":"        self.node.refresh()"},{"line_number":3865,"context_line":"        self.assertEqual({}, self.node.target_raid_config)"},{"line_number":3866,"context_line":"        self.assertEqual(exception.UnsupportedDriverExtension, exc.exc_info[0])"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_4222a201","line":3863,"in_reply_to":"3a461143_d192e94a","updated":"2017-01-27 10:49:16.000000000","message":"Right so, we can\u0027t actually have no raid interface implementation attached (or any interface) in the dynamic driver world. There must be one. So, either this test doesn\u0027t make sense for a dynamic driver, or the no-raid implementation should fail on validate. I guess the question is which one we should do :)","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"d1291aec0e1d4b67d940610709330f43dd6c2b9d","unresolved":false,"context_lines":[{"line_number":3860,"context_line":"        exc \u003d self.assertRaises("},{"line_number":3861,"context_line":"            messaging.rpc.ExpectedException,"},{"line_number":3862,"context_line":"            self.service.set_target_raid_config,"},{"line_number":3863,"context_line":"            self.context, self.node.uuid, raid_config)"},{"line_number":3864,"context_line":"        self.node.refresh()"},{"line_number":3865,"context_line":"        self.assertEqual({}, self.node.target_raid_config)"},{"line_number":3866,"context_line":"        self.assertEqual(exception.UnsupportedDriverExtension, exc.exc_info[0])"}],"source_content_type":"text/x-python","patch_set":24,"id":"3a461143_3b7bb58d","line":3863,"in_reply_to":"3a461143_efab76d4","updated":"2017-01-30 17:38:07.000000000","message":"If I understand, we want this test to fail (exception raised) if the NoRAID\u0027s validate_raid_config is called.\n\nIn that case, we should add a comment that this is testing ^^ because enabled_xx cannot be None, blah blah. (unless you want to rename this test to something like test_set_target_raid_config_iface_NoRAID, and add a comment about this  \u0027test_set_target_raid_config_iface_not_supported\u0027 not making sense).\n\nI guess it isn\u0027t clear what \u0027not supported\u0027 means...","commit_id":"69e9edfeeca875e396244c58cec315e71f476675"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"544686e3e0ca42309bc680525da7f7139de5b7ec","unresolved":false,"context_lines":[{"line_number":3854,"context_line":""},{"line_number":3855,"context_line":"    def test_set_target_raid_config_iface_not_supported(self):"},{"line_number":3856,"context_line":"        # NOTE(jroll): it\u0027s impossible for a dynamic driver to have a null"},{"line_number":3857,"context_line":"        # interface (e.g. node.driver.raid), so this instead tests that"},{"line_number":3858,"context_line":"        # if validation fails, we blow up properly."},{"line_number":3859,"context_line":"        # need a different raid interface and a hardware type that supports it"},{"line_number":3860,"context_line":"        self.node \u003d obj_utils.create_test_node("}],"source_content_type":"text/x-python","patch_set":26,"id":"3a461143_63158b3e","line":3857,"updated":"2017-01-30 22:54:03.000000000","message":"nit\u003e maybe add \u0027For dynamic drivers, the closest thing to not supporting an interface is to use the NoRAID interface. So this tests that ...\u0027","commit_id":"e77675781231409d16744ab9d1b13ffc92d358f6"}],"ironic/tests/unit/db/test_conductor.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":421,"context_line":"                \u0027interface_type\u0027: \u0027power\u0027,"},{"line_number":422,"context_line":"                \u0027interface_name\u0027: \u0027fake\u0027,"},{"line_number":423,"context_line":"                \u0027default\u0027: False,"},{"line_number":424,"context_line":"            },"},{"line_number":425,"context_line":"        ]"},{"line_number":426,"context_line":""},{"line_number":427,"context_line":"        def _verify(expected, result):"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_0aa61710","line":424,"updated":"2017-01-26 16:59:11.000000000","message":"dumb question. I thought .list_hardware_type_interfaces returned a list of ConductorHardwareInterfaces. Which has \u0027conductor_id\u0027 ? Shouldn\u0027t \u0027conductor_id\u0027 be in the expected results?","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0416e02e81d15417fb980d968aeb9f41b50568db","unresolved":false,"context_lines":[{"line_number":427,"context_line":"        def _verify(expected, result):"},{"line_number":428,"context_line":"            for expected_row, row in zip(expected, result):"},{"line_number":429,"context_line":"                for k, v in expected_row.items():"},{"line_number":430,"context_line":"                    self.assertEqual(v, getattr(row, k))"},{"line_number":431,"context_line":""},{"line_number":432,"context_line":"        # with both hw types"},{"line_number":433,"context_line":"        result \u003d self.dbapi.list_hardware_type_interfaces([ht1, ht2])"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_aa8c2380","line":430,"updated":"2017-01-26 16:59:11.000000000","message":"OH, i see why it works w/o conductor_id...","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"171854490114552d2b04377acb5a41cb705522b5","unresolved":false,"context_lines":[{"line_number":427,"context_line":"        def _verify(expected, result):"},{"line_number":428,"context_line":"            for expected_row, row in zip(expected, result):"},{"line_number":429,"context_line":"                for k, v in expected_row.items():"},{"line_number":430,"context_line":"                    self.assertEqual(v, getattr(row, k))"},{"line_number":431,"context_line":""},{"line_number":432,"context_line":"        # with both hw types"},{"line_number":433,"context_line":"        result \u003d self.dbapi.list_hardware_type_interfaces([ht1, ht2])"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_cb196e7b","line":430,"in_reply_to":"3a461143_aa8c2380","updated":"2017-01-26 17:50:05.000000000","message":"Yeah, I don\u0027t think that\u0027s worth testing here as it\u0027s fairly arbitrary. :)","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"0b5374b36b2a4b7749270b73787914ed17418b32","unresolved":false,"context_lines":[{"line_number":427,"context_line":"        def _verify(expected, result):"},{"line_number":428,"context_line":"            for expected_row, row in zip(expected, result):"},{"line_number":429,"context_line":"                for k, v in expected_row.items():"},{"line_number":430,"context_line":"                    self.assertEqual(v, getattr(row, k))"},{"line_number":431,"context_line":""},{"line_number":432,"context_line":"        # with both hw types"},{"line_number":433,"context_line":"        result \u003d self.dbapi.list_hardware_type_interfaces([ht1, ht2])"}],"source_content_type":"text/x-python","patch_set":23,"id":"3a461143_415e3d77","line":430,"in_reply_to":"3a461143_cb196e7b","updated":"2017-01-26 18:48:21.000000000","message":"Well, it is misleading, because expected/actual is more than what is shown in expected. if someone decides to copy/paste later and test for something related to conductor id, it will fail. Anyway, I just like to see examples that are as close to reality.\n\nI was eg thinking of a test that had two conductors, to see that there would be two different entries that were the same except for conductor id. I thought it, didn\u0027t want to ask you to write it ;)","commit_id":"0078d505d8d8e190ecdbde6a6cc0536cadcb73f3"}],"releasenotes/notes/dynamic-driver-list-show-apis-235e9fca26fc580d.yaml":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"c3b2159fe0e5e83004dee5727b8ecfd9ca5f333c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Adds REST API version 1.30, which adds additional parameters and response"},{"line_number":5,"context_line":"    fields for GET /v1/drivers and GET /v1/drivers/\u003cname\u003e."},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    Also allows dynamic drivers to be used and returned in the following"}],"source_content_type":"text/x-yaml","patch_set":22,"id":"3a461143_643f0026","line":4,"updated":"2017-01-25 20:59:00.000000000","message":"Maybe \u0027Provides support for dynamic drivers.\n\n\u003cnew paragraph\u003e With REST API version 1.30, adds additional parameters and response fields ......","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"2859d9473d7980deef9115f8f0b188e7552cc154","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Adds REST API version 1.30, which adds additional parameters and response"},{"line_number":5,"context_line":"    fields for GET /v1/drivers and GET /v1/drivers/\u003cname\u003e."},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"    Also allows dynamic drivers to be used and returned in the following"}],"source_content_type":"text/x-yaml","patch_set":22,"id":"3a461143_71d31c39","line":4,"in_reply_to":"3a461143_643f0026","updated":"2017-01-26 12:11:46.000000000","message":"Done","commit_id":"43b0cdc59c965cfe05e6b98ae29a0ed43a44b450"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"3022e14b43ffd0348dfcf8dc185f6e0dd79c4bb4","unresolved":false,"context_lines":[{"line_number":17,"context_line":"        * GET/POST /v1/nodes/\u003cid\u003e/vendor_passthru"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    For more details, see the `REST API Version History documentation"},{"line_number":20,"context_line":"    \u003chttp://docs.openstack.org/developer/ironic/dev/webapi-version-history.html\u003e`_."}],"source_content_type":"text/x-yaml","patch_set":26,"id":"3a461143_e9c79593","line":20,"updated":"2017-01-31 08:02:00.000000000","message":"documentation doesn\u0027t contain 1.30 api changes, and we don\u0027t have patch for that seems.","commit_id":"e77675781231409d16744ab9d1b13ffc92d358f6"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"c23caa35d10d42686771edc00887e526ebfbe897","unresolved":false,"context_lines":[{"line_number":17,"context_line":"        * GET/POST /v1/nodes/\u003cid\u003e/vendor_passthru"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    For more details, see the `REST API Version History documentation"},{"line_number":20,"context_line":"    \u003chttp://docs.openstack.org/developer/ironic/dev/webapi-version-history.html\u003e`_."}],"source_content_type":"text/x-yaml","patch_set":26,"id":"3a461143_b43a3de5","line":20,"in_reply_to":"3a461143_e9c79593","updated":"2017-01-31 10:29:46.000000000","message":"This patch changes the docs at this link. api-ref will be coming.","commit_id":"e77675781231409d16744ab9d1b13ffc92d358f6"}]}
