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 resize node function for azure driver #1965

Merged
merged 3 commits into from
Oct 28, 2023
Merged

Conversation

rajat-garg-del
Copy link
Contributor

@rajat-garg-del rajat-garg-del commented Oct 18, 2023

Add resize node function for azure driver

Description

Background

#1964

To start with we have def ex_change_node_size(self, node, new_size) function in [https://github.com/apache/libcloud/blob/trunk/libcloud/compute/drivers/ec2.py] which supports instance type change for AWS.

We need similar functionality for Azure cloud as well where we could change the vmSize for Azure cloud. This could be done by adding node_resize function at (https://github.com/apache/libcloud/blob/trunk/libcloud/compute/drivers/azure_arm.py )

Implementation

  1. Added ex_resize_node to change the azure vm instance type.
  2. Added equivalent test test_resize_node to test ex_resize_node

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)

@rajat-garg-del rajat-garg-del marked this pull request as ready for review October 18, 2023 11:35
@rajat-garg-del
Copy link
Contributor Author

@Kami Can u take a look into this?

Copy link
Member

@Kami Kami left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the contribution.

@codecov-commenter
Copy link

codecov-commenter commented Oct 28, 2023

Codecov Report

Merging #1965 (5530f54) into trunk (a9f0dcf) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##            trunk    #1965   +/-   ##
=======================================
  Coverage   83.19%   83.20%           
=======================================
  Files         353      353           
  Lines       81412    81423   +11     
  Branches     8591     8591           
=======================================
+ Hits        67729    67740   +11     
  Misses      10875    10875           
  Partials     2808     2808           
Files Coverage Δ
libcloud/compute/drivers/azure_arm.py 60.43% <100.00%> (+0.28%) ⬆️
libcloud/test/compute/test_azure_arm.py 98.98% <100.00%> (+0.01%) ⬆️

asfgit pushed a commit that referenced this pull request Oct 28, 2023
@asfgit asfgit merged commit 5530f54 into apache:trunk Oct 28, 2023
17 of 18 checks passed
@Kami
Copy link
Member

Kami commented Oct 28, 2023

Merged into trunk. Thanks for the contribution.

@Kami Kami added this to the v3.9.0 milestone Oct 28, 2023
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