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.
Description of problem:
When calling IPA command 'ipa help' for the first time the traceback is shown instead of valid output.
Version-Release number of selected component (if applicable):
ipa-4.5.0-21.el7_4.1 and all older ipa-4.5.0 versions
How reproducible:
Always
Steps to Reproduce:
1. Install ipa-server
2. kinit
3. call ipa help
Actual results:
Traceback which might be seen in Additional info.
Expected results:
See help.
Additional info:
ipa: WARNING: Failed to read schema: [Errno 2] No such file or directory: u'/home/user/.cache/ipa/schema/1/7a5de3fd'
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 1101, in run
cmd = self.get_command(argv)
File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1070, in get_command
self.Command.help(outfile=sys.stderr)
File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 444, in __call__
self.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
ipa-4-5:
9308e63fde736ea4274a280f18c83a4bc2935c81 Store help in Schema before writing to disk
7352b731169e4f995b3ffe254b9e0cae6b82a763 Disable pylint in get_help function because of type confusion.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2018:0918
Description of problem: When calling IPA command 'ipa help' for the first time the traceback is shown instead of valid output. Version-Release number of selected component (if applicable): ipa-4.5.0-21.el7_4.1 and all older ipa-4.5.0 versions How reproducible: Always Steps to Reproduce: 1. Install ipa-server 2. kinit 3. call ipa help Actual results: Traceback which might be seen in Additional info. Expected results: See help. Additional info: ipa: WARNING: Failed to read schema: [Errno 2] No such file or directory: u'/home/user/.cache/ipa/schema/1/7a5de3fd' 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 1101, in run cmd = self.get_command(argv) File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1070, in get_command self.Command.help(outfile=sys.stderr) File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 444, in __call__ self.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