Advertisement
Guest User

Errors with salt-cloud

a guest
Apr 30th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.32 KB | None | 0 0
  1. $ cat /etc/salt/cloud
  2. providers:
  3. gce-config:
  4. # Set up the Project name and Service Account authorization
  5. #
  6. project: "Some Project"
  7. service_account_email_address: "<someid>@developer.gserviceaccount.com"
  8. service_account_private_key: "/home/herlo/Projects/some/gce/some-gce.pem"
  9.  
  10. # Set up the location of the salt master
  11. #
  12. # minion:
  13. # master: saltmaster.example.com
  14.  
  15. # Set up grains information, which will be common for all nodes
  16. # using this provider
  17. #grains:
  18. # node_type: broker
  19. # release: 1.0.1
  20.  
  21. provider: gce
  22.  
  23. $ cat /etc/salt/cloud.profiles
  24. all_settings:
  25. image: centos-6
  26. size: n1-standard-2
  27. location: us-central1-a
  28. network: default
  29. #tags: '["one", "two", "three"]'
  30. #metadata: '{"one": "1", "2": "two"}'
  31. use_persistent_disk: True
  32. delete_boot_pd: False
  33. deploy: False
  34. make_master: False
  35. provider: gce-config
  36.  
  37. $ salt-cloud -p all_settings gce-instance
  38. [INFO ] salt-cloud starting
  39. [ERROR ] There was a profile error: '<!DOCTYPE html>\n<html lang=en>\n <meta charset=utf-8>\n <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">\n <title>Error 400 (Bad Request)!!1</title>\n <style>\n *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/errors/logo_sm_2.png) no-repeat}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/errors/logo_sm_2_hr.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/errors/logo_sm_2_hr.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/errors/logo_sm_2_hr.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:55px;width:150px}\n </style>\n <a href=//www.google.com/><span id=logo aria-label=Google></span></a>\n <p><b>400.</b> <ins>That\xe2\x80\x99s an error.</ins>\n <p>Your client has issued a malformed or illegal request. <ins>That\xe2\x80\x99s all we know.</ins>'
  40. Traceback (most recent call last):
  41. File "/usr/lib/python2.7/site-packages/salt/cloud/cli.py", line 332, in run
  42. self.config.get('names')
  43. File "/usr/lib/python2.7/site-packages/salt/cloud/__init__.py", line 940, in run_profile
  44. ret[name] = self.create(vm_)
  45. File "/usr/lib/python2.7/site-packages/salt/cloud/__init__.py", line 854, in create
  46. output = self.clouds[func](vm_)
  47. File "/usr/lib/python2.7/site-packages/salt/cloud/clouds/gce.py", line 496, in create
  48. conn = get_conn()
  49. File "/usr/lib/python2.7/site-packages/salt/cloud/clouds/gce.py", line 180, in get_conn
  50. gce = driver(email, private_key, project=project)
  51. File "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/gce.py", line 542, in __init__
  52. self.zone_list = self.ex_list_zones()
  53. File "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/gce.py", line 874, in ex_list_zones
  54. response = self.connection.request(request, method='GET').object
  55. File "/usr/lib/python2.7/site-packages/libcloud/common/google.py", line 580, in request
  56. *args, **kwargs)
  57. File "/usr/lib/python2.7/site-packages/libcloud/common/base.py", line 675, in request
  58. response = responseCls(**kwargs)
  59. File "/usr/lib/python2.7/site-packages/libcloud/common/base.py", line 114, in __init__
  60. self.object = self.parse_body()
  61. File "/usr/lib/python2.7/site-packages/libcloud/common/google.py", line 230, in parse_body
  62. raise InvalidRequestError(message, self.status, code)
  63. InvalidRequestError: '<!DOCTYPE html>\n<html lang=en>\n <meta charset=utf-8>\n <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">\n <title>Error 400 (Bad Request)!!1</title>\n <style>\n *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/errors/logo_sm_2.png) no-repeat}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/errors/logo_sm_2_hr.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/errors/logo_sm_2_hr.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/errors/logo_sm_2_hr.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:55px;width:150px}\n </style>\n <a href=//www.google.com/><span id=logo aria-label=Google></span></a>\n <p><b>400.</b> <ins>That\xe2\x80\x99s an error.</ins>\n <p>Your client has issued a malformed or illegal request. <ins>That\xe2\x80\x99s all we know.</ins>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement