blob: a4784870401268410367616ead0045b1b0c2c2d0 [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
Clinton Knight7f16b8c2016-06-08 13:46:51 -070013# Shares
Yogeshbdb88102015-09-29 23:41:02 -040014STATUS_ERROR = 'error'
15STATUS_AVAILABLE = 'available'
16STATUS_ERROR_DELETING = 'error_deleting'
Yogeshbdb88102015-09-29 23:41:02 -040017TEMPEST_MANILA_PREFIX = 'tempest-manila'
Clinton Knight7f16b8c2016-06-08 13:46:51 -070018
19# Replication
Yogeshbdb88102015-09-29 23:41:02 -040020REPLICATION_STYLE_READABLE = 'readable'
21REPLICATION_STYLE_WRITABLE = 'writable'
22REPLICATION_STYLE_DR = 'dr'
23REPLICATION_TYPE_CHOICES = (
24 REPLICATION_STYLE_READABLE,
25 REPLICATION_STYLE_WRITABLE,
26 REPLICATION_STYLE_DR,
27)
28REPLICATION_PROMOTION_CHOICES = (
29 REPLICATION_STYLE_READABLE,
30 REPLICATION_STYLE_DR,
31)
32REPLICATION_STATE_ACTIVE = 'active'
33REPLICATION_STATE_IN_SYNC = 'in_sync'
34REPLICATION_STATE_OUT_OF_SYNC = 'out_of_sync'
35
Clinton Knight7f16b8c2016-06-08 13:46:51 -070036# Access Rules
Yogeshbdb88102015-09-29 23:41:02 -040037RULE_STATE_ACTIVE = 'active'
38RULE_STATE_OUT_OF_SYNC = 'out_of_sync'
39RULE_STATE_ERROR = 'error'
Rodrigo Barbieric9abf282016-08-24 22:01:31 -030040
41TASK_STATE_MIGRATION_STARTING = 'migration_starting'
42TASK_STATE_MIGRATION_IN_PROGRESS = 'migration_in_progress'
43TASK_STATE_MIGRATION_COMPLETING = 'migration_completing'
44TASK_STATE_MIGRATION_SUCCESS = 'migration_success'
45TASK_STATE_MIGRATION_ERROR = 'migration_error'
46TASK_STATE_MIGRATION_CANCELLED = 'migration_cancelled'
47TASK_STATE_MIGRATION_DRIVER_STARTING = 'migration_driver_starting'
48TASK_STATE_MIGRATION_DRIVER_IN_PROGRESS = 'migration_driver_in_progress'
49TASK_STATE_MIGRATION_DRIVER_PHASE1_DONE = 'migration_driver_phase1_done'
50TASK_STATE_DATA_COPYING_STARTING = 'data_copying_starting'
51TASK_STATE_DATA_COPYING_IN_PROGRESS = 'data_copying_in_progress'
52TASK_STATE_DATA_COPYING_COMPLETING = 'data_copying_completing'
53TASK_STATE_DATA_COPYING_COMPLETED = 'data_copying_completed'
54TASK_STATE_DATA_COPYING_CANCELLED = 'data_copying_cancelled'
55TASK_STATE_DATA_COPYING_ERROR = 'data_copying_error'
Clinton Knight7f16b8c2016-06-08 13:46:51 -070056
57# Revert to snapshot
58REVERT_TO_SNAPSHOT_MICROVERSION = '2.27'
59REVERT_TO_SNAPSHOT_SUPPORT = 'revert_to_snapshot_support'
60STATUS_RESTORING = 'restoring'
61STATUS_REVERTING = 'reverting'
62STATUS_REVERTING_ERROR = 'reverting_error'