Skip to content

Instantly share code, notes, and snippets.

@pmuir
Created October 1, 2019 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmuir/bd488c590c9c4c7f021b732835936ea6 to your computer and use it in GitHub Desktop.
Save pmuir/bd488c590c9c4c7f021b732835936ea6 to your computer and use it in GitHub Desktop.
Operation failed with error:
generic::invalid_argument: terraform apply failed, error: exit status 1, stderr:
Error: Error applying plan:
1 error occurred:
\t* cse_kube_config.service: 1 error occurred:
\t* cse_kube_config.service: unable to call kubectl. out: , err: timeout calling /export/hda3/borglet/remote_package_fs_dirs/mpm.cloud__saas_accelerator__management__terraform.v1-9ad7ed5a_b33f8550_ff667d27_fc29bc8c_80775178.m0.d0.c0.it4500.firstclass.f4ff7cb2d10bf1e60b84e6a919ef5f49.cloud-control2-terraform-engine.138509999084/mount_point/kubectl [--insecure-skip-tls-verify=true --server=http://localhost:32979 apply -f -]. Last stderr: Error from server (BadRequest): error when creating \"STDIN\": Job in version \"v1\" cannot be handled as a Job: v1.Job.Spec: v1.JobSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.v1.EnvVar.Value: ReadString: expects \" or n, but found 1, error found in #10 byte of ...|,\"value\":1},{\"name\":|..., bigger context ...|:\"JX_REQUIREMENT_INGRESS_TLS_PRODUCTION\",\"value\":1},{\"name\":\"JX_REQUIREMENT_ENV_GIT_PUBLIC\",\"value\":|...
Error from server (BadRequest): error when creating \"STDIN\": Job in version \"v1\" cannot be handled as a Job: v1.Job.Spec: v1.JobSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.v1.EnvVar.Value: ReadString: expects \" or n, but found 1, error found in #10 byte of ...|,\"value\":1},{\"name\":|..., bigger context ...|:\"JX_REQUIREMENT_INGRESS_TLS_PRODUCTION\",\"value\":1},{\"name\":\"JX_REQUIREMENT_ENV_GIT_PUBLIC\",\"value\":|...
Error from server (BadRequest): error when creating \"STDIN\": Job in version \"v1\" cannot be handled as a Job: v1.Job.Spec: v1.JobSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.v1.EnvVar.Value: ReadString: expects \" or n, but found 1, error found in #10 byte of ...|,\"value\":1},{\"name\":|..., bigger context ...|:\"JX_REQUIREMENT_INGRESS_TLS_PRODUCTION\",\"value\":1},{\"name\":\"JX_REQUIREMENT_ENV_GIT_PUBLIC\",\"value\":|...
Error from server (BadRequest): error when creating \"STDIN\": Job in version \"v1\" cannot be handled as a Job: v1.Job.Spec: v1.JobSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.v1.EnvVar.Value: ReadString: expects \" or n, but found 1, error found in #10 byte of ...|,\"value\":1},{\"name\":|..., bigger context ...|:\"JX_REQUIREMENT_INGRESS_TLS_PRODUCTION\",\"value\":1},{\"name\":\"JX_REQUIREMENT_ENV_GIT_PUBLIC\",\"value\":|...
Error from server (BadRequest): error when creating \"STDIN\": Job in version \"v1\" cannot be handled as a Job: v1.Job.Spec: v1.JobSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.v1.EnvVar.Value: ReadString: expects \" or n, but found 1, error found in #10 byte of ...|,\"value\":1},{\"name\":|..., bigger context ...|:\"JX_REQUIREMENT_INGRESS_TLS_PRODUCTION\",\"value\":1},{\"name\":\"JX_REQUIREMENT_ENV_GIT_PUBLIC\",\"value\":|...
Error from server (BadRequest): error when creating \"STDIN\": Job in version \"v1\" cannot be handled as a Job: v1.Job.Spec: v1.JobSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.v1.EnvVar.Value: ReadString: expects \" or n, but found 1, error found in #10 byte of ...|,\"value\":1},{\"name\":|..., bigger context ...|:\"JX_REQUIREMENT_INGRESS_TLS_PRODUCTION\"
,\"value\":1},{\"name\":\"JX_REQUIREMENT_ENV_GIT_PUBLIC\",\"value\":|...
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
, stdout:
google_kms_key_ring.vault_keyring: Refreshing state... (ID: projects/aps-pr-184-17arc/locations/global/keyRings/jx-aps-pr-184-17arc-keyring)
google_kms_crypto_key.vault_crypto_key: Refreshing state... (ID: projects/aps-pr-184-17arc/locations/glo...ptoKeys/jx-aps-pr-184-17arc-crypto-key)
google_project_service.iam_api: Creating...
disable_on_destroy: \"\" => \"false\"
project: \"\" => \"aps-pr-184-17arc\"
service: \"\" => \"iam.googleapis.com\"
google_project_service.cloudbuild_api: Creating...
disable_on_destroy: \"\" => \"false\"
project: \"\" => \"aps-pr-184-17arc\"
service: \"\" => \"cloudbuild.googleapis.com\"
google_project_service.dns_api: Creating...
disable_on_destroy: \"\" => \"false\"
project: \"\" => \"aps-pr-184-17arc\"
service: \"\" => \"dns.googleapis.com\"
google_storage_bucket.lts_bucket: Creating...
force_destroy: \"\" => \"false\"
location: \"\" => \"US\"
name: \"\" => \"aps-pr-184-17arc-lts\"
project: \"\" => \"<computed>\"
self_link: \"\" => \"<computed>\"
storage_class: \"\" => \"STANDARD\"
url: \"\" => \"<computed>\"
google_service_account.jxboot_sa: Creating...
account_id: \"\" => \"jx-aps-pr-184-17arc-jb\"
display_name: \"\" => \"jx-boot service account for jx-aps-pr-184-17arc\"
email: \"\" => \"<computed>\"
name: \"\" => \"<computed>\"
project: \"\" => \"<computed>\"
unique_id: \"\" => \"<computed>\"
google_project_service.compute_api: Creating...
disable_on_destroy: \"\" => \"false\"
project: \"\" => \"aps-pr-184-17arc\"
service: \"\" => \"compute.googleapis.com\"
google_project_service.cloudresourcemanager_api: Creating...
disable_on_destroy: \"\" => \"false\"
project: \"\" => \"aps-pr-184-17arc\"
service: \"\" => \"cloudresourcemanager.googleapis.com\"
google_service_account.vault_sa: Creating...
account_id: \"\" => \"jx-aps-pr-184-17arc-vt\"
display_name: \"\" => \"Vault service account for jx-aps-pr-184-17arc\"
email: \"\" => \"<computed>\"
name: \"\" => \"<computed>\"
project: \"\" => \"<computed>\"
unique_id: \"\" => \"<computed>\"
google_service_account.kaniko_sa: Creating...
acco
...<trimmed>...
Subsequent cleanup also failed [] []}","reason":"CreateError","status":"True","type":"Creating"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment