Configuring reservations > Configuring the Create Reservation form

6.1 Configuring the Create Reservation form

You can customize the user interface and Create Reservation logic by configuring the Create Reservation form:

Building the Create Reservation form is similar to building all other Viewpoint forms, all sharing the common requirement of modification to the <pages>, <components>, and <queue> elements.

To configure the create reservation form

  1. Open the reservations.xml file located in the Viewpoint home directory. Locate the <request> element.
  2. Specify a host list, a task definition, or both.
  3. Viewpoint can only modify reservations where either the host list is specified or a task definition has been set, but not both. An administrator can modify the reservations.xml configuration to use both types of resource definitions, but keep in mind that reservations created this way cannot be modified later. For this reason it is recommended to only allow for specifying the host list or specifying a task definition, as set up in the default configuration.

    1. Specify a task definition by setting any of the following fields to a non-zero value:
    2. Specify a host list by setting the host-list attribute to a list of nodes that should make up the host list. See the Moab Workload Manager documentation on the mrsvctl command for more details.
    3. Viewpoint only supports a list of nodes, not a regular expression. Thus, use a component that contains a list of strings, or use the string-to-list operation decider. See Listing string deciders.

  4. Set any of the following fields. Each one corresponds to an attribute of the Moab mrsvctl command. See the Moab Workload Manager documentation for more information.
  5. Any of these fields can be set, regardless of the resources requested.

    Element Description

    <acl>

    This field corresponds to the access control list (ACL) attribute. The ACL can only be set using an acl-editor component. This component is specifically designed to modify and create the access control list.
    <description> The user-specified description or purpose of the reservation. Accepts any string value decider.
    <end-time> The reservation's end time. Accepts any date value decider. See Moab documentation for more details.
    <exclusive> States if the reservation should be exclusive. Accepts any boolean value decider.
    <group> The name of the reservation group. Accepts any string value decider.
    <name> The name of the reservation. Accepts any string value decider.
    <node-features> A list of node features. Accepts any string list value decider.
    <owner> The name of the reservation's owner. This user must already exist in Moab. Accepts any string value decider.
    <partition> The name of a partition. Accepts any string value decider.
    <profile> The name of the reservation profile to load. Accepts any string value decider.
    <start-time> The reservation's start time. Accepts any date value decider.
    <subtype> A node category as defined here. Accepts any string value decider.
    <variables>

    A collection of variables to be set on the reservation. This can have one or more <variable> child elements. Each child <variable> element has the following three parts:

    • <key> (required) – The name of the variable and accepts any string decider.
    • <value> (required) – The value of the variable and accepts any string decider.
    • <rule> (optional) – Accepts any boolean decider. If this is specified, Viewpoint includes the variable only if the rule evaluates to true.

Related topics