Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1488823

Summary: novajoin.errors.ConfigurationError: get_ca_certs_from_ldap() error: 'module' object has no attribute 'IPAdmin'
Product: Red Hat OpenStack Reporter: Artem Hrechanychenko <ahrechan>
Component: python-novajoinAssignee: Ade Lee <alee>
Status: CLOSED ERRATA QA Contact: Prasanth Anbalagan <panbalag>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 12.0 (Pike)CC: nkinder, pvoborni, rcritten, rmascena, tscherf, tvignaud
Target Milestone: betaKeywords: Triaged
Target Release: 12.0 (Pike)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-novajoin-1.0.17-1.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 22:02:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Artem Hrechanychenko 2017-09-06 09:34:27 UTC
Description of problem:
[stack@undercloud-0 ~]$ sudo /usr/libexec/novajoin-ipa-setup     --principal admin     --password 12345678 --server ipa.redhat.local     --realm REDHAT.LOCAL     --domain redhat.local     --hostname undercloud-0.redhat.local     --precreate
Traceback (most recent call last):
  File "/usr/libexec/novajoin-ipa-setup", line 92, in <module>
    nss_db = novajoin.create_nssdb(opts.server, opts.realm)
  File "/usr/lib/python2.7/site-packages/novajoin/configure_ipa.py", line 154, in create_nssdb
    ca_certs = self._get_ca_certs(server, realm)
  File "/usr/lib/python2.7/site-packages/novajoin/configure_ipa.py", line 143, in _get_ca_certs
    raise ConfigurationError("get_ca_certs_from_ldap() error: %s" % e)
novajoin.errors.ConfigurationError: get_ca_certs_from_ldap() error: 'module' object has no attribute 'IPAdmin'


Version-Release number of selected component (if applicable):
[stack@undercloud-0 ~]$ rpm -qa "*novajoin*"
python-novajoin-1.0.15-0.20170821155702.dbafbd6.el7ost.noarch


How reproducible:
always

Steps to Reproduce:
1.install python novajoin
2.try to create some extra privileges/permissions to be used by the novajoin services

Actual results:
ConfigurationError


Red Hat Enterprise Linux Server rLinux undercloud-0.redhat.local 3.10.0-693.2.1.el7.x86_64 #1 SMP Fri Aug 11 04:58:43 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
elease 7.4 (Maipo)

Comment 2 Rob Crittenden 2017-09-06 17:28:06 UTC
Reproduced, working on it.

Comment 4 Artem Hrechanychenko 2017-09-08 13:30:50 UTC
Yep, tried your fixed rpm and I got OTP.
Thx!

Comment 6 Rob Crittenden 2017-09-20 13:15:59 UTC
Fixed upstream:

70173f38eeb149ef9f1987d918c96f262f6ffd34
5ab8dac221ed7acdf767e40feff250ab31785cce

Comment 8 Artem Hrechanychenko 2017-11-06 13:38:53 UTC
VERIFIED

[stack@undercloud-0 ~]$ rpm -qa "*novajoin*"
python-novajoin-1.0.17-1.el7ost.noarch


[stack@undercloud-0 ~]$ /usr/libexec/novajoin-ipa-setup     --principal admin     --password 12345678 --server ipa.redhat.local     --realm REDHAT.LOCAL     --domain redhat.local     --hostname undercloud-0.redhat.local     --precreate
ipa: INFO: trying https://ipa.redhat.local/ipa/json
ipa: INFO: [try 1]: Forwarding 'schema' to json server 'https://ipa.redhat.local/ipa/json'
ipa: INFO: trying https://ipa.redhat.local/ipa/session/json
ipa: INFO: [try 1]: Forwarding 'host_add/1' to json server 'https://ipa.redhat.local/ipa/session/json'
ipa: INFO: [try 1]: Forwarding 'service_add/1' to json server 'https://ipa.redhat.local/ipa/session/json'
ipa: INFO: [try 1]: Forwarding 'permission_add/1' to json server 'https://ipa.redhat.local/ipa/session/json'
ipa: INFO: [try 1]: Forwarding 'permission_add/1' to json server 'https://ipa.redhat.local/ipa/session/json'
ipa: INFO: [try 1]: Forwarding 'permission_add/1' to json server 'https://ipa.redhat.local/ipa/session/json'
ipa: INFO: [try 1]: Forwarding 'permission_add/1' to json server 'https://ipa.redhat.local/ipa/session/json'
ipa: INFO: [try 1]: Forwarding 'privilege_add/1' to json server 'https://ipa.redhat.local/ipa/session/json'
ipa: INFO: [try 1]: Forwarding 'privilege_add_permission/1' to json server 'https://ipa.redhat.local/ipa/session/json'
ipa: INFO: [try 1]: Forwarding 'role_add/1' to json server 'https://ipa.redhat.local/ipa/session/json'
ipa: INFO: [try 1]: Forwarding 'role_add_privilege/1' to json server 'https://ipa.redhat.local/ipa/session/json'
ipa: INFO: [try 1]: Forwarding 'role_add_member/1' to json server 'https://ipa.redhat.local/ipa/session/json'
1OayIVwSveNgN5Ij40m5HAXOVcNVp1JpJWw0SXToEBUQ

Comment 12 errata-xmlrpc 2017-12-13 22:02:49 UTC
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/RHEA-2017:3462