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 #1

Updated by Sam Zaydel about 10 years ago

While this issue occurs, the following is logged, suggesting a problem with SMF. I should note that in fact TPG does get created and removed correctly, but the issue persists. Also of note, I am testing limits, and so have over 3000 tpgs defined. However, that should have nothing to do with how itadm reports failure to outside world.

Jan 28 06:52:39 0-c-29-f3-2b-92 itadm[10460]: [ID 155448 user.error] transaction commit for provider_data_pg_iscsit failed - connection to repository broken
Actions

Also available in: Atom PDF