diff --git a/doc/source/install/launch-instance.rst b/doc/source/install/launch-instance.rst index 186d58fa..73080135 100644 --- a/doc/source/install/launch-instance.rst +++ b/doc/source/install/launch-instance.rst @@ -181,8 +181,68 @@ Create a checkpoint for some resource. For example, for volume: | status | success | +------------------+----------------------------------------------------------------------------+ -#. Delete the checkpoint. +#. Delete the checkpoint: .. code-block:: console $ karbor checkpoint-delete cf56bd3e-97a7-4078-b6d5-f36246333fd9 c1112037-b19c-421a-83c9-dd209e785189 + +#. Create a trigger: + + .. code-block:: console + + $ karbor trigger-create 'trigger-every-5-minutes' 'time' "pattern"="BEGIN:VEVENT\nRRULE:FREQ=MINUTELY;INTERVAL=5;\nEND:VEVENT","format"="calendar" + +------------+------------------------------------------------------------------------------+ + | Property | Value | + +------------+------------------------------------------------------------------------------+ + | id | b065836f-6485-429d-b12c-e04395c5f58e | + | name | My Trigger | + | properties | { | + | | "format": "calendar", | + | | "pattern": "BEGIN:VEVENT\\nRRULE:FREQ=MINUTELY;INTERVAL=5;\\nEND:VEVENT", | + | | "start_time": "2017-03-02 22:56:42" | + | | } | + | type | time | + +------------+------------------------------------------------------------------------------+ + +#. Create a scheduled operation: + + .. code-block:: console + + $ karbor scheduledoperation-create 'Protect with My Trigger' protect b065836f-6485-429d-b12c-e04395c5f58e "plan_id"="81ac01b7-0a69-4b0b-8ef5-bd46a900c90a","provider_id"="cf56bd3e-97a7-4078-b6d5-f36246333fd9" + +----------------------+---------------------------------------------------------+ + | Property | Value | + +----------------------+---------------------------------------------------------+ + | description | None | + | enabled | True | + | id | 2ebcf7cc-d8fe-4a70-af71-8a13f20556fb | + | name | PMT | + | operation_definition | { | + | | "plan_id": "ca572b42-6d35-4d81-bb4e-c9b100a3387a", | + | | "provider_id": "cf56bd3e-97a7-4078-b6d5-f36246333fd9" | + | | } | + | operation_type | protect | + | trigger_id | b065836f-6485-429d-b12c-e04395c5f58e | + +----------------------+---------------------------------------------------------+ + +#. After a short time, verify the scheduled operation already effective: + + .. code-block:: console + + $ karbor checkpoint-list cf56bd3e-97a7-4078-b6d5-f36246333fd9 --plan_id 81ac01b7-0a69-4b0b-8ef5-bd46a900c90a + +--------------------------------------+----------------------------------+-----------+-----------------------------------------------------------+------------+ + | Id | Project id | Status | Protection plan | Created at | + +--------------------------------------+----------------------------------+-----------+-----------------------------------------------------------+------------+ + | 92e74f0c-8519-4928-9bd5-0039e0fe92b0 | 690ccee85834425e973258252e0da888 | available | { | 2017-03-03 | + | | | | "id": "ca572b42-6d35-4d81-bb4e-c9b100a3387a", | | + | | | | "name": "Plan1", | | + | | | | "provider_id": "cf56bd3e-97a7-4078-b6d5-f36246333fd9", | | + | | | | "resources": [ | | + | | | | { | | + | | | | "id": "286a43e9-3899-4983-965f-d8b1faef5e58", | | + | | | | "name": "Volume1", | | + | | | | "type": "OS::Cinder::Volume" | | + | | | | } | | + | | | | ] | | + | | | | } | | + +--------------------------------------+----------------------------------+-----------+-----------------------------------------------------------+------------+ diff --git a/doc/source/install/verify.rst b/doc/source/install/verify.rst index 0cb1099b..6a052236 100644 --- a/doc/source/install/verify.rst +++ b/doc/source/install/verify.rst @@ -33,3 +33,11 @@ Verify operation of the Data Protection service. | name | karbor | | type | data-protect | +-------------+-------------------------------------+ + + $ karbor service-list + +----+------------------------+--------------+---------+-------+----------------------------+-----------------+ + | Id | Binary | Host | Status | State | Updated_at | Disabled Reason | + +----+------------------------+--------------+---------+-------+----------------------------+-----------------+ + | 2 | karbor-operationengine | controller | enabled | up | 2019-11-03T12:42:28.000000 | - | + | 3 | karbor-protection | controller | enabled | up | 2019-11-03T12:42:28.000000 | - | + +----+------------------------+--------------+---------+-------+----------------------------+-----------------+