Limit infrastructure details revealed to the end user after a failed migration on KVM#8680
Conversation
Codecov ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…/resource/wrapper/LibvirtMigrateCommandWrapper.java Co-authored-by: dahn <daan.hoogland@gmail.com>
|
@blueorangutan package |
|
@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. |
|
Packaging result [SF]: ✖️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8952 |
|
@blueorangutan package |
|
@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. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8993 |
|
@blueorangutan test alma9 kvm-alma9 |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (alma9 mgmt + kvm-alma9) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-9569)
|
|
Merging based on approvals and tests. The only test failure is not related in this PR (was fixed in #8814) |
…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 <daan.hoogland@gmail.com> --------- Co-authored-by: Gabriel <gabriel.fernandes@scclouds.com.br> Co-authored-by: dahn <daan.hoogland@gmail.com>
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
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale