Skip to content

Commit 09dcfcf

Browse files
authored
Backport Unity driver from Ocata (#3)
1 parent 4fec9be commit 09dcfcf

16 files changed

Lines changed: 3445 additions & 4145 deletions

File tree

README.md

Lines changed: 304 additions & 139 deletions
Large diffs are not rendered by default.

cinder/tests/unit/volume/drivers/dell_emc/__init__.py

Whitespace-only changes.

cinder/tests/unit/volume/drivers/dell_emc/unity/__init__.py

Whitespace-only changes.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Copyright (c) 2016 Dell Inc. or its subsidiaries.
2+
# All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
5+
# not use this file except in compliance with the License. You may obtain
6+
# a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
# License for the specific language governing permissions and limitations
14+
# under the License.
15+
16+
17+
class StoropsException(Exception):
18+
message = 'Storops Error.'
19+
20+
21+
class UnityLunNameInUseError(StoropsException):
22+
pass
23+
24+
25+
class UnityResourceNotFoundError(StoropsException):
26+
pass
27+
28+
29+
class UnitySnapNameInUseError(StoropsException):
30+
pass
31+
32+
33+
class UnityDeleteAttachedSnapError(StoropsException):
34+
pass
35+
36+
37+
class UnityResourceAlreadyAttachedError(StoropsException):
38+
pass
39+
40+
41+
class UnityPolicyNameInUseError(StoropsException):
42+
pass
43+
44+
45+
class UnityNothingToModifyError(StoropsException):
46+
pass
47+
48+
49+
class ExtendLunError(Exception):
50+
pass
51+
52+
53+
class DetachIsCalled(Exception):
54+
pass
55+
56+
57+
class LunDeleteIsCalled(Exception):
58+
pass
59+
60+
61+
class SnapDeleteIsCalled(Exception):
62+
pass
63+
64+
65+
class UnexpectedLunDeletion(Exception):
66+
pass
67+
68+
69+
class AdapterSetupError(Exception):
70+
pass

0 commit comments

Comments
 (0)