GBP: Resource intergrity fails between policy-rule-set & external-policy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Group Based Policy |
Fix Released
|
High
|
Magesh GV |
Bug Description
If a policy-rule-set is created and in turn consumed/provided by an External-Policy, then we allow the deletion of the in-use Policy-Rule-Sets.
Expectation: The deletion of the in-use Policy-Rule-Set should fail
Please find the sequence of execution below:
[root@f3-controller ~(keystone_admin)]#
[root@f3-controller ~(keystone_admin)]# gbp external-
+------
| Field | Value |
+------
| consumed_
| description | |
| external_segments | d1bc7d4b-
| id | 50f14746-
| name | ext-pol-1 |
| provided_
| shared | False |
| tenant_id | 4c4227827cce441
+------
[root@f3-controller ~(keystone_admin)]#
[root@f3-controller ~(keystone_admin)]# gbp policy-
Deleted policy_rule_set: 576645f2-
[root@f3-controller ~(keystone_admin)]#
[root@f3-controller ~(keystone_admin)]#
[root@f3-controller ~(keystone_admin)]# vim /var/log/
[root@f3-controller ~(keystone_admin)]# gbp external-
+------
| Field | Value |
+------
| consumed_
| description | |
| external_segments | d1bc7d4b-
| id | 50f14746-
| name | ext-pol-1 |
| provided_
| shared | False |
| tenant_id | 4c4227827cce441
+------
[root@f3-controller ~(keystone_admin)]#
Changed in group-based-policy: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → liberty-1 |
Changed in group-based-policy: | |
assignee: | nobody → Magesh GV (magesh-gv) |
Changed in group-based-policy: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/244668
Review: https:/