providing groups do not occur when getting/(listing) ruleset(s)

Bug #1730597 reported by QingchuanHao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Group Based Policy
New
Undecided
QingchuanHao

Bug Description

when I try to get providing groups from rule set, I find there is no providing groups entry in the shell output, so did api requests.

[root@controller1 neutron]# gbp prs-show 5d02f184-5b11-412f-9e21-0f268d790884
+--------------------------------+--------------------------------------+
| Field | Value |
+--------------------------------+--------------------------------------+
| child_policy_rule_sets | |
| consuming_external_policies | |
| consuming_policy_target_groups | 2f67eb45-476d-43a7-b564-8aab3f597a76 |
| description | |
| id | 5d02f184-5b11-412f-9e21-0f268d790884 |
| name | abc |
| parent_id | |
| policy_rules | 5627ce98-ad45-4027-a097-1197974ce789 |
| project_id | 0d20a1743c0c40069d29250352caea88 |
| shared | False |
| status | |
| status_details | |
| tenant_id | 0d20a1743c0c40069d29250352caea88 |
+--------------------------------+--------------------------------------+

Debug info:

DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://controller:9696/v2.0/grouppolicy/policy_rule_sets/5d02f184-5b11-412f-9e21-0f268d790884.json -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}588a93ddd71ab029a967a21069e5becd81d4f6e4"
DEBUG: keystoneclient.session RESP: [200] Content-Type: application/json Content-Length: 475 X-Openstack-Request-Id: req-518d5044-836f-476b-a85a-d29859871a5a Date: Tue, 07 Nov 2017 07:25:51 GMT Connection: keep-alive
RESP BODY: {"policy_rule_set": {"status": null, "consuming_external_policies": [], "description": "", "tenant_id": "0d20a1743c0c40069d29250352caea88", "consuming_policy_target_groups": ["2f67eb45-476d-43a7-b564-8aab3f597a76"], "policy_rules": ["5627ce98-ad45-4027-a097-1197974ce789"], "parent_id": null, "shared": false, "status_details": null, "project_id": "0d20a1743c0c40069d29250352caea88", "id": "5d02f184-5b11-412f-9e21-0f268d790884", "child_policy_rule_sets": [], "name": "abc"}}

Revision history for this message
QingchuanHao (haoqingchuan-28) wrote :

I did not find any comment or document that tell me providing groups should be escaped from rule set.

Changed in group-based-policy:
assignee: nobody → QingchuanHao (haoqingchuan-28)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to group-based-policy (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/518269

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to group-based-policy (master)

Reviewed: https://review.openstack.org/518269
Committed: https://git.openstack.org/cgit/openstack/group-based-policy/commit/?id=b3a5b46df9d3fd1773c2783193798975063e8480
Submitter: Zuul
Branch: master

commit b3a5b46df9d3fd1773c2783193798975063e8480
Author: QingchuanHao <email address hidden>
Date: Tue Nov 7 15:17:52 2017 +0800

    Add providing groups attribute of rule set in resource map

    When we list/get rule set, no providing groups occur,
    as a result of providing group attribute missing in rule set.

    This patch fix this by adding providing group attribute in rule set.

    Related-Bug: #1730597
    Change-Id: I34bb9499dff769ec5ba7852deb595fa791a5013f

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.