workflow dispatch #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | ||
name: Multinode test | ||
'on': | ||
push: | ||
workflow_dispatch: | ||
inputs: | ||
multinode_name: | ||
description: Multinode cluster name | ||
type: string | ||
required: true | ||
multinode_controller_count: | ||
description: Controller count | ||
type: number | ||
# FIXME: 3 | ||
default: 1 | ||
multinode_compute_count: | ||
description: Compute count | ||
type: number | ||
# FIXME: 2 | ||
default: 1 | ||
multinode_storage_count: | ||
description: Storage count | ||
type: number | ||
default: 3 | ||
os_distribution: | ||
description: Host OS distribution | ||
type: choice | ||
default: rocky | ||
options: | ||
- rocky | ||
- ubuntu | ||
neutron_plugin: | ||
description: Neutron ML2 plugin | ||
type: choice | ||
default: ovn | ||
options: | ||
- ovn | ||
- ovs | ||
terraform_kayobe_multinode_version: | ||
description: terraform-kayobe-multinode version | ||
type: string | ||
# FIXME: main | ||
default: default-kayobe-version | ||
upgrade: | ||
description: Whether to perform an upgrade | ||
type: boolean | ||
default: false | ||
break_at: | ||
description: When to break execution for manual interaction | ||
type: string | ||
# FIXME: never | ||
default: failure | ||
# type: choice | ||
# options: | ||
# - never | ||
# - failure | ||
# - infra-deployed | ||
# - openstack-deployed | ||
# - tested | ||
break_duration: | ||
description: How long to break execution for (minutes) | ||
type: number | ||
default: 60 | ||
#ssh_key: | ||
# description: SSH public key to authorise on Ansible control host | ||
# type: string | ||
env: | ||
OS_DISTRIBUTION: ${{ inputs.os_distribution || 'rocky' }} | ||
jobs: | ||
multinode: | ||
name: Multinode | ||
uses: ./.github/workflows/stackhpc-multinode.yml | ||
with: | ||
multinode_name: ${{ inputs.multinode_name || 'gha-test' }} | ||
multinode_controller_count: ${{ inputs.multinode_controller_count || 1 }} | ||
multinode_compute_count: ${{ inputs.multinode_compute_count || 1 }} | ||
multinode_storage_count: ${{ inputs.multinode_storage_count || 3 }} | ||
os_distribution: ${{ env.OS_DISTRIBUTION }} | ||
Check failure on line 79 in .github/workflows/stackhpc-multinode-test.yml
|
||
os_release: ${{ env.OS_DISTRIBUTION == 'rocky' && '9' || 'jammy' }} | ||
ssh_username: ${{ env.OS_DISTRIBUTION == 'rocky' && 'cloud-user' || 'ubuntu' }} | ||
neutron_plugin: ${{ inputs.neutron_plugin || 'ovn' }} | ||
terraform_kayobe_multinode_version: ${{ inputs.terraform_kayobe_multinode_version || 'default-kayobe-version' }} | ||
OS_CLOUD: openstack | ||
upgrade: ${{ inputs.upgrade || true }} | ||
break_at: ${{ inputs.break_at || 'failure' }} | ||
break_duration: ${{ inputs.break_duration || '60' }} | ||
#ssh_key: ${{ inputs.ssh_key }} | ||
secrets: inherit | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: false |