Repository navigation
Conversation
Collaborator
Author
|
@blueorangutan package |
|
@Damans227 a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14425 +/- ##
=========================================
Coverage 20.39% 20.39%
+ Complexity 21283 21281 -2
=========================================
Files 6481 6481
Lines 588040 588042 +2
Branches 72021 72021
=========================================
+ Hits 119957 119960 +3
+ Misses 455052 455043 -9
- Partials 13031 13039 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19587 |
Damans227
marked this pull request as ready for review
October 16, 2026 18:02
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #11984
When a vm fails to start on a XenServer or XCP-ng host, the cleanup removes the vm, its disks and network cards, but leaves its iso storage repositories (
<vm>-ISOand<vm>-CONFIGDRIVE-ISO) behind. The stop that follows finds no vm and skips them, and the next start attempt creates another one with the same name. After a few retries there are several repositories with that name, and from then on even a normal stop cant remove them, because the lookup gives up when it finds more than one. This removes both repositories in the start failure cleanup, the same way a normal stop does.Test:
Added a unit test that fails a vm start and checks both iso repositories of that vm are removed.
On a lab with one XCP-ng 8.2 host: an L2 network with Config Drive for userdata, cluster memory overcommit set to 4, and a 12 GB offering, so CloudStack places the vm but the host fails the start with
HOST_NOT_ENOUGH_FREE_MEMORY. Deploy a vm with userdata and an iso attached, start it three times, then change it to a small offering, start it and stop it. After each step, list the vm's storage repos on the host withxe sr-list.Before: every failed start leaves one more
CONFIGDRIVE-ISOrepo behind, and the normal stop at the end cant remove them either.After: nothing is left after any failed start or after the stop.
Host log (
/var/log/xensource.log) for one failed start, the repo is removed right after the vm: