Reservation Command¶
Warning
This command is experimental and is not yet fully integrated. It only stores reservations, but does not act upon them.
One of the features of cloudmesh is to build a mesh of resources and services. In some cases we which to reserve resources that allow reservations. However we also may want to use a resource till a particular time frame and release it. For this cases it is practical to provide the concept of a reservation. A simple reservation is named and contains a start and end point. We currently store named virtual machines into a reservation for named clouds. Reservations are similar to groups just that they have a time frame associated with them. A timeless reservation is like a group.
The manual page of the reservation command can be found at: reservation
Adding a reservation¶
Please note that you have to escape the whitespaces with ‘' for commmand line arguments such as ‘–start’, ‘–end’. :
reservation add --name=test3 --start='10/31/1988\ at\ 8:09\ pm' --end='10/21/2015\ at\ 9:00\ pm' --user=albert --project=cloudmesh --hosts=host001
--description=
desc
Reservation test3 added successfully
info. OK.
List Reservation¶
reservation list
+----+-------+-----------------+-----------------+--------+-----------+---------+-------------+-------+
| id | name | start_time | end_time | user | project | hosts | description | cloud |
+----+-------+-----------------+-----------------+--------+-----------+---------+-------------+-------+
| 1 | test3 | 10-31-1988 20:9 | 10-21-2015 21:0 | albert | cloudmesh | host001 | desc | comet |
+----+-------+-----------------+-----------------+--------+-----------+---------+-------------+-------+
Update Reservation¶
Please note that you have to escape the whitespaces with ‘' for command line arguments such as ‘–start’, ‘–end’.
reservation update --name=test3 --project=cloudnauts
Reservation test3 updated successfully
info. OK.
Verify by listing:
.. prompt:: bash, cm>
reservation list
+----+-------+----------------+----------------+--------+------------+---------+-------------+-------+
| id | name | start_time | end_time | user | project | hosts | description | cloud |
+----+-------+----------------+----------------+--------+------------+---------+-------------+-------+
| 1 | test3 | 1-1-1901 19:30 | 12-31-2021 0:0 | albert | cloudnauts | host001 | desc | comet |
+----+-------+----------------+----------------+--------+------------+---------+-------------+-------+
Delete Reservation¶
reservation delete --name=test3
info. OK.
Verify by listing
reservation list
None
info. OK.