Added examples and verify options in install guide

Change-Id: Idaa14d90c853a3455f35f7f6fd9e00d0f40844b7
Story: 2006807
Task: 37357
This commit is contained in:
jiaopengju 2019-11-03 20:56:16 +08:00
parent b62d96aaf3
commit 63fff4d679
2 changed files with 69 additions and 1 deletions

View File

@ -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" | |
| | | | } | |
| | | | ] | |
| | | | } | |
+--------------------------------------+----------------------------------+-----------+-----------------------------------------------------------+------------+

View File

@ -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 | - |
+----+------------------------+--------------+---------+-------+----------------------------+-----------------+