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

Azure "location is required" error #4

Open
jedgalbraith opened this issue Nov 7, 2017 · 2 comments
Open

Azure "location is required" error #4

jedgalbraith opened this issue Nov 7, 2017 · 2 comments
Assignees
Labels

Comments

@jedgalbraith
Copy link

[,581] ERROR in app: Exception on /azure_arm/servers [POST]
Traceback (most recent call last):
File "/data/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/data/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/data/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/data/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/data/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/data/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
File "/data/lib/python3.6/site-packages/libcloud/compute/drivers/azure_arm.py", line 261, in list_sizes
rv = self.dispatch_request()
File "/data/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/app/nanobox_libcloud/controllers/servers.py", line 19, in server_create
result = adapter.do_server_create(request.headers, request.json)
File "/app/nanobox_libcloud/adapters/azure_arm.py", line 83, in do_server_create
result = super().do_server_create(headers, data)
File "/app/nanobox_libcloud/adapters/base.py", line 219, in do_server_create
result = driver.create_node(**self._get_create_args(data))
File "/app/nanobox_libcloud/adapters/azure_arm.py", line 265, in _get_create_args
size = self._find_size(driver, location, data['size'])
File "/app/nanobox_libcloud/adapters/azure_arm.py", line 311, in _find_size
for size in driver.list_sizes(location):
ValueError: location is required.
raise ValueError("location is required.")
104.236.156.96 - - [07/Nov/2017:15:54:17 +0000] "POST /azure_arm/servers HTTP/1.1" 500 291 "-" "Faraday v0.9.2"
@Shark
Copy link

Shark commented Nov 7, 2017

This happened while trying to create a new instance on Azure Germany. I can set the Cloud Environment to "AzureGermanCloud", but the "Germany Central" and "Germany Northeast" regions are missing. Trying to use "Europe West" led to the error…

@danhunsaker
Copy link
Contributor

Oh. Hmmm. I see what's up, there. This will be a bit tricky to handle properly... I'm not 100% certain how I'm going to approach it, actually.

Basically, I needed to test the cloud environments other than default more completely... I'll resolve this as soon as I can get to it. Have a few fires to extinguish, first, and it might be a few days to get them all...

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

No branches or pull requests

3 participants