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

97 Commits

Author SHA1 Message Date
Roman Dobosz
7ec4cdfb39 Make swift containers removal not fatal for UPI.
When there is OpenStack deployment, which doesn't have swift services,
or there are no containers used at all, listing them will fail the
playbook and leave exit code other than 0, which may interrupt CI.

With this commit, errors from listing containers will be ignored, which
will cover both cases.
2025-05-20 14:05:11 +02:00
openshift-merge-bot[bot]
929f21c3dc Merge pull request #8830 from shiftstack/openstack-install-from-repo
OCPBUGS-30811: OpenStack: Install CI dependencies from rpm
2024-09-11 21:51:43 +00:00
Martin André
1064621394 OCPBUGS-39402: Fix IPv6 security group rule for schedulable master
There was a typo and we were trying to match an IPv6 network for remote
IP prefix instead of an IPv6 one.
2024-09-03 15:54:48 +02:00
Martin André
e16528494b Drop ansible-utils
Ansible utils we get from the openstack-17-for-rhel-9-rpms is too old
(version 2.3.0-2.el9ost) and doesn't have any of the needed filters
added in v2.5.
2024-09-03 10:27:07 +02:00
Martin André
2d8261c648 OCPBUGS-39285: Fix var_files syntax to work on older version of ansible
On ansible-core 2.14 and below, `var_files` chokes on missing file. This
is no longer the case with ansible-core 2.15. We need a different
strategy so that ansible ignores non-existent files.
2024-08-31 09:57:06 +02:00
Roman Dobosz
aae81ab501 OCPBUGS-33973: Openstack UPI - Reintroduce unique resource names.
We experienced issues caused by network resources created with the same
name, which makes ansible playbooks to behave differently.

Due to fact, that there is not yet OpenShift infraID accessible on the
stage of creating network resources, there is a need to create
deployment unique identifier in some other way. This patch implements
generating such identifier independent from OpenShift deployment id.

Co-authored-by: Maysa De Macedo Souza <maysa.macedo95@gmail.com>
2024-07-09 09:32:52 +02:00
Roman Dobosz
68aa7e5131 OCPBUGS-27844: Fix task for attaching IPv6 subnet to router 2024-03-25 09:23:07 +01:00
Maysa Macedo
8d334f05dd OpenStack: enable 30000:32767 nodePort IPv6 traffic
To make nodePort type Service work fine we need to enable
the well known 30000:32767 traffic range.
2024-03-21 12:35:59 -03:00
Roman Dobosz
39f4d26d92 OCPBUGS-25132: Fixes for the OpensStack UPI playbooks.
This commit changes `ether_type` field to `ethertype` so it will not
break on older ansible openstack collections.
Also, fixed condition for IPv6 block.
2023-12-13 11:40:00 +01:00
openshift-merge-bot[bot]
55c9de4e6f Merge pull request #7727 from shiftstack/add-support-byon-dualstack-upi
OSASINFRA-3261: OpenStack: support dualstack in UPI
2023-12-06 07:12:43 +00:00
Maysa Macedo
5acf3c1f24 OpenStack: remove generation of trunks name
Since Kuryr removal we don't need to generate the trunks
name anymore. This commit removes it.
2023-11-27 15:06:25 -03:00
Roman Dobosz
792a0cf79e OpenStack: Determine dualstack installation by value
Check os_subnet6 instead of os_subnet6_range to determine dual-stack
installation in UPI playbooks.
2023-11-27 14:12:01 -03:00
Maysa Macedo
3de486e441 OpenStack: create dualstack Ports for the Servers in UPI
This commit adds tasks to create the Servers Ports with
the dualstack network and also include the addresses of the
API and ingress dualstack Ports to the allowed address pairs.
2023-11-27 14:12:01 -03:00
Roman Dobosz
a81f744eb1 OpenStack: Add dualstack related tasks for creating network resources.
Also introducing update-network-resources.yaml playbook for tagging user
defined resources.
2023-11-27 14:12:01 -03:00
Roman Dobosz
2b07d2c7f1 OpenStack: UPI move resource names to inventory
OpenStack network related resource names which was defined in
common.ymal need to be moved to inventory.yaml, so the user will have a
chance to change them before running the network.yaml playbook. This is
needed as we will not have infraId to be added as part of the resource
names.
2023-11-27 14:11:56 -03:00
Roman Dobosz
20651acde8 OpenStack: Improve security groups playbook.
All the IPv6 security group related tasks has been moved to dedicated
block. There was added IPv6 rules for the master security groups in case
masters are set to be scheduable. And finally, fixed conditions for IPv6
tasks.
2023-11-23 11:25:13 -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
openshift-ci[bot]
c59a8249f3 Merge pull request #7576 from shiftstack/upi-compact-clusters
OCPBUGS-20403: OpenStack: add SG rules for compact clusters on UPI
2023-11-01 17:28:31 +00:00
Maysa Macedo
560e318f22 OpenStack: add SG rules for compact clusters on UPI
Compact clusters have been supported for a while in IPI.
To also allow compact clusters on UPI, the security group rules
for UPI should be adapted enabling the same ingress traffic
that is enabled for workers.
2023-10-29 23:01:09 -03:00
openshift-ci[bot]
5d0755fe94 Merge pull request #7552 from shiftstack/upi-ds
openstack: dual stack UPI - create security group rules for IPv6
2023-10-24 18:29:38 +00:00
Roman Dobosz
d2434f526a openstack: dual stack UPI - create security group rules for IPv6.
OSASINFRA-3142
2023-10-24 11:30:07 +02:00
Michał Dulko
5055de718a OpenStack: Remove NodePorts range 0.0.0.0/0 rules
With openshift/cluster-cloud-controller-manager-operator#264 we should
no longer need the SG rules opening whole NodePorts range by default.
cloud-provider-openstack will manage this on its own now.

