)]}'
{"neutron/objects/base.py":[{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"8b0cc98de9e35caef423de477653c683751a8252","unresolved":false,"context_lines":[{"line_number":338,"context_line":"                if key in cls.fields or key in cls.obj_extra_fields:"},{"line_number":339,"context_line":"                    fields_no_update_set.add(key)"},{"line_number":340,"context_line":"        cls.fields_no_update \u003d list(fields_no_update_set)"},{"line_number":341,"context_line":"        if name in (\u0027PortBinding\u0027, \u0027DistributedPortBinding\u0027):"},{"line_number":342,"context_line":"            cls.fields_no_update.remove(\u0027host\u0027)"},{"line_number":343,"context_line":""},{"line_number":344,"context_line":"        model \u003d getattr(cls, \u0027db_model\u0027, None)"},{"line_number":345,"context_line":"        if model:"}],"source_content_type":"text/x-python","patch_set":20,"id":"3f79a3b5_206edc63","line":342,"range":{"start_line":341,"start_character":8,"end_line":342,"end_character":47},"updated":"2018-10-01 17:43:43.000000000","message":"can\u0027t behavior be changed in overriding these object in objects/ports.py ?","commit_id":"f4da0d31f4ccfcc583d5ca6392bf96e03a2ae23d"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":338,"context_line":"                if key in cls.fields or key in cls.obj_extra_fields:"},{"line_number":339,"context_line":"                    fields_no_update_set.add(key)"},{"line_number":340,"context_line":"        cls.fields_no_update \u003d list(fields_no_update_set)"},{"line_number":341,"context_line":"        if name in (\u0027PortBinding\u0027, \u0027DistributedPortBinding\u0027):"},{"line_number":342,"context_line":"            cls.fields_no_update.remove(\u0027host\u0027)"},{"line_number":343,"context_line":""},{"line_number":344,"context_line":"        model \u003d getattr(cls, \u0027db_model\u0027, None)"},{"line_number":345,"context_line":"        if model:"}],"source_content_type":"text/x-python","patch_set":20,"id":"3f79a3b5_5e73e5e8","line":342,"range":{"start_line":341,"start_character":8,"end_line":342,"end_character":47},"in_reply_to":"3f79a3b5_206edc63","updated":"2018-10-11 05:31:48.000000000","message":"Good catch. We would not need these two lines if the overriden update() is working properly. I have fixed it.","commit_id":"f4da0d31f4ccfcc583d5ca6392bf96e03a2ae23d"}],"neutron/objects/ports.py":[{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"ed7415ab3c4199319045337e325bf44c6ce67e31","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        \"\"\"Override to handle host update in Port Binding."},{"line_number":42,"context_line":"        Delete old Port Binding entry, update the hostname and create new"},{"line_number":43,"context_line":"        Port Binding with all values saved in DB."},{"line_number":44,"context_line":"        This is done due to host being a primary key, and OVO is not able"},{"line_number":45,"context_line":"        to update primary key fields."},{"line_number":46,"context_line":"        \"\"\""},{"line_number":47,"context_line":"        if self.db_obj and self.host !\u003d self.db_obj.host:"},{"line_number":48,"context_line":"            with self.db_context_writer(self.obj_context):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_fbe39ad6","line":45,"range":{"start_line":44,"start_character":58,"end_line":45,"end_character":36},"updated":"2018-06-12 22:25:43.000000000","message":"its because of constraints defined in the model i guess, but i think creating a new record is right way to do it, unless it\u0027s really needed to be done in one db transaction. if constraints allow it, i think ovo should have no problem.","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"03863ec2be04f72e55b5ba17e3a333643c595cb1","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    new_facade \u003d True"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def update(self):"},{"line_number":41,"context_line":"        \"\"\"Override to handle host update in Port Binding."},{"line_number":42,"context_line":"        Delete old Port Binding entry, update the hostname and create new"},{"line_number":43,"context_line":"        Port Binding with all values saved in DB."}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_af5d4916","line":40,"updated":"2018-08-31 21:46:54.000000000","message":"See my other comment; doesn\u0027t this really tell us that we need to increment the version of the PortBinding object?","commit_id":"841b3afcfbc9fd11efa0aaf66aeb35827bfc3c5e"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"03863ec2be04f72e55b5ba17e3a333643c595cb1","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    fields \u003d {"},{"line_number":88,"context_line":"        \u0027port_id\u0027: common_types.UUIDField(),"},{"line_number":89,"context_line":"        \u0027host\u0027: obj_fields.StringField(default\u003d\u0027\u0027),"},{"line_number":90,"context_line":"        \u0027profile\u0027: common_types.DictOfMiscValuesField(),"},{"line_number":91,"context_line":"        \u0027vif_type\u0027: obj_fields.StringField(),"},{"line_number":92,"context_line":"        \u0027vif_details\u0027: common_types.DictOfMiscValuesField(nullable\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_4f9a75c5","line":89,"updated":"2018-08-31 21:46:54.000000000","message":"How does this work in practice?  For example, let\u0027s say an upgrade happens on an already running OpenStack region.  If a PortBinding is read from the database and it has a null value, then the PortBinding object would have a zero length string there.  If that PortBinding is subsequently written to the database, the zero-length-string would be written as well.  But if the upgrade needs to be rolled back, is that change to the structure of the data backwards compatible?  Is there any code that checks if host \u003d\u003d null anywhere?\n\nI really just want to make very sure that we have fully examined if we need to increment the version of the PortBinding object.","commit_id":"841b3afcfbc9fd11efa0aaf66aeb35827bfc3c5e"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"8ef9a76f8355f896b66e10337c0da09f51ca96c6","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    fields \u003d {"},{"line_number":88,"context_line":"        \u0027port_id\u0027: common_types.UUIDField(),"},{"line_number":89,"context_line":"        \u0027host\u0027: obj_fields.StringField(default\u003d\u0027\u0027),"},{"line_number":90,"context_line":"        \u0027profile\u0027: common_types.DictOfMiscValuesField(),"},{"line_number":91,"context_line":"        \u0027vif_type\u0027: obj_fields.StringField(),"},{"line_number":92,"context_line":"        \u0027vif_details\u0027: common_types.DictOfMiscValuesField(nullable\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_b77d49e8","line":89,"in_reply_to":"3f79a3b5_4f9a75c5","updated":"2018-09-06 01:18:21.000000000","message":"So for the question about whether we should bump the version of PortBinding, the answer is no. Only when fields or their types are changed, we should bump the version. Check the \"VERSION\" part here [1]. \n\nAs for your question about how to handle the backwards compatibility between Null in db layer and zero-length-string in OVO layer. I checked the portbinding codes in db [2]. As we can see the default value of \u0027host\u0027 is zero-length-string too. Thus, I do not think, we will need to handle this backwards compatibility.\n\nHowever, your comment reminds me to wonder why I added this default value here. AFAIR, the default value of string defined in OVO is zero-lengh-string. I am now checking the oslo codes to see if I missed anything. \n\n[1] https://github.com/openstack/neutron/blob/0822b0aef4d1a744865bc12aac326db2aab996dd/doc/source/contributor/internals/objects_usage.rst\n\n[2] https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/models.py#L42","commit_id":"841b3afcfbc9fd11efa0aaf66aeb35827bfc3c5e"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"18556bb55bc1a6dc078178917a206770a671ff13","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    fields \u003d {"},{"line_number":88,"context_line":"        \u0027port_id\u0027: common_types.UUIDField(),"},{"line_number":89,"context_line":"        \u0027host\u0027: obj_fields.StringField(default\u003d\u0027\u0027),"},{"line_number":90,"context_line":"        \u0027profile\u0027: common_types.DictOfMiscValuesField(),"},{"line_number":91,"context_line":"        \u0027vif_type\u0027: obj_fields.StringField(),"},{"line_number":92,"context_line":"        \u0027vif_details\u0027: common_types.DictOfMiscValuesField(nullable\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_759fa901","line":89,"in_reply_to":"3f79a3b5_b77d49e8","updated":"2018-09-06 04:51:14.000000000","message":"So I correct the mistake of bumping portbinding hash, and removed the default value of zero-lenght-string.","commit_id":"841b3afcfbc9fd11efa0aaf66aeb35827bfc3c5e"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"8b0cc98de9e35caef423de477653c683751a8252","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    new_facade \u003d True"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def update(self):"},{"line_number":41,"context_line":"        \"\"\"Override to handle host update in Port Binding."},{"line_number":42,"context_line":"        Delete old Port Binding entry, update the hostname and create new"},{"line_number":43,"context_line":"        Port Binding with all values saved in DB."}],"source_content_type":"text/x-python","patch_set":20,"id":"3f79a3b5_80f9f082","line":40,"range":{"start_line":40,"start_character":3,"end_line":40,"end_character":21},"updated":"2018-10-01 17:43:43.000000000","message":"since the object is being deleted on update, does the changes in object/base.py still needed to explicitly update cls.fields_no_update.remove(\u0027host\u0027) ?","commit_id":"f4da0d31f4ccfcc583d5ca6392bf96e03a2ae23d"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    new_facade \u003d True"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def update(self):"},{"line_number":41,"context_line":"        \"\"\"Override to handle host update in Port Binding."},{"line_number":42,"context_line":"        Delete old Port Binding entry, update the hostname and create new"},{"line_number":43,"context_line":"        Port Binding with all values saved in DB."}],"source_content_type":"text/x-python","patch_set":20,"id":"3f79a3b5_7e590159","line":40,"range":{"start_line":40,"start_character":3,"end_line":40,"end_character":21},"in_reply_to":"3f79a3b5_80f9f082","updated":"2018-10-11 05:31:48.000000000","message":"No, we do not need that. I have already deleted those two lines and fixed the codes.","commit_id":"f4da0d31f4ccfcc583d5ca6392bf96e03a2ae23d"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"8b0cc98de9e35caef423de477653c683751a8252","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        \"\"\""},{"line_number":47,"context_line":"        if self.db_obj and self.host !\u003d self.db_obj.host:"},{"line_number":48,"context_line":"            with self.db_context_writer(self.obj_context):"},{"line_number":49,"context_line":"                self.delete_objects("},{"line_number":50,"context_line":"                    self.obj_context, port_id\u003dself.db_obj.port_id)"},{"line_number":51,"context_line":"                self._changed_fields \u003d set(self.fields.keys())"},{"line_number":52,"context_line":"                self.create()"},{"line_number":53,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":20,"id":"3f79a3b5_0042c0ac","line":50,"range":{"start_line":49,"start_character":16,"end_line":50,"end_character":66},"updated":"2018-10-01 17:43:43.000000000","message":"IMO, this is dangerous I recommend using old host as well in the filters, suppose in case of multiple port binding if 2 port binding exists for different hosts this will delete those two bindings regardless of host.","commit_id":"f4da0d31f4ccfcc583d5ca6392bf96e03a2ae23d"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        \"\"\""},{"line_number":47,"context_line":"        if self.db_obj and self.host !\u003d self.db_obj.host:"},{"line_number":48,"context_line":"            with self.db_context_writer(self.obj_context):"},{"line_number":49,"context_line":"                self.delete_objects("},{"line_number":50,"context_line":"                    self.obj_context, port_id\u003dself.db_obj.port_id)"},{"line_number":51,"context_line":"                self._changed_fields \u003d set(self.fields.keys())"},{"line_number":52,"context_line":"                self.create()"},{"line_number":53,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":20,"id":"3f79a3b5_de2db5ae","line":50,"range":{"start_line":49,"start_character":16,"end_line":50,"end_character":66},"in_reply_to":"3f79a3b5_0042c0ac","updated":"2018-10-11 05:31:48.000000000","message":"Done, add host as filters.","commit_id":"f4da0d31f4ccfcc583d5ca6392bf96e03a2ae23d"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"1ff5a73599cabe6bb87c711f40a6e8f4eaeff772","unresolved":false,"context_lines":[{"line_number":285,"context_line":"    # Version 1.4: Attribute binding becomes ListOfObjectsField"},{"line_number":286,"context_line":"    VERSION \u003d \u00271.4\u0027"},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"    new_facade \u003d True"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"    db_model \u003d models_v2.Port"},{"line_number":291,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"3f79a3b5_5d9d0155","line":288,"updated":"2018-10-01 16:48:57.000000000","message":"Yes, we should go through all the objects and gradually start turning this on for all of them.","commit_id":"f4da0d31f4ccfcc583d5ca6392bf96e03a2ae23d"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"7e3c54efffd01db33d677dcb2179c21ad4ce45a5","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        \"\"\"Override to handle host update in Port Binding."},{"line_number":42,"context_line":"        Delete old Port Binding entry, update the hostname and create new"},{"line_number":43,"context_line":"        Port Binding with all values saved in DB."},{"line_number":44,"context_line":"        This is done due to host being a primary key, and OVO is not able"},{"line_number":45,"context_line":"        to update primary key fields."},{"line_number":46,"context_line":"        \"\"\""},{"line_number":47,"context_line":"        if self.db_obj and self.host !\u003d self.db_obj.host:"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_ca72d7b0","line":44,"range":{"start_line":44,"start_character":39,"end_line":44,"end_character":52},"updated":"2018-10-10 23:15:44.000000000","message":"but it is not a primary key in database level: https://github.com/openstack/neutron/blob/6918f4a2372991a41d02fa2313b38de157ac5ab3/neutron/db/models/portbinding.py#L27 . Is it an issue/bug in the OVO?","commit_id":"874a860bf0651e23ac5fc6ededd95b5e06f99d4c"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        \"\"\"Override to handle host update in Port Binding."},{"line_number":42,"context_line":"        Delete old Port Binding entry, update the hostname and create new"},{"line_number":43,"context_line":"        Port Binding with all values saved in DB."},{"line_number":44,"context_line":"        This is done due to host being a primary key, and OVO is not able"},{"line_number":45,"context_line":"        to update primary key fields."},{"line_number":46,"context_line":"        \"\"\""},{"line_number":47,"context_line":"        if self.db_obj and self.host !\u003d self.db_obj.host:"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_de0135b7","line":44,"range":{"start_line":44,"start_character":39,"end_line":44,"end_character":52},"in_reply_to":"3f79a3b5_ca72d7b0","updated":"2018-10-11 05:31:48.000000000","message":"PortBinding schema is defined here: https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/models.py#L42\n\nThe codes you are referring to is PortBindingPort table","commit_id":"874a860bf0651e23ac5fc6ededd95b5e06f99d4c"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"7e3c54efffd01db33d677dcb2179c21ad4ce45a5","unresolved":false,"context_lines":[{"line_number":97,"context_line":"            default\u003dconstants.ACTIVE),"},{"line_number":98,"context_line":"    }"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    primary_keys \u003d [\u0027port_id\u0027, \u0027host\u0027]"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"@base.NeutronObjectRegistry.register"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_ea85535a","line":100,"range":{"start_line":100,"start_character":31,"end_line":100,"end_character":37},"updated":"2018-10-10 23:15:44.000000000","message":"\u0027host\u0027 is not a primary key in the database schema: https://github.com/openstack/neutron/blob/6918f4a2372991a41d02fa2313b38de157ac5ab3/neutron/db/models/portbinding.py#L27 . Perhaps, it is something that needs to be fixed.","commit_id":"874a860bf0651e23ac5fc6ededd95b5e06f99d4c"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":97,"context_line":"            default\u003dconstants.ACTIVE),"},{"line_number":98,"context_line":"    }"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    primary_keys \u003d [\u0027port_id\u0027, \u0027host\u0027]"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"@base.NeutronObjectRegistry.register"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_9e073dc9","line":100,"range":{"start_line":100,"start_character":31,"end_line":100,"end_character":37},"in_reply_to":"3f79a3b5_ea85535a","updated":"2018-10-11 05:31:48.000000000","message":"ditto.","commit_id":"874a860bf0651e23ac5fc6ededd95b5e06f99d4c"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"bb4e27a82259a81564abbcfcd6b118b713ddb95c","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                    self.obj_context,"},{"line_number":51,"context_line":"                    port_id\u003dself.db_obj.port_id,"},{"line_number":52,"context_line":"                    host\u003dself.db_obj.host)"},{"line_number":53,"context_line":"                self._changed_fields \u003d set(self.fields.keys())"},{"line_number":54,"context_line":"                self.create()"},{"line_number":55,"context_line":"        else:"},{"line_number":56,"context_line":"            super(PortBindingBase, self).update()"}],"source_content_type":"text/x-python","patch_set":25,"id":"3f79a3b5_afa534b6","line":53,"range":{"start_line":53,"start_character":54,"end_line":53,"end_character":59},"updated":"2018-10-23 12:00:12.000000000","message":"super nit: not needed","commit_id":"13ab4f5aa7b232f49bcb38d272e84c48c0c43448"}],"neutron/plugins/ml2/db.py":[{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"ed7415ab3c4199319045337e325bf44c6ce67e31","unresolved":false,"context_lines":[{"line_number":229,"context_line":"    final_status \u003d n_const.PORT_STATUS_BUILD"},{"line_number":230,"context_line":"    bindings \u003d port_obj.DistributedPortBinding.get_objects(context,"},{"line_number":231,"context_line":"                                                           port_id\u003dport_id)"},{"line_number":232,"context_line":"    for bind in bindings:"},{"line_number":233,"context_line":"        if bind.status \u003d\u003d n_const.PORT_STATUS_ACTIVE:"},{"line_number":234,"context_line":"            return bind.status"},{"line_number":235,"context_line":"        elif bind.status \u003d\u003d n_const.PORT_STATUS_DOWN:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_5b996e1c","line":232,"range":{"start_line":232,"start_character":8,"end_line":232,"end_character":12},"updated":"2018-06-12 22:25:43.000000000","message":"binding would make more sense","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"15c3fed7b1a88747852facaa831bca06c791d97d","unresolved":false,"context_lines":[{"line_number":229,"context_line":"    final_status \u003d n_const.PORT_STATUS_BUILD"},{"line_number":230,"context_line":"    bindings \u003d port_obj.DistributedPortBinding.get_objects(context,"},{"line_number":231,"context_line":"                                                           port_id\u003dport_id)"},{"line_number":232,"context_line":"    for bind in bindings:"},{"line_number":233,"context_line":"        if bind.status \u003d\u003d n_const.PORT_STATUS_ACTIVE:"},{"line_number":234,"context_line":"            return bind.status"},{"line_number":235,"context_line":"        elif bind.status \u003d\u003d n_const.PORT_STATUS_DOWN:"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_c7cdd385","line":232,"range":{"start_line":232,"start_character":8,"end_line":232,"end_character":12},"in_reply_to":"5f7c97a3_5b996e1c","updated":"2018-08-23 10:53:23.000000000","message":"Done","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"ed7415ab3c4199319045337e325bf44c6ce67e31","unresolved":false,"context_lines":[{"line_number":238,"context_line":""},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"def get_distributed_port_binding_by_host(context, port_id, host):"},{"line_number":241,"context_line":"    bindings \u003d port_obj.DistributedPortBinding.get_objects("},{"line_number":242,"context_line":"        context, port_id\u003dobj_utils.StringStarts(port_id), host\u003dhost)"},{"line_number":243,"context_line":"    binding \u003d bindings.pop() if bindings else None"},{"line_number":244,"context_line":"    if not binding:"},{"line_number":245,"context_line":"        LOG.debug(\"No binding for distributed port %(port_id)s with host \""}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_fb107a5b","line":242,"range":{"start_line":241,"start_character":46,"end_line":242,"end_character":68},"updated":"2018-06-12 22:25:43.000000000","message":"since port_id and host are primary key, get_object(context, port_id\u003dport_id, host\u003dhost) would make more sense.\n\nidk why startswith is even used in first place for primary key.","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"15c3fed7b1a88747852facaa831bca06c791d97d","unresolved":false,"context_lines":[{"line_number":238,"context_line":""},{"line_number":239,"context_line":""},{"line_number":240,"context_line":"def get_distributed_port_binding_by_host(context, port_id, host):"},{"line_number":241,"context_line":"    bindings \u003d port_obj.DistributedPortBinding.get_objects("},{"line_number":242,"context_line":"        context, port_id\u003dobj_utils.StringStarts(port_id), host\u003dhost)"},{"line_number":243,"context_line":"    binding \u003d bindings.pop() if bindings else None"},{"line_number":244,"context_line":"    if not binding:"},{"line_number":245,"context_line":"        LOG.debug(\"No binding for distributed port %(port_id)s with host \""}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_e7fc8f73","line":242,"range":{"start_line":241,"start_character":46,"end_line":242,"end_character":68},"in_reply_to":"5f7c97a3_fb107a5b","updated":"2018-08-23 10:53:23.000000000","message":"In some cases Neutron accepts prefix of port_id to search to its portbinding, as can be seen in some tests here https://github.com/openstack/neutron/blob/master/neutron/tests/unit/plugins/ml2/test_db.py#L233","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cf0927d10af5d3fe51b9781f0ed6a8f36b1bf3a6","unresolved":false,"context_lines":[{"line_number":43,"context_line":"MAX_PORTS_PER_QUERY \u003d 500"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"@db_api.context_manager.writer"},{"line_number":47,"context_line":"def add_port_binding(context, port_id):"},{"line_number":48,"context_line":"    binding \u003d port_obj.PortBinding("},{"line_number":49,"context_line":"        context, port_id\u003dport_id, vif_type\u003dportbindings.VIF_TYPE_UNBOUND)"}],"source_content_type":"text/x-python","patch_set":18,"id":"3f79a3b5_19b68b26","line":46,"updated":"2018-09-20 17:39:37.000000000","message":"just a question: do we need this decorator still if new OVO object uses new_enginefacade and should use this context_manager byself? Or am I missunderstand something?","commit_id":"9f506e25a2afc2fec903b6d26ba5a4314e3fc3a0"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":43,"context_line":"MAX_PORTS_PER_QUERY \u003d 500"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"@db_api.context_manager.writer"},{"line_number":47,"context_line":"def add_port_binding(context, port_id):"},{"line_number":48,"context_line":"    binding \u003d port_obj.PortBinding("},{"line_number":49,"context_line":"        context, port_id\u003dport_id, vif_type\u003dportbindings.VIF_TYPE_UNBOUND)"}],"source_content_type":"text/x-python","patch_set":18,"id":"3f79a3b5_09c24487","line":46,"in_reply_to":"3f79a3b5_19b68b26","updated":"2018-10-11 05:31:48.000000000","message":"Good catch. We can remove this decorator anymore.","commit_id":"9f506e25a2afc2fec903b6d26ba5a4314e3fc3a0"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cf0927d10af5d3fe51b9781f0ed6a8f36b1bf3a6","unresolved":false,"context_lines":[{"line_number":243,"context_line":"    return binding[0].host"},{"line_number":244,"context_line":""},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"@db_api.context_manager.reader"},{"line_number":247,"context_line":"def generate_distributed_port_status(context, port_id):"},{"line_number":248,"context_line":"    # an OR\u0027ed value of status assigned to parent port from the"},{"line_number":249,"context_line":"    # distributedportbinding bucket"}],"source_content_type":"text/x-python","patch_set":18,"id":"3f79a3b5_b93677b3","line":246,"updated":"2018-09-20 17:39:37.000000000","message":"same question here","commit_id":"9f506e25a2afc2fec903b6d26ba5a4314e3fc3a0"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":243,"context_line":"    return binding[0].host"},{"line_number":244,"context_line":""},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"@db_api.context_manager.reader"},{"line_number":247,"context_line":"def generate_distributed_port_status(context, port_id):"},{"line_number":248,"context_line":"    # an OR\u0027ed value of status assigned to parent port from the"},{"line_number":249,"context_line":"    # distributedportbinding bucket"}],"source_content_type":"text/x-python","patch_set":18,"id":"3f79a3b5_493d9c8c","line":246,"in_reply_to":"3f79a3b5_b93677b3","updated":"2018-10-11 05:31:48.000000000","message":"This decorator is not needed either.","commit_id":"9f506e25a2afc2fec903b6d26ba5a4314e3fc3a0"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"65ac4b1b2771a83059c530a6fe55f753a2b112f9","unresolved":false,"context_lines":[{"line_number":230,"context_line":"    bindings \u003d port_obj.PortBinding.get_objects("},{"line_number":231,"context_line":"        context, port_id\u003dobj_utils.StringStarts(port_id))"},{"line_number":232,"context_line":"    binding \u003d [binding for binding in bindings"},{"line_number":233,"context_line":"               if binding.status \u003d\u003d n_const.ACTIVE]"},{"line_number":234,"context_line":"    if not binding:"},{"line_number":235,"context_line":"        LOG.debug(\"No active binding found for port %(port_id)s\","},{"line_number":236,"context_line":"                  {\u0027port_id\u0027: port_id})"}],"source_content_type":"text/x-python","patch_set":21,"id":"3f79a3b5_f1cdd485","line":233,"updated":"2018-10-04 08:04:58.000000000","message":"can\u0027t You add something like \"statu\u003dn_const.ACTIVE\" to filters in get_objects() call above? Then this would not be necessary, right?","commit_id":"b6d163f4e409795c22330c34706111a1ba4c1dd0"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":230,"context_line":"    bindings \u003d port_obj.PortBinding.get_objects("},{"line_number":231,"context_line":"        context, port_id\u003dobj_utils.StringStarts(port_id))"},{"line_number":232,"context_line":"    binding \u003d [binding for binding in bindings"},{"line_number":233,"context_line":"               if binding.status \u003d\u003d n_const.ACTIVE]"},{"line_number":234,"context_line":"    if not binding:"},{"line_number":235,"context_line":"        LOG.debug(\"No active binding found for port %(port_id)s\","},{"line_number":236,"context_line":"                  {\u0027port_id\u0027: port_id})"}],"source_content_type":"text/x-python","patch_set":21,"id":"3f79a3b5_9e33bd12","line":233,"in_reply_to":"3f79a3b5_f1cdd485","updated":"2018-10-11 05:31:48.000000000","message":"Done","commit_id":"b6d163f4e409795c22330c34706111a1ba4c1dd0"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"7e3c54efffd01db33d677dcb2179c21ad4ce45a5","unresolved":false,"context_lines":[{"line_number":255,"context_line":""},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"def get_distributed_port_binding_by_host(context, port_id, host):"},{"line_number":258,"context_line":"    bindings \u003d port_obj.DistributedPortBinding.get_objects("},{"line_number":259,"context_line":"        context, port_id\u003dobj_utils.StringStarts(port_id), host\u003dhost)"},{"line_number":260,"context_line":"    binding \u003d bindings.pop() if bindings else None"},{"line_number":261,"context_line":"    if not binding:"},{"line_number":262,"context_line":"        LOG.debug(\"No binding for distributed port %(port_id)s with host \""},{"line_number":263,"context_line":"                  \"%(host)s\", {\u0027port_id\u0027: port_id, \u0027host\u0027: host})"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_c7b890e9","line":260,"range":{"start_line":258,"start_character":0,"end_line":260,"end_character":50},"updated":"2018-10-10 23:15:44.000000000","message":"Why not using get_object instead:\n\n    binding \u003d port_obj.DistributedPortBinding.get_object(\n        context, port_id\u003dobj_utils.StringStarts(port_id), host\u003dhost)","commit_id":"874a860bf0651e23ac5fc6ededd95b5e06f99d4c"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":255,"context_line":""},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"def get_distributed_port_binding_by_host(context, port_id, host):"},{"line_number":258,"context_line":"    bindings \u003d port_obj.DistributedPortBinding.get_objects("},{"line_number":259,"context_line":"        context, port_id\u003dobj_utils.StringStarts(port_id), host\u003dhost)"},{"line_number":260,"context_line":"    binding \u003d bindings.pop() if bindings else None"},{"line_number":261,"context_line":"    if not binding:"},{"line_number":262,"context_line":"        LOG.debug(\"No binding for distributed port %(port_id)s with host \""},{"line_number":263,"context_line":"                  \"%(host)s\", {\u0027port_id\u0027: port_id, \u0027host\u0027: host})"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_1e148de9","line":260,"range":{"start_line":258,"start_character":0,"end_line":260,"end_character":50},"in_reply_to":"3f79a3b5_c7b890e9","updated":"2018-10-11 05:31:48.000000000","message":"will revise this part.","commit_id":"874a860bf0651e23ac5fc6ededd95b5e06f99d4c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"e175e96024289c77574dc12ce3d12071fe9f4169","unresolved":false,"context_lines":[{"line_number":257,"context_line":""},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"def get_distributed_port_binding_by_host(context, port_id, host):"},{"line_number":260,"context_line":"    bindings \u003d port_obj.DistributedPortBinding.get_objects("},{"line_number":261,"context_line":"        context, port_id\u003dobj_utils.StringStarts(port_id), host\u003dhost)"},{"line_number":262,"context_line":"    binding \u003d bindings.pop() if bindings else None"},{"line_number":263,"context_line":"    if not binding:"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_de7295b0","line":260,"range":{"start_line":260,"start_character":47,"end_line":260,"end_character":58},"updated":"2018-10-11 04:14:53.000000000","message":"as hongbin said in PS 22 get_object should be used since filters are primary key","commit_id":"e5f4425dc363ec6fc79270563bc3a4b2d1062a25"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":257,"context_line":""},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"def get_distributed_port_binding_by_host(context, port_id, host):"},{"line_number":260,"context_line":"    bindings \u003d port_obj.DistributedPortBinding.get_objects("},{"line_number":261,"context_line":"        context, port_id\u003dobj_utils.StringStarts(port_id), host\u003dhost)"},{"line_number":262,"context_line":"    binding \u003d bindings.pop() if bindings else None"},{"line_number":263,"context_line":"    if not binding:"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_3ebf09cb","line":260,"range":{"start_line":260,"start_character":47,"end_line":260,"end_character":58},"in_reply_to":"3f79a3b5_de7295b0","updated":"2018-10-11 05:31:48.000000000","message":"Will revise this part.","commit_id":"e5f4425dc363ec6fc79270563bc3a4b2d1062a25"}],"neutron/plugins/ml2/driver_context.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cf0927d10af5d3fe51b9781f0ed6a8f36b1bf3a6","unresolved":false,"context_lines":[{"line_number":24,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"class InstanceSnapshot(object):"},{"line_number":28,"context_line":"    \"\"\"Used to avoid holding references to DB objects in PortContext.\"\"\""},{"line_number":29,"context_line":"    def __init__(self, obj):"},{"line_number":30,"context_line":"        self._model_class \u003d obj.__class__"}],"source_content_type":"text/x-python","patch_set":18,"id":"3f79a3b5_d939f3a2","line":27,"updated":"2018-09-20 17:39:37.000000000","message":"This class looks that is not needed anymore so You can probably remove it now","commit_id":"9f506e25a2afc2fec903b6d26ba5a4314e3fc3a0"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":24,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"class InstanceSnapshot(object):"},{"line_number":28,"context_line":"    \"\"\"Used to avoid holding references to DB objects in PortContext.\"\"\""},{"line_number":29,"context_line":"    def __init__(self, obj):"},{"line_number":30,"context_line":"        self._model_class \u003d obj.__class__"}],"source_content_type":"text/x-python","patch_set":18,"id":"3f79a3b5_0e000a35","line":27,"in_reply_to":"3f79a3b5_d939f3a2","updated":"2018-10-11 05:31:48.000000000","message":"Done","commit_id":"9f506e25a2afc2fec903b6d26ba5a4314e3fc3a0"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"56cc75a8ca6021b15b9187b0159242a4e936f472","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from neutron_lib import constants"},{"line_number":18,"context_line":"from neutron_lib.plugins.ml2 import api"},{"line_number":19,"context_line":"from oslo_log import log"},{"line_number":20,"context_line":"import sqlalchemy"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from neutron.db import segments_db"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"3f79a3b5_95041a1a","line":20,"range":{"start_line":20,"start_character":0,"end_line":20,"end_character":17},"updated":"2018-09-27 13:40:56.000000000","message":"Never used.","commit_id":"e13b007c19848d0625224105450d8a27c3de621d"}],"neutron/plugins/ml2/models.py":[{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"1ff5a73599cabe6bb87c711f40a6e8f4eaeff772","unresolved":false,"context_lines":[{"line_number":129,"context_line":"        models_v2.Port,"},{"line_number":130,"context_line":"        load_on_pending\u003dTrue,"},{"line_number":131,"context_line":"        backref\u003dorm.backref(\"distributed_port_binding\","},{"line_number":132,"context_line":"                            lazy\u003d\u0027joined\u0027,"},{"line_number":133,"context_line":"                            cascade\u003d\u0027delete\u0027))"},{"line_number":134,"context_line":"    revises_on_change \u003d (\u0027port\u0027, )"}],"source_content_type":"text/x-python","patch_set":20,"id":"3f79a3b5_fda5eda0","line":132,"updated":"2018-10-01 16:48:57.000000000","message":"Is this an optimization, since subqueries are more likely get written to temp files by MySQL and thus be a bit slower?  Or is there another rationale for this?","commit_id":"f4da0d31f4ccfcc583d5ca6392bf96e03a2ae23d"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"7e3c54efffd01db33d677dcb2179c21ad4ce45a5","unresolved":false,"context_lines":[{"line_number":129,"context_line":"        models_v2.Port,"},{"line_number":130,"context_line":"        load_on_pending\u003dTrue,"},{"line_number":131,"context_line":"        backref\u003dorm.backref(\"distributed_port_binding\","},{"line_number":132,"context_line":"                            lazy\u003d\u0027joined\u0027,"},{"line_number":133,"context_line":"                            cascade\u003d\u0027delete\u0027))"},{"line_number":134,"context_line":"    revises_on_change \u003d (\u0027port\u0027, )"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_87061874","line":132,"range":{"start_line":132,"start_character":34,"end_line":132,"end_character":40},"updated":"2018-10-10 23:15:44.000000000","message":"Just wondering. Any reason for justifying this change of loading strategy?","commit_id":"874a860bf0651e23ac5fc6ededd95b5e06f99d4c"}],"neutron/plugins/ml2/plugin.py":[{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"ed7415ab3c4199319045337e325bf44c6ce67e31","unresolved":false,"context_lines":[{"line_number":373,"context_line":"            db.clear_binding_levels(plugin_context, port_id, original_host)"},{"line_number":374,"context_line":"            mech_context._clear_binding_levels()"},{"line_number":375,"context_line":"            binding.host \u003d \u0027\u0027"},{"line_number":376,"context_line":"            binding.update()"},{"line_number":377,"context_line":""},{"line_number":378,"context_line":"        self._update_port_dict_binding(port, binding)"},{"line_number":379,"context_line":"        binding.update()"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_5b3c0dc7","line":376,"range":{"start_line":376,"start_character":12,"end_line":376,"end_character":28},"updated":"2018-06-12 22:25:43.000000000","message":"why update is needed twice. I think L379 will take of it ?","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"15c3fed7b1a88747852facaa831bca06c791d97d","unresolved":false,"context_lines":[{"line_number":373,"context_line":"            db.clear_binding_levels(plugin_context, port_id, original_host)"},{"line_number":374,"context_line":"            mech_context._clear_binding_levels()"},{"line_number":375,"context_line":"            binding.host \u003d \u0027\u0027"},{"line_number":376,"context_line":"            binding.update()"},{"line_number":377,"context_line":""},{"line_number":378,"context_line":"        self._update_port_dict_binding(port, binding)"},{"line_number":379,"context_line":"        binding.update()"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_a8a4cca4","line":376,"range":{"start_line":376,"start_character":12,"end_line":376,"end_character":28},"in_reply_to":"5f7c97a3_5b3c0dc7","updated":"2018-08-23 10:53:23.000000000","message":"because Line 378 requires the latest \"binding\" too. And then we need to update any changes made in Line 378, thus we have another .update() right after it.","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"ed7415ab3c4199319045337e325bf44c6ce67e31","unresolved":false,"context_lines":[{"line_number":494,"context_line":"            try:"},{"line_number":495,"context_line":"                port_db \u003d self._get_port(plugin_context, port_id)"},{"line_number":496,"context_line":"                plugin_context.session.refresh(port_db)"},{"line_number":497,"context_line":"                # TODO(korzen) replace get_objects with port_obj.binding when"},{"line_number":498,"context_line":"                # Port OVO is integrated in _get_port"},{"line_number":499,"context_line":"                bindings \u003d obj_port.PortBinding.get_objects("},{"line_number":500,"context_line":"                    plugin_context, port_id\u003dport_db.id,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_bb6f61c2","line":497,"range":{"start_line":497,"start_character":23,"end_line":497,"end_character":29},"updated":"2018-06-12 22:25:43.000000000","message":"you mean \u0027lujinluo\u0027 ?","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"15c3fed7b1a88747852facaa831bca06c791d97d","unresolved":false,"context_lines":[{"line_number":494,"context_line":"            try:"},{"line_number":495,"context_line":"                port_db \u003d self._get_port(plugin_context, port_id)"},{"line_number":496,"context_line":"                plugin_context.session.refresh(port_db)"},{"line_number":497,"context_line":"                # TODO(korzen) replace get_objects with port_obj.binding when"},{"line_number":498,"context_line":"                # Port OVO is integrated in _get_port"},{"line_number":499,"context_line":"                bindings \u003d obj_port.PortBinding.get_objects("},{"line_number":500,"context_line":"                    plugin_context, port_id\u003dport_db.id,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_68b474d4","line":497,"range":{"start_line":497,"start_character":23,"end_line":497,"end_character":29},"in_reply_to":"5f7c97a3_bb6f61c2","updated":"2018-08-23 10:53:23.000000000","message":"korzen was a co-author of this patch, so I kept his comments. :)","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cf0927d10af5d3fe51b9781f0ed6a8f36b1bf3a6","unresolved":false,"context_lines":[{"line_number":395,"context_line":"            self._clear_port_binding(mech_context, binding, port,"},{"line_number":396,"context_line":"                                     original_host)"},{"line_number":397,"context_line":"            binding.host \u003d \u0027\u0027"},{"line_number":398,"context_line":"            binding.update()"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"        self._update_port_dict_binding(port, binding)"},{"line_number":401,"context_line":"        binding.update()"}],"source_content_type":"text/x-python","patch_set":18,"id":"3f79a3b5_59c0837c","line":398,"updated":"2018-09-20 17:39:37.000000000","message":"why You need this additional binding here now?","commit_id":"9f506e25a2afc2fec903b6d26ba5a4314e3fc3a0"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":395,"context_line":"            self._clear_port_binding(mech_context, binding, port,"},{"line_number":396,"context_line":"                                     original_host)"},{"line_number":397,"context_line":"            binding.host \u003d \u0027\u0027"},{"line_number":398,"context_line":"            binding.update()"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"        self._update_port_dict_binding(port, binding)"},{"line_number":401,"context_line":"        binding.update()"}],"source_content_type":"text/x-python","patch_set":18,"id":"3f79a3b5_4e6922f6","line":398,"in_reply_to":"3f79a3b5_59c0837c","updated":"2018-10-11 05:31:48.000000000","message":"Because in the line above, we updated binding.host to \u0027 \u0027, this result will not be saved into db, unless we do a specific .update() in this line. And because, we need to pass the most up-to-date value of binding to line 400, we need this line here.","commit_id":"9f506e25a2afc2fec903b6d26ba5a4314e3fc3a0"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cf0927d10af5d3fe51b9781f0ed6a8f36b1bf3a6","unresolved":false,"context_lines":[{"line_number":1502,"context_line":"        binding \u003d mech_context._binding"},{"line_number":1503,"context_line":"        port \u003d mech_context.current"},{"line_number":1504,"context_line":"        port_id \u003d port[\u0027id\u0027]"},{"line_number":1505,"context_line":"        clear_host \u003d None"},{"line_number":1506,"context_line":""},{"line_number":1507,"context_line":"        if binding.vif_type !\u003d portbindings.VIF_TYPE_UNBOUND:"},{"line_number":1508,"context_line":"            binding.vif_details \u003d None"}],"source_content_type":"text/x-python","patch_set":18,"id":"3f79a3b5_f9baaf08","line":1505,"updated":"2018-09-20 17:39:37.000000000","message":"can You explain why You need sometimes None and sometimes empty string as \"clear_host\"","commit_id":"9f506e25a2afc2fec903b6d26ba5a4314e3fc3a0"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"7e3c54efffd01db33d677dcb2179c21ad4ce45a5","unresolved":false,"context_lines":[{"line_number":517,"context_line":"            # mechanism driver update_port_*commit() calls."},{"line_number":518,"context_line":"            try:"},{"line_number":519,"context_line":"                port_db \u003d self._get_port(plugin_context, port_id)"},{"line_number":520,"context_line":"                plugin_context.session.refresh(port_db)"},{"line_number":521,"context_line":"                # TODO(korzen) replace get_objects with port_obj.binding when"},{"line_number":522,"context_line":"                # Port OVO is integrated in _get_port"},{"line_number":523,"context_line":"                bindings \u003d ports_obj.PortBinding.get_objects("}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_0a6f6f29","line":520,"range":{"start_line":520,"start_character":39,"end_line":520,"end_character":46},"updated":"2018-10-10 23:15:44.000000000","message":"Just wondering. How it needs a refresh in here?","commit_id":"874a860bf0651e23ac5fc6ededd95b5e06f99d4c"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"7e3c54efffd01db33d677dcb2179c21ad4ce45a5","unresolved":false,"context_lines":[{"line_number":524,"context_line":"                    plugin_context, port_id\u003dport_db.id,"},{"line_number":525,"context_line":"                    status\u003dconst.ACTIVE)"},{"line_number":526,"context_line":"                cur_binding \u003d p_utils.get_port_binding_by_status_and_host("},{"line_number":527,"context_line":"                    bindings, const.ACTIVE)"},{"line_number":528,"context_line":"            except exc.PortNotFound:"},{"line_number":529,"context_line":"                port_db, cur_binding \u003d None, None"},{"line_number":530,"context_line":"            if not port_db or not cur_binding:"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_4af6c792","line":527,"range":{"start_line":527,"start_character":20,"end_line":527,"end_character":28},"updated":"2018-10-10 23:15:44.000000000","message":"Not sure this will work as before since it is converted to OVO now. Perhaps, get_port_binding_by_status_and_host needs to be udpated to handle OVO?","commit_id":"874a860bf0651e23ac5fc6ededd95b5e06f99d4c"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":524,"context_line":"                    plugin_context, port_id\u003dport_db.id,"},{"line_number":525,"context_line":"                    status\u003dconst.ACTIVE)"},{"line_number":526,"context_line":"                cur_binding \u003d p_utils.get_port_binding_by_status_and_host("},{"line_number":527,"context_line":"                    bindings, const.ACTIVE)"},{"line_number":528,"context_line":"            except exc.PortNotFound:"},{"line_number":529,"context_line":"                port_db, cur_binding \u003d None, None"},{"line_number":530,"context_line":"            if not port_db or not cur_binding:"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_1ec24d55","line":527,"range":{"start_line":527,"start_character":20,"end_line":527,"end_character":28},"in_reply_to":"3f79a3b5_4af6c792","updated":"2018-10-11 05:31:48.000000000","message":"Since OVO provides both attribute and member access, it would be fine. But, yeah, to align the coding style, we may need some changes in neutron-lib.\n\nhttps://github.com/openstack/neutron-lib/blob/master/neutron_lib/plugins/utils.py#L354","commit_id":"874a860bf0651e23ac5fc6ededd95b5e06f99d4c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"e175e96024289c77574dc12ce3d12071fe9f4169","unresolved":false,"context_lines":[{"line_number":1362,"context_line":"                        original_port\u003doriginal_port)"},{"line_number":1363,"context_line":"        with db_api.context_manager.writer.using(context):"},{"line_number":1364,"context_line":"            port_db \u003d self._get_port(context, id)"},{"line_number":1365,"context_line":"            context.session.refresh(port_db)"},{"line_number":1366,"context_line":"            # TODO(korzen) replace _get_objects with port_obj.binding when"},{"line_number":1367,"context_line":"            # Port OVO is integrated in _get_port"},{"line_number":1368,"context_line":"            bindings \u003d ports_obj.PortBinding.get_objects("}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_7e3a61c4","line":1365,"range":{"start_line":1365,"start_character":11,"end_line":1365,"end_character":44},"updated":"2018-10-11 04:14:53.000000000","message":"why\u0027s this needed ?","commit_id":"e5f4425dc363ec6fc79270563bc3a4b2d1062a25"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"e175e96024289c77574dc12ce3d12071fe9f4169","unresolved":false,"context_lines":[{"line_number":1365,"context_line":"            context.session.refresh(port_db)"},{"line_number":1366,"context_line":"            # TODO(korzen) replace _get_objects with port_obj.binding when"},{"line_number":1367,"context_line":"            # Port OVO is integrated in _get_port"},{"line_number":1368,"context_line":"            bindings \u003d ports_obj.PortBinding.get_objects("},{"line_number":1369,"context_line":"                context, port_id\u003dport_db.id)"},{"line_number":1370,"context_line":"            binding \u003d p_utils.get_port_binding_by_status_and_host("},{"line_number":1371,"context_line":"                bindings, const.ACTIVE)"},{"line_number":1372,"context_line":"            if not binding:"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_9e4f3d68","line":1369,"range":{"start_line":1368,"start_character":12,"end_line":1369,"end_character":44},"updated":"2018-10-11 04:14:53.000000000","message":"this not needed here, it can be done in either _get_port or once _get_port integrates ovo, here may not need updates","commit_id":"e5f4425dc363ec6fc79270563bc3a4b2d1062a25"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"9a833edf736fd708417b8d5020e78a42ab5775b7","unresolved":false,"context_lines":[{"line_number":396,"context_line":"                                     original_host)"},{"line_number":397,"context_line":"            if binding.host !\u003d \u0027\u0027:"},{"line_number":398,"context_line":"                binding.host \u003d \u0027\u0027"},{"line_number":399,"context_line":"            binding.update()"},{"line_number":400,"context_line":""},{"line_number":401,"context_line":"        self._update_port_dict_binding(port, binding)"},{"line_number":402,"context_line":"        binding.update()"}],"source_content_type":"text/x-python","patch_set":25,"id":"3f79a3b5_ceea12d8","line":399,"range":{"start_line":399,"start_character":12,"end_line":399,"end_character":28},"updated":"2018-10-23 10:09:50.000000000","message":"Can save this update since line 402 will call it anyway?","commit_id":"13ab4f5aa7b232f49bcb38d272e84c48c0c43448"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"bb4e27a82259a81564abbcfcd6b118b713ddb95c","unresolved":false,"context_lines":[{"line_number":396,"context_line":"                                     original_host)"},{"line_number":397,"context_line":"            if binding.host !\u003d \u0027\u0027:"},{"line_number":398,"context_line":"                binding.host \u003d \u0027\u0027"},{"line_number":399,"context_line":"            binding.update()"},{"line_number":400,"context_line":""},{"line_number":401,"context_line":"        self._update_port_dict_binding(port, binding)"},{"line_number":402,"context_line":"        binding.update()"}],"source_content_type":"text/x-python","patch_set":25,"id":"3f79a3b5_cfe430e2","line":399,"range":{"start_line":399,"start_character":12,"end_line":399,"end_character":28},"in_reply_to":"3f79a3b5_ceea12d8","updated":"2018-10-23 12:00:12.000000000","message":"+1","commit_id":"13ab4f5aa7b232f49bcb38d272e84c48c0c43448"}],"neutron/tests/unit/plugins/ml2/test_db.py":[{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"ed7415ab3c4199319045337e325bf44c6ce67e31","unresolved":false,"context_lines":[{"line_number":338,"context_line":"            get_object.side_effect \u003d [None, dpb]"},{"line_number":339,"context_line":"            binding \u003d ml2_db.ensure_distributed_port_binding("},{"line_number":340,"context_line":"                self.ctx, port_id, host_id, router_id)"},{"line_number":341,"context_line":"        self.assertTrue(get_object.called)"},{"line_number":342,"context_line":"        self.assertEqual(port_id, binding.port_id)"},{"line_number":343,"context_line":""},{"line_number":344,"context_line":"    def test_ensure_distributed_port_binding(self):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_dbe9fd19","line":341,"range":{"start_line":341,"start_character":8,"end_line":341,"end_character":41},"updated":"2018-06-12 22:25:43.000000000","message":"how about get_object.assert_called()","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"15c3fed7b1a88747852facaa831bca06c791d97d","unresolved":false,"context_lines":[{"line_number":338,"context_line":"            get_object.side_effect \u003d [None, dpb]"},{"line_number":339,"context_line":"            binding \u003d ml2_db.ensure_distributed_port_binding("},{"line_number":340,"context_line":"                self.ctx, port_id, host_id, router_id)"},{"line_number":341,"context_line":"        self.assertTrue(get_object.called)"},{"line_number":342,"context_line":"        self.assertEqual(port_id, binding.port_id)"},{"line_number":343,"context_line":""},{"line_number":344,"context_line":"    def test_ensure_distributed_port_binding(self):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_a704574b","line":341,"range":{"start_line":341,"start_character":8,"end_line":341,"end_character":41},"in_reply_to":"5f7c97a3_dbe9fd19","updated":"2018-08-23 10:53:23.000000000","message":"Done","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"}],"neutron/tests/unit/plugins/ml2/test_plugin.py":[{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"ed7415ab3c4199319045337e325bf44c6ce67e31","unresolved":false,"context_lines":[{"line_number":1922,"context_line":"            updated_binding \u003d obj_port.PortBinding.get_objects(self.context,"},{"line_number":1923,"context_line":"                port_id\u003dport[\u0027port\u0027][\u0027id\u0027]).pop()"},{"line_number":1924,"context_line":"            self.assertTrue(update_mock.mock_calls)"},{"line_number":1925,"context_line":"            self.assertEqual(\u0027\u0027, updated_binding.host)"},{"line_number":1926,"context_line":""},{"line_number":1927,"context_line":"    def test_update_port_binding_host_id_not_changed(self):"},{"line_number":1928,"context_line":"        with self.port() as port:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_5bcc0d69","line":1925,"range":{"start_line":1925,"start_character":29,"end_line":1925,"end_character":31},"updated":"2018-06-12 22:25:43.000000000","message":"shouldn\u0027t this be \u0027test\u0027 ?","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"15c3fed7b1a88747852facaa831bca06c791d97d","unresolved":false,"context_lines":[{"line_number":1922,"context_line":"            updated_binding \u003d obj_port.PortBinding.get_objects(self.context,"},{"line_number":1923,"context_line":"                port_id\u003dport[\u0027port\u0027][\u0027id\u0027]).pop()"},{"line_number":1924,"context_line":"            self.assertTrue(update_mock.mock_calls)"},{"line_number":1925,"context_line":"            self.assertEqual(\u0027\u0027, updated_binding.host)"},{"line_number":1926,"context_line":""},{"line_number":1927,"context_line":"    def test_update_port_binding_host_id_not_changed(self):"},{"line_number":1928,"context_line":"        with self.port() as port:"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_e7b48f84","line":1925,"range":{"start_line":1925,"start_character":29,"end_line":1925,"end_character":31},"in_reply_to":"5f7c97a3_5bcc0d69","updated":"2018-08-23 10:53:23.000000000","message":"In line 1921, we have set attrs \u003d {portbindings.HOST_ID: None} to updated_binding.","commit_id":"86e643a11549e5c1c4b28fe343952a416cfecb1e"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"e175e96024289c77574dc12ce3d12071fe9f4169","unresolved":false,"context_lines":[{"line_number":1829,"context_line":"        with self.port() as port:"},{"line_number":1830,"context_line":"            plugin \u003d directory.get_plugin()"},{"line_number":1831,"context_line":"            binding \u003d port_obj.PortBinding.get_objects("},{"line_number":1832,"context_line":"                self.context, port_id\u003dport[\u0027port\u0027][\u0027id\u0027], host\u003d\u0027\u0027)"},{"line_number":1833,"context_line":"            binding \u003d p_utils.get_port_binding_by_status_and_host("},{"line_number":1834,"context_line":"                binding, constants.ACTIVE)"},{"line_number":1835,"context_line":"            binding.host \u003d \u0027test\u0027"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_f31b0a7d","line":1832,"range":{"start_line":1832,"start_character":58,"end_line":1832,"end_character":65},"updated":"2018-10-11 04:14:53.000000000","message":"idk how this will work since host\u003dnull is not allowed and if host\u003d\u0027\u0027 (empty string works) get_object should be used instead of get_objects because host and port_id are primary keys.","commit_id":"e5f4425dc363ec6fc79270563bc3a4b2d1062a25"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":1829,"context_line":"        with self.port() as port:"},{"line_number":1830,"context_line":"            plugin \u003d directory.get_plugin()"},{"line_number":1831,"context_line":"            binding \u003d port_obj.PortBinding.get_objects("},{"line_number":1832,"context_line":"                self.context, port_id\u003dport[\u0027port\u0027][\u0027id\u0027], host\u003d\u0027\u0027)"},{"line_number":1833,"context_line":"            binding \u003d p_utils.get_port_binding_by_status_and_host("},{"line_number":1834,"context_line":"                binding, constants.ACTIVE)"},{"line_number":1835,"context_line":"            binding.host \u003d \u0027test\u0027"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_1ebecdae","line":1832,"range":{"start_line":1832,"start_character":58,"end_line":1832,"end_character":65},"in_reply_to":"3f79a3b5_f31b0a7d","updated":"2018-10-11 05:31:48.000000000","message":"yeah, we are filtering empty string here. The primary reason I am using get_objects here is because p_utils.get_port_binding_by_status_and_host() takes binding as iterative objects. \n\nI will change to get_object() and pass [binding] here.","commit_id":"e5f4425dc363ec6fc79270563bc3a4b2d1062a25"}],"neutron/tests/unit/plugins/ml2/test_port_binding.py":[{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"e175e96024289c77574dc12ce3d12071fe9f4169","unresolved":false,"context_lines":[{"line_number":195,"context_line":"            attrs[\u0027binding:host_id\u0027] \u003d \u0027host2\u0027"},{"line_number":196,"context_line":"            updated_port \u003d attrs.copy()"},{"line_number":197,"context_line":"            network \u003d {\u0027id\u0027: attrs[\u0027network_id\u0027]}"},{"line_number":198,"context_line":"            binding \u003d obj_port.PortBinding.get_object("},{"line_number":199,"context_line":"                ctx, port_id\u003doriginal_port[\u0027id\u0027],"},{"line_number":200,"context_line":"                host\u003doriginal_port[\u0027binding:host_id\u0027])"},{"line_number":201,"context_line":"            levels \u003d []"},{"line_number":202,"context_line":"            mech_context \u003d driver_context.PortContext("},{"line_number":203,"context_line":"                plugin, ctx, updated_port, network, binding, levels,"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_b33832ed","line":200,"range":{"start_line":198,"start_character":21,"end_line":200,"end_character":54},"updated":"2018-10-11 04:14:53.000000000","message":"not sure if all other fields vnic_type and vif_* were defined during object creation, or else you just instantiate an object with all fields used and just pass binding as it was.","commit_id":"e5f4425dc363ec6fc79270563bc3a4b2d1062a25"},{"author":{"_account_id":28581,"name":"Lujin Luo","email":"lujinluo@gmail.com","username":"lujin"},"change_message_id":"eb02305f173ac4132e7d5df0468df2457b2278c0","unresolved":false,"context_lines":[{"line_number":195,"context_line":"            attrs[\u0027binding:host_id\u0027] \u003d \u0027host2\u0027"},{"line_number":196,"context_line":"            updated_port \u003d attrs.copy()"},{"line_number":197,"context_line":"            network \u003d {\u0027id\u0027: attrs[\u0027network_id\u0027]}"},{"line_number":198,"context_line":"            binding \u003d obj_port.PortBinding.get_object("},{"line_number":199,"context_line":"                ctx, port_id\u003doriginal_port[\u0027id\u0027],"},{"line_number":200,"context_line":"                host\u003doriginal_port[\u0027binding:host_id\u0027])"},{"line_number":201,"context_line":"            levels \u003d []"},{"line_number":202,"context_line":"            mech_context \u003d driver_context.PortContext("},{"line_number":203,"context_line":"                plugin, ctx, updated_port, network, binding, levels,"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_9e2dfdfd","line":200,"range":{"start_line":198,"start_character":21,"end_line":200,"end_character":54},"in_reply_to":"3f79a3b5_b33832ed","updated":"2018-10-11 05:31:48.000000000","message":"Yes, vnic_type and vif_* are handles by line 186\n\nSee the results here:\n\n(Pdb) port[\u0027port\u0027]\n{u\u0027status\u0027: \u0027ACTIVE\u0027, u\u0027binding:host_id\u0027: \u0027host2\u0027, u\u0027description\u0027: u\u0027\u0027, u\u0027allowed_address_pairs\u0027: [], u\u0027admin_state_up\u0027: True, u\u0027network_id\u0027: u\u0027a1a8a8e5-c057-4f81-8707-79ffadaf572a\u0027, u\u0027tenant_id\u0027: u\u002746f70361-ba71-4bd0-9769-3573fd227c4b\u0027, u\u0027extra_dhcp_opts\u0027: [], u\u0027name\u0027: u\u0027\u0027, u\u0027binding:vnic_type\u0027: u\u0027normal\u0027, u\u0027binding:vif_type\u0027: u\u0027unbound\u0027, u\u0027device_owner\u0027: u\u0027\u0027, u\u0027mac_address\u0027: u\u002712:34:56:78:98:41\u0027, u\u0027binding:vif_details\u0027: {}, u\u0027binding:profile\u0027: {}, u\u0027project_id\u0027: u\u002746f70361-ba71-4bd0-9769-3573fd227c4b\u0027, u\u0027fixed_ips\u0027: [{u\u0027subnet_id\u0027: u\u0027aef191ac-d76d-4d9b-b926-5365d05102e3\u0027, u\u0027ip_address\u0027: u\u002710.0.0.5\u0027}], u\u0027id\u0027: u\u0027d4f3dea4-7fbe-4146-a34c-b93868856480\u0027, u\u0027security_groups\u0027: [u\u00271503232f-588e-46c5-8587-e883b48428ad\u0027], u\u0027device_id\u0027: u\u0027\u0027}","commit_id":"e5f4425dc363ec6fc79270563bc3a4b2d1062a25"}]}
