)]}'
{"ironic/drivers/ilo.py":[{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"882c5854ca919b936ba5f8a1f7f92db650c09a05","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        self.deploy \u003d deploy.IloVirtualMediaAgentDeploy()"},{"line_number":78,"context_line":"        self.console \u003d console.IloConsoleInterface()"},{"line_number":79,"context_line":"        self.management \u003d management.IloManagement()"},{"line_number":80,"context_line":"        self.vendor \u003d vendor.IloVirtualMediaAgentVendorInterface()"},{"line_number":81,"context_line":"        self.inspect \u003d inspect.IloInspect()"},{"line_number":82,"context_line":"        self.raid \u003d agent.AgentRAID()"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_e0572000","side":"PARENT","line":80,"range":{"start_line":80,"start_character":8,"end_line":80,"end_character":66},"updated":"2016-11-16 09:58:42.000000000","message":"I think we need to have vendor interface. I do not think the intention of parent bug was to remove \u0027vendor\u0027 interface of the driver.","commit_id":"e999ec1f37e56ea43fde50ba4c81e9f932e29d3f"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"df097a9033622fd5bf36c62d97919e189eefa0f9","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        self.deploy \u003d deploy.IloVirtualMediaAgentDeploy()"},{"line_number":78,"context_line":"        self.console \u003d console.IloConsoleInterface()"},{"line_number":79,"context_line":"        self.management \u003d management.IloManagement()"},{"line_number":80,"context_line":"        self.vendor \u003d vendor.IloVirtualMediaAgentVendorInterface()"},{"line_number":81,"context_line":"        self.inspect \u003d inspect.IloInspect()"},{"line_number":82,"context_line":"        self.raid \u003d agent.AgentRAID()"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_1179c2c8","side":"PARENT","line":80,"range":{"start_line":80,"start_character":8,"end_line":80,"end_character":66},"in_reply_to":"7a77a97e_e0572000","updated":"2016-11-16 15:09:22.000000000","message":"what \"vendor\" action does it perform? the code of that class does not have a single @passthru decorated method. and all agent-related methods (lookup and heartbeat) are now handled in core API + deploy interfaces directly. Recent IPA will not even call into those agent vendor methods already.","commit_id":"e999ec1f37e56ea43fde50ba4c81e9f932e29d3f"}],"ironic/drivers/modules/ilo/deploy.py":[{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"882c5854ca919b936ba5f8a1f7f92db650c09a05","unresolved":false,"context_lines":[{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":179,"context_line":"        _disable_secure_boot_if_supported(task)"},{"line_number":180,"context_line":"        return super(IloIscsiDeployMixin, self).tear_down(task)"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"    @METRICS.timer(\u0027IloIscsiDeployMixin.prepare_cleaning\u0027)"},{"line_number":183,"context_line":"    def prepare_cleaning(self, task):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_f5b60489","line":180,"range":{"start_line":180,"start_character":8,"end_line":180,"end_character":63},"updated":"2016-11-16 09:58:42.000000000","message":"This will not work as the base class is not intended one.","commit_id":"1b2606b3cc67449655203cb0430856df03a08f1b"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"df097a9033622fd5bf36c62d97919e189eefa0f9","unresolved":false,"context_lines":[{"line_number":177,"context_line":""},{"line_number":178,"context_line":"        manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":179,"context_line":"        _disable_secure_boot_if_supported(task)"},{"line_number":180,"context_line":"        return super(IloIscsiDeployMixin, self).tear_down(task)"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"    @METRICS.timer(\u0027IloIscsiDeployMixin.prepare_cleaning\u0027)"},{"line_number":183,"context_line":"    def prepare_cleaning(self, task):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_b84ab881","line":180,"range":{"start_line":180,"start_character":8,"end_line":180,"end_character":63},"in_reply_to":"7a77a97e_f5b60489","updated":"2016-11-16 15:09:22.000000000","message":"nope. For new-style classes (inherited from \u0027object\u0027 in Py2, default for Py3) \"new style\" MRO + super solves this (and you can not use super in old-style classes):\n\n  $ python\n  Python 2.7.12 (default, Jul  1 2016, 15:12:24) \n  [GCC 5.4.0 20160609] on linux2\n  Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n  \u003e\u003e\u003e class A(object):\n  ...     def f(self):\n  ...         print(\u0027A\u0027)\n  ... \n  \u003e\u003e\u003e class B(object):\n  ...     def f(self):\n  ...         print(\u0027B\u0027)\n  ...         super(B, self).f() # seems like there\u0027s no parent to call \u0027super\u0027 for?\n  ... \n  \u003e\u003e\u003e class C(B, A): pass # note the order of parents\n  ... \n  \u003e\u003e\u003e c \u003d C()\n  \u003e\u003e\u003e c.f()\n  B\n  A\n  \u003e\u003e\u003e class D(A, B): pass # in this order MRO will find a first suitable method (which is in class A).\n  ...\n  \u003e\u003e\u003e d \u003d D()\n  \u003e\u003e\u003e d.f()\n  A\n  \u003e\u003e\u003e b \u003d B() # B alone does not work at all\n  \u003e\u003e\u003e b.f()\n  B\n  Traceback (most recent call last):\n    File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n    File \"\u003cstdin\u003e\", line 4, in f\n  AttributeError: \u0027super\u0027 object has no attribute \u0027f\u0027\n\nthis is how mixin classes work. It is for that reason that super takes not only the type, but the instance itself too (to find parents of the instance that might not be parents of the class).","commit_id":"1b2606b3cc67449655203cb0430856df03a08f1b"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"882c5854ca919b936ba5f8a1f7f92db650c09a05","unresolved":false,"context_lines":[{"line_number":192,"context_line":"        # Powering off the Node before initiating boot for node cleaning."},{"line_number":193,"context_line":"        # If node is in system POST, setting boot device fails."},{"line_number":194,"context_line":"        manager_utils.node_power_action(task, states.POWER_OFF)"},{"line_number":195,"context_line":"        return super(IloIscsiDeployMixin, self).prepare_cleaning(task)"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"    @METRICS.timer(\u0027IloIscsiDeployMixin.continue_deploy\u0027)"},{"line_number":198,"context_line":"    @task_manager.require_exclusive_lock"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_95a6b051","line":195,"range":{"start_line":195,"start_character":5,"end_line":195,"end_character":70},"updated":"2016-11-16 09:58:42.000000000","message":"ditto","commit_id":"1b2606b3cc67449655203cb0430856df03a08f1b"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"882c5854ca919b936ba5f8a1f7f92db650c09a05","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        \"\"\""},{"line_number":206,"context_line":"        ilo_common.update_boot_mode(task)"},{"line_number":207,"context_line":"        ilo_common.update_secure_boot_mode(task, True)"},{"line_number":208,"context_line":"        super(IloIscsiDeployMixin, self).continue_deploy(task, **kwargs)"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"class IloVirtualMediaIscsiDeploy(IloIscsiDeployMixin,"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_f56d2405","line":208,"range":{"start_line":208,"start_character":6,"end_line":208,"end_character":72},"updated":"2016-11-16 09:58:42.000000000","message":"ditto","commit_id":"1b2606b3cc67449655203cb0430856df03a08f1b"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"027d27e1c795e50bafa39127d2220d6d3a5450e1","unresolved":false,"context_lines":[{"line_number":247,"context_line":""},{"line_number":248,"context_line":"        :returns: dictionary of \u003cproperty name\u003e:\u003cproperty description\u003e entries."},{"line_number":249,"context_line":"        \"\"\""},{"line_number":250,"context_line":"        props \u003d super(IloVirtualMediaAgentDeploy, self).get_properties()"},{"line_number":251,"context_line":"        props.update(ilo_boot.COMMON_PROPERTIES)"},{"line_number":252,"context_line":"        return props"},{"line_number":253,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"5a74a57a_23b088dd","line":250,"range":{"start_line":250,"start_character":8,"end_line":250,"end_character":72},"updated":"2016-11-23 09:08:26.000000000","message":"This is not required here. The \u0027required\u0027 properties of agent.AgentDeploy are not used by this driver. Eg. https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/agent.py#L41-L46","commit_id":"5364c85033ea3ee629852e0a88a86fad6848549f"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"957e990db8da0e97bd970ca5c8e69f7e28da780f","unresolved":false,"context_lines":[{"line_number":247,"context_line":""},{"line_number":248,"context_line":"        :returns: dictionary of \u003cproperty name\u003e:\u003cproperty description\u003e entries."},{"line_number":249,"context_line":"        \"\"\""},{"line_number":250,"context_line":"        props \u003d super(IloVirtualMediaAgentDeploy, self).get_properties()"},{"line_number":251,"context_line":"        props.update(ilo_boot.COMMON_PROPERTIES)"},{"line_number":252,"context_line":"        return props"},{"line_number":253,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"5a74a57a_463af237","line":250,"range":{"start_line":250,"start_character":8,"end_line":250,"end_character":72},"in_reply_to":"5a74a57a_23b088dd","updated":"2016-11-23 09:35:54.000000000","message":"understood, will fix, but just to be sure - is this driver also relying on/using the \u0027deploy_forces_oob_reboot\u0027 property?\nhttp://git.openstack.org/cgit/openstack/ironic/tree/ironic/drivers/modules/agent_base_vendor.py#n71","commit_id":"5364c85033ea3ee629852e0a88a86fad6848549f"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"ac9534797c53d82683790bca3d8f36d2825a84e4","unresolved":false,"context_lines":[{"line_number":247,"context_line":""},{"line_number":248,"context_line":"        :returns: dictionary of \u003cproperty name\u003e:\u003cproperty description\u003e entries."},{"line_number":249,"context_line":"        \"\"\""},{"line_number":250,"context_line":"        props \u003d super(IloVirtualMediaAgentDeploy, self).get_properties()"},{"line_number":251,"context_line":"        props.update(ilo_boot.COMMON_PROPERTIES)"},{"line_number":252,"context_line":"        return props"},{"line_number":253,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"5a74a57a_c01e46ba","line":250,"range":{"start_line":250,"start_character":8,"end_line":250,"end_character":72},"in_reply_to":"5a74a57a_463af237","updated":"2016-11-28 12:54:26.000000000","message":"Done","commit_id":"5364c85033ea3ee629852e0a88a86fad6848549f"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"4842b41e5396b68f9fd512e0f9decf92a48bb2d3","unresolved":false,"context_lines":[{"line_number":247,"context_line":""},{"line_number":248,"context_line":"        :returns: dictionary of \u003cproperty name\u003e:\u003cproperty description\u003e entries."},{"line_number":249,"context_line":"        \"\"\""},{"line_number":250,"context_line":"        return ilo_boot.COMMON_PROPERTIES"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"    @METRICS.timer(\u0027IloVirtualMediaAgentDeploy.validate\u0027)"},{"line_number":253,"context_line":"    def validate(self, task):"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a71b18c_49b96e14","line":250,"range":{"start_line":250,"start_character":8,"end_line":250,"end_character":41},"updated":"2016-12-06 11:46:38.000000000","message":"I still would like to have answer on if this driver relies on / makes use of the \u0027deploy_forces_oob_reboot\u0027 property.\n\nhttp://git.openstack.org/cgit/openstack/ironic/tree/ironic/drivers/modules/agent_base_vendor.py#n71\n\nif yes, it should be added here as well.","commit_id":"978e83b0f5e97a204e8cfc903b01f8b4fe495c36"}],"ironic/drivers/modules/ilo/vendor.py":[{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"882c5854ca919b936ba5f8a1f7f92db650c09a05","unresolved":false,"context_lines":[{"line_number":34,"context_line":"METRICS \u003d metrics_utils.get_metrics_logger(__name__)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"class IloVirtualMediaAgentVendorInterface(agent.AgentVendorInterface):"},{"line_number":38,"context_line":"    \"\"\"Interface for vendor passthru related actions.\"\"\""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    @METRICS.timer(\u0027IloVirtualMediaAgentVendorInterface.reboot_to_instance\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_35407ca5","side":"PARENT","line":37,"range":{"start_line":37,"start_character":6,"end_line":37,"end_character":70},"updated":"2016-11-16 09:58:42.000000000","message":"I think changing the base class here should be good enough.\nclass IloVirtualMediaAgentVendorInterface(agent.AgentDeployMixin):","commit_id":"e999ec1f37e56ea43fde50ba4c81e9f932e29d3f"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"df097a9033622fd5bf36c62d97919e189eefa0f9","unresolved":false,"context_lines":[{"line_number":34,"context_line":"METRICS \u003d metrics_utils.get_metrics_logger(__name__)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"class IloVirtualMediaAgentVendorInterface(agent.AgentVendorInterface):"},{"line_number":38,"context_line":"    \"\"\"Interface for vendor passthru related actions.\"\"\""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    @METRICS.timer(\u0027IloVirtualMediaAgentVendorInterface.reboot_to_instance\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_c2277e62","side":"PARENT","line":37,"range":{"start_line":37,"start_character":6,"end_line":37,"end_character":70},"in_reply_to":"7a77a97e_35407ca5","updated":"2016-11-16 15:09:22.000000000","message":"no. The vendor interface must be a proper child of base.VendorInterface, with all necessary abc methods implemented.\n\nThis all stems from current situation when we mixed vendor interfaces (which were designed to allow vendors to add custom HTTP-callable methods) with deploy interfaces.\n\nThis particular one \"vendor\" interface does not actually expose any \"iLO vendor\" methods, and \"agent\" vendor methods are being removed. Thus it is moved to a mixin class that will simply extend methods from appropriate deploy interface.","commit_id":"e999ec1f37e56ea43fde50ba4c81e9f932e29d3f"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"882c5854ca919b936ba5f8a1f7f92db650c09a05","unresolved":false,"context_lines":[{"line_number":55,"context_line":"              self).reboot_to_instance(task)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"class VendorPassthru(iscsi_deploy.VendorPassthru):"},{"line_number":59,"context_line":"    \"\"\"Vendor-specific interfaces for iLO deploy drivers.\"\"\""},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @METRICS.timer(\u0027IloVendorPassthru.validate\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_95e1509d","side":"PARENT","line":58,"range":{"start_line":58,"start_character":0,"end_line":58,"end_character":50},"updated":"2016-11-16 09:58:42.000000000","message":"So is here. \nclass VendorPassthru(iscsi_deploy.AgentDeployMixin):\n\nMay be we can change the name of the class to \u0027IloIscsiAgentDeployMixin\u0027","commit_id":"e999ec1f37e56ea43fde50ba4c81e9f932e29d3f"},{"author":{"_account_id":9542,"name":"Pavlo Shchelokovskyy","email":"pshchelokovskyy@mirantis.com","username":"pshchelo"},"change_message_id":"df097a9033622fd5bf36c62d97919e189eefa0f9","unresolved":false,"context_lines":[{"line_number":55,"context_line":"              self).reboot_to_instance(task)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"class VendorPassthru(iscsi_deploy.VendorPassthru):"},{"line_number":59,"context_line":"    \"\"\"Vendor-specific interfaces for iLO deploy drivers.\"\"\""},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @METRICS.timer(\u0027IloVendorPassthru.validate\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_4bc62949","side":"PARENT","line":58,"range":{"start_line":58,"start_character":0,"end_line":58,"end_character":50},"in_reply_to":"7a77a97e_95e1509d","updated":"2016-11-16 15:09:22.000000000","message":"Again, can not make vendor interface from non-base.VendorInterface-inheriting parent.\n\ncontrary to the above \"vendor\"-ish interface, this one does expose a proper vendor method (\u0027boot_into_iso\u0027) and so is left as proper vendor interface. All other non-vendor-methods related stuff is moved to mixins which extend/overload standard methods of deploy interfaces.","commit_id":"e999ec1f37e56ea43fde50ba4c81e9f932e29d3f"}]}
