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.

Bug 1350695

Summary: execution of copy-schema script fails
Product: Red Hat Enterprise Linux 7 Reporter: Kaleem <ksiddiqu>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED ERRATA QA Contact: Kaleem <ksiddiqu>
Severity: high Docs Contact:
Priority: high    
Version: 7.3CC: mbasti, nsoman, pvoborni, rcritten
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.4.0-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 05:55:31 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 Kaleem 2016-06-28 07:16:47 UTC
Description of problem:

While execution our migration test suite where we create 7.3 replica from 6.8 master, we need to copy copy-schema-to-ca.py from 7.3 vm on 6.8 Master and run it there . but i do see following error

[root@dhcp207-6 ~]# python copy-schema-to-ca.py 
Traceback (most recent call last):
  File "copy-schema-to-ca.py", line 24, in <module>
    from ipaplatform.constants import constants
ImportError: No module named ipaplatform.constants
[root@dhcp207-6 ~]#

Version-Release number of selected component (if applicable):
[root@dhcp207-129 ~]# rpm -q ipa-server
ipa-server-4.4.0-0.el7.2.alpha1.x86_64
[root@dhcp207-129 ~]# 

How reproducible:
Always

Steps to Reproduce:
1. Copy copy-schema-to-ca.py from RHEL-7.3 vm to RHEL-6.8 vm 
2. On RHEL-6.8 vm , run copy-schema-to-ca.py
3.

Actual results:
Execution of script fails

Expected results:
Execution of script should have been successful .

Additional info:

Comment 1 Petr Vobornik 2016-06-28 07:31:18 UTC
Caused by: https://git.fedorahosted.org/cgit/freeipa.git/commit/?id=49be6c8d3cc20902dbe8e92a74e31aed2fd21d9f

copy-schema-to-ca.py part of the patch should be reverted.

commits:
e4075b1fe26a608cd1f3778ee1f655a5f5700c65 Remove unused imports
27dabb45282911e375336f75934af9dd6cc5d963 Modernize 'except' clauses
b8c46f2a32d0d8c2dc6ef0867f85f63cf076a004 Modernize number literals

Should be also investigated if they doesn't cause issues on RHEL 6.

Comment 2 Petr Vobornik 2016-06-28 07:33:51 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/6003

Comment 5 Martin Bašti 2016-06-30 12:29:22 UTC
Fixed upstream
master:
https://fedorahosted.org/freeipa/changeset/f3858be6e353fadf0b1da1c31b908264ddd636c5

Comment 7 Kaleem 2016-07-05 04:09:15 UTC
Verified.

IPA Server version:
===================
[root@dhcp207-47 ~]# rpm -q ipa-server
ipa-server-4.4.0-1.el7.x86_64
[root@dhcp207-47 ~]# 

Snip from console output:
=========================
[root@dhcp207-46 ~]# python copy-schema-to-ca.py
ipa         : INFO     Installed /etc/dirsrv/slapd-PKI-IPA//schema/60kerberos.ldif
ipa         : INFO     Installed /etc/dirsrv/slapd-PKI-IPA//schema/60samba.ldif
ipa         : INFO     Installed /etc/dirsrv/slapd-PKI-IPA//schema/60ipaconfig.ldif
ipa         : INFO     Installed /etc/dirsrv/slapd-PKI-IPA//schema/60basev2.ldif
ipa         : INFO     Installed /etc/dirsrv/slapd-PKI-IPA//schema/60basev3.ldif
ipa         : INFO     Installed /etc/dirsrv/slapd-PKI-IPA//schema/60ipadns.ldif
ipa         : INFO     Installed /etc/dirsrv/slapd-PKI-IPA//schema/61kerberos-ipav3.ldif
ipa         : INFO     Installed /etc/dirsrv/slapd-PKI-IPA//schema/65ipasudo.ldif
ipa         : INFO     Installed /etc/dirsrv/slapd-PKI-IPA//schema/05rfc2247.ldif
ipa         : INFO     Restarting CA DS
ipa         : INFO     Schema updated successfully
[root@dhcp207-46 ~]# ipactl restart
Restarting Directory

Comment 9 errata-xmlrpc 2016-11-04 05:55:31 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://rhn.redhat.com/errata/RHBA-2016-2404.html