gpt4 book ai didi

kubernetes - 台风Kubernetes错误:module.tempest.null_resource.bootstrap:仍在创建…[已逝去22m0s]

转载 作者:行者123 更新时间:2023-12-02 11:55:10 24 4
gpt4 key购买 nike

我正在尝试通过terraform使用typhoon创建台风K8s集群。
我正在尝试使用台风在AWS上创建Kubernetes集群,但是我的进度仍然在link
奇怪的是,此错误使输出停滞了几个小时

module.tempest.null_resource.bootstrap: Still creating... [22m0s elapsed]
  • 我不确定这里的问题是什么?

  • 我按照文档执行了所有步骤,但是这种情况一直在发生。还检查了Github repo link上已解决的问题,发现一些相似但无济于事的问题。
    以下是 TF_LOG=TRACE terraform apply的输出
    module.tempest.null_resource.bootstrap: Provisioning with 'remote-exec'...
    2020-07-17T23:44:45.562+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:45 [DEBUG] Connecting to 54.174.116.142:22 for SSH
    module.tempest.null_resource.bootstrap (remote-exec): Connecting to remote host via SSH...
    module.tempest.null_resource.bootstrap (remote-exec): Host: 54.174.116.142
    module.tempest.null_resource.bootstrap (remote-exec): User: core
    module.tempest.null_resource.bootstrap (remote-exec): Password: false
    module.tempest.null_resource.bootstrap (remote-exec): Private key: false
    module.tempest.null_resource.bootstrap (remote-exec): Certificate: false
    module.tempest.null_resource.bootstrap (remote-exec): SSH Agent: true
    module.tempest.null_resource.bootstrap (remote-exec): Checking Host Key: false
    2020-07-17T23:44:45.755+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:45 [DEBUG] Connection established. Handshaking for user core
    2020/07/17 23:44:46 [TRACE] dag/walk: vertex "provisioner.remote-exec (close)" is waiting for "module.tempest.null_resource.bootstrap"
    2020-07-17T23:44:47.191+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:47 [DEBUG] Telling SSH config to forward to agent
    2020-07-17T23:44:47.191+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:47 [DEBUG] Setting up a session to request agent forwarding
    2020-07-17T23:44:47.818+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:47 [INFO] agent forwarding enabled
    2020-07-17T23:44:47.818+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:47 [DEBUG] starting ssh KeepAlives
    2020-07-17T23:44:47.818+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:47 [DEBUG] opening new ssh session
    module.tempest.null_resource.bootstrap (remote-exec): Connected!
    2020/07/17 23:44:47 [TRACE] dag/walk: vertex "provider.null (close)" is waiting for "module.tempest.null_resource.bootstrap"
    2020-07-17T23:44:48.013+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:48 [DEBUG] Starting remote scp process: scp -vt /tmp
    2020-07-17T23:44:48.212+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:48 [DEBUG] Started SCP session, beginning transfers...
    2020-07-17T23:44:48.212+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:48 [DEBUG] Beginning file upload...
    2020-07-17T23:44:48.417+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:48 [DEBUG] SCP session complete, closing stdin pipe.
    2020-07-17T23:44:48.417+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:48 [DEBUG] Waiting for SSH session to complete.
    2020-07-17T23:44:48.622+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:48 [ERROR] scp stderr: "Sink: C0644 41 terraform_187433809.sh\n"
    2020-07-17T23:44:48.622+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:48 [DEBUG] opening new ssh session
    2020-07-17T23:44:49.033+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:49 [DEBUG] starting remote command: chmod 0777 /tmp/terraform_187433809.sh
    2020/07/17 23:44:49 [TRACE] dag/walk: vertex "meta.count-boundary (EachMode fixup)" is waiting for "module.tempest.null_resource.bootstrap"
    2020-07-17T23:44:49.238+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:49 [DEBUG] remote command exited with '0': chmod 0777 /tmp/terraform_187433809.sh
    2020-07-17T23:44:49.238+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:49 [DEBUG] opening new ssh session
    2020-07-17T23:44:49.646+0400 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2020/07/17 23:44:49 [DEBUG] starting remote command: /tmp/terraform_187433809.sh
    2020/07/17 23:44:49 [TRACE] dag/walk: vertex "root" is waiting for "meta.count-boundary (EachMode fixup)"
    2020/07/17 23:44:51 [TRACE] dag/walk: vertex "provisioner.remote-exec (close)" is waiting for "module.tempest.null_resource.bootstrap"
    2020/07/17 23:44:52 [TRACE] dag/walk: vertex "provider.null (close)" is waiting for "module.tempest.null_resource.bootstrap"
    2020/07/17 23:44:54 [TRACE] dag/walk: vertex "meta.count-boundary (EachMode fixup)" is waiting for "module.tempest.null_resource.bootstrap"
    2020/07/17 23:44:54 [TRACE] dag/walk: vertex "root" is waiting for "meta.count-boundary (EachMode fixup)"
    module.tempest.null_resource.bootstrap: Still creating... [10s elapsed]
    2020/07/17 23:44:56 [TRACE] dag/walk: vertex "provisioner.remote-exec (close)" is waiting for "module.tempest.null_resource.bootstrap"
    2020/07/17 23:44:57 [TRACE] dag/walk: vertex "provider.null (close)" is waiting for "module.tempest.null_resource.bootstrap"
    2020/07/17 23:44:59 [TRACE] dag/walk: vertex "meta.count-boundary (EachMode fixup)" is waiting for "module.tempest.null_resource.bootstrap"
    2020/07/17 23:44:59 [TRACE] dag/walk: vertex "root" is waiting for "meta.count-boundary (EachMode fixup)"
    2020/07/17 23:45:01 [TRACE] dag/walk: vertex "provisioner.remote-exec (close)" is waiting for "module.tempest.null_resource.bootstrap"
    2020/07/17 23:45:02 [TRACE] dag/walk: vertex "provider.null (close)" is waiting for "module.tempest.null_resource.bootstrap"
    2020/07/17 23:45:04 [TRACE] dag/walk: vertex "meta.count-boundary (EachMode fixup)" is waiting for "module.tempest.null_resource.bootstrap"
    2020/07/17 23:45:04 [TRACE] dag/walk: vertex "root" is waiting for "meta.count-boundary (EachMode fixup)"
    module.tempest.null_resource.bootstrap: Still creating... [20s elapsed]

    并且这继续不断
  • 同样创建的domain k8s118.devops.link也不公开解决

  • dig k8s118.devops.link

    ; <<>> DiG 9.11.3-1ubuntu1.12-Ubuntu <<>> k8s118.devops.link
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 595
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 65494
    ;; QUESTION SECTION:
    ;k8s118.devops.link. IN A

    ;; Query time: 495 msec
    ;; SERVER: 127.0.0.53#53(127.0.0.53)
    ;; WHEN: Sat Jul 18 00:36:07 +04 2020
    ;; MSG SIZE rcvd: 47

    最佳答案

    这就是所有Terraform。您可以通过在Terraform中启用TRACE🔍🔍log来查看发生了什么

    TF_LOG=TRACE terraform plan
    TF_LOG=TRACE terraform apply
    您还可以查看🔍🔍AWS控制台中正在发生的事情。您正在创建EC2实例吗?在Route53中创建什么DNS条目?正在创建哪些VPC?等等
    如果查看 TF files,则可以浏览正在创建的资源列表🗒️🗒️。

    关于kubernetes - 台风Kubernetes错误:module.tempest.null_resource.bootstrap:仍在创建…[已逝去22m0s],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62957006/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com