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

Promote start node and stop node methods to standard Libcloud compute API #1375

Merged
merged 13 commits into from Nov 28, 2019

Conversation

Kami
Copy link
Member

@Kami Kami commented Nov 26, 2019

This pull request adds new start_node(self, node) and stop_node(self, node) methods to the base compute NodeDriver class.

This means those two methods have been "promoted" and are now part of the standard Libcloud compute API.

Background, Reasoning

A big chunk of the existing compute drivers (18) already implemented this functionality as part of ex_start_node and ex_stop_node method so it only makes sense to promote those methods to be part of the standard compute API.

For backward compatibility reasons, existing extension methods are left in place and they continue to behave as they did in the previous releases. Those methods will be removed as part of a cleanup in a future major release.

TODO

  • Changelog entry
  • Upgrade notes entry

Those methods are promoted to be part of the Libcloud standard compute
API because they are currently implemented as extension methods by a lot
of the existing compute drivers.
"ex_start_node" and "ex_stop_node" to implement "start_node" and
"stop_node" methods.
@codecov-io
Copy link

codecov-io commented Nov 26, 2019

Codecov Report

Merging #1375 into trunk will decrease coverage by <.01%.
The diff coverage is 82.16%.

Impacted file tree graph

@@            Coverage Diff             @@
##            trunk    #1375      +/-   ##
==========================================
- Coverage   86.33%   86.32%   -0.01%     
==========================================
  Files         372      372              
  Lines       76232    76318      +86     
  Branches     6979     6979              
==========================================
+ Hits        65817    65885      +68     
- Misses       7614     7633      +19     
+ Partials     2801     2800       -1
Impacted Files Coverage Δ
libcloud/compute/drivers/vsphere.py 0% <0%> (ø) ⬆️
libcloud/compute/drivers/profitbricks.py 69.71% <100%> (+0.13%) ⬆️
libcloud/compute/drivers/joyent.py 91.42% <100%> (+0.33%) ⬆️
libcloud/compute/drivers/gridscale.py 87.17% <100%> (+0.09%) ⬆️
libcloud/compute/drivers/nttcis.py 70.75% <100%> (+0.07%) ⬆️
libcloud/compute/drivers/hostvirtual.py 81.81% <100%> (+0.42%) ⬆️
libcloud/compute/drivers/ecs.py 84.9% <100%> (+0.1%) ⬆️
libcloud/compute/drivers/openstack.py 84.3% <100%> (+0.05%) ⬆️
libcloud/compute/drivers/cloudsigma.py 84.63% <100%> (+0.12%) ⬆️
libcloud/compute/drivers/nephoscale.py 73.45% <100%> (+0.67%) ⬆️
... and 12 more

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 011e53f...d706c7f. Read the comment docs.

@erjohnso
Copy link
Member

Great idea! I skimmed through and it looks good to me @Kami.

@Kami Kami merged commit 73186bf into apache:trunk Nov 28, 2019
@Kami Kami mentioned this pull request Dec 24, 2019
4 tasks
Eis-D-Z pushed a commit to Eis-D-Z/libcloud that referenced this pull request Oct 14, 2020
Promote start node and stop node methods to standard Libcloud compute API
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.

None yet

3 participants