Skip to content

Support disk_size parameter for create_node#1386

Merged
asfgit merged 2 commits intoapache:trunkfrom
yukw777:gce-create-node-disk-size
Dec 13, 2019
Merged

Support disk_size parameter for create_node#1386
asfgit merged 2 commits intoapache:trunkfrom
yukw777:gce-create-node-disk-size

Conversation

@yukw777
Copy link
Copy Markdown
Contributor

@yukw777 yukw777 commented Dec 13, 2019

Support disk_size parameter for create_node

Description

I've added support for disk_size in create_node() for GCE. This closely follows the change that added the same for ex_create_multiple_nodes(). This is so that we can launch nodes on GCE with different sizes of disks easily.

Status

  • done, ready for review

Checklist (tick everything that applies)

  • Code linting (required, can be done after the PR checks)
  • Documentation
  • Tests
  • ICLA (required for bigger changes) => I think this is a small change.

@yukw777 yukw777 mentioned this pull request Dec 13, 2019
7 tasks
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #1386 into trunk will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##            trunk    #1386      +/-   ##
==========================================
+ Coverage   86.26%   86.27%   +<.01%     
==========================================
  Files         372      372              
  Lines       76355    76362       +7     
  Branches     6981     6981              
==========================================
+ Hits        65870    65879       +9     
+ Misses       7688     7687       -1     
+ Partials     2797     2796       -1
Impacted Files Coverage Δ
libcloud/compute/drivers/gce.py 76.81% <ø> (ø) ⬆️
libcloud/test/compute/test_gce.py 97.79% <100%> (ø) ⬆️
libcloud/test/compute/test_upcloud.py 91.39% <0%> (+1.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 179d5ae...80680e9. Read the comment docs.

ex_can_ip_forward, ex_disks_gce_struct, ex_nic_gce_struct,
ex_on_host_maintenance, ex_automatic_restart, ex_preemptible,
ex_subnetwork, ex_labels, ex_accelerator_type,
ex_accelerator_count)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

To avoid potential bugs it would probably be safer to use keyword instead of positional argumentshere in the future, but this also works for now since other arguments are already positional.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I definitely agree, and actually was thinking about fixing it, but then decided against it so as to keep the scope of this PR small.

@asfgit asfgit merged commit 845a377 into apache:trunk Dec 13, 2019
@Kami
Copy link
Copy Markdown
Member

Kami commented Dec 13, 2019

Merged, thanks for contribution.

@yukw777 yukw777 deleted the gce-create-node-disk-size branch December 13, 2019 23:24
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.

4 participants