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

EC2 Reserved Instances - 500 error #2435

Closed
vasiliy-sharko opened this issue May 18, 2020 · 1 comment
Closed

EC2 Reserved Instances - 500 error #2435

vasiliy-sharko opened this issue May 18, 2020 · 1 comment
Assignees

Comments

@vasiliy-sharko
Copy link

[X ] bug report
[ ] feature request

Detailed description

Commans that are used to purchase EC2 reserved instances produce 500 error:

$ aws ec2 describe-reserved-instances-offerings                                                                               

Unable to parse response (syntax error: line 1, column 54), invalid XML received. Further retries may succeed:
b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n'

Expected behavior

CLI commands behave as described in AWS documentation

Steps to reproduce

Any of the following commands produce similar output, no matter what additional flags I use:

aws ec2 describe-reserved-instances-offerings ...
aws ec2 purchase-reserved-instances-offering ...
aws ec2 describe-reserved-instances ...

Command used to start LocalStack

docker run -d -e TEST_AWS_ACCOUNT_ID="000000000000" -e LOCALSTACK_HOSTNAME="localhost" -e DEFAULT_REGION="us-east-1" --rm --privileged --name localstack_main -p 8080-8081:8080-8081 -p 4566-4620:4566-4620 -p 10000:10000 -v "/tmp/localstack:/tmp/localstack" -v "/var/run/docker.sock:/var/run/docker.sock" -e DOCKER_HOST="unix:///var/run/docker.sock" -e HOST_TMP_FOLDER="/tmp/localstack" "localstack/localstack"

@duongpv7 duongpv7 self-assigned this May 26, 2020
duongpv7 added a commit that referenced this issue May 26, 2020
* Patch moto's APIs
* Add integration test

Issue fixed:
#2435 EC2 Reserved Instances - 500 error
@whummer
Copy link
Member

whummer commented May 26, 2020

Thanks for reporting @vasiliy-sharko . A simple version of mocked responses has been added in #2458 - can you please give it a try with the latest version? There's also an upstream issue in moto (which we're using for EC2 under the covers) that you can follow here: getmoto/moto#1741 . Thanks!

@whummer whummer closed this as completed May 26, 2020
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