Issue #335
closedturning wrap_to_teminal to true results in traceback
Description
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 [10.16.120.186] 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
+ This bug was cloned from Bugzilla Bug #808154 +
Updated by cduryee almost 10 years ago
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.
+ This comment was cloned from Bugzilla #808154 comment 1 +
Updated by amacdona@redhat.com almost 10 years ago
- Subject changed from turning warp_to_teminal to true results in traceback to turning wrap_to_teminal to true results in traceback
Updated by amacdona@redhat.com almost 10 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to amacdona@redhat.com
Updated by amacdona@redhat.com almost 10 years ago
- Status changed from ASSIGNED to POST
Updated by amacdona@redhat.com almost 10 years ago
- Status changed from POST to MODIFIED
Updated by bmbouter almost 10 years ago
- Severity changed from Medium to 2. Medium
Updated by dkliban@redhat.com over 9 years ago
- Status changed from MODIFIED to 5
Updated by amacdona@redhat.com about 9 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE