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
[LIBCLOUD-973] Support disk_size parameter for boot disk when creating instance. #1162
[LIBCLOUD-973] Support disk_size parameter for boot disk when creating instance. #1162
Conversation
The failure does not looks related to the PR. The failure is due to: |
@Rahul-CSI it's not related, indeed - Travis appears to be a bit broken these days |
@Rahul-CSI Sorry, the failure was on our end. It's fixed now. Can you rebase your pull request on top of latest trunk and add tests? Please ask if you don't know how to do that. Thanks. |
Thanks @pquentin |
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.
Add tests
…ng instances in ex_create_multiple_nodes API call.
81b58ae
to
a661f5c
Compare
@pquentin @BTaskaya Ran 178 tests in 15.032s Please let me know if I am missing something. |
Codecov Report
@@ Coverage Diff @@
## trunk #1162 +/- ##
========================================
+ Coverage 86.1% 86.1% +<.01%
========================================
Files 348 348
Lines 66814 66842 +28
Branches 5935 5937 +2
========================================
+ Hits 57532 57557 +25
- Misses 6855 6857 +2
- Partials 2427 2428 +1
Continue to review full report at Codecov.
|
@BTaskaya Command: |
@Rahul-CSI do they fail without any of your changes? To avoid doing real network operations, libcloud uses fixtures and mocks. This should documented, but for now #1157 (comment) might help you understand what's going on. Please tell me if that helps! |
@pquentin Yes the failure is without any of my changes. Can you point to me detailed test documentation please. I think I have somewhat understood #1157 (comment) When testing libcloud/test/compute/test_ecs.py |
Unfortunately the documentation explaining how mocks and fixtures work
still needs to be written.
I'm sorry, if the tests fail on trunk too there's not much I can do. :-(
|
@pquentin |
Okay, I understand now! As I said on LIBCLOUD-976, If you simply use |
Thanks @pquentin I had to struggle a bit though to know that we need to modify the fixtures json files as the request does not directly go to google. |
@BTaskaya |
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.
Thanks! This looks good. I requested a small formatting change.
Do you think it would be easy to add disk_size
support to create_node
instead of only ex_create_multiple_nodes
?
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.
Looks good to me!
Thanks! Merged in trunk. ✨ |
Support specifying the disk size for boot disk when we create (one/more) google compute cloud instances.
Description
This is fix for LIBCLOUD-973 bug.
Link to bug: https://issues.apache.org/jira/browse/LIBCLOUD-973
The ex_create_multiple_nodes API call in gce.py compute driver
does not handle boot disk size. Hence it creates a boot disk of size 10GB every time.
Added disk_size keyword parameter to ex_create_multiple_nodes API call,
It passes the parameter through internal method calls and adds the disk size to the POST request.
Status
Checklist (tick everything that applies)