Targets are not consistently shown with large numbers of targets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| tgt (Ubuntu) |
Medium
|
Unassigned | ||
| Precise |
Medium
|
Eric Desrochers | ||
| Trusty |
High
|
Eric Desrochers | ||
| Vivid |
Medium
|
Eric Desrochers |
Bug Description
SRU JUSTIFICATION
[Impact]
* tgtadm returns inconsistents results. Some targets are not
listed during one run, but are shown by a run immediately after.
[Test Case]
* With large number of targets :
# ./tgtadm -L iscsi --mode target --op show | fgrep -c Target
564
# dpkg -l | fgrep tgt
ii tgt 1:1.0.43-0ubuntu4 amd64 Linux SCSI target user-space tools
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
----
Buggy 1.0.43 version:
# for i in {1..100} ; do diff -u <(/usr/sbin/tgtadm -L iscsi --mode target --op show | fgrep Target) <(/usr/sbin/tgtadm -L iscsi --mode target --op show | fgrep Target) ; sleep 1 ; done
--- /dev/fd/63 2015-09-22 23:05:38.648448562 +0000
+++ /dev/fd/62 2015-09-22 23:05:38.648448562 +0000
@@ -560,3 +560,5 @@
Target 574: iqn.2010-
Target 578: iqn.2010-
Target 579: iqn.2010-
+Target 580: iqn.2010-
+Target 581: iqn.2010-
--- /dev/fd/63 2015-09-22 23:05:40.720506264 +0000
+++ /dev/fd/62 2015-09-22 23:05:40.720506264 +0000
@@ -560,3 +560,4 @@
Target 574: iqn.2010-
Target 578: iqn.2010-
Target 579: iqn.2010-
+Target 580: iqn.2010-
--- /dev/fd/63 2015-09-22 23:05:41.752535004 +0000
+++ /dev/fd/62 2015-09-22 23:05:41.752535004 +0000
@@ -560,3 +560,5 @@
Target 574: iqn.2010-
Target 578: iqn.2010-
Target 579: iqn.2010-
+Target 580: iqn.2010-
+Target 581: iqn.2010-
--- /dev/fd/63 2015-09-22 23:05:43.828592816 +0000
+++ /dev/fd/62 2015-09-22 23:05:43.828592816 +0000
@@ -560,4 +560,3 @@
Target 574: iqn.2010-
Target 578: iqn.2010-
Target 579: iqn.2010-
-Target 580: iqn.2010-
[Regression Potential]
* None expected, the patch comes from tgt upstream repo and it is already implemented in Ubuntu Wily and Debian.
[Other Info]
* The fix has been tested by the community and the fix resolved the issue. For more details see Comment #4
[Original Description]
With a large number of targets tgtadm --mode target --op show returns inconsistent results. Some targets are not listed during one run, but are shown by a run immediately after.
I grabbed the binary from the wily package and I am getting consistent results, so somewhere between 1.0.43 and 1.0.57 upstream seems to have patched the bug.
Can we get 1.0.57 (or whatever version has the fix) backported to trusty?
----
# ./tgtadm -L iscsi --mode target --op show | fgrep -c Target
564
# dpkg -l | fgrep tgt
ii tgt 1:1.0.43-0ubuntu4 amd64 Linux SCSI target user-space tools
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
----
Buggy 1.0.43 version:
# for i in {1..100} ; do diff -u <(/usr/sbin/tgtadm -L iscsi --mode target --op show | fgrep Target) <(/usr/sbin/tgtadm -L iscsi --mode target --op show | fgrep Target) ; sleep 1 ; done
--- /dev/fd/63 2015-09-22 23:05:38.648448562 +0000
+++ /dev/fd/62 2015-09-22 23:05:38.648448562 +0000
@@ -560,3 +560,5 @@
Target 574: iqn.2010-
Target 578: iqn.2010-
Target 579: iqn.2010-
+Target 580: iqn.2010-
+Target 581: iqn.2010-
--- /dev/fd/63 2015-09-22 23:05:40.720506264 +0000
+++ /dev/fd/62 2015-09-22 23:05:40.720506264 +0000
@@ -560,3 +560,4 @@
Target 574: iqn.2010-
Target 578: iqn.2010-
Target 579: iqn.2010-
+Target 580: iqn.2010-
--- /dev/fd/63 2015-09-22 23:05:41.752535004 +0000
+++ /dev/fd/62 2015-09-22 23:05:41.752535004 +0000
@@ -560,3 +560,5 @@
Target 574: iqn.2010-
Target 578: iqn.2010-
Target 579: iqn.2010-
+Target 580: iqn.2010-
+Target 581: iqn.2010-
--- /dev/fd/63 2015-09-22 23:05:43.828592816 +0000
+++ /dev/fd/62 2015-09-22 23:05:43.828592816 +0000
@@ -560,4 +560,3 @@
Target 574: iqn.2010-
Target 578: iqn.2010-
Target 579: iqn.2010-
-Target 580: iqn.2010-
----
Working 1.0.57 version:
# for i in {1..100} ; do diff -u <(./tgtadm -L iscsi --mode target --op show | fgrep Target) <(./tgtadm -L iscsi --mode target --op show | fgrep Target) ; sleep 1 ; done
#
Jordan Callicoat (jcallicoat) wrote : | #1 |
Billy Olsen (billy-olsen) wrote : | #2 |
From a little digging, it appears that this was fixed upstream in commit https:/
Changed in tgt (Ubuntu Trusty): | |
importance: | Undecided → High |
status: | New → Confirmed |
assignee: | nobody → Eric Desrochers (eric-desrochers-z) |
Eric Desrochers (slashd) wrote : | #3 |
I'm providing a hotfix[1] for Trusty (14.04) on a ppa[2], based on the upstream commit : 6c4ffa0[3], for the community to test and provide feedbacks before starting the SRU process.
This hotfix is only for testing purpose.
[1] Version : 1:1.0.43-
[2] https:/
[2] 6c4ffa0 tgtadm: fix a bug to read the response buffer
Charles Farquhar (cfarquhar) wrote : | #4 |
Thanks Eric!
A quick test by @jcallicoat shows that the package seems to have resolved the issue.
root@XXXXXX-
--- /dev/fd/63 2015-09-24 01:35:14.491460650 +0000
+++ /dev/fd/62 2015-09-24 01:35:14.491460650 +0000
@@ -578,5 +578,3 @@
Target 607: iqn.2010-
Target 608: iqn.2010-
Target 609: iqn.2010-
-Target 610: iqn.2010-
-Target 611: iqn.2010-
--- /dev/fd/63 2015-09-24 01:35:19.599588811 +0000
+++ /dev/fd/62 2015-09-24 01:35:19.599588811 +0000
@@ -578,3 +578,4 @@
Target 607: iqn.2010-
Target 608: iqn.2010-
Target 609: iqn.2010-
+Target 610: iqn.2010-
--- /dev/fd/63 2015-09-24 01:35:29.815845124 +0000
+++ /dev/fd/62 2015-09-24 01:35:29.815845124 +0000
@@ -578,6 +578,3 @@
Target 607: iqn.2010-
Target 608: iqn.2010-
Target 609: iqn.2010-
-Target 610: iqn.2010-
-Target 611: iqn.2010-
-Target 612: iqn.2010-
--- /dev/fd/63 2015-09-24 01:35:33.899947586 +0000
+++ /dev/fd/62 2015-09-24 01:35:33.899947586 +0000
@@ -578,5 +578,3 @@
Target 607: iqn.2010-
Target 608: iqn.2010-
Target 609: iqn.2010-
-Target 610: iqn.2010-
-Target 611: iqn.2010-
^C
root@XXXXXX-
--2015-09-24 01:36:22-- https:/
Resolving launchpad.net (launchpad.net)... 91.189.89.222, 91.189.89.223
Connecting to launchpad.net (launchpad.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https:/
--...
tags: | added: verification-done |
Changed in tgt (Ubuntu Trusty): | |
status: | Confirmed → In Progress |
The attachment "debdiff for Trusty" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]
tags: | added: patch |
Eric Desrochers (slashd) wrote : | #7 |
debdiff for Vivid
Changed in tgt (Ubuntu Vivid): | |
status: | New → Confirmed |
assignee: | nobody → Eric Desrochers (eric-desrochers-z) |
importance: | Undecided → High |
status: | Confirmed → In Progress |
importance: | High → Medium |
Eric Desrochers (slashd) wrote : | #8 |
debdiff for Precise
Changed in tgt (Ubuntu Precise): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Eric Desrochers (eric-desrochers-z) |
tags: | added: sts |
Eric Desrochers (slashd) wrote : | #9 |
2nd debdiff for Vivid (Fixing the unmet depencies of "libibverbs-dev")
Chris J Arges (arges) wrote : | #10 |
Sponsored for T/U/V.
Brian Murray (brian-murray) wrote : | #11 |
Why was the version of libibverbs-dev changed in the Vivid upload?
Eric Desrochers (slashd) wrote : | #12 |
Hi Brian,
I got a discussion with arges yesterday about it.
vivid version of tgt didn't build with this error :
sbuild-
I think it has something to do with this LP patch :
LP: https:/
PPA: https:/
This is why the version of libibverbs-dev changed in the Vivid upload.
Brian Murray (brian-murray) wrote : | #13 |
Were did the vivid version not build? I was able to build tgt version 1.0.43-0ubuntu4.1 in a vivid chroot and see that same version of tgt built in Launchpad successfully.
https:/
Does the environment you were building tgt in have -updates enabled?
Eric Desrochers (slashd) wrote : | #14 |
As per our irc conversation, I'm removing the "2nd debdiff for Vivid" and arges will re-upload the fix with the original patch I posted for Vivid.
Sorry for the confusion, and thanks Brian for you feedbacks on this.
Hello Jordan, or anyone else affected,
Accepted tgt into vivid-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
Changed in tgt (Ubuntu Vivid): | |
status: | In Progress → Fix Committed |
tags: | removed: verification-done |
tags: | added: verification-needed |
Changed in tgt (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
Brian Murray (brian-murray) wrote : | #16 |
Hello Jordan, or anyone else affected,
Accepted tgt into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
Brian Murray (brian-murray) wrote : | #17 |
The precise package version needs fixing as that package version existed in Quantal.
"The source tgt - 1:1.0.17-1ubuntu3 is already accepted in ubuntu/quantal and you cannot upload the same version within the same distribution. You have to modify the source version and re-upload."
Eric Desrochers (slashd) wrote : | #18 |
Source version has been modified for version "1:1.0.
Thanks !
Jordan Callicoat (jcallicoat) wrote : | #19 |
Tested version 1:1.0.43-
Robie Basak (racb) wrote : | #20 |
Is this fixed in Wily? Status says New?
Robie Basak (racb) wrote : | #21 |
Ah, "None expected, the patch comes from tgt upstream repo and it is already implemented in Ubuntu Wily and Debian." so setting Fix Released for Wily.
Changed in tgt (Ubuntu): | |
status: | New → Fix Released |
tags: |
added: verification-done removed: verification-needed |
Launchpad Janitor (janitor) wrote : | #22 |
This bug was fixed in the package tgt - 1:1.0.43-
---------------
tgt (1:1.0.
* debian/
the response buffer (LP: #1498697)
-- Eric Desrochers <email address hidden> Wed, 30 Sep 2015 11:41:52 -0500
Changed in tgt (Ubuntu Trusty): | |
status: | Fix Committed → Fix Released |
Chris J Arges (arges) wrote : Update Released | #23 |
The verification of the Stable Release Update for tgt has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
Launchpad Janitor (janitor) wrote : | #24 |
This bug was fixed in the package tgt - 1:1.0.43-0ubuntu4.2
---------------
tgt (1:1.0.
* debian/
the response buffer (LP: #1498697)
-- Eric Desrochers <email address hidden> Wed, 30 Sep 2015 11:55:09 -0500
Changed in tgt (Ubuntu Vivid): | |
status: | Fix Committed → Fix Released |
Hello Jordan, or anyone else affected,
Accepted tgt into precise-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
Changed in tgt (Ubuntu Precise): | |
status: | In Progress → Fix Committed |
tags: | removed: verification-done |
tags: | added: verification-needed |
Changed in tgt (Ubuntu): | |
importance: | Undecided → Medium |
tags: |
added: verification-done removed: verification-needed |
Launchpad Janitor (janitor) wrote : | #26 |
This bug was fixed in the package tgt - 1:1.0.17-1ubuntu2.1
---------------
tgt (1:1.0.
* debian/
the response buffer (LP: #1498697)
-- Eric Desrochers <email address hidden> Wed, 28 Oct 2015 10:47:23 -0500
Changed in tgt (Ubuntu Precise): | |
status: | Fix Committed → Fix Released |
For reference there is also an old RHEL bug that may related https:/ /bugzilla. redhat. com/show_ bug.cgi? id=865960