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

CLI hang up at the very beginning #166

Closed
vincent-pli opened this issue Feb 8, 2023 · 3 comments · Fixed by #175
Closed

CLI hang up at the very beginning #166

vincent-pli opened this issue Feb 8, 2023 · 3 comments · Fixed by #175
Assignees
Labels
Bug Report Something isn't working

Comments

@vincent-pli
Copy link

See the below logs:

IBM Maximo Application Suite CLI Container v3.11.0

https://github.com/ibm-mas/ansible-devops
https://github.com/ibm-mas/ansible-airgap
https://github.com/ibm-mas/cli

Available commands:
  - mas install to launch a MAS install pipeline
  - mas provision-fyre to provision an OCP cluster on IBM DevIT Fyre (internal)
  - mas provision-roks to provision an OCP cluster on IBMCloud Red Hat OpenShift Service (ROKS)
  - mas provision-aws to provision an OCP cluster on AWS
  - mas provision-rosa to provision an OCP cluster on AWS Red Hat OpenShift Service (ROSA)
  - mas setup-registry to setup a private container registry on an OCP cluster
  - mas mirror-images to mirror container images required by mas to a private registry
  - mas configure-ocp-for-mirror to configure a cluster to use a private registry as a mirror

[ibmmas/cli:3.11.0]mascli$ mas install
IBM Maximo Application Suite Installer
Powered by https://github.com/ibm-mas/ansible-devops/ and https://tekton.dev/

Current Limitations
1. Support for airgap installation is limited to Core with IoT, Manage, Optimizer at present


1. Set Target OpenShift Cluster
  Server URL ..... > https://api.ocp410.cluster.local.com:6443
  Login Token  ... > sha256~51YsgDpzDogFDmu6Art8uOfHkWLbWXkTx0QM8rPsMzo

The process hang up at the very beginning, no error, no further logs
How could I figure out what exactly going on.

I have a centos 8 as bastion node and ocp with version 4.10.37
with nfs as the storage

@durera
Copy link
Contributor

durera commented Feb 8, 2023

This is usually because the OCP server is using self-signed certificates ... we really need to add an --insecure-skip-tls-verify like is supported in the oc login command.

To workaround this for now .. run oc login xxx before running mas install ... you will likely be prompted to trust the certificate when you run the oc login command.

We'll use this issue to track the addition of --insecure-skip-tls-verify as an option ... and to make it better handle the case when someone doesn't add that option and tries to connect to a server that would need it.

@durera durera added the Bug Report Something isn't working label Feb 8, 2023
@vincent-pli
Copy link
Author

@durera you are exactly right, it works now, thanks

@durera durera self-assigned this Feb 13, 2023
@durera durera linked a pull request Feb 13, 2023 that will close this issue
@durera
Copy link
Contributor

durera commented Feb 13, 2023

This is fixed in PR #175 ... the CLI will now prompt whether the user wants to disable TLS verify to use clusters with self-signed certificates.

@durera durera closed this as completed Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants