Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't put _ in GCloud server name #696

Closed
BriceWolfgang opened this issue Oct 17, 2017 · 2 comments
Closed

Don't put _ in GCloud server name #696

BriceWolfgang opened this issue Oct 17, 2017 · 2 comments
Assignees

Comments

@BriceWolfgang
Copy link

OS / Environment

running the setup from the cloud shell

Ansible version

commit: 6b803e0

Version of components from requirements.txt

pass

Summary of the problem

google freaks out when using underscore in sever names

Steps to reproduce the behavior

make a server, with a name, and put an underscore in that server name

The way of deployment (cloud or local)

was running ./algo

Expected behavior

working VPN

Actual behavior

TASK [cloud-gce : Network configured] ******************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Unexpected response: ({u'locationType': u'parameter', u'domain': u'global', u'message': u"Invalid value 'algo-net-mr_vpn'. Values must match the following regular expression: 'a-z?'", u'reason': u'invalidParameter', u'location': u'network'}). Detail: Traceback (most recent call last):\n File "/tmp/ansible_VkisdR/ansible_module_gce_net.py", line 280, in main\n network = gce.ex_get_network(name)\n File "/home/brice_wolfgang/sunset_photos_temp/algo-master/env/local/lib/python2.7/site-packages/libcloud/compute/drivers/gce.py", line 7011, in ex_get_network\n response = self.connection.request(request, method='GET').object\n File "/home/brice_wolfgang/sunset_photos_temp/algo-master/env/local/lib/python2.7/site-packages/libcloud/compute/drivers/gce.py", line 121, in request\n response = super(GCEConnection, self).request(*args, **kwargs)\n File "/home/brice_wolfgang/sunset_photos_temp/algo-master/env/local/lib/python2.7/site-packages/libcloud/common/google.py", line 808, in request\n *args, **kwargs)\n File "/home/brice_wolfgang/sunset_photos_temp/algo-master/env/local/lib/python2.7/site-packages/libcloud/common/base.py", line 637, in request\n response = responseCls(**kwargs)\n File "/home/brice_wolfgang/sunset_photos_temp/algo-master/env/local/lib/python2.7/site-packages/libcloud/common/base.py", line 159, in init\n self.object = self.parse_body()\n File "/home/brice_wolfgang/sunset_photos_temp/algo-master/env/local/lib/python2.7/site-packages/libcloud/common/google.py", line 288, in parse_body\n raise InvalidRequestError(message, self.status, code)\nInvalidRequestError: {u'locationType': u'parameter', u'domain': u'global', u'message': u"Invalid value 'algo-net-mr_vpn'. Values must match the following regular expression: 'a-z?'", u'reason': u'invalidParameter', u'location': u'network'}\n"}

Full log

where ?

@dguido
Copy link
Member

dguido commented Oct 17, 2017

Yeah, it might be nice to have a better error message here.

@BriceWolfgang
Copy link
Author

BriceWolfgang commented Oct 18, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants