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

Installation on Bare Metal fail with an obscure URL host not found. #339

Open
lbrigman124 opened this issue Nov 4, 2022 · 0 comments
Open

Comments

@lbrigman124
Copy link

lbrigman124 commented Nov 4, 2022

When attempting to create a cluster on Centos 7 hosts that were previously created; the installation fails on this URL:
ERRO[2022-11-03T15:23:21-07:00] Failed resource="install:cni" Get "https://cloud.weave.works/k8s/net?k8s-version=Q2xpZW50IFZlcnNpb246IHZlcnNpb24uSW5mb3tNYWpvcjoiMSIsIE1pbm9yOiIxOCIsIEdpdFZlcnNpb246InYxLjE4LjE1IiwgR2l0Q29tbWl0OiI3M2RkNWM4NDA2NjJiYjA2NmExNDZkMDg3MTIxNjMzMzE4MWY0YjY0IiwgR2l0VHJlZVN0YXRlOiJjbGVhbiIsIEJ1aWxkRGF0ZToiMjAyMS0wMS0xM1QxMzoyMjo0MVoiLCBHb1ZlcnNpb246ImdvMS4xMy4xNSIsIENvbXBpbGVyOiJnYyIsIFBsYXRmb3JtOiJsaW51eC9hbWQ2NCJ9ClNlcnZlciBWZXJzaW9uOiB2ZXJzaW9uLkluZm97TWFqb3I6IjEiLCBNaW5vcjoiMTgiLCBHaXRWZXJzaW9uOiJ2MS4xOC4xNSIsIEdpdENvbW1pdDoiNzNkZDVjODQwNjYyYmIwNjZhMTQ2ZDA4NzEyMTYzMzMxODFmNGI2NCIsIEdpdFRyZWVTdGF0ZToiY2xlYW4iLCBCdWlsZERhdGU6IjIwMjEtMDEtMTNUMTM6MTQ6MDVaIiwgR29WZXJzaW9uOiJnbzEuMTMuMTUiLCBDb21waWxlcjoiZ2MiLCBQbGF0Zm9ybToibGludXgvYW1kNjQifQo=&env.IPALLOC_RANGE=192.168.0.0/16": dial tcp: lookup cloud.weave.works on 10.109.180.1:53: no such host
This is using
wksctl version
0.10.2

It seems to be trying to reach out to check to validate the internal IP range of the cluster. The internal range of the cluster
came from the default values in the example files that were used as a basis for building the cluster.
I had to disable the gpg_repo_check to get things to move past the base component installation.

