Hi,
I have a set up in which I use Katello as the main entry point for our puppet works, then in two remote DC’s I have setup smart proxies and puppet masters. Now, I know that not having proper DNS in place is just asking for it but I cannot for the life of me crack this one.
My node definition is fine
./node.rb lrsxfcp19093.localdomain
···
---
classes:
concat::setup:
mcollective:
client: false
connector: rabbitmq
middleware_hosts:
- myhost.mydomain.com
middleware_port: '6163'
middleware_ssl_port: '6164'
psk: ne’remind
motd:
staging:
stdlib:
parameters:
puppetmaster: lrsxfcp19093.mydomain.net
hostgroup: Ops/USEC_Ops
location: USEC
organization: MySystems
root_pw:
foreman_env: KT_MySystems_Prod_Ops_3
owner_name: Luke Kearney
owner_email: luke.kearney@me.com
kt_cv: Ops
kt_env: Prod
kt_org: MySystems
environment: KT_MySystems_Prod_Ops_3
So when I run puppet I get
Debug: Starting connection for https://lrsxfcp19093.mydomain.net:8140
Debug: Caching connection for https://lrsxfcp19093.mydomain.net:8140
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Find /KT_mysystems_prod_Ops_3/node/lrsxfcp19093.localdomain?transaction_uuid=40a490d1-d420-4104-bd1f-e68eb0152c7f&fail_on_404=true resulted in 404 with the message: Not Found: Could not find environment ‘KT_mysystems_prod_Ops_3’
follow closely by
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve information from environment KT_mysystems_prod_Ops_3 source(s) puppet://lrsxfcp19093.mydomain.net/pluginfacts
then
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve information from environment KT_mysystems_prod_Ops_3 source(s) puppet://lrsxfcp19093.mydomain.net/plugins
finally
Error: Could not retrieve catalog from remote server: Find /KT_mysystems_prod_Ops_3/catalog/lrsxfcp19093.localdomain?facts=%257B%2522expiration%2522%253A%25222015-05-06T23%253A46%253A33.259109000-07%253A00%2522%252C%2522name%2522%253A%2522lrsxfcp19093.localdomain
What am I missing here ?
Any pointers appreciated
LukeK
found the answer - most of brain was missing there was a mismatch in the spelling of the environment, the puppet.conf and what was on the file system in /etc/puppet/environments - well 2 out of three matched but that was what did it.
···
> On May 7, 2015, at 3:38 PM, Luke Kearney wrote:
>
> Hi,
>
> I have a set up in which I use Katello as the main entry point for our puppet works, then in two remote DC’s I have setup smart proxies and puppet masters. Now, I know that not having proper DNS in place is just asking for it but I cannot for the life of me crack this one.
>
> My node definition is fine
>
> # ./node.rb lrsxfcp19093.localdomain
> ---
> classes:
> concat::setup:
> mcollective:
> client: false
> connector: rabbitmq
> middleware_hosts:
> - myhost.mydomain.com
> middleware_port: '6163'
> middleware_ssl_port: '6164'
> psk: ne’remind
> motd:
> staging:
> stdlib:
> parameters:
> puppetmaster: lrsxfcp19093.mydomain.net
> hostgroup: Ops/USEC_Ops
> location: USEC
> organization: MySystems
> root_pw:
> foreman_env: KT_MySystems_Prod_Ops_3
> owner_name: Luke Kearney
> owner_email: luke.kearney@me.com
> kt_cv: Ops
> kt_env: Prod
> kt_org: MySystems
> environment: KT_MySystems_Prod_Ops_3
>
> So when I run puppet I get
>
> Debug: Starting connection for https://lrsxfcp19093.mydomain.net:8140
> Debug: Caching connection for https://lrsxfcp19093.mydomain.net:8140
> Warning: Unable to fetch my node definition, but the agent run will continue:
> Warning: Find /KT_mysystems_prod_Ops_3/node/lrsxfcp19093.localdomain?transaction_uuid=40a490d1-d420-4104-bd1f-e68eb0152c7f&fail_on_404=true resulted in 404 with the message: Not Found: Could not find environment ‘KT_mysystems_prod_Ops_3'
>
> follow closely by
>
> Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve information from environment KT_mysystems_prod_Ops_3 source(s) puppet://lrsxfcp19093.mydomain.net/pluginfacts
>
> then
>
> Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve information from environment KT_mysystems_prod_Ops_3 source(s) puppet://lrsxfcp19093.mydomain.net/plugins
>
> finally
>
> Error: Could not retrieve catalog from remote server: Find /KT_mysystems_prod_Ops_3/catalog/lrsxfcp19093.localdomain?facts=%257B%2522expiration%2522%253A%25222015-05-06T23%253A46%253A33.259109000-07%253A00%2522%252C%2522name%2522%253A%2522lrsxfcp19093.localdomain
>