Skip to content

Instantly share code, notes, and snippets.

@jcockhren
Last active December 15, 2015 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcockhren/5343264 to your computer and use it in GitHub Desktop.
Save jcockhren/5343264 to your computer and use it in GitHub Desktop.
Error when using digital ocean
Given the below config
ubuntu_do:
provider: digital_ocean
image: Ubuntu 12.04 x32 Server
size: 512MB
script: Ubuntu
location: New York 1
minion:
master: salt.example.com
When I run
salt-cloud -p ubuntu_do test
I get the following error
[INFO ] Loaded configuration file: /etc/salt/cloud
[INFO ] salt-cloud starting
[INFO ] Creating Cloud VM test
[INFO ] Rendering deploy script: /usr/local/lib/python2.7/dist-packages/saltcloud/deploy/Ubuntu.sh
[ERROR ] Failed to create VM test. Configuration value None needs to be set
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/saltcloud/cloud.py", line 467, in create
output = self.clouds['{0}.create'.format(self.provider(vm_))](vm_)
File "/usr/local/lib/python2.7/dist-packages/saltcloud/clouds/digital_ocean.py", line 229, in create
'ssh_key_name', vm_, __opts__, search_global=False
File "/usr/local/lib/python2.7/dist-packages/saltcloud/clouds/digital_ocean.py", line 429, in get_keyid
keyid = keypairs[keyname]['id']
KeyError: None
test:
----------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment