GBP: Using GBP CLI, update of shared flag for classifier fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Group Based Policy Client |
Fix Released
|
Medium
|
Sumit Naiksatam |
Bug Description
Using GBP CLI:
1. Create a Policy Classifier with shared=True
2. Create a Policy Rule using the above classifier and shared=True
3. Update of Policy Classifier shared=False does NOT take into effect, although CLI does not give any error(separate bug for this)
4. Delete of Policy Rule
5. Repeat Step 3. In case of CLI it does NOT take into effect, however incase of UI the update goes through succuessfully
===================
[root@f3-controller ~(keystone_admin)]# gbp policy-
+------
| Field | Value |
+------
| description | |
| direction | in |
| id | ed299dde-
| name | C1 |
| port_range | |
| protocol | tcp |
| shared | True |
| tenant_id | 8a594bae332d405
+------
[root@f3-controller ~(keystone_admin)]#
[root@f3-controller ~(keystone_admin)]# gbp policy-action-show Act
+------
| Field | Value |
+------
| action_type | allow |
| action_value | |
| description | |
| id | a6032f07-
| name | Act |
| shared | True |
| tenant_id | 8a594bae332d405
+------
[root@f3-controller ~(keystone_admin)]#
[root@f3-controller ~(keystone_admin)]# gbp policy-rule-create R1 --classifier C1 --action Act --shared=True
+------
| Field | Value |
+------
| description | |
| enabled | True |
| id | ad358524-
| name | R1 |
| policy_actions | a6032f07-
| policy_
| shared | True |
| tenant_id | 8a594bae332d405
+------
[root@f3-controller ~(keystone_admin)]#
[root@f3-controller ~(keystone_admin)]# gbp policy-rule-delete R1
Deleted policy_rule: R1
[root@f3-controller ~(keystone_admin)]#
[root@f3-controller ~(keystone_admin)]# gbp policy-
Updated policy_classifier: C1
[root@f3-controller ~(keystone_admin)]#
[root@f3-controller ~(keystone_admin)]#
[root@f3-controller ~(keystone_admin)]# gbp policy-
+------
| Field | Value |
+------
| description | |
| direction | in |
| id | ed299dde-
| name | C1 |
| port_range | |
| protocol | tcp |
| shared | True | <<<<<<<<<<<<<<<< Still shows True
| tenant_id | 8a594bae332d405
+------
[root@f3-controller ~(keystone_admin)]#
Changed in group-based-policy-client: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → next |
Changed in group-based-policy-client: | |
status: | Confirmed → Fix Committed |
status: | Fix Committed → Fix Released |
This issue affects the CLI for all resources, not just the policy classifier.