puppetlabs / puppetlabs-azure_arm

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

Frequent ruby gems error .with azure_resource_group #13

Closed akkirao closed 5 years ago

akkirao commented 5 years ago

Alert: ex is Unable to get oauth2 token - response is # and body is and backtrace is ["/etc/puppetlabs/code/environments/production/modules/azure_arm/lib/puppet/provider/azure_resource_group/azure_resource_group.rb:425:in fetch_oauth2_token'", "/etc/puppetlabs/code/environments/production/modules/azure_arm/lib/puppet/provider/azure_resource_group/azure_resource_group.rb:399:inauthenticate'", "/etc/puppetlabs/code/environments/production/modules/azure_arm/lib/puppet/provider/azure_resource_group/azure_resource_group.rb:460:in call_op'", "/etc/puppetlabs/code/environments/production/modules/azure_arm/lib/puppet/provider/azure_resource_group/azure_resource_group.rb:237:ininvoke_list_all'", "/etc/puppetlabs/code/environments/production/modules/azure_arm/lib/puppet/provider/azure_resource_group/azure_resource_group.rb:108:in fetch_all'", "/etc/puppetlabs/code/environments/production/modules/azure_arm/lib/puppet/provider/azure_resource_group/azure_resource_group.rb:58:infetch_all_as_hash'", "/etc/puppetlabs/code/environments/production/modules/azure_arm/lib/puppet/provider/azure_resource_group/azure_resource_group.rb:46:in instances'", "/etc/puppetlabs/code/environments/production/modules/azure_arm/lib/puppet/provider/azure_resource_group/azure_resource_group.rb:50:inprefetch'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:357:in prefetch'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:250:inprefetch_if_necessary'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:109:in block in evaluate'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:119: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:519:in block in thinmark'", "/opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:inrealtime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:518: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:186:inblock (2 levels) in apply_catalog'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:519:in block in thinmark'", "/opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:inrealtime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:518:in thinmark'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:185:inblock in apply_catalog'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:232:in block in benchmark'", "/opt/puppetlabs/puppet/lib/ruby/2.4.0/benchmark.rb:308:inrealtime'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:231:in benchmark'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:184:inapply_catalog'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:369:in run_internal'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:237: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:260:inoverride'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:211:in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:355:inapply_catalog'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:in block (2 levels) in main'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:inoverride'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:260:in override'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:280:inblock in main'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in override'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:260:inoverride'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:233:in main'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:174:inrun_command'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:375:in block in run'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:667:inexit_on_fail'", "/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:375: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'", "/usr/local/bin/puppet:5:in

'"] Error: Failed to apply catalog: Unable to get oauth2 token - response is # and body is

What you expected to happen?

What happened?

How to reproduce it?

Anything else we need to know?

Versions:

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

$ puppet --version

$ facter os

$ puppet module list

Logs:

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

caused due to environment variables