Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

microos/image_checks: Expect unpartitioned 2048 sectors at disk start #20454

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

rbmarliere
Copy link
Contributor

@rbmarliere rbmarliere commented Oct 22, 2024

For Leap Micro 5.4+ aarch64 builds, there is an 1M unpartitioned space that needs to be accounted for.

@@ -42,6 +42,9 @@ sub run {
$left_sectors = 1792;
record_soft_failure "bsc#1220722: no unpartitioned space left on aarch64";
}
if (is_leap_micro("5.4+") && is_aarch64) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this is the same as L#36.

Anyway, this whole left sectors logic should be refactored. Because it has become a mess. If you wish to, it would be nice to make it an if-elsif-else block.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry L#35. Also it makes product wise sense considering that sle-leap gap has been addressed in the past and the products have become closer in later releases

Copy link
Contributor Author

Choose a reason for hiding this comment

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

L#36 checks with is_sle_micro, whereas I used is_leap_micro. I'll try improving readability.

Copy link
Contributor

Choose a reason for hiding this comment

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

As I have mentioned, the gap between sle and leap family has been addressed and should have the same properties as much as possible. In this particular case, if sle-micro('x') has left over sectors y, the same should be expected in leap-micro('x').

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in f677e5e

For Leap Micro 5.4+ aarch64 builds, there is an 1M unpartitioned space that
needs to be accounted for.

Signed-off-by: Ricardo B. Marliere <[email protected]>
@rbmarliere rbmarliere merged commit d32e658 into os-autoinst:master Oct 22, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants