Puppet and foreman not talking after Foreman installer build

I have just run the foreman installer on a CentOS-6.4 box with EPEL
Puppetlabs and Foreman repos enabled.

This has given me a Puppet 3.1.1 and a Foreman 1.1stable install.

Foreman has installed and I have added the local puppet master to the smart
host but I still don't see hosts facts etc.

Checking the master I can see that the host is registered.

[root@puppet foreman]# puppet cert list --all

Running puppet agent -tv on the local master gives the following error.

[root@puppet foreman]# puppet agent -tv
Warning: Unable to fetch my node definition, but the agent run will
continue:
Warning: Error 400 on SERVER: Failed to find puppet.ops.rightster.com via
exec: Execution of '/etc/puppet/node.rb puppet.ops.rightster.com' returned
1:

Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Failed when searching for node puppet.ops.rightster.com: Failed to find
puppet.ops.rightster.com via exec: Execution of '/etc/puppet/node.rb
puppet.ops.rightster.com' returned 1:

Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run.

Docs seem a little vague can anyone shed any light? Last time I ran the
installer it just worked?

Jim

> I have just run the foreman installer on a CentOS-6.4 box with EPEL
> Puppetlabs and Foreman repos enabled.
>
> This has given me a Puppet 3.1.1 and a Foreman 1.1stable install.
>
> Foreman has installed and I have added the local puppet master to the
> smart host but I still don't see hosts facts etc.
>
> Checking the master I can see that the host is registered.
>
> [root@puppet foreman]# puppet cert list --all
> + "puppet.ops.example.com" (SHA256) "hash" (alt names: "DNS:puppet", "DNS:
> puppet.ops.example.com")
>
> Running puppet agent -tv on the local master gives the following error.
>
> [root@puppet foreman]# puppet agent -tv
> Warning: Unable to fetch my node definition, but the agent run will
> continue:
> Warning: Error 400 on SERVER: Failed to find puppet.ops.rightster.com via
> exec: Execution of '/etc/puppet/node.rb puppet.ops.rightster.com'
> returned 1:
>
> Info: Retrieving plugin
> Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
> Failed when searching for node puppet.ops.rightster.com: Failed to find
> puppet.ops.rightster.com via exec: Execution of '/etc/puppet/node.rb
> puppet.ops.rightster.com' returned 1:
>
> Warning: Not using cache on failed catalog
> Error: Could not retrieve catalog; skipping run.
>
> Docs seem a little vague can anyone shed any light? Last time I ran the
> installer it just worked?
>

anything interesting in foreman logs? does the webui work? if you exec the
node script as the puppet user, what does it show? do you have selinux
enabled etc?

Ohad

··· On Mon, May 20, 2013 at 12:55 PM, James Bailey wrote:

Jim


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Everything seemed to work from both sides but not together. I thought about
it some more last night and then changed the foreman.conf in
/etc/httpd/conf.d from an IP address to "<VirtualHost *:443>" It gave me an
Apache warning "[warn] default VirtualHost overlap on port 443, the first
has precedence" but it works.
Rackspace cloud have both public and private interfaces, I am figuring that
somehow breaks the installer for Openstack or just Rackspace clouds.

Many thanks for everyone who helped me out on IRC yesterday.

Jim

··· On 20 May 2013 12:31, Ohad Levy wrote:

On Mon, May 20, 2013 at 12:55 PM, James Bailey paradoxbound@gmail.comwrote:

I have just run the foreman installer on a CentOS-6.4 box with EPEL
Puppetlabs and Foreman repos enabled.

This has given me a Puppet 3.1.1 and a Foreman 1.1stable install.

Foreman has installed and I have added the local puppet master to the
smart host but I still don’t see hosts facts etc.

Checking the master I can see that the host is registered.

[root@puppet foreman]# puppet cert list --all

  • puppet.ops.example.com” (SHA256) “hash” (alt names: “DNS:puppet”,
    “DNS:puppet.ops.example.com”)

Running puppet agent -tv on the local master gives the following error.

[root@puppet foreman]# puppet agent -tv
Warning: Unable to fetch my node definition, but the agent run will
continue:
Warning: Error 400 on SERVER: Failed to find puppet.ops.rightster.comvia exec: Execution of ‘/etc/puppet/node.rb
puppet.ops.rightster.com’ returned 1:

Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Failed when searching for node puppet.ops.rightster.com: Failed
to find puppet.ops.rightster.com via exec: Execution of
’/etc/puppet/node.rb puppet.ops.rightster.com’ returned 1:

Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run.

Docs seem a little vague can anyone shed any light? Last time I ran the
installer it just worked?

anything interesting in foreman logs? does the webui work? if you exec the
node script as the puppet user, what does it show? do you have selinux
enabled etc?

Ohad

Jim


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.