undefined local variable or method `model' for #<Puppet::Type::Neutron_network::ProviderNeutron:0x00000001dd9ea0> puppet4

Bug #1466555 reported by Lukas Bezdicka
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
puppet-neutron
Invalid
Critical
Unassigned

Bug Description

Looks like model.catalog is no longer available in puppet4

code in question:
      tenant_id = self.class.get_tenant_id(model.catalog,
                                           @resource[:tenant_name])

Info: Applying configuration version '1434641415'
Debug: Prefetching openstack resources for keystone_tenant
Debug: Executing: '/bin/openstack project list --quiet --format csv --long'
Debug: Prefetching neutron resources for neutron_network
Debug: Executing: '/bin/neutron net-list --format=csv --column=id --quote=none'
Error: Could not set 'present' on ensure: undefined local variable or method `model' for #<Puppet::Type::Neutron_network::ProviderNeutron:0x00000001dd9ea0> at 69:/var/tmp/packstack/20150616-100116-zSS2xT/manifests/192.168.124.84_provision_demo.pp
/usr/share/openstack-puppet/modules/neutron/lib/puppet/provider/neutron_network/neutron.rb:61:in `create'
/usr/share/ruby/vendor_ruby/puppet/property/ensure.rb:16:in `block in defaultvalues'
/usr/share/ruby/vendor_ruby/puppet/property.rb:427:in `set'
/usr/share/ruby/vendor_ruby/puppet/property.rb:501:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:209:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:219:in `eval_resource'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
/usr/share/ruby/vendor_ruby/puppet/util.rb:284:in `block in thinmark'
/usr/share/ruby/benchmark.rb:303:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
/usr/share/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `block in apply'
/usr/share/ruby/vendor_ruby/puppet/util/log.rb:153:in `with_destination'
/usr/share/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:121:in `block in apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/util.rb:129:in `block in benchmark'
/usr/share/ruby/benchmark.rb:303:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:128:in `benchmark'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:120:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:136:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:223:in `override'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:135:in `run'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:318:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:252:in `block in main'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:223:in `override'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
/usr/share/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/util.rb:438:in `exit_on_fail'
/usr/share/ruby/vendor_ruby/puppet/application.rb:344:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:124:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
/usr/bin/puppet:5:in `<main>'
Error: Could not set 'present' on ensure: undefined local variable or method `model' for #<Puppet::Type::Neutron_network::ProviderNeutron:0x00000001dd9ea0> at 69:/var/tmp/packstack/20150616-100116-zSS2xT/manifests/192.168.124.84_provision_demo.pp
/usr/share/openstack-puppet/modules/neutron/lib/puppet/provider/neutron_network/neutron.rb:61:in `create'
/usr/share/ruby/vendor_ruby/puppet/property/ensure.rb:16:in `block in defaultvalues'
/usr/share/ruby/vendor_ruby/puppet/property.rb:427:in `set'
/usr/share/ruby/vendor_ruby/puppet/property.rb:501:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:209:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:219:in `eval_resource'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
/usr/share/ruby/vendor_ruby/puppet/util.rb:284:in `block in thinmark'
/usr/share/ruby/benchmark.rb:303:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
/usr/share/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `block in apply'
/usr/share/ruby/vendor_ruby/puppet/util/log.rb:153:in `with_destination'
/usr/share/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:121:in `block in apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/util.rb:129:in `block in benchmark'
/usr/share/ruby/benchmark.rb:303:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:128:in `benchmark'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:120:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:136:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:223:in `override'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:135:in `run'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:318:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:252:in `block in main'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:223:in `override'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
/usr/share/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/util.rb:438:in `exit_on_fail'
/usr/share/ruby/vendor_ruby/puppet/application.rb:344:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:124:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
/usr/bin/puppet:5:in `<main>'
Wrapped exception:
undefined local variable or method `model' for #<Puppet::Type::Neutron_network::ProviderNeutron:0x00000001dd9ea0>
/usr/share/openstack-puppet/modules/neutron/lib/puppet/provider/neutron_network/neutron.rb:61:in `create'
/usr/share/ruby/vendor_ruby/puppet/property/ensure.rb:16:in `block in defaultvalues'
/usr/share/ruby/vendor_ruby/puppet/property.rb:427:in `set'
/usr/share/ruby/vendor_ruby/puppet/property.rb:501:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:209:in `sync'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:134:in `sync_if_needed'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:in `perform_changes'
/usr/share/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:204:in `apply'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:219:in `eval_resource'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `call'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block (2 levels) in evaluate'
/usr/share/ruby/vendor_ruby/puppet/util.rb:284:in `block in thinmark'
/usr/share/ruby/benchmark.rb:303:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:283:in `thinmark'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:147:in `block in evaluate'
/usr/share/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/share/ruby/vendor_ruby/puppet/transaction.rb:138:in `evaluate'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:178:in `block in apply'
/usr/share/ruby/vendor_ruby/puppet/util/log.rb:153:in `with_destination'
/usr/share/ruby/vendor_ruby/puppet/transaction/report.rb:107:in `as_logging_destination'
/usr/share/ruby/vendor_ruby/puppet/resource/catalog.rb:177:in `apply'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:121:in `block in apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/util.rb:129:in `block in benchmark'
/usr/share/ruby/benchmark.rb:303:in `realtime'
/usr/share/ruby/vendor_ruby/puppet/util.rb:128:in `benchmark'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:120:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:227:in `run_internal'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:136:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:223:in `override'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:135:in `run'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:318:in `apply_catalog'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:252:in `block in main'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:223:in `override'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:198:in `main'
/usr/share/ruby/vendor_ruby/puppet/application/apply.rb:159:in `run_command'
/usr/share/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/util.rb:438:in `exit_on_fail'
/usr/share/ruby/vendor_ruby/puppet/application.rb:344:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:124:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
/usr/bin/puppet:5:in `<main>'
Error: /Stage[main]/Main/Neutron_network[private]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined local variable or method `model' for #<Puppet::Type::Neutron_network::ProviderNeutron:0x00000001dd9ea0> at 69:/var/tmp/packstack/20150616-100116-zSS2xT/manifests/192.168.124.84_provision_demo.pp
Debug: Class[Main]: Resource is being skipped, unscheduling all events
Debug: Stage[main]: Resource is being skipped, unscheduling all events
Debug: Finishing transaction 23857060
Debug: Storing state
Debug: Stored state in 0.31 seconds
Notice: Applied catalog in 7.38 seconds
Debug: Finishing transaction 32698440
Debug: Received report to process from controller-f22
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (cache ttl: 0)
Debug: Processing report from controller-f22 with processor Puppet::Reports::Store

Changed in puppet-neutron:
importance: Undecided → Critical
status: New → Confirmed
assignee: nobody → Lukas Bezdicka (social-b)
Changed in puppet-neutron:
assignee: Lukas Bezdicka (social-b) → Sidharth Nandury (nsidharth1991)
assignee: Sidharth Nandury (nsidharth1991) → nobody
Revision history for this message
Brent Eagles (beagles) wrote :

This bug hasn't seen any activity for some several years. Should it be closed/marked incomplete and dropped in severity?

Changed in puppet-neutron:
status: Confirmed → Incomplete
Revision history for this message
Brent Eagles (beagles) wrote :

I'll answer my own question and mark incomplete. It can be reopened if necessary.

Changed in puppet-neutron:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.