For some reason... Replication stopped functioning for me.
I can't get an exact reason why this is happening... But I had to change the port of where cobbler is listening and now when I do a replicate I get ssh errors. host verifcation failed... It wanted askpass installed so I installed and now it just hangs but the process is "/usr/libexec/openssh/ssh-askpass root@cobblerserver's password:" It needs ssh keys now? what happened here? It is trying to replicate the repositories, the rsync daemon is running, why are we using ssh to replicate via the rsync daemon?
Can anyone help me understand this? I can defintely add keys, but I would like to know why it worked before without keys?
Thanks!
I was able to fix this issue by modifying the following python file.
/var/lib/python/2.4/site-packages/cobbler/action_replicate.py
Cobbler version 2.2.1
Change line 343 from self.uri = 'http://%s/cobbler_api' % cobbler_master to self.uri = 'http://%s:$PORT_NUMBER/cobbler_api' % cobbler_master
Do the same for line 347
Restart cobblerd all done :) happy replication on a different port
NOTE: I also tried adding the setting cobbler_master: $MASTER_IP
which did work, but only when I modified the action_replicate.py file as listed above
I also tried appending the port to that setting
cobbler_master: $MASTER_IP:2080
The problem with that is when it replicates the repos etc, it uses the port specified by the CLI or by the setting for the rsync port... Which does not work (rsync -avzH $MASTER_IP:$PORT::cobbler-triggers /var/lib/cobbler/triggers). So changing the action_replicate.py was the only solution I could come up with, without digging into code.
A patch for this would be awesome :)
Thanks!
----- Original Message ----- From: Russ Lavoy ussray_00@yahoo.com To: "cobbler@lists.fedorahosted.org" cobbler@lists.fedorahosted.org Cc: Sent: Thursday, January 12, 2012 11:19 AM Subject: Replication Broken for some reason
For some reason... Replication stopped functioning for me.
I can't get an exact reason why this is happening... But I had to change the port of where cobbler is listening and now when I do a replicate I get ssh errors. host verifcation failed... It wanted askpass installed so I installed and now it just hangs but the process is "/usr/libexec/openssh/ssh-askpass root@cobblerserver's password:" It needs ssh keys now? what happened here? It is trying to replicate the repositories, the rsync daemon is running, why are we using ssh to replicate via the rsync daemon?
Can anyone help me understand this? I can defintely add keys, but I would like to know why it worked before without keys?
Thanks! _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler@lists.fedorahosted.org