#9563 ipa-migrate: AttributeError: 'Namespace' object has no attribute 'reset_range'
Closed: fixed by rcritten. Opened by sumenon.

Issue

ipa-migrate stage-mode/prod-mode -e master2.ipa1.test -x displays the below error.
AttributeError: 'Namespace' object has no attribute 'reset_range'

Steps to Reproduce

  1. Install 2 IPA servers with same REALM.
  2. Run ipa-migrate with stage/prod-mode

Actual behavior

Enter the password for cn=directory manager:
IPA to IPA migration starting ...
Migrating schema ...
Migrating configuration ...
Migrating database ... (this make take a while)
Traceback (most recent call last):
File "/usr/sbin/ipa-migrate", line 10, in
ipa_migrate.run()
File "/usr/lib/python3.12/site-packages/ipaserver/install/ipa_migrate.py", line 2003, in run
self.do_migration()
File "/usr/lib/python3.12/site-packages/ipaserver/install/ipa_migrate.py", line 1891, in do_migration
self.migrateDB()
File "/usr/lib/python3.12/site-packages/ipaserver/install/ipa_migrate.py", line 1510, in migrateDB
self.processDBOnline()
File "/usr/lib/python3.12/site-packages/ipaserver/install/ipa_migrate.py", line 1477, in processDBOnline
self.process_db_entry(entry_dn, entry_attrs)
File "/usr/lib/python3.12/site-packages/ipaserver/install/ipa_migrate.py", line 1371, in process_db_entry
local_entry = self.update_local_entry(entry_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/ipaserver/install/ipa_migrate.py", line 1268, in update_local_entry
if (self.args.reset_range or self.mode == "staging") \
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'reset_range'

Expected behavior

ipa-migrate is successful

Version/Release/Distribution

freeipa-server-4.12.0.dev-0.fc39.x86_64

Additional info:


http://freeipa-org-pr-ci.s3-website.eu-central-1.amazonaws.com/jobs/c0838630-bec9-11ee-bba2-fa163eafe69f/rpms/

This was addressed during the PR review. Marking as closed.

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

Metadata