-
Notifications
You must be signed in to change notification settings - Fork 117
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
Add support for non-default VPCs #94
Conversation
@nchammas It launches into the (non-default) VPC and does have the specified IAM role, but still can't access s3 w/o specifying key id and secret key. |
Regarding S3 access, can you post the IAM policy as well as the S3 location you are trying to access? At this point I think this is most likely a problem with your IAM policy. Also, can you confirm that Flintrock errors out cleanly if you try a launch without setting a VPC explicitly (since you don't have a default VPC)? |
Errors out correctly:
|
The s3 loc is private, so I can't pass it along, sorry. I suspect you are correct though, and I'll look into it. |
In case it helps, a common problem with S3 policies is that they don't grant the following 3 rights--list access, root access, and content access (ref):
I've made this mistake in the past and it can be hard to catch if you don't know what to look for. |
Huh, ours is pretty generic:
I'll look up what other s3 operations there might be that I'd need, and I'll see if I can get permission to create a simple role like that one to test out. I wonder if this is just going to end up being YAA pre-2013 issue. |
Your policy is missing the |
that isn't covered under "s3:List*"? |
Oh, sorry, you're right. 😕 |
Let's move the discussion about IAM roles to #90. Since the non-default VPC launches work for you @marcuscollins, I'll just wait for @dhulse to also confirm that this PR works for him before merging it in. |
I have attempted to launch a cluster twice using the code from the PR. I no longer run into the error: "Exception: Error authorizing cluster ingress to self". However I still cannot create a cluster successfully. Here is my output. (I am setting vpc-id and subnet-id in my config file) flintrock launch dale-tiny2 --num-slaves 2
Requesting 3 spot instances at a max price of $0.2...
0 of 3 instances granted. Waiting...
0 of 3 instances granted. Waiting...
All 3 instances granted.
There was a problem with the launch. Cleaning up...
Do you want to terminate the 3 instances created by this operation? [Y/n]: I may have something configured incorrectly on my side. I will continue to investigate. |
I have noticed that I cannot ssh into my ec2 instances created from flintrock as |
Hmm, is there no explanatory error message when the launch fails, after you answer the prompt? |
No, it just says "There was a problem with the launch. Cleaning up..." |
Are you using a vanilla Amazon Linux AMI, or something else? |
If you newly created your VPC and subnet, you may need to attach an internet gateway. That's a mistake I've made before. I'm confused though as to why there is no detail on the launch failure. That's definitely not good. :( |
I have been using I don't think an internet gateway has been attached to the new VPC I have created. I will look into that. |
Just checking in briefly here: @dhulse - Any progress on getting Flintrock working on this branch? Any leads I can help you investigate? |
f0849af
to
d9d2c7b
Compare
d9d2c7b
to
3201f32
Compare
Merging this in since the primary feature (launching into non-default VPCs) seems to be working. |
Hey @nchammas I have not had any progress on getting Flintrock to work in my VPC. I have been really busy with other priorities these past few days and I have not had a chance to look into. I will investigate why it's not working on my side and will let you know what I find out. Thanks! |
The discussion in #85 and #92 revealed that Flintrock has thus far assumed that everyone works with a default VPC, and this is not true. If you created your AWS account in or before 2013, you very likely don't have a default VPC.
This PR adds support for non-default VPCs. The relevant reading is here:
To summarize the key points from the above links, as well as the key changes in this PR:
@dhulse @marcuscollins - I've tested this PR thoroughly, but it would be a big help if you tested this in your environments and confirmed that it works for you as expected. The key things to test are the 3 points I just laid out above.
To install Flintrock at this PR, use this command:
This will override any installation of Flintrock you have in your currently-active environment.
Fixes #85.
Fixes #92.