openshift / installer

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

Unable to create OKD cluster on openstack without router #8494

Closed alexanderbystrom closed 2 weeks ago

alexanderbystrom commented 3 months ago

Version

$ openshift-install version
./openshift-install 4.14.0-0.okd-2023-11-14-101924
built from commit cebc8ab0fd6f8b66197f5a4e058ea4913dbb587c
release image quay.io/openshift/okd@sha256:72d40c51e7c4d1b9c31e9b0d276d045f1b2b93def5ecee49186df856d40bcb5c
release architecture amd64

Platform:

Openstack

What happened?

When trying to install OKD in openstack with router quota set to 0 (router extension not enabled) the installer fails on the quota check. When you install a cluster without floating-ips and without a externalNetwork the installer should not create a router and the quota check is unnecessary.

Output from .openshift_install.log time="2024-05-29T16:22:54+02:00" level=debug msg=" Generating Platform Quota Check..." time="2024-05-29T16:22:54+02:00" level=fatal msg="failed to fetch Cluster: failed to fetch dependency of \"Cluster\": failed to generate asset \"Platform Quota Check\": error(MissingQuota): Router is not available because the required number of resources (1) is more than the limit of 0"

What you expected to happen?

The installer should not care about the quota of routers since it's not supposed to create one.

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

  1. Have 0 routers in openstack qouta
  2. Run openshift-install with platform.openstack.externalNetwork not set

Ref

https://docs.okd.io/4.14/installing/installing_openstack/installing-openstack-installer-custom.html#installation-osp-accessing-api-no-floating_installing-openstack-installer-custom

openshift-bot commented 3 weeks 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

mandre commented 2 weeks ago

Hey @alexanderbystrom, not sure if you figured this out already but in order to install without the installer creating a router, you need to provide it with an existing (and usable) subnet:

https://github.com/openshift/installer/blob/release-4.14/docs/user/openstack/customization.md#custom-subnets

This should bypass the router quota check.

I'm closing this issue as I think it works as intended. Feel free to reopen if you're still having issues even with using custom subnet. /close

openshift-ci[bot] commented 2 weeks ago

@mandre: Closing this issue.

In response to [this](https://github.com/openshift/installer/issues/8494#issuecomment-2340118537): >Hey @alexanderbystrom, not sure if you figured this out already but in order to install without the installer creating a router, you need to provide it with an existing (and usable) subnet: > >https://github.com/openshift/installer/blob/release-4.14/docs/user/openstack/customization.md#custom-subnets > >This should bypass the router quota check. > >I'm closing this issue as I think it works as intended. Feel free to reopen if you're still having issues even with using custom subnet. >/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.