From 96b3921d7780c5f0a40a4b84152e98efbc66e0fe Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Fri, 28 Jan 2022 11:53:03 -0600 Subject: [PATCH] Add documentation for configuring availability calendar This adds documentation explaining how to enable, configure the calendar attribute, and what permissions are needed to use the calendar. Change-Id: I80026407ab537b7967ccbd2965d66f40018c4c0e --- doc/source/calendar.rst | 30 ++++++++++++++++++++++++++++++ doc/source/index.rst | 7 +++++++ 2 files changed, 37 insertions(+) create mode 100644 doc/source/calendar.rst diff --git a/doc/source/calendar.rst b/doc/source/calendar.rst new file mode 100644 index 0000000..77f80c1 --- /dev/null +++ b/doc/source/calendar.rst @@ -0,0 +1,30 @@ +============================== +Resource Availability Calendar +============================== + +Blazar Dashboard features a resource availability calendar that displays a +timeline of resources, showing when each resource is reserved. + +Currently, physical hosts are the only supported resource type. + +Configuration +============= +In the Horizon settings, the option ``OPENSTACK_BLAZAR_HOST_RESERVATION`` can +be configured. + +.. sourcecode:: + + OPENSTACK_BLAZAR_HOST_RESERVATION = { + 'enabled': True, + 'calendar_attribute': 'hypervisor_hostname', + } + +.. + +If ``enabled`` is ``True``, the host calendar will be enabled. The option +``calendar_attribute`` is used to label each row of the calendar. By default, +it uses the ``hypervisor_hostname`` attribute of a host. If the host has +resource properties set, they could also be used. + +In order to be able to view the calendar, a user needs permission for +``blazar:oshosts:get`` and ``blazar:oshosts:get_allocations``. diff --git a/doc/source/index.rst b/doc/source/index.rst index 8a1a918..59168f2 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -29,6 +29,13 @@ The following features are currently supported: * Update a host * Delete host(s) + +.. toctree:: + :maxdepth: 2 + + calendar + + Installation Guide ==================