`cluster.yaml
kind: Cluster
metadata:
name: example
spec:
clusterNetwork:
pods:
cidrBlocks:
- 192.168.0.0/16
services:
cidrBlocks:
- 10.96.0.0/12
infrastructureRef:
apiVersion: cluster.weave.works/v1alpha3
kind: ExistingInfraCluster
name: example

apiVersion: cluster.weave.works/v1alpha3
kind: ExistingInfraCluster
metadata:
name: example-provider
spec:
user: mdc
controlPlaneMachineCount: "1"
workerMachineCount: "1"
cri:
kind: docker
package: docker-ce
version: 20.10.11
kubernetesVersion: 1.18.15
os:
files:
- destination: /etc/yum.repos.d/kubernetes.repo
source:
configmap: repo
contents: |
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
exclude=kube*
key: kubernetes.repo
- destination: /etc/yum.repos.d/docker-ce.repo
source:
configmap: repo
contents: |
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/centos/7/\$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg

      [docker-ce-stable-debuginfo]
      name=Docker CE Stable - Debuginfo \$basearch
      baseurl=https://download.docker.com/linux/centos/7/debug-\$basearch/stable
      enabled=0
      gpgcheck=1
      gpgkey=https://download.docker.com/linux/centos/gpg

      [docker-ce-stable-source]
      name=Docker CE Stable - Sources
      baseurl=https://download.docker.com/linux/centos/7/source/stable
      enabled=0
      gpgcheck=1
      gpgkey=https://download.docker.com/linux/centos/gpg

      [docker-ce-edge]
      name=Docker CE Edge - \$basearch
      baseurl=https://download.docker.com/linux/centos/7/\$basearch/edge
      enabled=0
      gpgcheck=1
      gpgkey=https://download.docker.com/linux/centos/gpg

      [docker-ce-edge-debuginfo]
      name=Docker CE Edge - Debuginfo \$basearch
      baseurl=https://download.docker.com/linux/centos/7/debug-\$basearch/edge
      enabled=0
      gpgcheck=1
      gpgkey=https://download.docker.com/linux/centos/gpg

      [docker-ce-edge-source]
      name=Docker CE Edge - Sources
      baseurl=https://download.docker.com/linux/centos/7/source/edge
      enabled=0
      gpgcheck=1
      gpgkey=https://download.docker.com/linux/centos/gpg

      [docker-ce-test]
      name=Docker CE Test - \$basearch
      baseurl=https://download.docker.com/linux/centos/7/\$basearch/test
      enabled=0
      gpgcheck=1
      gpgkey=https://download.docker.com/linux/centos/gpg

      [docker-ce-test-debuginfo]
      name=Docker CE Test - Debuginfo \$basearch
      baseurl=https://download.docker.com/linux/centos/7/debug-\$basearch/test
      enabled=0
      gpgcheck=1
      gpgkey=https://download.docker.com/linux/centos/gpg

      [docker-ce-test-source]
      name=Docker CE Test - Sources
      baseurl=https://download.docker.com/linux/centos/7/source/test
      enabled=0
      gpgcheck=1
      gpgkey=https://download.docker.com/linux/centos/gpg

      [docker-ce-nightly]
      name=Docker CE Nightly - \$basearch
      baseurl=https://download.docker.com/linux/centos/7/\$basearch/nightly
      enabled=0
      gpgcheck=1
      gpgkey=https://download.docker.com/linux/centos/gpg

      [docker-ce-nightly-debuginfo]
      name=Docker CE Nightly - Debuginfo \$basearch
      baseurl=https://download.docker.com/linux/centos/7/debug-\$basearch/nightly
      enabled=0
      gpgcheck=1
      gpgkey=https://download.docker.com/linux/centos/gpg

      [docker-ce-nightly-source]
      name=Docker CE Nightly - Sources
      baseurl=https://download.docker.com/linux/centos/7/source/nightly
      enabled=0
      gpgcheck=1
      gpgkey=https://download.docker.com/linux/centos/gpg
    key: docker-ce.repo
- destination: /tmp/cloud-google-com.gpg.b64
  source:
    configmap: repo
    contents: |
      mQENBFUd6rIBCAD6mhKRHDn3UrCeLDp7U5IE7AhhrOCPpqGF7mfTemZYHf/5JdjxcOxoSFlK7zwm
      Fr3lVqJ+tJ9L1wd1K6P7RrtaNwCiZyeNPf/Y86AJ5NJwBe0VD0xHTXzPNTqRSByVYtdN94NoltXU
      YFAAPZYQls0x0nUD1hLMlOlC2HdTPrD1PMCnYq/NuL/Vk8sWrcUt4DIS+0RDQ8tKKe5PSV0+Pnma
      JvdF5CKawhh0qGTklS2MXTyKFoqjXgYDfY2EodI9ogT/LGr9Lm/+u4OFPvmN9VN6UG+s0DgJjWvp
      bmuHL/ZIRwMEn/tpuneaLTO7h1dCrXC849PiJ8wSkGzBnuJQUbXnABEBAAG0QEdvb2dsZSBDbG91
      ZCBQYWNrYWdlcyBBdXRvbWF0aWMgU2lnbmluZyBLZXkgPGdjLXRlYW1AZ29vZ2xlLmNvbT6JAT4E
      EwECACgFAlUd6rICGy8FCQWjmoAGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEDdGwginMXsP
      cLcIAKi2yNhJMbu4zWQ2tM/rJFovazcY28MF2rDWGOnc9giHXOH0/BoMBcd8rw0lgjmOosBdM2JT
      0HWZIxC/Gdt7NSRA0WOlJe04u82/o3OHWDgTdm9MS42noSP0mvNzNALBbQnlZHU0kvt3sV1Ysnrx
      ljoIuvxKWLLwren/GVshFLPwONjw3f9Fan6GWxJyn/dkX3OSUGaduzcygw51vksBQiUZLCD2Tlxy
      r9NvkZYTqiaWW78L6regvATsLc9L/dQUiSMQZIK6NglmHE+cuSaoK0H4ruNKeTiQUw/EGFaLecay
      6Qy/s3Hk7K0QLd+gl0hZ1w1VzIeXLo2BRlqnjOYFX4CwAgADmQENBFrBaNsBCADrF18KCbsZlo4N
      jAvVecTBCnp6WcBQJ5oSh7+E98jX9YznUCrNrgmeCcCMUvTDRDxfTaDJybaHugfba43nqhkbNpJ4
      7YXsIa+YL6eEE9emSmQtjrSWIiY+2YJYwsDgsgckF3duqkb02OdBQlh6IbHPoXB6H//b1PgZYsom
      B+841XW1LSJPYlYbIrWfwDfQvtkFQI90r6NknVTQlpqQh5GLNWNYqRNrGQPmsB+NrUYrkl1nUt1L
      RGu+rCe4bSaSmNbwKMQKkROE4kTiB72DPk7zH4Lm0uo0YFFWG4qsMIuqEihJ/9KNX8GYBr+tWgyL
      ooLlsdK3l+4dVqd8cjkJM1ExABEBAAG0QEdvb2dsZSBDbG91ZCBQYWNrYWdlcyBBdXRvbWF0aWMg
      U2lnbmluZyBLZXkgPGdjLXRlYW1AZ29vZ2xlLmNvbT6JAT4EEwECACgFAlrBaNsCGy8FCQWjmoAG
      CwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEGoDCyG6B/T78e8H/1WH2LN/nVNhm5TS1VYJG8B+
      IW8zS4BqyozxC9iJAJqZIVHXl8g8a/Hus8RfXR7cnYHcg8sjSaJfQhqO9RbKnffiuQgGrqwQxuC2
      jBa6M/QKzejTeP0Mgi67pyrLJNWrFI71RhritQZmzTZ2PoWxfv6b+Tv5v0rPaG+ut1J47pn+kYgt
      UaKdsJz1umi6HzK6AacDf0C0CksJdKG7MOWsZcB4xeOxJYuy6NuO6KcdEz8/XyEUjIuIOlhYTd0h
      H8E/SEBbXXft7/VBQC5wNq40izPi+6WFK/e1O42DIpzQ749ogYQ1eodexPNhLzekKR3XhGrNXJ95
      r5KO10VrsLFNd8KwAgAD
    key: cloud-google-com.gpg.b64
- destination: /etc/docker/daemon.json
  source:
    configmap: docker
    contents: |
      {
        "log-driver": "json-file",
        "log-opts": {
          "max-size": "100m"
        },
        "exec-opts": [
          "native.cgroupdriver=cgroupfs"
        ]
      }
    key: daemon.json

`

machines.yaml:
`apiVersion: cluster.x-k8s.io/v1alpha3
kind: Machine
metadata:
labels:
set: master
name: master-1
spec:
clusterName: example
bootstrap: {}
version: 1.18.15
infrastructureRef:
apiVersion: cluster.weave.works/v1alpha3
kind: ExistingInfraMachine
name: master-1

apiVersion: cluster.weave.works/v1alpha3
kind: ExistingInfraMachine
metadata:
name: master-1
spec:
private:
address: 10.109.181.185
port: 22
public:
address: 10.109.181.185
port: 22

apiVersion: cluster.x-k8s.io/v1alpha3
kind: Machine
metadata:
labels:
set: worker
name: worker-1
spec:
clusterName: example
bootstrap: {}
version: 1.18.15
infrastructureRef:
apiVersion: cluster.weave.works/v1alpha3
kind: ExistingInfraMachine
name: worker-1

apiVersion: cluster.weave.works/v1alpha3
kind: ExistingInfraMachine
metadata:
name: worker-1
spec:
private:
address: 10.109.181.169
port: 22
public:
address: 10.109.181.169
port: 22
`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant