Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Commit [2233cf] Maximize Restore History

Plugins: Handle lsm.ErrorNumber.IS_MASKED

Updated these plugin to use new error IS_MASKED:
1. ontap
# I don't use handle_ontap_errors which use netapp error log directly.
# Which might cause confusing(LUN vs volume, NetApp volume vs LSM Volume)
2. sim
3. targetd
# New class TargetdError. _jsonrequest() will raise TargetdError
# instead of LsmError. We should directly use targetd error number
# as LsmError number even most of time they are the same.
# Anyway, in this case, targetd is use 303, IS_MASKED is 160.

Two plugins skipped for this change:
1. SMI-S
# Not worth my time when SMI-S has __no__ good way.
2. nstor
# Their API allowing deleting masked volume with no indication.
# they even raise no error when deleting non-exist volume.
# Meanwhile, I failed to find any API document to match current code.
# but it works, so I try not touch it.
3. simc
# Sorry, I am not an export of C.

Signed-off-by: Gris Ge <fge@redhat.com>

Gris Ge Gris Ge 2014-08-21

Tony Asleson Tony Asleson 2014-08-21

changed plugin/ontap/na.py
changed plugin/ontap/ontap.py
changed plugin/sim/simarray.py
changed plugin/targetd/targetd.py
plugin/ontap/na.py Diff Switch to side-by-side view
Loading...
plugin/ontap/ontap.py Diff Switch to side-by-side view
Loading...
plugin/sim/simarray.py Diff Switch to side-by-side view
Loading...
plugin/targetd/targetd.py Diff Switch to side-by-side view
Loading...