Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 516460[details]
tgtadm logs
Description of problem:
case:
sometimes, when I try to create new targets, service reload fails, running with bash -x reviles that it tries to create new target:
tgtadm -C 0 --lld iscsi --op new --mode target --tid 12 -T ErrorHandling-T1
and fail on tgtadm: this target already exists.
Target actually already exists, and in this case i created different target called ErrorHandling-T21 and ErrorHandling-T22.
1) I don't understand why tgt use command to create new target if its already exits.
2) I think we should not fail service reload on such case, as its not harmful, its more problematic that user can'r reload.
workaround:
tgtadm --lld iscsi --mode target --op delete --tid 12
reload service.
changed the script manually in /usr/sbin/tgt-admin
+ $tgtadm_output_tid{$target} = $next_tid;
- process_targets;
but from the line numbers i could tell that the upstream script is different.
* with those changes i still see the problem.
[root@filer03 ~]# tgt-admin --update ALL
tgtadm: this target already exists
Command:
tgtadm -C 0 --lld iscsi --op new --mode target --tid 98 -T david
exited with code: 22.
can you please provide a scratch build or the upstream git? this way we would be able test it with the same code.
Comment 6RHEL Program Management
2011-10-07 16:05:15 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.
Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.
(In reply to comment #5)
> sure,
> http://people.redhat.com/agrover/files/test_rpms/scsi-target-utils-1.0.14-3test1.el6.x86_64.rpm
>
> So, this is the same issue as bug 736740? Or is this one about running tgtadm
> directly?
Andy, as we don't have a consistent repro of the problem, I cannot provide you the needed info if it does/doesn't fix the problem, however, i'm willing to patch my server with attached rpm and work with it extensively this week, if it does't reproduce then we can close down the bug.
(In reply to comment #5)
> sure,
> http://people.redhat.com/agrover/files/test_rpms/scsi-target-utils-1.0.14-3test1.el6.x86_64.rpm
>
> So, this is the same issue as bug 736740? Or is this one about running tgtadm
> directly?
Andy, installed scratch rpms and I still get the problem after adding new target and trying reload the service:
tgtadm -C 0 --lld iscsi --op new --mode target --tid 246 -T rvaknin_igor
exited with code: 22
scsi-target-utils-1.0.14-3test1.el6.x86_64
Created attachment 516460 [details] tgtadm logs Description of problem: case: sometimes, when I try to create new targets, service reload fails, running with bash -x reviles that it tries to create new target: tgtadm -C 0 --lld iscsi --op new --mode target --tid 12 -T ErrorHandling-T1 and fail on tgtadm: this target already exists. Target actually already exists, and in this case i created different target called ErrorHandling-T21 and ErrorHandling-T22. 1) I don't understand why tgt use command to create new target if its already exits. 2) I think we should not fail service reload on such case, as its not harmful, its more problematic that user can'r reload. workaround: tgtadm --lld iscsi --mode target --op delete --tid 12 reload service.