Skip to content

Commit 21f2541

Browse files
authored
Merge pull request #23227 from ldevulder/fix-elemental3-rke2-start
Fix Elemental3 RKE2 start
2 parents 578324a + 83e87f7 commit 21f2541

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/elemental3/test_image.pm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use base qw(opensusebasetest);
99
use testapi;
1010
use power_action_utils qw(power_action);
1111
use serial_terminal qw(select_serial_terminal);
12+
use utils qw(systemctl);
1213
use Utils::Architectures qw(is_aarch64);
1314

1415
=head2 wait_kubectl_cmd
@@ -80,6 +81,9 @@ sub run {
8081
my $rootpwd = get_required_var('TEST_PASSWORD');
8182
$testapi::password = $rootpwd; # Set default root password
8283

84+
# Define timeouts based on the architecture
85+
my $timeout = (is_aarch64) ? 480 : 240;
86+
8387
# For HDD image boot
8488
if (check_var('IMAGE_TYPE', 'disk')) {
8589
# Wait for GRUB and select default entry
@@ -95,6 +99,10 @@ sub run {
9599
# Record boot
96100
record_info('OS boot', 'Successfully booted!');
97101

102+
# Start rke2-server
103+
# TODO: use the ReleaseManifest functionality later!
104+
systemctl('enable --now rke2-server', timeout => $timeout);
105+
98106
# Wait for kubectl command to be available
99107
wait_kubectl_cmd();
100108

0 commit comments

Comments
 (0)