Skip to content

[KVM improve logs in migrate VM process - #6331

Merged
DaanHoogland merged 7 commits into
apache:mainfrom
scclouds:kvm-add-logs-to-migrate-vm-process
Jun 28, 2022
Merged

[KVM improve logs in migrate VM process#6331
DaanHoogland merged 7 commits into
apache:mainfrom
scclouds:kvm-add-logs-to-migrate-vm-process

Conversation

@SadiJr

@SadiJr SadiJr commented Apr 28, 2022

Copy link
Copy Markdown
Contributor

Description

This PR aims to improve the logs in migrate VM process, when using KVM as hypervisor, to facilitate future troubleshooting. We faced a situation that the lack of logs in this process made the troubleshooting pretty hard. Therefore, we are proposing to improve it.

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

How Has This Been Tested?

It's tested in a local lab:

  1. I created a new VM;
  2. I migrated this VM, with its volumes, to another host;
  3. I readed the logs to see if they were improved.
  4. Before, the logs did not have enough information to perform an efficient troubleshooting;
  5. Now, with improved logs, the troubleshooting will be easier.

Daniel Augusto Veronezi Salvador and others added 2 commits April 28, 2022 07:24
@acs-robot

Copy link
Copy Markdown

PR Analysis

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

PR Coverage Report

CLASS INSTRUCTION MISSED INSTRUCTION COVERED BRANCH MISSED BRANCH COVERED LINE MISSED LINE COVERED
LibvirtComputingResource 8963 1988 1087 147 1983 451
LibvirtMigrateCommandWrapper 1098 472 158 36 234 103

@weizhouapache

weizhouapache commented Apr 29, 2022

Copy link
Copy Markdown
Member

@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 ✔️ debian ✔️ suse15. SL-JID 3326

@yadvr

yadvr commented May 4, 2022

Copy link
Copy Markdown
Member

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

@sonarqubecloud

sonarqubecloud Bot commented May 4, 2022

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

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

16.0% 16.0% Coverage
0.0% 0.0% Duplication

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

@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

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

16.0% 16.0% Coverage
0.0% 0.0% Duplication

@GabrielBrascher GabrielBrascher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Interesting log enhancements, LGTM.

@DaanHoogland DaanHoogland added this to the 4.18.0.0 milestone Jun 28, 2022
@DaanHoogland
DaanHoogland merged commit ea9124e into apache:main Jun 28, 2022
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.

7 participants