Weird error message

22 views
Skip to first unread message

Martin Englund

unread,
Oct 30, 2008, 12:38:23 PM10/30/08
to puppet...@googlegroups.com
Folks,

I'm getting a strange error message from puppet:
Thu Oct 30 09:30:27 -0700 2008 //Node[default]/base/zfs/File[/usr/ops/
bin/create-zpool.sh] (err): Failed to retrieve current state of
resource: undefined method `[]' for :che:Symbol

I thought I'd ask if someone has seen this before I start digging
deeper.

cheers,
/Martin
--
Martin Englund, Security Engineer, .Sun Engineering, Sun Microsystems
Inc.
Email: martin....@sun.com Time Zone: GMT+1 PGP: 1024D/AA514677
"The question is not if you are paranoid, it is if you are paranoid
enough."

Andrew Shafer

unread,
Oct 30, 2008, 12:45:26 PM10/30/08
to puppet...@googlegroups.com

What does the definition of that file resource look like?

martin

unread,
Oct 30, 2008, 2:47:38 PM10/30/08
to Puppet Users
It is very ordinary:

file { "/usr/ops/bin/create-zpool.sh":
owner => root,
group => root,
mode => 755,
source => "puppet:///files/usr/ops/bin/create-
zpool.sh",
ensure => present
}

/M

On Oct 30, 5:45 pm, "Andrew Shafer" <and...@reductivelabs.com> wrote:
> What does the definition of that file resource look like?
>
> On Thu, Oct 30, 2008 at 10:38 AM, Martin Englund <Martin.Engl...@sun.com>wrote:
>
>
>
> > Folks,
>
> > I'm getting a strange error message from puppet:
> > Thu Oct 30 09:30:27 -0700 2008 //Node[default]/base/zfs/File[/usr/ops/
> > bin/create-zpool.sh] (err): Failed to retrieve current state of
> > resource: undefined method `[]' for :che:Symbol
>
> > I thought I'd ask if someone has seen this before I start digging
> > deeper.
>
> > cheers,
> > /Martin
> > --
> > Martin Englund, Security Engineer, .Sun Engineering, Sun Microsystems
> > Inc.
> > Email: martin.engl...@sun.com  Time Zone: GMT+1  PGP: 1024D/AA514677

Andrew Shafer

unread,
Oct 30, 2008, 4:44:11 PM10/30/08
to puppet...@googlegroups.com

What does --trace look like?

martin

unread,
Oct 30, 2008, 5:14:02 PM10/30/08
to Puppet Users
Like this:

info: Loading fact location
info: Loading fact zpool
info: Loading fact zonename
info: Retrieving facts
info: Loading fact location
info: Loading fact zpool
info: Loading fact zonename
info: Caching catalog at /vr/puppet/state/localconfig.yaml
notice: Starting catalog run
/usr/ops/lib/ruby/site_ruby/1.8/puppet/type.rb:2392:in `cached'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/type/file/checksum.rb:75:in
`cache'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/type/file/checksum.rb:129:in
`currentsum'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/type/file/checksum.rb:233:in
`retrieve'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/type.rb:924:in
`currentpropvalues'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/util/posix.rb:133:in `inject'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/type.rb:916:in `each'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/type.rb:916:in `inject'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/type.rb:916:in
`currentpropvalues'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/type/file.rb:823:in `retrieve'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/type.rb:833:in `evaluate'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/transaction.rb:60:in `apply'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/transaction.rb:239:in
`eval_resource'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/util.rb:445:in `thinmark'
/usr/ops/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/transaction.rb:238:in
`eval_resource'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/transaction.rb:310:in
`evaluate'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/util.rb:445:in `thinmark'
/usr/ops/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/transaction.rb:309:in
`evaluate'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/transaction.rb:303:in `collect'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/transaction.rb:303:in
`evaluate'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/node/catalog.rb:124:in `apply'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:256:in
`run'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/util.rb:212:in `benchmark'
/usr/ops/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/util.rb:211:in `benchmark'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:255:in
`run'
/usr/ops/lib/ruby/1.8/sync.rb:229:in `synchronize'
/usr/ops/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:237:in
`run'
/usr/ops/bin/puppetd:417
err: //Node[default]/base/zfs/File[/usr/ops/bin/create-zpool.sh]:
Failed to retrieve current state of resource: undefined method `[]'
for :che:Symbol
info: Sent transaction report in 0.15 seconds
notice: Finished catalog run in 1.18 seconds

/M

On Oct 30, 9:44 pm, "Andrew Shafer" <and...@reductivelabs.com> wrote:
> What does --trace look like?
>

Andrew Shafer

unread,
Oct 31, 2008, 3:01:47 AM10/31/08
to puppet...@googlegroups.com
This only happens on one file, right?

Unless I'm reading the stack and the code wrong, I suspect there is something corrupted in the yaml cache for the md5.

Let's try removing that and see if it works.  Don't just delete it though, send it to the list and let's see if there is some forensic value.  If that doesn't fix it, then this is truly curious and time to roll up the sleeves... :/

martin

unread,
Nov 5, 2008, 3:25:27 PM11/5/08
to Puppet Users
It turned out that the file had gotten corrupted and unfortunately my
fingers were faster than my brain, so I managed to delete the file
before I could send it to the list...

If it happens again I'll make sure to save a copy :)

cheers,
/Martin

On Oct 31, 8:01 am, "Andrew Shafer" <and...@reductivelabs.com> wrote:
> This only happens on one file, right?
>
> Unless I'm reading the stack and the code wrong, I suspect there is
> something corrupted in the yaml cache for the md5.
>
> Let's try removing that and see if it works.  Don't just delete it though,
> send it to the list and let's see if there is some forensic value.  If that
> doesn't fix it, then this is truly curious and time to roll up the
> sleeves... :/
>
Reply all
Reply to author
Forward
0 new messages