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

Intermittently reset_iks_api_key is failing in landing zone #893

Open
ocofaigh opened this issue Sep 29, 2024 · 2 comments
Open

Intermittently reset_iks_api_key is failing in landing zone #893

ocofaigh opened this issue Sep 29, 2024 · 2 comments
Assignees

Comments

@ocofaigh
Copy link
Member

Intermittently landing zone is failing with this error (this if from the roks quickstart variation):

 2024/09/29 13:02:42 Terraform apply | Error: local-exec provisioner error
 2024/09/29 13:02:42 Terraform apply | 
 2024/09/29 13:02:42 Terraform apply |   with module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key,
 2024/09/29 13:02:42 Terraform apply |   on .terraform/modules/landing_zone.landing_zone.cluster/main.tf line 285, in resource "null_resource" "reset_api_key":
 2024/09/29 13:02:42 Terraform apply |  285:   provisioner "local-exec" {
 2024/09/29 13:02:42 Terraform apply | 
 2024/09/29 13:02:42 Terraform apply | Error running command
 2024/09/29 13:02:42 Terraform apply | '.terraform/modules/landing_zone.landing_zone.cluster/scripts/reset_iks_api_key.sh
 2024/09/29 13:02:42 Terraform apply | us-south 91af34a8fa5843829b01f1cc97ecc91b false default': exit status 52.
 2024/09/29 13:02:42 Terraform apply | Output: 

Since there is no output, its impossible to know whats failing. At the very least can we ensure an error is output so next time it happens we might get an error loged

@ocofaigh
Copy link
Member Author

On re-apply, the resource seemed to pass, but had some odd logging:

2024/09/29 15:15:04 Terraform apply | module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key: Destroying... [id=4105733101903383280]
 2024/09/29 15:15:04 Terraform apply | module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key: Destruction complete after 0s
 2024/09/29 15:15:05 Terraform apply | module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key: Creating...
 2024/09/29 15:15:05 Terraform apply | module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key: Provisioning with 'local-exec'...
 2024/09/29 15:15:05 Terraform apply | module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key (local-exec): Executing: ["/bin/bash" "-c" ".terraform/modules/landing_zone.landing_zone.cluster/scripts/reset_iks_api_key.sh us-south 91af34a8fa5843829b01f1cc97ecc91b false default"]
 2024/09/29 15:15:07 Terraform apply | module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key (local-exec):   %!T(MISSING)otal    %!R(MISSING)eceived %!X(MISSING)ferd  Average Speed   Time    Time     Time  Current
 2024/09/29 15:15:07 Terraform apply | module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
 2024/09/29 15:15:07 Terraform apply | module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 2024/09/29 15:15:07 Terraform apply | module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 2024/09/29 15:15:08 Terraform apply | module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key (local-exec):   0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
 2024/09/29 15:15:15 Terraform apply | module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key: Still creating... [10s elapsed]
 2024/09/29 15:15:18 Terraform apply | module.landing_zone.module.landing_zone.module.cluster["landing-d47d-workload-cluster"].null_resource.reset_api_key: Creation complete after 13s [id=4631455126495496792]

@Aashiq-J
Copy link
Member

PR to update to the new version of base-ocp: #905

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants