Skip to content

server: add/update user vm details for new root disk size (issue 7139) - #7145

Merged
weizhouapache merged 1 commit into
apache:4.17from
weizhouapache:4.17-issue-7139
Feb 1, 2023
Merged

weizhouapache merged 1 commit into
apache:4.17from
weizhouapache:4.17-issue-7139

Conversation

@weizhouapache

Copy link
Copy Markdown
Member

Description

This PR fixes two issues including #7139

(1) if vm is created with specific rootdisksize, resize datadisk will update the user vm details for rootdisksize
(2) if vm is not created with specific rootdisksize, resize rootdisk will not add user vm details for new rootdisksize, which causes #7139

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

(1) create vm with root disk size=10 GB, datadisk =5 GB, check user_vm_details

| 4129 |   433 | rootdisksize          | 10    |       1 |

Prior to this change, when resize data disk to 6GB

| 4133 |   433 | rootdisksize                       | 6     |       1 |

with this change, detail is NOT changed when resize data disk.

(2) create vm without specific root disk size. resize root disk to 11GB,

Prior to this change, there is NO details for new root disk size

with this change,

| 4136 |   432 | rootdisksize                       | 11    |       1 |

@weizhouapache

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5444

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@soreana

soreana commented Jan 30, 2023 •

Copy link
Copy Markdown
Member

@weizhouapache Thanks Wei,

I'm testing the PR. 👍

@soreana

soreana commented Jan 30, 2023

Copy link
Copy Markdown
Member

@weizhouapache Manually tested the PR, it works as expected.

@DaanHoogland DaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

clgtm

@weizhouapache

Copy link
Copy Markdown
Member Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-6036)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 39974 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7145-t6036-kvm-centos7.zip
Smoke tests completed. 100 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_08_upgrade_kubernetes_ha_cluster Failure 597.69 test_kubernetes_clusters.py

@weizhouapache

Copy link
Copy Markdown
Member Author

merging based on @DaanHoogland's review and @soreana 's manual testing

the smoke test failure is not related. which has been fixed by #7118 in main branch (but not in 4.17)

@weizhouapache
weizhouapache merged commit e1d3657 into apache:4.17 Feb 1, 2023
@DaanHoogland DaanHoogland added this to the 4.18.0.0 milestone Feb 1, 2023
DaanHoogland added a commit that referenced this pull request Feb 1, 2023
* 4.17:
  server: add/update user vm details for new root disk size (issue 7139) (#7145)
  UI: fix missing networkid and zoneid when add instance from vpc network (#7151)
@weizhouapache
weizhouapache deleted the 4.17-issue-7139 branch September 5, 2023 11:00
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.

Root disk size reverts to its template size after reinstall

4 participants