Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1395155[details]
traceback
Description of problem:
'ipa help <topic>' seems to fail if 'ipa help topics' has not been run, it looks like the help may be built dynamically when 'ipa help topics' is run.
Version-Release number of selected component (if applicable):
ipa-client-4.5.0-20.el7.x86_64
How reproducible:
Steps to Reproduce:
1. install and configure ipa-client
2. ipa help user
<traceback_occurs>
3. ipa help topics
4. ipa help user
<command_works>
Actual results:
traceback on initial execution of 'ipa help user'
Expected results:
'ipa help user' should work the first time
Additional info:
See attached traceback
Simplified reproducer doesn't need the help topics. Just do help user twice in a row.
Be sure to delete the schema cache first:
# rm -rf ~/.cache/ipa
The first time execution fails with traceback:
# ipa help user
ipa: ERROR: TypeError: 'NoneType' object has no attribute '__getitem__'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1351, in run
sys.exit(api.Backend.cli.run(argv))
File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1105, in run
kw = self.parse(cmd, argv[1:])
File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1125, in parse
parser = self.build_parser(cmd)
File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1142, in build_parser
usage=' '.join(self.usage_iter(cmd)),
File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1220, in usage_iter
for arg in cmd.args():
File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 255, in __get__
obj.ensure_finalized()
File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 230, in ensure_finalized
self.finalize()
File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 210, in finalize
self._on_finalize()
File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 733, in _on_finalize
if c.NO_CLI:
File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", line 247, in NO_CLI
halp = self._schema[self.schema_key].get_help(self.full_name)
File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", line 329, in get_help
return self._schema.get_help(self.name, key)
File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", line 520, in get_help
return self._help[namespace][member]
TypeError: 'NoneType' object has no attribute '__getitem__'
ipa: ERROR: an internal error has occurred
Subsequent ones are fine because cache is there.
Fix upstream in ipa-4-5:
9308e63 Store help in Schema before writing to disk
7352b73 Disable pylint in get_help function because of type confusion.
*** This bug has been marked as a duplicate of bug 1477243 ***
Created attachment 1395155 [details] traceback Description of problem: 'ipa help <topic>' seems to fail if 'ipa help topics' has not been run, it looks like the help may be built dynamically when 'ipa help topics' is run. Version-Release number of selected component (if applicable): ipa-client-4.5.0-20.el7.x86_64 How reproducible: Steps to Reproduce: 1. install and configure ipa-client 2. ipa help user <traceback_occurs> 3. ipa help topics 4. ipa help user <command_works> Actual results: traceback on initial execution of 'ipa help user' Expected results: 'ipa help user' should work the first time Additional info: See attached traceback