<div dir="auto">Thanks for your help. It works on my side after changing the policy.<div dir="auto"><br></div><div dir="auto">Best</div><div dir="auto">James</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 18 Apr 2023, 3:02 am Pierre Riteau, <<a href="mailto:pierre@stackhpc.com">pierre@stackhpc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi James,</div><div><br></div><div>This is documented in the blazar-dashboard docs at <a href="https://docs.openstack.org/blazar-dashboard/latest/calendar.html" target="_blank" rel="noreferrer">https://docs.openstack.org/blazar-dashboard/latest/calendar.html</a>:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>In order to be able to view the calendar, a user needs permission for blazar:oshosts:get and blazar:oshosts:get_allocations.</div></blockquote><div><br></div>You need to customise the Blazar policy.yaml file to allow these calls for any member. It would look like this:<div><br></div><div>/etc/kolla/config/blazar/policy.yaml:</div><div><br># Policies required to access the host reservation calendar<br>"blazar:oshosts:get": ""<br>"blazar:oshosts:get_allocations": ""<br><div><br></div><div>Best wishes,</div><div>Pierre Riteau (priteau)</div><div><br></div><div>PS: You should have used [blazar] as a tag, I only found your message by accident.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 13 Mar 2023 at 04:40, James Leong <<a href="mailto:jamesleong123098@gmail.com" target="_blank" rel="noreferrer">jamesleong123098@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<br>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.<br><br>"blazarclient.exception.BlazarClientException: ERROR: Policy doesn't allow blazar:oshosts:get to be performed."<br><br>Is there a way to allow the policy?<br><br>Thanks for your help.<br>James</div>
</blockquote></div></div></div>
</blockquote></div>