We still need to keep the rules opening the traffic inside the cluster
to make sure traffic redirections and regular NodePort services work.
2023-08-16 18:17:26 +02:00
Emilien Macchi
aa258c01ab openstack/upi: add missing modules namespaces 2023-07-28 13:08:18 -04:00
Emilien Macchi
c27de8e766 Update openstack/Dockerfile.ci for ansible-core
Ansible 2.9 is going EOL later this year, we need to use ansible-core
and until we get RPMs for openstack collections, we'll install them from
source.
2023-07-21 16:12:16 -04:00
Martin André
1a43a7ca39 OCPBUGS-1226: OpenStack UPI: Create server group for Computes
For consistency with IPI, and so that the MachineSet documentation works
the same for both installation methods, we should create a server group
for Compute nodes.

The server group is named `<infra-ID>-worker`, and uses the
`soft-anti-affinity`, similar to what IPI does.
2022-09-13 15:06:59 +02:00
Pierre Prinetti
ebea28a1d1 OpenStack UPI: Allow setting external DNS
Akin to `install-config.yaml`'s `platform.openstack.externalDNS`, add a
new `os_external_dns` property of the UPI inventory to allow setting up
external DNS resolvers to the machines' subnet.
2022-07-13 12:09:50 +02:00
atiratree
a7040d4004 Revert "open cluster-policy-controller ports for metrics"
This reverts commit 2636aef6cd.
2021-12-06 15:13:52 +01:00
atiratree
2636aef6cd open cluster-policy-controller ports for metrics 2021-09-29 17:32:51 +02:00
Michał Dulko
bb4ff28b04 OpenStack UPI: Open 0.0.0.0/0 on NodePorts
This is to make sure that with OVN LBs we accept traffic from outside
the cluster into a LoadBalancer service.
2021-07-06 15:11:02 +02:00
Martin André
c2680c5220 Bug 1946506: Remove security group rules for mdns
Bootstrapping no longer uses mdns for node resolution, we can remove the
security group rules for mdns.

These rules where only defined for OpenStack plaform. This commit
removes the rules for both UPI and IPI.
2021-04-06 11:40:55 +02:00
OpenShift Merge Robot
3763bbb58a Merge pull request #4659 from shiftstack/bz/1873079
Bug 1873079: openstack: restrict SSH to machineNetwork CIDR
2021-02-27 07:41:03 +01:00
OpenShift Merge Robot
e7fea15614 Merge pull request #4375 from gyohuangxin/openstack-upi-server-group-version
Bug 1910067: openstack UPI: Set the API microversion when operating openstack server groups
2021-02-22 07:32:31 -05:00
Emilien Macchi
57176fdbc2 Bug 1873079: openstack: restrict SSH to machineNetwork CIDR
TL;DR: SSH shouldn't be exposed to the public by default and if an
operator explicitly wants it, they should do it by modifying the
security group on day 2.

Reasons to not open SSH to all networks:

* SSH to an OCP cluster should be done only by advanced operators and
  shouldn't be encouraged, therefore not open by default that easily. Instead, an experienced operator should make configuration changes via `machineconfig` objects.

* Operators who know what they do should reach the nodes from a secure
  network (e.g. provider network or tenant network, ie internal). Not
  from a public network (e.g. Internet or any public faced networked).

* Other cloud providers don't allow SSH from 0.0.0.0/0, we shouldn't be
  the one doing it.

* Running `oc debug` doesn't require SSH to be open from the client.

Signed-off-by: Emilien Macchi <emilien@redhat.com>
2021-02-16 11:23:05 -05:00
Martin André
504c7abcdc OpenStack UPI: Tag instances with cluster ID
These need to have the openshiftClusterID property to properly identify
them during cluster destroy.
2021-02-05 14:37:34 +01:00
Martin André
b9330d50bd OpenStack UPI: Tag external router
We want to tag the external router even when not using Kuryr to properly
identify it during cluster destroy.
2021-02-05 14:35:31 +01:00
gyohuangxin
37da2c479d [OpenStack UPI] Set uniform os-api-version when operating openstack server group. 2021-02-05 17:58:32 +08:00
Mark Gray
618d4ef474 Bug 1916373: upi: allow IPsec ports 2021-01-14 15:31:30 -05:00
ylpan
828a092ebe OpenStack UPI: Custom API and Ingress vip addresses
This feature allows the customer to select fixed IP addresses
that they can reach the API and apps ingress at in their OpenShift cluster.
Note that the default values have not changed. APIVIP still defaults
to the 5 on the machineNetwork, and IngressVIP still defaults to the 7.
2020-10-12 09:09:24 +08:00
Pierre Prinetti
7df6205d99 openstack UPI: Allow for no FIP or router
If the external network is not provided, the router will not be created
and external connectivity will be a respopnsibility of the operator.

Floating IPs will be set if available, on an individual basis. The
external network is a requirement for FIPs; if not provided, the
playbooks will error.

The bootstrap FIP is now required to be created manually like the other
FIPs.
2020-10-02 10:38:43 +02:00
OpenShift Merge Robot
10465ce9b1 Merge pull request #4093 from shiftstack/multi_subnet
Bug 1877854: OpenStack: Support multiple subnets
2020-09-22 11:48:53 +00:00
Adolfo Duarte
6d8d815528 OpenStack: Support multiple subnets
- Flag primary cluster subnet.
- Attaches bootstrap floating ip to correct subnet.
2020-09-17 12:37:38 -07:00
OpenShift Merge Robot
310d5397c6 Merge pull request #3755 from shiftstack/os_upi_fipless
Bug 1878758: openstack UPI: Optional floating IPs
2020-09-14 17:46:33 -04:00
Luis Tomas Bolivar
dfe37d65c3 Ensure proper tagging of compute nodes ports
Wrong tagging of compute node parent ports make kuryr not able
to find the precreated ports, thus breaking the kuryr ports pool
functionality
2020-08-31 09:13:37 +02:00
Pierre Prinetti
5b45386345 openstack UPI: Optional floating IPs
Add the option to disable the use of floating IPs.
2020-07-30 13:23:59 +02:00
Pierre Prinetti
57d8388a21 OpenStack UPI: Make down-containers idempotent
Only attempt deleting containers if a container is found.
2020-06-19 14:40:06 +02:00
Pierre Prinetti
cd61239761 openstack UPI: prune containers
Add a `down-` playbook to the OpenStack UPI documentation to delete any
remaining Swift container named after the cluster.
2020-06-11 12:45:47 +02:00
OpenShift Merge Robot
b2117cb379 Merge pull request #3696 from wjiangjay/upi-on-osp-down-network
[UPI on OSP] make remove network and port more faster
2020-06-08 12:27:32 -04:00
Pierre Prinetti
b284bf60de Add reviewers to the OpenStack directories
Ref.: https://github.com/openshift/installer/pull/3640
2020-06-02 12:21:04 +02:00
wjiang
b97603c48d [UPI on OSP] make remove network and port more faster
Merge ports deletion requests to one instead of deleting one by one to save time.
And also for networks
2020-06-01 19:01:47 +08:00
Maysa Macedo
c49588be17 [UPI] Rely on security group ID when deleting it
As OpenStack allows resources to have the same name, it's
possible that we end up with multiple security groups with
same name, and the deletion of those resources for UPI fails
as currently we're relying on sg Name. This commit fixes the
issue by ensuring the resoruce ID is used instead.
2020-05-29 11:16:44 +02:00