Project

General

Profile

Actions

Bug #4541

open

Creation or Removal of iscsi target portal groups results with return code that is invalid

Added by Sam Zaydel about 10 years ago. Updated about 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
comstar - iSCSI/FC/SAS target
Start date:
2014-01-28
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

In my attempts to learn what could go wrong with iSCSI target and TPG creation I observed that when there is an issue with saving configuration, we could return code that is not a valid retcode. In this example I am trying to delete a valid tpg, and get a configuration error, but I think because the retcode is actually looking like a size of something than a retcode, shell is not reporting the command as a failure.

# itadm delete-tpg -f t0003; echo $?
Configuration change failed: unknown error
itadm delete-tpg failed with error 32768
0

With truss:

Configuration change failedwrite(2, " C o n f i g u r a t i o".., 27)   = 27
: write(2, " :  ", 2)                           = 2
unknown errorwrite(2, " u n k n o w n   e r r o".., 13) = 13

write(2, "\\n", 1)                               = 1
itadm write(2, " i t a d m  ", 6)                       = 6
create-tpgwrite(2, " c r e a t e - t p g", 10)          = 10
 failed with error write(2, "   f a i l e d   w i t h".., 19)   = 19
32768write(2, " 3 2 7 6 8", 5)                  = 5

write(2, "\\n", 1)                               = 1
_exit(32768)
Actions

Also available in: Atom PDF