-
Notifications
You must be signed in to change notification settings - Fork 50
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
Google Compute Engine (GCE) storage driver #394
Conversation
Codecov Report
@@ Coverage Diff @@
## release/0.5.0 #394 +/- ##
==============================================
Coverage 30.49% 30.49%
==============================================
Files 29 29
Lines 1741 1741
==============================================
Hits 531 531
Misses 1152 1152
Partials 58 58 Continue to review full report at Codecov.
|
6019bfd
to
9329942
Compare
Okay, I just pushed a commit to add docs. This is ready for "real" review now. |
2a6acd8
to
3020bd1
Compare
HI @codenrhoden, Please squash and rebase. I believe this has been tested and ready for merge otherwise; is that correct? |
I have tested this driver and it worked quite well for me. Below are a few things I think we should modify before merging rexray tag functionality name of driver documentation of api permissions note limit of persistent disks for smaller instances in documentation 10GB size minimum |
Agree with all your comments. A couple of notes: re: rexray tag. Thanks for showing me that the GCE GUI allows you to use labels, though it is only after disk creation. This implies that they themselves are using the Beta API, as that feature is only in the beta API (and why I didn't use it). Using the standard API, there is no way to modify the description post disk creation. I can use the label feature if we switch to the beta API, which you said you were okay with. re: size minimum this is mostly work we'll have to do in rexray, not libS. Right now libS will return an error of "invalid size" or something similar, but i can make it more specific. I hadn't wanted to hardcode a message about the exact size minimum, but now that I think about it I have to hardcode the size to check against, so it's not a big deal. |
3020bd1
to
65b13ab
Compare
@cduchesne I've addressed all comments except the rexray tag. Broken out into separate commits so they can be viewed easily. Will work on tags next. once all that is done, will squash down to one commit in preparation for merge. |
.docs/user-guide/config.md
Outdated
@@ -589,6 +589,7 @@ remote storage systems. Currently the following storage drivers are supported: | |||
[EBS](./storage-providers.md#aws-ebs) | ebs, ec2 | |||
[EFS](./storage-providers.md#aws-efs) | efs | |||
[RBD](./storage-providers.md#ceph-rbd) | rbd | |||
[GCE](./storage-providers.md#gce) | gce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @codenrhoden,
This driver abbreviation still reflects the old gce
and not the updated gcepd
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Darn, I knew I would miss a place! thanks
|
||
## GCEPD | ||
|
||
The Google Compute Engine (GCE) Persistent Disk driver registers a driver named |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @codenrhoden,
This driver abbreviation still reflects the old gce
and not the updated gcepd
. I'd add a single acronym after the Persistent Disk as (GCEPD). Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left this one on purpose. But not for a strong reason. I can change it as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @codenrhoden,
It's up to you really. I only pointed it out because it may be the only place we reference GCE? I just want to avoid confusion if possible. If you don't think it's confusing then leave it. It just stood out, but I do not feel strongly about it.
Makefile
Outdated
@@ -1078,8 +1078,18 @@ test-debug: | |||
env LIBSTORAGE_DEBUG=true $(MAKE) test | |||
|
|||
test-rbd: | |||
DRIVERS=rbd $(MAKE) deps | |||
DRIVERS=rbd $(MAKE) ./drivers/storage/rbd/tests/rbd.test | |||
env DRIVERS=rbd $(MAKE) deps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @codenrhoden,
The reason I don't use the env
command in some places is because of what it does. The env
command removes defined aliases and shell functions on which the build may rely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my inspiration here was the test-debug
target directly above. What is it about its scenario that makes env
desirable and the driver-specific test builds not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @codenrhoden,
The difference is that I learned more about the env
command as I worked on this project and only used it at the beginning out of not fully understanding the difference. I rarely use the test-debug
target and so have never changed it.
This patch re-introduces the GCE persistent disk driver.
337190f
to
f5ef3be
Compare
looks good to me, thanks @codenrhoden ! |
This patch re-introduces the GCE persistent disk driver.
Still TODO here: