OpenStack Compute
Certified
Manage OpenStack Nova virtual machines, power states, metadata, snapshots, and event-driven triggers.
OpenStack Compute
Manage OpenStack Nova virtual machines, power states, metadata, snapshots, and event-driven triggers.
tasks
How to use the OpenStack plugin
Integrate with OpenStack to orchestrate virtual machine lifecycle, power operations, metadata, snapshots, and event-driven automation across private and public OpenStack clouds (such as OVHcloud Public Cloud, Canonical OpenStack, Red Hat OpenStack Platform, etc.).
The OpenStack plugin provides tasks for Nova Compute and Glance Image services, authenticated via Keystone v3.
Authentication
All tasks authenticate against the OpenStack Keystone Identity API (/v3) using either Application Credentials (recommended for automation and service accounts) or User Credentials (username, password, and project/domain scope).
Credentials can be passed via Kestra secrets or configured org-wide using plugin defaults.
1. Application Credentials (Recommended)
Application credentials provide scoped, non-expiring machine tokens without exposing primary user passwords:
tasks:
- id: list_servers
type: io.kestra.plugin.openstack.compute.ListServers
authUrl: "https://identity.region.openstack.example.com/v3"
applicationCredentialId: "{{ secret('OS_APP_CRED_ID') }}"
applicationCredentialSecret: "{{ secret('OS_APP_CRED_SECRET') }}"
2. Username and Password
tasks:
- id: list_servers
type: io.kestra.plugin.openstack.compute.ListServers
authUrl: "https://identity.region.openstack.example.com/v3"
username: "kestra-operator"
password: "{{ secret('OS_PASSWORD') }}"
userDomainName: "Default"
projectName: "production"
projectDomainName: "Default"
region: "RegionOne"
OpenStack Snapshot Architecture Gotcha
In OpenStack, VM snapshots created via Nova's createImage action are stored and managed directly in Glance (/v2/images). Consequently:
- Snapshot operations (such as listing, restoring, and deleting) use Glance image UUIDs (
imageId). - When a snapshot is initiated, Glance transitions through asynchronous statuses (
queued->saving->active). Tasks likeCloneServerautomatically wait for the Glance image to reachactivestatus before booting the clone instance.
Compute Tasks
Virtual Machine Provisioning & Lifecycle
- CreateServer: Provision a new Nova VM instance with automatic name resolution (flavor, image, network) and base64 cloud-init encoding.
- Required fields:
name,flavorRef(flavor UUID or name) - Optional fields:
imageRef(image UUID or name),networks(list of network/port UUIDs or names),keyName,userData,metadata,adminPass,serverDescription,tags,waitUntilComplete(defaults totrue),waitTimeout
- Required fields:
- ListServers: Query servers with regex filtering, status filters, and pagination markers; supports
FETCH,FETCH_ONE, andSTORE(persisted to Kestra internal storage) fetch modes.- Optional fields:
fetchType(FETCH,FETCH_ONE,STORE),name,nameRegex,status(ACTIVE,SHUTOFF,ERROR, etc.),changesSince,limit,pageSize,marker
- Optional fields:
- UpdateServer: Update mutable attributes (name, server description, flavor resize with auto-confirmation, network attachments, metadata) of an existing server.
- Required fields:
serverId - Optional fields:
name,serverDescription,flavorRef,autoConfirmResize(defaults totrue),waitTimeout,metadata,networkId
- Required fields:
- DeleteServer: Terminate and permanently delete a VM instance.
- Required fields:
serverId
- Required fields:
- GetServerMetadata: Retrieve key-value metadata attached to a server.
- Required fields:
serverId
- Required fields:
Power & Instance State Management
All lifecycle action tasks (DeleteServer, StartServer, StopServer, RebootServer, ResetServer, SuspendServer, ResumeServer) accept waitUntilComplete (defaults to false) and waitTimeout (defaults to PT10M).
- StartServer: Power on a stopped/shutoff server instance.
- Required fields:
serverId
- Required fields:
- StopServer: Gracefully power off a running server instance.
- Required fields:
serverId
- Required fields:
- RebootServer: Issue a soft or hard reboot to a server instance.
- Required fields:
serverId - Optional fields:
rebootType(SOFTorHARD, defaults toSOFT)
- Required fields:
- ResetServer: Force a hard reboot on a server instance.
- Required fields:
serverId
- Required fields:
- SuspendServer: Suspend a server instance to hypervisor memory.
- Required fields:
serverId
- Required fields:
- ResumeServer: Resume a suspended server instance.
- Required fields:
serverId
- Required fields:
Snapshots & Disaster Recovery
- CreateServerSnapshot: Create a point-in-time Glance snapshot image from an active server.
- Required fields:
serverId,name - Optional fields:
metadata
- Required fields:
- ListServerSnapshots: List all snapshot images belonging to an instance.
- Required fields:
serverId
- Required fields:
- DeleteServerSnapshot: Permanently delete a snapshot image from Glance.
- Required fields:
imageId
- Required fields:
- RestoreServerFromSnapshot: Rebuild an existing server instance from a snapshot image.
- Required fields:
serverId,imageId
- Required fields:
- CloneServer: Orchestrate automated server cloning by snapshotting a source server, waiting for the snapshot to become active in Glance, and launching a new instance from that snapshot.
- Required fields:
sourceServerId,name - Optional fields:
flavorRef,networks,snapshotName,deleteSnapshotAfterClone(defaults tofalse),waitTimeout
- Required fields:
Trigger
- Trigger: Polling trigger that monitors OpenStack Nova compute servers for state changes and lifecycle events using KV Store watermarking and event filtering.
- Properties:
status,serverNameRegex,eventType(ALL,CREATE,START,STOP,REBOOT,PAUSE,SUSPEND,RESUME,DELETE,RESIZE,REBUILD),maxEvents(defaults to 50),interval(defaults toPT1M)
- Properties: