Project

General

Profile

Feature #363

Better message when running out of resources

Added by Graziano Obertelli almost 2 years ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
% Done:

0%

Estimated Time:
Deployment type:
AppScale - self deployed

Description

When running on Eucalyptus, AWS (and others but I haven't observed it) the cloud provider can run out of resources. We should print a better error message instead of

Unable to start AppScale.
Traceback (most recent call last):
File "/home/jenkins/jobs/Hawkeye/workspace@2/appscale-testing-env/local/lib/python2.7/site-packages/appscale_testing/appscale_test_image.py", line 232, in start_appscale
self.appscale.up()
File "/home/jenkins/jobs/Hawkeye/workspace@2/appscale-testing-env/local/lib/python2.7/site-packages/appscale/tools/appscale.py", line 309, in up
AppScaleTools.run_instances(run_instances_opts)
File "/home/jenkins/jobs/Hawkeye/workspace@2/appscale-testing-env/local/lib/python2.7/site-packages/appscale/tools/appscale_tools.py", line 504, in run_instances
options, len(node_layout.nodes))
File "/home/jenkins/jobs/Hawkeye/workspace@2/appscale-testing-env/local/lib/python2.7/site-packages/appscale/tools/remote_helper.py", line 112, in start_all_nodes
options, count=count)
File "/home/jenkins/jobs/Hawkeye/workspace@2/appscale-testing-env/local/lib/python2.7/site-packages/appscale/tools/remote_helper.py", line 252, in spawn_nodes_in_cloud
parameters=params, security_configured=True)
File "/home/jenkins/jobs/Hawkeye/workspace@2/appscale-testing-env/local/lib/python2.7/site-packages/appscale/tools/agents/ec2_agent.py", line 454, in run_instances
security_groups=[group], instance_type=instance_type, placement=zone)
File "/home/jenkins/jobs/Hawkeye/workspace@2/appscale-testing-env/local/lib/python2.7/site-packages/boto/ec2/connection.py", line 977, in run_instances
verb='POST')
File "/home/jenkins/jobs/Hawkeye/workspace@2/appscale-testing-env/local/lib/python2.7/site-packages/boto/connection.py", line 1192, in get_object
response = self.make_request(action, params, path, verb)
File "/home/jenkins/jobs/Hawkeye/workspace@2/appscale-testing-env/local/lib/python2.7/site-packages/boto/connection.py", line 1116, in make_request
return self._mexe(http_request)
File "/home/jenkins/jobs/Hawkeye/workspace@2/appscale-testing-env/local/lib/python2.7/site-packages/boto/connection.py", line 1028, in _mexe
raise BotoServerError(response.status, response.reason, body)
BotoServerError: BotoServerError: 500 InsufficientInstanceCapacity
<Response xmlns=""><Errors><Error><Code>InsufficientInstanceCapacity</Code><Message>Not enough resources (5 in < 8): vm instances.</Message></Error></Errors><RequestID>b82ed7d3-5645-4ad4-bf6f-1e663b30aa28</RequestID></Response>

History

#1 Updated by Steven Graham 8 months ago

  • Target version set to backlog

Also available in: Atom PDF