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

New "MicroOS" version does not deploy, stuck on control-plane-1 #67

Closed
exocode opened this issue Feb 13, 2022 · 12 comments
Closed

New "MicroOS" version does not deploy, stuck on control-plane-1 #67

exocode opened this issue Feb 13, 2022 · 12 comments

Comments

@exocode
Copy link

exocode commented Feb 13, 2022

Bildschirmaufnahme.2022-02-13.um.420mov.mov

Can someone tell me please what I am doing wrong?

❯ tf apply --auto-approve

Terraform used the selected providers to generate the following execution plan. Resource actions are
indicated with the following symbols:
  + create
 <= read (data resources)

Terraform will perform the following actions:

  # data.remote_file.kubeconfig will be read during apply
  # (config refers to values not yet known)
 <= data "remote_file" "kubeconfig"  {
      + content = (known after apply)
      + id      = (known after apply)
      + path    = "/etc/rancher/k3s/k3s.yaml"

      + conn {
          + agent       = false
          + host        = (known after apply)
          + port        = 22
          + private_key = (sensitive value)
          + user        = "root"
        }
    }

  # hcloud_firewall.k3s will be created
  + resource "hcloud_firewall" "k3s" {
      + id     = (known after apply)
      + labels = (known after apply)
      + name   = "k3s"

      + rule {
          + destination_ips = [
              + "0.0.0.0/0",
            ]
          + direction       = "out"
          + protocol        = "icmp"
          + source_ips      = []
        }
      + rule {
          + destination_ips = [
              + "0.0.0.0/0",
            ]
          + direction       = "out"
          + port            = "123"
          + protocol        = "udp"
          + source_ips      = []
        }
      + rule {
          + destination_ips = [
              + "0.0.0.0/0",
            ]
          + direction       = "out"
          + port            = "443"
          + protocol        = "tcp"
          + source_ips      = []
        }
      + rule {
          + destination_ips = [
              + "0.0.0.0/0",
            ]
          + direction       = "out"
          + port            = "53"
          + protocol        = "tcp"
          + source_ips      = []
        }
      + rule {
          + destination_ips = [
              + "0.0.0.0/0",
            ]
          + direction       = "out"
          + port            = "53"
          + protocol        = "udp"
          + source_ips      = []
        }
      + rule {
          + destination_ips = [
              + "0.0.0.0/0",
            ]
          + direction       = "out"
          + port            = "80"
          + protocol        = "tcp"
          + source_ips      = []
        }
      + rule {
          + destination_ips = []
          + direction       = "in"
          + protocol        = "icmp"
          + source_ips      = [
              + "0.0.0.0/0",
            ]
        }
      + rule {
          + destination_ips = []
          + direction       = "in"
          + protocol        = "icmp"
          + source_ips      = [
              + "10.0.0.0/8",
              + "127.0.0.1/32",
              + "169.254.169.254/32",
              + "213.239.246.1/32",
            ]
        }
      + rule {
          + destination_ips = []
          + direction       = "in"
          + port            = "22"
          + protocol        = "tcp"
          + source_ips      = [
              + "0.0.0.0/0",
            ]
        }
      + rule {
          + destination_ips = []
          + direction       = "in"
          + port            = "6443"
          + protocol        = "tcp"
          + source_ips      = [
              + "0.0.0.0/0",
            ]
        }
      + rule {
          + destination_ips = []
          + direction       = "in"
          + port            = "any"
          + protocol        = "tcp"
          + source_ips      = [
              + "10.0.0.0/8",
              + "127.0.0.1/32",
              + "169.254.169.254/32",
              + "213.239.246.1/32",
            ]
        }
      + rule {
          + destination_ips = []
          + direction       = "in"
          + port            = "any"
          + protocol        = "udp"
          + source_ips      = [
              + "10.0.0.0/8",
              + "127.0.0.1/32",
              + "169.254.169.254/32",
              + "213.239.246.1/32",
            ]
        }
    }

  # hcloud_network.k3s will be created
  + resource "hcloud_network" "k3s" {
      + delete_protection = false
      + id                = (known after apply)
      + ip_range          = "10.0.0.0/8"
      + name              = "k3s"
    }

  # hcloud_network_subnet.k3s will be created
  + resource "hcloud_network_subnet" "k3s" {
      + gateway      = (known after apply)
      + id           = (known after apply)
      + ip_range     = "10.0.0.0/16"
      + network_id   = (known after apply)
      + network_zone = "eu-central"
      + type         = "cloud"
    }

  # hcloud_placement_group.k3s will be created
  + resource "hcloud_placement_group" "k3s" {
      + id      = (known after apply)
      + labels  = {
          + "engine"      = "k3s"
          + "provisioner" = "terraform"
        }
      + name    = "k3s"
      + servers = (known after apply)
      + type    = "spread"
    }

  # hcloud_server.agents[0] will be created
  + resource "hcloud_server" "agents" {
      + backup_window      = (known after apply)
      + backups            = false
      + datacenter         = (known after apply)
      + delete_protection  = false
      + firewall_ids       = (known after apply)
      + id                 = (known after apply)
      + image              = "ubuntu-20.04"
      + ipv4_address       = (known after apply)
      + ipv6_address       = (known after apply)
      + ipv6_network       = (known after apply)
      + keep_disk          = false
      + labels             = {
          + "engine"      = "k3s"
          + "provisioner" = "terraform"
        }
      + location           = "fsn1"
      + name               = "k3s-agent-0"
      + placement_group_id = (known after apply)
      + rebuild_protection = false
      + rescue             = "linux64"
      + server_type        = "cpx21"
      + ssh_keys           = (known after apply)
      + status             = (known after apply)

      + network {
          + alias_ips   = []
          + ip          = "10.0.1.1"
          + mac_address = (known after apply)
          + network_id  = (known after apply)
        }
    }

  # hcloud_server.agents[1] will be created
  + resource "hcloud_server" "agents" {
      + backup_window      = (known after apply)
      + backups            = false
      + datacenter         = (known after apply)
      + delete_protection  = false
      + firewall_ids       = (known after apply)
      + id                 = (known after apply)
      + image              = "ubuntu-20.04"
      + ipv4_address       = (known after apply)
      + ipv6_address       = (known after apply)
      + ipv6_network       = (known after apply)
      + keep_disk          = false
      + labels             = {
          + "engine"      = "k3s"
          + "provisioner" = "terraform"
        }
      + location           = "fsn1"
      + name               = "k3s-agent-1"
      + placement_group_id = (known after apply)
      + rebuild_protection = false
      + rescue             = "linux64"
      + server_type        = "cpx21"
      + ssh_keys           = (known after apply)
      + status             = (known after apply)

      + network {
          + alias_ips   = []
          + ip          = "10.0.1.2"
          + mac_address = (known after apply)
          + network_id  = (known after apply)
        }
    }

  # hcloud_server.control_planes[0] will be created
  + resource "hcloud_server" "control_planes" {
      + backup_window      = (known after apply)
      + backups            = false
      + datacenter         = (known after apply)
      + delete_protection  = false
      + firewall_ids       = (known after apply)
      + id                 = (known after apply)
      + image              = "ubuntu-20.04"
      + ipv4_address       = (known after apply)
      + ipv6_address       = (known after apply)
      + ipv6_network       = (known after apply)
      + keep_disk          = false
      + labels             = {
          + "engine"      = "k3s"
          + "provisioner" = "terraform"
        }
      + location           = "fsn1"
      + name               = "k3s-control-plane-1"
      + placement_group_id = (known after apply)
      + rebuild_protection = false
      + rescue             = "linux64"
      + server_type        = "cpx11"
      + ssh_keys           = (known after apply)
      + status             = (known after apply)

      + network {
          + alias_ips   = []
          + ip          = "10.0.0.3"
          + mac_address = (known after apply)
          + network_id  = (known after apply)
        }
    }

  # hcloud_server.control_planes[1] will be created
  + resource "hcloud_server" "control_planes" {
      + backup_window      = (known after apply)
      + backups            = false
      + datacenter         = (known after apply)
      + delete_protection  = false
      + firewall_ids       = (known after apply)
      + id                 = (known after apply)
      + image              = "ubuntu-20.04"
      + ipv4_address       = (known after apply)
      + ipv6_address       = (known after apply)
      + ipv6_network       = (known after apply)
      + keep_disk          = false
      + labels             = {
          + "engine"      = "k3s"
          + "provisioner" = "terraform"
        }
      + location           = "fsn1"
      + name               = "k3s-control-plane-2"
      + placement_group_id = (known after apply)
      + rebuild_protection = false
      + rescue             = "linux64"
      + server_type        = "cpx11"
      + ssh_keys           = (known after apply)
      + status             = (known after apply)

      + network {
          + alias_ips   = []
          + ip          = "10.0.0.4"
          + mac_address = (known after apply)
          + network_id  = (known after apply)
        }
    }

  # hcloud_server.first_control_plane will be created
  + resource "hcloud_server" "first_control_plane" {
      + backup_window      = (known after apply)
      + backups            = false
      + datacenter         = (known after apply)
      + delete_protection  = false
      + firewall_ids       = (known after apply)
      + id                 = (known after apply)
      + image              = "ubuntu-20.04"
      + ipv4_address       = (known after apply)
      + ipv6_address       = (known after apply)
      + ipv6_network       = (known after apply)
      + keep_disk          = false
      + labels             = {
          + "engine"      = "k3s"
          + "provisioner" = "terraform"
        }
      + location           = "fsn1"
      + name               = "k3s-control-plane-0"
      + placement_group_id = (known after apply)
      + rebuild_protection = false
      + rescue             = "linux64"
      + server_type        = "cpx11"
      + ssh_keys           = (known after apply)
      + status             = (known after apply)

      + network {
          + alias_ips   = []
          + ip          = "10.0.0.2"
          + mac_address = (known after apply)
          + network_id  = (known after apply)
        }
    }

  # hcloud_ssh_key.k3s will be created
  + resource "hcloud_ssh_key" "k3s" {
      + fingerprint = (known after apply)
      + id          = (known after apply)
      + name        = "k3s"
      + public_key  = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5mH6iwpbJY+ssGIJUVsClE5LO/e9/YhA2k+oOP6VzxK2f9GutJu6wYNd6re5Ma1BRZL1ld95QKs/k1F1HWq75y1VJMawD+72+7OR6eT1nwJyrFDVk801UgCuOPJtLGAjNXx9uT2AMKZ08crnRGap3XzjLynVxoeETndINMew3LKnaL3zGkrDRRZnysrIoB3c8ywS9WlQxB5M3zdMICQ6aqsonIHChDybHnKb+wEKFUbND5ga/V1VG2GUR18uNGu01Zpxxof566C+26owSfrnA9R7KllUI/+/zYTqFRt5a2F3B/k0I+5WhSsAuRbI/eundl1oTP4sAtJ8qKBt20VYL jan@MacBook-Pro-2.local"
    }

  # local_file.kubeconfig will be created
  + resource "local_file" "kubeconfig" {
      + directory_permission = "0777"
      + file_permission      = "600"
      + filename             = "kubeconfig.yaml"
      + id                   = (known after apply)
      + sensitive_content    = (sensitive value)
    }

  # random_password.k3s_token will be created
  + resource "random_password" "k3s_token" {
      + id          = (known after apply)
      + length      = 48
      + lower       = true
      + min_lower   = 0
      + min_numeric = 0
      + min_special = 0
      + min_upper   = 0
      + number      = true
      + result      = (sensitive value)
      + special     = false
      + upper       = true
    }

Plan: 12 to add, 0 to change, 0 to destroy.

Changes to Outputs:
  + agents_public_ip        = [
      + (known after apply),
      + (known after apply),
    ]
  + controlplanes_public_ip = [
      + (known after apply),
      + (known after apply),
      + (known after apply),
    ]
  + kubeconfig              = (sensitive value)
  + kubeconfig_file         = (sensitive value)
random_password.k3s_token: Creating...
random_password.k3s_token: Creation complete after 0s [id=none]
hcloud_network.k3s: Creating...
hcloud_placement_group.k3s: Creating...
hcloud_ssh_key.k3s: Creating...
hcloud_firewall.k3s: Creating...
hcloud_placement_group.k3s: Creation complete after 1s [id=21532]
hcloud_ssh_key.k3s: Creation complete after 1s [id=5557860]
hcloud_network.k3s: Creation complete after 1s [id=1370757]
hcloud_network_subnet.k3s: Creating...
hcloud_firewall.k3s: Creation complete after 1s [id=300569]
hcloud_network_subnet.k3s: Creation complete after 1s [id=1370757-10.0.0.0/16]
hcloud_server.first_control_plane: Creating...
hcloud_server.first_control_plane: Still creating... [10s elapsed]
hcloud_server.first_control_plane: Provisioning with 'file'...
hcloud_server.first_control_plane: Still creating... [20s elapsed]
hcloud_server.first_control_plane: Still creating... [30s elapsed]
hcloud_server.first_control_plane: Provisioning with 'remote-exec'...
hcloud_server.first_control_plane (remote-exec): Connecting to remote host via SSH...
hcloud_server.first_control_plane (remote-exec):   Host: 49.12.221.176
hcloud_server.first_control_plane (remote-exec):   User: root
hcloud_server.first_control_plane (remote-exec):   Password: false
hcloud_server.first_control_plane (remote-exec):   Private key: true
hcloud_server.first_control_plane (remote-exec):   Certificate: false
hcloud_server.first_control_plane (remote-exec):   SSH Agent: true
hcloud_server.first_control_plane (remote-exec):   Checking Host Key: false
hcloud_server.first_control_plane (remote-exec):   Target Platform: unix
hcloud_server.first_control_plane (remote-exec): Connected!
hcloud_server.first_control_plane (remote-exec): + apt-get install -y aria2
hcloud_server.first_control_plane: Still creating... [40s elapsed]
hcloud_server.first_control_plane (remote-exec): Reading package lists... 0%
hcloud_server.first_control_plane (remote-exec): Reading package lists... 0%
hcloud_server.first_control_plane (remote-exec): Reading package lists... 16%
hcloud_server.first_control_plane (remote-exec): Reading package lists... Done
hcloud_server.first_control_plane (remote-exec): Building dependency tree... 0%
hcloud_server.first_control_plane (remote-exec): Building dependency tree... 0%
hcloud_server.first_control_plane (remote-exec): Building dependency tree... 50%
hcloud_server.first_control_plane (remote-exec): Building dependency tree... 50%
hcloud_server.first_control_plane (remote-exec): Building dependency tree... Done
hcloud_server.first_control_plane (remote-exec): Reading state information... 0%
hcloud_server.first_control_plane (remote-exec): Reading state information... 0%
hcloud_server.first_control_plane (remote-exec): Reading state information... Done
hcloud_server.first_control_plane (remote-exec): The following additional packages will be installed:
hcloud_server.first_control_plane (remote-exec):   libaria2-0 libc-ares2
hcloud_server.first_control_plane (remote-exec): The following NEW packages will be installed:
hcloud_server.first_control_plane (remote-exec):   aria2 libaria2-0 libc-ares2
hcloud_server.first_control_plane (remote-exec): 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
hcloud_server.first_control_plane (remote-exec): Need to get 1,571 kB of archives.
hcloud_server.first_control_plane (remote-exec): After this operation, 6,225 kB of additional disk space will be used.
hcloud_server.first_control_plane (remote-exec): 0% [Working]
hcloud_server.first_control_plane (remote-exec): Get:1 http://mirror.hetzner.com/debian/packages bullseye/main amd64 libc-ares2 amd64 1.17.1-1+deb11u1 [102 kB]
hcloud_server.first_control_plane (remote-exec): 1% [1 libc-ares2 14.2 kB/102 kB 14%]
hcloud_server.first_control_plane (remote-exec): 12% [Working]
hcloud_server.first_control_plane (remote-exec): Get:2 http://mirror.hetzner.com/debian/packages bullseye/main amd64 libaria2-0 amd64 1.35.0-3 [1,107 kB]
hcloud_server.first_control_plane (remote-exec): 13% [2 libaria2-0 28.6 kB/1,107 kB 3%]
hcloud_server.first_control_plane (remote-exec): 75% [Waiting for headers]
hcloud_server.first_control_plane (remote-exec): Get:3 http://mirror.hetzner.com/debian/packages bullseye/main amd64 aria2 amd64 1.35.0-3 [362 kB]
hcloud_server.first_control_plane (remote-exec): 77% [3 aria2 35.8 kB/362 kB 10%]
hcloud_server.first_control_plane (remote-exec): 100% [Working]
hcloud_server.first_control_plane (remote-exec): Fetched 1,571 kB in 0s (4,481 kB/s)
hcloud_server.first_control_plane (remote-exec): Selecting previously unselected package libc-ares2:amd64.
hcloud_server.first_control_plane (remote-exec): (Reading database ...
hcloud_server.first_control_plane (remote-exec): (Reading database ... 5%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 10%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 15%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 20%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 25%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 30%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 35%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 40%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 45%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 50%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 55%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 60%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 65%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 70%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 75%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 80%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 85%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 90%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 95%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 100%
hcloud_server.first_control_plane (remote-exec): (Reading database ... 62163 files and directories currently installed.)
hcloud_server.first_control_plane (remote-exec): Preparing to unpack .../libc-ares2_1.17.1-1+deb11u1_amd64.deb ...
hcloud_server.first_control_plane (remote-exec): Unpacking libc-ares2:amd64 (1.17.1-1+deb11u1) ...
hcloud_server.first_control_plane (remote-exec): Selecting previously unselected package libaria2-0:amd64.
hcloud_server.first_control_plane (remote-exec): Preparing to unpack .../libaria2-0_1.35.0-3_amd64.deb ...
hcloud_server.first_control_plane (remote-exec): Unpacking libaria2-0:amd64 (1.35.0-3) ...
hcloud_server.first_control_plane (remote-exec): Selecting previously unselected package aria2.
hcloud_server.first_control_plane (remote-exec): Preparing to unpack .../aria2_1.35.0-3_amd64.deb ...
hcloud_server.first_control_plane (remote-exec): Unpacking aria2 (1.35.0-3) ...
hcloud_server.first_control_plane (remote-exec): Setting up libc-ares2:amd64 (1.17.1-1+deb11u1) ...
hcloud_server.first_control_plane (remote-exec): Setting up libaria2-0:amd64 (1.35.0-3) ...
hcloud_server.first_control_plane (remote-exec): Setting up aria2 (1.35.0-3) ...
hcloud_server.first_control_plane (remote-exec): Processing triggers for man-db (2.9.4-2) ...
hcloud_server.first_control_plane (remote-exec): Processing triggers for libc-bin (2.31-13+deb11u2) ...
hcloud_server.first_control_plane (remote-exec): + aria2c --follow-metalink=mem https://download.opensuse.org/tumbleweed/appliances/openSUSE-MicroOS.x86_64-k3s-kvm-and-xen.qcow2.meta4

hcloud_server.first_control_plane (remote-exec): 02/13 07:16:42 [NOTICE] Downloading 1 item(s)
hcloud_server.first_control_plane (remote-exec): [#19122d 0B/0B CN:1 DL:0B]
hcloud_server.first_control_plane (remote-exec): 02/13 07:16:43 [NOTICE] Download complete: [MEMORY]openSUSE-MicroOS.x86_64-16.0.0-k3s-kvm-and-xen-Snapshot20220210.qcow2.meta4
hcloud_server.first_control_plane (remote-exec): [#3aa26e 15MiB/601MiB(2%) CN:5 DL:20MiB
hcloud_server.first_control_plane (remote-exec): [#3aa26e 407MiB/601MiB(67%) CN:5 DL:232
hcloud_server.first_control_plane (remote-exec): [#3aa26e 549MiB/601MiB(91%) CN:2 DL:200
hcloud_server.first_control_plane (remote-exec): [#3aa26e 563MiB/601MiB(93%) CN:2 DL:150
hcloud_server.first_control_plane: Still creating... [50s elapsed]
hcloud_server.first_control_plane (remote-exec): [#3aa26e 573MiB/601MiB(95%) CN:1 DL:121
hcloud_server.first_control_plane (remote-exec): [#3aa26e 576MiB/601MiB(95%) CN:1 DL:100
hcloud_server.first_control_plane (remote-exec): [#3aa26e 578MiB/601MiB(96%) CN:1 DL:85M
hcloud_server.first_control_plane (remote-exec): [#3aa26e 580MiB/601MiB(96%) CN:1 DL:74M
hcloud_server.first_control_plane (remote-exec): [#3aa26e 583MiB/601MiB(97%) CN:1 DL:66M
hcloud_server.first_control_plane (remote-exec): [#3aa26e 586MiB/601MiB(97%) CN:1 DL:60M
hcloud_server.first_control_plane (remote-exec): [#3aa26e 590MiB/601MiB(98%) CN:1 DL:54M

hcloud_server.first_control_plane (remote-exec): 02/13 07:16:54 [NOTICE] Download complete: /root/openSUSE-MicroOS.x86_64-16.0.0-k3s-kvm-and-xen-Snapshot20220210.qcow2

hcloud_server.first_control_plane (remote-exec): Download Results:
hcloud_server.first_control_plane (remote-exec): gid   |stat|avg speed  |path/URI
hcloud_server.first_control_plane (remote-exec): ======+====+===========+=======================================================
hcloud_server.first_control_plane (remote-exec): 19122d|OK  |   141KiB/s|[MEMORY]openSUSE-MicroOS.x86_64-16.0.0-k3s-kvm-and-xen-Snapshot20220210.qcow2.meta4
hcloud_server.first_control_plane (remote-exec): 3aa26e|OK  |    53MiB/s|/root/openSUSE-MicroOS.x86_64-16.0.0-k3s-kvm-and-xen-Snapshot20220210.qcow2

hcloud_server.first_control_plane (remote-exec): Status Legend:
hcloud_server.first_control_plane (remote-exec): (OK):download completed.
hcloud_server.first_control_plane (remote-exec): + + grep -ie ^opensuse.*microos.*k3s.*qcow2$
hcloud_server.first_control_plane (remote-exec): ls -a
hcloud_server.first_control_plane (remote-exec): + qemu-img convert -p -f qcow2 -O host_device openSUSE-MicroOS.x86_64-16.0.0-k3s-kvm-and-xen-Snapshot20220210.qcow2 /dev/sda
hcloud_server.first_control_plane (remote-exec):     (0.00/100%)
hcloud_server.first_control_plane (remote-exec):     (1.00/100%)
hcloud_server.first_control_plane (remote-exec):     (2.01/100%)
hcloud_server.first_control_plane (remote-exec):     (3.01/100%)
hcloud_server.first_control_plane (remote-exec):     (4.01/100%)
hcloud_server.first_control_plane (remote-exec):     (5.02/100%)
hcloud_server.first_control_plane (remote-exec):     (6.02/100%)
hcloud_server.first_control_plane (remote-exec):     (7.05/100%)
hcloud_server.first_control_plane (remote-exec):     (8.05/100%)
hcloud_server.first_control_plane (remote-exec):     (9.06/100%)
hcloud_server.first_control_plane (remote-exec):     (10.06/100%)
hcloud_server.first_control_plane (remote-exec):     (11.07/100%)
hcloud_server.first_control_plane (remote-exec):     (12.08/100%)
hcloud_server.first_control_plane (remote-exec):     (13.08/100%)
hcloud_server.first_control_plane: Still creating... [1m0s elapsed]
hcloud_server.first_control_plane (remote-exec):     (14.08/100%)
hcloud_server.first_control_plane (remote-exec):     (15.09/100%)
hcloud_server.first_control_plane (remote-exec):     (16.09/100%)
hcloud_server.first_control_plane (remote-exec):     (17.10/100%)
hcloud_server.first_control_plane (remote-exec):     (18.10/100%)
hcloud_server.first_control_plane (remote-exec):     (19.10/100%)
hcloud_server.first_control_plane (remote-exec):     (20.11/100%)
hcloud_server.first_control_plane (remote-exec):     (21.11/100%)
hcloud_server.first_control_plane (remote-exec):     (22.11/100%)
hcloud_server.first_control_plane (remote-exec):     (23.12/100%)
hcloud_server.first_control_plane (remote-exec):     (24.12/100%)
hcloud_server.first_control_plane (remote-exec):     (25.12/100%)
hcloud_server.first_control_plane (remote-exec):     (26.13/100%)
hcloud_server.first_control_plane (remote-exec):     (27.13/100%)
hcloud_server.first_control_plane (remote-exec):     (28.14/100%)
hcloud_server.first_control_plane (remote-exec):     (29.14/100%)
hcloud_server.first_control_plane (remote-exec):     (30.14/100%)
hcloud_server.first_control_plane (remote-exec):     (31.15/100%)
hcloud_server.first_control_plane (remote-exec):     (32.15/100%)
hcloud_server.first_control_plane (remote-exec):     (33.15/100%)
hcloud_server.first_control_plane (remote-exec):     (34.16/100%)
hcloud_server.first_control_plane (remote-exec):     (35.16/100%)
hcloud_server.first_control_plane (remote-exec):     (36.16/100%)
hcloud_server.first_control_plane (remote-exec):     (37.17/100%)
hcloud_server.first_control_plane (remote-exec):     (38.17/100%)
hcloud_server.first_control_plane (remote-exec):     (39.18/100%)
hcloud_server.first_control_plane (remote-exec):     (40.18/100%)
hcloud_server.first_control_plane (remote-exec):     (41.18/100%)
hcloud_server.first_control_plane (remote-exec):     (42.19/100%)
hcloud_server.first_control_plane (remote-exec):     (43.19/100%)
hcloud_server.first_control_plane (remote-exec):     (44.19/100%)
hcloud_server.first_control_plane (remote-exec):     (45.20/100%)
hcloud_server.first_control_plane (remote-exec):     (46.20/100%)
hcloud_server.first_control_plane (remote-exec):     (47.20/100%)
hcloud_server.first_control_plane (remote-exec):     (48.21/100%)
hcloud_server.first_control_plane (remote-exec):     (49.21/100%)
hcloud_server.first_control_plane (remote-exec):     (50.22/100%)
hcloud_server.first_control_plane (remote-exec):     (51.22/100%)
hcloud_server.first_control_plane (remote-exec):     (52.22/100%)
hcloud_server.first_control_plane (remote-exec):     (53.23/100%)
hcloud_server.first_control_plane (remote-exec):     (54.23/100%)
hcloud_server.first_control_plane (remote-exec):     (55.23/100%)
hcloud_server.first_control_plane (remote-exec):     (56.24/100%)
hcloud_server.first_control_plane (remote-exec):     (57.24/100%)
hcloud_server.first_control_plane (remote-exec):     (58.24/100%)
hcloud_server.first_control_plane (remote-exec):     (59.25/100%)
hcloud_server.first_control_plane (remote-exec):     (60.25/100%)
hcloud_server.first_control_plane (remote-exec):     (61.28/100%)
hcloud_server.first_control_plane (remote-exec):     (62.28/100%)
hcloud_server.first_control_plane (remote-exec):     (63.29/100%)
hcloud_server.first_control_plane (remote-exec):     (64.29/100%)
hcloud_server.first_control_plane (remote-exec):     (65.29/100%)
hcloud_server.first_control_plane (remote-exec):     (66.30/100%)
hcloud_server.first_control_plane (remote-exec):     (67.30/100%)
hcloud_server.first_control_plane (remote-exec):     (68.30/100%)
hcloud_server.first_control_plane (remote-exec):     (69.31/100%)
hcloud_server.first_control_plane (remote-exec):     (70.31/100%)
hcloud_server.first_control_plane (remote-exec):     (71.32/100%)
hcloud_server.first_control_plane (remote-exec):     (72.32/100%)
hcloud_server.first_control_plane (remote-exec):     (73.32/100%)
hcloud_server.first_control_plane (remote-exec):     (74.33/100%)
hcloud_server.first_control_plane (remote-exec):     (75.33/100%)
hcloud_server.first_control_plane (remote-exec):     (76.33/100%)
hcloud_server.first_control_plane (remote-exec):     (77.34/100%)
hcloud_server.first_control_plane (remote-exec):     (78.34/100%)
hcloud_server.first_control_plane (remote-exec):     (79.34/100%)
hcloud_server.first_control_plane (remote-exec):     (80.35/100%)
hcloud_server.first_control_plane (remote-exec):     (81.35/100%)
hcloud_server.first_control_plane (remote-exec):     (82.36/100%)
hcloud_server.first_control_plane (remote-exec):     (83.36/100%)
hcloud_server.first_control_plane (remote-exec):     (84.36/100%)
hcloud_server.first_control_plane (remote-exec):     (85.37/100%)
hcloud_server.first_control_plane (remote-exec):     (86.38/100%)
hcloud_server.first_control_plane (remote-exec):     (87.38/100%)
hcloud_server.first_control_plane (remote-exec):     (88.38/100%)
hcloud_server.first_control_plane (remote-exec):     (89.39/100%)
hcloud_server.first_control_plane (remote-exec):     (90.39/100%)
hcloud_server.first_control_plane (remote-exec):     (91.39/100%)
hcloud_server.first_control_plane (remote-exec):     (92.40/100%)
hcloud_server.first_control_plane (remote-exec):     (93.40/100%)
hcloud_server.first_control_plane (remote-exec):     (94.40/100%)
hcloud_server.first_control_plane (remote-exec):     (95.41/100%)
hcloud_server.first_control_plane (remote-exec):     (96.41/100%)
hcloud_server.first_control_plane (remote-exec):     (97.42/100%)
hcloud_server.first_control_plane (remote-exec):     (98.42/100%)
hcloud_server.first_control_plane (remote-exec):     (99.42/100%)
hcloud_server.first_control_plane (remote-exec):     (100.00/100%)
hcloud_server.first_control_plane (remote-exec):     (100.00/100%)
hcloud_server.first_control_plane (remote-exec): + sgdisk -e /dev/sda
hcloud_server.first_control_plane (remote-exec): The operation has completed successfully.
hcloud_server.first_control_plane (remote-exec): + parted -s /dev/sda resizepart 4 99%
hcloud_server.first_control_plane (remote-exec): + parted -s /dev/sda mkpart primary ext2 99% 100%
hcloud_server.first_control_plane (remote-exec): + partprobe /dev/sda
hcloud_server.first_control_plane (remote-exec): + udevadm settle
hcloud_server.first_control_plane (remote-exec): + fdisk -l /dev/sda
hcloud_server.first_control_plane (remote-exec): Disk /dev/sda: 38.15 GiB, 40961572864 bytes, 80003072 sectors
hcloud_server.first_control_plane (remote-exec): Disk model: QEMU HARDDISK
hcloud_server.first_control_plane (remote-exec): Units: sectors of 1 * 512 = 512 bytes
hcloud_server.first_control_plane (remote-exec): Sector size (logical/physical): 512 bytes / 512 bytes
hcloud_server.first_control_plane (remote-exec): I/O size (minimum/optimal): 512 bytes / 512 bytes
hcloud_server.first_control_plane (remote-exec): Disklabel type: gpt
hcloud_server.first_control_plane (remote-exec): Disk identifier: EC33AA26-C0DC-4B6C-AF09-4CA8108C7753

hcloud_server.first_control_plane (remote-exec): Device        Start      End  Sectors  Size Type
hcloud_server.first_control_plane (remote-exec): /dev/sda1      2048     6143     4096    2M BIOS
hcloud_server.first_control_plane (remote-exec): /dev/sda2      6144    47103    40960   20M EFI
hcloud_server.first_control_plane (remote-exec): /dev/sda3     47104 31438847 31391744   15G Linu
hcloud_server.first_control_plane (remote-exec): /dev/sda4  31438848 79203041 47764194 22.8G Linu
hcloud_server.first_control_plane (remote-exec): /dev/sda5  79204352 80001023   796672  389M Linu
hcloud_server.first_control_plane (remote-exec): + mount /dev/sda4 /mnt/
hcloud_server.first_control_plane (remote-exec): + btrfs filesystem resize max /mnt
hcloud_server.first_control_plane (remote-exec): Resize '/mnt' of 'max'
hcloud_server.first_control_plane (remote-exec): + umount /mnt
hcloud_server.first_control_plane (remote-exec): + mke2fs -L ignition /dev/sda5
hcloud_server.first_control_plane (remote-exec): mke2fs 1.46.2 (28-Feb-2021)
hcloud_server.first_control_plane (remote-exec): Discarding device blocks: done
hcloud_server.first_control_plane (remote-exec): Creating filesystem with 398336 1k blocks and 99960 inodes
hcloud_server.first_control_plane (remote-exec): Filesystem UUID: 8a3cd038-472e-4812-abe5-ad2f7a5980ef
hcloud_server.first_control_plane (remote-exec): Superblock backups stored on blocks:
hcloud_server.first_control_plane (remote-exec): 	8193, 24577, 40961, 57345, 73729, 204801, 221185

hcloud_server.first_control_plane (remote-exec): Allocating group tables: done
hcloud_server.first_control_plane (remote-exec): Writing inode tables: done
hcloud_server.first_control_plane (remote-exec): Writing superblocks and filesystem accounting information: done

hcloud_server.first_control_plane (remote-exec): + mount /dev/sda5 /mnt
hcloud_server.first_control_plane (remote-exec): + mkdir /mnt/ignition
hcloud_server.first_control_plane (remote-exec): + cp /root/config.ign /mnt/ignition/config.ign
hcloud_server.first_control_plane (remote-exec): + umount /mnt
hcloud_server.first_control_plane: Provisioning with 'local-exec'...
hcloud_server.first_control_plane (local-exec): Executing: ["/bin/sh" "-c" "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa root@49.12.221.176 '(sleep 2; reboot)&'; sleep 3"]
hcloud_server.first_control_plane: Still creating... [1m10s elapsed]
hcloud_server.first_control_plane (local-exec): Warning: Permanently added '49.12.221.176' (ECDSA) to the list of known hosts.
hcloud_server.first_control_plane (local-exec): Connection to 49.12.221.176 closed by remote host.
hcloud_server.first_control_plane: Provisioning with 'local-exec'...
hcloud_server.first_control_plane (local-exec): Executing: ["/bin/sh" "-c" "until ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa -o ConnectTimeout=2 root@49.12.221.176 true 2> /dev/null\ndo\n  echo \"Waiting for MicroOS to reboot and become available...\"\n  sleep 2\ndone\n"]
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane: Still creating... [1m20s elapsed]
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane: Still creating... [1m30s elapsed]
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane: Still creating... [1m40s elapsed]
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane: Still creating... [1m50s elapsed]
hcloud_server.first_control_plane (local-exec): Waiting for MicroOS to reboot and become available...
hcloud_server.first_control_plane: Provisioning with 'file'...
hcloud_server.first_control_plane: Still creating... [2m0s elapsed]
hcloud_server.first_control_plane: Still creating... [2m10s elapsed]
hcloud_server.first_control_plane: Still creating... [2m20s elapsed]
hcloud_server.first_control_plane: Still creating... [2m30s elapsed]
hcloud_server.first_control_plane: Still creating... [2m40s elapsed]
hcloud_server.first_control_plane: Still creating... [2m50s elapsed]
hcloud_server.first_control_plane: Still creating... [3m0s elapsed]
hcloud_server.first_control_plane: Still creating... [3m10s elapsed]
hcloud_server.first_control_plane: Still creating... [3m20s elapsed]
hcloud_server.first_control_plane: Still creating... [3m30s elapsed]
hcloud_server.first_control_plane: Still creating... [3m40s elapsed]
hcloud_server.first_control_plane: Still creating... [3m50s elapsed]
hcloud_server.first_control_plane: Still creating... [4m0s elapsed]
hcloud_server.first_control_plane: Still creating... [4m10s elapsed]
hcloud_server.first_control_plane: Still creating... [4m20s elapsed]
hcloud_server.first_control_plane: Still creating... [4m30s elapsed]
hcloud_server.first_control_plane: Still creating... [4m40s elapsed]
hcloud_server.first_control_plane: Still creating... [4m50s elapsed]
hcloud_server.first_control_plane: Still creating... [5m0s elapsed]
hcloud_server.first_control_plane: Still creating... [5m10s elapsed]
hcloud_server.first_control_plane: Still creating... [5m20s elapsed]
hcloud_server.first_control_plane: Still creating... [5m30s elapsed]
hcloud_server.first_control_plane: Still creating... [5m40s elapsed]
hcloud_server.first_control_plane: Still creating... [5m50s elapsed]
hcloud_server.first_control_plane: Still creating... [6m0s elapsed]
hcloud_server.first_control_plane: Still creating... [6m10s elapsed]
hcloud_server.first_control_plane: Still creating... [6m20s elapsed]
hcloud_server.first_control_plane: Still creating... [6m30s elapsed]
hcloud_server.first_control_plane: Still creating... [6m40s elapsed]
hcloud_server.first_control_plane: Still creating... [6m50s elapsed]
╷
│ Error: file provisioner error
│
│   with hcloud_server.first_control_plane,
│   on master.tf line 54, in resource "hcloud_server" "first_control_plane":
│   54:   provisioner "file" {
│
│ timeout - last error: dial tcp 49.12.221.176:22: connect: operation timed out
╵

@mysticaltech
Copy link
Collaborator

mysticaltech commented Feb 13, 2022

@exocode With all theses network issues you are having, maybe the problem is with your own network? Try through cloudflarewarp.com please, maybe that would help 🥺

@mysticaltech
Copy link
Collaborator

Also, when you retry it does the same?

@mysticaltech
Copy link
Collaborator

Then try to connect manually, can you reach the server via SSH?

@mysticaltech
Copy link
Collaborator

Try the above and if it still does not work, we could schedule a zoom call later this coming week.

@mysticaltech
Copy link
Collaborator

Just got a lightbulb, you are on windows, just use the linux subsystem, as this project does not work well on the windows cmd.

@mysticaltech
Copy link
Collaborator

Will put a notice in the readme.

@exocode
Copy link
Author

exocode commented Feb 13, 2022

Hi @mysticaltech, I am on MacOS, yes, shure I am open for Zoom calls.

With CloudflareWarp installed and activated, I've got the same error:

...
..
.
hcloud_server.first_control_plane: Still creating... [6m20s elapsed]
hcloud_server.first_control_plane: Still creating... [6m30s elapsed]
hcloud_server.first_control_plane: Still creating... [6m40s elapsed]
hcloud_server.first_control_plane: Still creating... [6m50s elapsed]

│ Error: file provisioner error
│
│   with hcloud_server.first_control_plane,
│   on master.tf line 54, in resource "hcloud_server" "first_control_plane":
│   54:   provisioner "file" {
│
│ timeout - last error: dial tcp 49.12.221.176:22: connect: operation timed out
  • ping -c 2 IP_ADDRESS works (sometimes)
64 bytes from 49.12.221.176: icmp_seq=24 ttl=54 time=25.874 ms
64 bytes from 49.12.221.176: icmp_seq=25 ttl=54 time=27.982 ms
64 bytes from 49.12.221.176: icmp_seq=26 ttl=54 time=26.854 ms
64 bytes from 49.12.221.176: icmp_seq=27 ttl=54 time=27.252 ms
64 bytes from 49.12.221.176: icmp_seq=28 ttl=54 time=32.668 ms
64 bytes from 49.12.221.176: icmp_seq=29 ttl=54 time=27.532 ms
64 bytes from 49.12.221.176: icmp_seq=30 ttl=54 time=32.564 ms
64 bytes from 49.12.221.176: icmp_seq=31 ttl=54 time=26.463 ms
Request timeout for icmp_seq 32
Request timeout for icmp_seq 33
Request timeout for icmp_seq 34
Request timeout for icmp_seq 35
Request timeout for icmp_seq 36
Request timeout for icmp_seq 37
Request timeout for icmp_seq 38
Request timeout for icmp_seq 39
Request timeout for icmp_seq 40
Request timeout for icmp_seq 41
Request timeout for icmp_seq 42
Request timeout for icmp_seq 43
Request timeout for icmp_seq 44
Request timeout for icmp_seq 45
64 bytes from 49.12.221.176: icmp_seq=46 ttl=54 time=27.454 ms
64 bytes from 49.12.221.176: icmp_seq=47 ttl=54 time=29.123 ms
64 bytes from 49.12.221.176: icmp_seq=48 ttl=54 time=32.615 ms
64 bytes from 49.12.221.176: icmp_seq=49 ttl=54 time=26.025 ms
Request timeout for icmp_seq 50
Request timeout for icmp_seq 51
Request timeout for icmp_seq 52
Request timeout for icmp_seq 53
Request timeout for icmp_seq 54
Request timeout for icmp_seq 55
Request timeout for icmp_seq 56
Request timeout for icmp_seq 57
Request timeout for icmp_seq 58
Request timeout for icmp_seq 59
Request timeout for icmp_seq 60
Request timeout for icmp_seq 61
Request timeout for icmp_seq 62
Request timeout for icmp_seq 63
Request timeout for icmp_seq 64
64 bytes from 49.12.221.176: icmp_seq=65 ttl=54 time=33.110 ms
64 bytes from 49.12.221.176: icmp_seq=66 ttl=54 time=27.324 ms
64 bytes from 49.12.221.176: icmp_seq=67 ttl=54 time=27.923 ms
64 bytes from 49.12.221.176: icmp_seq=68 ttl=54 time=26.138 ms
64 bytes from 49.12.221.176: icmp_seq=69 ttl=54 time=32.636 ms
64 bytes from 49.12.221.176: icmp_seq=70 ttl=54 time=27.860 ms
64 bytes from 49.12.221.176: icmp_seq=71 ttl=54 time=26.670 ms
64 bytes from 49.12.221.176: icmp_seq=72 ttl=54 time=31.505 ms
64 bytes from 49.12.221.176: icmp_seq=73 ttl=54 time=26.604 ms
64 bytes from 49.12.221.176: icmp_seq=74 ttl=54 time=30.037 ms
64 bytes from 49.12.221.176: icmp_seq=75 ttl=54 time=33.463 ms
64 bytes from 49.12.221.176: icmp_seq=76 ttl=54 time=33.541 ms
Request timeout for icmp_seq 77
Request timeout for icmp_seq 78
Request timeout for icmp_seq 79
Request timeout for icmp_seq 80
Request timeout for icmp_seq 81
  • ssh root@IP_ADDRESS -i ~/.ssh/id_rsa.pub only works in the timeframe when IP address is reachable
   ~/Coding/RubymineProjects/metashop/gitops-civo    main !3 ?3 ────────────────────────────────────────── 255 ✘
❯ ssh root@49.12.221.176  -i ~/.ssh/id_rsa.pub
ssh: connect to host 49.12.221.176 port 22: Connection refused

    ~/Coding/RubymineProjects/metashop/gitops-civo    main !3 ?3 ────────────────────────────────────────── 255 ✘
❯ ssh root@49.12.221.176  -i ~/.ssh/id_rsa.pub
ssh: connect to host 49.12.221.176 port 22: Connection refused

    ~/Coding/RubymineProjects/metashop/gitops-civo    main !3 ?3 ────────────────────────────────────────── 255 ✘
❯ ssh root@49.12.221.176  -i ~/.ssh/id_rsa.pub
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:SisxxxxwPqFUpnG9bU1ZBid7Nxxxxg.
Please contact your system administrator.
Add correct host key in /Users/jan/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/jan/.ssh/known_hosts:56
ECDSA host key for 49.12.221.176 has changed and you have requested strict checking.
Host key verification failed.

    ~/Coding/RubymineProjects/metashop/gitops-civo    main !3 ?3 ─────────────────────────────────── 255 ✘  11s 
❯ ssh root@49.12.221.176  -i ~/.ssh/id_rsa.pub
ssh: connect to host 49.12.221.176 port 22: Operation timed out

    ~/Coding/RubymineProjects/metashop/gitops-civo    main !3 ?3 ─────────────────────────────────── 255 ✘  11s 
❯ ssh root@49.12.221.176  -i ~/.ssh/id_rsa.pub
ssh: connect to host 49.12.221.176 port 22: Operation timed out

@mysticaltech
Copy link
Collaborator

mysticaltech commented Feb 13, 2022

The ping shows it's your network! Maybe your wifi? Try plugging in via cable..

@mysticaltech
Copy link
Collaborator

Find a way to get your ping stable first, even via 4G..

@mysticaltech
Copy link
Collaborator

Hey @exocode, what happened to this, any news?

@exocode
Copy link
Author

exocode commented Feb 16, 2022

@mysticaltech no time. I will investigate further at the end of the week

@mysticaltech
Copy link
Collaborator

@exocode I will close that for now, assuming it's a local network issue. We have also launched yet another version, with a fully new method on master.

Please use that one to redeploy and verify that all works well now. If not, you can always open a new issue.

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