Skip to content

Assisted installer / Agent Base installer debugging #135

@rbo

Description

@rbo

At rendezvous host:

source /etc/assisted/rendezvous-host.env
# Get cluster id
curl -sS -H "Authorization: ${USER_AUTH_TOKEN}" ${SERVICE_BASE_URL}/api/assisted-install/v2/clusters/ | jq -r 'first | .id'

export CLUSTER_ID=...
export CLUSTER_ID=$(curl -sS -H "Authorization: ${USER_AUTH_TOKEN}" ${SERVICE_BASE_URL}/api/assisted-install/v2/clusters/ | jq -r 'first | .id')


curl -sS -H "Authorization: ${USER_AUTH_TOKEN}" ${SERVICE_BASE_URL}/api/assisted-install/v2/clusters/${CLUSTER_ID} | jq -r .validations_info | jq

curl -sS -H "Authorization: ${USER_AUTH_TOKEN}" ${SERVICE_BASE_URL}/api/assisted-install/v2/clusters/${CLUSTER_ID}/logs
ssh core@<node-ip> sudo /usr/local/bin/agent-gather -O >agent-gather.tar.xz
I actually just ran curl -X PUT -H "Content-Type: application/json" -d '{"host-validation-ids": "[\"has-memory-for-role\"]"}' -H "Authorization: XXXX" http://192.168.x.x:8090/api/assisted-install/v2/clusters/cluster-id/ignored-validations and it worked. It disabled the validation and did allow me to start the installation

https://github.com/openshift/assisted-service/blob/master/docs/enhancements/api-for-ignoring-validations.md

 cat /var/log/agent/agent-tui.log

curl -sS -H "Authorization: ${USER_AUTH_TOKEN}" ${SERVICE_BASE_URL}/api/assisted-install/v2/clusters/${CLUSTER_ID}/install-config  | jq -r  | jq | less


[root@disco-cp-0 agent-gather]# curl -sS -H "Authorization: ${USER_AUTH_TOKEN}" ${SERVICE_BASE_URL}/api/assisted-install/v2/clusters/${CLUSTER_ID} | jq '.hosts[]  | [.requested_hostname,.status_info] '
[
  "disco-cp-2",
  "Host finished successfully to prepare for installation"
]
[
  "disco-worker-2",
  "Host finished successfully to prepare for installation"
]
[
  "disco-cp-0",
  "Host finished successfully to prepare for installation"
]
[
  "disco-worker-1",
  "Host finished successfully to prepare for installation"
]
[
  "disco-worker-0",
  "Host failed to prepare for installation due to following failing validation(s): Failed to fetch container images needed for installation from quay.io/openshift-release-dev/ocp-release@sha256:91606a5f04331ed3293f71034d4f480e38645560534805fe5a821e6b64a3f203,quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:26ca960b44d7f1219d3325456a73c0ccb212e96a0e38f9b077820d6004e7621c,quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:595874ce69fb9eae354d8ab748d06f5997f2fe9070c29adee6ae3dbdbb0fa37d,quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:fa135c50d22ae6254b9c6bdfc492e156c757ad82c4516bf5bc503a4c954f26b8. This may be due to a network hiccup. Retry to install again. If this problem persists, check your network settings to make sure you’re not blocked. ; Host couldn't synchronize with any NTP server"
]
[
  "disco-cp-1",
  "Host finished successfully to prepare for installation"
]
[root@disco-cp-0 agent-gather]#


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions