Skip to content

Enable system VM volume migration for KVM - #6341

Merged
shwstppr merged 6 commits into
apache:4.17from
scclouds:enable-systemvm-volume-migration-for-kvm
Aug 9, 2022
Merged

Enable system VM volume migration for KVM#6341
shwstppr merged 6 commits into
apache:4.17from
scclouds:enable-systemvm-volume-migration-for-kvm

Conversation

@GutoVeronezi

Copy link
Copy Markdown
Contributor

Description

Release 4.16.0.0 introduced a feature for migrating system VM volumes (#4385). However, it was enabled only for VMWare.

This PR intends to enable the feature for KVM too.

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
  • [ x] Minor

How Has This Been Tested?

It was tested in a local lab.

(I tested the process for each system VM type)

To test the SSVM and CPVM, I enabled a zone to create them. When they were created, I disabled the zone. I accessed the system VMs and created files to validate later. I stopped them and migrated the volumes. I checked the references in database and storage and then I started the system VMs. After that, I accessed them again and verified the files. The migration performed successfully, the data was kept and the system VMs were working fine.

To test the VR, I created a network. I accessed the VR and created a file to validate later. I stopped the VR and migrated the volume. I checked the reference in database and storage and then I started the VR. After that, I accessed it again and verified the file. The migration performed successfully, the data was kept and the VR was working fine.

@GutoVeroneziGutoVeronezi added this to the 4.17.1.0 milestone Apr 29, 2022
@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@acs-robot

Copy link
Copy Markdown

PR Analysis

https://sonarcloud.io/summary/new_code?id=apachecloudstack&pullRequest=6341

PR Coverage Report

CLASSINSTRUCTION MISSEDINSTRUCTION COVEREDBRANCH MISSEDBRANCH COVEREDLINE MISSEDLINE COVERED
Upgrade41700to4171089040250
ApiDBUtils2350020405850
ApiResponseHelper1238601288028330
DomainRouterJoinDaoImpl80108001950
UserVmManagerImpl2081902566038710

@yadvr

yadvr commented May 4, 2022

Copy link
Copy Markdown
Member

Can you merge latest main branch to your PR branch @GutoVeronezi ?

@GutoVeronezi

Copy link
Copy Markdown
ContributorAuthor

@rohityadavcloud, done.

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6341 (SL-JID-1796)

@DaanHooglandDaanHoogland 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

@DaanHoogland

Copy link
Copy Markdown
Contributor

awful lot of travis failures

@DaanHoogland

Copy link
Copy Markdown
Contributor

re-try

@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@shwstppr

Copy link
Copy Markdown
Contributor

@GutoVeronezi PR is marked for milestone 4.17.1.0, schema changes are also in 4170to4171 upgrade path but base branch is main. Should it be changed to 4.17 instead? cc @DaanHoogland

@blueorangutan

Copy link
Copy Markdown

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6341 (SL-JID-1820)

@blueorangutan

Copy link
Copy Markdown

@shwstppr 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-4597)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40100 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6341-t4597-kvm-centos7.zip
Smoke tests completed. 101 look OK, 0 have errors
Only failed tests results shown below:

TestResultTime (s)Test File

@shwstpprshwstppr closed this Aug 3, 2022
@shwstpprshwstppr reopened this Aug 3, 2022
@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6341 (SL-JID-2064)

@shwstppr

Copy link
Copy Markdown
Contributor

re-kicking travis

@shwstpprshwstppr closed this Aug 3, 2022
@shwstpprshwstppr reopened this Aug 3, 2022
@shwstppr

Copy link
Copy Markdown
Contributor

@GutoVeronezi can you please check why tests from test_vpc_routers are failing on travis repeatedly

@shwstpprshwstppr 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.

@GutoVeronezi this is causing failures

Comment threadengine/schema/src/main/resources/META-INF/db/schema-41700to41710.sql Outdated
Comment threadengine/schema/src/main/resources/META-INF/db/schema-41700to41710.sql Outdated
@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6341 (SL-JID-2090)

@sonarqubecloud

Copy link
Copy Markdown

@shwstppr

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@shwstppr 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 ✖️ debian ✖️ suse15. SL-JID 3932

@blueorangutan

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland 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-4645)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 38400 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6341-t4645-kvm-centos7.zip
Smoke tests completed. 101 look OK, 0 have errors
Only failed tests results shown below:

TestResultTime (s)Test File

@shwstppr
shwstppr merged commit b0e780a into apache:4.17Aug 9, 2022
neogismm pushed a commit to neogismm/cloudstack that referenced this pull request Sep 5, 2022
Release 4.16.0.0 introduced a feature for migrating system VM volumes (apache#4385). However, it was enabled only for VMWare.
This PR intends to enable the feature for KVM too.
Co-authored-by: GutoVeronezi <daniel@scclouds.com.br>
Sign up for freeto 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.

7 participants

@GutoVeronezi@acs-robot@yadvr@blueorangutan@DaanHoogland@shwstppr@JoaoJandre