Skip to content

Update Cloudstack and Terraform versions in acceptance workflow #190

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

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ permissions:

env:
CLOUDSTACK_API_URL: http://localhost:8080/client/api
CLOUDSTACK_VERSIONS: "['4.18.2.1', '4.19.0.2']"
CLOUDSTACK_VERSIONS: "['4.18.2.1', '4.19.3.0', '4.20.1.0']"

jobs:
prepare-matrix:
Expand Down Expand Up @@ -58,6 +58,7 @@ jobs:
id: setup-cloudstack
with:
cloudstack-version: ${{ matrix.cloudstack-version }}
debug: 'true'
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ matrix.terraform-version }}
Expand All @@ -78,8 +79,8 @@ jobs:
fail-fast: false
matrix:
terraform-version:
- '1.8.*'
- '1.9.*'
- '1.11.*'
- '1.12.*'
cloudstack-version: ${{ fromJson(needs.prepare-matrix.outputs.cloudstack-versions) }}

acceptance-opentofu:
Expand All @@ -97,6 +98,7 @@ jobs:
id: setup-cloudstack
with:
cloudstack-version: ${{ matrix.cloudstack-version }}
debug: 'true'
- uses: opentofu/setup-opentofu@v1
with:
tofu_version: ${{ matrix.opentofu-version }}
Expand All @@ -116,8 +118,8 @@ jobs:
fail-fast: false
matrix:
opentofu-version:
- '1.6.*'
- '1.7.*'
- '1.8.*'
- '1.9.*'
cloudstack-version: ${{ fromJson(needs.prepare-matrix.outputs.cloudstack-versions) }}

all-jobs-passed: # Will succeed if it is skipped
Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/setup-cloudstack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@
# under the License.

name: Setup Cloudstack
description: 'Sets up CloudStack environment for testing and development'

inputs:
cloudstack-version:
description: 'Cloudstack version'
required: true
debug:
description: 'Enable debug mode for troubleshooting'
required: false
default: 'false'
outputs:
CLOUDSTACK_USER_ID:
description: 'Cloudstack user id'
Expand Down Expand Up @@ -49,6 +54,24 @@ runs:
((T+=1))
sleep 30
done
- name: Docker Troubleshooting
if: ${{ inputs.debug == 'true' }}
shell: bash
run: |
echo "=== Docker Troubleshooting Information ==="
echo "Running docker images to list all available images"
docker images

echo "Running docker ps -a to show all containers (including stopped ones)"
docker ps -a

echo "Capturing logs from all running containers"
for container_id in $(docker ps -q); do
echo "=== Logs for container $container_id ==="
docker logs $container_id
done

echo "=== End of Docker Troubleshooting ==="
- name: Setting up Cloudstack
id: setup-cloudstack
shell: bash
Expand All @@ -75,7 +98,7 @@ runs:
- name: Install CMK
shell: bash
run: |
curl -sfL https://github.com/apache/cloudstack-cloudmonkey/releases/download/6.3.0/cmk.linux.x86-64 -o /usr/local/bin/cmk
curl -sfL https://github.com/apache/cloudstack-cloudmonkey/releases/download/6.4.0/cmk.linux.x86-64 -o /usr/local/bin/cmk
chmod +x /usr/local/bin/cmk
- name: Create extra resources
shell: bash
Expand Down
Loading