[Bug 1547060] Re: cant use -d switch

2016-05-25 Thread Bug Watch Updater
** Changed in: tgt (Debian)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-05-23 Thread Christian Reis
I just confirmed this was indeed a Xenial regression, as in Trusty this
works fine.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-05-23 Thread Launchpad Bug Tracker
This bug was fixed in the package tgt - 1:1.0.63-1ubuntu1.1

---
tgt (1:1.0.63-1ubuntu1.1) xenial; urgency=medium

  * debian/patches/util_strtoull_errno.patch by Stas Sergeev
- Fix errno handling for number * parsing (LP: #1547060)

 -- Ryan Harper   Thu, 21 Apr 2016 09:13:09
-0500

** Changed in: tgt (Ubuntu Xenial)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-05-20 Thread Jason Hobbs
I tested tgt 1:1.0.63-1ubuntu1.1 on xenial and it fixed this bug for me.

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-26 Thread Launchpad Bug Tracker
This bug was fixed in the package tgt - 1:1.0.63-1ubuntu2

---
tgt (1:1.0.63-1ubuntu2) yakkety; urgency=medium

  * debian/patches/util_strtoull_errno.patch by Stas Sergeev
- Fix errno handling for number * parsing (LP: #1547060)

 -- Ryan Harper   Thu, 21 Apr 2016 09:13:09
-0500

** Changed in: tgt (Ubuntu)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-26 Thread stsp
Please consider integrating also the fix for
bug #1389811 to make the testing easier and
more sensible.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-26 Thread Martin Pitt
Hello stsp, or anyone else affected,

Accepted tgt into xenial-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/tgt/1:1.0.63-1ubuntu1.1 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

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-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-25 Thread Mathew Hodson
** Changed in: tgt (Ubuntu Xenial)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-25 Thread Daniel Holbach
Fixes for xenial/yakkety uploaded, sitting in the review queue now.

** Also affects: tgt (Ubuntu Xenial)
   Importance: Undecided
   Status: New

** Changed in: tgt (Ubuntu Xenial)
   Status: New => Fix Committed

** Changed in: tgt (Ubuntu)
   Status: Triaged => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-23 Thread Mathew Hodson
** Tags added: xenial

** Changed in: tgt (Ubuntu)
   Status: Confirmed => Triaged

** Tags added: regression-release

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-22 Thread Bug Watch Updater
** Changed in: tgt (Debian)
   Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-21 Thread Ryan Harper
** Description changed:

+ [Impact]
+ 
+  * Users of tgt who wish to make use of the server command line options:
+-d,--debug , -t,--nr_iothreads, -C,--control-port will fail due to
+an option parsing error.  This prevents users from exercising
+additional control of the tgtd, regressing the capabilities of tgtd.
+ 
+This affects the 1.0.63 release of tgt and is not yet fixed upstream.
+Patches have been sumitted.
+
+  * Backporting fixes from upstream release is required to ensure
+users of tgtd can exercise all capabilities, including enabling
+debugging and other features previously available to tgt users.
+ 
+  * The patch fixes a misuderstanding of the use of errno after calling
+the strtoull libc call.  Errno is not set in all cases for strtoull
+so extra checks must be used to determine if the current value of
+errno is related to the strtoull call.
+ 
+ [Test Case]
+ 
+  * On a Xenial 16.04 system
+ 1. lxd init
+ 2. lxc launch ubuntu-daily:xenial x1
+ 3. lxc exec x1 -- /bin/bash -c 'apt-get update && apt-get -y install tgt 
&& tgtd -d1; echo $?'
+ 
+ # On FAILURE: return code will be non-zero with the following output
+ 
+ -d argument value '1' invalid
+ Try `tgtd --help' for more information.
+ 22
+ 
+ # After installing the newer tgt package, return code will be 0
+ 
+ [Regression Potential]
+ 
+  * Unlikely any new regressions will take place as the current package
+prevents users from using portions of tgtd due to not being able to
+pass numeric values to tgtd options.
+ 
+ [Other Info]
+  * Debian Bug filed:
+- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822160
+  * Upstream request to accept patch
+- http://article.gmane.org/gmane.linux.stgt/535
+ 
+ 
+ [Original Description]
  tgt-1:1.0.62-1ubuntu2
  
  # ./tgtd -d 1
  -d argument value '1' invalid
  Try `tgtd --help' for more information.
  
- 
  The following change should fix the problem:
  
  --- util.h.old  2015-12-02 03:27:15.0 +0300
  +++ util.h  2016-02-18 18:04:08.749932076 +0300
  @@ -148,7 +148,7 @@
- unsigned long long ull_val; \
- ull_val = strtoull(str, &ptr, 0);   \
- val = (typeof(val)) ull_val;\
+ unsigned long long ull_val; \
+ ull_val = strtoull(str, &ptr, 0);   \
+ val = (typeof(val)) ull_val;\
  -   if (errno || ptr == str)\
  +   if (ull_val == ULONG_MAX || ptr == str) \
- ret = EINVAL;   \
- else if (val != ull_val)\
- ret = ERANGE;   \
- 
+ ret = EINVAL;   \
+ else if (val != ull_val)\
+ ret = ERANGE;   \
  
  Here, the errno is checked incorrectly: you can't check
  errno unless the returned value allows you to. In case
  of strtoull(), errno should be checked only if ULONG_MAX is
  returned.
  I however can't test the fix properly because when compiled
  from source, the bug doesn't happen. The value of errno is
  unspecified, and it just happens to be 0 when I compile from
  sources.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1547060] Re: cant use -d switch

2016-04-21 Thread Ubuntu Foundations Team Bug Bot
The attachment "fix-errno-parsing.debdiff" 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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-21 Thread Ryan Harper
** Bug watch added: Debian Bug tracker #822160
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822160

** Also affects: tgt (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822160
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-21 Thread Ryan Harper
Applied patch as-is.

This issue exists in upstream (and Debian) as well.

A pull request has been sent to upstream, I'll forward this bug and link
to the pull request to the stgt mailing list.

** Patch added: "fix-errno-parsing.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+attachment/4641602/+files/fix-errno-parsing.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-21 Thread ChristianEhrhardt
reassigning, since Ryan took over even faster

** Changed in: tgt (Ubuntu)
 Assignee: ChristianEhrhardt (paelzer) => Ryan Harper (raharper)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-21 Thread Jon Grimm
** Changed in: tgt (Ubuntu)
   Importance: Undecided => High

** Changed in: tgt (Ubuntu)
 Assignee: (unassigned) => ChristianEhrhardt (paelzer)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-21 Thread Dimiter Naydenov
I'm seeing quite a lot of oom kills with multiple boot images imported
in MAAS 2.0.0 (beta3), which depends on tgt via maas-rack-controller
package.

FWIW this issue causes the workaround suggested in bug 1389811
impossible (passing -t 1 to limit the number of threads to 1, rather
than causing oom killer).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1547060] Re: cant use -d switch

2016-04-21 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: tgt (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547060

Title:
  cant use -d switch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1547060/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs