Skip to content

[WIP] Debian 13 as SystemVM template and built-in template - #149

Draft
weizhouapache wants to merge 45 commits into
shapeblue:mainfrom
weizhouapache:debian13-systemvm-builtin-templates
Draft

weizhouapache wants to merge 45 commits into
shapeblue:mainfrom
weizhouapache:debian13-systemvm-builtin-templates

Conversation

@weizhouapache

Copy link
Copy Markdown
Member

Description

This PR combines
apache#12912
apache#14493

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)
  • Build/CI
  • Test (unit or integration test code)

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?

How did you try to break this feature and the system with this change?

jbampton and others added 30 commits October 5, 2026 08:11
* Add pre-commit hook to validate dependabot.yml

https://check-jsonschema.readthedocs.io/en/stable/precommit_usage.html#check-dependabot

python-jsonschema/check-jsonschema@12e6394

* Update regex for dependabot config file validation

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Rename hook for validating dependabot config

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
)

* virtual router: Add route-maps to BGP peers for Routed Mode

It is best practice, and mandatory in newer version of FRR, that route-maps
should be applied to BGP peers. This is to prevent that mistakes can propogate
through a network and cause outages.

This change changes the route-maps where the VR will only accept IPv4 and IPv4
default gateways (0.0.0.0/0 and ::/0) to be sent by the upstream router to the VR.

The other way around this change makes sure that FRR will not allow announcing anything
else than the locally defined subnets to the upstream BGP router.

* systemvm: ignore comment lines in BGP peer test configuration

- Filter comment lines (starting with #) when comparing generated vs expected FRR config
- Apply filtering to both generated config and expected config file
- Allows keeping license headers in test fixtures while ignoring them in tests
- All 11 BGP peer tests pass
* feature: instance boot group and readiness rules

Feature to add the concept of instance boot group and readiness rules.
Design spec: https://cwiki.apache.org/confluence/spaces/CLOUDSTACK/pages/449282465/Instance+Boot+Group+and+Readiness+Rules

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* address review comments

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fix ui build

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fixes

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fix vm action warning

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* minor label fixes

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* add tests

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fixes, address comments

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* remove unused logs

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fixes

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fixes and more tests

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* force stop option and smoke test

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* minor config description

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* address comments

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* address comments; consistent API description

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fix failing test

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* address missed Copilot review

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* engine-schema: upgrade path for 4.24.0

Adds a 4.23.0 to 4.24.0 upgrade path.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* move schema changes to 4.24, update order column name

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* remove unused rule type from presentation

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* test: fix testRestoreVirtualMachineWhenHostRemoved failure

Build was failing with,
18:53:06 [ERROR] Errors:
18:53:06 [ERROR]   UserVmManagerImplTest.testRestoreVirtualMachineWhenHostRemoved:1886 ? NullPointer

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fix imports

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* add since version for api commands

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fix

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fixes around members and ui

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fix ui issue on updating readiness rule

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* fix wrong reporting of the attempt count

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* address copilot review

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

* prevent instancegroup vms delete/remove only for one with rules

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

---------

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Co-authored-by: dahn <daan@onecht.net>
- use openjdk-21-jre-headless, as openjdk-17-jre-headless is not
  available in Debian 13
- drop software-properties-common, which is not available in Debian 13
- configure the Docker apt repository with a keyring in
  /etc/apt/keyrings and a sources.list.d entry instead of apt-key and
  add-apt-repository; use VERSION_CODENAME from /etc/os-release instead
  of lsb_release
- install chrony in the preseed files, as the ntp package is not
  available in Debian 13
- do not fail if /etc/apt/sources.list does not exist, and add the
  backports and security repositories in sources.list.d
- disable the cloud-init units that exist, as cloud-init.service no
  longer exists and stopping it failed the build
* Added basic Develocity integration

* Added develocity access key setup to github actions (maven) workflows

* Cleanup

* Added licensing header to .mvn/extensions.xml

* Added lincesing info and .gitignore for develocity integration

* Point Develocity at develocity.apache.org

Signed-off-by: Gasper Kojek <gkojek@gradle.com>

* Bump Develocity Maven extensions and drop unused access key env

- develocity-maven-extension 1.21.4 -> 2.5.0
- common-custom-user-data-maven-extension 2.0 -> 2.4.0

CCUD 2.4.0 targets develocity-maven-extension 2.5.0, and both are
compatible with the Develocity 2026.2.x server. Verified locally with
`mvn -N validate`: both extensions load and the existing
.mvn/develocity.xml is read and accepted unchanged.

Also drop DEVELOCITY_ACCESS_KEY from ui.yml and pre-commit.yml, which do
not run Maven.

Signed-off-by: Gasper Kojek <gkojek@gradle.com>

* Use the DEVELOCITY_ACCESS_KEY secret name

Signed-off-by: Gasper Kojek <gkojek@gradle.com>

* Update develocity-maven-extension version to 2.6.0

* Scope DEVELOCITY_ACCESS_KEY to the Maven steps

Signed-off-by: Gasper Kojek <gkojek@gradle.com>

---------

Signed-off-by: Gasper Kojek <gkojek@gradle.com>
Co-authored-by: Gasper Kojek <gkojek@gradle.com>
VMware to KVM: cold (VDDK) and warm (CBT) migration into Ceph/RBD and Linstor, plus importVm adoption of existing RBD and Linstor volumes

Restores apache#13656 (merged as 0a5bf30, reverted by 510d0ec), with
the fixes found in review:

- CBT: the per-disk checkpoint between delta cycles is now read from
  the cycle snapshot's disk backing, so each delta copies only the
  changes since the previous cycle (a5578d6)
- CBT: failures of the final agent command or of recording the final
  cycle are handled through the normal cutover failure path
  (6fa7d30)
- CBT: cancel and delete keep the target disks of an imported VM
  (fd16736)
- importVm: load template details from the supplied template, so
  imports with the removed "VM Import Default Template" work again
  (port of apache#14195, 2a3598a)
- LINSTOR import: resource-group validation against the selected pool,
  and inspection and listing from controller metadata without
  connecting or disconnecting local DRBD resources (01058cd);
  pagination offset/limit order (ce349d8)

Feature summary:
- warm VMware-to-KVM migration with VDDK and Changed Block Tracking:
  persisted migration, cycle and disk records, preflight, delta cycles,
  operator cutover, cancel and cleanup; new admin APIs
  startVmwareCbtMigration, syncVmwareCbtMigration,
  cutoverVmwareCbtMigration, cancelVmwareCbtMigration,
  deleteVmwareCbtMigration, listVmwareCbtMigrations and
  checkVmwareCbtMigrationPrerequisites; UI under Tools
- cold direct VDDK import straight into Ceph/RBD or Linstor (raw), with
  virt-v2v in-place finalization
- adoption of existing RBD and Linstor ROOT (importVm
  importsource=shared) and DATA (importVolume) volumes without copying
- guest OS type, firmware (BIOS/UEFI, secure boot) and console defaults
  derived from the source VM configuration; static IPv4 preservation;
  Windows data disks brought online at first boot
- database changes in the 4.23.0 to 24.0.0 upgrade path

Reviewed and tested: LGTM from rp- (LINSTOR maintainer) and
alexandremattioli (tested warm CBT to QCOW2 and Ceph); Trillian smoke
tests tid-17130 on 95fc5b5: 157 OK, 0 errors.

Signed-off-by: Andrija Panic <andrija.panic@gmail.com>
For 24.x and later the systemvm templates are published in a directory
named after the major version, with the major.minor version in the file
names (24/systemvmtemplate-24.0-x86_64-kvm.qcow2.bz2), instead of
major.minor and major.minor.patch (4.22/systemvmtemplate-4.22.0-...).
… script

For 24.x and later, templateConfig.sh generates metadata.ini with the
templates in the directory named after the major version and with
major.minor in the file and template names (24/systemvmtemplate-24.0-...,
systemvm-kvm-24.0-x86_64), so that the checksums are found in
sha512sum.txt. The version in metadata.ini is unchanged (24.0.0).

export-templates.sh uses major.minor for the template file names too.
Legacy (4.x) behavior is unchanged. Tests are updated and extended.
- templates.sql: use the patched Debian 13 images (20261017-2634) from
  http://10.0.34.8/templates/debian-13-genericcloud-amd64/ for the KVM,
  XenServer (vhd.bz2) and VMware (ova) templates, with their SHA-512
  checksums
- scripts/util/build-acs-image.sh: new script to patch, shrink and
  convert a cloud image (qcow2) to VHD, OVA and XenServer VHD for
  CloudStack, and to create SHA512SUMS
- schema-21to22.sql, schema-2214to30.sql: remove the inserts of the old
  CentOS 5 builtin templates (ids 4, 7 and 5)
…n 12 (64-bit)

templates.sql cannot reference the 'Debian GNU/Linux 12 (64-bit)' guest OS
because it is only added by a later upgrade script with an auto-generated id.
Update the guest_os_id of the built-in Debian 13 templates (KVM, XenServer,
VMware) in the 4.23.0.0 to 4.24.0.0 upgrade, looking the guest OS up by name.

Also rename the VMware built-in template to debian13-x86_64-vmware to match the
KVM and XenServer names, and drop the 4.3 upgrade statement that forced the
XenServer built-in template back to guest OS 142.
…exist

iproute2 in Debian 13 does not install /etc/iproute2/rt_tables anymore,
so adding the route table of a nic failed with FileNotFoundError when
the VR was configured.

Create the file in bootstrap, for all the systemvm types, from
/etc/iptables/rt_tables_init, or from /usr/share/iproute2/rt_tables if
it does not exist. Remove the copy from default.sh.
get_suitable_test_template now returns the shared public test template
(tiny-kvm on KVM), registered by the admin only when it is missing, and
falls back to the built-in template. It was already doing this for
XenServer. The hypervisor argument is optional and is detected from the
hosts when not given.

Tests that only need a small guest now use it instead of the built-in
template, and test_ipv4_routing, test_snapshots and test_restore_vm no
longer register their own copy of the tiny template.

Tests that depend on the built-in template are not changed, for example
test_deploy_vm_root_resize (needs a template of at least 1 GiB),
test_templates, test_sharedfs_lifecycle and test_vm_autoscaling.
…again

TestSnapshotStandaloneBackup takes a snapshot, expunges the VM and then
deletes its template, to test the snapshot without its template. It needs
its own template, so it cannot use the shared public test template.
cloud-init 25.1 and later (Debian 13) does not have cloud-init.service
anymore. cloud-init-main is a single process which runs all the stages,
and cloud-init-local, cloud-init-network, cloud-config and cloud-final
hand over to it. "systemctl start cloud-init" failed, and the other two
units were started without cloud-init-main, so the user data of the
shared filesystem VMs and of the CKS nodes was never run.

Add start_cloud_init and stop_cloud_init to common.sh and use them in
sharedfsvm.sh and cksnode.sh. The old units are still used if
cloud-init-main does not exist.
The ntp package does not exist in Debian 13. On Debian 12 it was a
transitional package for ntpsec, and setup_ntp in common.sh configures
the NTP servers in /etc/ntpsec/ntp.conf and enables the ntp service,
which is an alias of ntpsec.service. With chrony, the custom NTP servers
of the console proxy and secondary storage VMs were not applied.
The cgi module was removed in Python 3.13, which is used by Debian 13,
so cloud-password-server failed to start with "No module named 'cgi'",
and the VMs could not get their passwords.

Parse the POST of savepassword.sh (multipart/form-data, sent by curl -F)
with the email package instead of cgi.FieldStorage, and also accept
application/x-www-form-urlencoded. Add unit tests, including a request
sent by curl.
The test creates an IPv6 firewall rule with a random ICMPv6 type and
code, and expects "icmpv6 code <name>" in "nft list chain". nftables
1.1.3 (Debian 13) prints the code name only for some ICMPv6 types and
the number for the others, for example "icmpv6 type ind-neighbor-advert
icmpv6 code 4", so the test failed depending on the random type and code.

Accept both the code name and the code number.
The test creates an egress network ACL rule with a random ICMPv6 type
and code, and expects "icmpv6 code <name>" in "nft list chain". nftables
1.1.3 (Debian 13) prints the code name only for some ICMPv6 types and
the number for the others, for example "icmpv6 type nd-neighbor-solicit
icmpv6 code 0", so the test failed depending on the random type and code.

Accept both the code name and the code number, like test_network_ipv6.
The Debian 13 cloud image has no NFS client, so mounting an NFS share in the
guest fails with "NFS: mount program didn't pass remote address". The shared
file system smoke test mounts the share in the guest. Install nfs-common
with the other guest packages.
Moving the smoke tests to the shared tiny-kvm template broke the tests that
need more from the guest. Run these on the Debian 13 built-in template, taken
with get_template on every hypervisor.

- test_attach_multiple_volumes, test_volumes: they detach data disks from a
  running VM, which the tiny-kvm guest never releases.
- test_backup_recovery_nas, test_backup_recovery_kboss: they create a VM from a
  backup and expect the files written in the guest to be in it.
- test_primary_storage: it puts a primary storage with running VMs in
  maintenance, which needs a guest that shuts down on request.
- test_volumes: use the 512 MiB big offering, as the Debian 13 guest does not
  boot with the 128 MiB tiny or the 256 MiB small offering.
- test_vm_autoscaling: the scale up condition needs at least 1 percent CPU, and
  an idle Debian 13 VM uses about 0.4 percent. Start a CPU loop from the
  template user data.
… templates

The images were rebuilt with the nfs-common package installed. The URLs are
unchanged, so the KVM, XenServer and VMware templates get the checksums of
the new files.
…n templates

The images are built from the Debian 13 genericcloud image of 20261021-2638
with the nfs-common package installed. Update the URLs and the SHA-512
checksums of the KVM, XenServer and VMware templates.
The template build disables cloud-init with /etc/cloud/cloud-init.disabled.
The units of cloud-init 25.1 (Debian 13) are skipped by systemd while that
file exists, so start_cloud_init did nothing: the user data of the shared
filesystem VM and the CKS nodes never ran, NFS was never started and the
mount of the shared filesystem got 'Connection refused'.

Remove the file (and the marker written by the generator at boot) and
reload systemd so that the cloud-init generator runs again, and create
the file again in stop_cloud_init.
The tests write a file in the guest and take a live backup a few seconds later.
The backup is not quiesced, so a file that was not flushed yet can be missing
from the backup. The guest root filesystem commits its journal about every 5
seconds, which is also the wait before the backup. Run sync after each touch,
so that the file is on the disk before the backup starts.
The setup scripts of the CKS nodes and the shared filesystem VMs call
dhclient, and the shared filesystem VM starts cloud-dhclient@eth0.service
which runs /usr/sbin/dhclient. Debian 13 does not install isc-dhcp-client
by default, so the commands fail:

- the DHCP options (DNS server of the virtual router, domain) are not
  applied, /etc/resolv.conf keeps the static name servers of the zone,
  and cloud-init cannot resolve data-server to find the metadata server,
  so the user data is not applied
- cloud-dhclient@eth0.service fails with status 203/EXEC

Install isc-dhcp-client, like it was available in the Debian 12 template.
…ration

cloud-init of Debian 13 tries dhcpcd first to get the DHCP lease, and
dhcpcd is not running in the system VMs. The lookup of the lease fails
with NoDHCPLeaseError, the init stage fails and the user data of the CKS
nodes and the shared filesystem VMs is not applied.

Set network.dhcp_client_priority to dhclient first in the cloud-init
configuration of the template. dhclient is installed in the template
since isc-dhcp-client is part of the system VM packages.
… template

The setup scripts of the CKS nodes and the shared filesystem VMs enable
cloud-init without ds-identify and add ConfigDrive to the datasource
list when the VM starts. Put the same settings in the cloud-init
configuration of the template:

- policy: enabled in /etc/cloud/ds-identify.cfg
- ConfigDrive and CloudStack in datasource_list

cloud-init stays disabled by default with /etc/cloud/cloud-init.disabled,
and is enabled by the setup scripts of the VMs which need it.
The usage text is printed from the header comment, so the line range it prints
is moved down by the length of the license.
…d.cloudstack.org

The images are the same 20261021-2638 files with the same checksums, now
served from download.cloudstack.org instead of the build server.
An error answer, like the timeout when the secondary storage VM
disconnects during a download, has no install path. The download
callback wrote it to the template_store_ref entry anyway, so the install
path became null and the next download of the template went to a
directory named "null".

Only update the install path when the answer has one.
Set deploy_as_is on the built-in Debian 13 VMware template in the
4.23.0.0 to 24.0.0 upgrade, so that VMs take the NIC and disk
controller of the OVA (vmxnet3, pvscsi). Without it CloudStack uses an
e1000 NIC, which the Debian cloud kernel has no driver for, and the VM
gets no network.
The sshd drop-in only sets PermitRootLogin yes now, and it is named
40-root-login.conf. PasswordAuthentication is left to the default of the
image instead of being forced to yes.
…are template

The guest kernel has no driver for the default e1000 NIC, so set the nicAdapter
(Vmxnet3) and rootDiskController (pvscsi) details of the template instead of
deploying it as is, which would prevent resizing the root disk.
…he tiny template on VMware

VirtualMachine.create adds a cloud-init userdata to the VMs deployed from a
built-in template, to allow ssh login with the root password, as the template
disables it, so the tests can reach the VMs on any template.

get_suitable_test_template returns the tiny template on VMware too, and
test_update_security_group uses it.
…-2643)

Download the images from 10.0.34.8 and update the checksums.
@blueorangutan

Copy link
Copy Markdown
Member

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✖️ suse15. SL-JID 19776

@blueorangutan

Copy link
Copy Markdown
Member

[SF] Trillian Build Failed (tid-158)

init.sh runs before dbus is started on a slow boot, e.g. on XenServer, so
hostnamectl fails and the hostname stays 'systemvm'. The agent then registers
the system VM with that name and its agent state is not shown.
@blueorangutan

Copy link
Copy Markdown
Member

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✖️ suse15. SL-JID 19796

@blueorangutan

Copy link
Copy Markdown
Member

[SF] Trillian test result (tid-155)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8, storage: NFS (x2)
Total time taken: 61439 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr149-n155-kvm-ol8.zip
Smoke tests completed. 145 look OK, 12 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_deploy_vm_from_iso Error 15.16 test_deploy_vm_iso.py
test_06_isolated_network_with_routed_mode Error 0.33 test_ipv4_routing.py
test_07_vpc_and_tier_with_routed_mode Error 1.81 test_ipv4_routing.py
test_09_connectivity_between_network_and_vpc_tier Failure 0.12 test_ipv4_routing.py
test_11_isolated_network_with_dynamic_routed_mode Error 3.71 test_ipv4_routing.py
test_12_vpc_and_tier_with_dynamic_routed_mode Error 6.52 test_ipv4_routing.py
test_01_deploy_vm_from_iso_uefi_secure Error 0.03 test_deploy_vm_iso_uefi.py
test_02_deploy_vm_from_iso_uefi_legacy Error 0.04 test_deploy_vm_iso_uefi.py
test_03_deploy_windows_vm_from_iso_uefi_legacy Error 0.04 test_deploy_vm_iso_uefi.py
test_04_deploy_windows_vm_from_iso_uefi_secure Error 0.03 test_deploy_vm_iso_uefi.py
test_deploy_more_vms_than_limit_allows Error 6.81 test_deploy_vms_in_parallel.py
test_12_deploy_vm_with_root_disk_encryption Error 56.51 test_kms_lifecycle.py
test_list_vms_metrics_user Error 1.02 test_metrics_api.py
test_01_verify_ipv6_network Error 4.17 test_network_ipv6.py
test_03_network_operations_on_created_vm_of_otheruser Error 1.77 test_network_permissions.py
test_04_deploy_vm_for_other_user_and_test_vm_operations Failure 0.65 test_network_permissions.py
test_01_non_strict_host_anti_affinity Error 1.74 test_nonstrict_affinity_group.py
test_02_non_strict_host_affinity Error 1.64 test_nonstrict_affinity_group.py
test_01_create_delete_portforwarding_fornonvpc Error 7.61 test_portforwardingrules.py
test_01_purge_expunged_api_vm_start_date Error 1.57 test_purge_expunged_vms.py
test_02_purge_expunged_api_vm_end_date Error 1.51 test_purge_expunged_vms.py
test_03_purge_expunged_api_vm_start_end_date Error 0.63 test_purge_expunged_vms.py
test_04_purge_expunged_api_vm_no_date Error 0.54 test_purge_expunged_vms.py
test_05_purge_expunged_vm_service_offering Error 0.31 test_purge_expunged_vms.py
test_06_purge_expunged_vm_background_task Error 375.63 test_purge_expunged_vms.py
ContextSuite context=TestSnapshotStandaloneBackup>:setup Error 88.46 test_snapshots.py

@blueorangutan

Copy link
Copy Markdown
Member

[SF] Trillian test result (tid-156)
Environment: kvm-ubuntu24 (x2), zone: Advanced Networking with Mgmt server u24, storage: NFS (x2)
Total time taken: 63612 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr149-n156-kvm-ubuntu24.zip
Smoke tests completed. 131 look OK, 26 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
ContextSuite context=TestClusterDRS>:setup Error 0.00 test_cluster_drs.py
test_06_isolated_network_with_routed_mode Error 0.43 test_ipv4_routing.py
test_07_vpc_and_tier_with_routed_mode Error 2.95 test_ipv4_routing.py
test_09_connectivity_between_network_and_vpc_tier Failure 0.13 test_ipv4_routing.py
test_11_isolated_network_with_dynamic_routed_mode Error 3.84 test_ipv4_routing.py
test_12_vpc_and_tier_with_dynamic_routed_mode Error 7.68 test_ipv4_routing.py
test_deploy_vm_from_iso Error 17.44 test_deploy_vm_iso.py
test_01_deploy_vm_from_iso_uefi_secure Error 0.03 test_deploy_vm_iso_uefi.py
test_02_deploy_vm_from_iso_uefi_legacy Error 0.04 test_deploy_vm_iso_uefi.py
test_03_deploy_windows_vm_from_iso_uefi_legacy Error 0.03 test_deploy_vm_iso_uefi.py
test_04_deploy_windows_vm_from_iso_uefi_secure Error 0.03 test_deploy_vm_iso_uefi.py
test_deploy_more_vms_than_limit_allows Error 7.12 test_deploy_vms_in_parallel.py
test_12_deploy_vm_with_root_disk_encryption Error 24.97 test_kms_lifecycle.py
test_list_system_vms_metrics_history Failure 0.94 test_metrics_api.py
test_list_vms_metrics_user Error 1.13 test_metrics_api.py
test_01_verify_ipv6_network Error 4.65 test_network_ipv6.py
test_03_network_operations_on_created_vm_of_otheruser Error 1.55 test_network_permissions.py
test_04_deploy_vm_for_other_user_and_test_vm_operations Failure 0.60 test_network_permissions.py
test_01_non_strict_host_anti_affinity Error 1.69 test_nonstrict_affinity_group.py
test_02_non_strict_host_affinity Error 0.66 test_nonstrict_affinity_group.py
test_01_create_delete_portforwarding_fornonvpc Error 8.34 test_portforwardingrules.py
test_01_purge_expunged_api_vm_start_date Error 0.56 test_purge_expunged_vms.py
test_02_purge_expunged_api_vm_end_date Error 0.54 test_purge_expunged_vms.py
test_03_purge_expunged_api_vm_start_end_date Error 0.38 test_purge_expunged_vms.py
test_04_purge_expunged_api_vm_no_date Error 0.43 test_purge_expunged_vms.py
test_05_purge_expunged_vm_service_offering Error 0.29 test_purge_expunged_vms.py
test_06_purge_expunged_vm_background_task Error 373.11 test_purge_expunged_vms.py
test_deploy_vm_with_registered_userdata Error 7.13 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_allow Error 7.58 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_append Error 7.82 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_params Error 7.62 test_register_userdata.py
ContextSuite context=TestResetVmOnReboot>:setup Error 0.00 test_reset_vm_on_reboot.py
test_01_so_removal_resource_update Error 0.55 test_resource_accounting.py
ContextSuite context=TestResourceNames>:setup Error 0.00 test_resource_names.py
test_01_restore_vm Error 0.33 test_restore_vm.py
test_02_restore_vm_with_disk_offering Error 0.21 test_restore_vm.py
test_03_restore_vm_with_disk_offering_custom_size Error 0.18 test_restore_vm.py
test_04_restore_vm_allocated_root Error 0.16 test_restore_vm.py
ContextSuite context=TestRouterDHCPHosts>:setup Error 0.00 test_router_dhcphosts.py
ContextSuite context=TestRouterDHCPOpts>:setup Error 0.00 test_router_dhcphosts.py
ContextSuite context=TestRouterDns>:setup Error 0.00 test_router_dns.py
ContextSuite context=TestRouterDnsService>:setup Error 0.00 test_router_dnsservice.py
test_02_routervm_iptables_policies Error 0.56 test_routers_iptables_default_policy.py
test_01_single_VPC_iptables_policies Error 80.56 test_routers_iptables_default_policy.py
test_01_single_VPC_iptables_policies Error 80.58 test_routers_iptables_default_policy.py
test_01_isolate_network_FW_PF_default_routes_egress_true Error 0.50 test_routers_network_ops.py
test_02_isolate_network_FW_PF_default_routes_egress_false Error 0.46 test_routers_network_ops.py
test_01_RVR_Network_FW_PF_SSH_default_routes_egress_true Error 143.73 test_routers_network_ops.py
test_02_RVR_Network_FW_PF_SSH_default_routes_egress_false Error 140.60 test_routers_network_ops.py
test_03_RVR_Network_check_router_state Error 144.83 test_routers_network_ops.py
ContextSuite context=TestRouterServices>:setup Error 0.00 test_routers.py
ContextSuite context=TestCpuCapServiceOfferings>:setup Error 0.00 test_service_offerings.py
ContextSuite context=TestServiceOfferings>:setup Error 4.81 test_service_offerings.py
ContextSuite context=TestSnapshotRootDisk>:setup Error 0.00 test_snapshots.py
ContextSuite context=TestSnapshotStandaloneBackup>:setup Error 0.00 test_snapshots.py
test_hostha_enable_ha_when_host_disabled Error 1.33 test_hostha_kvm.py
test_hostha_enable_ha_when_host_in_maintenance Error 301.27 test_hostha_kvm.py

The check for a built-in template listed the template with the filter 'all',
which fails for an ISO (incorrect format) and for a non-admin user. Use the
filter 'executable' and consider the template as not built-in on any error.
@blueorangutan

Copy link
Copy Markdown
Member

[SF] Trillian test result (tid-157)
Environment: vmware-70u3 (x2), zone: Advanced Networking with Mgmt server ol8, storage: NFS (x2)
Total time taken: 76158 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr149-n157-vmware-70u3.zip
Smoke tests completed. 143 look OK, 14 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_deploy_vm_from_iso Error 52.33 test_deploy_vm_iso.py
test_06_isolated_network_with_routed_mode Error 0.33 test_ipv4_routing.py
test_07_vpc_and_tier_with_routed_mode Error 1.82 test_ipv4_routing.py
test_09_connectivity_between_network_and_vpc_tier Failure 0.14 test_ipv4_routing.py
test_11_isolated_network_with_dynamic_routed_mode Error 2.64 test_ipv4_routing.py
test_12_vpc_and_tier_with_dynamic_routed_mode Error 8.62 test_ipv4_routing.py
test_deploy_more_vms_than_limit_allows Error 7.39 test_deploy_vms_in_parallel.py
test_12_deploy_vm_with_root_disk_encryption Error 45.26 test_kms_lifecycle.py
test_08_upgrade_kubernetes_ha_cluster Failure 3681.63 test_kubernetes_clusters.py
test_list_vms_metrics_user Error 0.86 test_metrics_api.py
test_01_verify_ipv6_network Error 3.80 test_network_ipv6.py
test_03_network_operations_on_created_vm_of_otheruser Error 1.60 test_network_permissions.py
test_04_deploy_vm_for_other_user_and_test_vm_operations Failure 0.62 test_network_permissions.py
test_01_non_strict_host_anti_affinity Error 0.62 test_nonstrict_affinity_group.py
test_02_non_strict_host_affinity Error 0.62 test_nonstrict_affinity_group.py
test_01_create_delete_portforwarding_fornonvpc Error 6.38 test_portforwardingrules.py
test_01_purge_expunged_api_vm_start_date Error 1.45 test_purge_expunged_vms.py
test_02_purge_expunged_api_vm_end_date Error 0.35 test_purge_expunged_vms.py
test_03_purge_expunged_api_vm_start_end_date Error 1.53 test_purge_expunged_vms.py
test_04_purge_expunged_api_vm_no_date Error 0.42 test_purge_expunged_vms.py
test_05_purge_expunged_vm_service_offering Error 0.35 test_purge_expunged_vms.py
test_06_purge_expunged_vm_background_task Error 377.12 test_purge_expunged_vms.py
test_04_scale_vm_with_user_account Error 7.54 test_scale_vm.py
test_05_scale_vm_dont_allow_disk_offering_change Error 0.74 test_scale_vm.py
ContextSuite context=TestSnapshotStandaloneBackup>:setup Error 127.33 test_snapshots.py
test_01_create_volume Failure 138.04 test_volumes.py

* test: fix smoke test failures on xen/vmware

* test: sleep 10 seconds before attaching volume in test_events_resource.py

* test: add more time.sleep(10)

* test: add more time.sleep(10) in test_vm_strict_host_tags.py

* test: fix test_usage.py

* test: move time.sleep(10) in test_host_maintenance.py

* VMware: fix import DC

* test: retry domain deletion in tearDown of test_deploy_vms_in_parallel.py

* test: fix tests failures caused by others in drs and host maintenance
@blueorangutan

Copy link
Copy Markdown
Member

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19810

@blueorangutan

Copy link
Copy Markdown
Member

[SF] Trillian test result (tid-159)
Environment: xcpng83 (x2), zone: Advanced Networking with Mgmt server ol8, storage: NFS (x2)
Total time taken: 84341 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr149-n159-xcpng83.zip
Smoke tests completed. 137 look OK, 20 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_events_resource Error 236.63 test_events_resource.py
test_attach_and_distribute_multiple_volumes Error 76.29 test_attach_multiple_volumes.py
test_deploy_vm_from_iso Error 13.34 test_deploy_vm_iso.py
test_06_isolated_network_with_routed_mode Error 0.27 test_ipv4_routing.py
test_07_vpc_and_tier_with_routed_mode Error 1.70 test_ipv4_routing.py
test_09_connectivity_between_network_and_vpc_tier Failure 0.10 test_ipv4_routing.py
test_11_isolated_network_with_dynamic_routed_mode Error 3.50 test_ipv4_routing.py
test_12_vpc_and_tier_with_dynamic_routed_mode Error 8.23 test_ipv4_routing.py
test_deploy_more_vms_than_limit_allows Error 4.06 test_deploy_vms_in_parallel.py
test_12_deploy_vm_with_root_disk_encryption Error 22.01 test_kms_lifecycle.py
test_list_vms_metrics_user Error 0.62 test_metrics_api.py
test_09_vpc_source_nat_ip_update Error 51.81 test_network_extension_namespace.py
ContextSuite context=TestNetworkExtensionNamespace>:teardown Error 2.48 test_network_extension_namespace.py
test_01_verify_ipv6_network Error 3.14 test_network_ipv6.py
test_03_network_operations_on_created_vm_of_otheruser Error 1.36 test_network_permissions.py
test_04_deploy_vm_for_other_user_and_test_vm_operations Failure 0.39 test_network_permissions.py
test_01_non_strict_host_anti_affinity Error 1.44 test_nonstrict_affinity_group.py
test_02_non_strict_host_affinity Error 1.46 test_nonstrict_affinity_group.py
test_01_create_delete_portforwarding_fornonvpc Error 5.47 test_portforwardingrules.py
test_01_deploy_vms_storage_tags Error 8.60 test_primary_storage.py
test_01_purge_expunged_api_vm_start_date Error 0.39 test_purge_expunged_vms.py
test_02_purge_expunged_api_vm_end_date Error 0.39 test_purge_expunged_vms.py
test_03_purge_expunged_api_vm_start_end_date Error 1.48 test_purge_expunged_vms.py
test_04_purge_expunged_api_vm_no_date Error 1.47 test_purge_expunged_vms.py
test_05_purge_expunged_vm_service_offering Error 0.32 test_purge_expunged_vms.py
test_06_purge_expunged_vm_background_task Error 347.30 test_purge_expunged_vms.py
test_04_scale_vm_with_user_account Error 4.88 test_scale_vm.py
test_05_scale_vm_dont_allow_disk_offering_change Error 184.83 test_scale_vm.py
ContextSuite context=TestSnapshotStandaloneBackup>:setup Error 156.86 test_snapshots.py
test_11_destroy_vm_and_volumes Error 21.99 test_vm_life_cycle.py
test_01_migrate_vm_strict_tags_success Error 38.52 test_vm_strict_host_tags.py
test_02_migrate_vm_strict_tags_failure Error 43.65 test_vm_strict_host_tags.py
test_01_restore_vm_strict_tags_success Error 37.44 test_vm_strict_host_tags.py
test_02_restore_vm_strict_tags_failure Error 19.10 test_vm_strict_host_tags.py
test_01_scale_vm_strict_tags_success Error 61.09 test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failure Error 41.61 test_vm_strict_host_tags.py
test_01_deploy_vm_on_specific_host_without_strict_tags Error 41.68 test_vm_strict_host_tags.py
test_01_create_volume Error 5.52 test_volumes.py
test_02_attach_volume Error 3.13 test_volumes.py
test_03_download_attached_volume Error 3.19 test_volumes.py
test_04_delete_attached_volume Error 3.13 test_volumes.py
test_05_detach_volume Error 3.15 test_volumes.py
test_08_resize_volume Error 83.89 test_volumes.py
test_11_attach_volume_with_unstarted_vm Error 17.78 test_volumes.py
test_12_resize_volume_with_only_size_parameter Error 0.08 test_volumes.py
ContextSuite context=TestVolumes>:teardown Error 4.44 test_volumes.py
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL Failure 744.63 test_vpc_redundant.py

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

9 participants