Skip to content

Commit

Permalink
virt_autotest: reset vm password for OSD virt test run
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxuguang committed May 29, 2024
1 parent c5f1e9d commit 50ce542
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/virt_autotest/login_console.pm
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ sub config_ssh_client {
script_run("echo " . get_var('_SECRET_RSA_PUB_KEY') . " >> $ssh_dir/authorized_keys");
}

sub reset_vm_passwd {
my $qa_password = get_var("QA_PASSWORD", "nots3cr3t");
my $vm_password = get_var("VM_PASSWORD", "novell");
my $migratee_password = get_var("MIGRATEE_PASSWORD", "susetesting");
assert_script_run 'export xen.pass=$vm_password';
assert_script_run 'export vm.pass=$vm_password';
assert_script_run 'export vm.sshpassword=$qa_password';
assert_script_run 'export migratee.pass=$migratee_password';
assert_script_run 'export migratee.vm.pass=$migratee_password';
}

#Just only match bootmenu-xen-kernel needle was not enough for xen host if got Xen domain0 kernel panic(bsc#1192258)
#Need to double-check xen role after matched bootmenu-xen-kernel needle successfully
sub double_check_xen_role {
Expand Down

0 comments on commit 50ce542

Please sign in to comment.