blob: abef1814977690c250851240352ed0d53f9c2fe3 [file] [log] [blame]
Yogeshbdb88102015-09-29 23:41:02 -04001# Licensed under the Apache License, Version 2.0 (the "License"); you may
2# not use this file except in compliance with the License. You may obtain
3# a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10# License for the specific language governing permissions and limitations
11# under the License.
12
13STATUS_ERROR = 'error'
14STATUS_AVAILABLE = 'available'
15STATUS_ERROR_DELETING = 'error_deleting'
16
17TEMPEST_MANILA_PREFIX = 'tempest-manila'
18REPLICATION_STYLE_READABLE = 'readable'
19REPLICATION_STYLE_WRITABLE = 'writable'
20REPLICATION_STYLE_DR = 'dr'
21REPLICATION_TYPE_CHOICES = (
22 REPLICATION_STYLE_READABLE,
23 REPLICATION_STYLE_WRITABLE,
24 REPLICATION_STYLE_DR,
25)
26REPLICATION_PROMOTION_CHOICES = (
27 REPLICATION_STYLE_READABLE,
28 REPLICATION_STYLE_DR,
29)
30REPLICATION_STATE_ACTIVE = 'active'
31REPLICATION_STATE_IN_SYNC = 'in_sync'
32REPLICATION_STATE_OUT_OF_SYNC = 'out_of_sync'
33
34RULE_STATE_ACTIVE = 'active'
35RULE_STATE_OUT_OF_SYNC = 'out_of_sync'
36RULE_STATE_ERROR = 'error'
Rodrigo Barbieric9abf282016-08-24 22:01:31 -030037
38TASK_STATE_MIGRATION_STARTING = 'migration_starting'
39TASK_STATE_MIGRATION_IN_PROGRESS = 'migration_in_progress'
40TASK_STATE_MIGRATION_COMPLETING = 'migration_completing'
41TASK_STATE_MIGRATION_SUCCESS = 'migration_success'
42TASK_STATE_MIGRATION_ERROR = 'migration_error'
43TASK_STATE_MIGRATION_CANCELLED = 'migration_cancelled'
44TASK_STATE_MIGRATION_DRIVER_STARTING = 'migration_driver_starting'
45TASK_STATE_MIGRATION_DRIVER_IN_PROGRESS = 'migration_driver_in_progress'
46TASK_STATE_MIGRATION_DRIVER_PHASE1_DONE = 'migration_driver_phase1_done'
47TASK_STATE_DATA_COPYING_STARTING = 'data_copying_starting'
48TASK_STATE_DATA_COPYING_IN_PROGRESS = 'data_copying_in_progress'
49TASK_STATE_DATA_COPYING_COMPLETING = 'data_copying_completing'
50TASK_STATE_DATA_COPYING_COMPLETED = 'data_copying_completed'
51TASK_STATE_DATA_COPYING_CANCELLED = 'data_copying_cancelled'
52TASK_STATE_DATA_COPYING_ERROR = 'data_copying_error'