Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

runtime error due to need for cleanup #36

Open
dimitropoulos opened this issue Sep 23, 2019 · 3 comments
Open

runtime error due to need for cleanup #36

dimitropoulos opened this issue Sep 23, 2019 · 3 comments
Labels
bug Broken end user or developer functionality; not working as the developers intended it good first issue Good for newcomers

Comments

@dimitropoulos
Copy link
Contributor

observe:

$ ./setup.sh 
• Found jk 0.3.0
• Found footloose 0.6.1
• Found ignite 0.5.3
• Found wksctl 0.8.0-beta.1-89-g86cdb09
• Creating footloose manifest
• Creating virtual machines
INFO[0000] Docker Image: weaveworks/ignite-centos:latest present locally 
INFO[0000] Creating machine: firekube-node0 ...         
INFO[0000] Machine firekube-node0 is already created... 
INFO[0000] Creating machine: firekube-node1 ...         
INFO[0000] Machine firekube-node1 is already created... 
• Creating Cluster API manifests
/home/dimitri/src/github.com/weaveworks/wks-quickstart-firekube/setup.js:114
      privateIP: machine.runtimeNetworks[0].ip,
                                        ^
TypeError: Cannot read property '0' of undefined
    at /home/dimitri/src/github.com/weaveworks/wks-quickstart-firekube/setup.js:114:41
Module (setup.js) has not been loaded

Which is a non obvious error message in the context of the actual situation: which was that the VMs aren't actually running (and need to therefore be cleaned up with cleanup.sh).

The containers firekube-node[01] still exist, they are just not running.

@palemtnrider palemtnrider added bug Broken end user or developer functionality; not working as the developers intended it good first issue Good for newcomers labels Sep 24, 2019
@Mhart12
Copy link

Mhart12 commented Sep 25, 2019

Been trying to recreate this issue, but not seeing it. I ran the cleanup.sh, which deleted the nodes, then reran setup.sh successfully.

@dimitropoulos
Copy link
Contributor Author

thanks for taking a look @Mhart12!

@dlespiau may know more: but somehow I got into an intermediate state when running previous ./setup.sh commands that failed (for other reasons, I believe). @dlespaiu if you don't know more as to how we could reproduce this (I don't personally know how to reproduce this) then let's close for now.

@robertsmieja
Copy link

robertsmieja commented Jun 18, 2020

I'm getting the same issue, my guess is the leftover ignite manifests are not working correctly, from a previous ./setup.sh run.

Initial run:

~/wks-quickstart-firekube$ ./setup.sh
• Using git branch: master
• Using git remote: origin

• Found jk 0.3.0
• Found footloose 0.6.2
• Found ignite 0.7.0
INFO[0000] wksctl version 0.8.2-beta.1 is available; please update at https://github.com/weaveworks/wksctl/releases/tag/v0.8.2-beta.1
• Found wksctl 0.8.1
• Creating footloose manifest
• Creating SSH key
• Creating virtual machines
[sudo] password for rsmieja:
INFO[0000] Docker Image: weaveworks/ignite-centos:firekube-pre3 present locally
INFO[0000] Creating machine: firekube-node0 ...
INFO[0002] Creating machine: firekube-node1 ...
• Creating Cluster API manifests
• Updating container images and git parameters
INFO[0000] wksctl version 0.8.2-beta.1 is available; please update at https://github.com/weaveworks/wksctl/releases/tag/v0.8.2-beta.1
• Pushing initial cluster configuration
[master 98a64c2] Initial cluster configuration
 4 files changed, 66 insertions(+), 2 deletions(-)
 create mode 100644 footloose.yaml
 create mode 100644 machines.yaml
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 8 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 993 bytes | 993.00 KiB/s, done.
Total 6 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To github.com:robertsmieja/wks-quickstart-firekube.git
   35b30f9..98a64c2  HEAD -> master
• Installing Kubernetes cluster
INFO[0000] wksctl version 0.8.2-beta.1 is available; please update at https://github.com/weaveworks/wksctl/releases/tag/v0.8.2-beta.1
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:addons"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:addons"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:cni"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install-cni:apply-manifests"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install-cni:apply-manifests"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:cni"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:flux:main"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:flux:main"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:wks"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:wks"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:flux:flux-git-deploy-secret"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:flux:flux-git-deploy-secret"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubectl:apply:cluster"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubectl:apply:cluster"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubectl:apply:machines"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubectl:apply:machines"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:configmaps"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:config-map-seed-node-plan"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:config-map-seed-node-plan"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:config-map-repo"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:config-map-repo"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:config-map-docker"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:config-map-docker"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:configmaps"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubectl:apply:cluster_v1alpha1_machine.yaml"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubectl:apply:cluster_v1alpha1_machine.yaml"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubectl:apply:cluster_v1alpha1_machineset.yaml"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubectl:apply:cluster_v1alpha1_machineset.yaml"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubectl:apply:cluster_v1alpha1_cluster.yaml"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubectl:apply:cluster_v1alpha1_cluster.yaml"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubectl:apply:cluster_v1alpha1_machinedeployment.yaml"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubectl:apply:cluster_v1alpha1_machinedeployment.yaml"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubectl:apply:cluster_v1alpha1_machineclass.yaml"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubectl:apply:cluster_v1alpha1_machineclass.yaml"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubeadm:init"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubeadm:config:set-ownership"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubeadm:config:set-ownership"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="configure:iptables"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="configure:iptables"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubeadm:config:copy"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubeadm:config:copy"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubeadm:run-init"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="file:etcd.yaml"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="file:etcd.yaml"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="dir:etcd"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="dir:etcd"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="file:kube-apiserver.yaml"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="file:kube-apiserver.yaml"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="file:kube-controller-manager.yaml"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="file:kube-controller-manager.yaml"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="file:kube-scheduler.yaml"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="file:kube-scheduler.yaml"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubeadm:run-init"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubeadm:config:kubectl-dir"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubeadm:config:kubectl-dir"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubeadm:config:images"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubeadm:config:images"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubeadm:get-homedir"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubeadm:get-homedir"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="kubeadm:reset"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubeadm:reset"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="kubeadm:init"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:k8s"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="lock-package:kubernetes"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="lock-package:kubernetes"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="service-init:kubelet"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="service-init:kubelet"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:kubeadm"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:kubeadm"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="configure:kubernetes-swap-disable"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="configure:kubernetes-swap-disable"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="configure:kubelet-sysconfig"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="configure:kubelet-sysconfig"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:kubectl"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:kubectl"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="create-dir:kubelet.service.d"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="create-dir:kubelet.service.d"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:kubelet"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:kubelet"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="install:k8s"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="install:cri"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="lock-package:docker"
INFO[2020-06-18T04:24:37Z] Undone                                        resource="lock-package:docker"
INFO[2020-06-18T04:24:37Z] Undoing                                       resource="service-init:docker-service"
INFO[2020-06-18T04:24:38Z] Undone                                        resource="service-init:docker-service"
INFO[2020-06-18T04:24:38Z] Undoing                                       resource="systemd:daemon-reload"
INFO[2020-06-18T04:24:38Z] Undone                                        resource="systemd:daemon-reload"
INFO[2020-06-18T04:24:38Z] Undoing                                       resource="install:docker"
INFO[2020-06-18T04:24:38Z] Undone                                        resource="install:docker"
INFO[2020-06-18T04:24:38Z] Undone                                        resource="install:cri"
INFO[2020-06-18T04:24:38Z] Undoing                                       resource="install:config"
INFO[2020-06-18T04:24:38Z] Undoing                                       resource="install:config-file-2"
INFO[2020-06-18T04:24:38Z] Undone                                        resource="install:config-file-2"
INFO[2020-06-18T04:24:38Z] Undoing                                       resource="install:config-file-0"
INFO[2020-06-18T04:24:38Z] Undone                                        resource="install:config-file-0"
INFO[2020-06-18T04:24:38Z] Undoing                                       resource="install:config-file-1"
INFO[2020-06-18T04:24:38Z] Undone                                        resource="install:config-file-1"
INFO[2020-06-18T04:24:38Z] Undone                                        resource="install:config"
INFO[2020-06-18T04:24:38Z] Undoing                                       resource="install:base"
INFO[2020-06-18T04:24:38Z] Undone                                        resource="install:base"
INFO[2020-06-18T04:24:38Z] Starting                                      resource="install:base"
INFO[2020-06-18T04:24:38Z] Starting                                      resource="install:device-mapper-persistent-data"
INFO[2020-06-18T04:24:43Z] Finishing                                     resource="install:device-mapper-persistent-data"
INFO[2020-06-18T04:24:43Z] Starting                                      resource="install:lvm2"
INFO[2020-06-18T04:24:47Z] Finishing                                     resource="install:lvm2"
INFO[2020-06-18T04:24:47Z] Starting                                      resource="install:yum-utils"
INFO[2020-06-18T04:24:47Z] Finishing                                     resource="install:yum-utils"
INFO[2020-06-18T04:24:47Z] Starting                                      resource="install:yum-versionlock"
INFO[2020-06-18T04:24:47Z] Finishing                                     resource="install:yum-versionlock"
INFO[2020-06-18T04:24:47Z] Finishing                                     resource="install:base"
INFO[2020-06-18T04:24:47Z] Starting                                      resource="install:config"
INFO[2020-06-18T04:24:47Z] Starting                                      resource="install:config-file-2"
INFO[2020-06-18T04:24:47Z] Finishing                                     resource="install:config-file-2"
INFO[2020-06-18T04:24:47Z] Starting                                      resource="install:config-file-0"
INFO[2020-06-18T04:24:47Z] Finishing                                     resource="install:config-file-0"
INFO[2020-06-18T04:24:47Z] Starting                                      resource="install:config-file-1"
INFO[2020-06-18T04:24:47Z] Finishing                                     resource="install:config-file-1"
INFO[2020-06-18T04:24:47Z] Finishing                                     resource="install:config"
INFO[2020-06-18T04:24:47Z] Starting                                      resource="install:cri"
INFO[2020-06-18T04:24:47Z] Starting                                      resource="install:docker"
INFO[2020-06-18T04:25:20Z] Finishing                                     resource="install:docker"
INFO[2020-06-18T04:25:20Z] Starting                                      resource="lock-package:docker"
INFO[2020-06-18T04:25:20Z] Finishing                                     resource="lock-package:docker"
INFO[2020-06-18T04:25:20Z] Starting                                      resource="systemd:daemon-reload"
INFO[2020-06-18T04:25:20Z] Finishing                                     resource="systemd:daemon-reload"
INFO[2020-06-18T04:25:20Z] Starting                                      resource="service-init:docker-service"
INFO[2020-06-18T04:25:20Z] Finishing                                     resource="service-init:docker-service"
INFO[2020-06-18T04:25:20Z] Finishing                                     resource="install:cri"
INFO[2020-06-18T04:25:20Z] Starting                                      resource="install:k8s"
INFO[2020-06-18T04:25:20Z] Starting                                      resource="create-dir:kubelet.service.d"
INFO[2020-06-18T04:25:20Z] Finishing                                     resource="create-dir:kubelet.service.d"
INFO[2020-06-18T04:25:20Z] Starting                                      resource="install:kubectl"
INFO[2020-06-18T04:25:23Z] Finishing                                     resource="install:kubectl"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="install:kubelet"
INFO[2020-06-18T04:25:23Z] Failed                                        resource="install:kubelet"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="configure:kubernetes-swap-disable"
INFO[2020-06-18T04:25:23Z] Finishing                                     resource="configure:kubernetes-swap-disable"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="configure:kubelet-sysconfig"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="configure:kubelet-sysconfig"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="install:kubeadm"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="install:kubeadm"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="service-init:kubelet"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="service-init:kubelet"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="lock-package:kubernetes"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="lock-package:kubernetes"
INFO[2020-06-18T04:25:23Z] State of Resource 'service-init:kubelet' is Invalid.
Explanation:
{
 "resource": "service-init:kubelet",
 "status": "Invalid",
 "reason": "DependencyInvalid",
 "dependencies": [
  {
   "resource": "configure:kubelet-sysconfig",
   "status": "Invalid",
   "reason": "DependencyInvalid",
   "dependencies": [
    {
     "resource": "install:kubelet",
     "status": "Invalid",
     "reason": "ApplyError",
     "error": "command exited with 1"
    }
   ]
  },
  {
   "resource": "install:kubelet"
  }
 ]
}
INFO[2020-06-18T04:25:23Z] State of Resource 'lock-package:kubernetes' is Invalid.
Explanation:
{
 "resource": "lock-package:kubernetes",
 "status": "Invalid",
 "reason": "DependencyInvalid",
 "dependencies": [
  {
   "resource": "install:kubeadm",
   "status": "Invalid",
   "reason": "DependencyInvalid",
   "dependencies": [
    {
     "resource": "install:kubelet",
     "status": "Invalid",
     "reason": "ApplyError",
     "error": "command exited with 1"
    }
   ]
  },
  {
   "resource": "install:kubelet"
  }
 ]
}
INFO[2020-06-18T04:25:23Z] Failed                                        resource="install:k8s"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="kubeadm:init"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="kubeadm:init"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="install:cni"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="install:cni"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="kubectl:apply:cluster_v1alpha1_cluster.yaml"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="kubectl:apply:cluster_v1alpha1_cluster.yaml"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="kubectl:apply:cluster_v1alpha1_machine.yaml"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="kubectl:apply:cluster_v1alpha1_machine.yaml"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="kubectl:apply:cluster_v1alpha1_machineclass.yaml"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="kubectl:apply:cluster_v1alpha1_machineclass.yaml"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="kubectl:apply:cluster_v1alpha1_machinedeployment.yaml"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="kubectl:apply:cluster_v1alpha1_machinedeployment.yaml"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="kubectl:apply:cluster_v1alpha1_machineset.yaml"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="kubectl:apply:cluster_v1alpha1_machineset.yaml"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="install:configmaps"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="install:configmaps"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="kubectl:apply:machines"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="kubectl:apply:machines"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="kubectl:apply:cluster"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="kubectl:apply:cluster"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="install:addons"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="install:addons"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="install:wks"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="install:wks"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="install:flux:flux-git-deploy-secret"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="install:flux:flux-git-deploy-secret"
INFO[2020-06-18T04:25:23Z] Starting                                      resource="install:flux:main"
INFO[2020-06-18T04:25:23Z] Failing (Bad Upstream Resource)               resource="install:flux:main"
INFO[2020-06-18T04:25:23Z] State of Resource 'install:cni' is Invalid.
Explanation:
{
 "resource": "install:cni",
 "status": "Invalid",
 "reason": "DependencyInvalid",
 "dependencies": [
  {
   "resource": "kubeadm:init",
   "status": "Invalid",
   "reason": "DependencyInvalid",
   "dependencies": [
    {
     "resource": "install:k8s",
     "status": "Invalid",
     "reason": "ApplyError",
     "error": "Apply failed because a child failed",
     "children": [
      {
       "resource": "lock-package:kubernetes",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "install:kubeadm",
         "status": "Invalid",
         "reason": "DependencyInvalid",
         "dependencies": [
          {
           "resource": "install:kubelet",
           "status": "Invalid",
           "reason": "ApplyError",
           "error": "command exited with 1"
          }
         ]
        },
        {
         "resource": "install:kubelet"
        }
       ]
      },
      {
       "resource": "service-init:kubelet",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "configure:kubelet-sysconfig",
         "status": "Invalid",
         "reason": "DependencyInvalid",
         "dependencies": [
          {
           "resource": "install:kubelet"
          }
         ]
        },
        {
         "resource": "install:kubelet"
        }
       ]
      }
     ]
    }
   ]
  }
 ]
}
INFO[2020-06-18T04:25:23Z] State of Resource 'install:addons' is Invalid.
Explanation:
{
 "resource": "install:addons",
 "status": "Invalid",
 "reason": "DependencyInvalid",
 "dependencies": [
  {
   "resource": "kubectl:apply:cluster",
   "status": "Invalid",
   "reason": "DependencyInvalid",
   "dependencies": [
    {
     "resource": "install:configmaps",
     "status": "Invalid",
     "reason": "DependencyInvalid",
     "dependencies": [
      {
       "resource": "kubeadm:init",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "install:k8s",
         "status": "Invalid",
         "reason": "ApplyError",
         "error": "Apply failed because a child failed",
         "children": [
          {
           "resource": "lock-package:kubernetes",
           "status": "Invalid",
           "reason": "DependencyInvalid",
           "dependencies": [
            {
             "resource": "install:kubeadm",
             "status": "Invalid",
             "reason": "DependencyInvalid",
             "dependencies": [
              {
               "resource": "install:kubelet",
               "status": "Invalid",
               "reason": "ApplyError",
               "error": "command exited with 1"
              }
             ]
            },
            {
             "resource": "install:kubelet"
            }
           ]
          },
          {
           "resource": "service-init:kubelet",
           "status": "Invalid",
           "reason": "DependencyInvalid",
           "dependencies": [
            {
             "resource": "configure:kubelet-sysconfig",
             "status": "Invalid",
             "reason": "DependencyInvalid",
             "dependencies": [
              {
               "resource": "install:kubelet"
              }
             ]
            },
            {
             "resource": "install:kubelet"
            }
           ]
          }
         ]
        }
       ]
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_cluster.yaml",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "kubeadm:init"
        }
       ]
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_machine.yaml",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "kubeadm:init"
        }
       ]
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_machineclass.yaml",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "kubeadm:init"
        }
       ]
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_machinedeployment.yaml",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "kubeadm:init"
        }
       ]
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_machineset.yaml",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "kubeadm:init"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "resource": "kubectl:apply:machines",
   "status": "Invalid",
   "reason": "DependencyInvalid",
   "dependencies": [
    {
     "resource": "kubeadm:init"
    },
    {
     "resource": "kubectl:apply:cluster_v1alpha1_cluster.yaml"
    },
    {
     "resource": "kubectl:apply:cluster_v1alpha1_machine.yaml"
    },
    {
     "resource": "kubectl:apply:cluster_v1alpha1_machineclass.yaml"
    },
    {
     "resource": "kubectl:apply:cluster_v1alpha1_machinedeployment.yaml"
    },
    {
     "resource": "kubectl:apply:cluster_v1alpha1_machineset.yaml"
    }
   ]
  }
 ]
}
INFO[2020-06-18T04:25:23Z] State of Resource 'install:wks' is Invalid.
Explanation:
{
 "resource": "install:wks",
 "status": "Invalid",
 "reason": "DependencyInvalid",
 "dependencies": [
  {
   "resource": "kubectl:apply:cluster",
   "status": "Invalid",
   "reason": "DependencyInvalid",
   "dependencies": [
    {
     "resource": "install:configmaps",
     "status": "Invalid",
     "reason": "DependencyInvalid",
     "dependencies": [
      {
       "resource": "kubeadm:init",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "install:k8s",
         "status": "Invalid",
         "reason": "ApplyError",
         "error": "Apply failed because a child failed",
         "children": [
          {
           "resource": "lock-package:kubernetes",
           "status": "Invalid",
           "reason": "DependencyInvalid",
           "dependencies": [
            {
             "resource": "install:kubeadm",
             "status": "Invalid",
             "reason": "DependencyInvalid",
             "dependencies": [
              {
               "resource": "install:kubelet",
               "status": "Invalid",
               "reason": "ApplyError",
               "error": "command exited with 1"
              }
             ]
            },
            {
             "resource": "install:kubelet"
            }
           ]
          },
          {
           "resource": "service-init:kubelet",
           "status": "Invalid",
           "reason": "DependencyInvalid",
           "dependencies": [
            {
             "resource": "configure:kubelet-sysconfig",
             "status": "Invalid",
             "reason": "DependencyInvalid",
             "dependencies": [
              {
               "resource": "install:kubelet"
              }
             ]
            },
            {
             "resource": "install:kubelet"
            }
           ]
          }
         ]
        }
       ]
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_cluster.yaml",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "kubeadm:init"
        }
       ]
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_machine.yaml",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "kubeadm:init"
        }
       ]
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_machineclass.yaml",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "kubeadm:init"
        }
       ]
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_machinedeployment.yaml",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "kubeadm:init"
        }
       ]
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_machineset.yaml",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "kubeadm:init"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "resource": "kubectl:apply:machines",
   "status": "Invalid",
   "reason": "DependencyInvalid",
   "dependencies": [
    {
     "resource": "kubeadm:init"
    },
    {
     "resource": "kubectl:apply:cluster_v1alpha1_cluster.yaml"
    },
    {
     "resource": "kubectl:apply:cluster_v1alpha1_machine.yaml"
    },
    {
     "resource": "kubectl:apply:cluster_v1alpha1_machineclass.yaml"
    },
    {
     "resource": "kubectl:apply:cluster_v1alpha1_machinedeployment.yaml"
    },
    {
     "resource": "kubectl:apply:cluster_v1alpha1_machineset.yaml"
    }
   ]
  }
 ]
}
INFO[2020-06-18T04:25:23Z] State of Resource 'install:flux:main' is Invalid.
Explanation:
{
 "resource": "install:flux:main",
 "status": "Invalid",
 "reason": "DependencyInvalid",
 "dependencies": [
  {
   "resource": "install:flux:flux-git-deploy-secret",
   "status": "Invalid",
   "reason": "DependencyInvalid",
   "dependencies": [
    {
     "resource": "kubectl:apply:cluster",
     "status": "Invalid",
     "reason": "DependencyInvalid",
     "dependencies": [
      {
       "resource": "install:configmaps",
       "status": "Invalid",
       "reason": "DependencyInvalid",
       "dependencies": [
        {
         "resource": "kubeadm:init",
         "status": "Invalid",
         "reason": "DependencyInvalid",
         "dependencies": [
          {
           "resource": "install:k8s",
           "status": "Invalid",
           "reason": "ApplyError",
           "error": "Apply failed because a child failed",
           "children": [
            {
             "resource": "lock-package:kubernetes",
             "status": "Invalid",
             "reason": "DependencyInvalid",
             "dependencies": [
              {
               "resource": "install:kubeadm",
               "status": "Invalid",
               "reason": "DependencyInvalid",
               "dependencies": [
                {
                 "resource": "install:kubelet",
                 "status": "Invalid",
                 "reason": "ApplyError",
                 "error": "command exited with 1"
                }
               ]
              },
              {
               "resource": "install:kubelet"
              }
             ]
            },
            {
             "resource": "service-init:kubelet",
             "status": "Invalid",
             "reason": "DependencyInvalid",
             "dependencies": [
              {
               "resource": "configure:kubelet-sysconfig",
               "status": "Invalid",
               "reason": "DependencyInvalid",
               "dependencies": [
                {
                 "resource": "install:kubelet"
                }
               ]
              },
              {
               "resource": "install:kubelet"
              }
             ]
            }
           ]
          }
         ]
        },
        {
         "resource": "kubectl:apply:cluster_v1alpha1_cluster.yaml",
         "status": "Invalid",
         "reason": "DependencyInvalid",
         "dependencies": [
          {
           "resource": "kubeadm:init"
          }
         ]
        },
        {
         "resource": "kubectl:apply:cluster_v1alpha1_machine.yaml",
         "status": "Invalid",
         "reason": "DependencyInvalid",
         "dependencies": [
          {
           "resource": "kubeadm:init"
          }
         ]
        },
        {
         "resource": "kubectl:apply:cluster_v1alpha1_machineclass.yaml",
         "status": "Invalid",
         "reason": "DependencyInvalid",
         "dependencies": [
          {
           "resource": "kubeadm:init"
          }
         ]
        },
        {
         "resource": "kubectl:apply:cluster_v1alpha1_machinedeployment.yaml",
         "status": "Invalid",
         "reason": "DependencyInvalid",
         "dependencies": [
          {
           "resource": "kubeadm:init"
          }
         ]
        },
        {
         "resource": "kubectl:apply:cluster_v1alpha1_machineset.yaml",
         "status": "Invalid",
         "reason": "DependencyInvalid",
         "dependencies": [
          {
           "resource": "kubeadm:init"
          }
         ]
        }
       ]
      }
     ]
    },
    {
     "resource": "kubectl:apply:machines",
     "status": "Invalid",
     "reason": "DependencyInvalid",
     "dependencies": [
      {
       "resource": "kubeadm:init"
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_cluster.yaml"
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_machine.yaml"
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_machineclass.yaml"
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_machinedeployment.yaml"
      },
      {
       "resource": "kubectl:apply:cluster_v1alpha1_machineset.yaml"
      }
     ]
    }
   ]
  }
 ]
}
ERRO[2020-06-18T04:25:23Z] Apply of Plan failed:
Apply failed because a child failed
INFO[0000] wksctl version 0.8.2-beta.1 is available; please update at https://github.com/weaveworks/wksctl/releases/tag/v0.8.2-beta.1
Error: GetRemoteKubeconfig: failed to retrieve Kubernetes configuration: command exited with 1

