Skip to content

test: additional check to ensure hosts are left in up state#8383

Merged
shwstppr merged 4 commits into
apache:4.18from
shapeblue:test-addcheck-vmlifecycle
Dec 21, 2023
Merged

test: additional check to ensure hosts are left in up state#8383
shwstppr merged 4 commits into
apache:4.18from
shapeblue:test-addcheck-vmlifecycle

Conversation

@shwstppr

@shwstppr shwstppr commented Dec 20, 2023

Copy link
Copy Markdown
Contributor

Description

With this change, a fix is added for failures seen with test_08_migrate_vm or other migration-related tests because the target host is in Connecting state,
#8356 (comment)
#8374 (comment)
and more

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@boring-cyborg boring-cyborg Bot added component:integration-test Python Warning... Python code Ahead! labels Dec 20, 2023
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@shwstppr
shwstppr force-pushed the test-addcheck-vmlifecycle branch from b84b654 to 1951b0c Compare December 20, 2023 11:20
@codecov

codecov Bot commented Dec 20, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (64ecd00) 13.12% compared to head (b4c74d3) 13.12%.
Report is 2 commits behind head on 4.18.

Additional details and impacted files
@@            Coverage Diff            @@
##               4.18    #8383   +/-   ##
=========================================
  Coverage     13.12%   13.12%           
  Complexity     9141     9141           
=========================================
  Files          2720     2720           
  Lines        257723   257723           
  Branches      40177    40177           
=========================================
  Hits          33838    33838           
  Misses       219595   219595           
  Partials       4290     4290           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

hostid=host.id,
type='Routing'
)[0]
if restarted_host.state == state:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should == state be == "Up" ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@weizhouapache yes 🙈
But I'm not able to reproduce the issue with hosts remaining in Connecting state so not sure if this will solve the problem

Comment thread test/integration/smoke/test_vm_life_cycle.py Outdated
Comment thread test/integration/smoke/test_vm_life_cycle.py Outdated
@shwstppr

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@shwstppr

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8106

@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-8648)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40634 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8383-t8648-kvm-centos7.zip
Smoke tests completed. 109 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@weizhouapache weizhouapache left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code lgtm

@shwstppr
smoke test results look perfect. is it ready for review ?

@shwstppr

Copy link
Copy Markdown
Contributor Author

@weizhouapache there seems some issue with GH action run on test cleanup. Checking that

@DaanHoogland DaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm, note that this test is not safe in life environment to begin with, so this does not have an influence to its

@weizhouapache

weizhouapache commented Dec 21, 2023

Copy link
Copy Markdown
Member

@weizhouapache there seems some issue with GH action run on test cleanup. Checking that

@shwstppr right..
so we should consider "Unsecure" as a valid and good state for kvm hosts.
(ignore this, the state of Unsecure hosts is also Up...)

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@shwstppr

Copy link
Copy Markdown
Contributor Author

@weizhouapache I guess Unsecure is just shown in UI and we don't have such a state in API. In API it returns host.details.secured flag. GH action error was related to the zone variable missing. Fixed it.

With this change, I'm testing a fix for failures seen with test_08_migrate_vm or other migration-related test because the target host is in Connecting state,
#8356 (comment)
#8374 (comment)
and more

@weizhouapache

weizhouapache commented Dec 21, 2023

Copy link
Copy Markdown
Member

@weizhouapache I guess Unsecure is just shown in UI and we don't have such a state in API. In API it returns host.details.secured flag.

yes, right.

GH action error was related to the zone variable missing. Fixed it.

With this change, I'm testing a fix for failures seen with test_08_migrate_vm or other migration-related test because the target host is in Connecting state, #8356 (comment) #8374 (comment) and more

Great !

@shwstppr shwstppr closed this Dec 21, 2023
@shwstppr shwstppr reopened this Dec 21, 2023
@shwstppr

Copy link
Copy Markdown
Contributor Author

Will merge this once GH actions return success

@shwstppr
shwstppr marked this pull request as ready for review December 21, 2023 12:39
@shwstppr
shwstppr merged commit d83d994 into apache:4.18 Dec 21, 2023
@shwstppr
shwstppr deleted the test-addcheck-vmlifecycle branch December 21, 2023 15:26
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 27, 2023
)

With this change, a fix is added for failures seen with test_08_migrate_vm or other migration-related tests because the target host is in `Connecting` state,
apache#8356 (comment)
apache#8374 (comment)
and more
@DaanHoogland DaanHoogland added this to the 4.18.3 milestone Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:integration-test Python Warning... Python code Ahead!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants