Skip to content

Commit 6bb9b9c

Browse files
committed
Adjustments for immutable SLE16.0 container host testing
1 parent e86ea7e commit 6bb9b9c

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

data/agama_auto/sle_default_immutable.jsonnet

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
password: '$6$vYbbuJ9WMriFxGHY$gQ7shLw9ZBsRcPgo6/8KmfDvQ/lCqxW8/WnMoLCoWGdHO6Touush1nhegYfdBbXRpsQuy/FTZZeg7gQL50IbA/',
1818
hashedPassword: true
1919
},
20+
software: {
21+
packages: [
22+
'curl',
23+
'wget',
24+
'acl',
25+
]
26+
},
2027
scripts: {
2128
post: [
2229
{

lib/main_containers.pm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ sub load_compose_tests {
138138

139139
sub load_firewall_test {
140140
return if (is_public_cloud || is_openstack || is_microos ||
141+
(is_sle('>=16.0') && is_transactional()) ||
141142
get_var('FLAVOR') =~ /dvd/i && (is_sle_micro('<6.0') || is_leap_micro('<6.0'))
142143
);
143144
my ($run_args) = @_;
@@ -181,7 +182,9 @@ sub load_host_tests_podman {
181182
loadtest 'containers/podman_remote' if (is_sle('>=15-SP3') || is_sle_micro('5.5+') || is_tumbleweed);
182183
}
183184
# Buildah is not available in SLE Micro, MicroOS and staging projects
184-
loadtest('containers/buildah', run_args => $run_args, name => $run_args->{runtime} . "_buildah") unless (is_sle('<15') || is_sle_micro || is_microos || is_leap_micro || is_staging);
185+
loadtest('containers/buildah', run_args => $run_args, name => $run_args->{runtime} . "_buildah") unless (is_sle('<15') || is_sle_micro || is_microos || is_leap_micro || is_staging ||
186+
(is_sle('>=16.0') && is_transactional())
187+
);
185188
load_volume_tests($run_args);
186189
load_compose_tests($run_args);
187190
loadtest('containers/seccomp', run_args => $run_args, name => $run_args->{runtime} . "_seccomp") unless is_sle('<15');

tests/containers/volumes.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ sub test {
121121
sub run {
122122
my ($self, $args) = @_;
123123
my $runtime = $args->{runtime};
124+
select_serial_terminal();
124125
my $engine = $self->containers_factory($runtime);
125126

126-
select_serial_terminal();
127127
test $runtime;
128128
$engine->cleanup_system_host();
129129

tests/publiccloud/migration.pm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ sub run {
4040
$instance->ssh_assert_script_run("sudo zypper refresh-services --force", timeout => 180);
4141

4242
# Disable maintenance updates for the migration as directory is not available during it
43-
$instance->ssh_script_run("sudo sudo sed -i 's/^enabled=1/enabled=0/' /etc/zypp/repos.d/SUSE_Maintenance_*");
43+
#$instance->ssh_script_run("sudo sudo sed -i 's/^enabled=1/enabled=0/' /etc/zypp/repos.d/SUSE_Maintenance_*");
44+
$instance->ssh_script_run("sudo sudo rm -rf /etc/zypp/repos.d/SUSE_Maintenance_*");
4445

4546
# Reboot to run the migration
4647
$instance->softreboot(timeout => 3600);
4748
validate_version($instance);
4849

4950
# Re-enable maintenance updates for the migration
50-
$instance->ssh_script_run("sudo sudo sed -i 's/^enabled=0/enabled=1/' /etc/zypp/repos.d/SUSE_Maintenance_*");
51+
#$instance->ssh_script_run("sudo sudo sed -i 's/^enabled=0/enabled=1/' /etc/zypp/repos.d/SUSE_Maintenance_*");
5152

5253
# Try to install aws-cli and azure-cli as they were removed for the migration
5354
$instance->ssh_script_run("sudo zypper -n ref", timeout => 1800) if (is_ec2());
@@ -70,7 +71,8 @@ sub run {
7071
$instance->ssh_assert_script_run("sudo zypper refresh-services --force", timeout => 180);
7172

7273
# Disable maintenance updates for the migration as directory is not available during it
73-
$instance->ssh_script_run("sudo sudo sed -i 's/^enabled=1/enabled=0/' /etc/zypp/repos.d/SUSE_Maintenance_*");
74+
#$instance->ssh_script_run("sudo sudo sed -i 's/^enabled=1/enabled=0/' /etc/zypp/repos.d/SUSE_Maintenance_*");
75+
$instance->ssh_script_run("sudo sudo rm -rf /etc/zypp/repos.d/SUSE_Maintenance_*");
7476

7577
# Reboot to run the migration
7678
$instance->softreboot(timeout => 3600);

0 commit comments

Comments
 (0)