Gris Ge
2014-08-07 08:43:44 UTC
Hi Guys,
I gathered all change methods and listed with error name when getting
duplicate invoke.
Please review and share with us your comments.
Thank you in advance.
======
# Raise NAME_CONFLICT which require user to check existing objects
# to make sure whether existing object is what they want or not.
volume_create() NAME_CONFLICT
volume_replicate() NAME_CONFLICT
access_group_create() NAME_CONFLICT
fs_create() NAME_CONFLICT
fs_snapshot_create() NAME_CONFLICT
# Raise ALREADY_DONE to indicate requested action already finished by
# previous call. User can simply ignore this error.
fs_resize() ALREADY_DONE
volume_resize() ALREADY_DONE
volume_online() ALREADY_DONE
volume_offline() ALREADY_DONE
volume_mask() ALREADY_DONE
volume_unmask() ALREADY_DONE
access_group_initiator_add() ALREADY_DONE
access_group_initiator_del() ALREADY_DONE
fs_child_dependency_rm() ALREADY_DONE
# Raise NOT_FOUND_XXX to indicate requested object is not exist. User has to
# decide ignore this error or do more check.
volume_delete() NOT_FOUND_VOLUME
access_group_delete() NOT_FOUND_ACCESS_GROUP
fs_delete() NOT_FOUND_FS
fs_snapshot_delete() NOT_FOUND_FS_SS
export_remove() NOT_FOUND_NFS_EXPORT
# Others.
fs_snapshot_restore() # just do the restore again.
export_fs() # does this method allowing overriding
# exist export?
iscsi_chap_auth() # does this method allowing overriding
# exist config?
======
I gathered all change methods and listed with error name when getting
duplicate invoke.
Please review and share with us your comments.
Thank you in advance.
======
# Raise NAME_CONFLICT which require user to check existing objects
# to make sure whether existing object is what they want or not.
volume_create() NAME_CONFLICT
volume_replicate() NAME_CONFLICT
access_group_create() NAME_CONFLICT
fs_create() NAME_CONFLICT
fs_snapshot_create() NAME_CONFLICT
# Raise ALREADY_DONE to indicate requested action already finished by
# previous call. User can simply ignore this error.
fs_resize() ALREADY_DONE
volume_resize() ALREADY_DONE
volume_online() ALREADY_DONE
volume_offline() ALREADY_DONE
volume_mask() ALREADY_DONE
volume_unmask() ALREADY_DONE
access_group_initiator_add() ALREADY_DONE
access_group_initiator_del() ALREADY_DONE
fs_child_dependency_rm() ALREADY_DONE
# Raise NOT_FOUND_XXX to indicate requested object is not exist. User has to
# decide ignore this error or do more check.
volume_delete() NOT_FOUND_VOLUME
access_group_delete() NOT_FOUND_ACCESS_GROUP
fs_delete() NOT_FOUND_FS
fs_snapshot_delete() NOT_FOUND_FS_SS
export_remove() NOT_FOUND_NFS_EXPORT
# Others.
fs_snapshot_restore() # just do the restore again.
export_fs() # does this method allowing overriding
# exist export?
iscsi_chap_auth() # does this method allowing overriding
# exist config?
======
--
Gris Ge
Gris Ge