Open akkirao opened 5 years ago
Azure_deployment should create a webapps for azure
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'"]
fail'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:639:in
block in invoke_get_one'", "/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:in
exists?'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in
retrieve'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1099:in
from_resource'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in
apply'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:277:in
call'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in
block in thinmark'", "/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in
thinmark'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in
traverse'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:171:in
block (2 levels) in apply'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:518:in
realtime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:517:in
block in apply'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:156:in
as_logging_destination'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:237:in
block (2 levels) in apply_catalog'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:518:in
block in apply_catalog'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:231:in
realtime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:230:in
apply_catalog'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:375:in
block in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in
override'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:217:in
block (5 levels) in run'", "/opt/puppetlabs/puppet/lib/ruby/2.5.0/timeout.rb:93:in
timeout'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:58:in
lock'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:52:in
with_client'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:49:in
run_in_fork'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:48:in
controlled_run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:46:in
onetime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:350:in
block in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:671:in
run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:136:in
execute'", "/opt/puppetlabs/puppet/bin/puppet:5:in
azure_deployment { 'puppetwebapp': kind => "dotnet core 2.2", resource_group_name => 'PUPPET-RG', subscription_id => xxxxxx, properties => { os => "windows", location => 'eastus', } }
$ 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
Paste any relevant logs from a puppet run and syslog/messages
Thank you @akkirao for your contribution.Will be taking a look on the issue.Thank you.
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:inblock in invoke_get_one'", "/opt/puppetlabs/puppet/cache/lib/puppet/provider/azure_deployment/azure_deployment.rb:263:in
each'", "/opt/puppetlabs/puppet/cache/lib/puppet/provider/azure_deployment/azure_deployment.rb:263:ininvoke_get_one'", "/opt/puppetlabs/puppet/cache/lib/puppet/provider/azure_deployment/azure_deployment.rb:318:in
exists_one'", "/opt/puppetlabs/puppet/cache/lib/puppet/provider/azure_deployment/azure_deployment.rb:314:inexists?'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in
retrieve'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1071:inretrieve'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1099:in
retrieve_resource'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:302:infrom_resource'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in
evaluate'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:257:inapply'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:277:in
eval_resource'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:181:incall'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:181:in
block (2 levels) in evaluate'", "/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/transaction.rb:181:in
block in evaluate'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:121:intraverse'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:171:in
evaluate'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:239:inblock (2 levels) in apply'", "/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/resource/catalog.rb:238:inblock in apply'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:156:in
with_destination'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:146:inas_logging_destination'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:237:in
apply'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:192:inblock (2 levels) in apply_catalog'", "/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/configurer.rb:191:inblock in apply_catalog'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:231:in
block in benchmark'", "/opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:inrealtime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:230:in
benchmark'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:190:inapply_catalog'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:375:in
run_internal'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:239:inblock in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in
override'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:252:inoverride'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:217:in
run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:59:inblock (5 levels) in run'", "/opt/puppetlabs/puppet/lib/ruby/2.5.0/timeout.rb:93:in
block in timeout'", "/opt/puppetlabs/puppet/lib/ruby/2.5.0/timeout.rb:103:intimeout'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:58:in
block (4 levels) in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent/locker.rb:21:inlock'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:52:in
block (3 levels) in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:130:inwith_client'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:49:in
block (2 levels) in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:87:inrun_in_fork'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:48:in
block in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:179:incontrolled_run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/agent.rb:46:in
run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:372:inonetime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/agent.rb:350:in
run_command'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:382:inblock in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:671:in
exit_on_fail'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:382:inrun'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:136:in
run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:73:inexecute'", "/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:
Logs: