Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Unexpected EC2 error: An error occurred (VPCIdNotSpecified) when calling the DescribeSecurityGroups operation: No default VPC for this user #101

Closed
data-steve opened this issue Sep 19, 2017 · 4 comments

Comments

@data-steve
Copy link

I tried the dask-ec2 instructions again yesterday.

The default command will start 4 instances on us-east-1, but I’m not supposed to use that zone, since its most expensive. I think that’s why I’m can’t ssh into them.

>>> dask-ec2 up --keyname my-dev --keypair my-dev.pem
Launching nodes
DEBUG: Checking that keyname 'my-dev' exists on EC2
DEBUG: Checking that security group 'dask-ec2-default' exists on EC2
DEBUG: Creating 4 instances on EC2
DEBUG: Tagging instance 'i-01594434a277c32eb'
DEBUG: Tagging instance 'i-0c3908571ba92071b'
DEBUG: Tagging instance 'i-09bac6a9505f07752'
DEBUG: Tagging instance 'i-017c6aa768e3debb8'
Checking SSH connection to nodes
DEBUG: Checking ssh connection for 54.152.58.253
DEBUG: Attempt 1/10 of function 'check_ssh' failed
DEBUG: Checking ssh connection for 54.152.58.253
DEBUG: Attempt 2/10 of function 'check_ssh' failed
DEBUG: Checking ssh connection for 54.152.58.253
DEBUG: Attempt 3/10 of function 'check_ssh' failed
DEBUG: Checking ssh connection for 54.152.58.253
DEBUG: Attempt 4/10 of function 'check_ssh' failed
DEBUG: Checking ssh connection for 54.152.58.253
DEBUG: Attempt 5/10 of function 'check_ssh' failed
DEBUG: Checking ssh connection for 54.152.58.253
DEBUG: Attempt 6/10 of function 'check_ssh' failed
DEBUG: Checking ssh connection for 54.152.58.253
DEBUG: Attempt 7/10 of function 'check_ssh' failed
DEBUG: Checking ssh connection for 54.152.58.253
DEBUG: Attempt 8/10 of function 'check_ssh' failed
DEBUG: Checking ssh connection for 54.152.58.253
DEBUG: Attempt 9/10 of function 'check_ssh' failed
DEBUG: Checking ssh connection for 54.152.58.253
DEBUG: Attempt 10/10 of function 'check_ssh' failed
ERROR: Retries limit exceeded

So then when I start using the —flag options to get more what I need, that’s when I get failing errors.

>>> dask-ec2 up --keyname my-dev --keypair my-dev.pem --region-name us-west-2
A file named cluster.yaml already exists, proceding will overwrite this file. Continue? [y/N]: y
Launching nodes
DEBUG: Checking that keyname 'my-dev' exists on EC2
DEBUG: Checking that security group 'dask-ec2-default' exists on EC2
Unexpected EC2 error: An error occurred (VPCIdNotSpecified) when calling the DescribeSecurityGroups operation: No default VPC for this user

When I try to supply it with VPC via the —vip-id or --security-group-id and --subnet-id info from other instances I’ve spun up manually, I get errors saying no such flag even though it is on the GitHub documentation

>>> dask-ec2 up --keyname my-dev --keypair my-dev.pem --region-name us-west-2 --ami ami-b52780d5 --vpc-id vpc-ae6e3bca --security-group  MLgroup --subnet-id subnet-bd1785cb
Error: no such option: --vpc-id

Oh, now I see that running dask-ec2 up —help shows that the api has changed and some of the flags have been removed.

Even after updating to the new api, I still get the error

>>> dask-ec2 up --keyname my-dev --keypair my-dev.pem --region-name us-west-2 --ami ami-b52780d5 --security-group MLgroup
A file named cluster.yaml already exists, proceding will overwrite this file. Continue? [y/N]: y
Launching nodes
DEBUG: Checking that keyname 'my-dev' exists on EC2
DEBUG: Checking that security group 'MLgroup' exists on EC2
Unexpected EC2 error: An error occurred (VPCIdNotSpecified) when calling the DescribeSecurityGroups operation: No default VPC for this user

Is this an error on my EC2 security group setup or something?

@jcrist
Copy link
Member

jcrist commented Sep 19, 2017

Thanks for the bug report. Can you report your versions for python, dask_ec2, boto3, and paramiko, as well as what OS you're using?

$ python --version
Python 3.5.4 :: Continuum Analytics, Inc.
$ python -c "[print('%s: %s' % (m, __import__(m).__version__)) for m in ['dask_ec2', 'boto3', 'paramiko']]"
dask_ec2: 0.5.0
boto3: 1.4.1
paramiko: 2.1.2

@data-steve
Copy link
Author

data-steve commented Sep 19, 2017 via email

@jcrist
Copy link
Member

jcrist commented Sep 19, 2017

Your version of dask-ec2 is very outdated. Can you try again with a newer install?

pip install -U dask-ec2

@data-steve
Copy link
Author

your wisdom exceeds mine.

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

No branches or pull requests

2 participants