Bug 1644747
Summary: | [OSP13] novajoin-ipa-setup fails with AttributeError: 'module' object has no attribute 'get_handler' | |||
---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Jeremy Agee <jagee> | |
Component: | python-novajoin | Assignee: | Ade Lee <alee> | |
Status: | CLOSED ERRATA | QA Contact: | Pavan <pkesavar> | |
Severity: | urgent | Docs Contact: | ||
Priority: | high | |||
Version: | 13.0 (Queens) | CC: | agurenko, alee, dvd, hrybacki, jgrosso, josorior, jschluet, jzaher, kbasil, kmehta, mariel, marjones, mazovladimir, mcornea, mkrcmari, mschuppe, nkinder, rcritten, rmascena, sputhenp, svigan, wznoinsk | |
Target Milestone: | z4 | Keywords: | Rebase, Triaged, ZStream | |
Target Release: | 13.0 (Queens) | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | python-novajoin-1.0.21-1.el7ost | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1645136 (view as bug list) | Environment: | ||
Last Closed: | 2019-01-16 17:53:54 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: | ||||
Bug Depends On: | 1645136, 1647772, 1653312 | |||
Bug Blocks: | 1613161, 1613576, 1619819, 1622182, 1639273 |
Description
Jeremy Agee
2018-10-31 14:17:49 UTC
Seems this bug was introduced by a change in the IPA client libraries. I was pointed to this commit in freeipa f62a0fdb904d2a4bb1961847e240dbb6df3b0b67 [1] We need to make sure that this works with both the old interface (the current code base) and the newer interface (RHEL 7.5 and 7.6) [1] https://github.com/freeipa/freeipa/commit/f62a0fdb904d2a4bb1961847e240dbb6df3b0b67 This was done to suppress the message "[try %d]: Forwarding '%s' to %s server '%s'" when using the API You can make this version-specific with something like: from ipapython import version if version.NUM_VERSION < 40600: from ipapython.ipa_log_manager import log_mgr console = log_mgr.get_handler('console') console.setLevel(logging.WARN) elif version.NUM_VERSION < 40700: ...something... In 4.7.0 the Forwarding is a debug level message so nothing special is needed. The something is probably going to be a somewhat ugly hack. There are no named handlers so you'll need to iterate through root_handler.handlers to find the StreamHandler for the console. You might be able to, for example, look for handler.stream.name == '<stderr>'... Or live with the Forwarding message. It doesn't hurt anything I just felt it was ugly. This has significant impact on tls-everywhere topology on all OSP versions which are about to switch to RHEL7.6 (OSP12/13/14). The command (i.e.): "/usr/libexec/novajoin-ipa-setup --principal admin --password 12345678 --server freeipa-0.redhat.local --realm REDHAT.LOCAL --domain redhat.local --hostname undercloud-0.redhat.local --precreate" fails on mentioned AttributeError. Adding external tracker for RDO patch that bumps novajoin version. Removing abandoned patch, adding new one. 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-2019:0088 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days |