Skip to content

KVM Ingestion - Import Instance - #7976

Merged
shwstppr merged 68 commits into
apache:mainfrom
shapeblue:kvm_ingestion
Dec 14, 2023
Merged

KVM Ingestion - Import Instance#7976
shwstppr merged 68 commits into
apache:mainfrom
shapeblue:kvm_ingestion

Conversation

@kishankavala

@kishankavalakishankavala commented Sep 19, 2023

Copy link
Copy Markdown
Contributor

Description

This PR adds new functionality to import KVM instances from below sources:

  1. KVM instance External host using libvirt
  2. QCOW2 disk image in existing ACS local primary storage
  3. QCOW2 disk image in existing ACS shared primary storage

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?

Tested Manually

@codecov

codecovBot commented Sep 19, 2023

Copy link
Copy Markdown

Codecov Report

Attention: 934 lines in your changes are missing coverage. Please review.

Comparison is base (82f7abd) 28.91% compared to head (7441653) 28.96%.

FilesPatch %Lines
.../apache/cloudstack/vm/UnmanagedVMsManagerImpl.java52.48%150 Missing and 79 partials ⚠️
...er/LibvirtGetUnmanagedInstancesCommandWrapper.java1.66%118 Missing ⚠️
ui/src/views/tools/ManageInstances.vue0.00%111 Missing ⚠️
...rce/wrapper/LibvirtGetRemoteVmsCommandWrapper.java2.17%90 Missing ⚠️
...ypervisor/kvm/resource/LibvirtDomainXMLParser.java23.72%32 Missing and 13 partials ⚠️
ui/src/views/tools/ImportUnmanagedInstance.vue0.00%43 Missing ⚠️
...ervisor/kvm/resource/LibvirtComputingResource.java0.00%31 Missing ⚠️
...wrapper/LibvirtCopyRemoteVolumeCommandWrapper.java6.25%30 Missing ⚠️
...a/com/cloud/agent/api/CopyRemoteVolumeCommand.java0.00%27 Missing ⚠️
...stack/engine/orchestration/VolumeOrchestrator.java0.00%27 Missing ⚠️
... and 18 more
Additional details and impacted files
@@ Coverage Diff @@## main #7976 +/- ##
============================================
+ Coverage 28.91% 28.96% +0.04% - Complexity 31419 31528 +109 
============================================
Files 5329 5341 +12 Lines 373594 374759 +1165 Branches 54319 54510 +191 ============================================
+ Hits 108027 108547 +520 - Misses 250807 251338 +531 - Partials 14760 14874 +114 
FlagCoverage Δ
simulator-marvin-tests24.74% <0.93%> (+0.02%)⬆️
uitests4.40% <0.00%> (-0.03%)⬇️
unit-tests14.90% <30.53%> (+0.05%)⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment threadserver/src/main/java/com/cloud/vm/UserVmManagerImpl.java Outdated
Comment threadui/src/views/compute/wizard/MultiNetworkSelection.vue
Comment threadui/src/views/tools/ImportUnmanagedInstance.vue Outdated
Comment threadui/src/views/tools/ImportUnmanagedInstance.vue Outdated
Comment threadserver/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java Outdated
@DaanHooglandDaanHoogland added this to the 4.19.0.0 milestone Sep 29, 2023
@kiranchavala

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@kiranchavala a [SF] 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 [SF]: ✖️ el7 ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 7278

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SF] 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 [SF]: ✖️ el7 ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 7283

@kiranchavala

Copy link
Copy Markdown
Member

@kishankavala

can you fix the packaging issue, getting the following exception

21:05:08 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project cloud-server: Compilation failure
21:05:08 [ERROR] /jenkins/workspace/acs-centos7-pkg-builder/dist/rpmbuild/BUILD/cloudstack-4.19.0.0-SNAPSHOT/server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java:[1605,45] error: method getUnmanagedNicNetworkMap in class UnmanagedVMsManagerImpl cannot be applied to given types;
21:05:08 [ERROR] required: String,List<Nic>,Map<String,Long>,Map<String,IpAddresses>,DataCenter,String,Account
21:05:08 [ERROR] found: List<Nic>,Map<String,Long>,Map<String,IpAddresses>,DataCenter,String,Account
21:05:08 [ERROR] reason: actual and formal argument lists differ in length
21:05:08 [ERROR] 

@harikrishna-patnala

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala a [SF] 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 [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7304

@kishankavala

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@kishankavala a [SL] 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 [SF]: ✖️ el7 ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 7489

@kishankavala

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@kishankavala a [SL] 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 [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7491

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

@harikrishna-patnala

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala a [SL] 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.

@kishankavala

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@kishankavala a [SL] 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 [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8041

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8042

@andrijapanicsb
andrijapanicsb self-requested a review December 13, 2023 12:32

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

LGTM, after detailed testing.

@shwstpprshwstppr changed the title [Draft] KVM Ingestion - Import InstanceKVM Ingestion - Import InstanceDec 13, 2023
@shwstppr
shwstppr marked this pull request as ready for review December 13, 2023 12:35
@shwstppr

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-8576)

@shwstppr

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-8577)

@shwstppr

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-8579)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 49322 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7976-t8579-kvm-centos7.zip
Smoke tests completed. 121 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File

@shwstppr
shwstppr merged commit ab20b12 into apache:mainDec 14, 2023
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 15, 2023
This PR adds new functionality to import KVM instances from an external host or from disk images in local or shared storage.
Doc PR: apache/cloudstack-documentation#356
@nvazqueznvazquez mentioned this pull request Jan 3, 2024
13 tasks
shwstppr pushed a commit that referenced this pull request Jan 9, 2024
This PR fixes KVM manage/unmanage functionality on 4.19.0 RC1 - was introduced on #7976 but the latest merge commits on the PR removed the execution for KVM
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jan 12, 2024
This PR fixes KVM manage/unmanage functionality on 4.19.0 RC1 - was introduced on apache#7976 but the latest merge commits on the PR removed the execution for KVM
shwstppr pushed a commit to apache/cloudstack-documentation that referenced this pull request Feb 5, 2024
Added documentation for Import from External Host, Import from Local/Shared storage
apache/cloudstack#7976
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.

9 participants

@kishankavala@kiranchavala@blueorangutan@DaanHoogland@harikrishna-patnala@shwstppr@nvazquez@yadvr@andrijapanicsb