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

Provide details in log for reboot tests #381

Open
asmorodskyi opened this issue Apr 12, 2024 · 0 comments
Open

Provide details in log for reboot tests #381

asmorodskyi opened this issue Apr 12, 2024 · 0 comments

Comments

@asmorodskyi
Copy link
Contributor

SCAP_REPORT=/var/tmp/report.html img-proof --no-color test azure --debug --distro sles --region "westeurope" --results-dir "img_proof_results" --no-cleanup --collect-vm-info --service-account-file "azure_credentials.txt" -u azureuser --ssh-private-key-file $(realpath ~/.ssh/id_rsa) --running-instance-id "openqa-suse-de-978ebec6d5962306" test_sles test_sles_azure 2>&1
> EOT_hqQgU
hqQgU-0-
# echo hqQgU; bash -oe pipefail /tmp/scripthqQgU.sh ; echo SCRIPT_FINISHEDhqQgU-$?-
hqQgU
img-proof config file not found: /root/.config/img_proof/config
IP of instance: 172.201.58.2
Created log file img_proof_results/azure/SUSE:sles-15-sp4-hardened-byos:gen2:latest/openqa-suse-de-978ebec6d5962306/20240412061548.log
Created results file img_proof_results/azure/SUSE:sles-15-sp4-hardened-byos:gen2:latest/openqa-suse-de-978ebec6d5962306/20240412061548.results
Testing soft reboot
Running test /usr/share/lib/img_proof/tests/SLES/test_sles_grow_root.py

Test directories:
/root/img_proof/tests
/usr/share/lib/img_proof/tests

Arguments:
-v -s  --json-report-file=none --ssh-config=/tmp/tmpi3gkvhc_ --hosts=172 /usr/share/lib/img_proof/tests/SLES/test_sles_grow_root.py

Running test /usr/share/lib/img_proof/tests/SLES/test_sles_motd.py

Test directories:
/root/img_proof/tests
/usr/share/lib/img_proof/tests

Arguments:
-v -s  --json-report-file=none --ssh-config=/tmp/tmpi3gkvhc_ --hosts=172 /usr/share/lib/img_proof/tests/SLES/test_sles_motd.py

Running test /usr/share/lib/img_proof/tests/SLES/test_sles_license.py

Test directories:
/root/img_proof/tests
/usr/share/lib/img_proof/tests

Arguments:
-v -s  --json-report-file=none --ssh-config=/tmp/tmpi3gkvhc_ --hosts=172 /usr/share/lib/img_proof/tests/SLES/test_sles_license.py

Running test /usr/share/lib/img_proof/tests/SLES/test_sles_root_pass.py

Test directories:
/root/img_proof/tests
/usr/share/lib/img_proof/tests

Arguments:
-v -s  --json-report-file=none --ssh-config=/tmp/tmpi3gkvhc_ --hosts=172 /usr/share/lib/img_proof/tests/SLES/test_sles_root_pass.py

Testing hard reboot
IP of instance: 
Unable to connect to instance after hard reboot: Authentication failed while establishing SSH connection. Ensure the SSH user "azureuser" is correct.
FAILED tests=6|pass=4|skip=1|fail=1|error=0

After such run log file will not contain output from execution of test_hard_reboot but .results will . See full output of log and results files
20240412061548.log
img_proof-20240412061548.txt

@smarlowucf smarlowucf changed the title Corrupted log file due failure on reconnect after reboot Provide details in log for reboot tests Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants