Skip to content

Vmware offline migration - #2848

Merged
GabrielBrascher merged 8 commits into
apache:masterfrom
shapeblue:VmwareOfflineMigration
Jan 25, 2019
Merged

Vmware offline migration#2848
GabrielBrascher merged 8 commits into
apache:masterfrom
shapeblue:VmwareOfflineMigration

Conversation

@DaanHoogland

@DaanHooglandDaanHoogland commented Sep 18, 2018

Copy link
Copy Markdown
Contributor

Description

Enable storage migration for stopped VMs on Vmware and for detached volumes on primary storages in Vmware clusters.

see https://cwiki.apache.org/confluence/display/CLOUDSTACK/VMware+offline+migrations

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)

GitHub Issue/PRs

Screenshots (if appropriate):

How Has This Been Tested?

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.

@blueorangutan

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

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

@apacheapache deleted a comment from blueorangutanSep 20, 2018
@apacheapache deleted a comment from blueorangutanSep 20, 2018
@blueorangutan

Copy link
Copy Markdown

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

@DaanHoogland

DaanHoogland commented Sep 20, 2018

Copy link
Copy Markdown
ContributorAuthor

travis red, but the travis job says all green ???
rekicking

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland unsupported parameters provided. Supported mgmt server os are: centos6, centos7, ubuntu. Supported hypervisors are: kvm-centos6, kvm-centos7, kvm-ubuntu, xenserver-71, xenserver-65sp1, xenserver-62sp1, vmware-65, vmware-60u2, vmware-55u3, vmware-51u1, vmware-50u1

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test centos7 vmware-55u3

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + vmware-55u3) has been kicked to run smoke tests

@yadvr

Copy link
Copy Markdown
Member

all environments have failed deployment, see sblab for errors @DaanHoogland

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3034)
Environment: vmware-55u3 (x2), Advanced Networking with Mgmt server 7
Total time taken: 30002 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2848-t3034-vmware-55u3.zip
Intermittent failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermittent failure detected: /marvin/tests/smoke/test_multipleips_per_nic.py
Intermittent failure detected: /marvin/tests/smoke/test_snapshots.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermittent failure detected: /marvin/tests/smoke/test_host_maintenance.py
Smoke tests completed. 64 look OK, 5 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestDeployVirtioSCSIVM>:teardownError0.00test_deploy_virtio_scsi_vm.py
test_nic_secondaryip_add_removeError105.63test_multipleips_per_nic.py
test_02_list_snapshots_with_removed_data_storeError54.41test_snapshots.py
runTestError0.00test_vm_life_cycle.py
test_02_cancel_host_maintenace_with_migration_jobsError1.24test_host_maintenance.py

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test matrix

1 similar comment
@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3043)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 21013 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2848-t3043-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_multipleips_per_nic.py
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermittent failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 65 look OK, 4 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_nic_secondaryip_add_removeError26.33test_multipleips_per_nic.py
test_03_vpc_privategw_restart_vpc_cleanupFailure1122.50test_privategw_acl.py
runTestError0.00test_vm_life_cycle.py
test_hostha_enable_ha_when_host_in_maintenanceError2.42test_hostha_kvm.py

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File
ContextSuite context=TestDeployVirtioSCSIVM>:teardownError0.00test_deploy_virtio_scsi_vm.py
test_nic_secondaryip_add_removeError42.99test_multipleips_per_nic.py
test_01_scale_vmError15.43test_scale_vm.py
runTestError0.00test_vm_life_cycle.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3044)
Environment: vmware-65 (x2), Advanced Networking with Mgmt server 7
Total time taken: 24611 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2848-t3044-vmware-65.zip
Intermittent failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermittent failure detected: /marvin/tests/smoke/test_deploy_vm_root_resize.py
Intermittent failure detected: /marvin/tests/smoke/test_multipleips_per_nic.py
Intermittent failure detected: /marvin/tests/smoke/test_snapshots.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Smoke tests completed. 65 look OK, 4 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestDeployVirtioSCSIVM>:teardownError0.00test_deploy_virtio_scsi_vm.py
test_nic_secondaryip_add_removeError63.57test_multipleips_per_nic.py
test_02_list_snapshots_with_removed_data_storeError46.78test_snapshots.py
runTestError0.00test_vm_life_cycle.py

@DaanHooglandDaanHoogland changed the title WIP: Vmware offline migrationVmware offline migrationSep 22, 2018
@dhlaluku

Copy link
Copy Markdown
Contributor

@rafaelweingartner do we have any outstanding items for this? /CC @GabrielBrascher

@rafaelweingartner

Copy link
Copy Markdown
Member

@dhlaluku I am seeing this error in Travis:

raise Exception("Cleanup failed with %s" % e)
Exception: Cleanup failed with Execute cmd: deletestoragepool failed, due to: errorCode: 530, errorText:Cannot delete pool Primary XEN as there are associated non-destroyed vols for this pool
-------------------- >> begin captured logging << --------------------

Can you check it?

@dhlaluku
dhlalukuforce-pushed the VmwareOfflineMigration branch from f9ae439 to a8599e8CompareJanuary 21, 2019 12:15
@dhlaluku

Copy link
Copy Markdown
Contributor

`nosetests --with-xunit --xunit-file=results.xml --with-marvin --marvin-config=setup/dev/advanced.cfg -s -a tags=advanced,require_hardware="false" --zone=Sandbox-Simulator --hypervisor=simulator test/integration/smoke/test_primary_storage.py

==== Marvin Init Started ====

=== Marvin Parse Config Successful ===

=== Marvin Setting TestData Successful===

==== Log Folder Path: /tmp/MarvinLogs/Jan_23_2019_09_14_40_6K9K05. All logs will be available here ====

=== Marvin Init Logging Successful===

==== Marvin Init Successful ====
=== TestName: test_01_add_primary_storage_disabled_host | Status : SUCCESS ===

=== TestName: test_01_primary_storage_nfs | Status : SUCCESS ===

=== TestName: test_01_deploy_vms_storage_tags | Status : SUCCESS ===

=== TestName: test_02_edit_primary_storage_tags | Status : SUCCESS ===

=== TestName: test_03_migration_options_storage_tags | Status : SUCCESS ===

===final results are now copied to: /tmp/MarvinLogs/test_primary_storage_NFVHD7===
`
@rafaelweingartner not sure why Travis CI is failing but tests are passing from my local simulator environment

@dhlaluku
dhlalukuforce-pushed the VmwareOfflineMigration branch from 84ff31e to fc25c2dCompareJanuary 23, 2019 08:09
@rafaelweingartner

Copy link
Copy Markdown
Member

The error changed now. did you rebase or something?

Traceback (most recent call last):
File "/home/travis/.local/lib/python2.7/site-packages/nose/suite.py", line 209, in run
self.setUp()
File "/home/travis/.local/lib/python2.7/site-packages/nose/suite.py", line 292, in setUp
self.setupContext(ancestor)
File "/home/travis/.local/lib/python2.7/site-packages/nose/suite.py", line 315, in setupContext
try_run(context, names)
File "/home/travis/.local/lib/python2.7/site-packages/nose/util.py", line 471, in try_run
return func()
File "/home/travis/build/apache/cloudstack/test/integration/smoke/test_deploy_vm_root_resize.py", line 55, in setUpClass
cls.services["mode"] = cls.zone.networktype
AttributeError: 'str' object has no attribute 'networktype'

@dhlaluku

Copy link
Copy Markdown
Contributor

@rafaelweingartner I did a rebase against the latest master and force-pushed. The Travis CI errors are not related to this PR and they keep on changing every time I do a force-push. I have tested them locally against simulator based env with Ubuntu 18.04.

It is probably worth noting that they might be related to the environments with which they run, I notice that they run against Debian trusty ~ Ubuntu 14.04. We should probably upgrade to at least Ubuntu 16.04 LTS

@dhlaluku
dhlalukuforce-pushed the VmwareOfflineMigration branch from fc25c2d to 918b02fCompareJanuary 23, 2019 16:40
@dhlaluku

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@dhlaluku 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-2560

@dhlaluku

Copy link
Copy Markdown
Contributor

@blueorangutan test centos7 vmware-65

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3340)
Environment: vmware-65 (x2), Advanced Networking with Mgmt server 7
Total time taken: 39883 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2848-t3340-vmware-65.zip
Intermittent failure detected: /marvin/tests/smoke/test_primary_storage.py
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_snapshots.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermittent failure detected: /marvin/tests/smoke/test_host_maintenance.py
Smoke tests completed. 64 look OK, 6 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_01_add_primary_storage_disabled_hostError0.51test_primary_storage.py
test_01_primary_storage_nfsError0.13test_primary_storage.py
ContextSuite context=TestStorageTags>:setupError0.25test_primary_storage.py
test_03_vpc_privategw_restart_vpc_cleanupError655.04test_privategw_acl.py
test_02_list_snapshots_with_removed_data_storeError1.17test_snapshots.py
test_11_migrate_vmError138.73test_vm_life_cycle.py
test_05_rvpc_multi_tiersFailure501.70test_vpc_redundant.py
test_05_rvpc_multi_tiersError544.30test_vpc_redundant.py
test_01_cancel_host_maintenace_with_no_migration_jobsFailure4.32test_host_maintenance.py
test_02_cancel_host_maintenace_with_migration_jobsFailure227.69test_host_maintenance.py

@dhlaluku

Copy link
Copy Markdown
Contributor

@blueorangutan test centos7 vmware-65

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3342)
Environment: vmware-65 (x2), Advanced Networking with Mgmt server 7
Total time taken: 34194 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2848-t3342-vmware-65.zip
Smoke tests completed. 70 look OK, 0 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File

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

LGTM

@GabrielBrascher
GabrielBrascher merged commit b363fd4 into apache:masterJan 25, 2019
nathanejohnson pushed a commit to myENA/cloudstack that referenced this pull request Jan 26, 2019
* - Offline VM and Volume migration on Vmware hypervisor hosts
- Also add VM disk consolidation call on successful VM migrations
* Fix indentation of marvin test file and reformat against PEP8
* * Fix few comment typos
* Refactor debug messages to use String.format() when debug log level is enabled.
* Send list of commands returned by hypervisor Guru instead of explicitly selecting the first one
* Fix unhandled NPE during VM migration
* Revert back to distinct event descriptions for VM to host or storage pool migration
* Reformat test_primary_storage file against PEP-8 and Remove unused imports
* Revert back the deprecation messages in the custom StringUtils class to favour the use of the ApacheUtils
@RodrigoDLopezRodrigoDLopez mentioned this pull request Aug 24, 2020
5 tasks
bernardodemarco pushed a commit to scclouds/cloudstack that referenced this pull request Jul 16, 2025
…louds'
Substituição do logotipo kubernetes na interface gráfica
Closesapache#2848
See merge request scclouds/scclouds!1237
Sign up for freeto 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.

9 participants

@DaanHoogland@blueorangutan@yadvr@dhlaluku@mike-tutkowski@borisstoyanov@GabrielBrascher@rafaelweingartner@nvazquez