1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00

54 Commits

Author SHA1 Message Date
Patrick Dillon
89d9849658 vendor: capi v1.11 & openshift/api
go mod vendor
2025-11-11 16:19:45 -05:00
Roman Dobosz
c476567887 Refactor removing loadbalancer in OpenStack.
Currently, the approach for removing OpenStack loadbalancers is to look
for appropriate tag (i.e. openshiftClusterID=<cluster_id>) and then
delete it. Issue with this approach is that no such tags are applied on
the loadbalancer resources, and also there is no such tag in description
field. Hence, deleteLoadBalancer function will give 0 results for
existing loadbalancers, as they have no such tag either in tags nor on
description.

With this patch, deleteLoadBalancer has been refactored to get all the
loadbalancers and filter out that resources which have ClusterID in
description, so that they will be safely deleted.
2025-06-04 12:09:14 +02:00
Pierre Prinetti
844d2d08da deps: Bump Gophercloud to v2.5.0
This dependency bump enables batch security group rule creation in
OpenStack.
2025-02-21 15:01:26 +01:00
Emilien Macchi
f31808f928 vendoring: bump gophercloud, CAPO and deps
* Update go.mod to have CAPO v0.11.1 (latest)
* `go mod tidy && go mod vendor`
2024-11-05 08:07:16 -05:00
Martin André
84dae85ba1 Validate MTU for custom network
Set the minimum MTU to 1380 when deploying on IPv6. This value
corresponds to the minimum MTU for IPv6, which is 1280, and the
ovn-kubernetes overhead, which is 100.
2024-09-11 13:42:19 +02:00
Pierre Prinetti
42e471ee57 openstack: Update Gophercloud to v2 2024-06-18 10:39:56 +02:00
qJkee
28fae3ab86 bump openshift/api 2024-03-07 13:10:03 +04:00
Maysa Macedo
15d219d4ea go: remove imageimport dependency 2024-02-27 08:24:08 -03:00
Michał Dulko
c781171412 Remove support for Kuryr
In 4.15 Kuryr is no longer a supported NetworkType, following its
deprecation in 4.12. This commit removes mentions of Kuryr from the
documentation and code, but also adds validation to prevent
installations from being executed when `networkType` is set to `Kuryr`.
2023-11-14 15:06:19 +01:00
Pierre Prinetti
f2e94913a0 deps: Bump gophercloud to v1.6.0 2023-09-12 10:38:02 +02:00
Pierre Prinetti
f1f5026119 openstack: Bump Gophercloud
Version v1.3.0 contains an improved handling of the bulk deletion of
Swift objects, leading to a faster deprovisioning of clusters.
2023-04-17 09:35:18 +02:00
Pierre Prinetti
a6d7a4b29e openstack: Revert Gophercloud workaround
With the bump to Gophercloud v1.1.1, the library should be able to
handle HTTP status 204 responses without `content-type` without
erroring. The workaround that was in place to force contentful responses
can then be removed.
2022-12-21 17:46:09 +01:00
Martin André
1b5b8edcac Bump gophercloud
Bump gophercloud/gophercloud and gophercloud/utils to get
https://github.com/gophercloud/utils/pull/169 and latest improvements to
gophercloud.
2022-03-16 08:40:26 +01:00
staebler
f79f00a14d vendor: update to remove terraform and providers
* Replace terraform modules with github.com/hashicorp/terraform-exec.
* Remove all terraform providers.
* Remove all unneeded replaces.
* Tidy up the replace stanzas so that it is more clear why each replace is needed.
* Remove and re-create all indirect requires to clean up ones that are
  no longer needed.
2022-02-21 10:50:19 -05:00
Kenny Woodson
9433c308a3 Vendor update: remove dependencies on the machine-api-operator by updating ovirt and openstack. Remove AliyunContainerService/ to openshift/. 2021-11-24 17:52:14 -05:00
Yaakov Selkowitz
7c73eab154 Revendor with golang 1.17 2021-11-24 02:02:14 -05:00
Emilien Macchi
f8a383b6d4 Bug 1956208: openstack: add validation for volume types
When an user wants to deploy with rootVolume, they need to specify
a volume type.
We already checked that the volume type was set but we didn't check that
the type was actually existing.

With this patch, we now check that the type exists.

If the Volume Type doesn't exist, it'll show this error message:

```
FATAL failed to fetch Metadata: failed to load asset "Install Config": compute[0].platform.openstack.rootVolume.type.type: Invalid value: "wrong": Volume Type either does not exist in this cloud, or is not available
```

Note: this patch also adds test coverage when the type is an empty
string, which wasn't done before.
2021-05-05 15:46:54 -04:00
Mike Fedosin
9d5e95b304 Bump github.com/gophercloud/gophercloud 2021-04-15 16:30:46 +02:00
Martin André
5253144ee9 Bug 1925216: Bump gophercloud utils
Bump gophercloud/utils to include
https://github.com/gophercloud/utils/pull/149

This commit ensures gophercloud keeps working fine when using a custom
CA cert and Proxy at the same time.
2021-03-24 08:29:44 +01:00
Emilien Macchi
01ad3d2b28 Bug 1937460: Update gophercloud module from master
We found a workaround in gophercloud to unmarschal json if "reserved" is
a string, we deal with it in the gophercloud library until this is
solved in OpenStack Neutron:
https://review.opendev.org/c/openstack/neutron/+/779878

BZ#1937460
Signed-off-by: Emilien Macchi <emilien@redhat.com>
2021-03-11 15:55:51 -05:00
OpenShift Merge Robot
2b8f47bc60 Merge pull request #4462 from shiftstack/az/check
openstack: refactor getZones() to use gophercloud/utils
2021-02-17 07:15:31 -05:00
Pierre Prinetti
567f66058c Upgrade OpenStack dependencies
* github.com/gophercloud/gophercloud
* github.com/gophercloud/utils
* github.com/terraform-provider-openstack/terraform-provider-openstack

Also adjust a call to servergroup.List to comply with the new function
signature[1].

[1]: gophercloud/gophercloud#2070

Signed-off-by: Emilien Macchi <emilien@redhat.com>
2021-02-16 11:47:55 -05:00
Mike Fedosin
38f03ff490 Bug 1786314: bump gophercloud/utils
This patch introduces recent optimizations for tls config generation.
1. Now the library ignores the fact the CA certificate can be broken
(if it can't parse it for some reason, it just leaves an empty string
without a notice). From now we raise an error in this case.
2. It tries to prevent some obvious formatting errors in the certificate
like leading and trailing spaces, additional new lines etc.
2020-12-15 17:58:29 +01:00
Emilien Macchi
791023edd6 openstack: refactor getZones() to use gophercloud/utils
A new helper was added into gophercloud/utils to list the available
availability zones.

Switch the getZones() function in cloudinfo to use it, so we don't
have the carry that logic in the installer anymore.

Related bug: https://issues.redhat.com/browse/OSASINFRA-1848

