GBP: Updating 'shared' flag does not throw CLI error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Group Based Policy Client |
Fix Released
|
Medium
|
Sumit Naiksatam |
Bug Description
Using the GBP CLI:
1. Create Policy-classifier with shared=True
2. Create a Policy-rule using the above classifier and shared=True
3.Now update the classifier by setting shared=False.
Observation: CLI does NOT throw any error however the UI does.
Also, in the CLI show cmd of the policy-classifier it shows that 'shared' flag with its updated value(the one which was set during the initial creation of the classifier object)
----------
test@ubuntu-
Created a new policy_classifier:
+------
| Field | Value |
+------
| description | |
| direction | |
| id | 3286914a-
| name | C1 |
| port_range | |
| protocol | |
| shared | True |
| tenant_id | 1a65e85d214e426
+------
test@ubuntu-
test@ubuntu-
test@ubuntu-
Created a new policy_rule:
+------
| Field | Value |
+------
| description | |
| enabled | True |
| id | eae4e4e6-
| name | R1 |
| policy_actions | |
| policy_
| shared | True |
| tenant_id | 1a65e85d214e426
+------
test@ubuntu-
test@ubuntu-
test@ubuntu-
Updated policy_classifier: C1 <<<<<<<
test@ubuntu-
description: | updated |
Changed in group-based-policy-client: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → next |
Changed in group-based-policy-client: | |
assignee: | nobody → Sumit Naiksatam (snaiksat) |
Changed in group-based-policy-client: | |
milestone: | next → 1.0.0 |
Changed in group-based-policy-client: | |
status: | Confirmed → Fix Committed |
status: | Fix Committed → Fix Released |
Fixed by: https:/ /review. openstack. org/#/c/ 246081