#3656 [RFE] FreeIPA-to-FreeIPA migration
Closed: fixed by frenaud. Opened by rcritten.

Provide a tool to migrate from IPA to IPA.

Currently IPA can migrate users and groups from a generic LDAP server, but if you already have an IPA deployment there is currently no mechanism to migrate IPA-specific data such as SUDO rules, HBAC, automount, hosts, services, etc (these last two may not be possible as re-enrollment of the client is required).


Unless we can preserve the kerberos keys and certs and migrate them to the new system. Thsi would generally mean that we carry over all the master keys and certs too.

Simo had worked out a way to preserve the Kerberos master key long ago. I'm not sure if it is still applicable today.

My thought was that you end up with a new Kerberos master key and a new CA, which means that all migrated principals need new keytabs, and certificates are excluded from the migration.

Related discussion: http://www.redhat.com/archives/freeipa-users/2014-January/msg00243.html

From Pter Spacek:

May be that we could provide a tool for FreeIPA domain rename, so you can create replica, disconnect the replica and then rename the FreeIPA domain to something else (renaming would include master-key regeneration etc.).

This solves two problems at once:

  • FreeIPA-to-FreeIPA migration
  • FreeIPA domain renaming

Related ticket solving migration from Kerberos realm: #4285.

There is an existing thesis topic proposal for this RFE: ​https://thesis-managementsystem.rhcloud.com/topic/show/215/freeipa-to-freeipa-migration

Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1301664

Metadata Update from @rcritten:
- Issue assigned to someone
- Issue set to the milestone: Future Releases

Metadata Update from @mkosek:
- Custom field affects_doc reset
- Custom field design adjusted to https://www.freeipa.org/page/V4/FreeIPA_to_FreeIPA_Migration
- Custom field tester adjusted to wanted
- Issue close_status updated to: None

Additional user stories:

As an IPA administrator I want to migrate IPA from dev/staging environment to production environment.

As an IPA administrator I want to migrate from one operating system to another. I.e. Fedora/CentOS to RHEL.

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1465917 (was: https://bugzilla.redhat.com/show_bug.cgi?id=1301664)

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1465917 (was: https://bugzilla.redhat.com/show_bug.cgi?id=1301664)

Issue linked to bug 1465917

master:

  • d4859db4ef775f1ac06f768dcc53daeb315b1c96 Design for IPA-to-IPA migration

master:

  • 5c8614157d5546033528f92700f5abfebd4e5838 Issue 3656 - Extend schema function to return MAY or MUST attrs

ipa-4-11:

  • 6dc987aa3140ec0cd2686584e6c2c444e8089c1a Issue 3656 - Extend schema function to return MAY or MUST attrs

master:

  • cbe18735913aa1d033937088c1f2628a962a9254 IPA-to-IPA migration tool (beta)

Metadata Update from @abbra:
- Custom field changelog adjusted to FreeIPA 4.12 adds a new specialized tool to migrate IPA-specific data between FreeIPA deployments. This allows to migrate between development/staging and production environments, as well as create new environment based on old setup. More information about supported features and semantics can be found at https://freeipa.readthedocs.io/en/latest/designs/ipa_to_ipa_migration.html

Metadata Update from @abbra:
- Custom field design adjusted to https://freeipa.readthedocs.io/en/latest/designs/ipa_to_ipa_migration.html (was: https://www.freeipa.org/page/V4/FreeIPA_to_FreeIPA_Migration)

master:

  • 03ba8d425227486f09b1436ab580286d97eeabe3 ipatests: Fixes for ipa-ipa-migration tool

ipa-4-12:

  • c294b7f6dbcae9c01d5366b19b3b070ffb730fa6 ipatests: Fixes for ipa-ipa-migration tool

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

Metadata