You shouldn't need to do this manually, as Doni will manage this for you.
If you need to, the command is
openstack reservation host create
Devices
openstack reservation device create
Disabling Resources
Hosts
To Disable Resources for Maintenance - Run the following command to disable a host for maintenance. This will make the resource unreservable for users while allowing administrators to create leases. The healing monitor does not flip the 'reservable' for hosts when the host is flagged as disabled.
On disabling a host, it is also set as unreservable. For example, running openstack reservation host list should show the disabled host with disabled set to True:
This creates an entry in Blazar, allowing a user to reserve a vlan on a physical network. When their lease starts, a neutron network will be created using that vlan and physnet.
Make sure that the segment ID + physnets you add here are outside the range of ad-hoc vlans defined for neutron (in your defaults.yml file). Otherwise, Blazar's reservable vlans and neutron's ad-hoc ones may conflict.
Usage:
openstack reservation network create \
--network-type <NETWORK_TYPE> \
--physical-network <PHYSICAL_NETWORK> \
--segment <SEGMENT_ID> \
--extra <key>=<value>
options:
--network-type NETWORK_TYPE
Type of physical mechanism associated with the network segment. For example: flat, geneve, gre, local, vlan, vxlan.
--physical-network PHYSICAL_NETWORK
Name of the physical network in which the network segment is available, required for VLAN networks
--segment SEGMENT_ID
VLAN ID for VLAN networks or Tunnel ID for GENEVE/GRE/VXLAN networks
--extra <key>=<value>
Extra capabilities key/value pairs to add for the network