#7626 ipa help topics displays 'ipa: ERROR: an internal error has occurred'
Closed: fixed 2 years ago Opened 2 years ago by frenaud.

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

Description of problem: ipa help topics displays 'ipa: ERROR: an internal error
has occurred'

Version-Release number of selected component (if applicable):

Red Hat Enterprise Linux Server release 7.6 Beta (Maipo)
ipa-server-4.6.4-1.el7.x86_64
389-ds-base-1.3.8.2-1.el7.x86_64
certmonger-0.78.4-6.el7.x86_64
sssd-1.16.2-1.el7.x86_64
krb5-server-1.15.1-32.el7.x86_64
pki-ca-10.5.9-1.el7.noarch
pki-server-10.5.9-1.el7.noarch
certmonger-0.78.4-6.el7.x86_64

How reproducible:Always

Steps to Reproduce:
1. Install IPA server
2. kinit admin
3. ipa help topics

Actual results:

[root@master ~]# klist -l
Principal name                 Cache name
--------------                 ----------
admin@IPATEST.TEST             KEYRING:persistent:0:0
[root@master ~]# ipa help topics
ipa: DEBUG: importing all plugin modules in
ipaclient.remote_plugins.schema$3c83e1a5...
ipa: DEBUG: importing plugin module
ipaclient.remote_plugins.schema$3c83e1a5.plugins
ipa: DEBUG: importing all plugin modules in ipaclient.plugins...
ipa: DEBUG: importing plugin module ipaclient.plugins.automember
ipa: DEBUG: importing plugin module ipaclient.plugins.automount
ipa: DEBUG: importing plugin module ipaclient.plugins.ca
ipa: DEBUG: importing plugin module ipaclient.plugins.cert
ipa: DEBUG: importing plugin module ipaclient.plugins.certmap
ipa: DEBUG: importing plugin module ipaclient.plugins.certprofile
ipa: DEBUG: importing plugin module ipaclient.plugins.csrgen
ipa: DEBUG: importing plugin module ipaclient.plugins.dns
ipa: DEBUG: importing plugin module ipaclient.plugins.hbacrule
ipa: DEBUG: importing plugin module ipaclient.plugins.hbactest
ipa: DEBUG: importing plugin module ipaclient.plugins.host
ipa: DEBUG: importing plugin module ipaclient.plugins.idrange
ipa: DEBUG: importing plugin module ipaclient.plugins.internal
ipa: DEBUG: importing plugin module ipaclient.plugins.location
ipa: DEBUG: importing plugin module ipaclient.plugins.migration
ipa: DEBUG: importing plugin module ipaclient.plugins.misc
ipa: DEBUG: importing plugin module ipaclient.plugins.otptoken
ipa: DEBUG: importing plugin module ipaclient.plugins.otptoken_yubikey
ipa: DEBUG: importing plugin module ipaclient.plugins.passwd
ipa: DEBUG: importing plugin module ipaclient.plugins.permission
ipa: DEBUG: importing plugin module ipaclient.plugins.rpcclient
ipa: DEBUG: importing plugin module ipaclient.plugins.server
ipa: DEBUG: importing plugin module ipaclient.plugins.service
ipa: DEBUG: importing plugin module ipaclient.plugins.sudorule
ipa: DEBUG: importing plugin module ipaclient.plugins.topology
ipa: DEBUG: importing plugin module ipaclient.plugins.trust
ipa: DEBUG: importing plugin module ipaclient.plugins.user
ipa: DEBUG: importing plugin module ipaclient.plugins.vault
ipa: DEBUG: raw: help(u'topics', version=u'2.229')
ipa: DEBUG: help(u'topics', version=u'2.229')
ipa: ERROR: non-public: AssertionError:
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 830, in run
    self.print_topics(outfile)
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 861, in
print_topics
    to_cli(t).ljust(self._mtl), topic[0]))
  File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 75, in to_cli
    assert isinstance(name, str)
AssertionError
ipa: ERROR: an internal error has occurred

[root@master ~]# ipa help hbac
  hbacsvcgroup  HBAC Service Groups
  hbacsvc       HBAC Services
  hbacrule      Host-based access control

[root@master ~]# ipa help sudo
  sudorule      Sudo Rules
  sudocmdgroup  Groups of Sudo Commands
  sudocmd       Sudo Commands


Expected results:
Should display all help commands.

Additional info:

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

2 years ago

Metadata Update from @abiagion:
- Issue assigned to abiagion

2 years ago

Metadata Update from @abiagion:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/2165

2 years ago

PR 2165 looks good.

Could you please open another PR and add a test case to ipatests.test_integration.test_commands?

These commands should work without error:

  • kinit
  • ipa help
  • ipa help commands
  • ipa help topics
  • ipa host-add --help

master:

  • 717d59e Fix regression: Handle unicode where str is expected

ipa-4-6:

  • 0791b10 Fix regression: Handle unicode where str is expected

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

2 years ago

@cheimes kinit is implicitly tested. However, I can open a new PR adding the commands you've mentioned together with the one I already tested (ipa help topics), ok?

Login to comment on this ticket.

Metadata