Node created but yaml file not created

Hi,

I have one node that doesn't completely get added to foreman…
It's available in the hostslists in foreman with a bunch of facts. But it's
missing from ENC so it cannot receive it's catalog. It shouldn't be any
permission errors since I have a bunch of other nodes working.

When I start puppet agent on the node it looks like this.
vguest04:~ # /opt/tc-puppet/sbin/puppetd --onetime --no-daemonize --logdest
console
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not find node 'vguest04.unixwarez.org'; cannot compile
notice: Using cached catalog
err: Could not retrieve catalog; skipping run

On the puppet master it looks like this when i try to use ENC to find out
stuff.

[root@puppet yaml]# /etc/puppet/node.rb vguest04.unixwarez.org
Unable to read from Cache file: No such file or directory -
/var/lib/puppet/yaml/foreman/vguest04.unixwarez.org.yaml

This is /var/log/foreman/production.log.
*Processing FactValuesController#create (for 84.17.203.72 at 2012-04-25
16:27:50) [POST]
Parameters: {"action"=>"create", "facts"=>"[FILTERED]",
"controller"=>"fact_values"}
Completed in 614ms (View: 1, DB: 76) | 200 OK [
http://puppet.master/fact_values/create]

Processing ReportsController#create to yml (for 84.17.203.72 at 2012-04-25
16:28:01) [POST]
Parameters: {"action"=>"create", "controller"=>"reports",
"format"=>"yml", "report"=>"[FILTERED]"}
processing report for vguest04.unixwarez.org
Completed in 191ms (View: 1, DB: 29) | 200 OK [
http://puppet.master/reports/create?format=yml]

Processing FactValuesController#create (for 84.17.203.72 at 2012-04-25
16:28:12) [POST]
Parameters: {"action"=>"create", "facts"=>"[FILTERED]",
"controller"=>"fact_values"}
Completed in 590ms (View: 0, DB: 54) | 200 OK [
http://puppet.master/fact_values/create]*

Permissions on the master:
[root@puppet yaml]# pwd
/var/lib/puppet/yaml
[root@puppet yaml]# ls -lh
total 12K
drwxr-xr-x. 2 puppet puppet 4,0K 25 apr 13.55 facts
drwxr-x—. 2 puppet puppet 4,0K 19 apr 13.50 foreman
drwxr-xr-x. 2 puppet puppet 4,0K 19 apr 13.50 node

I need help, don't know if this is some kind of bug or not. Worth noting is
that this vguest04 is running on "new virtual hardware". All other nodes
run under VMware, this one runs under KVM.

/Raboo

> Hi,
>
> I have one node that doesn't completely get added to foreman…
> It's available in the hostslists in foreman with a bunch of facts. But
> it's missing from ENC so it cannot receive it's catalog. It shouldn't be
> any permission errors since I have a bunch of other nodes working.
>
> When I start puppet agent on the node it looks like this.
> vguest04:~ # /opt/tc-puppet/sbin/puppetd --onetime --no-daemonize
> --logdest console
> err: Could not retrieve catalog from remote server: Error 400 on SERVER:
> Could not find node 'vguest04.unixwarez.org'; cannot compile
> notice: Using cached catalog
> err: Could not retrieve catalog; skipping run

>
> On the puppet master it looks like this when i try to use ENC to find
> out stuff.

> [root@puppet yaml]# /etc/puppet/node.rb vguest04.unixwarez.org
> Unable to read from Cache file: No such file or directory -
> /var/lib/puppet/yaml/foreman/vguest04.unixwarez.org.yaml

thats exactly your issue, it looks like you have permissions problems over
there.

Ohad

··· On Fri, May 4, 2012 at 1:30 PM, Elias Abacioglu wrote:

This is /var/log/foreman/production.log.
*Processing FactValuesController#create (for 84.17.203.72 at 2012-04-25
16:27:50) [POST]
Parameters: {“action”=>“create”, “facts”=>"[FILTERED]",
“controller”=>“fact_values”}
Completed in 614ms (View: 1, DB: 76) | 200 OK [
http://puppet.master/fact_values/create]

Processing ReportsController#create to yml (for 84.17.203.72 at 2012-04-25
16:28:01) [POST]
Parameters: {“action”=>“create”, “controller”=>“reports”,
“format”=>“yml”, “report”=>"[FILTERED]"}
processing report for vguest04.unixwarez.org
Completed in 191ms (View: 1, DB: 29) | 200 OK [
http://puppet.master/reports/create?format=yml]

Processing FactValuesController#create (for 84.17.203.72 at 2012-04-25
16:28:12) [POST]
Parameters: {“action”=>“create”, “facts”=>"[FILTERED]",
“controller”=>“fact_values”}
Completed in 590ms (View: 0, DB: 54) | 200 OK [
http://puppet.master/fact_values/create]*

Permissions on the master:
[root@puppet yaml]# pwd
/var/lib/puppet/yaml
[root@puppet yaml]# ls -lh
total 12K
drwxr-xr-x. 2 puppet puppet 4,0K 25 apr 13.55 facts
drwxr-x—. 2 puppet puppet 4,0K 19 apr 13.50 foreman
drwxr-xr-x. 2 puppet puppet 4,0K 19 apr 13.50 node

I need help, don’t know if this is some kind of bug or not. Worth noting
is that this vguest04 is running on “new virtual hardware”. All other nodes
run under VMware, this one runs under KVM.

/Raboo


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

But the file aren't created.
/var/lib/puppet/yaml/foreman/vguest04.unixwarez.org.yaml
And I haven't really changed any permissions. When in the process is
that yaml file created?

··· Den den 4 maj 2012 18:48:37 skrev Ohad Levy: > > > On Fri, May 4, 2012 at 1:30 PM, Elias Abacioglu > wrote: > > Hi, > > I have one node that doesn't completely get added to foreman.. > It's available in the hostslists in foreman with a bunch of facts. > But it's missing from ENC so it cannot receive it's catalog. It > shouldn't be any permission errors since I have a bunch of other > nodes working. > > *When I start puppet agent on the node it looks like this.* > vguest04:~ # /opt/tc-puppet/sbin/puppetd --onetime --no-daemonize > --logdest console > /err: Could not retrieve catalog from remote server: Error 400 on > SERVER: Could not find node 'vguest04.unixwarez.org > '; cannot compile > notice: Using cached catalog > err: Could not retrieve catalog; skipping run/ > > *On the puppet master it looks like this when i try to use ENC to > find out stuff.* > [root@puppet yaml]# /etc/puppet/node.rb vguest04.unixwarez.org > > /Unable to read from Cache file: No such file or directory - > /var/lib/puppet/yaml/foreman/vguest04.unixwarez.org.yaml/ > > thats exactly your issue, it looks like you have permissions problems > over there. > > Ohad > > > > *This is /var/log/foreman/production.log.* > /Processing FactValuesController#create (for 84.17.203.72 at > 2012-04-25 16:27:50) [POST] > Parameters: {"action"=>"create", "facts"=>"[FILTERED]", > "controller"=>"fact_values"} > Completed in 614ms (View: 1, DB: 76) | 200 OK > [http://puppet.master/fact_values/create] > > Processing ReportsController#create to yml (for 84.17.203.72 at > 2012-04-25 16:28:01) [POST] > Parameters: {"action"=>"create", "controller"=>"reports", > "format"=>"yml", "report"=>"[FILTERED]"} > processing report for vguest04.unixwarez.org > > Completed in 191ms (View: 1, DB: 29) | 200 OK > [http://puppet.master/reports/create?format=yml] > > Processing FactValuesController#create (for 84.17.203.72 at > 2012-04-25 16:28:12) [POST] > Parameters: {"action"=>"create", "facts"=>"[FILTERED]", > "controller"=>"fact_values"} > Completed in 590ms (View: 0, DB: 54) | 200 OK > [http://puppet.master/fact_values/create]/ > > *Permissions on the master:* > [root@puppet yaml]# pwd > //var/lib/puppet/yaml/ > [root@puppet yaml]# ls -lh > /total 12K > drwxr-xr-x. 2 puppet puppet 4,0K 25 apr 13.55 facts > drwxr-x---. 2 puppet puppet 4,0K 19 apr 13.50 foreman > drwxr-xr-x. 2 puppet puppet 4,0K 19 apr 13.50 node/ > > > I need help, don't know if this is some kind of bug or not. Worth > noting is that this vguest04 is running on "new virtual hardware". > All other nodes run under VMware, this one runs under KVM. > > /Raboo > > -- > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > To post to this group, send email to > foreman-users@googlegroups.com > . > To unsubscribe from this group, send email to > foreman-users+unsubscribe@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/foreman-users?hl=en. > > > -- > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > To post to this group, send email to foreman-users@googlegroups.com. > To unsubscribe from this group, send email to > foreman-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/foreman-users?hl=en.

> But the file aren't created. /var/lib/puppet/yaml/foreman/**
> vguest04.unixwarez.org.yaml
> And I haven't really changed any permissions. When in the process is that
> yaml file created?
>

this yaml is the cache that the enc script (node) saves, the idea is
simple, that in case that foreman is unreachable, it uses the last good enc
configuration.

maybe you run the enc script as root etc…

Ohad

··· On Fri, May 4, 2012 at 9:46 PM, Elias Abacioglu wrote:

Den den 4 maj 2012 18:48:37 skrev Ohad Levy:

On Fri, May 4, 2012 at 1:30 PM, Elias Abacioglu <elias.rabi@gmail.com >> mailto:elias.rabi@gmail.com> wrote:

Hi,

I have one node that doesn’t completely get added to foreman…
It’s available in the hostslists in foreman with a bunch of facts.
But it’s missing from ENC so it cannot receive it’s catalog. It
shouldn’t be any permission errors since I have a bunch of other
nodes working.

When I start puppet agent on the node it looks like this.

vguest04:~ # /opt/tc-puppet/sbin/puppetd --onetime --no-daemonize
–logdest console
/err: Could not retrieve catalog from remote server: Error 400 on

SERVER: Could not find node ‘vguest04.unixwarez.org
http://vguest04.unixwarez.org**’; cannot compile
notice: Using cached catalog
err: Could not retrieve catalog; skipping run/

On the puppet master it looks like this when i try to use ENC to
find out stuff.

[root@puppet yaml]# /etc/puppet/node.rb vguest04.unixwarez.org
http://vguest04.unixwarez.org**
/Unable to read from Cache file: No such file or directory -
/var/lib/puppet/yaml/foreman/**vguest04.unixwarez.org.yaml/

thats exactly your issue, it looks like you have permissions problems
over there.

Ohad

*This is /var/log/foreman/production.*log.
/Processing FactValuesController#create (for 84.17.203.72 at

2012-04-25 16:27:50) [POST]
Parameters: {“action”=>“create”, “facts”=>"[FILTERED]",
“controller”=>“fact_values”}
Completed in 614ms (View: 1, DB: 76) | 200 OK
[http://puppet.master/fact_**values/createhttp://puppet.master/fact_values/create
]

Processing ReportsController#create to yml (for 84.17.203.72 at
2012-04-25 16:28:01) [POST]
Parameters: {“action”=>“create”, “controller”=>“reports”,
“format”=>“yml”, “report”=>"[FILTERED]"}
processing report for vguest04.unixwarez.org
http://vguest04.unixwarez.org**

Completed in 191ms (View: 1, DB: 29) | 200 OK
[http://puppet.master/reports/**create?format=ymlhttp://puppet.master/reports/create?format=yml
]

Processing FactValuesController#create (for 84.17.203.72 at
2012-04-25 16:28:12) [POST]
Parameters: {“action”=>“create”, “facts”=>"[FILTERED]",
“controller”=>“fact_values”}
Completed in 590ms (View: 0, DB: 54) | 200 OK
[http://puppet.master/fact_**values/create]/http://puppet.master/fact_values/create]/

Permissions on the master:
[root@puppet yaml]# pwd
//var/lib/puppet/yaml/

[root@puppet yaml]# ls -lh
/total 12K

drwxr-xr-x. 2 puppet puppet 4,0K 25 apr 13.55 facts
drwxr-x—. 2 puppet puppet 4,0K 19 apr 13.50 foreman
drwxr-xr-x. 2 puppet puppet 4,0K 19 apr 13.50 node/

I need help, don’t know if this is some kind of bug or not. Worth
noting is that this vguest04 is running on “new virtual hardware”.
All other nodes run under VMware, this one runs under KVM.

/Raboo


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To post to this group, send email to
foreman-users@googlegroups.com
<mailto:foreman-users@**googlegroups.comforeman-users@googlegroups.com

.

To unsubscribe from this group, send email to
foreman-users+unsubscribe@**googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
<mailto:foreman-users%**2Bunsubscribe@googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
**>.

For more options, visit this group at
http://groups.google.com/**group/foreman-users?hl=enhttp://groups.google.com/group/foreman-users?hl=en
.


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com**.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@**googlegroups.comforeman-users%2Bunsubscribe@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/**group/foreman-users?hl=enhttp://groups.google.com/group/foreman-users?hl=en
.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com**.
To unsubscribe from this group, send email to foreman-users+unsubscribe@**
googlegroups.com foreman-users%2Bunsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/**
group/foreman-users?hl=enhttp://groups.google.com/group/foreman-users?hl=en
.