Closed bwoolf1 closed 3 years ago
Need to add a timeout waiting for ArgoCD deploy
@seansund @mjperrins: I'm trying the Schematics tile again, this time on OCP 4.3 on VPC. It's stuck waiting on Sonar Qube to install. Does the tile automatically use the latest terraform modules?
The tile's log:
2020/06/30 14:42:35 Terraform apply | module.dev_tools_sonarqube.null_resource.sonarqube_route[0]: Creating...
2020/06/30 14:42:35 Terraform apply | module.dev_tools_sonarqube.null_resource.sonarqube_route[0]: Provisioning with 'local-exec'...
2020/06/30 14:42:36 Terraform apply | module.dev_tools_sonarqube.null_resource.sonarqube_route[0] (local-exec): Executing: ["/bin/sh" "-c" ".terraform/modules/dev_tools_sonarqube/scripts/create-route.sh tools sonarqube-sonarqube sonarqube"]
2020/06/30 14:42:37 Terraform apply | module.dev_tools_sonarqube.null_resource.sonarqube_route[0] (local-exec): route.route.openshift.io/sonarqube created
2020/06/30 14:42:37 Terraform apply | module.dev_tools_sonarqube.null_resource.sonarqube_route[0]: Creation complete after 1s [id=6249347158388910021]
2020/06/30 14:42:37 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube: Creating...
2020/06/30 14:42:37 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube: Provisioning with 'local-exec'...
2020/06/30 14:42:37 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube (local-exec): Executing: ["/bin/sh" "-c" ".terraform/modules/dev_tools_sonarqube/scripts/wait-for-deployment.sh tools sonarqube-sonarqube"]
2020/06/30 14:42:38 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube (local-exec): Waiting for deployment "sonarqube-sonarqube" rollout to finish: 0 out of 1 new replicas have been updated...
2020/06/30 14:42:47 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube: Still creating... [10s elapsed]
2020/06/30 14:42:57 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube: Still creating... [20s elapsed]
. . .
2020/06/30 14:57:47 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube: Still creating... [15m10s elapsed]
2020/06/30 14:57:57 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube: Still creating... [15m20s elapsed]
Looks like it eventually timed out:
2020/06/30 15:02:17 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube: Still creating... [19m40s elapsed]
2020/06/30 15:02:27 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube: Still creating... [19m50s elapsed]
2020/06/30 15:02:36 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube (local-exec): error: deployment "sonarqube-sonarqube" exceeded its progress deadline
2020/06/30 15:02:37 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube: Still creating... [20m0s elapsed]
2020/06/30 15:02:47 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube: Still creating... [20m10s elapsed]
2020/06/30 15:02:57 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube (local-exec): %!T(MISSING)otal %!R(MISSING)eceived %!X(MISSING)ferd Average Speed Time Time Time Current
2020/06/30 15:02:57 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube (local-exec): Dload Upload Total Spent Left Speed
2020/06/30 15:02:57 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube (local-exec): 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2020/06/30 15:02:57 Terraform apply | module.dev_tools_sonarqube.null_resource.wait-for-sonarqube (local-exec): 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Has been addressed in v2.8.0 of the argocd module
Describe the bug The Schematics tile in the cloudnative-toolkit repo got stuck in an endless loop waiting for ArgoCD operator to install. The install was onto an existing ROKS OCP 4.3 cluster using Classic Infrastructure.
To Reproduce Steps to reproduce the behavior:
Waiting for ArgoCD operator to install will loop forever until Terraform and the Schematics workspace finally time out (after about an hour?).
It looks like the
dev_tools_argocd/scripts/deploy-subscription.sh
script failed to parse and run properly.Expected behavior I wanted the Toolkit to install successfully!
I was able to install the Toolkit successfully in the same cluster but not using the
tile
approach, but rather by using the traditionaliZero
approach of cloning the ibm-garage-iteration-zero repo and running./launch.sh
and./runTerraform.sh
. The argocd-subscription created without having to wait for the operator to install:Screenshots n/a
IBM Cloud Select the services and tools affected
Desktop (please complete the following information):
Additional context Add any other context about the problem here.