Skip to content

Extensions Framework & Orchestrate Anything - #9752

Merged
sureshanaparti merged 263 commits into
apache:mainfrom
shapeblue:ExternalDeploymentIntegration
Jul 28, 2025
Merged

Extensions Framework & Orchestrate Anything#9752
sureshanaparti merged 263 commits into
apache:mainfrom
shapeblue:ExternalDeploymentIntegration

Conversation

@harikrishna-patnala

@harikrishna-patnalaharikrishna-patnala commented Oct 1, 2024

Copy link
Copy Markdown
Member

Description

The Extensions Framework in Apache CloudStack is designed to provide a flexible and standardised mechanism for integrating external systems and custom workflows into CloudStack’s orchestration process. By defining structured hook points during key operations—such as virtual machine deployment, resource preparation, and lifecycle events—the framework allows administrators and developers to extend CloudStack’s behaviour without modifying its core codebase. This design specification outlines the architecture, payload structure, execution flow, and integration guidelines necessary to implement, register, and manage extensions effectively within the CloudStack environment.

For the initial implementation of the Extensions Framework, only Orchestrator-type extensions will be supported. These extensions enable seamless integration of external VM deployment and lifecycle management systems into CloudStack

A design document is made with more details at https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+Extensions+Framework+-++Orchestartor+or+External+Deployment+Integration

Documentation PR: apache/cloudstack-documentation#523

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

Screenshots (if appropriate):

Extensions List:

extensions

Create Extension Form:

create-extension

Extension View:
image

Add Custom Action Form:
add-custom-action

Run Custom Action Form:
run-custom-action

Run Action:
run-custom-action-instance

Built-in Extensions:
image

@codecov

codecovBot commented Oct 1, 2024

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 44.76840% with 2349 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.00%. Comparing base (217ff27) to head (d673742).
⚠️ Report is 115 commits behind head on main.

Files with missing linesPatch %Lines
...work/extensions/manager/ExtensionsManagerImpl.java59.23%265 Missing and 159 partials ⚠️
...al/provisioner/ExternalPathPayloadProvisioner.java62.59%161 Missing and 35 partials ⚠️
...hypervisor/external/resource/ExternalResource.java9.70%184 Missing and 2 partials ⚠️
...udstack/agent/manager/ExternalTemplateAdapter.java21.62%112 Missing and 4 partials ⚠️
.../external/discoverer/ExternalServerDiscoverer.java37.10%96 Missing and 4 partials ⚠️
...loudstack/agent/manager/ExternalServerPlanner.java0.00%84 Missing ⚠️
...n/java/com/cloud/vm/VirtualMachineManagerImpl.java52.79%50 Missing and 26 partials ⚠️
...che/cloudstack/api/response/ExtensionResponse.java0.00%73 Missing ⚠️
...ck/api/response/ExtensionCustomActionResponse.java0.00%72 Missing ⚠️
...n/java/com/cloud/resource/ResourceManagerImpl.java0.00%66 Missing ⚠️
... and 89 more
Additional details and impacted files
@@ Coverage Diff @@## main #9752 +/- ##
============================================
+ Coverage 16.76% 17.00% +0.23% - Complexity 14281 14718 +437 
============================================
Files 5767 5832 +65 Lines 512657 517561 +4904 Branches 62359 62982 +623 ============================================
+ Hits 85941 87988 +2047 - Misses 417118 419640 +2522 - Partials 9598 9933 +335 
FlagCoverage Δ
uitests3.82% <ø> (-0.04%)⬇️
unittests17.95% <44.76%> (+0.26%)⬆️

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.

@apacheapache deleted a comment from blueorangutanOct 1, 2024
@apacheapache deleted a comment from blueorangutanOct 1, 2024
@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@harikrishna-patnala

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala 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 11530

@DaanHooglandDaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@harikrishna-patnala , I noticed I had started reviewing this and abandonned it. I was about half way anf will leave you the comments now. I will revisit after 4.20 is out.

@Parameter(name = ApiConstants.ANNOTATION, type = CommandType.STRING, description = "Add an annotation to this host", since = "4.11", authorized = {RoleType.Admin})
private String annotation;

@Parameter(name = ApiConstants.EXTERNAL_DETAILS, type = CommandType.MAP, description = "Details in key/value pairs using format externaldetails[i].keyname=keyvalue. Example: externaldetails[0].endpoint.url=urlvalue", since = "4.21.0")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

details instead of external...

}
}

detailsMap.putAll(getExternalDetails());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see? these are just details.

Comment threadcore/src/main/java/com/cloud/agent/api/RebootCommand.java Outdated
Comment threadcore/src/main/java/com/cloud/agent/api/StopCommand.java Outdated
Comment threadcore/src/main/java/com/cloud/agent/api/StopCommand.java Outdated
@sureshanapartisureshanaparti self-assigned this Nov 13, 2024
@yadvr

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud 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 11592

Comment threadserver/src/main/java/com/cloud/network/guru/GuestNetworkGuru.java Outdated
Comment threadserver/src/main/java/com/cloud/network/router/NetworkHelperImpl.java Outdated
Comment threadserver/src/main/java/com/cloud/resource/DiscovererBase.java Outdated
Comment threadui/public/locales/en.json Outdated
Comment threadui/src/components/view/DetailSettings.vue Outdated
@harikrishna-patnala

Copy link
Copy Markdown
MemberAuthor

@DaanHoogland I see many other custom detail parameters in a few other APIs, such as vnfdetails, domaindetails, accountdetails, and a few more.

In this case, I would like to keep this as a separate parameter because these are the only details that are important if the hypervisor type is External. The other parameters are just meant to fit into CloudStack's workflow. The core purpose of this feature is to send these external details to the external provisioner.

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@abh1sar

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@abh1sar 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 14385

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

[SF] Trillian test result (tid-13899)
Environment: kvm-ubuntu22 (x2), Advanced Networking with Mgmt server u22
Total time taken: 60274 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9752-t13899-kvm-ubuntu22.zip
Smoke tests completed. 142 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_08_extension_syncFailure317.43test_extension_lifecycle.py
test_09_extension_deploy_vmError12.16test_extension_lifecycle.py
test_09_extension_deploy_vmError12.16test_extension_lifecycle.py
test_list_zones_metricsError0.28test_metrics_api.py
test_02_L2_persistent_networkFailure102.88test_persistent_network.py
test_03_deploy_and_destroy_VM_and_verify_network_resources_persistFailure151.52test_persistent_network.py

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File
test_list_zones_metricsError0.22test_metrics_api.py

@blueorangutan

Copy link
Copy Markdown

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

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File
test_list_zones_metricsError0.22test_metrics_api.py
test_01_vpn_usageError1.11test_usage.py

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan test ubuntu24 kvm-ubuntu24

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a [SL] Trillian-Jenkins test job (ubuntu24 mgmt + kvm-ubuntu24) has been kicked to run smoke tests

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan test ol8 vmware-70u3

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + vmware-70u3) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-13904)
Environment: kvm-ubuntu22 (x2), Advanced Networking with Mgmt server u22
Total time taken: 64745 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9752-t13904-kvm-ubuntu22.zip
Smoke tests completed. 144 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_list_zones_metricsError0.20test_metrics_api.py

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File
test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80Error654.05test_internal_lb.py
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80Error574.28test_internal_lb.py
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80Error574.30test_internal_lb.py
ContextSuite context=TestIpv4Routing>:setupError0.00test_ipv4_routing.py
test_08_upgrade_kubernetes_ha_clusterFailure202.51test_kubernetes_clusters.py
test_01_vpn_usageError1.10test_usage.py

@shwstppr

Copy link
Copy Markdown
Contributor

Similar VMware failures here, #10149 (comment)
cc @sureshanaparti

@sureshanaparti

Copy link
Copy Markdown
Contributor

Merging based on review & tests.

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-13900)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 219439 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9752-t13900-vmware-70u3.zip
Smoke tests completed. 130 look OK, 8 have errors, 7 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_3d_gpu_supportError314.31test_deploy_vgpu_enabled_vm.py
test_list_zones_metricsError0.21test_metrics_api.py
test_01_vpn_usageError1.11test_usage.py
test_01_deploy_vm_on_specific_hostError4.44test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_clusterError1802.49test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_podError1.46test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_clusterError2.45test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_podError1.33test_vm_deployment_planner.py
test_08_migrate_vmError1858.50test_vm_life_cycle.py
test_09_expunge_vmFailure424.69test_vm_life_cycle.py
test_13_destroy_and_expunge_vmError3825.59test_vm_life_cycle.py
test_01_migrate_vm_strict_tags_successError0.66test_vm_strict_host_tags.py
test_02_migrate_vm_strict_tags_failureError0.62test_vm_strict_host_tags.py
test_01_restore_vm_strict_tags_successError0.90test_vm_strict_host_tags.py
test_02_restore_vm_strict_tags_failureError0.64test_vm_strict_host_tags.py
test_01_scale_vm_strict_tags_successError0.67test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failureError0.98test_vm_strict_host_tags.py
test_01_deploy_vm_on_specific_host_without_strict_tagsError0.67test_vm_strict_host_tags.py
test_02_deploy_vm_on_any_host_without_strict_tagsError0.62test_vm_strict_host_tags.py
test_03_deploy_vm_on_specific_host_with_strict_tags_successError0.67test_vm_strict_host_tags.py
test_04_deploy_vm_on_any_host_with_strict_tags_successError0.69test_vm_strict_host_tags.py
test_05_deploy_vm_on_specific_host_with_strict_tags_failureFailure0.63test_vm_strict_host_tags.py
test_06_deploy_vm_on_any_host_with_strict_tags_failureFailure0.57test_vm_strict_host_tags.py
ContextSuite context=TestCreateVolume>:teardownError2225.97test_volumes.py
test_01_verify_ipv6_vpcError1807.61test_vpc_ipv6.py
test_01_verify_ipv6_vpcError1807.69test_vpc_ipv6.py
all_test_vpc_redundantSkipped---test_vpc_redundant.py
all_test_vpc_router_nicsSkipped---test_vpc_router_nics.py
all_test_vpc_vpnSkipped---test_vpc_vpn.py
all_test_webhook_deliverySkipped---test_webhook_delivery.py
all_test_webhook_lifecycleSkipped---test_webhook_lifecycle.py
all_test_host_maintenanceSkipped---test_host_maintenance.py
all_test_hostha_kvmSkipped---test_hostha_kvm.py

@yadvryadvr mentioned this pull request Aug 1, 2025
@iamfoolberg

Copy link
Copy Markdown

Unable to list running VMs from PVE cluster in CloudStack

Description:
I've successfully added a Proxmox VE (PVE) cluster and hosts to CloudStack following:

  1. The wiki guide: CloudStack Extensions Framework{target="_blank"}
  2. The official documentation: Troubleshooting Extensions{target="_blank"}

Current behavior:

  • PVE cluster and hosts are successfully added
  • Cannot list/display the running VMs from the PVE environment

Questions:

  1. Is libvirt installation required for this integration?
  2. Are there any additional configuration steps I might have missed?
  3. Are there specific logs I should check to diagnose this issue?

Environment:

  • CloudStack version: 4.21
  • Proxmox VE version: 8.4.1

Thanks.

@DaanHoogland

Copy link
Copy Markdown
Contributor

@iamfoolberg , as this item is closed, I think you better start a Q&A discussion item referring this ticket.
regards,

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

13 participants

@harikrishna-patnala@blueorangutan@yadvr@weizhouapache@abh1sar@shwstppr@sureshanaparti@vladimirpetrov@iamfoolberg@DaanHoogland@kiranchavala@cocey@BryanMLima