)]}'
{"ironic/conductor/rpcapi.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"df29b30c296c1e04af8e3ed9d179a6a8d5cdb686","unresolved":false,"context_lines":[{"line_number":469,"context_line":"        cctxt \u003d self.client.prepare(topic\u003dtopic or self.topic, version\u003d\u00271.11\u0027)"},{"line_number":470,"context_line":"        return cctxt.call(context, \u0027set_console_mode\u0027, node_id\u003dnode_id,"},{"line_number":471,"context_line":"                          enabled\u003denabled)"},{"line_number":472,"context_line":""},{"line_number":473,"context_line":"    @staticmethod"},{"line_number":474,"context_line":"    def _ensure_port_physnet_validation_not_required(port_obj):"},{"line_number":475,"context_line":"        \"\"\"Return a set of Port object fields which require validation."}],"source_content_type":"text/x-python","patch_set":1,"id":"df140735_52e59137","line":472,"updated":"2017-06-07 17:13:44.000000000","message":"This file is for RPC API. It shouldn\u0027t have any \u0027business\u0027 logic at all. The stuff below, if we did it, should most likely be in api/controllers/v1/port.py.\n\nThe only thing you need is some method to call to know whether or not there is a rolling upgrade.","commit_id":"34da35ca0df1a0a70b3b5009ee0d380d60023bc3"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"29c550c598a275415c5198d884ebd7e2f8e4970f","unresolved":false,"context_lines":[{"line_number":469,"context_line":"        cctxt \u003d self.client.prepare(topic\u003dtopic or self.topic, version\u003d\u00271.11\u0027)"},{"line_number":470,"context_line":"        return cctxt.call(context, \u0027set_console_mode\u0027, node_id\u003dnode_id,"},{"line_number":471,"context_line":"                          enabled\u003denabled)"},{"line_number":472,"context_line":""},{"line_number":473,"context_line":"    @staticmethod"},{"line_number":474,"context_line":"    def _ensure_port_physnet_validation_not_required(port_obj):"},{"line_number":475,"context_line":"        \"\"\"Return a set of Port object fields which require validation."}],"source_content_type":"text/x-python","patch_set":1,"id":"bf091321_c7f4535e","line":472,"in_reply_to":"df140735_52e59137","updated":"2017-06-08 11:31:02.000000000","message":"I was really following the example of the nova compute rpcapi here. From what I can tell it performs version checks and attempts to provide a simple interface to its callers which if possible will hide the details of RPC API version differences from the caller. If it can\u0027t sensibly do that then it typically raises an exception.\n\nPerhaps this scenario is different or that design has been shown to be sub-par?","commit_id":"34da35ca0df1a0a70b3b5009ee0d380d60023bc3"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"df29b30c296c1e04af8e3ed9d179a6a8d5cdb686","unresolved":false,"context_lines":[{"line_number":490,"context_line":"        # validation is not required."},{"line_number":491,"context_line":"        physnet_validation_fields \u003d {\u0027portgroup_id\u0027, \u0027physical_network\u0027}"},{"line_number":492,"context_line":"        if port_obj.obj_what_changed() \u0026 physnet_validation_fields:"},{"line_number":493,"context_line":"            raise exception.SomeRollingUpgradeError()"},{"line_number":494,"context_line":""},{"line_number":495,"context_line":"    def create_port(self, context, port_obj, topic\u003dNone):"},{"line_number":496,"context_line":"        \"\"\"Synchronously, have a conductor validate and create a port."}],"source_content_type":"text/x-python","patch_set":1,"id":"df140735_3250ddd4","line":493,"updated":"2017-06-07 17:13:44.000000000","message":"To keep our code base clean, I\u0027d rather we just barfed and didn\u0027t do this extra checking. Rolling upgrades should not take long, and the new physical_network field shouldn\u0027t be avail until after unpinning, which reminds me I need to comment about that in the patch...","commit_id":"34da35ca0df1a0a70b3b5009ee0d380d60023bc3"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"29c550c598a275415c5198d884ebd7e2f8e4970f","unresolved":false,"context_lines":[{"line_number":490,"context_line":"        # validation is not required."},{"line_number":491,"context_line":"        physnet_validation_fields \u003d {\u0027portgroup_id\u0027, \u0027physical_network\u0027}"},{"line_number":492,"context_line":"        if port_obj.obj_what_changed() \u0026 physnet_validation_fields:"},{"line_number":493,"context_line":"            raise exception.SomeRollingUpgradeError()"},{"line_number":494,"context_line":""},{"line_number":495,"context_line":"    def create_port(self, context, port_obj, topic\u003dNone):"},{"line_number":496,"context_line":"        \"\"\"Synchronously, have a conductor validate and create a port."}],"source_content_type":"text/x-python","patch_set":1,"id":"bf091321_0756cb2a","line":493,"in_reply_to":"df140735_3250ddd4","updated":"2017-06-08 11:31:02.000000000","message":"I see your point but isn\u0027t the idea of a rolling upgrade that you maintain availability during the upgrade? I guess there may be exceptions to that but do they need to be communicated somehow?\n\nOn the point about hiding the physical_network field, how does that differ from pinning the API microversion? Wouldn\u0027t that be simpler?","commit_id":"34da35ca0df1a0a70b3b5009ee0d380d60023bc3"}]}
