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

Error running command '.terraform/modules/argocd-bootstrap.bootstrap/scripts/argocd-bootstrap.sh '' '' #235

Open
nheidloff opened this issue Oct 5, 2022 · 2 comments

Comments

@nheidloff
Copy link
Contributor

I ran apply.sh a second time.

Related to #234

module.argocd-bootstrap.module.openshift_cicd.module.pipelines.null_resource.tekton_operator_helm: Creation complete after 3m15s [id=8058211571213377158]
module.argocd-bootstrap.module.openshift_cicd.module.pipelines.data.external.tekton_ready: Reading...
module.argocd-bootstrap.module.openshift_cicd.module.pipelines.data.external.tekton_ready: Read complete after 2s [id=-]

│ Warning: Attribute Deprecated

│ with module.argocd-bootstrap.module.openshift_cicd.module.pipelines.random_string.random,
│ on .terraform/modules/argocd-bootstrap.openshift_cicd.pipelines/main.tf line 44, in resource "random_string" "random":
│ 44: number = true

NOTE: This is deprecated, use numeric instead.

│ (and 2 more similar warnings elsewhere)


│ Error: local-exec provisioner error

│ with module.argocd-bootstrap.module.bootstrap.null_resource.bootstrap_argocd,
│ on .terraform/modules/argocd-bootstrap.bootstrap/main.tf line 79, in resource "null_resource" "bootstrap_argocd":
│ 79: provisioner "local-exec" {

│ Error running command '.terraform/modules/argocd-bootstrap.bootstrap/scripts/argocd-bootstrap.sh '' '' 'openshift-gitops'
│ 'https://github.ibm.com/niklas-heidloff/watson-demo.git' 'niklas-heidloff' 'argocd/0-bootstrap/cluster/default' ''': exit status 1. Output: Usage:
│ argocd-bootstrap.sh ARGOCD_HOST ARGOCD_USER ARGOCD_NAMESPACE GIT_REPO GIT_USER BOOTSTRAP_PATH


/terraform/cluster-with-watson-nlp $

@nheidloff
Copy link
Contributor Author

The third attempt after 5 mins didn't give errors:

module.argocd-bootstrap.module.bootstrap.null_resource.bootstrap_argocd (local-exec): Registering git repo: https://github.ibm.com/niklas-heidloff/watson-demo.git
module.argocd-bootstrap.module.bootstrap.null_resource.bootstrap_argocd (local-exec): time="2022-10-05T11:17:21Z" level=fatal msg="Argo CD server address unspecified"
module.argocd-bootstrap.module.bootstrap.null_resource.bootstrap_argocd (local-exec): Creating bootstrap project and bootstrap application
module.argocd-bootstrap.module.bootstrap.null_resource.bootstrap_argocd (local-exec): appproject.argoproj.io/0-bootstrap created
module.argocd-bootstrap.module.bootstrap.null_resource.bootstrap_argocd (local-exec): application.argoproj.io/0-bootstrap created
module.argocd-bootstrap.module.bootstrap.null_resource.bootstrap_argocd: Creation complete after 2s [id=3653155624812313819]

Apply complete! Resources: 2 added, 0 changed, 2 destroyed.
/terraform/cluster-with-watson-nlp $

@seansund
Copy link
Member

seansund commented Oct 6, 2022

There was an update to the Gitops module to add support for git repos with self signed certs. It looks like it created an instability in the module. In the short-term you can pin the gitops module (https://github.com/cloud-native-toolkit/terraform-tools-gitops) to v1.21.0

I'll get a new release out to address this issue asap

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

2 participants