Project

Profile

Help

Issue #335

turning wrap_to_teminal to true results in traceback

Added by dgao@redhat.com over 5 years ago. Updated over 1 year 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 +

History

#1 Updated by cduryee over 5 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 +

#2 Updated by amacdona@redhat.com over 5 years ago

  • Subject changed from turning warp_to_teminal to true results in traceback to turning wrap_to_teminal to true results in traceback

#3 Updated by amacdona@redhat.com over 5 years ago

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

#4 Updated by amacdona@redhat.com over 5 years ago

  • Status changed from ASSIGNED to POST

#5 Updated by amacdona@redhat.com over 5 years ago

  • Status changed from POST to MODIFIED

#6 Updated by bmbouter over 5 years ago

  • Severity changed from Medium to 2. Medium

#7 Updated by dkliban@redhat.com over 5 years ago

  • Platform Release set to 2.7.0

#8 Updated by dkliban@redhat.com over 5 years ago

  • Status changed from MODIFIED to 5

#9 Updated by amacdona@redhat.com almost 5 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#10 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF