GoogleCloudPlatform / puppet-google-compute

Apache License 2.0
5 stars 5 forks source link

Error: Could not autoload puppet/type/gcompute_instance: Attempt to redefine entity #110

Open khaefeli opened 5 years ago

khaefeli commented 5 years ago

After fixing the issue https://github.com/GoogleCloudPlatform/puppet-google-compute/issues/109 I'm running into the next bug during the choria puppet task run:

mco tasks run gcompute::instance --credential /root/credential.json --name testing --ensure present --project projectname --zone europe-west3-c -I infrastructurenode.internal

The error says:

Error: Could not autoload puppet/type/gcompute_instance: Attempt to redefine entity 
'http://puppet.com/2016.1/runtime/type/gcompute_instance'. Set at unknown location
Error: Could not autoload puppet/type/gcompute_instance: Attempt to redefine entity 
'http://puppet.com/2016.1/runtime/type/gcompute_instance'. Set at unknown location

Not sure if it's related to the puppet bug: https://tickets.puppetlabs.com/browse/PUP-8002

Workaround is to remove the require line in the instance.sh

notify { 'task:success':
   message => "\$vm",
   require => Gcompute_instance[\$vm],
 }