#6003 execution of copy-schema script fails
Closed: Fixed Opened by pvoborni.

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

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:

Caused by: 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.

master:

  • f3858be6e353fadf0b1da1c31b908264ddd636c5 Fix wrong imports in copy-schema-to-ca.py

Metadata Update from @pvoborni:
- Issue assigned to stlaz
- Issue set to the milestone: FreeIPA 4.4

Metadata