Subsequent run:

~/wks-quickstart-firekube$ ./setup.sh
• Using git branch: master
• Using git remote: origin

• Found jk 0.3.0
• Found footloose 0.6.2
• Found ignite 0.7.0
INFO[0000] wksctl version 0.8.2-beta.1 is available; please update at https://github.com/weaveworks/wksctl/releases/tag/v0.8.2-beta.1
• Found wksctl 0.8.1
• Creating footloose manifest
• Creating virtual machines
[sudo] password for rsmieja:
INFO[0000] Docker Image: weaveworks/ignite-centos:firekube-pre3 present locally
INFO[0000] Creating machine: firekube-node0 ...
INFO[0000] Machine firekube-node0 is already created...
INFO[0000] Creating machine: firekube-node1 ...
INFO[0000] Machine firekube-node1 is already created...
• Creating Cluster API manifests
/home/rsmieja/wks-quickstart-firekube/setup.js:114
      privateIP: machine.runtimeNetworks[0].ip,
                                        ^
TypeError: Cannot read property '0' of undefined
    at /home/rsmieja/wks-quickstart-firekube/setup.js:114:41
Module (setup.js) has not been loaded

OS: Ubuntu 20.04 LTS
Processor: Intel
Result of uname -a:

Linux ---- 5.4.0-37-generic #41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Result of kvm-ok:

kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

If I can provide more information that can help reproduce, please let me know.

EDIT: I will also mention I had to manually install ignite v0.7.0 following the official instructions, outside of
the ./setup.sh, due to #58 :

~/wks-quickstart-firekube$ ignite version
Ignite version: version.Info{Major:"0", Minor:"7", GitVersion:"v0.7.0", GitCommit:"0e3459476130fa360fcd058d4cf8a8ef7fdb68a0", GitTreeState:"clean", BuildDate:"2020-06-02T23:22:10Z", GoVersion:"go1.14.2", Compiler:"gc", Platform:"linux/amd64", SandboxImage:version.Image{Name:"weaveworks/ignite", Tag:"v0.7.0", Delimeter:":"}, KernelImage:version.Image{Name:"weaveworks/ignite-kernel", Tag:"4.19.125", Delimeter:":"}}
Firecracker version: v0.21.1
Runtime: containerd

/opt/cni/bin$ ll
total 70468
drwxr-xr-x 2 root root     4096 Jan 22 18:52 ./
drwxr-xr-x 3 root root     4096 Jun 18 04:01 ../
-rwxr-xr-x 1 root root  4159253 Jan 22 18:52 bandwidth*
-rwxr-xr-x 1 root root  4671350 Jan 22 18:52 bridge*
-rwxr-xr-x 1 root root 12116044 Jan 22 18:52 dhcp*
-rwxr-xr-x 1 root root  5945760 Jan 22 18:52 firewall*
-rwxr-xr-x 1 root root  3069556 Jan 22 18:52 flannel*
-rwxr-xr-x 1 root root  4153025 Jan 22 18:52 host-device*
-rwxr-xr-x 1 root root  3614305 Jan 22 18:52 host-local*
-rwxr-xr-x 1 root root  4314508 Jan 22 18:52 ipvlan*
-rwxr-xr-x 1 root root  3205277 Jan 22 18:52 loopback*
-rwxr-xr-x 1 root root  4389532 Jan 22 18:52 macvlan*
-rwxr-xr-x 1 root root  3939867 Jan 22 18:52 portmap*
-rwxr-xr-x 1 root root  4590104 Jan 22 18:52 ptp*
-rwxr-xr-x 1 root root  3392736 Jan 22 18:52 sbr*
-rwxr-xr-x 1 root root  2885430 Jan 22 18:52 static*
-rwxr-xr-x 1 root root  3356497 Jan 22 18:52 tuning*
-rwxr-xr-x 1 root root  4314356 Jan 22 18:52 vlan*

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Broken end user or developer functionality; not working as the developers intended it good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants