[Horizon]: allow user to access calendar on horizon
James Leong
jamesleong123098 at gmail.com
Tue Apr 18 13:38:32 UTC 2023
Thanks for your help. It works on my side after changing the policy.
Best
James
On Tue, 18 Apr 2023, 3:02 am Pierre Riteau, <pierre at stackhpc.com> wrote:
> Hi James,
>
> This is documented in the blazar-dashboard docs at
> https://docs.openstack.org/blazar-dashboard/latest/calendar.html:
>
> In order to be able to view the calendar, a user needs permission for
> blazar:oshosts:get and blazar:oshosts:get_allocations.
>
>
> You need to customise the Blazar policy.yaml file to allow these calls for
> any member. It would look like this:
>
> /etc/kolla/config/blazar/policy.yaml:
>
> # Policies required to access the host reservation calendar
> "blazar:oshosts:get": ""
> "blazar:oshosts:get_allocations": ""
>
> Best wishes,
> Pierre Riteau (priteau)
>
> PS: You should have used [blazar] as a tag, I only found your message by
> accident.
>
> On Mon, 13 Mar 2023 at 04:40, James Leong <jamesleong123098 at gmail.com>
> wrote:
>
>> Hi all,
>> I am using kolla-ansible for OpenStack deployment in the yoga version. Is
>> it possible to allow the user (member role) to view the calendar graph
>> under the reservation tab (lease)? Currently, only the admin will be able
>> to view the calendar graph with all the reserved leases. However, a user
>> with other roles cannot load the calendar information. On the dashboard, I
>> saw it displayed " Unable to load reservations." When I look into the log
>> file, I get the below error message.
>>
>> "blazarclient.exception.BlazarClientException: ERROR: Policy doesn't
>> allow blazar:oshosts:get to be performed."
>>
>> Is there a way to allow the policy?
>>
>> Thanks for your help.
>> James
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230418/ea5ea872/attachment-0001.htm>
More information about the openstack-discuss
mailing list