Skip to content

xen-api: use https://mvnrepository.com/artifact/com.citrix.hypervisor/xen-api - #10644

Merged
Pearl1594 merged 4 commits into
apache:support-xen84-py3from
weizhouapache:4.20-update-xen-api
Apr 22, 2025
Merged

xen-api: use https://mvnrepository.com/artifact/com.citrix.hypervisor/xen-api#10644
Pearl1594 merged 4 commits into
apache:support-xen84-py3from
weizhouapache:4.20-update-xen-api

Conversation

@weizhouapache

Copy link
Copy Markdown
Member

Description

This PR...

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?

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueoranguran package

@codecov

codecovBot commented Apr 1, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 163 lines in your changes missing coverage. Please review.

Project coverage is 16.85%. Comparing base (bc5728a) to head (39754cb).
Report is 50 commits behind head on support-xen84-py3.

Files with missing linesPatch %Lines
.../main/java/com/xensource/xenapi/ConnectionNew.java0.00%156 Missing ⚠️
...ervisor/xenserver/resource/CitrixResourceBase.java0.00%4 Missing ⚠️
...or/xenserver/resource/XenServerConnectionPool.java0.00%3 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@## support-xen84-py3 #10644 +/- ##
=======================================================
+ Coverage 16.01% 16.85% +0.83% - Complexity 13111 13112 +1 
=======================================================
Files 5651 5255 -396 Lines 495858 463474 -32384 Branches 60048 54323 -5725 =======================================================
- Hits 79404 78107 -1297 + Misses 407593 376654 -30939 + Partials 8861 8713 -148 
FlagCoverage Δ
uitests?
unittests16.85% <0.00%> (-0.01%)⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

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

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test rocky8 xcpng82

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Trillian-Jenkins test job (rocky8 mgmt + xcpng82) has been kicked to run smoke tests

@Pearl1594

Copy link
Copy Markdown
Contributor

@blueorangutan test rocky8 xcpng82

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a [SL] Trillian-Jenkins test job (rocky8 mgmt + xcpng82) has been kicked to run smoke tests

This should fix
```
2025-04-07 12:08:20,472 WARN [c.c.h.x.r.w.x.CitrixStartCommandWrapper] (DirectAgent-36:[ctx-a59ea070]) (logid:97c16f84) Catch Exception: class com.xensource.xenapi.Types$NetworkUnmanaged due to The network is not managed by xapi. The network is not managed by xapi.
at com.xensource.xenapi.Types.checkResponse(Types.java:2514)
at com.xensource.xenapi.Connection.dispatch(Connection.java:266)
at com.cloud.hypervisor.xenserver.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:458)
at com.xensource.xenapi.VLAN.create(VLAN.java:363)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.enableVlanNetwork(CitrixResourceBase.java:1736)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.getNetwork(CitrixResourceBase.java:2885)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.createVif(CitrixResourceBase.java:1280)
at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixStartCommandWrapper.execute(CitrixStartCommandWrapper.java:106)
at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixStartCommandWrapper.execute(CitrixStartCommandWrapper.java:56)
at com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixRequestWrapper.execute(CitrixRequestWrapper.java:122)
at com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:1791)
```
refer to CA-387821: SDK Tests/JavaSDK failed. Set Network.managed to true before creating the network.
xenserver/xenserver-samples@1684db5
@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@apacheapache deleted a comment from blueorangutanApr 7, 2025
@apacheapache deleted a comment from blueorangutanApr 7, 2025
@apacheapache deleted a comment from blueorangutanApr 7, 2025
@apacheapache deleted a comment from blueorangutanApr 7, 2025
@apacheapache deleted a comment from blueorangutanApr 7, 2025
@apacheapache deleted a comment from blueorangutanApr 7, 2025
@apacheapache deleted a comment from blueorangutanApr 7, 2025
@apacheapache deleted a comment from blueorangutanApr 7, 2025
@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

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

@apacheapache deleted a comment from blueorangutanApr 8, 2025
@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-12897)
Environment: xcpng76 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 84355 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10644-t12897-xcpng76.zip
Smoke tests completed. 135 look OK, 6 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_04_extract_IsoFailure1.09test_iso.py
test_03_ping_in_ssvm_successFailure15.46test_diagnostics.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setupError6.49test_network.py
test_02_create_volumeError3.25test_resource_names.py
test_01_scale_vmFailure222.59test_scale_vm.py
test_04_scale_vm_with_user_accountFailure214.45test_scale_vm.py
test_05_scale_vm_dont_allow_disk_offering_changeFailure63.09test_scale_vm.py
test_01_scale_up_verifyFailure526.37test_vm_autoscaling.py

@yadvryadvr added this to the 4.20.1 milestone Apr 10, 2025
@weizhouapache

Copy link
Copy Markdown
MemberAuthor

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

@blueorangutan test ol8 xcpng76

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + xcpng76) has been kicked to run smoke tests

@apacheapache deleted a comment from blueorangutanApr 11, 2025
@apacheapache deleted a comment from blueorangutanApr 11, 2025
@apacheapache deleted a comment from blueorangutanApr 11, 2025
@apacheapache deleted a comment from blueorangutanApr 11, 2025
@apacheapache deleted a comment from blueorangutanApr 11, 2025
@apacheapache deleted a comment from DaanHooglandApr 11, 2025
@blueorangutan

Copy link
Copy Markdown

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

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test ol8 xcpng82

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + xcpng82) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-12964)
Environment: xcpng76 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 119490 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10644-t12964-xcpng76.zip
Smoke tests completed. 123 look OK, 18 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestSharedNetworkWithConfigDrive>:setupError7.49test_network.py
test_CRUD_operations_userdataError1519.73test_register_userdata.py
test_deploy_vm_with_registered_userdataError6.80test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_allowError6.43test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_appendError7.15test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_denyError6.56test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_paramsError7.19test_register_userdata.py
test_link_and_unlink_userdata_to_templateError6.68test_register_userdata.py
test_user_userdata_crudError6.99test_register_userdata.py
ContextSuite context=TestResetVmOnReboot>:setupError0.00test_reset_vm_on_reboot.py
ContextSuite context=TestRAMCPUResourceAccounting>:setupError0.00test_resource_accounting.py
ContextSuite context=TestResourceNames>:setupError0.00test_resource_names.py
ContextSuite context=TestRestoreVM>:setupError0.00test_restore_vm.py
ContextSuite context=TestRouterDHCPHosts>:setupError0.00test_router_dhcphosts.py
ContextSuite context=TestRouterDHCPOpts>:setupError0.00test_router_dhcphosts.py
ContextSuite context=TestRouterDns>:setupError0.00test_router_dns.py
ContextSuite context=TestRouterDnsService>:setupError0.00test_router_dnsservice.py
ContextSuite context=TestRouterIpTablesPolicies>:setupError0.00test_routers_iptables_default_policy.py
ContextSuite context=TestVPCIpTablesPolicies>:setupError0.00test_routers_iptables_default_policy.py
ContextSuite context=TestIsolatedNetworks>:setupError0.00test_routers_network_ops.py
ContextSuite context=TestRedundantIsolateNetworks>:setupError0.00test_routers_network_ops.py
ContextSuite context=TestRouterServices>:setupError0.00test_routers.py
ContextSuite context=TestScaleVm>:setupError0.00test_scale_vm.py
ContextSuite context=TestServiceOfferings>:setupError1515.90test_service_offerings.py
ContextSuite context=TestSetSourceNatIp>:setupError0.00test_set_sourcenat.py
ContextSuite context=TestSnapshotRootDisk>:setupError0.00test_snapshots.py
ContextSuite context=TestSnapshotStandaloneBackup>:setupError0.00test_snapshots.py
test_06_autoscaling_vmgroup_on_project_networkFailure402.97test_vm_autoscaling.py
test_06_autoscaling_vmgroup_on_project_networkError402.97test_vm_autoscaling.py
test_07_autoscaling_vmgroup_on_vpc_networkFailure408.15test_vm_autoscaling.py
test_07_autoscaling_vmgroup_on_vpc_networkError408.17test_vm_autoscaling.py
ContextSuite context=TestVmAutoScaling>:teardownError445.65test_vm_autoscaling.py
test_01_cancel_host_maintenace_with_no_migration_jobsError29.66test_host_maintenance.py
test_02_cancel_host_maintenace_with_migration_jobsError261.43test_host_maintenance.py

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-12967)
Environment: xcpng82 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 73514 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10644-t12967-xcpng82.zip
Smoke tests completed. 136 look OK, 5 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_01_condensed_drs_algorithmFailure165.09test_cluster_drs.py
test_02_balanced_drs_algorithmFailure187.30test_cluster_drs.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setupError7.41test_network.py
test_01_non_strict_host_anti_affinityError211.22test_nonstrict_affinity_group.py
test_02_non_strict_host_affinityError108.95test_nonstrict_affinity_group.py
test_02_create_volumeError4.23test_resource_names.py
test_05_scale_vm_dont_allow_disk_offering_changeFailure68.41test_scale_vm.py

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test ol8 xcpng82

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + xcpng82) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-12968)
Environment: xcpng82 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 72218 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10644-t12968-xcpng82.zip
Smoke tests completed. 136 look OK, 5 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_01_condensed_drs_algorithmFailure217.67test_cluster_drs.py
test_02_balanced_drs_algorithmFailure182.32test_cluster_drs.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setupError10.45test_network.py
test_01_non_strict_host_anti_affinityError260.44test_nonstrict_affinity_group.py
test_02_non_strict_host_affinityError124.20test_nonstrict_affinity_group.py
test_02_create_volumeError4.23test_resource_names.py
test_05_scale_vm_dont_allow_disk_offering_changeFailure66.44test_scale_vm.py

@Pearl1594

Copy link
Copy Markdown
Contributor

@blueorangutan test ol8 xcpng76

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a [SL] Trillian-Jenkins test job (ol8 mgmt + xcpng76) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-12985)

@Pearl1594

Copy link
Copy Markdown
Contributor

@blueorangutan test ol8 xcpng76

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 a [SL] Trillian-Jenkins test job (ol8 mgmt + xcpng76) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-13023)
Environment: xcpng76 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 82808 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10644-t13023-xcpng76.zip
Smoke tests completed. 137 look OK, 4 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestSharedNetworkWithConfigDrive>:setupError10.52test_network.py
test_02_create_volumeError4.50test_resource_names.py
test_01_scale_vmFailure220.63test_scale_vm.py
test_04_scale_vm_with_user_accountFailure228.40test_scale_vm.py
test_05_scale_vm_dont_allow_disk_offering_changeFailure67.36test_scale_vm.py
test_07_autoscaling_vmgroup_on_vpc_networkFailure431.40test_vm_autoscaling.py
test_07_autoscaling_vmgroup_on_vpc_networkError431.42test_vm_autoscaling.py

@Pearl1594

Pearl1594 commented Apr 18, 2025

Copy link
Copy Markdown
Contributor

Based on comparing the test runs against xcp-ng 7.6 (#10668 (comment) vs #10644 (comment)) and xcp-ng 8.2 (#10668 (comment) vs #10644 (comment)), with that run against 4.20, I see the same failures on both - IMHO I think this is good to merge and test with xcp - @weizhouapache do you think it would be better to target this PR against #10684 as the main intention for this change is to get XCP-ng 8.3 to work.

@weizhouapache
weizhouapache changed the base branch from 4.20 to support-xen84-py3April 22, 2025 06:52
@weizhouapache

Copy link
Copy Markdown
MemberAuthor

Based on comparing the test runs against xcp-ng 7.6 (#10668 (comment) vs #10644 (comment)) and xcp-ng 8.2 (#10668 (comment) vs #10644 (comment)), with that run against 4.20, I see the same failures on both - IMHO I think this is good to merge and test with xcp - @weizhouapache do you think it would be better to target this PR against #10684 as the main intention for this change is to get XCP-ng 8.3 to work.

great, thanks @Pearl1594

I have changed the target branch to your support-xen84-py3
feel free to merge or update

@Pearl1594

Copy link
Copy Markdown
Contributor

Thanks @weizhouapache

@Pearl1594
Pearl1594 marked this pull request as ready for review April 22, 2025 07:36
@Pearl1594
Pearl1594 merged commit 8ff139e into apache:support-xen84-py3Apr 22, 2025
@DaanHoogland
DaanHoogland deleted the 4.20-update-xen-api branch April 23, 2025 09:48
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.

4 participants

@weizhouapache@blueorangutan@Pearl1594@yadvr