Salt Cloud Automation in gcloud

54 views
Skip to first unread message

Monika

unread,
Jan 4, 2018, 8:39:49 AM1/4/18
to Salt-users
Hi,

I am trying to provision cloud environment in gcloud using saltstack by follow this link: https://docs.saltstack.com/en/latest/topics/cloud/gce.html#google-compute-engine-setup, but getting errors like:

salt-cloud -p my-gce-profile gce-instance -l debug
[DEBUG   ] Reading configuration from /etc/salt/cloud
[DEBUG   ] Reading configuration from /etc/salt/master
[DEBUG   ] Using cached minion ID from /etc/salt/minion_id: salt.saltmaster.com
[DEBUG   ] Missing configuration file: /etc/salt/cloud.providers
[DEBUG   ] Including configuration from '/etc/salt/cloud.providers.d/*.conf'
[DEBUG   ] Reading configuration from /etc/salt/cloud.providers.d/*.conf
[INFO    ] There's at least one cloud driver under the 'gce-config' cloud provider alias which does not have the required 'drive
r' setting. Removing it from the available providers listing.
[DEBUG   ] Missing configuration file: /etc/salt/cloud.profiles
[DEBUG   ] Including configuration from '/etc/salt/cloud.profiles.d/*.conf'
[DEBUG   ] Reading configuration from /etc/salt/cloud.profiles.d/*.conf
[DEBUG   ] Configuration file path: /etc/salt/cloud
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[INFO    ] salt-cloud starting
[DEBUG   ] Could not LazyLoad parallels.avail_sizes: 'parallels' __virtual__ returned False
[DEBUG   ] LazyLoaded parallels.avail_locations
[DEBUG   ] LazyLoaded proxmox.avail_sizes
[DEBUG   ] Could not LazyLoad saltify.destroy: 'saltify.destroy' is not available.
[DEBUG   ] Could not LazyLoad saltify.avail_sizes: 'saltify.avail_sizes' is not available.
[DEBUG   ] Could not LazyLoad saltify.avail_images: 'saltify.avail_images' is not available.
[DEBUG   ] Could not LazyLoad saltify.avail_locations: 'saltify.avail_locations' is not available.
[DEBUG   ] Could not LazyLoad rackspace.reboot: 'rackspace.reboot' is not available.
[DEBUG   ] LazyLoaded openstack.list_locations
[DEBUG   ] Could not LazyLoad rackspace.list_locations: 'rackspace.list_locations' is not available.
[ERROR   ] Profile my-gce-profile is not defined
[DEBUG   ] LazyLoaded nested.output
Error:
    Profile my-gce-profile is not defined

and also getting error:

salt-cloud --list-images gce-config -l debug
[DEBUG   ] Reading configuration from /etc/salt/cloud
[DEBUG   ] Reading configuration from /etc/salt/master
[DEBUG   ] Using cached minion ID from /etc/salt/minion_id: salt.saltmaster.com
[DEBUG   ] Missing configuration file: /etc/salt/cloud.providers
[DEBUG   ] Including configuration from '/etc/salt/cloud.providers.d/*.conf'
[DEBUG   ] Reading configuration from /etc/salt/cloud.providers.d/*.conf
[INFO    ] There's at least one cloud driver under the 'gce-config' cloud provider alias which does not have the required 'drive
r' setting. Removing it from the available providers listing.
[DEBUG   ] Missing configuration file: /etc/salt/cloud.profiles
[DEBUG   ] Including configuration from '/etc/salt/cloud.profiles.d/*.conf'
[DEBUG   ] Reading configuration from /etc/salt/cloud.profiles.d/*.conf
[DEBUG   ] Configuration file path: /etc/salt/cloud
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[INFO    ] salt-cloud starting
[DEBUG   ] Could not LazyLoad parallels.avail_sizes: 'parallels' __virtual__ returned False
[DEBUG   ] LazyLoaded parallels.avail_locations
[DEBUG   ] LazyLoaded proxmox.avail_sizes
[DEBUG   ] Could not LazyLoad saltify.destroy: 'saltify.destroy' is not available.
[DEBUG   ] Could not LazyLoad saltify.avail_sizes: 'saltify.avail_sizes' is not available.
[DEBUG   ] Could not LazyLoad saltify.avail_images: 'saltify.avail_images' is not available.
[DEBUG   ] Could not LazyLoad saltify.avail_locations: 'saltify.avail_locations' is not available.
[DEBUG   ] Could not LazyLoad rackspace.reboot: 'rackspace.reboot' is not available.
[DEBUG   ] LazyLoaded openstack.list_locations
[DEBUG   ] Could not LazyLoad rackspace.list_locations: 'rackspace.list_locations' is not available.
Error: There was an error listing images: No cloud providers matched 'gce-config'. Available selections:

Matthew X. Economou

unread,
Jan 4, 2018, 8:58:40 AM1/4/18
to salt-...@googlegroups.com
Monika writes:

> [INFO ] There's at least one cloud driver under the 'gce-config' cloud
> provider alias which does not have the required 'driver' setting.
> Removing it from the available providers listing.

It isn't marked as an error, but that's probably what you need to fix.

--
"The lyf so short, the craft so longe to lerne."

Reply all
Reply to author
Forward
0 new messages