glance add prints 'stty: standard input: Inappropriate ioctl for device'

Bug #961820 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Dan Prince

Bug Description

The tty detection code in Glance still isn't quite right... I'm getting the following message to stderr when running 'glance add' commands in a shell without a tty:

stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device

----

The solution here seems pretty simple.... send the output of the tty test command to /dev/null.

Dan Prince (dan-prince)
Changed in glance:
assignee: nobody → Dan Prince (dan-prince)
status: New → In Progress
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/5657

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/5657
Committed: http://github.com/openstack/glance/commit/47384f7b56ebc4479dfb6cca02a5fe642e1f2bb0
Submitter: Jenkins
Branch: master

commit 47384f7b56ebc4479dfb6cca02a5fe642e1f2bb0
Author: Dan Prince <email address hidden>
Date: Wed Mar 21 21:10:23 2012 -0400

    Send output of stty test cmd to stderr.

    Send the output of the stty test for terminal size to stderr.

    Fixes LP Bug #961820.

    Change-Id: Ifc46632c9cf8bffb2dec7ef48f17157bf8ae1199

Changed in glance:
status: In Progress → Fix Committed
Brian Waldon (bcwaldon)
Changed in glance:
milestone: none → essex-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/5890

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (milestone-proposed)

Reviewed: https://review.openstack.org/5890
Committed: http://github.com/openstack/glance/commit/bf0fec0d7734a3c9fbef666ea64f35ca9af8d0fc
Submitter: Jenkins
Branch: milestone-proposed

commit bf0fec0d7734a3c9fbef666ea64f35ca9af8d0fc
Author: Dan Prince <email address hidden>
Date: Wed Mar 21 21:10:23 2012 -0400

    Send output of stty test cmd to stderr.

    Send the output of the stty test for terminal size to stderr.

    Fixes LP Bug #961820.

    Change-Id: Ifc46632c9cf8bffb2dec7ef48f17157bf8ae1199

Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: essex-rc2 → 2012.1
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.