chccwdev: Unexpected non-zero return code

Bug #1633513 reported by John George
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Fix Released
Low
bugproxy
s390-tools (Ubuntu)
Fix Released
High
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu Yakkety Yak (development branch)
Release: 16.10

$ apt-cache policy s390-tools
s390-tools:
  Installed: 1.36.1-0ubuntu2
  Candidate: 1.36.1-0ubuntu2
  Version table:
 *** 1.36.1-0ubuntu2 500
        500 http://us.ports.ubuntu.com/ubuntu-ports yakkety/main s390x Packages
        100 /var/lib/dpkg/status

When benign options such as --help or --version are passed to chccwdev the expected output is printed but the return code is non-zero. This is inconsistent behaviour compared to other utilities shipped in the s390-tools package and a hindrance to dep8 autopkgtests tests. Please see LP bug 1616596 for further discussion as to why this can be an impact. The unexpected return code is shown here:

$ chccwdev -h
Usage: chccwdev [<options>] <devices>

<options>
  -a|--attribute <name>=<value>
  -e|--online
   Tries to set the given device online.
  -f|--forceonline
   Tries to force a device online if the device
   driver supports this.
   -d|--offline
    Tries to set the given device offline.
   -s|--safeoffline
    Tries to set the given device offline waiting for all outstanding I/O. May block forever.
  -v|--version
   Show tools and command version.

<devices>
  <bus ID>[-<busid>][,<busid>[-<busid>]] ...
ubuntu@s5lp1-gen03:~/src/s390-tools-1.36.1/debian/tests$ echo $?
1

Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
importance: Undecided → Low
status: New → Triaged
bugproxy (bugproxy)
tags: added: architecture-s39064 bugnameltc-147741 severity-high targetmilestone-inin1610
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
assignee: nobody → bugproxy (bugproxy)
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

1.37.0-0ubuntu1 is good.

Changed in s390-tools (Ubuntu):
status: New → Fix Released
Changed in ubuntu-z-systems:
status: Triaged → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2017-03-02 07:48 EDT-------
IBM Bugzilla -> Closed

Mathew Hodson (mhodson)
Changed in s390-tools (Ubuntu):
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.