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

ROSA Deployment Issues #97

Closed
fernandoibm opened this issue Jan 31, 2022 · 1 comment
Closed

ROSA Deployment Issues #97

fernandoibm opened this issue Jan 31, 2022 · 1 comment

Comments

@fernandoibm
Copy link

Hi,

I'm trying to deploy CP4D using ROSA module, but I'm getting this error;

module.ocp.null_resource.install_rosa (local-exec): time="2022-01-31T13:38:24-03:00" level=error msg="Can't get tokens, got HTTP code 200, will not retry: expected 'bearer' token type but got 'Bearer"
module.ocp.null_resource.install_rosa (local-exec): E: Failed to create OCM connection: Error creating connection. Not able to get authentication token
module.ocp.null_resource.install_rosa (local-exec): To login to your Red Hat account, get an offline access token at https://cloud.redhat.com/openshift/token/rosa
module.ocp.null_resource.install_rosa (local-exec): ? Copy the token and paste it here: E: Failed to parse token: EOF
^[[49;254R^[[49;254Rmodule.ocp.null_resource.install_rosa (local-exec): E: Failed to create OCM connection: Not logged in, run the 'rosa login' command
module.ocp.null_resource.install_rosa (local-exec): E: Failed to create OCM connection: Not logged in, run the 'rosa login' command

Error: local-exec provisioner error

with module.ocp.null_resource.install_rosa,
on ocp/main.tf line 49, in resource "null_resource" "install_rosa":
49: provisioner "local-exec" {

<Omitted....>

': exit status 1. Output: time="2022-01-31T13:38:24-03:00" level=error msg="Can't get tokens, got HTTP code 200, will not retry: expected 'bearer' token type but got 'Bearer"
│ E: Failed to create OCM connection: Error creating connection. Not able to get authentication token
│ To login to your Red Hat account, get an offline access token at https://cloud.redhat.com/openshift/token/rosa
│ ? Copy the token and paste it here: E: Failed to parse token: EOF
│ E: Failed to create OCM connection: Not logged in, run the 'rosa login' command
│ E: Failed to create OCM connection: Not logged in, run the 'rosa login' command

I'm using macOS Monterey, any tips solve it?

@fernandoibm
Copy link
Author

Solved by commit #294.

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