I''m trying to use the ''interface'' type resource for
setting up
interface aliases. I''m using
Puppet version 0.24.1, CentOS 5.
My nodes.pp:
node "dev2" {
interface { "10.0.1.201":
ensure => "present",
interface => "eth0",
interface_type => "alias",
netmask => "255.255.255.0",
}
}
puppetd --test gives the following errors:
err: Could not prefetch interface provider ''redhat'': undefined
method
`bootproto='' for
#<Puppet::Type::Interface::ProviderRedhat:0xb78cc8ac>
err: //Node[dev2]/Interface[10.0.1.201]: Failed to retrieve current
state of resource: undefined method `[]'' for
#<Puppet::Type::Interface::ProviderRedhat:0xb7825638>
I see that there was a ticket submitted for what looks like a similar
problem, but it was marked as fixed back in November 2007:
http://reductivelabs.com/trac/puppet/ticket/762
Has anyone else encountered this?
Thanks!
-Andrew Otto
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andrew Otto wrote:
| I''m trying to use the ''interface'' type resource for
setting up interface
| aliases. I''m using
| Puppet version 0.24.1, CentOS 5.
|
| My nodes.pp:
| node "dev2" {
| interface { "10.0.1.201":
| ensure => "present",
| interface => "eth0",
| interface_type => "alias",
| netmask => "255.255.255.0",
| }
| }
|
| puppetd --test gives the following errors:
|
|
| err: Could not prefetch interface provider ''redhat'':
undefined method
| `bootproto='' for
#<Puppet::Type::Interface::ProviderRedhat:0xb78cc8ac>
| err: //Node[dev2]/Interface[10.0.1.201]: Failed to retrieve current
| state of resource: undefined method `[]'' for
| #<Puppet::Type::Interface::ProviderRedhat:0xb7825638>
|
Andrew
Can you run this with --trace enabled and provide the output please? I
think I know what''s happening but want to confirm.
Cheers
James
- --
James Turnbull (james@lovedthanlost.net)
- --
Author of:
- - Pulling Strings with Puppet
(http://www.amazon.com/gp/product/1590599780/)
- - Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)
- - Hardening Linux
(http://www.amazon.com/gp/product/1590594444/)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHq+zf9hTGvAxC30ARApkxAKCOekDuWIlWbWN2S8HiLx2ia5OHLACePSK4
kvtn7SdWMiMXVXZQsvfV/UY=hvCY
-----END PGP SIGNATURE-----
> Can you run this with --trace enabled and provide the output please?Yup, here it is: $ puppetd --test --trace notice: Ignoring cache info: Caching catalog at /var/puppet/state/localconfig.yaml notice: Starting catalog run /usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:103:in `send'' /usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:103:in `parse'' /usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:101:in `each'' /usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:101:in `parse'' /usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:60:in `instances'' /usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:59:in `collect'' /usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:59:in `instances'' /usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:112:in `prefetch'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:492:in `prefetch'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:489:in `each'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:489:in `prefetch'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:504:in `prepare'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:301:in `evaluate'' /usr/lib/ruby/site_ruby/1.8/puppet/node/catalog.rb:102:in `apply'' /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:260:in `run'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:212:in `benchmark'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:211:in `benchmark'' /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:259:in `run'' /usr/lib/ruby/1.8/sync.rb:229:in `synchronize'' /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:241:in `run'' /usr/sbin/puppetd:429 err: Could not prefetch interface provider ''redhat'': undefined method `bootproto='' for #<Puppet::Type::Interface::ProviderRedhat:0xb79a5c10> info: /Schedule[daily]: Evaluated in 0.00 seconds info: /Filebucket[puppet]: Evaluated in 0.00 seconds info: /Schedule[weekly]: Evaluated in 0.00 seconds info: /Schedule[puppet]: Evaluated in 0.00 seconds /usr/lib/ruby/site_ruby/1.8/puppet/provider.rb:359:in `name'' /usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:154:in `file_path'' /usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:135:in `exists?'' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:517:in `retrieve'' /usr/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:103:in `currentpropvalues'' /usr/lib/ruby/site_ruby/1.8/puppet/external/gratr/search.rb:325:in `inject'' /usr/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:101:in `each'' /usr/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:101:in `inject'' /usr/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:101:in `currentpropvalues'' /usr/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:94:in `retrieve'' /usr/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:23:in `evaluate'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:60:in `apply'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:240:in `eval_resource'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:443:in `thinmark'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:239:in `eval_resource'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:311:in `evaluate'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:443:in `thinmark'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:310:in `evaluate'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:304:in `collect'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:304:in `evaluate'' /usr/lib/ruby/site_ruby/1.8/puppet/node/catalog.rb:102:in `apply'' /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:260:in `run'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:212:in `benchmark'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:211:in `benchmark'' /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:259:in `run'' /usr/lib/ruby/1.8/sync.rb:229:in `synchronize'' /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:241:in `run'' /usr/sbin/puppetd:429 err: //Node[dev2]/Interface[10.0.1.201]: Failed to retrieve current state of resource: undefined method `[]'' for #<Puppet::Type::Interface::ProviderRedhat:0xb799bf30> info: //Node[dev2]/Interface[10.0.1.201]: Evaluated in 0.02 seconds info: /Schedule[monthly]: Evaluated in 0.00 seconds info: /Schedule[hourly]: Evaluated in 0.00 seconds info: /Schedule[never]: Evaluated in 0.00 seconds Changes: Resources: Failed: 1 Scheduled: 8 Total: 10 Time: Config retrieval: 1.59 Filebucket: 0.00 Interface: 0.02 Schedule: 0.00 Total: 1.60 info: Sent transaction report in 0.16 seconds notice: Finished catalog run in 0.46 seconds On Feb 8, 2008, at 12:47 PM, James Turnbull wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Andrew Otto wrote: > | I''m trying to use the ''interface'' type resource for setting up > interface > | aliases. I''m using > | Puppet version 0.24.1, CentOS 5. > | > | My nodes.pp: > | node "dev2" { > | interface { "10.0.1.201": > | ensure => "present", > | interface => "eth0", > | interface_type => "alias", > | netmask => "255.255.255.0", > | } > | } > | > | puppetd --test gives the following errors: > | > | > | err: Could not prefetch interface provider ''redhat'': undefined > method > | `bootproto='' for #<Puppet::Type::Interface::ProviderRedhat: > 0xb78cc8ac> > | err: //Node[dev2]/Interface[10.0.1.201]: Failed to retrieve current > | state of resource: undefined method `[]'' for > | #<Puppet::Type::Interface::ProviderRedhat:0xb7825638> > | > > Andrew > > Can you run this with --trace enabled and provide the output > please? I > think I know what''s happening but want to confirm. > > Cheers > > James > > - -- > James Turnbull (james@lovedthanlost.net) > - -- > Author of: > - - Pulling Strings with Puppet > (http://www.amazon.com/gp/product/1590599780/) > - - Pro Nagios 2.0 > (http://www.amazon.com/gp/product/1590596099/) > - - Hardening Linux > (http://www.amazon.com/gp/product/1590594444/) > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFHq+zf9hTGvAxC30ARApkxAKCOekDuWIlWbWN2S8HiLx2ia5OHLACePSK4 > kvtn7SdWMiMXVXZQsvfV/UY> =hvCY > -----END PGP SIGNATURE----- > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users
James, Did the stack trace help? Any idea what the problem is? Thanks, -Andrew On Feb 8, 2008, at 12:47 PM, James Turnbull wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Andrew Otto wrote: > | I''m trying to use the ''interface'' type resource for setting up > interface > | aliases. I''m using > | Puppet version 0.24.1, CentOS 5. > | > | My nodes.pp: > | node "dev2" { > | interface { "10.0.1.201": > | ensure => "present", > | interface => "eth0", > | interface_type => "alias", > | netmask => "255.255.255.0", > | } > | } > | > | puppetd --test gives the following errors: > | > | > | err: Could not prefetch interface provider ''redhat'': undefined > method > | `bootproto='' for #<Puppet::Type::Interface::ProviderRedhat: > 0xb78cc8ac> > | err: //Node[dev2]/Interface[10.0.1.201]: Failed to retrieve current > | state of resource: undefined method `[]'' for > | #<Puppet::Type::Interface::ProviderRedhat:0xb7825638> > | > > Andrew > > Can you run this with --trace enabled and provide the output > please? I > think I know what''s happening but want to confirm. > > Cheers > > James > > - -- > James Turnbull (james@lovedthanlost.net) > - -- > Author of: > - - Pulling Strings with Puppet > (http://www.amazon.com/gp/product/1590599780/) > - - Pro Nagios 2.0 > (http://www.amazon.com/gp/product/1590596099/) > - - Hardening Linux > (http://www.amazon.com/gp/product/1590594444/) > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFHq+zf9hTGvAxC30ARApkxAKCOekDuWIlWbWN2S8HiLx2ia5OHLACePSK4 > kvtn7SdWMiMXVXZQsvfV/UY> =hvCY > -----END PGP SIGNATURE----- > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andrew Otto wrote: | James, | | Did the stack trace help? Any idea what the problem is? | | Thanks, | -Andrew Sorry Andrew - run off my feet and haven''t a chance to look at this. Will try today. Regards James - -- James Turnbull (james@lovedthanlost.net) - -- Author of: - - Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) - - Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) - - Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHsgqB9hTGvAxC30ARAiU7AJ0ZNPBRVHf4R3NPqwn0N2fuHhFHUwCffyKO IRfDOK7OSEUwg5ku7XOMv8Q=ZpZi -----END PGP SIGNATURE-----
Quite alright, there''s no hurry, I''m super busy with other (mostly puppet) things as well. Thanks! -Andrew On Feb 13, 2008, at 4:07 AM, James Turnbull wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Andrew Otto wrote: > | James, > | > | Did the stack trace help? Any idea what the problem is? > | > | Thanks, > | -Andrew > > Sorry Andrew - run off my feet and haven''t a chance to look at this. > Will try today. > > Regards > > James > > - -- > James Turnbull (james@lovedthanlost.net) > - -- > Author of: > - - Pulling Strings with Puppet > (http://www.amazon.com/gp/product/1590599780/) > - - Pro Nagios 2.0 > (http://www.amazon.com/gp/product/1590596099/) > - - Hardening Linux > (http://www.amazon.com/gp/product/1590594444/) > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFHsgqB9hTGvAxC30ARAiU7AJ0ZNPBRVHf4R3NPqwn0N2fuHhFHUwCffyKO > IRfDOK7OSEUwg5ku7XOMv8Q> =ZpZi > -----END PGP SIGNATURE----- > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andrew Otto wrote: | Quite alright, there''s no hurry, I''m super busy with other (mostly | puppet) things as well. | | Thanks! | -Andrew | On Feb 13, 2008, at 4:07 AM, James Turnbull wrote: | | Andrew Otto wrote: | | James, | | | | Did the stack trace help? Any idea what the problem is? | | | | Thanks, | | -Andrew | | Sorry Andrew - run off my feet and haven''t a chance to look at this. | Will try today. | Andrew Can you provide me the content of the interface file that is erroring? Thanks James - -- James Turnbull (james@lovedthanlost.net) - -- Author of: - - Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) - - Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) - - Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHsr879hTGvAxC30ARAnzxAJ4rchKBZm8JgO73DEDQhlz1Bf2NgwCdHH6F bJA0erO62MjpI5kHcsnl2pE=3aco -----END PGP SIGNATURE-----
On Feb 7, 2008, at 11:53 PM, Andrew Otto wrote:> > On Feb 8, 2008, at 12:47 PM, James Turnbull wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Andrew Otto wrote: >> | I''m trying to use the ''interface'' type resource for setting up >> interface >> | aliases. I''m using >> | Puppet version 0.24.1, CentOS 5. >> | >> | My nodes.pp: >> | node "dev2" { >> | interface { "10.0.1.201": >> | ensure => "present", >> | interface => "eth0", >> | interface_type => "alias", >> | netmask => "255.255.255.0", >> | } >> | } >> | >> | puppetd --test gives the following errors: >> | >> | >> | err: Could not prefetch interface provider ''redhat'': undefined >> method >> | `bootproto='' for #<Puppet::Type::Interface::ProviderRedhat: >> 0xb78cc8ac> >> | err: //Node[dev2]/Interface[10.0.1.201]: Failed to retrieve current >> | state of resource: undefined method `[]'' for >> | #<Puppet::Type::Interface::ProviderRedhat:0xb7825638>Based on your stack trace, this is a new problem -- Puppet currently apparently has no ability to manage the bootproto, but you''ve got it in your interface file, so Puppet''s puking on it. It should be an easy fix -- just skip reading that line. Please file this as a bug. -- A little government and a little luck are necessary in life, but only a fool trusts either of them. -- P. J. O''Rourke --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 | Based on your stack trace, this is a new problem -- Puppet currently | apparently has no ability to manage the bootproto, but you''ve got it | in your interface file, so Puppet''s puking on it. It should be an | easy fix -- just skip reading that line. | | Please file this as a bug. Yes that was my thought. Log the bug and I''ll fix it quickly - or maybe even look at the bootproto support again in my copious spare time. Regards James - -- James Turnbull (james@lovedthanlost.net) - -- Author of: - - Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) - - Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) - - Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHsv459hTGvAxC30ARApr1AJ4y5CgR7yWnkJDX9mQmLCsOJKCCEQCfWLlL VKaNVT63M11EXtXZ2lKlErk=IYCY -----END PGP SIGNATURE-----
Sorry its taken me to long to get back on this, but oh boy, it''d be
nice to have an interface type.
I removed the BOOTPROTO line from icfg-eth0, but now it complains
about the HWADDR. If I take out HWADDR (which is probably is not a
good idea), it complains about NETWORK. If I take out NETWORK, it
complains about GATEWAY. If I take out GATEWAY, it complains about
BROADCAST. Finally, I take out BROADCAST, and it complains about
''[]''. I''ve even tried removing both my ifcfg-eth0
and ifcfg-lo files
to see what puppet does. I get no complaints about
"Could not prefetch interface provider ''redhat''... "
but I still get the same
"Failed to retrieve current state of resource: undefined method
`[]''..."
at the bottom of the output.
Below is the puppet output and trace for when my ifcfg* files are in
place, but with the mentioned properties commented out in ifcfg-eth0.
Thanks for any help on this, I can''t wait to be able to use the
interface resource type.
-Andrew
My interface declaration:
node "dev1" {
interface { "192.168.10.229":
interface_type => "alias",
interface => "eth0",
ensure => "present",
netmask => "255.255.255.0",
}
}
My current eth0 interface file (with lots of commenting out):
[root@dev1 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-
eth0
cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Realtek Semiconductor Co., Ltd. RTL-8029(AS)
DEVICE=eth0
ONBOOT=yes
#HWADDR=00:1c:42:af:2b:83
IPADDR=192.168.10.228
NETMASK=255.255.255.0
#NETWORK=192.168.10.0
ONBOOT=yes
#GATEWAY=192.168.10.1
#BROADCAST=192.168.10.255
[root@dev1 network-scripts]# puppetd --test --trace
notice: Ignoring cache
info: Caching catalog at /var/puppet/state/localconfig.yaml
notice: Starting catalog run
/usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:63:in
`instances''
/usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:59:in
`collect''
/usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:59:in
`instances''
/usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:112:in
`prefetch''
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:492:in `prefetch''
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:489:in `each''
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:489:in `prefetch''
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:504:in `prepare''
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:301:in `evaluate''
/usr/lib/ruby/site_ruby/1.8/puppet/node/catalog.rb:102:in `apply''
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:260:in
`run''
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:212:in `benchmark''
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure''
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime''
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:211:in `benchmark''
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:259:in
`run''
/usr/lib/ruby/1.8/sync.rb:229:in `synchronize''
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:241:in
`run''
/usr/sbin/puppetd:429
err: Could not prefetch interface provider ''redhat'': undefined
method
`[]'' for #<Puppet::Type::Interface::ProviderRedhat:0xb79870a8>
info: /Schedule[weekly]: Evaluated in 0.00 seconds
info: /Schedule[puppet]: Evaluated in 0.00 seconds
/usr/lib/ruby/site_ruby/1.8/puppet/provider.rb:359:in `name''
/usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:154:in
`file_path''
/usr/lib/ruby/site_ruby/1.8/puppet/provider/interface/redhat.rb:135:in
`exists?''
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:517:in `retrieve''
/usr/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:103:in
`currentpropvalues''
/usr/lib/ruby/site_ruby/1.8/puppet/external/gratr/search.rb:325:in
`inject''
/usr/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:101:in `each''
/usr/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:101:in
`inject''
/usr/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:101:in
`currentpropvalues''
/usr/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:94:in
`retrieve''
/usr/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:23:in
`evaluate''
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:60:in `apply''
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:240:in
`eval_resource''
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark''
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure''
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime''
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:443:in `thinmark''
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:239:in
`eval_resource''
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:311:in `evaluate''
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark''
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure''
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime''
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:443:in `thinmark''
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:310:in `evaluate''
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:304:in `collect''
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:304:in `evaluate''
/usr/lib/ruby/site_ruby/1.8/puppet/node/catalog.rb:102:in `apply''
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:260:in
`run''
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:212:in `benchmark''
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure''
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime''
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:211:in `benchmark''
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:259:in
`run''
/usr/lib/ruby/1.8/sync.rb:229:in `synchronize''
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:241:in
`run''
/usr/sbin/puppetd:429
err: //Node[dev1]/Interface[192.168.10.229]: Failed to retrieve
current state of resource: undefined method `[]'' for
#<Puppet::Type::Interface::ProviderRedhat:0xb797f1c8>
info: //Node[dev1]/Interface[192.168.10.229]: Evaluated in 0.01 seconds
info: /Schedule[monthly]: Evaluated in 0.00 seconds
info: /Schedule[hourly]: Evaluated in 0.00 seconds
info: /Schedule[never]: Evaluated in 0.00 seconds
info: /Schedule[daily]: Evaluated in 0.00 seconds
info: /Filebucket[puppet]: Evaluated in 0.00 seconds
Changes:
Resources:
Failed: 1
Scheduled: 8
Total: 10
Time:
Config retrieval: 0.84
Filebucket: 0.00
Interface: 0.01
Schedule: 0.00
Total: 0.85
info: Sent transaction report in 0.11 seconds
notice: Finished catalog run in 0.38 seconds
On Feb 13, 2008, at 4:58 PM, James Turnbull wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Andrew Otto wrote:
> | Quite alright, there''s no hurry, I''m super busy with
other (mostly
> | puppet) things as well.
> |
> | Thanks!
> | -Andrew
> | On Feb 13, 2008, at 4:07 AM, James Turnbull wrote:
> |
> | Andrew Otto wrote:
> | | James,
> | |
> | | Did the stack trace help? Any idea what the problem is?
> | |
> | | Thanks,
> | | -Andrew
> |
> | Sorry Andrew - run off my feet and haven''t a chance to look at
this.
> | Will try today.
> |
>
> Andrew
>
> Can you provide me the content of the interface file that is erroring?
>
> Thanks
>
> James
>
> - --
> James Turnbull (james@lovedthanlost.net)
> - --
> Author of:
> - - Pulling Strings with Puppet
> (http://www.amazon.com/gp/product/1590599780/)
> - - Pro Nagios 2.0
> (http://www.amazon.com/gp/product/1590596099/)
> - - Hardening Linux
> (http://www.amazon.com/gp/product/1590594444/)
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHsr879hTGvAxC30ARAnzxAJ4rchKBZm8JgO73DEDQhlz1Bf2NgwCdHH6F
> bJA0erO62MjpI5kHcsnl2pE> =3aco
> -----END PGP SIGNATURE-----
> _______________________________________________
> Puppet-users mailing list
> Puppet-users@madstop.com
> https://mail.madstop.com/mailman/listinfo/puppet-users