shapeblue / Trillian

Trillian - flexible monkey powered CI/CD
Apache License 2.0
14 stars 13 forks source link

use test template for XCP-ng/Xenserver #95

Closed shwstppr closed 4 years ago

shwstppr commented 4 years ago

Use test template as default built-in template is not a PV template.

[root@pr4208-t2149-xcpng81-marvin marvin]# nosetests --with-xunit --xunit-file=results.xml --with-marvin --marvin-config=./pr4208-t2149-xcpng81-advanced-cfg -s -a tags=advanced --hypervisor=Xenserver tests/smoke/test_vm_life_cycle.py

==== Marvin Init Started ====

=== Marvin Parse Config Successful ===

=== Marvin Setting TestData Successful===

==== Log Folder Path: /marvin/MarvinLogs/Jul_20_2020_14_33_41_7NJAOY. All logs will be available here ====

=== Marvin Init Logging Successful===

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

=== TestName: test_02_advZoneVirtualRouter | Status : SUCCESS ===

=== TestName: test_04_deploy_vm_multiple | Status : SUCCESS ===

=== TestName: test_05_stop_vm | Status : SUCCESS ===

=== TestName: test_06_stop_vm_forced | Status : SUCCESS ===

=== TestName: test_07_start_vm | Status : SUCCESS ===

=== TestName: test_08_reboot_vm | Status : SUCCESS ===

=== TestName: test_09_destroy_vm | Status : SUCCESS ===

=== TestName: test_10_restore_vm | Status : SUCCESS ===

=== TestName: test_11_migrate_vm | Status : SUCCESS ===

=== TestName: test_12_expunge_vm | Status : SUCCESS ===

====Trying SSH Connection: Host:10.1.35.66 User:root                                   Port:22 RetryCnt:20===
===SSH to Host 10.1.35.66 port : 22 SUCCESSFUL===
{Cmd: mkdir -p /mnt/tmp via Host: 10.1.35.66} {returns: []}
{Cmd: mount -rt iso9660 /dev/vdc /mnt/tmp via Host: 10.1.35.66} {returns: [u"mount: unknown filesystem type 'iso9660'"]}
=== TestName: test_13_attachAndDetach_iso | Status : SUCCESS ===

===final results are now copied to: /marvin//MarvinLogs/test_vm_life_cycle_33AJ5A===
shwstppr commented 4 years ago

@rhtyd @nvazquez @DaanHoogland can you please have a look.

As the test file in Trillian replaces the original test in the marvin box, I've made the similar change I did in https://github.com/apache/cloudstack/pull/4068 for using test template for Xenserver/XCP-ng as XCP-ng 8 and above does not support PVM templates. Additional change made to skip ISO mounting when using current test template (Macchinina) as it does not have iso9660. I'll try to work on refactoring smoke tests to use new Eddie template and avoid replacing test files as it will be difficult to maintain Trillian version to the latest changes in CS codebase

andrijapanicsb commented 4 years ago

@shwstppr merging this one, based on our chat