Bug 808154 - turning warp_to_teminal to true results in traceback
Summary: turning warp_to_teminal to true results in traceback
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: Master
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: pulp-bugs
QA Contact: Preethi Thomas
Depends On:
TreeView+ depends on / blocked
Reported: 2012-03-29 17:37 UTC by dgao
Modified: 2015-02-28 21:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-02-28 21:34:21 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Pulp Redmine 335 0 None None None Never

Description dgao 2012-03-29 17:37:57 UTC
Changing wrap_to_terminal to true and using ssh client to execute pulp cli command results in a traceback.

dgao@zhongyong:~ $ ssh root@pulp-nightly.usersys.redhat.com "pulp-v2-admin -u admin -p admin repo create --id=smoketest_repo --display_name=smoketest_repo --feed=http://repos.fedorapeople.org/repos/pulp/pulp/dev/testing/fedora-15/x86_64/"
reverse mapping checking getaddrinfo for unused [] failed - POSSIBLE BREAK-IN ATTEMPT!
root@pulp-nightly.usersys.redhat.com's password: 
Traceback (most recent call last):
  File "/usr/bin/pulp-v2-admin", line 27, in <module>
    sys.exit(pulp.gc_client.launcher.main(config_file, override_config_file))
  File "/usr/lib/python2.7/site-packages/pulp/gc_client/launcher.py", line 178, in main
    prompt = _create_prompt(config)
  File "/usr/lib/python2.7/site-packages/pulp/gc_client/launcher.py", line 135, in _create_prompt
    prompt = PulpPrompt(enable_color=enable_color, wrap_width=wrap)
  File "/usr/lib/python2.7/site-packages/pulp/gc_client/framework/core.py", line 79, in __init__
    wrap_width=wrap_width, record_tags=record_tags)
  File "/usr/lib/python2.7/site-packages/okaara/prompt.py", line 120, in __init__
    self.write(self.normal_color, new_line=False)
  File "/usr/lib/python2.7/site-packages/okaara/prompt.py", line 162, in write
    content = self.wrap(content)
  File "/usr/lib/python2.7/site-packages/okaara/prompt.py", line 242, in wrap
    wrap_width = self.terminal_size()[0]
  File "/usr/lib/python2.7/site-packages/okaara/prompt.py", line 355, in terminal_size
    ioctl = fcntl.ioctl(0, termios.TIOCGWINSZ, struct.pack('HHHH', 0, 0, 0, 0))
IOError: [Errno 22] Invalid argument

Comment 1 Chris Duryee 2014-11-12 01:26:38 UTC
This is still outstanding in pulp 2.4.3. I set wrap_to_terminal to true in /etc/pulp/admin/admin.conf and got the same traceback when executing the command via ssh.

Comment 2 Brian Bouterse 2015-02-28 21:34:21 UTC
Moved to https://pulp.plan.io/issues/335

Note You need to log in before you can comment on or make changes to this bug.