Derek Cole
2013-Nov-20 17:22 UTC
[Puppet Users] cloudstack_resources not working as expected
Hello, I have cloned the cloudstack_resources git repo into my puppet modules directory. I have a working cloudstack management server up and going. here is my modules/infra/manifests/init.pp file class infra { cloudstack_instance { ''foo'': ensure=>present, flavor => ''Small Instance'', zone => ''ash-dev-xs-zone'', image => ''FreeBSD10 Puppet Install'', group =>''role=transit'', } } here is my site.pp node ''dev.mydomain.local'' {include infra } where dev.mydomain.local is the hostname of my puppetmaster box. And here is the error I get when I ''puppet apply site.pp'' on my puppetmaster box Any help is appreciated. Error trace follows Thanks! Debug: Prefetching default resources for cloudstack_instance Error: Could not prefetch cloudstack_instance provider ''default'': undefined method `[]'' for nil:NilClass /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet_x/cloudstack/transport.rb:24:in `retrieve'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:27:in `connection'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:11:in `instances'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:15:in `prefetch'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:264:in `prefetch'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `prefetch_if_necessary'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:62:in `block in evaluate'' /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:116:in `call'' /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:116:in `traverse'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:95:in `evaluate'' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:164:in `block in apply'' /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:147:in `with_destination'' /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:108:in `as_logging_destination'' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:163:in `apply'' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:125:in `block in apply_catalog'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:182:in `block in benchmark'' /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:181:in `benchmark'' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:124:in `apply_catalog'' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:190:in `run'' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:273:in `apply_catalog'' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:223:in `main'' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:151:in `run_command'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) in run'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:457:in `plugin_hook'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:511:in `exit_on_fail'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute'' /usr/bin/puppet:4:in `<main>'' Error: Could not set ''present'' on ensure: undefined method `[]'' for nil:NilClass at 8:/work/ac/tools/puppet/dev-puppetmaster/modules/infra/manifests/init.pp /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet_x/cloudstack/transport.rb:24:in `retrieve'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:27:in `connection'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:31:in `connection'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:52:in `get_id_from_model'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:96:in `get_flavor_id'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:41:in `create'' /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:16:in `block in defaultvalues'' /usr/lib/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod'' /usr/lib/ruby/vendor_ruby/puppet/property.rb:498:in `set'' /usr/lib/ruby/vendor_ruby/puppet/property.rb:581:in `sync'' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:113:in `apply_parameter'' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:55:in `perform_changes'' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:138:in `evaluate'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:161:in `apply'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:174:in `eval_resource'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `call'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `block (2 levels) in evaluate'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:354:in `block in thinmark'' /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:353:in `thinmark'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `block in evaluate'' /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:95:in `evaluate'' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:164:in `block in apply'' /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:147:in `with_destination'' /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:108:in `as_logging_destination'' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:163:in `apply'' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:125:in `block in apply_catalog'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:182:in `block in benchmark'' /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:181:in `benchmark'' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:124:in `apply_catalog'' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:190:in `run'' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:273:in `apply_catalog'' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:223:in `main'' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:151:in `run_command'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) in run'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:457:in `plugin_hook'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:511:in `exit_on_fail'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute'' /usr/bin/puppet:4:in `<main>'' Error: Could not set ''present'' on ensure: undefined method `[]'' for nil:NilClass at 8:/work/ac/tools/puppet/dev-puppetmaster/modules/infra/manifests/init.pp /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet_x/cloudstack/transport.rb:24:in `retrieve'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:27:in `connection'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:31:in `connection'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:52:in `get_id_from_model'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:96:in `get_flavor_id'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:41:in `create'' /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:16:in `block in defaultvalues'' /usr/lib/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod'' /usr/lib/ruby/vendor_ruby/puppet/property.rb:498:in `set'' /usr/lib/ruby/vendor_ruby/puppet/property.rb:581:in `sync'' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:113:in `apply_parameter'' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:55:in `perform_changes'' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:138:in `evaluate'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:161:in `apply'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:174:in `eval_resource'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `call'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `block (2 levels) in evaluate'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:354:in `block in thinmark'' /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:353:in `thinmark'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `block in evaluate'' /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:95:in `evaluate'' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:164:in `block in apply'' /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:147:in `with_destination'' /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:108:in `as_logging_destination'' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:163:in `apply'' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:125:in `block in apply_catalog'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:182:in `block in benchmark'' /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:181:in `benchmark'' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:124:in `apply_catalog'' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:190:in `run'' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:273:in `apply_catalog'' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:223:in `main'' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:151:in `run_command'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) in run'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:457:in `plugin_hook'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:511:in `exit_on_fail'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute'' /usr/bin/puppet:4:in `<main>'' Wrapped exception: undefined method `[]'' for nil:NilClass /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet_x/cloudstack/transport.rb:24:in `retrieve'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:27:in `connection'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:31:in `connection'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:52:in `get_id_from_model'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:96:in `get_flavor_id'' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:41:in `create'' /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:16:in `block in defaultvalues'' /usr/lib/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod'' /usr/lib/ruby/vendor_ruby/puppet/property.rb:498:in `set'' /usr/lib/ruby/vendor_ruby/puppet/property.rb:581:in `sync'' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:113:in `apply_parameter'' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:55:in `perform_changes'' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:138:in `evaluate'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:161:in `apply'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:174:in `eval_resource'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `call'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `block (2 levels) in evaluate'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:354:in `block in thinmark'' /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:353:in `thinmark'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `block in evaluate'' /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:95:in `evaluate'' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:164:in `block in apply'' /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:147:in `with_destination'' /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:108:in `as_logging_destination'' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:163:in `apply'' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:125:in `block in apply_catalog'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:182:in `block in benchmark'' /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:181:in `benchmark'' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:124:in `apply_catalog'' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:190:in `run'' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:273:in `apply_catalog'' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:223:in `main'' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:151:in `run_command'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) in run'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:457:in `plugin_hook'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run'' /usr/lib/ruby/vendor_ruby/puppet/util.rb:511:in `exit_on_fail'' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute'' /usr/bin/puppet:4:in `<main>'' Error: /Stage[main]/Infra/Cloudstack_instance[foo]/ensure: change from absent to present failed: Could not set ''present'' on ensure: undefined method `[]'' for nil:NilClass at 8:/work/ac/tools/puppet/dev-puppetmaster/modules/infra/manifests/init.pp -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/da23b4ed-aa38-4f8e-a94e-f9f7bd0c3768%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Derek Cole
2013-Nov-20 19:10 UTC
[Puppet Users] Re: cloudstack_resources not working as expected
Well apparently my transport.yaml file was not formatted correcly. I had everything starting at column zero, and when I added a tab to make the spacing for the lines under cloudstack: be indented, it worked. :shrug: On Wednesday, November 20, 2013 12:22:11 PM UTC-5, Derek Cole wrote:> > Hello, > > I have cloned the cloudstack_resources git repo into my puppet modules > directory. > > I have a working cloudstack management server up and going. > here is my modules/infra/manifests/init.pp file > > class infra { > cloudstack_instance { ''foo'': > ensure=>present, > flavor => ''Small Instance'', > zone => ''ash-dev-xs-zone'', > image => ''FreeBSD10 Puppet Install'', > group =>''role=transit'', > } > } > > here is my site.pp > > node ''dev.mydomain.local'' {include infra } > > where dev.mydomain.local is the hostname of my puppetmaster box. > > > And here is the error I get when I ''puppet apply site.pp'' on my > puppetmaster box > > Any help is appreciated. Error trace follows > > Thanks! > > > Debug: Prefetching default resources for cloudstack_instance > Error: Could not prefetch cloudstack_instance provider ''default'': > undefined method `[]'' for nil:NilClass > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet_x/cloudstack/transport.rb:24:in > `retrieve'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:27:in > `connection'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:11:in > `instances'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:15:in > `prefetch'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:264:in `prefetch'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in > `prefetch_if_necessary'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:62:in `block in evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:116:in `call'' > /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:116:in > `traverse'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:95:in `evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:164:in `block in > apply'' > /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:147:in `with_destination'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:108:in > `as_logging_destination'' > /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:163:in `apply'' > /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:125:in `block in > apply_catalog'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:182:in `block in benchmark'' > /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:181:in `benchmark'' > /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:124:in `apply_catalog'' > /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:190:in `run'' > /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:273:in > `apply_catalog'' > /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:223:in `main'' > /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:151:in `run_command'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) > in run'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:457:in `plugin_hook'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:511:in `exit_on_fail'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'' > /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'' > /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute'' > /usr/bin/puppet:4:in `<main>'' > Error: Could not set ''present'' on ensure: undefined method `[]'' for > nil:NilClass at > 8:/work/ac/tools/puppet/dev-puppetmaster/modules/infra/manifests/init.pp > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet_x/cloudstack/transport.rb:24:in > `retrieve'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:27:in > `connection'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:31:in > `connection'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:52:in > `get_id_from_model'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:96:in > `get_flavor_id'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:41:in > `create'' > /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:16:in `block in > defaultvalues'' > /usr/lib/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod'' > /usr/lib/ruby/vendor_ruby/puppet/property.rb:498:in `set'' > /usr/lib/ruby/vendor_ruby/puppet/property.rb:581:in `sync'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:113:in > `apply_parameter'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:55:in > `perform_changes'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:138:in > `evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:161:in `apply'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:174:in `eval_resource'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `call'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `block (2 levels) > in evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:354:in `block in thinmark'' > /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:353:in `thinmark'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `block in evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in > `traverse'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:95:in `evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:164:in `block in > apply'' > /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:147:in `with_destination'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:108:in > `as_logging_destination'' > /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:163:in `apply'' > /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:125:in `block in > apply_catalog'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:182:in `block in benchmark'' > /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:181:in `benchmark'' > /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:124:in `apply_catalog'' > /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:190:in `run'' > /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:273:in > `apply_catalog'' > /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:223:in `main'' > /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:151:in `run_command'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) > in run'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:457:in `plugin_hook'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:511:in `exit_on_fail'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'' > /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'' > /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute'' > /usr/bin/puppet:4:in `<main>'' > Error: Could not set ''present'' on ensure: undefined method `[]'' for > nil:NilClass at > 8:/work/ac/tools/puppet/dev-puppetmaster/modules/infra/manifests/init.pp > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet_x/cloudstack/transport.rb:24:in > `retrieve'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:27:in > `connection'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:31:in > `connection'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:52:in > `get_id_from_model'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:96:in > `get_flavor_id'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:41:in > `create'' > /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:16:in `block in > defaultvalues'' > /usr/lib/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod'' > /usr/lib/ruby/vendor_ruby/puppet/property.rb:498:in `set'' > /usr/lib/ruby/vendor_ruby/puppet/property.rb:581:in `sync'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:113:in > `apply_parameter'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:55:in > `perform_changes'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:138:in > `evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:161:in `apply'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:174:in `eval_resource'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `call'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `block (2 levels) > in evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:354:in `block in thinmark'' > /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:353:in `thinmark'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `block in evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in > `traverse'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:95:in `evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:164:in `block in > apply'' > /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:147:in `with_destination'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:108:in > `as_logging_destination'' > /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:163:in `apply'' > /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:125:in `block in > apply_catalog'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:182:in `block in benchmark'' > /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:181:in `benchmark'' > /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:124:in `apply_catalog'' > /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:190:in `run'' > /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:273:in > `apply_catalog'' > /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:223:in `main'' > /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:151:in `run_command'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) > in run'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:457:in `plugin_hook'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:511:in `exit_on_fail'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'' > /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'' > /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute'' > /usr/bin/puppet:4:in `<main>'' > Wrapped exception: > undefined method `[]'' for nil:NilClass > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet_x/cloudstack/transport.rb:24:in > `retrieve'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:27:in > `connection'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:31:in > `connection'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:52:in > `get_id_from_model'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:96:in > `get_flavor_id'' > /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:41:in > `create'' > /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:16:in `block in > defaultvalues'' > /usr/lib/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod'' > /usr/lib/ruby/vendor_ruby/puppet/property.rb:498:in `set'' > /usr/lib/ruby/vendor_ruby/puppet/property.rb:581:in `sync'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:113:in > `apply_parameter'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:55:in > `perform_changes'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:138:in > `evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:161:in `apply'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:174:in `eval_resource'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `call'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `block (2 levels) > in evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:354:in `block in thinmark'' > /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:353:in `thinmark'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `block in evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in > `traverse'' > /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:95:in `evaluate'' > /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:164:in `block in > apply'' > /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:147:in `with_destination'' > /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:108:in > `as_logging_destination'' > /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:163:in `apply'' > /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:125:in `block in > apply_catalog'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:182:in `block in benchmark'' > /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:181:in `benchmark'' > /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:124:in `apply_catalog'' > /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:190:in `run'' > /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:273:in > `apply_catalog'' > /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:223:in `main'' > /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:151:in `run_command'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) > in run'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:457:in `plugin_hook'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run'' > /usr/lib/ruby/vendor_ruby/puppet/util.rb:511:in `exit_on_fail'' > /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'' > /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'' > /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute'' > /usr/bin/puppet:4:in `<main>'' > Error: /Stage[main]/Infra/Cloudstack_instance[foo]/ensure: change from > absent to present failed: Could not set ''present'' on ensure: undefined > method `[]'' for nil:NilClass at > 8:/work/ac/tools/puppet/dev-puppetmaster/modules/infra/manifests/init.pp > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0438938b-d52e-4593-b3d2-66dfdd299909%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.