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

Fix partition raid for UI changes - rest of archs #5924

Merged
merged 1 commit into from
Oct 15, 2018

Conversation

jknphy
Copy link
Contributor

@jknphy jknphy commented Oct 11, 2018

  • Description: Remaining archs than x86_64 need specific adaptions for raid partition:

    • Default tab Overview, specific code for /boot partition in ppc64 should fix the step failing (or part of it?) but I cannot provide VR as the shared worker, according to @zluo has some problems with qemu 3.0 and needs to be downgraded Shared worker for ppc is working but as usual, take to much time after many tries to get a single job matching the needles due it suffers of some graphic problem. Nevertheless I got one good.
    • New flow in uefi boot partition: when editing a partition, formating Options is not directly displayed, first is offering editing partition role.
    • Shortcut when editing uefi boot partition format also changed.
    • Clean-up run and create sub for different actions.
  • Related ticket: https://progress.opensuse.org/issues/41849

  • Needles: needles sle

  • Verification run:

@jknphy jknphy changed the title Fix raid when creating boot partition in ppc [WIP] Fix raid when creating boot partition in ppc Oct 11, 2018
@jknphy jknphy changed the title [WIP] Fix raid when creating boot partition in ppc [WIP] Fix raid when creating boot partition in ppc64le Oct 11, 2018
@jknphy jknphy changed the title [WIP] Fix raid when creating boot partition in ppc64le [WIP] Adapt UI changes in partition raid to remaining archs Oct 11, 2018
@jknphy jknphy changed the title [WIP] Adapt UI changes in partition raid to remaining archs [WIP] Fix partition raid for UI changes - rest of archs Oct 11, 2018
@jknphy jknphy force-pushed the fix_raid_ppc branch 3 times, most recently from 5bbe001 to 6fdcb83 Compare October 15, 2018 06:40
@jknphy jknphy changed the title [WIP] Fix partition raid for UI changes - rest of archs Fix partition raid for UI changes - rest of archs Oct 15, 2018
@jknphy jknphy changed the title Fix partition raid for UI changes - rest of archs [WIP] Fix partition raid for UI changes - rest of archs Oct 15, 2018
@jknphy jknphy changed the title [WIP] Fix partition raid for UI changes - rest of archs Fix partition raid for UI changes - rest of archs Oct 15, 2018

sub add_raid_swap {
# for newer storage-ng toolbar has changed
$cmd{addraid} = 'alt-d' unless $older_product;
Copy link
Member

Choose a reason for hiding this comment

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

It's the same line in multiple places. Why not to move it at least to run subroutine, or even better to tests/installation/partitioning.pm where we redefine shortcuts already to have it in single place.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried on top of the file, but it didn't work, Perl evaluate it before $older_product. I don't have scope of the code in partitioning.pm yet, so let's put it in run until the refactor in poo#42401.

Copy link
Member

@rwx788 rwx788 left a comment

Choose a reason for hiding this comment

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

Looks promising! Consider moving some parts to lib/partition_setup.pm so they could be reused and hence more visible, following idea of poo#42401.

@@ -20,6 +20,24 @@ use version_utils qw(is_storage_ng is_sle is_leap is_tumbleweed);
# tumbleweed is not older product, but it didn't roll out yet
my $older_product = is_sle('<15') || is_leap('<15.1') || is_tumbleweed;
Copy link
Member

Choose a reason for hiding this comment

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

I have introduced is_storage_ng_newui in lib/partition_setup.pm. To be honest I would use just a single place, so when changes reach TW it would be single change instead of multiple places, which we already have. But that's just a side note.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same thing for partition_setup.pm. I can check how to integrate it in subsequent ticket.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, please add it there, so we reuse same peace of code.

@rwx788
Copy link
Member

rwx788 commented Oct 15, 2018

Needles merged.

@rwx788 rwx788 merged commit 4545d0b into os-autoinst:master Oct 15, 2018
@jknphy jknphy deleted the fix_raid_ppc branch January 22, 2019 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants