Skip to content

Changing to the right api call for securing hosts - #2754

Closed
borisstoyanov wants to merge 1 commit into
apache:masterfrom
shapeblue:fix-securehost-migration-test
Closed

Changing to the right api call for securing hosts#2754
borisstoyanov wants to merge 1 commit into
apache:masterfrom
shapeblue:fix-securehost-migration-test

Conversation

@borisstoyanov

@borisstoyanovborisstoyanov commented Jul 19, 2018

Copy link
Copy Markdown
Contributor

Description

This fixes the tests for secure live migration, looks like they were pointing to the wrong api call. However during testing of this I've hit a new issue #2753 which is blocking the tests.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

GitHub Issue/PRs

The tests will pass when #2753 is fixed, since they are using a parameter in the provisionCertificate api call which makes a NPE

Screenshots (if appropriate):

NA

How Has This Been Tested?

Locally with a debugger, api call seem right but it hits the mentioned issue

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
    Testing
  • I have added tests to cover my changes.
  • All relevant new and existing integration tests have passed.
  • A full integration testsuite with all test that can run on my environment has passed.

@DaanHoogland
DaanHoogland requested a review from yadvrJuly 20, 2018 07:08

@DaanHooglandDaanHoogland 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.

makes sense

@borisstoyanov

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@borisstoyanov 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: ✔centos6 ✔centos7 ✖debian. JID-2195

@borisstoyanov

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@DaanHoogland

Copy link
Copy Markdown
Contributor

ERROR: Error cloning remote repo 'origin' !!!???
@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@borisstoyanov

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

@dhlalukudhlaluku 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

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-2874)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36416 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2754-t2874-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermitten failure detected: /marvin/tests/smoke/test_primary_storage.py
Intermitten failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermitten failure detected: /marvin/tests/smoke/test_snapshots.py
Intermitten failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermitten failure detected: /marvin/tests/smoke/test_host_maintenance.py
Intermitten failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 61 look OK, 7 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestDeployVirtioSCSIVM>:setupError0.00test_deploy_virtio_scsi_vm.py
test_01_add_primary_storage_disabled_hostError0.93test_primary_storage.py
test_01_primary_storage_nfsError0.11test_primary_storage.py
ContextSuite context=TestStorageTags>:setupError0.20test_primary_storage.py
test_03_vpc_privategw_restart_vpc_cleanupFailure1222.46test_privategw_acl.py
test_04_rvpc_privategw_static_routesFailure438.10test_privategw_acl.py
test_02_list_snapshots_with_removed_data_storeError0.19test_snapshots.py
test_01_secure_vm_migrationError139.05test_vm_life_cycle.py
test_02_unsecure_vm_migrationError137.05test_vm_life_cycle.py
test_03_secured_to_nonsecured_vm_migrationError137.02test_vm_life_cycle.py
test_04_nonsecured_to_secured_vm_migrationError139.05test_vm_life_cycle.py
test_08_migrate_vmError19.96test_vm_life_cycle.py
test_01_cancel_host_maintenace_with_no_migration_jobsFailure0.13test_host_maintenance.py
test_02_cancel_host_maintenace_with_migration_jobsError2.35test_host_maintenance.py
test_hostha_enable_ha_when_host_in_maintenanceError5.61test_hostha_kvm.py

@borisstoyanov

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@borisstoyanov
borisstoyanovforce-pushed the fix-securehost-migration-test branch from eef6040 to a687337CompareJuly 23, 2018 08:13
@blueorangutan

Copy link
Copy Markdown

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

@borisstoyanov

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@borisstoyanov 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: ✔centos6 ✔centos7 ✔debian. JID-2201

@borisstoyanov

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@borisstoyanov 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-2879)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 27119 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2754-t2879-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermitten failure detected: /marvin/tests/smoke/test_primary_storage.py
Intermitten failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermitten failure detected: /marvin/tests/smoke/test_snapshots.py
Intermitten failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermitten failure detected: /marvin/tests/smoke/test_host_maintenance.py
Intermitten failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 61 look OK, 7 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestDeployVirtioSCSIVM>:setupError0.00test_deploy_virtio_scsi_vm.py
test_01_add_primary_storage_disabled_hostError0.65test_primary_storage.py
test_01_primary_storage_nfsError0.12test_primary_storage.py
ContextSuite context=TestStorageTags>:setupError0.22test_primary_storage.py
test_03_vpc_privategw_restart_vpc_cleanupFailure1107.33test_privategw_acl.py
test_02_list_snapshots_with_removed_data_storeError1.16test_snapshots.py
test_01_secure_vm_migrationError132.94test_vm_life_cycle.py
test_02_unsecure_vm_migrationError131.91test_vm_life_cycle.py
test_03_secured_to_nonsecured_vm_migrationError132.94test_vm_life_cycle.py
test_04_nonsecured_to_secured_vm_migrationError131.91test_vm_life_cycle.py
test_08_migrate_vmError15.84test_vm_life_cycle.py
test_01_cancel_host_maintenace_with_no_migration_jobsFailure1.13test_host_maintenance.py
test_02_cancel_host_maintenace_with_migration_jobsError1.29test_host_maintenance.py
test_hostha_enable_ha_when_host_in_maintenanceError4.58test_hostha_kvm.py
test_hostha_kvm_host_fencingFailure639.25test_hostha_kvm.py
test_hostha_kvm_host_recoveringFailure618.70test_hostha_kvm.py

@borisstoyanov

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@borisstoyanov

Copy link
Copy Markdown
ContributorAuthor

vm_lifecycle tests are caused by the following issue #2763

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-2881)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 32196 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2754-t2881-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermitten failure detected: /marvin/tests/smoke/test_primary_storage.py
Intermitten failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermitten failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermitten failure detected: /marvin/tests/smoke/test_snapshots.py
Intermitten failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermitten failure detected: /marvin/tests/smoke/test_host_maintenance.py
Intermitten failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 61 look OK, 7 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestDeployVirtioSCSIVM>:setupError0.00test_deploy_virtio_scsi_vm.py
test_01_add_primary_storage_disabled_hostError0.76test_primary_storage.py
test_01_primary_storage_nfsError0.09test_primary_storage.py
ContextSuite context=TestStorageTags>:setupError0.17test_primary_storage.py
test_03_vpc_privategw_restart_vpc_cleanupFailure1282.12test_privategw_acl.py
test_04_rvpc_privategw_static_routesFailure369.15test_privategw_acl.py
test_02_list_snapshots_with_removed_data_storeError1.15test_snapshots.py
test_01_secure_vm_migrationError137.89test_vm_life_cycle.py
test_02_unsecure_vm_migrationError136.84test_vm_life_cycle.py
test_03_secured_to_nonsecured_vm_migrationError136.89test_vm_life_cycle.py
test_04_nonsecured_to_secured_vm_migrationError136.83test_vm_life_cycle.py
test_08_migrate_vmError19.78test_vm_life_cycle.py
test_01_cancel_host_maintenace_with_no_migration_jobsFailure0.10test_host_maintenance.py
test_02_cancel_host_maintenace_with_migration_jobsError1.26test_host_maintenance.py
test_hostha_enable_ha_when_host_in_maintenanceError1.43test_hostha_kvm.py
test_hostha_kvm_host_fencingError8.52test_hostha_kvm.py

@borisstoyanov

Copy link
Copy Markdown
ContributorAuthor

Closing this in favor of #2764

Sign up for freeto 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.

5 participants

@borisstoyanov@blueorangutan@DaanHoogland@yadvr@dhlaluku