Fix missing parentid on rule delete journal record
This fixes an error raised when deleting a security group if there are
pending rules to be deleted of that group as records in the journal
that were not triggered by the group deletion operation itself so that
they did not have the parent security group id as data of the record.
This happens when the rule and the group are deleted independently but
in rapid succession. It does not happen when the rules are deleted as a
consequence of deleting the group since the parentid is correctly set
in that case, neither when the group is deleted some time after the
rules when their records might have already been processed and removed.
Reviewed: https:/ /review. openstack. org/536935 /git.openstack. org/cgit/ openstack/ networking- odl/commit/ ?id=2c15a7926df d24ee363a15c53a c44dedfae7e0ce
Committed: https:/
Submitter: Zuul
Branch: master
commit 2c15a7926dfd24e e363a15c53ac44d edfae7e0ce
Author: Jaime Caamaño Ruiz <email address hidden>
Date: Tue Jan 23 19:44:12 2018 +0100
Fix missing parentid on rule delete journal record
This fixes an error raised when deleting a security group if there are
pending rules to be deleted of that group as records in the journal
that were not triggered by the group deletion operation itself so that
they did not have the parent security group id as data of the record.
This happens when the rule and the group are deleted independently but
in rapid succession. It does not happen when the rules are deleted as a
consequence of deleting the group since the parentid is correctly set
in that case, neither when the group is deleted some time after the
rules when their records might have already been processed and removed.
This problem was encountered in OPNFV functest environment but may also /jira.opendayli ght.org/ browse/ NETVIRT- 896 and complement
fix https:/
change #533706.
Change-Id: I5ccdbdea9d8033 34c8ae9416b40e3 c4b48a8144b
Closes-Bug: 1744966
Signed-off-by: Jaime Caamaño Ruiz <email address hidden>