openshift / installer

Install an OpenShift 4.x cluster
https://try.openshift.com
Apache License 2.0
1.44k stars 1.39k forks source link

Still waiting for the Kubernetes API debug error #6775

Closed norhther closed 2 months ago

norhther commented 1 year ago

Version

./openshift-install 4.11.0-0.okd-2023-01-14-152430
built from commit b1b244444835f9a3fd2c5e6717db9ba6d18607be
release image quay.io/openshift/okd@sha256:27c99f5b7734f773a7981b9e527417edcda0eee217117632198d64aa33e95c46
release architecture amd64

Platform:

openstack

What happened?

I'm trying to install openshift in a custom environment, with only one floating ip address. What I did was to create a machine in openstack and launch the installer from there. However, I get the debug message repeatedly:

DEBUG Still waiting for the Kubernetes API: Get "https://xxx:6443/version": dial tcp: lookup api.okd-cluster.okd.xxx on xxx: no such host

What you expected to happen?

Properly completion of the installer

How to reproduce it (as minimally and precisely as possible)?

apiVersion: v1
baseDomain: okd.xxx
compute:
- architecture: amd64
  hyperthreading: Enabled
  name: worker
  platform: 
    openstack:
      type: xxx
  replicas: 1
controlPlane:
  architecture: amd64
  hyperthreading: Enabled
  name: master
  platform:
    openstack:
      type: xxx
  replicas: 3
metadata:
  creationTimestamp: null
  name: okd-cluster
networking:
  clusterNetwork:
  - cidr: 10.128.0.0/14
    hostPrefix: 23
  machineNetwork:
  - cidr: 10.0.28.0/24
  networkType: OVNKubernetes
  serviceNetwork:
  - 172.30.0.0/16
platform:
  openstack:
    cloud: openstack
    defaultMachinePlatform:
      type: xxx
    externalDNS: null
    machinesSubnet: xxx
publish: External
pullSecret: '{"auths":{"fake":{"auth":"aWQ6cGFzcwo="}}}'
sshKey: |
  xxx
openshift-bot commented 1 year ago

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

ProtossGP32 commented 1 year ago

/lifecycle frozen

clodaghwalsh17 commented 9 months ago

@norhther did you ever find a solution to this?

affian commented 3 months ago

Excuse the deadposting but I came across similar recently. The keyword here is "lookup" - a DNS issue. I'm using dnsmasq so I put the appropriate entries in /etc/hosts, and referenced it in /etc/dnsmasq.conf. Restart the daemon and bingo!

mandre commented 2 months ago

Just for completeness, and as it was already hinted in this thread, you need to setup DNS records for the api and ingress, as documented here.

These need to be in the form of:

api.<cluster name>.<base domain>.  IN  A  <apiFloatingIP>
*.apps.<cluster name>.<base domain>.  IN  A  <ingressFloatingIP>

I'm closing this issue as the DNS requirement is already properly documented. /close

openshift-ci[bot] commented 2 months ago

@mandre: Closing this issue.

In response to [this](https://github.com/openshift/installer/issues/6775#issuecomment-2340048539): >Just for completeness, and as it was already hinted in this thread, you need to setup DNS records for the api and ingress, as [documented here](https://github.com/openshift/installer/blob/master/docs/user/openstack/README.md#create-api-and-ingress-dns-records). > >These need to be in the form of: >``` >api... IN A >*.apps... IN A >``` > >I'm closing this issue as the DNS requirement is already properly documented. >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.