)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9e29209e7f874e5443212db5855c34b1692d5a39","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Destroy ipset set when corresponding sg member is empty"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when a security group rule is deleted, its corresponding ipset set"},{"line_number":10,"context_line":"should be destroyed, even if the member of related security group"},{"line_number":11,"context_line":"is empty."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I801b14c9f506c5a07f8875b8f9be1b05d181b842"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1af86dd1_9074be9c","line":10,"updated":"2015-06-12 16:30:25.000000000","message":"The commit message doesn\u0027t fully match what I see in functionality, but there are chances that I\u0027m missing something. I don\u0027t see where this patch destroys more \"ipsets\" from the system.","commit_id":"2ce13024565c916b469675eac51d42bd105143e1"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"30d533bfed8819af728b5146b5e06678a4f702cc","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Destroy ipset set when corresponding sg member is empty"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when a security group rule is deleted, its corresponding ipset set"},{"line_number":10,"context_line":"should be destroyed, even if the member of related security group"},{"line_number":11,"context_line":"is empty."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I801b14c9f506c5a07f8875b8f9be1b05d181b842"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"fa32b979_d00cb344","line":10,"in_reply_to":"1af86dd1_9074be9c","updated":"2015-06-15 01:42:15.000000000","message":"thx for your review, the answer in other patch file","commit_id":"2ce13024565c916b469675eac51d42bd105143e1"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"f72e89b3ec214ee9443ccaec3078551ce729da96","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     shihanzhang \u003cshihanzhang@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-18 16:30:30 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Destroy ipset set when corresponding sg member is empty"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when a security group A has a rule witch allow security group B"},{"line_number":10,"context_line":"access, but the member of security group B is empty, it should"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa32b979_05088d2c","line":7,"updated":"2015-06-26 14:49:42.000000000","message":"The title here is a bit misleading, in my understanding what you are trying to fix here is that the ipset doesn\u0027t get destroyed. Am I right?","commit_id":"c99cccd834be45b686502f052f95ff909cc6c1e0"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"f72e89b3ec214ee9443ccaec3078551ce729da96","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Destroy ipset set when corresponding sg member is empty"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when a security group A has a rule witch allow security group B"},{"line_number":10,"context_line":"access, but the member of security group B is empty, it should"},{"line_number":11,"context_line":"not delete the \u0027self.sg_members\u0027 in l2 agent\u0027s memory, otherwise"},{"line_number":12,"context_line":"when this rule is deleted, its corresponding ipset set"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa32b979_33c63e4a","line":9,"updated":"2015-06-26 14:49:42.000000000","message":"nit: witch -\u003e which","commit_id":"c99cccd834be45b686502f052f95ff909cc6c1e0"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"f72e89b3ec214ee9443ccaec3078551ce729da96","unresolved":false,"context_lines":[{"line_number":10,"context_line":"access, but the member of security group B is empty, it should"},{"line_number":11,"context_line":"not delete the \u0027self.sg_members\u0027 in l2 agent\u0027s memory, otherwise"},{"line_number":12,"context_line":"when this rule is deleted, its corresponding ipset set"},{"line_number":13,"context_line":"should be destroyed."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I801b14c9f506c5a07f8875b8f9be1b05d181b842"},{"line_number":16,"context_line":"Closes-bug: #1463331"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa32b979_dcf4ccd0","line":13,"updated":"2015-06-26 14:49:42.000000000","message":"nit: is not destroyed\n\nI have to admit that the commit message confused a bit. Here is my understanding.\n\n\nThe problem:\n1) Sec group A has a rule to allow security group B member\n2) Sec group B has no member\n3) Right after creation of this rule, since sec group B has no member, _remove_unused_sg_members removes sec group B from self.sg_members\n4) self.sg_members gets copied into self.pre_sg_members\n5) the corresponding ipset will never be deleted because  the diff pre_sg_members - sg_members will never return sec group B\n\n\nYour fix was to avoid removing sec group B from self.sg_members when sec group B has no member.\n If that\u0027s correct could you clarify a bit the commit message please?","commit_id":"c99cccd834be45b686502f052f95ff909cc6c1e0"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"17f8e48c074ae1c08c0d28d7dd04fdcba0a97e6e","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     shihanzhang \u003cshihanzhang@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-29 10:24:33 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Destroy ipset set when corresponding sg member is empty"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when it clear internal cache of sg_members, it should only deletes the"},{"line_number":10,"context_line":"security group which no IPv4 and IPv6 are associated, if a security group"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"ba3cc151_09272665","line":7,"updated":"2015-06-30 14:42:21.000000000","message":"I still find it misleading how about\n\"Destroy ipset when the corresponding rule is removed\"\n\nthat\u0027s the bug you are fixing right?","commit_id":"591930695a69dd324f1b455d466aced207b4fab9"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"91ce06bcc3a1b14c1bdc29cb6347bddf397fd6b1","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     shihanzhang \u003cshihanzhang@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-29 10:24:33 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Destroy ipset set when corresponding sg member is empty"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when it clear internal cache of sg_members, it should only deletes the"},{"line_number":10,"context_line":"security group which no IPv4 and IPv6 are associated, if a security group"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"ba3cc151_40c71f45","line":7,"in_reply_to":"ba3cc151_09272665","updated":"2015-07-01 02:59:26.000000000","message":"you are right!","commit_id":"591930695a69dd324f1b455d466aced207b4fab9"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"17f8e48c074ae1c08c0d28d7dd04fdcba0a97e6e","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Destroy ipset set when corresponding sg member is empty"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when it clear internal cache of sg_members, it should only deletes the"},{"line_number":10,"context_line":"security group which no IPv4 and IPv6 are associated, if a security group"},{"line_number":11,"context_line":"which has IPv4 or IPv6 associated is deleted by mistake, the ipset set for"},{"line_number":12,"context_line":"this security group will not be destroyed."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"ba3cc151_a9a95a7d","line":9,"updated":"2015-06-30 14:42:21.000000000","message":"I think the actual problem is that a sg group is removed from the internal cache sg_members when it has no IP associated with it. Then the destroy is never executed because the security group is no more in the cache and the diff of pre_sg_members-sg_members will never return it. \n\nFrom your description the problem seems different. Can you confirm please and rephrase accordingly?\nIt\u0027s important that a commit message is clear.","commit_id":"591930695a69dd324f1b455d466aced207b4fab9"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"91ce06bcc3a1b14c1bdc29cb6347bddf397fd6b1","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Destroy ipset set when corresponding sg member is empty"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when it clear internal cache of sg_members, it should only deletes the"},{"line_number":10,"context_line":"security group which no IPv4 and IPv6 are associated, if a security group"},{"line_number":11,"context_line":"which has IPv4 or IPv6 associated is deleted by mistake, the ipset set for"},{"line_number":12,"context_line":"this security group will not be destroyed."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"ba3cc151_c0e1efd1","line":9,"in_reply_to":"ba3cc151_a9a95a7d","updated":"2015-07-01 02:59:26.000000000","message":"your analysis is right, I will rephrase the description!","commit_id":"591930695a69dd324f1b455d466aced207b4fab9"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2e3faf331779fc2a92b06eb617257b05690365ca","unresolved":false,"context_lines":[{"line_number":12,"context_line":"if this security group is removed from the internal"},{"line_number":13,"context_line":"cache sg_members, the ipset destroy is never executed because"},{"line_number":14,"context_line":"the security group is no more in the cache and the diff of"},{"line_number":15,"context_line":"pre_sg_members-sg_members will never return it."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I801b14c9f506c5a07f8875b8f9be1b05d181b842"},{"line_number":18,"context_line":"Closes-bug: #1463331"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"ba3cc151_be792bca","line":15,"updated":"2015-07-02 06:28:54.000000000","message":"I\u0027m still having a lot of trouble understanding the commit message and how the solution works. This will need to be updated to describe the problem better and provide some info about the solution.\n\n_remove_ipsets_for_remote_sgs is still called in the same way as before by receiving remote_sg_ids so is the issue is that _remove_unused_sg_members was removing sg_member entries that would affect a future iteration from cleaning up?","commit_id":"616a4796698f185e619c088bd52dcaf0e8134417"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"49f83444f17eccff5cd7fa1d1b032abe42eafd6f","unresolved":false,"context_lines":[{"line_number":12,"context_line":"if this security group is removed from the internal"},{"line_number":13,"context_line":"cache sg_members, the ipset destroy is never executed because"},{"line_number":14,"context_line":"the security group is no more in the cache and the diff of"},{"line_number":15,"context_line":"pre_sg_members-sg_members will never return it."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I801b14c9f506c5a07f8875b8f9be1b05d181b842"},{"line_number":18,"context_line":"Closes-bug: #1463331"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"ba3cc151_3301cc05","line":15,"in_reply_to":"ba3cc151_be792bca","updated":"2015-07-02 09:08:29.000000000","message":"hi kevin, thx for your review again.\nthe root problem is that:\n1. create sg A and sg B,\n2. create port A in sg A, but no port is in sg B\n3. create a rule for sg A that allow sg B access, at this point, l2 agent will remove internal cache of self.sg_members[sg B], because no port is in sg B\n4. delete above rule, the ipset set for sg B will not be destroy, because sg already not in self.sg_members.","commit_id":"616a4796698f185e619c088bd52dcaf0e8134417"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"636c0b85a22b6b52c2d5df7361c9de364844ef09","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     shihanzhang \u003cshihanzhang@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-16 18:54:07 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Destroy ipset when the corresponding rule is removed"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"if a security group has a rule which allow a remote group access,"},{"line_number":10,"context_line":"but this remote group has no IPv4 and IPv6 members, L2 agent"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"9a41bdd9_16298537","line":7,"updated":"2015-07-17 18:28:10.000000000","message":"Trying to understand yet; \n\nSo before this patch, ipset was destroyed before the SG rule was destroyed, just before the members in the specific ipset went empty?\n\nIf that\u0027s the case ,may be a better commit title would be:\n\nDestroy upset only when the corresponding SG rule is removed\n\nsorry to keep you bouncing on this, I won\u0027t -1 because I didn\u0027t have time to re-read the code and check if that\u0027s exactly what you\u0027re meaning. I guess it\u0027s from the later paragraph in the commit message.\n\nAgain, thanks for working on this.","commit_id":"1d0bc2834f0227509e9aafda02647b2c2e78ce30"}],"neutron/agent/linux/iptables_firewall.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9e29209e7f874e5443212db5855c34b1692d5a39","unresolved":false,"context_lines":[{"line_number":593,"context_line":""},{"line_number":594,"context_line":"        for ip_version, remote_sg_ids in six.iteritems(remote_sgs_to_remove):"},{"line_number":595,"context_line":"            if self.enable_ipset:"},{"line_number":596,"context_line":"                self._remove_ipsets_for_remote_sgs(ip_version, remote_sg_ids)"},{"line_number":597,"context_line":""},{"line_number":598,"context_line":"        self._remove_unused_sg_members(remote_sgs_to_remove)"},{"line_number":599,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1af86dd1_5020869b","line":596,"updated":"2015-06-12 16:30:25.000000000","message":"^ this path calling to remove_ipsets is not altered, it doesn\u0027t fully match your commit message.\n\nHow is your patch exactly changing the behavior?","commit_id":"2ce13024565c916b469675eac51d42bd105143e1"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"30d533bfed8819af728b5146b5e06678a4f702cc","unresolved":false,"context_lines":[{"line_number":593,"context_line":""},{"line_number":594,"context_line":"        for ip_version, remote_sg_ids in six.iteritems(remote_sgs_to_remove):"},{"line_number":595,"context_line":"            if self.enable_ipset:"},{"line_number":596,"context_line":"                self._remove_ipsets_for_remote_sgs(ip_version, remote_sg_ids)"},{"line_number":597,"context_line":""},{"line_number":598,"context_line":"        self._remove_unused_sg_members(remote_sgs_to_remove)"},{"line_number":599,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_d02593c2","line":596,"in_reply_to":"1af86dd1_5020869b","updated":"2015-06-15 01:42:15.000000000","message":"thx for your suggestion, I will modify the commit message.\nI think you could miss a patch: #https://review.openstack.org/#/c/187433/, now for a sg which has a remote-security-group-access rule, it will create the ipset set even if the remote sg does not has members, so if we use \u0027self._clear_sg_members()\u0027 to clean a remote sg members, it will not distinguish from a remote sg really does not has members","commit_id":"2ce13024565c916b469675eac51d42bd105143e1"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9e29209e7f874e5443212db5855c34b1692d5a39","unresolved":false,"context_lines":[{"line_number":648,"context_line":"        for remote_sg_id in remote_sg_ids:"},{"line_number":649,"context_line":"            self.ipset.destroy(remote_sg_id, ip_version)"},{"line_number":650,"context_line":""},{"line_number":651,"context_line":"    def _remove_unused_sg_members(self, remote_sgs_to_remove):"},{"line_number":652,"context_line":"        \"\"\"Remove unused sg_member entries.\"\"\""},{"line_number":653,"context_line":"        ipv4_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv4)"},{"line_number":654,"context_line":"        ipv6_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv6)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1af86dd1_ad2c05ac","line":651,"updated":"2015-06-12 16:30:25.000000000","message":"Super pedantic nit:\n\nThe semantics change a bit, I\u0027d rename the function to\n_remove_sg_members(...)\nor \n_remote_sg_members_for(...)\n\nSince we don\u0027t check anymore if they are unused or no in the function","commit_id":"2ce13024565c916b469675eac51d42bd105143e1"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"30d533bfed8819af728b5146b5e06678a4f702cc","unresolved":false,"context_lines":[{"line_number":648,"context_line":"        for remote_sg_id in remote_sg_ids:"},{"line_number":649,"context_line":"            self.ipset.destroy(remote_sg_id, ip_version)"},{"line_number":650,"context_line":""},{"line_number":651,"context_line":"    def _remove_unused_sg_members(self, remote_sgs_to_remove):"},{"line_number":652,"context_line":"        \"\"\"Remove unused sg_member entries.\"\"\""},{"line_number":653,"context_line":"        ipv4_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv4)"},{"line_number":654,"context_line":"        ipv6_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv6)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_70f36774","line":651,"in_reply_to":"1af86dd1_ad2c05ac","updated":"2015-06-15 01:42:15.000000000","message":"agree","commit_id":"2ce13024565c916b469675eac51d42bd105143e1"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9e29209e7f874e5443212db5855c34b1692d5a39","unresolved":false,"context_lines":[{"line_number":649,"context_line":"            self.ipset.destroy(remote_sg_id, ip_version)"},{"line_number":650,"context_line":""},{"line_number":651,"context_line":"    def _remove_unused_sg_members(self, remote_sgs_to_remove):"},{"line_number":652,"context_line":"        \"\"\"Remove unused sg_member entries.\"\"\""},{"line_number":653,"context_line":"        ipv4_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv4)"},{"line_number":654,"context_line":"        ipv6_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv6)"},{"line_number":655,"context_line":"        for sg_id in (ipv4_sec_group_set \u0026 ipv6_sec_group_set):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1af86dd1_cd062120","line":652,"updated":"2015-06-12 16:30:25.000000000","message":"same here ^,","commit_id":"2ce13024565c916b469675eac51d42bd105143e1"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"30d533bfed8819af728b5146b5e06678a4f702cc","unresolved":false,"context_lines":[{"line_number":649,"context_line":"            self.ipset.destroy(remote_sg_id, ip_version)"},{"line_number":650,"context_line":""},{"line_number":651,"context_line":"    def _remove_unused_sg_members(self, remote_sgs_to_remove):"},{"line_number":652,"context_line":"        \"\"\"Remove unused sg_member entries.\"\"\""},{"line_number":653,"context_line":"        ipv4_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv4)"},{"line_number":654,"context_line":"        ipv6_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv6)"},{"line_number":655,"context_line":"        for sg_id in (ipv4_sec_group_set \u0026 ipv6_sec_group_set):"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_10e8db7b","line":652,"in_reply_to":"1af86dd1_cd062120","updated":"2015-06-15 01:42:15.000000000","message":"Done","commit_id":"2ce13024565c916b469675eac51d42bd105143e1"},{"author":{"_account_id":9459,"name":".Haifeng Yan","email":"yanheven@qq.com","username":"yan"},"change_message_id":"b5405b301110e3346fc733235e75cb4ce4e01ffa","unresolved":false,"context_lines":[{"line_number":679,"context_line":"        \"\"\"Remove sg_member entries.\"\"\""},{"line_number":680,"context_line":"        ipv4_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv4)"},{"line_number":681,"context_line":"        ipv6_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv6)"},{"line_number":682,"context_line":"        for sg_id in (ipv4_sec_group_set \u0026 ipv6_sec_group_set):"},{"line_number":683,"context_line":"            if sg_id in self.sg_members:"},{"line_number":684,"context_line":"                del self.sg_members[sg_id]"},{"line_number":685,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa32b979_6c1c2b6a","line":682,"updated":"2015-06-18 16:00:22.000000000","message":"shoud we use \"or\" here?","commit_id":"c99cccd834be45b686502f052f95ff909cc6c1e0"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"2ee8a4fee4216508918bed5ec18478ce37237d75","unresolved":false,"context_lines":[{"line_number":679,"context_line":"        \"\"\"Remove sg_member entries.\"\"\""},{"line_number":680,"context_line":"        ipv4_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv4)"},{"line_number":681,"context_line":"        ipv6_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv6)"},{"line_number":682,"context_line":"        for sg_id in (ipv4_sec_group_set \u0026 ipv6_sec_group_set):"},{"line_number":683,"context_line":"            if sg_id in self.sg_members:"},{"line_number":684,"context_line":"                del self.sg_members[sg_id]"},{"line_number":685,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa32b979_4482d001","line":682,"updated":"2015-06-23 07:08:19.000000000","message":"yeah, if you look at the logic on the left, it\u0027s using \u0027or\u0027 because it\u0027s determining if it shouldn\u0027t proceed. We need to use \u0027and\u0027 because we are determining if we should proceed.","commit_id":"c99cccd834be45b686502f052f95ff909cc6c1e0"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"e3a4942b0f3123590d2f7c21950ae46b64cebc69","unresolved":false,"context_lines":[{"line_number":679,"context_line":"        \"\"\"Remove sg_member entries.\"\"\""},{"line_number":680,"context_line":"        ipv4_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv4)"},{"line_number":681,"context_line":"        ipv6_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv6)"},{"line_number":682,"context_line":"        for sg_id in (ipv4_sec_group_set \u0026 ipv6_sec_group_set):"},{"line_number":683,"context_line":"            if sg_id in self.sg_members:"},{"line_number":684,"context_line":"                del self.sg_members[sg_id]"},{"line_number":685,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa32b979_758bf51e","line":682,"in_reply_to":"fa32b979_06ddcf41","updated":"2015-06-23 11:54:08.000000000","message":"yes, I am sure!","commit_id":"c99cccd834be45b686502f052f95ff909cc6c1e0"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"e3a4942b0f3123590d2f7c21950ae46b64cebc69","unresolved":false,"context_lines":[{"line_number":679,"context_line":"        \"\"\"Remove sg_member entries.\"\"\""},{"line_number":680,"context_line":"        ipv4_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv4)"},{"line_number":681,"context_line":"        ipv6_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv6)"},{"line_number":682,"context_line":"        for sg_id in (ipv4_sec_group_set \u0026 ipv6_sec_group_set):"},{"line_number":683,"context_line":"            if sg_id in self.sg_members:"},{"line_number":684,"context_line":"                del self.sg_members[sg_id]"},{"line_number":685,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa32b979_b5717d46","line":682,"in_reply_to":"fa32b979_4482d001","updated":"2015-06-23 11:54:08.000000000","message":"thx for your explanation!","commit_id":"c99cccd834be45b686502f052f95ff909cc6c1e0"},{"author":{"_account_id":9459,"name":".Haifeng Yan","email":"yanheven@qq.com","username":"yan"},"change_message_id":"c1b538c9ae52c60077a09f18d0c6f3b4e4673af6","unresolved":false,"context_lines":[{"line_number":679,"context_line":"        \"\"\"Remove sg_member entries.\"\"\""},{"line_number":680,"context_line":"        ipv4_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv4)"},{"line_number":681,"context_line":"        ipv6_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv6)"},{"line_number":682,"context_line":"        for sg_id in (ipv4_sec_group_set \u0026 ipv6_sec_group_set):"},{"line_number":683,"context_line":"            if sg_id in self.sg_members:"},{"line_number":684,"context_line":"                del self.sg_members[sg_id]"},{"line_number":685,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa32b979_893dcb2c","line":682,"in_reply_to":"fa32b979_6c1c2b6a","updated":"2015-06-19 00:44:54.000000000","message":"what I mean is \"|\"","commit_id":"c99cccd834be45b686502f052f95ff909cc6c1e0"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d2242e87be28cca0f0887aa7b0946743da747eda","unresolved":false,"context_lines":[{"line_number":679,"context_line":"        \"\"\"Remove sg_member entries.\"\"\""},{"line_number":680,"context_line":"        ipv4_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv4)"},{"line_number":681,"context_line":"        ipv6_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv6)"},{"line_number":682,"context_line":"        for sg_id in (ipv4_sec_group_set \u0026 ipv6_sec_group_set):"},{"line_number":683,"context_line":"            if sg_id in self.sg_members:"},{"line_number":684,"context_line":"                del self.sg_members[sg_id]"},{"line_number":685,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa32b979_a650a3d5","line":682,"in_reply_to":"fa32b979_893dcb2c","updated":"2015-06-22 14:47:02.000000000","message":"I believe you\u0027re right!,","commit_id":"c99cccd834be45b686502f052f95ff909cc6c1e0"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"ea8407b811ac32ce364ba44e26ba2ca5c565b9a3","unresolved":false,"context_lines":[{"line_number":679,"context_line":"        \"\"\"Remove sg_member entries.\"\"\""},{"line_number":680,"context_line":"        ipv4_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv4)"},{"line_number":681,"context_line":"        ipv6_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv6)"},{"line_number":682,"context_line":"        for sg_id in (ipv4_sec_group_set \u0026 ipv6_sec_group_set):"},{"line_number":683,"context_line":"            if sg_id in self.sg_members:"},{"line_number":684,"context_line":"                del self.sg_members[sg_id]"},{"line_number":685,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa32b979_06ddcf41","line":682,"in_reply_to":"fa32b979_a650a3d5","updated":"2015-06-23 07:13:36.000000000","message":"(a comment I left in draft... :/ ) Or not, he removes only security groups where IPv4 and IPv6 makes it eligible for delete.\n\nShihanzhang, can you confirm? I believe that\u0027s the case. I will remove the -1 then.\n\n(confirmed by shihanzhang and kevin)","commit_id":"c99cccd834be45b686502f052f95ff909cc6c1e0"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"8f7ff282555b9c0387db33516e1df7a5748934cc","unresolved":false,"context_lines":[{"line_number":679,"context_line":"        \"\"\"Remove sg_member entries.\"\"\""},{"line_number":680,"context_line":"        ipv4_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv4)"},{"line_number":681,"context_line":"        ipv6_sec_group_set \u003d remote_sgs_to_remove.get(constants.IPv6)"},{"line_number":682,"context_line":"        for sg_id in (ipv4_sec_group_set \u0026 ipv6_sec_group_set):"},{"line_number":683,"context_line":"            if sg_id in self.sg_members:"},{"line_number":684,"context_line":"                del self.sg_members[sg_id]"},{"line_number":685,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa32b979_80ae8b96","line":682,"in_reply_to":"fa32b979_a650a3d5","updated":"2015-06-23 01:26:54.000000000","message":"if we want delete self.sg_members[sg_id], sg_id must be in ipv4_sec_group_set and ipv6_sec_group_set, for example, if self.sg_members[sg_id] \u003d {\u0027IPv4\u0027: [\u0027192.168.1.1\u0027], \u0027IPv6\u0027: []} , the self.sg_members[sg_id] should not be delted.","commit_id":"c99cccd834be45b686502f052f95ff909cc6c1e0"}]}
