puppetlabs / puppetlabs-azure_arm

The Puppet Azure ARM Module
Apache License 2.0
4 stars 15 forks source link

Azure_deployment having issues with no parameter slot #18

Open akkirao opened 5 years ago

akkirao commented 5 years ago

What you expected to happen?

Azure_deployment should create a webapps for azure

What happened?

Alert: Exception during exists_one. ex is Invalid parameter slot(:slot) and backtrace is ["/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/errors.rb:157:in fail'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:639:in[]'", "/opt/puppetlabs/puppet/cache/lib/puppet/provider/azure_deployment/azure_deployment.rb:275:in block in invoke_get_one'", "/opt/puppetlabs/puppet/cache/lib/puppet/provider/azure_deployment/azure_deployment.rb:263:ineach'", "/opt/puppetlabs/puppet/cache/lib/puppet/provider/azure_deployment/azure_deployment.rb:263:in invoke_get_one'", "/opt/puppetlabs/puppet/cache/lib/puppet/provider/azure_deployment/azure_deployment.rb:318:inexists_one'", "/opt/puppetlabs/puppet/cache/lib/puppet/provider/azure_deployment/azure_deployment.rb:314:in exists?'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:inretrieve'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1071:in retrieve'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1099:inretrieve_resource'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:302:in from_resource'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:inevaluate'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:257:in apply'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:277:ineval_resource'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in call'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:181:inblock (2 levels) in evaluate'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:518:in block in thinmark'", "/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:inrealtime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:517:in thinmark'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:181:inblock in evaluate'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:121:in traverse'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:171:inevaluate'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:239:in block (2 levels) in apply'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:518:inblock in thinmark'", "/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in realtime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:517:inthinmark'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:238:in block in apply'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:156:inwith_destination'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:146:in as_logging_destination'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:237:inapply'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:192:in block (2 levels) in apply_catalog'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:518:inblock in thinmark'", "/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in realtime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:517:inthinmark'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:191:in block in apply_catalog'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:231:inblock in benchmark'", "/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in realtime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:230:inbenchmark'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:190:in apply_catalog'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:375:inrun_internal'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:239:in block in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:inoverride'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:252:in override'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:217:inrun'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:59:in block (5 levels) in run'", "/opt/puppetlabs/puppet/lib/ruby/2.5.0/timeout.rb:93:inblock in timeout'", "/opt/puppetlabs/puppet/lib/ruby/2.5.0/timeout.rb:103:in timeout'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:58:inblock (4 levels) in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent/locker.rb:21:in lock'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:52:inblock (3 levels) in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:130:in with_client'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:49:inblock (2 levels) in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:87:in run_in_fork'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:48:inblock in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:179:in controlled_run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:46:inrun'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:372:in onetime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:350:inrun_command'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:382:in block in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:671:inexit_on_fail'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:382:in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:136:inrun'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:73:in execute'", "/opt/puppetlabs/puppet/bin/puppet:5:in

'"]

How to reproduce it?

azure_deployment { 'puppetwebapp': kind => "dotnet core 2.2", resource_group_name => 'PUPPET-RG', subscription_id => xxxxxx, properties => { os => "windows", location => 'eastus', } }

Anything else we need to know?

Versions:

$ puppet apply <manifest in question> --debug --trace

$ puppet --version
6.0.4
$ facter os
{
  architecture => "amd64",
  distro => {
    codename => "bionic",
    description => "Ubuntu 18.04.1 LTS",
    id => "Ubuntu",
    release => {
      full => "18.04",
      major => "18.04"
    }
  },
  family => "Debian",
  hardware => "x86_64",
  name => "Ubuntu",
  release => {
    full => "18.04",
    major => "18.04"
  },
  selinux => {
    enabled => false
  }
}
$ puppet module list

Logs:

Paste any relevant logs from a puppet run and syslog/messages
sheenaajay commented 5 years ago

Thank you @akkirao for your contribution.Will be taking a look on the issue.Thank you.