#6540 Migration from ipa-3.0 fails due to crashing copy-schema-to-ca.py
Closed: fixed 2 years ago Opened 2 years ago by mbabinsk.

When testing creation of CA replica from 3.x IPA master (ipa-server-3.0.0-50.el6.1.x86_64), the copy-schema-to-ca.py script on the master crashes with the following traceback:

Traceback (most recent call last):
  File "./copy-schema-to-ca.py", line 20, in <module>
    from ipaplatform.paths import paths
ImportError: No module named ipaplatform.paths

This is a regression introduced by commit d6b755e which introduced ipaplatform module to copy-schema-to-ca.py. Keep in mind, however, that this module was introduced in FreeIPA 4.0 and does not exists on older versions.


copy-schema-to-ca.py should contain a "banner" "This must work on RHEL 6"

On PR https://github.com/freeipa/freeipa/pull/372#issuecomment-273067048 Martin Basti proposed to remove the script from FreeIPA 4.x sources and upload it to freeipa.org instead. Stanislav and I second his proposal. The script has to stay 3.x only but serves no purpose in the 4.x tree. I suggested to copy the script from an older release of FreeIPA.

Martin, the file ipaserver/install/cainstance.py mentions the script in a log message. We have to update the message, too.

Metadata Update from @mbabinsk:
- Issue assigned to cheimes
- Issue set to the milestone: FreeIPA 4.5

2 years ago

Metadata Update from @pvoborni:
- Issue close_status updated to: None
- Issue tagged with: regression

2 years ago

@mbasti / @jcholast AFAIK, you've been talking about this bug. E.g. that we can use the file from ipa-4-4 / RHEL 7.3 or remove it and add it as downstream patch on RHEL 7.4 side. Both is imho ok. Could you make it happen?

Metadata Update from @pvoborni:
- Issue assigned to mbasti (was: cheimes)

2 years ago

Metadata Update from @mbasti:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/569 (was: https://github.com/freeipa/freeipa/pull/372)

2 years ago

master:

  • f4c7f1d Remove copy-schema-to-ca.py from master branch
  • ca5b53a Add copy-schema-to-ca for RHEL6 to contrib/

Metadata Update from @mbasti:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata