Skip to content

Limit infrastructure details revealed to the end user after a failed migration on KVM#8680

Merged
JoaoJandre merged 2 commits intoapache:mainfrom
scclouds:limit_info_when_KVM_migration_error_occurs
Apr 16, 2024
Merged

Limit infrastructure details revealed to the end user after a failed migration on KVM#8680
JoaoJandre merged 2 commits intoapache:mainfrom
scclouds:limit_info_when_KVM_migration_error_occurs

Conversation

@GaOrtiga
Copy link
Copy Markdown
Contributor

Description

When a migration error occurs on KVM, the message Migration was refused connection to destination: <destination Uri>. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts. is presented to the user. This discloses infrastructure information which should not be available to the end user.

This message was substituted by a generic message, to avoid exposing infrastructure information. A new log was also added, containing the previous content of the message, in order to enable debugging.

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)
  • build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 20, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 23.19%. Comparing base (592038a) to head (62560bf).
Report is 36 commits behind head on main.

Files Patch % Lines
...resource/wrapper/LibvirtMigrateCommandWrapper.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8680      +/-   ##
============================================
+ Coverage     23.14%   23.19%   +0.04%     
- Complexity    23348    23406      +58     
============================================
  Files          5219     5219              
  Lines        353412   353413       +1     
  Branches      50883    50883              
============================================
+ Hits          81805    81957     +152     
+ Misses       259762   259593     -169     
- Partials      11845    11863      +18     
Flag Coverage Δ
simulator-marvin-tests 24.86% <0.00%> (+0.04%) ⬆️
uitests 4.36% <ø> (ø)

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.

…/resource/wrapper/LibvirtMigrateCommandWrapper.java

Co-authored-by: dahn <[email protected]>
Copy link
Copy Markdown
Member

@vishesh92 vishesh92 left a comment

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

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland 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 8952

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland 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 8993

@DaanHoogland
Copy link
Copy Markdown
Contributor

@blueorangutan test alma9 kvm-alma9

@blueorangutan
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

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

clgtm

@blueorangutan
Copy link
Copy Markdown

[SF] Trillian test result (tid-9569)
Environment: kvm-alma9 (x2), Advanced Networking with Mgmt server a9
Total time taken: 51351 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8680-t9569-kvm-alma9.zip
Smoke tests completed. 128 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_04_list_storage_pools_keyword_filter Error 0.02 test_list_storage_pools.py

@JoaoJandre
Copy link
Copy Markdown
Contributor

Merging based on approvals and tests. The only test failure is not related in this PR (was fixed in #8814)

@JoaoJandre JoaoJandre merged commit 31f28f6 into apache:main Apr 16, 2024
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request May 3, 2024
…migration on KVM (apache#8680)

* remove details when error occurs

* Update plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtMigrateCommandWrapper.java

Co-authored-by: dahn <[email protected]>

---------

Co-authored-by: Gabriel <[email protected]>
Co-authored-by: dahn <[email protected]>
@DaanHoogland DaanHoogland added this to the 4.20.0.0 milestone May 7, 2024
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.

6 participants