#2030 If master has leftover replica agreement from a previous failed attempt, next replica install can fail
Closed: Fixed None Opened 12 years ago by rcritten.

https://bugzilla.redhat.com/show_bug.cgi?id=748987

Description of problem:
Created replica package on master, installed replica. But because of a bug in
bind-dyndb-ldap, replica install failed when using setup-dns (bug 748901). So
using same replica package, or after generating new package, replica install
still failed when not using setup-dns (avoid this option to workaround bug
748901). This time with error that it "Failed to start replication"

Had to run:
ipa-replica-manage del ipa-replica.testrelm --force
to delete/clean any replication agreement, and then was able to install
successfully.

Would be nice to have an error that specifically suggested to delete the
replication agreement to be able to install successfully.

ipareplica-install.log had:
2011-10-25 10:45:42,124 DEBUG stdout=Shutting down dirsrv:
    TESTRELM...^[[60G[^[[0;32m  OK  ^[[0;39m]^M
Starting dirsrv:
    TESTRELM...^[[60G[^[[0;32m  OK  ^[[0;39m]^M

2011-10-25 10:45:42,124 DEBUG stderr=
2011-10-25 10:45:43,553 DEBUG Failed to start replication
  File "/usr/sbin/ipa-replica-install", line 482, in <module>
    main()

  File "/usr/sbin/ipa-replica-install", line 433, in main
    ds = install_replica_ds(config)

  File "/usr/sbin/ipa-replica-install", line 135, in install_replica_ds
    pkcs12_info)

  File "/usr/lib/python2.6/site-packages/ipaserver/install/dsinstance.py", line
284, in create_replica
    self.start_creation("Configuring directory server", 60)

  File "/usr/lib/python2.6/site-packages/ipaserver/install/service.py", line
248, in start_creation
    method()

  File "/usr/lib/python2.6/site-packages/ipaserver/install/dsinstance.py", line
297, in __setup_replica
    r_bindpw=self.dm_password)

  File "/usr/lib/python2.6/site-packages/ipaserver/install/replication.py",
line 694, in setup_replication
    raise RuntimeError("Failed to start replication")




Version-Release number of selected component (if applicable):
ipa-server-2.1.3-3.el6.x86_64

How reproducible:
if replica install failed in an attempt

Steps to Reproduce:
1. on master, prepare replica package, then use it to install replica, where
the install fails
2. now install replica again, where you know it should pass


Actual results:
fails with error - Failed to start replication

Expected results:
fail with error - delete replication agreement from master

Additional info:

Metadata Update from @rcritten:
- Issue assigned to rcritten
- Issue set to the milestone: FreeIPA 3.0 Core Effort - 2012/05

7 years ago

Login to comment on this ticket.

Metadata