Skip to content

Skip network migration tests for not supported hypervisors instead of failing#3021

Merged
yadvr merged 2 commits intoapache:4.11from
shapeblue:fixtestcaseerror
Nov 14, 2018
Merged

Skip network migration tests for not supported hypervisors instead of failing#3021
yadvr merged 2 commits intoapache:4.11from
shapeblue:fixtestcaseerror

Conversation

@nvazquez
Copy link
Contributor

Description

Avoid exception when hypervisor not supported:

2018-11-10 11:04:17,858 - CRITICAL - EXCEPTION:
...in setUpClass\n    raise unittest.SkipT est("This feature is supported "\n', 'SkipTest: This feature is supported only on Vmware and KVM\n']

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)

Screenshots (if appropriate):

How Has This Been Tested?

@nvazquez nvazquez requested review from PaulAngus and yadvr November 10, 2018 21:05
@nvazquez
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

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

@nvazquez
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✔centos6 ✔centos7 ✖debian. JID-2418

@nvazquez
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2419

@nvazquez
Copy link
Contributor Author

@blueorangutan test matrix

@blueorangutan
Copy link

@nvazquez a Trillian-Jenkins matrix job (centos6 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@blueorangutan
Copy link

Trillian test result (tid-3159)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 22052 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3021-t3159-xenserver-71.zip
Intermittent failure detected: /marvin/tests/smoke/test_migration.py
Intermittent failure detected: /marvin/tests/smoke/test_scale_vm.py
Smoke tests completed. 65 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_native_to_native_network_migration Error 0.00 test_migration.py
test_02_native_to_native_vpc_migration Error 0.00 test_migration.py
test_01_scale_vm Error 13.44 test_scale_vm.py

@blueorangutan
Copy link

Trillian test result (tid-3160)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 22865 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3021-t3160-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 67 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@yadvr yadvr added this to the 4.11.2.0 milestone Nov 12, 2018
@yadvr
Copy link
Member

yadvr commented Nov 12, 2018

Still failed for xenserver, can you check @nvazquez ?

@yadvr yadvr modified the milestones: 4.11.2.0, 4.11.3.0 Nov 12, 2018
Copy link
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

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

perhaps these migration are not allowed on Xen? could be limitation of the hypervisor or licensing issue?

@yadvr
Copy link
Member

yadvr commented Nov 13, 2018

@blueorangutan test centos7 xenserver-65sp1

@blueorangutan
Copy link

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + xenserver-65sp1) has been kicked to run smoke tests

# Enable Network offering
cls.network_offering_all.update(cls.api_client, state='Enabled')
cls._cleanup = []
if not cls.hypervisorNotSupported:
Copy link
Contributor

Choose a reason for hiding this comment

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

a double negation. can we reverse the meaning (and name) of the variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would agree but would need to check if the annotation @skipTestIf accepts negations

@blueorangutan
Copy link

Trillian test result (tid-3173)
Environment: xenserver-65sp1 (x2), Advanced Networking with Mgmt server 7
Total time taken: 45581 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3021-t3173-xenserver-65sp1.zip
Intermittent failure detected: /marvin/tests/smoke/test_migration.py
Intermittent failure detected: /marvin/tests/smoke/test_ssvm.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 66 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_native_to_native_network_migration Error 0.00 test_migration.py
test_02_native_to_native_vpc_migration Error 0.00 test_migration.py

@nvazquez
Copy link
Contributor Author

Failures fixed, tested in my local environment

:~/cloudstack$ cat /tmp//MarvinLogs/test_migration_YWC2XZ/results.txt 
Verify Migration for an isolated network nativeOnly ... SKIP: Skipping test: Reason -  hypervisorNotSupported
Verify Migration for a vpc network nativeOnly ... SKIP: Skipping test: Reason -  hypervisorNotSupported

----------------------------------------------------------------------
Ran 2 tests in 0.028s

OK (SKIP=2)

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2439

@nvazquez
Copy link
Contributor Author

@blueorangutan test centos7 xenserver-65sp1

@blueorangutan
Copy link

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + xenserver-65sp1) has been kicked to run smoke tests

@blueorangutan
Copy link

Trillian test result (tid-3179)
Environment: xenserver-65sp1 (x2), Advanced Networking with Mgmt server 7
Total time taken: 21152 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3021-t3179-xenserver-65sp1.zip
Smoke tests completed. 68 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@yadvr yadvr merged commit 4fabbdb into apache:4.11 Nov 14, 2018
@nvazquez nvazquez deleted the fixtestcaseerror branch April 6, 2020 14:43
winterhazel pushed a commit that referenced this pull request Jan 28, 2026
Ajustes em fluxos de agendamentos de _backups_

Closes #2935, #3021, #3024, and #3037

See merge request scclouds/scclouds!1294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants