-
Notifications
You must be signed in to change notification settings - Fork 1
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
CASMHMS-5994 - Fix for FAS Loader for CSM v1.3.2 #14
Draft
mbuchmann-hpe
wants to merge
1
commit into
master
Choose a base branch
from
CASMHMS-5994_FASLoader
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
This will update FAS from version 1.24.0 to version 1.24.1 | ||
|
||
Version 1.24.0 contains an issue with the semver pyhton library that was included | ||
with that release which causes the loader to fail. | ||
Version 1.24.1 is created with the old version of the semver python library. | ||
|
||
**NOTE**: If you are on an airgap machine, you will need to down the FAS v1.24.1 tar file and move it to the machine in the same directory as this install script. | ||
|
||
Example to download FAS v1.24.1 tar file (Use podman instead of docker if needed): | ||
|
||
```bash | ||
docker pull us-docker.pkg.dev/csm-release/csm-docker/stable/cray-firmware-action:1.24.1 | ||
docker save us-docker.pkg.dev/csm-release/csm-docker/stable/cray-firmware-action:1.24.1 > fas-1.24.1.tar | ||
``` | ||
|
||
**NOTE**: If you need to have a proxy to have access to external sites, it needs to be set. | ||
You may need to unset proxy after running script. | ||
|
||
Example of proxy settings: | ||
|
||
```bash | ||
export https_proxy=http://hpeproxy.its.hpecorp.net:443 | ||
export no_proxy=.local | ||
``` | ||
|
||
Run `install.sh` in this directory to install version 1.24.1 of FAS. | ||
**NOTE**: The `cray cli` must be installed and configured for the script to work. | ||
|
||
Once the script completes, check the output and check the version of FAS | ||
|
||
Wait for new FAS pod to start running: | ||
`kubectl -n services get pods | grep fas` | ||
|
||
Check version of FAS (should be 1.24.1) | ||
`cray fas service version list` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
set -x | ||
|
||
currentFASVersion=$(cray fas service version list --format json | jq -r .[]) | ||
|
||
if [ "$currentFASVersion" != "1.24.0" ]; then | ||
echo "This patch updates FAS from 1.24.0 to 1.24.1" | ||
echo "Current FAS Version $currentFASVersion" | ||
exit | ||
fi | ||
|
||
if [ -f "fas-1.24.1.tar" ]; then | ||
podman load -i fas-1.24.1.tar | ||
else | ||
podman pull us-docker.pkg.dev/csm-release/csm-docker/stable/cray-firmware-action:1.24.1 | ||
fi | ||
|
||
https_proxy= | ||
|
||
NEXUS_PASSWORD="$(kubectl -n nexus get secret nexus-admin-credential --template {{.data.password}} | base64 -d)" | ||
NEXUS_USERNAME="$(kubectl -n nexus get secret nexus-admin-credential --template {{.data.username}} | base64 -d)" | ||
|
||
podman push \ | ||
us-docker.pkg.dev/csm-release/csm-docker/stable/cray-firmware-action:1.24.1 \ | ||
docker://registry.local/artifactory.algol60.net/csm-docker/stable/cray-firmware-action:1.24.1 \ | ||
--creds "${NEXUS_USERNAME}:${NEXUS_PASSWORD}"`` | ||
|
||
kubectl -n services get deploy cray-fas -o yaml > fas.yaml | ||
sed -i "s/cray-firmware-action:1.24.0/cray-firmware-action:1.24.1/g" fas.yaml | ||
kubectl replace -f fas.yaml | ||
|
||
echo "FAS v1.24.1 deployed" | ||
echo "Wait for new FAS pod to start running:" | ||
echo " kubectl -n services get pods | grep fas" | ||
echo "Check version of FAS (should be 1.24.1)" | ||
echo " cray fas service version list" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the backticks on line 27 intentional?