Discussion:
[Libstoragemgmt-devel] [PATCH] Fix regression of 9ab93dc7: fallback mode detection
Gris Ge
2014-05-28 13:47:11 UTC
Permalink
* HP 3PAR SMI-S provider will raise CIM_ERR_INVALID_CLASS error for
CIM_RegisteredProfile. We should treat it as fallback mode.

Signed-off-by: Gris Ge <***@redhat.com>
---
plugin/smispy/smis.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugin/smispy/smis.py b/plugin/smispy/smis.py
index f27a076..f36caf7 100644
--- a/plugin/smispy/smis.py
+++ b/plugin/smispy/smis.py
@@ -600,7 +600,8 @@ class Smis(IStorageAreaNetwork):
LocalOnly=False)
except CIMError as e:
if e[0] == pywbem.CIM_ERR_NOT_SUPPORTED or \
- e[0] == pywbem.CIM_ERR_INVALID_NAMESPACE:
+ e[0] == pywbem.CIM_ERR_INVALID_NAMESPACE or \
+ e[0] == pywbem.CIM_ERR_INVALID_CLASS:
pass
else:
raise e
--
1.8.3.1
Tony Asleson
2014-05-29 01:28:10 UTC
Permalink
Patch tests good, pushed!

Thanks,
Tony
Post by Gris Ge
* HP 3PAR SMI-S provider will raise CIM_ERR_INVALID_CLASS error for
CIM_RegisteredProfile. We should treat it as fallback mode.
---
plugin/smispy/smis.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugin/smispy/smis.py b/plugin/smispy/smis.py
index f27a076..f36caf7 100644
--- a/plugin/smispy/smis.py
+++ b/plugin/smispy/smis.py
LocalOnly=False)
if e[0] == pywbem.CIM_ERR_NOT_SUPPORTED or \
+ e[0] == pywbem.CIM_ERR_INVALID_NAMESPACE or \
pass
raise e
Loading...