From 05c21d89a26c6a46045189a7f5bb24dbd4241826 Mon Sep 17 00:00:00 2001 From: Sebastian Luna-Valero Date: Thu, 9 Sep 2021 09:25:18 +0200 Subject: [PATCH] Update fedcloudclient command for the discovery of GPUs (#317) * update fedcloud command * super-linter: debug runner. * super-linter: fix "You are not currently on a branch" error. * link check: update checkout to ensure it always works properly on PRs --- .github/workflows/check-links.yml | 5 +++++ .github/workflows/lint.yml | 21 ++++--------------- .../en/users/cloud-compute/gpgpu/_index.md | 11 +++++----- 3 files changed, 14 insertions(+), 23 deletions(-) diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index b3816d989d..a01ae63ae4 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -12,6 +12,11 @@ jobs: # Checks out a copy of your repository on the ubuntu-latest machine - name: Checkout code uses: actions/checkout@v2 + with: + # Make sure the actual branch is checked out when running on PR + ref: ${{ github.event.pull_request.head.sha }} + # Full git history needed to get proper list of changed files + fetch-depth: 0 - name: Check links on new changes uses: gaurav-nelson/github-action-markdown-link-check@v1 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 299849ba94..ea4ba83934 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,6 +13,8 @@ jobs: - name: Checkout code uses: actions/checkout@v2 with: + # Make sure the actual branch is checked out when running on PR + ref: ${{ github.event.pull_request.head.sha }} # Full git history needed to get proper list of changed files fetch-depth: 0 @@ -25,23 +27,8 @@ jobs: MARKDOWN_CONFIG_FILE: .markdownlint.json # Only check new or edited files VALIDATE_ALL_CODEBASE: false + # Debug super-linter + ACTIONS_RUNNER_DEBUG: true # Fail on errors DISABLE_ERRORS: false FILTER_REGEX_EXCLUDE: "(.*binaries/.*)|(.*layouts/.*)|(.*/egi.js)" - - # Runs the Super-Linter action - # Checking all code base but without throwing errors - # Meant to follow progress of what still needs to be cleaned - - name: Run Super-Linter on all codebase - uses: docker://ghcr.io/github/super-linter:slim-v4 - env: - DEFAULT_BRANCH: main - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - MARKDOWN_CONFIG_FILE: .markdownlint.json - # Check all files - VALIDATE_ALL_CODEBASE: true - # Ignore errors - DISABLE_ERRORS: true - # No need to validate ruby code we are not responsible for - VALIDATE_RUBY: false - FILTER_REGEX_EXCLUDE: "(.*binaries/.*)|(.*layouts/.*)|(.*/egi.js)" diff --git a/content/en/users/cloud-compute/gpgpu/_index.md b/content/en/users/cloud-compute/gpgpu/_index.md index 6d3315f7ad..5ba5ce4419 100644 --- a/content/en/users/cloud-compute/gpgpu/_index.md +++ b/content/en/users/cloud-compute/gpgpu/_index.md @@ -33,14 +33,13 @@ dashboards, [VMOps dashboard](../vmops), or [Infrastructure manager](../im). It is also possible to use the [fedcloudclient](https://fedcloudclient.fedcloud.eu/) for CLI access. Below is an example on how to use the `fedcloud` command to show the GPU properties of -the available flavors: +the available GPU flavors on all sites for the specific VO in the command: ```shell -fedcloud openstack flavor list --long \ - --site IISAS-FedCloud \ - --vo acc-comp.egi.eu \ - --json-output | \ - jq -r '.[].Result | map(select(.Properties."Accelerator:Type" == "GPU")) | .' +fedcloud openstack flavor list --long --site ALL_SITES --vo vo.access.egi.eu --json-output | \ + jq -r 'map(select(."Error code" == 0)) | + map(.Result = (.Result| map(select(.Properties."Accelerator:Type" == "GPU")))) | + map(select(.Result | length > 0))' ``` Site-specific dashboards and endpoints are described in the following table: