Bug 1762317
Summary: | ipa-backup command is failing on rhel-7.8 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Mohammad Rizwan <myusuf> |
Component: | ipa | Assignee: | Florence Blanc-Renaud <frenaud> |
Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
Severity: | unspecified | Docs Contact: | Katerina Nemcova <knemcova> |
Priority: | unspecified | ||
Version: | 7.8 | CC: | abokovoy, frenaud, lmanasko, mmcgrath, ndehadra, pasik, rcritten, ssidhaye, tborcin, tscherf |
Target Milestone: | rc | Keywords: | Regression, TestBlocker |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ipa-4.6.6-9.el7 | Doc Type: | Known Issue |
Doc Text: |
.The `ipa-backup` command fails to create a backup on RHEL 7
Due to recent modifications, the `ipa-backup` utility is only compatible with Python 3. However, RHEL 7 uses Python 2. As a consequence, the `ipa-backup` command fails while creating a backup on RHEL 7 and returns an error instead.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-03-31 19:55:52 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: | |||
Bug Blocks: | 1744146 |
Description
Mohammad Rizwan
2019-10-16 14:05:01 UTC
The issue happens on python2 only. The interface on python2 is the following: os.mkdir(path[, mode]) while on python3: os.mkdir(path, mode=0o777, *, dir_fd=None) The regression was added with commit e6415ec3210cda0808867642cb19f0df1ddd3c45 on branches master, ipa-4-8, ipa-4-7 and ipa-4-6, but does not raise any issue on platforms using python3. Upstream ticket: https://pagure.io/freeipa/issue/8099 Fixed upstream master: https://pagure.io/freeipa/c/921f500240fc0861e099a97a2b412e8610eaf198 Fixed upstream ipa-4-8: https://pagure.io/freeipa/c/4c24d013674aa7291302b1c35a269b079d739c4a ipa-4-7: https://pagure.io/freeipa/c/3a399e1dfa4d64ad1a1030f86dbdb13486aa69f7 ipa-4-6: https://pagure.io/freeipa/c/11921266df6e2600afc207b3a721f00bc7e63e99 Is there a known workaround for this? (In reply to Mike McGrath from comment #8) > Is there a known workaround for this? Unfortunately, not. It is Python 2 versus Python 3 API change. Python 3 supports both old and new way of specifying permissions but Python 2 only supports the old one, as an argument and not a keyword. A fix is one-liner. Version: ipa-server-4.6.6-9.el7.x86_64 Based on logs in comment#14, marking it as a verified. 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-2020:1083 |