Gris Ge
2014-08-29 14:32:45 UTC
* Rename SIZE_LIMIT_REACHED to SYS_LIMIT_MAX_SIZE_EXCEEDED
* Add:
SYS_LIMIT_MAX_COUNT_EXCEEDED
# For example, ONTAP only allow 8192 LUNs per controller, if user try to
# create more, this error should be raised.
POOL_NOT_READY
# Error when trying to create volume on offlined pool.
* SYS_LIMIT_MAX_SIZE_EXCEEDED and POOL_NOT_READY is supported by ONTAP plugin
in next patch.
* SYS_LIMIT_MAX_COUNT_EXCEEDED is not supported yet but soon in ONTAP plugin.
Signed-off-by: Gris Ge <***@redhat.com>
---
c_binding/include/libstoragemgmt/libstoragemgmt_error.h | 4 +++-
python_binding/lsm/_common.py | 5 ++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/c_binding/include/libstoragemgmt/libstoragemgmt_error.h b/c_binding/include/libstoragemgmt/libstoragemgmt_error.h
index 42e5547..c72c433 100644
--- a/c_binding/include/libstoragemgmt/libstoragemgmt_error.h
+++ b/c_binding/include/libstoragemgmt/libstoragemgmt_error.h
@@ -81,7 +81,9 @@ typedef enum {
LSM_ERR_NOT_ENOUGH_SPACE = 350, /**< Insufficient space */
LSM_ERR_SIZE_TOO_SMALL = 353, /**< Size specified is too small */
- LSM_ERR_SIZE_LIMIT_REACHED = 354, /**< Limit has been reached */
+ LSM_ERR_SYS_LIMIT_MAX_SIZE_EXCEEDED = 354, /**< System limit max size has been reached */
+ LSM_ERR_SYS_LIMIT_MAX_COUNT_EXCEEDED = 355, /**< System limit max count has been reached */
+ LSM_ERR_POOL_NOT_READY = 356, /**< Pool is not read for action requsted*/
LSM_ERR_TRANSPORT_COMMUNICATION = 400, /**< Error comunicating with plug-in */
LSM_ERR_TRANSPORT_SERIALIZATION = 401, /**< Transport serialization error */
diff --git a/python_binding/lsm/_common.py b/python_binding/lsm/_common.py
index 5089565..913f380 100644
--- a/python_binding/lsm/_common.py
+++ b/python_binding/lsm/_common.py
@@ -465,7 +465,10 @@ class ErrorNumber(object):
NOT_ENOUGH_SPACE = 350
SIZE_TOO_SMALL = 353
- SIZE_LIMIT_REACHED = 354
+
+ SYS_LIMIT_MAX_SIZE_EXCEEDED = 354
+ SYS_LIMIT_MAX_COUNT_EXCEEDED = 355
+ POOL_NOT_READY = 356
TRANSPORT_COMMUNICATION = 400
TRANSPORT_SERIALIZATION = 401
* Add:
SYS_LIMIT_MAX_COUNT_EXCEEDED
# For example, ONTAP only allow 8192 LUNs per controller, if user try to
# create more, this error should be raised.
POOL_NOT_READY
# Error when trying to create volume on offlined pool.
* SYS_LIMIT_MAX_SIZE_EXCEEDED and POOL_NOT_READY is supported by ONTAP plugin
in next patch.
* SYS_LIMIT_MAX_COUNT_EXCEEDED is not supported yet but soon in ONTAP plugin.
Signed-off-by: Gris Ge <***@redhat.com>
---
c_binding/include/libstoragemgmt/libstoragemgmt_error.h | 4 +++-
python_binding/lsm/_common.py | 5 ++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/c_binding/include/libstoragemgmt/libstoragemgmt_error.h b/c_binding/include/libstoragemgmt/libstoragemgmt_error.h
index 42e5547..c72c433 100644
--- a/c_binding/include/libstoragemgmt/libstoragemgmt_error.h
+++ b/c_binding/include/libstoragemgmt/libstoragemgmt_error.h
@@ -81,7 +81,9 @@ typedef enum {
LSM_ERR_NOT_ENOUGH_SPACE = 350, /**< Insufficient space */
LSM_ERR_SIZE_TOO_SMALL = 353, /**< Size specified is too small */
- LSM_ERR_SIZE_LIMIT_REACHED = 354, /**< Limit has been reached */
+ LSM_ERR_SYS_LIMIT_MAX_SIZE_EXCEEDED = 354, /**< System limit max size has been reached */
+ LSM_ERR_SYS_LIMIT_MAX_COUNT_EXCEEDED = 355, /**< System limit max count has been reached */
+ LSM_ERR_POOL_NOT_READY = 356, /**< Pool is not read for action requsted*/
LSM_ERR_TRANSPORT_COMMUNICATION = 400, /**< Error comunicating with plug-in */
LSM_ERR_TRANSPORT_SERIALIZATION = 401, /**< Transport serialization error */
diff --git a/python_binding/lsm/_common.py b/python_binding/lsm/_common.py
index 5089565..913f380 100644
--- a/python_binding/lsm/_common.py
+++ b/python_binding/lsm/_common.py
@@ -465,7 +465,10 @@ class ErrorNumber(object):
NOT_ENOUGH_SPACE = 350
SIZE_TOO_SMALL = 353
- SIZE_LIMIT_REACHED = 354
+
+ SYS_LIMIT_MAX_SIZE_EXCEEDED = 354
+ SYS_LIMIT_MAX_COUNT_EXCEEDED = 355
+ POOL_NOT_READY = 356
TRANSPORT_COMMUNICATION = 400
TRANSPORT_SERIALIZATION = 401
--
2.1.0
2.1.0