Signed-off-by: Emilien Macchi <emilien@redhat.com>
2020-12-08 09:22:10 -05:00
Emilien Macchi
94aa7d60da [vendoring] update gophercloud/utils & terraform/provider-openstack
In order to get a change from gophercloud-utils (TLS options when
creating a service, see https://github.com/gophercloud/utils/pull/131),
we also need to update terraform-provider-openstack since mutexkv and
hashcode were moved to their own packages in gophercloud/utils and
these modules need to be updated together or we end-up with an error
like:

`plugin.terraform-provider-openstack: panic: assignment to entry in nil
map`

Signed-off-by: Emilien Macchi <emilien@redhat.com>
2020-12-07 10:54:36 -05:00
Mike Fedosin
58e8e6e4bb Add github.com/gophercloud/utils/openstack/imageservice to vendors 2020-10-14 21:41:33 +02:00
Pierre Prinetti
facd256968 openstack: Upgrade Gophercloud utils 2020-09-29 10:31:41 +02:00
Pierre Prinetti
b246fd4bae openstack: Upgrade the Terraform provider 2020-09-29 10:31:40 +02:00
Kiran Thyagaraja
17be09f2f0 baremetal: Add diagnostic error message for ironic terraform errors
This PR enables the installer to track certain ironic terraform provider error messages and translates it into easy-to-understand errors output by the installer.

Examples:
Terraform errors such as "Error: could not contact Ironic API: timeout reached" and "Error: could not inspect: could not inspect node, node is currently 'inspect failed', last error was 'timeout reached while inspecting the node" will each get translated to their corresponding user-friendly error messages.
2020-07-29 23:13:46 -05:00
Mike Fedosin
267c59286f Bump terraform-provider-openstack
To incorporate latest changes from gophercloud, we have to bump
the terraform plugin as well.
2020-07-13 12:20:19 +02:00
Mike Fedosin
aaff33ec09 Bump gophercloud to 0.11.0
Gophercloud 0.10.0 contains a breaking change, where all IDFromName
functions were moved to a standalone gophercloud/utils repo:
https://github.com/gophercloud/gophercloud/blob/master/CHANGELOG.md#0100-april-12-2020
This PR also addresses this change.
2020-07-13 12:16:33 +02:00
Mike Fedosin
6f7471edb5 Bump gophercloud 2020-02-26 14:02:25 +01:00
Christian Glombek
d02d3f048a Update vendor 2020-02-14 00:08:54 +01:00
Mike Fedosin
bc4e0e53bc Bump Ignition and Gophercloud
The newest version includes important features, like HTTP headers support,
that are required for the successful installation of OpenShift on OpenStack
without Swift.
2020-01-22 17:15:05 +01:00
Mike Fedosin
35036c7430 Update github.com/gophercloud/utils
New patches contain fixes we need for correct clouds.yaml generation
in the installer.
2019-12-09 11:02:22 +01:00
Fabiano Franz
13ea11b2d1 Update github.com/gophercloud/utils 2019-12-03 11:51:55 -03:00
Emilio Garcia
d15c43eb13 Update Dependancies: Gophercloud Objectstore, Kubernetes rand 2019-10-30 13:14:28 -04:00
Mike Fedosin
8c7818254c Add gophercloud images to the vendor list 2019-10-08 14:39:37 +02:00
Mike Fedosin
73b7cac4b1 Bump github.com/gophercloud/gophercloud 2019-10-08 14:39:37 +02:00
Martin André
2eb765b5e5 Vendor CAPO with Boot From Volume Support 2019-09-25 23:53:32 -04:00
Mike Fedosin
3f2c3a0eba OpenStack: remove region from install config
This parameter is not used by the installer and completely ignored
during the installation, so it just confuses users and should be removed.

The real region value is taken from clouds.yaml file.
2019-09-11 10:19:22 +02:00
Mike Fedosin
318dff7f80 OpenStack: add blockstorage from gophercloud to the vendor list 2019-09-08 11:40:21 +02:00
Maysa Macedo
fb1cc0d334 OpenStack: vendor subnet pools deps
This commit pulls in the latest gophercloud
support for openstack subnet pools, and enables
interaction with those resources.
2019-07-08 18:16:56 -04:00
Maysa Macedo
bf64e3de1a OpenStack: vendor loadbalancer v2 deps
This pulls in the latest gophercloud support for
openstack loadbalancer, and so enables interaction
with those resources.
2019-06-27 17:04:20 +02:00
ji chen
9e616872bc update gophercloud
gophercloud for openstack has a set of update and bug fix
while the current code last update is 8 months before.

those 2 commands has been executed:
dep ensure -update github.com/gophercloud/utils
dep ensure -update github.com/gophercloud/gophercloud
2019-06-20 06:45:31 +00:00
Flavio Percoco
bd3a025d2b vendor: update gophercloud/utils 2019-02-13 09:25:29 +01:00
Abhinav Dahiya
255566fa91 types/openstack: drop GetImageNames method
With baseimage user query removed from TUI, this function is no longer required.

This also
- drops the vendored files
- updates the mocks using `hack/go-genmock.sh`
2019-01-11 16:16:52 -08:00
Antoni Segura Puimedon
6e119cbfa4 openstack: vendor networking v2 ext and trunk deps
Signed-off-by: Antoni Segura Puimedon <celebdor@gmail.com>
2019-01-08 17:10:49 +01:00
Russell Bryant
f57c7fa28d openstack: vendor gophercloud floating ip support. 2018-12-17 20:48:33 +00:00
Steven Hardy
b2ee47f81d vendor: add gophercloud imageservice 2018-11-30 17:03:56 +00:00