-
Notifications
You must be signed in to change notification settings - Fork 280
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
Use add_on_products to enable modules without registration #20555
base: master
Are you sure you want to change the base?
Use add_on_products to enable modules without registration #20555
Conversation
@alice-suse @guoxuguang @Julie-CAO @RoyCai7 @nanzhg @tbaev Please have a look. |
726e8bd
to
3a1dab8
Compare
LGTM |
products/sle/main.pm
Outdated
@@ -864,7 +864,9 @@ elsif (get_var("VIRT_AUTOTEST")) { | |||
loadtest "virt_autotest/update_package"; | |||
# Skip reset_partition for s390x due to there just be 42Gib disk space for each s390x LPAR | |||
loadtest "virt_autotest/reset_partition" if (!is_s390x and get_var('VIRT_PRJ1_GUEST_INSTALL')); | |||
loadtest "virt_autotest/reboot_and_wait_up_normal" if (!get_var('AUTOYAST') && get_var('REPO_0_TO_INSTALL')); | |||
if (!(check_var('SCC_REGISTER', 'installation') or check_var('REGISTER', 'installation')) and get_var('REPO_0_TO_INSTALL')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can is_registered_sles be somehow used here?
@@ -41,7 +41,7 @@ | |||
</listentry> | |||
% } | |||
</add_on_products> | |||
</add-on--> | |||
</add-on> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about dev_host_12.xml.ep? Now 12sp5 enters ltss, and needs LTSS add-on if no registration.
I notice this from the verification logs. When registration is disabled, the reg_code and addons are still configured, which does not quite synced with no-registration status. It is not critical, but better to be improved. It is fine to merge as it is now and improve it later though.
|
One thing that matters to confirm: now BJ proxy scc is not available, but I believe it will come later. Will it be possible to switch back to proxy scc registration way without code change, but only setting change? |
3a1dab8
to
7df90f2
Compare
I will not change this part, because do_registration=false. This is reasonable. |
7df90f2
to
030401c
Compare
There is already HOST_SCC_URL parameter in autoyast. |
abe01dc
to
c344bce
Compare
For test scenarios that do not do registration, using add_on_products can help enable modules and install packages without reigstration. And module virt_autotest/reboot_and_wait_up_normal will be loaded for unregistered released products.
c344bce
to
ba72312
Compare
This does not follow high quality code rules IMO. And it can be easily achieved by adding condition check about registration status for the whole block of |
@Julie-CAO Can you visit github now? Look forward to your review :) ! |
Ready for review @Julie-CAO |
For test scenarios that do not do registration, using add_on_products can help enable modules and install packages without registration.
The functionality is already implemented by using
MAINT_TEST_REPO
settings.Module
virt_autotest/reboot_and_wait_up_normal
should be loaded for unregistered released products.Do update packages for unregistered products.
Move
is_registered_sles
intolib/virt_autotest/utils.pm
so it can be imported in/products/sle/main.pm
.Clean up lists of exported subroutines in
lib/virt_autotest/utils.pm
andtests/virt_autotest/virt_utils.pm
.Verification Runs: