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

Add EFS storage driver #231

Merged
merged 1 commit into from
Aug 16, 2016
Merged

Add EFS storage driver #231

merged 1 commit into from
Aug 16, 2016

Conversation

mhrabovcin
Copy link
Contributor

@mhrabovcin mhrabovcin commented Jul 14, 2016

I've worked on this patch with @kasisnu .

### Runtime Behavior
AWS EFS storage driver creates one EFS FileSystem per volume and provides root
of the filesystem as NFS mount point. Volumes aren't attached to instances
directly but rather exposed to each subnet by creating `MountPoint` in each VPC
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MountTarget? - also should this link out to https://docs.aws.amazon.com/efs/latest/ug/how-it-works.html ?

},
})

if err != nil {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we attempt to purge the volume here if tag creation fails to avoid leaking volumes?

@mhrabovcin mhrabovcin force-pushed the efs branch 2 times, most recently from 448bb9d to 23084a1 Compare July 15, 2016 12:03
@akutz akutz added this to the 0.2.0 milestone Jul 15, 2016
@akutz akutz self-assigned this Jul 15, 2016
"github.com/akutz/gofig"
"github.com/akutz/goof"

"github.com/aws/aws-sdk-go/aws/ec2metadata"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The AWS imports in the executor package need to be refactored per our call.

return string(subnetID), nil
}

func (r *AwsVpcSubnetResolver) getUrl(path string) string {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

func getUrl should be getURL

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

func getUrl should be getURL

@mhrabovcin mhrabovcin force-pushed the efs branch 2 times, most recently from e59d83d to f45a29f Compare August 1, 2016 20:17
@codecov-io
Copy link

codecov-io commented Aug 1, 2016

Current coverage is 26.17% (diff: 3.44%)

Merging #231 into master will decrease coverage by 4.66%

@@             master       #231   diff @@
==========================================
  Files            36         39     +3   
  Lines          2001       2407   +406   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            617        630    +13   
- Misses         1316       1709   +393   
  Partials         68         68          

Powered by Codecov. Last update 682885a...4c8a858

@cduchesne
Copy link
Contributor

@mhrabovcin : I checked out your test scripts. They look good to me. The naming convention is also good.

There are some basics that you may want to add later to do some error handling for any failed commands in your script, or different Cloud Formation status messages (eg CREATE FAILED) or check to make sure the environment shuts down correctly in your test-env-down.sh script - not critical by any means.

There is also a small typo I noticed in your test README:
VPC: Private network where EC2 instance anv EFS instance can be launched.

@CLAassistant
Copy link

CLAassistant commented Aug 11, 2016

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Martin Hrabovcin seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.

@mhrabovcin
Copy link
Contributor Author

@cduchesne thanks for the comments. I've fixed the typo and also improved / simplified error handling in test environment scripts.

@akutz akutz merged commit 4c8a858 into thecodeteam:master Aug 16, 2016
@akutz akutz removed the ready label Aug 16, 2016
@akutz
Copy link
Collaborator

akutz commented Aug 16, 2016

Hi @mhrabovcin,

Thank you for this sir. It has been merged. I apologize it took longer than I said, but I was thrown into some other priorities for a bit. The good news is now I have help, and so I was able to merge this. Thank you again!

@cduchesne cduchesne modified the milestones: 0.2.0, 0.3.0 Aug 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants