#7922 Command ipa conole is broken
Closed: fixed 5 years ago by cheimes. Opened 5 years ago by sorlov.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1702651

Description of problem:
"ipa console" command fails with error

Version-Release number of selected component (if applicable):
ipa-server-4.6.5-6.el7.x86_64

How reproducible:
Stable

Steps to Reproduce:
1. install ipa server
2. run "ipa console"


Actual results:
ipa: ERROR: non-public: IOError: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 141, in
execute
    return self.Command[_name](*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 450, in
__call__
    return self.__do_call(*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 478, in
__do_call
    ret = self.run(*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1012, in run
    self._setup_tab_completion(local)
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 971, in
_setup_tab_completion
    readline.read_history_file(history)
IOError: [Errno 2] No such file or directory
ipa: ERROR: an internal error has occurred


Expected results:
(Custom IPA interactive Python console)
    api: IPA API object
    pp: pretty printer


Additional info:
The error is at line 972 in /usr/lib/python2.7/site-packages/ipalib/cli.py:
when history file does not exists IOError is raised, but the code expects it to
be OSError.

Metadata Update from @sorlov:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1702651

5 years ago

Metadata Update from @sorlov:
- Issue set to the milestone: FreeIPA 4.6.6

5 years ago

ipa-4-7:

  • 818f94d ipa console: catch proper exception when history file can not be open

ipa-4-6:

  • 0082ddf ipa console: catch proper exception when history file can not be open

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata