Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat /etc/salt/cloud
- providers:
- gce-config:
- # Set up the Project name and Service Account authorization
- #
- project: "Some Project"
- service_account_email_address: "<someid>@developer.gserviceaccount.com"
- service_account_private_key: "/home/herlo/Projects/some/gce/some-gce.pem"
- # Set up the location of the salt master
- #
- # minion:
- # master: saltmaster.example.com
- # Set up grains information, which will be common for all nodes
- # using this provider
- #grains:
- # node_type: broker
- # release: 1.0.1
- provider: gce
- $ cat /etc/salt/cloud.profiles
- all_settings:
- image: centos-6
- size: n1-standard-2
- location: us-central1-a
- network: default
- #tags: '["one", "two", "three"]'
- #metadata: '{"one": "1", "2": "two"}'
- use_persistent_disk: True
- delete_boot_pd: False
- deploy: False
- make_master: False
- provider: gce-config
- $ salt-cloud -p all_settings gce-instance
- [INFO ] salt-cloud starting
- [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>'
- Traceback (most recent call last):
- File "/usr/lib/python2.7/site-packages/salt/cloud/cli.py", line 332, in run
- self.config.get('names')
- File "/usr/lib/python2.7/site-packages/salt/cloud/__init__.py", line 940, in run_profile
- ret[name] = self.create(vm_)
- File "/usr/lib/python2.7/site-packages/salt/cloud/__init__.py", line 854, in create
- output = self.clouds[func](vm_)
- File "/usr/lib/python2.7/site-packages/salt/cloud/clouds/gce.py", line 496, in create
- conn = get_conn()
- File "/usr/lib/python2.7/site-packages/salt/cloud/clouds/gce.py", line 180, in get_conn
- gce = driver(email, private_key, project=project)
- File "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/gce.py", line 542, in __init__
- self.zone_list = self.ex_list_zones()
- File "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/gce.py", line 874, in ex_list_zones
- response = self.connection.request(request, method='GET').object
- File "/usr/lib/python2.7/site-packages/libcloud/common/google.py", line 580, in request
- *args, **kwargs)
- File "/usr/lib/python2.7/site-packages/libcloud/common/base.py", line 675, in request
- response = responseCls(**kwargs)
- File "/usr/lib/python2.7/site-packages/libcloud/common/base.py", line 114, in __init__
- self.object = self.parse_body()
- File "/usr/lib/python2.7/site-packages/libcloud/common/google.py", line 230, in parse_body
- raise InvalidRequestError(message, self.status, code)
- 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