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 1494198

Summary: ipa-replica-manage re-initialize TypeError: 'NoneType' object does not support item assignment
Product: Red Hat Enterprise Linux 7 Reporter: Marc Sauton <msauton>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.4CC: ekeck, frenaud, gparente, lkrispen, mrhodes, msauton, myusuf, ndehadra, pasik, pvoborni, rcritten, spoore, tbordaz, tscherf
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ipa-4.6.4-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1615966 (view as bug list) Environment:
Last Closed: 2018-10-30 10:57:10 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:
Bug Depends On:    
Bug Blocks: 1615966    
Attachments:
Description Flags
Detailed test_simple_replication test run none

Comment 12 Petr Vobornik 2017-10-13 16:44:56 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/7201

Comment 13 fbarreto 2017-12-27 15:59:28 UTC
I'm not sure if I understand what is the problem here. I've tried to reproduce the problem (setting up a master and a replica) and `ipa-replica-manage --verbose re-initialize --from` works for me. 

What should I do to reproduce it?

Comment 15 Florence Blanc-Renaud 2018-02-20 08:51:14 UTC
Fixed upstream

master:
    ece17ce Check if replication agreement exist before enable/disable it
ipa-4-6:
    0e2c854 Check if replication agreement exist before enable/disable it

Comment 16 Marc Sauton 2018-05-17 16:51:57 UTC
we need to get the upstream fix in RHEL-7.5.z with flags set into this RHEL-7.6 bug report.
RHEL-7.4 customers are hitting this defect.
this is a problem for new RHEL IdM customers.

Comment 27 Scott Poore 2018-08-07 16:26:02 UTC
Created attachment 1474049 [details]
Detailed test_simple_replication test run

Verified using simple_replication integration test.

Version ::
ipa-server-4.6.4-3.el7.x86_64
389-ds-base-1.3.8.4-9.el7.x86_64


Results ::

========================================= test session starts =========================================
platform linux2 -- Python 2.7.5 -- py-1.4.32 -- pytest-2.7.0 -- /usr/bin/python2
rootdir: /usr/lib/python2.7/site-packages/ipatests/test_integration, inifile: 
plugins: multihost, sourceorder, beakerlib
collected 3 items 

test_integration/test_simple_replication.py::TestSimpleReplication::test_user_replication_to_replica <ipatests.pytest_plugins.integration.config.Config object at 0x7f4eea46b750>
PASSED
test_integration/test_simple_replication.py::TestSimpleReplication::test_user_replication_to_master PASSED
test_integration/test_simple_replication.py::TestSimpleReplication::test_replica_removal PASSED



No failures seen with test_user_replication_to_replica

Comment 29 Florence Blanc-Renaud 2018-08-14 14:03:46 UTC
ipa-4-5:

    25f28b0 Check if replication agreement exist before enable/disable it

Comment 33 errata-xmlrpc 2018-10-30 10:57:10 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://access.redhat.com/errata/RHBA-2018:3187