#5325 ipa trust-add --raw: ipa: ERROR: an internal error has occurred
Closed: Fixed None Opened 8 years ago by tbabej.

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

Description of problem: ipa trust-add --raw when used fails with ipa: ERROR: an
internal error has occurred

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


How reproducible:Always


Steps to Reproduce:
1. Install IPA server.
2. Add trust with the below option.

[root@ipa02 ~]# ipa trust-add --raw

Actual results:
Trust gets added but using the --raw option it gives below error.

[root@ipa02 ~]# ipa trust-add --raw
Realm name: TEST.IN
Active Directory domain administrator: Administrator
Active Directory domain administrator's password:
ipa: ERROR: an internal error has occurred

[root@ipa02 ~]# ipa trust-show
Realm name: TEST.IN
  Realm name: test.in
  Domain NetBIOS name: TEST
  Domain Security Identifier: S-1-5-21-742749997-2996825573-4184801258
  Trust direction: Trusting forest
  Trust type: Active Directory domain

==> /var/log/httpd/error_log

[Thu Sep 24 18:08:16.209243 2015] [:error] [pid 6340] ipa: ERROR: non-public:
KeyError: 'ipanttrusttype'
[Thu Sep 24 18:08:16.209310 2015] [:error] [pid 6340] Traceback (most recent
call last):
[Thu Sep 24 18:08:16.209314 2015] [:error] [pid 6340]   File
"/usr/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 347, in
wsgi_execute
[Thu Sep 24 18:08:16.209317 2015] [:error] [pid 6340]     result =
self.Command[name](*args, **options)
[Thu Sep 24 18:08:16.209325 2015] [:error] [pid 6340]   File
"/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 443, in __call__
[Thu Sep 24 18:08:16.209331 2015] [:error] [pid 6340]     ret = self.run(*args,
**options)
[Thu Sep 24 18:08:16.209334 2015] [:error] [pid 6340]   File
"/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 760, in run
[Thu Sep 24 18:08:16.209336 2015] [:error] [pid 6340]     return
self.execute(*args, **options)
[Thu Sep 24 18:08:16.209338 2015] [:error] [pid 6340]   File
"/usr/lib/python2.7/site-packages/ipalib/plugins/trust.py", line 676, in
execute
[Thu Sep 24 18:08:16.209340 2015] [:error] [pid 6340]
result['result']['ipanttrusttype'][0])]
[Thu Sep 24 18:08:16.209342 2015] [:error] [pid 6340] KeyError:
'ipanttrusttype'
[Thu Sep 24 18:08:16.209744 2015] [:error] [pid 6340] ipa: INFO:
[jsonserver_session] admin@LABS02.TEST: trust_add(u'TEST.IN', trust_type=u'ad',
realm_admin=u'Administrator', realm_passwd=u'********', all=False, raw=True,
version=u'2.156'): KeyError

Expected results: Error displayed on console should be fixed.

Additional info:

I already have a WIP patch for this issue.

Metadata Update from @tbabej:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.4.1

7 years ago

Login to comment on this ticket.

Metadata