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?
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 RELEASE= 14.04 CODENAME= trusty DESCRIPTION= "Ubuntu 14.04.1 LTS"
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 10.org. openstack: volume- 7adaa3bc- fafc-4421- baf7-b25102de19 22 10.org. openstack: volume- 892c6840- ca04-4474- 9976-9eaa8b54c4 d2 10.org. openstack: volume- d1d8062f- be47-4f33- b5b9-1befdfb09f 65 10.org. openstack: volume- 32a9e401- cf44-4f8f- ba93-fd43ff758e 45 10.org. openstack: volume- ddcebcc4- eb13-459e- be1d-2068ee03a4 c6 10.org. openstack: volume- 7adaa3bc- fafc-4421- baf7-b25102de19 22 10.org. openstack: volume- 892c6840- ca04-4474- 9976-9eaa8b54c4 d2 10.org. openstack: volume- d1d8062f- be47-4f33- b5b9-1befdfb09f 65 10.org. openstack: volume- 32a9e401- cf44-4f8f- ba93-fd43ff758e 45 10.org. openstack: volume- 7adaa3bc- fafc-4421- baf7-b25102de19 22 10.org. openstack: volume- 892c6840- ca04-4474- 9976-9eaa8b54c4 d2 10.org. openstack: volume- d1d8062f- be47-4f33- b5b9-1befdfb09f 65 10.org. openstack: volume- 32a9e401- cf44-4f8f- ba93-fd43ff758e 45 10.org. openstack: volume- ddcebcc4- eb13-459e- be1d-2068ee03a4 c6 10.org. openstack: volume- 7adaa3bc- fafc-4421- baf7-b25102de19 22 10.org. openstack: volume- 892c6840- ca04-4474- 9976-9eaa8b54c4 d2 10.org. openstack: volume- d1d8062f- be47-4f33- b5b9-1befdfb09f 65 10.org. openstack: volume- 32a9e401- cf44-4f8f- ba93-fd43ff758e 45
--- /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
#