policy does not allow to see consistencygroup, but horizon has consistencygroup tab by default

Bug #1684113 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Cinder Charm
Triaged
Wishlist
Unassigned
OpenStack Dashboard Charm
Fix Released
Medium
Tiago Pasqualini da Silva

Bug Description

With Mitaka. When opening "Volume consistency groups" with the following URL in dashboard, it gives an error as "Error: Unable to retrieve volume consistency groups."
http://<dashboard_vip>/project/volumes/?tab=volumes_and_snapshots__cgroups_tab

/var/log/apache2/error.log
[Wed Apr 19 12:45:56.936280 2017] [wsgi:error] [pid 48241:tid 140295558567680] Recoverable error: Policy doesn't allow consistencygroup:get_all to be performed. (HTTP 403) (Request-ID: req-2eaacdc2-25c6-43ce-b4de-f0fafcac3ceb)

According to the /etc/cinder/policy.json, no one allows to see consistencygroup. It would be nice if the charm allows to modify policy.json to enable the "volume consistency groups" feature: https://docs.openstack.org/admin-guide/blockstorage-consistency-groups.html

    "consistencygroup:create" : "group:nobody",
    "consistencygroup:delete": "group:nobody",
    "consistencygroup:update": "group:nobody",
    "consistencygroup:get": "group:nobody",
    "consistencygroup:get_all": "group:nobody",

    "consistencygroup:create_cgsnapshot" : "group:nobody",
    "consistencygroup:delete_cgsnapshot": "group:nobody",
    "consistencygroup:get_cgsnapshot": "group:nobody",
    "consistencygroup:get_all_cgsnapshots": "group:nobody",

Revision history for this message
James Page (james-page) wrote :

Rather than add yet-another-config-toggle to the openstack dashboard charm, I'd prefer to deal with this via the service-discovery spec we have in-flight for the queens development cycle; cinder can use this feature to expose whether consistency-groups are supported to any service in the cloud, including the dashboard, which can then enable/disable features accordingly.

tags: added: service-discovery
Changed in charm-cinder:
status: New → Triaged
importance: Undecided → Low
milestone: none → 18.02
Changed in charm-openstack-dashboard:
status: New → Triaged
importance: Undecided → Medium
Changed in charm-cinder:
importance: Low → Wishlist
Revision history for this message
James Page (james-page) wrote :

Triaging cinder task as 'wishlist' as enabling consistency group support for cinder is a new feature; Triaging openstack-dashboard task as 'Medium' as we really should conditionally enable/disable this part of the dashboard.

Changed in charm-openstack-dashboard:
milestone: none → 18.02
Ryan Beisner (1chb1n)
Changed in charm-cinder:
milestone: 18.02 → 18.05
Changed in charm-openstack-dashboard:
milestone: 18.02 → 18.05
David Ames (thedac)
Changed in charm-openstack-dashboard:
milestone: 18.05 → 18.08
James Page (james-page)
Changed in charm-cinder:
milestone: 18.05 → 18.08
James Page (james-page)
Changed in charm-openstack-dashboard:
milestone: 18.08 → 18.11
James Page (james-page)
Changed in charm-cinder:
milestone: 18.08 → 18.11
David Ames (thedac)
Changed in charm-openstack-dashboard:
milestone: 18.11 → 19.04
James Page (james-page)
Changed in charm-cinder:
milestone: 18.11 → 19.04
Revision history for this message
Edward Hope-Morley (hopem) wrote :

Openstack dashboard charm patch - https://review.openstack.org/#/c/644419

Changed in charm-openstack-dashboard:
status: Triaged → In Progress
assignee: nobody → Tiago Pasqualini da Silva (tiago.pasqualini)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-openstack-dashboard (master)

Reviewed: https://review.openstack.org/644419
Committed: https://git.openstack.org/cgit/openstack/charm-openstack-dashboard/commit/?id=ca21ac81164a7a1d371111f501a6a0c79c637f67
Submitter: Zuul
Branch: master

commit ca21ac81164a7a1d371111f501a6a0c79c637f67
Author: tpsilva <email address hidden>
Date: Mon Mar 18 17:10:47 2019 -0300

    Add option to hide/show consistency groups tab

    Cinder by default does not enable Consistency Groups, but Horizon always
    show its tabs and there is not an option to hide them. This patch adds a
    config option to change the policy file to hide or show those tabs.

    Change-Id: Ia2fb52650201524acbb8d6aafe37e7c0ea26e99e
    Closes-bug: #1684113

Changed in charm-openstack-dashboard:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-openstack-dashboard (stable/18.11)

Fix proposed to branch: stable/18.11
Review: https://review.openstack.org/648233

David Ames (thedac)
Changed in charm-openstack-dashboard:
status: Fix Committed → Fix Released
David Ames (thedac)
Changed in charm-cinder:
milestone: 19.04 → 19.07
David Ames (thedac)
Changed in charm-cinder:
milestone: 19.07 → 19.10
David Ames (thedac)
Changed in charm-cinder:
milestone: 19.10 → 20.01
James Page (james-page)
Changed in charm-cinder:
milestone: 20.01 → 20.05
David Ames (thedac)
Changed in charm-cinder:
milestone: 20.05 → 20.08
James Page (james-page)
Changed in charm-cinder:
milestone: 20.08 → none
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.