Skip to content

Commit

Permalink
Update fedcloudclient command for the discovery of GPUs (#317)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sebastian-luna-valero authored Sep 9, 2021
1 parent d95ed3e commit 05c21d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 23 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 4 additions & 17 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)"
11 changes: 5 additions & 6 deletions content/en/users/cloud-compute/gpgpu/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 05c21d8

Please sign in to comment.