Skip to content

Update the Virtualization Test to Wait Before Checking the Virtual Machine #720

Closed
mreed8855 wants to merge 1 commit intomainfrom
vm_timeout_update
Closed

Update the Virtualization Test to Wait Before Checking the Virtual Machine #720
mreed8855 wants to merge 1 commit intomainfrom
vm_timeout_update

Conversation

@mreed8855
Copy link
Copy Markdown
Collaborator

@mreed8855 mreed8855 commented Sep 13, 2023

Update the Virtualization Test to Wait Before Checking the Virtual Machine (Bugfix)

This fixes this issue
#695

Jira Card
https://warthogs.atlassian.net/browse/SERVCERT-1259

Description

The test works fine, but is a bit quick to start trying to ssh into the VM, causing several retries. This makes the log noisy.

Update the virtualization test to wait 2 minutes before checking if the virtual machine
has booted. This will clean up the logs and reduce the amount of possible failed attempts in the logs.

Resolved issues

#695

Documentation

Tests

Run checkbox and run the virtualization/verify_lxd_vm job

…he virtual

machine has booted.  This will clean up the logs and reduce the amount of possible
failed attempts in the logs.
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 13, 2023

Codecov Report

Merging #720 (018572e) into main (fa62fd0) will decrease coverage by 0.01%.
Report is 1 commits behind head on main.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #720      +/-   ##
==========================================
- Coverage   32.97%   32.97%   -0.01%     
==========================================
  Files         302      302              
  Lines       35170    35172       +2     
  Branches     6144     6144              
==========================================
  Hits        11598    11598              
- Misses      23020    23022       +2     
  Partials      552      552              
Flag Coverage Δ
provider-base 1.93% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
providers/base/bin/virtualization.py 0.00% <0.00%> (ø)

Copy link
Copy Markdown
Collaborator

@bladernr bladernr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Copy Markdown
Contributor

@kissiel kissiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The constant 2min is a solid delay that's being introduced. I strongly recommend doing a busy loop for the same amount of time. For instance checking every 5s whether it booted, and doing the rest of the actions after the timeout rings.

The codecov is unhappy about the shrinking coverage. Also in the PR template there should have been an info about the suffix that helps us generate the changelog automatically (in this case (BugFix)).

I will be happy to assist you if you need more hands on those issues.

@mreed8855 mreed8855 changed the title Update the virtualization test to wait 2 minutes before checking if t… Update the Virtualization Test to Wait Before Checking the Virtual Machine Sep 14, 2023
@mreed8855
Copy link
Copy Markdown
Collaborator Author

The constant 2min is a solid delay that's being introduced. I strongly recommend doing a busy loop for the same amount of time. For instance checking every 5s whether it booted, and doing the rest of the actions after the timeout rings.
On line 885 there is already the busy loop that you just described that checks the vm every 5 seconds for 5 minutes. The purpose of the 2 minute delay is to reduce the amount of checks in the log. I am open to suggestions. I could increase the wait time in the loop?

The codecov is unhappy about the shrinking coverage. Also in the PR template there should have been an info about the suffix that helps us generate the changelog automatically (in this case (BugFix)).
I added (BugFix) in the Description is that correct?

I will be happy to assist you if you need more hands on those issues.
Any assistance is appreciated

@bladernr
Copy link
Copy Markdown
Collaborator

bladernr commented Sep 14, 2023 via email

@mreed8855
Copy link
Copy Markdown
Collaborator Author

I have created a different PR that replaces this. #743 I will close this PR.

@mreed8855 mreed8855 closed this Sep 21, 2023
@mreed8855 mreed8855 deleted the vm_timeout_update branch September 21, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants