Project

Profile

Help

Issue #335

closed

turning wrap_to_teminal to true results in traceback

Added by dgao@redhat.com almost 10 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Changing wrap_to_terminal to true and using ssh client to execute pulp cli command results in a traceback.

dgao@zhongyong:~ $ ssh "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!
'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 +

Actions #1

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 +

Actions #2

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
Actions #3

Updated by amacdona@redhat.com almost 10 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to amacdona@redhat.com
Actions #4

Updated by amacdona@redhat.com almost 10 years ago

  • Status changed from ASSIGNED to POST
Actions #5

Updated by amacdona@redhat.com almost 10 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by bmbouter almost 10 years ago

  • Severity changed from Medium to 2. Medium
Actions #7

Updated by dkliban@redhat.com over 9 years ago

  • Platform Release set to 2.7.0
Actions #8

Updated by dkliban@redhat.com over 9 years ago

  • Status changed from MODIFIED to 5
Actions #9

Updated by amacdona@redhat.com about 9 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #10

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF