Skip to content

test: fix component test test_configdrive.py #5528

Merged
yadvr merged 4 commits intoapache:4.16from
shapeblue:4.16-add-smoke-test-configdrive
Dec 30, 2021
Merged

test: fix component test test_configdrive.py #5528
yadvr merged 4 commits intoapache:4.16from
shapeblue:4.16-add-smoke-test-configdrive

Conversation

@weizhouapache
Copy link
Copy Markdown
Member

Description

This PR fixes some issues in test_configdrive.py and moves it from component test to smoke test.

(sleep 30s as vm crashes after migration in ubuntu 20.04)

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)

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?

(sleep 30s as vm crashes after migration in ubuntu 20.04)
@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@weizhouapache weizhouapache added this to the 4.16.0.0 milestone Sep 29, 2021
@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1436

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-2235)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 32221 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5528-t2235-kvm-centos7.zip
Smoke tests completed. 89 look OK, 1 have errors
Only failed tests results shown below:

Test Result Time (s) Test File
runTest Error 0.00 test_configdrive.py
runTest Error 0.00 test_configdrive.py

@weizhouapache weizhouapache modified the milestones: 4.16.0.0, 4.16.1.0 Sep 29, 2021
@weizhouapache
Copy link
Copy Markdown
Member Author

@nvazquez moved to 4.16.1.0

@yadvr yadvr changed the base branch from main to 4.16 November 15, 2021 10:10
@sureshanaparti
Copy link
Copy Markdown
Contributor

@weizhouapache Is this PR ready for review?

@weizhouapache
Copy link
Copy Markdown
Member Author

@weizhouapache Is this PR ready for review?

@sureshanaparti not yet. facing some issue with template registration in smoke test environments. I will look into it.

@sureshanaparti
Copy link
Copy Markdown
Contributor

@weizhouapache Is this PR ready for review?

@sureshanaparti not yet. facing some issue with template registration in smoke test environments. I will look into it.

ok, thanks for the update @weizhouapache

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1961

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm (small comment spello suggestion)

Comment thread test/integration/smoke/test_configdrive.py Outdated
Co-authored-by: dahn <daan.hoogland@gmail.com>
@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-2688)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 30919 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5528-t2688-kvm-centos7.zip
Smoke tests completed. 91 look OK, 1 have errors
Only failed tests results shown below:

Test Result Time (s) Test File
runTest Error 0.00 test_configdrive.py
runTest Error 0.00 test_configdrive.py

@sureshanaparti
Copy link
Copy Markdown
Contributor

Trillian test result (tid-2688) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 30919 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5528-t2688-kvm-centos7.zip Smoke tests completed. 91 look OK, 1 have errors Only failed tests results shown below:

Test Result Time (s) Test File
runTest Error 0.00 test_configdrive.py
runTest Error 0.00 test_configdrive.py

@weizhouapache can you check these test failures.

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1977

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1979

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan test suse15 kvm-suse15

@blueorangutan
Copy link
Copy Markdown

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

@apache apache deleted a comment from blueorangutan Dec 21, 2021
@apache apache deleted a comment from blueorangutan Dec 21, 2021
@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-2704)
Environment: kvm-suse15 (x2), Advanced Networking with Mgmt server s15
Total time taken: 41253 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5528-t2704-kvm-suse15.zip
Smoke tests completed. 90 look OK, 2 have errors
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_migrate_VM_and_root_volume Error 79.97 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 49.53 test_vm_life_cycle.py
test_hostha_enable_ha_when_host_in_maintenance Error 305.99 test_hostha_kvm.py

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-2705)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 63548 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5528-t2705-kvm-centos7.zip
Smoke tests completed. 91 look OK, 1 have errors
Only failed tests results shown below:

Test Result Time (s) Test File
test_configdrive_isolated_network Error 5213.49 test_configdrive.py
test_configdrive_shared_network Error 1352.46 test_configdrive.py

@DaanHoogland
Copy link
Copy Markdown
Contributor

code looks good to me but it still doesn't seem to work @weizhouapache . Do you have any idea yet?

Trillian test result (tid-2705) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 63548 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5528-t2705-kvm-centos7.zip Smoke tests completed. 91 look OK, 1 have errors Only failed tests results shown below:
Test Result Time (s) Test File
test_configdrive_isolated_network Error 5213.49 test_configdrive.py
test_configdrive_shared_network Error 1352.46 test_configdrive.py

@DaanHoogland DaanHoogland self-requested a review December 22, 2021 08:19
@weizhouapache
Copy link
Copy Markdown
Member Author

code looks good to me but it still doesn't seem to work @weizhouapache . Do you have any idea yet?

Trillian test result (tid-2705) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 63548 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5528-t2705-kvm-centos7.zip Smoke tests completed. 91 look OK, 1 have errors Only failed tests results shown below:
Test Result Time (s) Test File
test_configdrive_isolated_network Error 5213.49 test_configdrive.py
test_configdrive_shared_network Error 1352.46 test_configdrive.py

@DaanHoogland I am checking

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan test keepEnv

@blueorangutan
Copy link
Copy Markdown

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

@weizhouapache
Copy link
Copy Markdown
Member Author

just run the test on a env with pr 5769, it looks good.

[root@pr5769-t2700-kvm-centos7-marvin ~]# cat /marvin//MarvinLogs//06MT81/results.txt 
Test Configdrive as provider for isolated Networks ... === TestName: test_configdrive_isolated_network | Status : SUCCESS ===
ok
Test Configdrive as provider for isolated Networks ... === TestName: test_configdrive_isolated_network_hypervisor_hostname_exposed | Status : SUCCESS ===
ok
Test Configdrive as provider for shared Networks ... === TestName: test_configdrive_shared_network | Status : SUCCESS ===
ok
Test Configdrive for VPC Networks ... === TestName: test_configdrive_vpc_network | Status : SUCCESS ===
ok
Test Configdrive for VPC Networks ... === TestName: test_configdrive_vpc_network_verify_metadata | Status : SUCCESS ===
ok

----------------------------------------------------------------------
Ran 5 tests in 6192.782s

OK

rekick the test

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-2715)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 37570 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5528-t2715-kvm-centos7.zip
Smoke tests completed. 92 look OK, 0 have errors
Only failed tests results shown below:

Test Result Time (s) Test File

@apache apache deleted a comment from blueorangutan Dec 23, 2021
@weizhouapache weizhouapache marked this pull request as ready for review December 23, 2021 07:17
@apache apache deleted a comment from blueorangutan Dec 23, 2021
@weizhouapache
Copy link
Copy Markdown
Member Author

@sureshanaparti @DaanHoogland
test passed. this is ready for review.
However, I wonder if neccesary to move it to smoke test (run the tests in 103 minutes in my testing)

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-2729)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36873 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5528-t2729-kvm-centos7.zip
Smoke tests completed. 92 look OK, 0 have errors
Only failed tests results shown below:

Test Result Time (s) Test File

Copy link
Copy Markdown
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

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

code LGTM

@weizhouapache weizhouapache changed the title test: fix test_configdrive.py and move it to smoke test test: fix component test test_configdrive.py Dec 24, 2021
@sureshanaparti sureshanaparti self-requested a review December 24, 2021 07:44
@DaanHoogland
Copy link
Copy Markdown
Contributor

However, I wonder if neccesary to move it to smoke test (run the tests in 103 minutes in my testing)

Wei, can we extract a minimal set into a smoke test and leave the rest in components?

@yadvr yadvr merged commit 4ba2ad5 into apache:4.16 Dec 30, 2021
@weizhouapache weizhouapache deleted the 4.16-add-smoke-test-configdrive branch December 9, 2022 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants