Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 4 commits into
base: 4.20
Choose a base branch
from

Conversation

weizhouapache
Copy link
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
Member Author

@blueoranguran package

Copy link

codecov bot commented Apr 1, 2025

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 6 commits behind head on 4.20.

Files with missing lines Patch % Lines
.../main/java/com/xensource/xenapi/ConnectionNew.java 0.00% 156 Missing ⚠️
...ervisor/xenserver/resource/CitrixResourceBase.java 0.00% 4 Missing ⚠️
...or/xenserver/resource/XenServerConnectionPool.java 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #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     
Flag Coverage Δ
uitests ?
unittests 16.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
Member Author

@blueorangutan package

@blueorangutan
Copy link

@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

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

@weizhouapache
Copy link
Member Author

@blueorangutan test rocky8 xcpng82

@blueorangutan
Copy link

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

@Pearl1594
Copy link
Contributor

@blueorangutan test rocky8 xcpng82

@blueorangutan
Copy link

@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
Member Author

@blueorangutan package

@apache apache deleted a comment from blueorangutan Apr 7, 2025
@apache apache deleted a comment from blueorangutan Apr 7, 2025
@apache apache deleted a comment from blueorangutan Apr 7, 2025
@apache apache deleted a comment from blueorangutan Apr 7, 2025
@apache apache deleted a comment from blueorangutan Apr 7, 2025
@apache apache deleted a comment from blueorangutan Apr 7, 2025
@apache apache deleted a comment from blueorangutan Apr 7, 2025
@apache apache deleted a comment from blueorangutan Apr 7, 2025
@blueorangutan
Copy link

@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

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

@apache apache deleted a comment from blueorangutan Apr 8, 2025
@blueorangutan
Copy link

[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:

Test Result Time (s) Test File
test_04_extract_Iso Failure 1.09 test_iso.py
test_03_ping_in_ssvm_success Failure 15.46 test_diagnostics.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setup Error 6.49 test_network.py
test_02_create_volume Error 3.25 test_resource_names.py
test_01_scale_vm Failure 222.59 test_scale_vm.py
test_04_scale_vm_with_user_account Failure 214.45 test_scale_vm.py
test_05_scale_vm_dont_allow_disk_offering_change Failure 63.09 test_scale_vm.py
test_01_scale_up_verify Failure 526.37 test_vm_autoscaling.py

@apache apache deleted a comment from blueorangutan Apr 10, 2025
CustomerMapParser is copied from org.apache.xmlrpc.parser.MapParser:3.1.3
just removed
```
            if (this.map.containsKey(this.nameObject)) {
                throw new SAXParseException("Duplicate name: " + this.nameObject, this.getDocumentLocator());
            }
```

ConnectionNew is copied from com.xensource.xenapi.Connection:8.1.0
@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@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

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

@weizhouapache
Copy link
Member Author

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

@blueorangutan test ol8 xcpng76

@blueorangutan
Copy link

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

@apache apache deleted a comment from blueorangutan Apr 11, 2025
@apache apache deleted a comment from blueorangutan Apr 11, 2025
@apache apache deleted a comment from blueorangutan Apr 11, 2025
@apache apache deleted a comment from blueorangutan Apr 11, 2025
@apache apache deleted a comment from blueorangutan Apr 11, 2025
@apache apache deleted a comment from DaanHoogland Apr 11, 2025
@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member Author

@blueorangutan test ol8 xcpng82

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[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:

Test Result Time (s) Test File
ContextSuite context=TestSharedNetworkWithConfigDrive>:setup Error 7.49 test_network.py
test_CRUD_operations_userdata Error 1519.73 test_register_userdata.py
test_deploy_vm_with_registered_userdata Error 6.80 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_allow Error 6.43 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_append Error 7.15 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_override_policy_deny Error 6.56 test_register_userdata.py
test_deploy_vm_with_registered_userdata_with_params Error 7.19 test_register_userdata.py
test_link_and_unlink_userdata_to_template Error 6.68 test_register_userdata.py
test_user_userdata_crud Error 6.99 test_register_userdata.py
ContextSuite context=TestResetVmOnReboot>:setup Error 0.00 test_reset_vm_on_reboot.py
ContextSuite context=TestRAMCPUResourceAccounting>:setup Error 0.00 test_resource_accounting.py
ContextSuite context=TestResourceNames>:setup Error 0.00 test_resource_names.py
ContextSuite context=TestRestoreVM>:setup Error 0.00 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
ContextSuite context=TestRouterIpTablesPolicies>:setup Error 0.00 test_routers_iptables_default_policy.py
ContextSuite context=TestVPCIpTablesPolicies>:setup Error 0.00 test_routers_iptables_default_policy.py
ContextSuite context=TestIsolatedNetworks>:setup Error 0.00 test_routers_network_ops.py
ContextSuite context=TestRedundantIsolateNetworks>:setup Error 0.00 test_routers_network_ops.py
ContextSuite context=TestRouterServices>:setup Error 0.00 test_routers.py
ContextSuite context=TestScaleVm>:setup Error 0.00 test_scale_vm.py
ContextSuite context=TestServiceOfferings>:setup Error 1515.90 test_service_offerings.py
ContextSuite context=TestSetSourceNatIp>:setup Error 0.00 test_set_sourcenat.py
ContextSuite context=TestSnapshotRootDisk>:setup Error 0.00 test_snapshots.py
ContextSuite context=TestSnapshotStandaloneBackup>:setup Error 0.00 test_snapshots.py
test_06_autoscaling_vmgroup_on_project_network Failure 402.97 test_vm_autoscaling.py
test_06_autoscaling_vmgroup_on_project_network Error 402.97 test_vm_autoscaling.py
test_07_autoscaling_vmgroup_on_vpc_network Failure 408.15 test_vm_autoscaling.py
test_07_autoscaling_vmgroup_on_vpc_network Error 408.17 test_vm_autoscaling.py
ContextSuite context=TestVmAutoScaling>:teardown Error 445.65 test_vm_autoscaling.py
test_01_cancel_host_maintenace_with_no_migration_jobs Error 29.66 test_host_maintenance.py
test_02_cancel_host_maintenace_with_migration_jobs Error 261.43 test_host_maintenance.py

@blueorangutan
Copy link

[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:

Test Result Time (s) Test File
test_01_condensed_drs_algorithm Failure 165.09 test_cluster_drs.py
test_02_balanced_drs_algorithm Failure 187.30 test_cluster_drs.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setup Error 7.41 test_network.py
test_01_non_strict_host_anti_affinity Error 211.22 test_nonstrict_affinity_group.py
test_02_non_strict_host_affinity Error 108.95 test_nonstrict_affinity_group.py
test_02_create_volume Error 4.23 test_resource_names.py
test_05_scale_vm_dont_allow_disk_offering_change Failure 68.41 test_scale_vm.py

@weizhouapache
Copy link
Member Author

@blueorangutan test ol8 xcpng82

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[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:

Test Result Time (s) Test File
test_01_condensed_drs_algorithm Failure 217.67 test_cluster_drs.py
test_02_balanced_drs_algorithm Failure 182.32 test_cluster_drs.py
ContextSuite context=TestSharedNetworkWithConfigDrive>:setup Error 10.45 test_network.py
test_01_non_strict_host_anti_affinity Error 260.44 test_nonstrict_affinity_group.py
test_02_non_strict_host_affinity Error 124.20 test_nonstrict_affinity_group.py
test_02_create_volume Error 4.23 test_resource_names.py
test_05_scale_vm_dont_allow_disk_offering_change Failure 66.44 test_scale_vm.py

@Pearl1594
Copy link
Contributor

@blueorangutan test ol8 xcpng76

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-12985)

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