Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save roidelapluie/05c24342b67d23eda20574d08dca2b06 to your computer and use it in GitHub Desktop.
Save roidelapluie/05c24342b67d23eda20574d08dca2b06 to your computer and use it in GitHub Desktop.
data.template_file.nginx-config.1: Refreshing state...
data.template_file.nginx-config.0: Refreshing state...
kubernetes_service.rmll_demo: Refreshing state... (ID: default/rmll-demo-nginx-service)
kubernetes_config_map.nginx-config.1: Refreshing state... (ID: default/nginx-rmll02)
kubernetes_config_map.nginx-config.0: Refreshing state... (ID: default/nginx-rmll01)
kubernetes_pod.rmll-demo.0: Creating...
metadata.#: "" => "1"
metadata.0.generation: "" => "<computed>"
metadata.0.labels.%: "" => "1"
metadata.0.labels.run: "" => "nginx"
metadata.0.name: "" => "rmll01"
metadata.0.namespace: "" => "default"
metadata.0.resource_version: "" => "<computed>"
metadata.0.self_link: "" => "<computed>"
metadata.0.uid: "" => "<computed>"
spec.#: "" => "1"
spec.0.container.#: "" => "1"
spec.0.container.0.image: "" => "nginx:alpine"
spec.0.container.0.image_pull_policy: "" => "<computed>"
spec.0.container.0.name: "" => "nginx"
spec.0.container.0.port.#: "" => "1"
spec.0.container.0.port.0.container_port: "" => "80"
spec.0.container.0.port.0.protocol: "" => "TCP"
spec.0.container.0.resources.#: "" => "<computed>"
spec.0.container.0.stdin: "" => "false"
spec.0.container.0.stdin_once: "" => "false"
spec.0.container.0.termination_message_path: "" => "/dev/termination-log"
spec.0.container.0.tty: "" => "false"
spec.0.container.0.volume_mount.#: "" => "1"
spec.0.container.0.volume_mount.0.mount_path: "" => "/etc/nginx/conf.d"
spec.0.container.0.volume_mount.0.name: "" => "nginxconfig"
spec.0.container.0.volume_mount.0.read_only: "" => "false"
spec.0.dns_policy: "" => "ClusterFirst"
spec.0.host_ipc: "" => "false"
spec.0.host_network: "" => "false"
spec.0.host_pid: "" => "false"
spec.0.hostname: "" => "<computed>"
spec.0.image_pull_secrets.#: "" => "<computed>"
spec.0.node_name: "" => "<computed>"
spec.0.restart_policy: "" => "Always"
spec.0.service_account_name: "" => "<computed>"
spec.0.termination_grace_period_seconds: "" => "30"
spec.0.volume.#: "" => "1"
spec.0.volume.0.config_map.#: "" => "1"
spec.0.volume.0.config_map.0.name: "" => "nginx-rmll01"
spec.0.volume.0.name: "" => "nginxconfig"
kubernetes_pod.rmll-demo.1: Creating...
metadata.#: "" => "1"
metadata.0.generation: "" => "<computed>"
metadata.0.labels.%: "" => "1"
metadata.0.labels.run: "" => "nginx"
metadata.0.name: "" => "rmll02"
metadata.0.namespace: "" => "default"
metadata.0.resource_version: "" => "<computed>"
metadata.0.self_link: "" => "<computed>"
metadata.0.uid: "" => "<computed>"
spec.#: "" => "1"
spec.0.container.#: "" => "1"
spec.0.container.0.image: "" => "nginx:alpine"
spec.0.container.0.image_pull_policy: "" => "<computed>"
spec.0.container.0.name: "" => "nginx"
spec.0.container.0.port.#: "" => "1"
spec.0.container.0.port.0.container_port: "" => "80"
spec.0.container.0.port.0.protocol: "" => "TCP"
spec.0.container.0.resources.#: "" => "<computed>"
spec.0.container.0.stdin: "" => "false"
spec.0.container.0.stdin_once: "" => "false"
spec.0.container.0.termination_message_path: "" => "/dev/termination-log"
spec.0.container.0.tty: "" => "false"
spec.0.container.0.volume_mount.#: "" => "1"
spec.0.container.0.volume_mount.0.mount_path: "" => "/etc/nginx/conf.d"
spec.0.container.0.volume_mount.0.name: "" => "nginxconfig"
spec.0.container.0.volume_mount.0.read_only: "" => "false"
spec.0.dns_policy: "" => "ClusterFirst"
spec.0.host_ipc: "" => "false"
spec.0.host_network: "" => "false"
spec.0.host_pid: "" => "false"
spec.0.hostname: "" => "<computed>"
spec.0.image_pull_secrets.#: "" => "<computed>"
spec.0.node_name: "" => "<computed>"
spec.0.restart_policy: "" => "Always"
spec.0.service_account_name: "" => "<computed>"
spec.0.termination_grace_period_seconds: "" => "30"
spec.0.volume.#: "" => "1"
spec.0.volume.0.config_map.#: "" => "1"
spec.0.volume.0.config_map.0.name: "" => "nginx-rmll02"
spec.0.volume.0.name: "" => "nginxconfig"
Error applying plan:
2 error(s) occurred:
* kubernetes_pod.rmll-demo[1]: 1 error(s) occurred:
* kubernetes_pod.rmll-demo.1: unexpected EOF
* kubernetes_pod.rmll-demo[0]: 1 error(s) occurred:
* kubernetes_pod.rmll-demo.0: unexpected EOF
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.
panic: interface conversion: interface {} is nil, not int
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4:
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: goroutine 93 [running]:
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: github.com/terraform-providers/terraform-provider-kubernetes/kubernetes.expandConfigMapVolumeSource(0xc420742140, 0x1, 0x1, 0xa)
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-kubernetes/kubernetes/structures_pod.go:476 +0x2d6
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: github.com/terraform-providers/terraform-provider-kubernetes/kubernetes.expandVolumes(0xc4207420f0, 0x1, 0x1, 0x6, 0xc420161728, 0x1, 0x0, 0x0)
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-kubernetes/kubernetes/structures_pod.go:575 +0x2d7f
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: github.com/terraform-providers/terraform-provider-kubernetes/kubernetes.expandPodSpec(0xc420679d20, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-kubernetes/kubernetes/structures_pod.go:363 +0x754
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: github.com/terraform-providers/terraform-provider-kubernetes/kubernetes.resourceKubernetesPodCreate(0xc4203d8150, 0x19d8c40, 0xc4201b4640, 0x0, 0x0)
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-kubernetes/kubernetes/resource_kubernetes_pod.go:45 +0x174
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: github.com/terraform-providers/terraform-provider-kubernetes/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc42088bc80, 0xc42074a050, 0xc4206708e0, 0x19d8c40, 0xc4201b4640, 0x1, 0x28, 0xc42080e5d0)
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-kubernetes/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:186 +0x48d
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: github.com/terraform-providers/terraform-provider-kubernetes/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc4200fa000, 0xc42074a000, 0xc42074a050, 0xc4206708e0, 0x7f103aedb960, 0x0, 0x0)
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-kubernetes/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:242 +0x9b
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: github.com/terraform-providers/terraform-provider-kubernetes/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc420978160, 0xc420670020, 0xc420679b20, 0x0, 0x0)
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: /opt/teamcity-agent/work/222ea50a1b4f75f4/src/github.com/terraform-providers/terraform-provider-kubernetes/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:488 +0x57
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: reflect.Value.call(0xc42017c900, 0xc4203f2150, 0x13, 0x19e850e, 0x4, 0xc4205d1f20, 0x3, 0x3, 0x43812c, 0xc420187738, ...)
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: /usr/local/go/src/reflect/value.go:434 +0x91f
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: reflect.Value.Call(0xc42017c900, 0xc4203f2150, 0x13, 0xc420187720, 0x3, 0x3, 0x0, 0x180000, 0x0)
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: /usr/local/go/src/reflect/value.go:302 +0xa4
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: net/rpc.(*service).call(0xc4202c2240, 0xc4202c2200, 0xc42097eaa8, 0xc4202dcb80, 0xc420978260, 0x1728500, 0xc420670020, 0x16, 0x1728540, 0xc420679b20, ...)
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: /usr/local/go/src/net/rpc/server.go:387 +0x144
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: created by net/rpc.(*Server).ServeCodec
2017/07/04 10:51:10 [DEBUG] plugin: terraform-provider-kubernetes_v0.1.0_x4: /usr/local/go/src/net/rpc/server.go:481 +0x404
2017/07/04 10:51:10 [DEBUG] root: eval: *terraform.EvalWriteState
2017/07/04 10:51:10 [DEBUG] root: eval: *terraform.EvalApplyProvisioners
2017/07/04 10:51:10 [DEBUG] root: eval: *terraform.EvalIf
2017/07/04 10:51:10 [DEBUG] root: eval: *terraform.EvalWriteState
2017/07/04 10:51:10 [DEBUG] root: eval: *terraform.EvalWriteDiff
2017/07/04 10:51:10 [DEBUG] root: eval: *terraform.EvalApplyPost
2017/07/04 10:51:10 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:
* kubernetes_pod.rmll-demo.1: unexpected EOF
2017/07/04 10:51:10 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
* kubernetes_pod.rmll-demo.1: unexpected EOF
2017/07/04 10:51:10 [TRACE] [walkApply] Exiting eval tree: kubernetes_pod.rmll-demo[1]
2017/07/04 10:51:10 [DEBUG] root: eval: *terraform.EvalWriteState
2017/07/04 10:51:10 [DEBUG] root: eval: *terraform.EvalApplyProvisioners
2017/07/04 10:51:10 [DEBUG] root: eval: *terraform.EvalIf
2017/07/04 10:51:10 [DEBUG] root: eval: *terraform.EvalWriteState
2017/07/04 10:51:10 [DEBUG] root: eval: *terraform.EvalWriteDiff
2017/07/04 10:51:10 [DEBUG] root: eval: *terraform.EvalApplyPost
2017/07/04 10:51:10 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:
* kubernetes_pod.rmll-demo.0: unexpected EOF
2017/07/04 10:51:10 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
* kubernetes_pod.rmll-demo.0: unexpected EOF
2017/07/04 10:51:10 [TRACE] [walkApply] Exiting eval tree: kubernetes_pod.rmll-demo[0]
2017/07/04 10:51:10 [DEBUG] dag/walk: upstream errored, not walking "provider.kubernetes (close)"
2017/07/04 10:51:10 [DEBUG] dag/walk: upstream errored, not walking "meta.count-boundary (count boundary fixup)"
2017/07/04 10:51:10 [DEBUG] dag/walk: upstream errored, not walking "root"
2017/07/04 10:51:10 [TRACE] Preserving existing state lineage "644ab371-76f9-4935-8d3f-f0208e4eac5c"
2017/07/04 10:51:10 [DEBUG] plugin: /home/roidelapluie/RMLL-demo/demo-02/.terraform/plugins/linux_amd64/terraform-provider-kubernetes_v0.1.0_x4: plugin process exited
2017/07/04 10:51:10 [TRACE] Preserving existing state lineage "644ab371-76f9-4935-8d3f-f0208e4eac5c"
2017/07/04 10:51:10 [DEBUG] plugin: waiting for all plugin processes to complete...
2017/07/04 10:51:10 [WARN] plugin: error closing client during Kill: connection is shut down
2017/07/04 10:51:10 [DEBUG] plugin: /home/roidelapluie/RMLL-demo/demo-02/.terraform/plugins/linux_amd64/terraform-provider-template_v0.1.1_x4: plugin process exited
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.
When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment