Skip to content
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

Assistet installer information #59

Open
rbo opened this issue Nov 6, 2024 · 0 comments
Open

Assistet installer information #59

rbo opened this issue Nov 6, 2024 · 0 comments

Comments

@rbo
Copy link
Collaborator

rbo commented Nov 6, 2024

Instructions to ignore CPU pre-flight validation with assisted installer:
Get Offline Token from OCM: https://console.redhat.com/openshift/token
Validate API access via CLI:

export OFFLINE_TOKEN=<...>
export API_TOKEN=$( \
  curl \
  --silent \
  --header "Accept: application/json" \
  --header "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "grant_type=refresh_token" \
  --data-urlencode "client_id=cloud-services" \
  --data-urlencode "refresh_token=${OFFLINE_TOKEN}" \
  "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token" \
  | jq --raw-output ".access_token" \
)
Query all clusters and identify you cluster id from here:
curl -s https://api.openshift.com/api/assisted-install/v2/clusters -H "Authorization: Bearer ${API_TOKEN}" | jq

export CLUSTER_ID=<...>
Then send PUT to [https://api.openshift.com/api/assisted-install/v2/clusters/${CLUSTER_ID}/ignored-validations](https://api.openshift.com/api/assisted-install/v2/clusters/$%7BCLUSTER_ID%7D/ignored-validations) with JSON Body: {"host-validation-ids": "[\"has-min-cpu-cores\", \"has-cpu-cores-for-role\"]"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant