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

OCP installation requirement #403

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

ebattat
Copy link
Contributor

@ebattat ebattat commented Nov 5, 2023

Fixes:

  1. Adding REGISTRY_AUTH_FILE="/root/.docker/config.json" before oc.latest for resolving the error:
    error: unable to read image quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256: unauthorized: access to the requested resource is not authorized
  2. Add to gitignore IntelliJ project files

Copy link
Member

@akrzos akrzos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to better understand the addition of the podman login requirement prior to adding that to the list of pre-reqs before merging this.

@@ -23,7 +23,7 @@
shell: |
cd {{ ocp_version_path }}
rm -rf openshift-install-linux-*.tar.gz openshift-client-linux-*.tar.gz
oc.latest adm release extract --tools {{ ocp_release_image }}
REGISTRY_AUTH_FILE="$HOME/.docker/config.json" oc.latest adm release extract --tools {{ ocp_release_image }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

README.md Outdated
@@ -62,6 +62,7 @@ Versions:
* ibmcloud plugin install sl (IBMcloud environments)
* RHEL 8.6 / Rocky 8.6 (Bastion)
* podman 3 / 4 (Bastion)
* podman login -u $USER -p $PASSWORD (Bastion)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the issue where you had connection refused was potentially because either the assisted-service api container was either not running and though rerunning the setup-bastion that would have had the container back up and running. Do you have a reproducer of the error so I could check this in my environment? Alternatively if it occurs in your environment again, let me know so I can take a quick peak at the containers status and logs.

Copy link
Contributor Author

@ebattat ebattat Nov 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the beginning I have added REGISTRY_AUTH_FILE="$HOME/.docker/config.json" to solve unauthorized access error when running:
ansible-playbook -i ansible/inventory/ibmcloud.local ansible/ibmcloud-setup-bastion.yml

Then when running:
ansible-playbook -i ansible/inventory/ibmcloud.local ansible/ibmcloud-bm-deploy.yml

Got Request failed: <urlopen error [Errno 111] Connection refused>", "redirected": false, "status": -1, "url": "http://xx.xx.xx.xx:8090/api/assisted-install/v2/clusters"
When running podman login -u $USER -p $PASSWORD, issue is solved.

@akrzos akrzos merged commit 9875425 into redhat-performance:main Nov 7, 2023
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

Successfully merging this pull request may close these issues.

2 participants