Hi,
Notifying foreman about successful host build doesn't work for me.
This shows up in foreman production log:
Started GET "/unattended/built?token=a8b7240a-506e-42a6-b8c9-ee2699b56fe9"
for 10.11.63.2 at 2014-09-14 21:22:35 +0000
Processing by UnattendedController#built as /
Parameters: {"token"=>"a8b7240a-506e-42a6-b8c9-ee2699b56fe9"}
Found dnstest.mydomain.net
unattended: dnstest.mydomain.net is Built!
DHCP records dnstest.mydomain.net-52:54:00:48:e3:59/10.0.210.254 already
exists
DNS A Records dnstest.mydomain.net/10.0.210.254 already exists
DHCP records dnstest.mydomain.net-52:54:00:48:e3:59/10.0.210.254 already
exists
DNS A Records dnstest.mydomain.net/10.0.210.254 already exists
Completed 409 Conflict in 1669ms (ActiveRecord: 18.4ms)
And when I try to notify manually I get the same error on the client:
wget --no-check-certificate
http://10.11.10.210:80/unattended/built?token=a8b7240a-506e-42a6-b8c9-ee2699b56fe9
–2014-09-14 21:16:41–
http://10.11.10.210/unattended/built?token=a8b7240a-506e-42a6-b8c9-ee2699b56fe9
Connecting to 10.11.10.210:80… connected.
HTTP request sent, awaiting response… 409 Conflict
2014-09-14 21:16:42 ERROR 409: Conflict.
I thought it is this bug Bug #2279: ERROR 409: Conflict - Foreman or it's
related to Bug #4375: Kickstart provisioning is on a loop when using compute profiles with ovirt Compute Resource. - Foreman as mentioned in the
last comment, but I'm using KVM not oVirt (occurs on bare metal too), and I
have the same problem on ubuntu clients as well, while the reported bug
showed up only on CentOS'es, so I think there's something wrong with my
config.
If I remove my host's DHCP/DNS entries by hand, wget finishes properly
without any errors, but my host is still being left in the building stage.
I have 2 proxys in two networks, one with TFTP, DNS, DHCP, Puppet, and
Puppet CA and another only with TFTP, DHCP - the problem occurs when using
either of them.
I'm using:
rubygem-hammer_cli_foreman-0.1.3-1.el6.noarch
ruby193-rubygem-foreman_bootdisk-3.1.2-1.el6.noarch
foreman-selinux-1.6.0-1.el6.noarch
foreman-postgresql-1.6.0-1.el6.noarch
foreman-1.6.0-1.el6.noarch
foreman-installer-1.6.0-1.el6.noarch
foreman-libvirt-1.6.0-1.el6.noarch
foreman-cli-1.6.0-1.el6.noarch
foreman-proxy-1.6.0-1.el6.noarch
ruby193-rubygem-foreman_setup-2.0.4-1.el6.noarch
foreman-compute-1.6.0-1.el6.noarch
foreman-console-1.6.0-1.el6.noarch
foreman-release-1.6.0-1.el6.noarch
on my foreman host and proxy (CentOS 6.5)
Has anyone stumbled upon such problem?