Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

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

@khaefeli

Description

@khaefeli

After fixing the issue #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],
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions