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

300 Commits

Author SHA1 Message Date
OpenShift Merge Robot
8cd8f79a20 Merge pull request #7269 from shiftstack/remove-machines-subnet-docs
OpenStack: Add steps to enable dual-stack clusters
2023-07-25 19:30:33 +02:00
OpenShift Merge Robot
a8fe4d0708 Merge pull request #7356 from shiftstack/clarify-type
Fix the deployment on OpenStack for worker pools with no replicas.
2023-07-23 21:15:43 +02:00
OpenShift Merge Robot
4d777eb7d5 Merge pull request #7335 from dulek/remove-use-octavia
Remove mentions of use-octavia
2023-07-22 01:09:32 +02:00
Martin André
0a574dcac2 OpenStack: Document rootVolume.type as deprecated 2023-07-21 11:21:26 +09:00
Emilien Macchi
0ab084847a openstack/upi: update doc for CCPMSO
We don't want CCPMSO with UPI, the machines are managed by the user, not
OpenShift.
2023-07-20 09:43:48 -04:00
Maysa Macedo
cf6527239d OpenStack: Add steps to enable dual-stack clusters
The `MachinesSubnet` field has been reshaped as `controlPlanePort`,
this commit updates the docs to ensure `controlPlanePort` is used.
Also, this commit adds dual-stack documentation.
2023-07-18 12:46:32 -03:00
Emilien Macchi
a1ea1c870e openstack: Variable Root volume types
Co-Authored-By: Emilien Macchi <emilien@redhat.com>
Co-Authored-By: Pierre Prinetti <pierreprinetti@redhat.com>
2023-07-18 10:40:25 -04:00
Michał Dulko
4274c3f835 Remove mentions of use-octavia
The option no longer exists in cloud-provider-openstack.
2023-07-17 15:18:09 +02:00
Emilien Macchi
f31a29b738 openstack: add root volume AZ validation
When a machine is created with a compute availability zone (defined via `mpool.zones`) and a storage root volume (defined as `mpool.rootVolume`) and that `rootVolume` has no specified `zones`, CAPO will use the compute AZ for the volume AZ.
This can be problematic if the AZ doesn't exist in Cinder.

Source:
9d183bd479/pkg/cloud/services/compute/instance.go (L439-L442)

```golang
func (s *Service) getOrCreateRootVolume(eventObject runtime.Object, instanceSpec *InstanceSpec, imageID string) (*volumes.Volume, error) {

(...)

        availabilityZone := instanceSpec.FailureDomain
        if rootVolume.AvailabilityZone != "" {
                availabilityZone = rootVolume.AvailabilityZone
        }

(...)
```

If a compute AZ is provided alongside with a root volume, we now require
the root volume to have an AZ, so we force the user to make a choice on
which AZ the root volume is deployed on.

We are also enforcing it via CEL validation in OpenShift API.

* Do nothing - at the risk of hitting this situation: a failure domain with a Compute AZ and a root volume with no AZ, CAPO using the compute AZ to create the volume but that AZ doesn't exist in Cinder, leading into Machine creation errors.
* Only do a validation in the CPMS - which will require CPMS manual
  edits from the user.
* Change logic in CAPO wrt how root volume AZ is picked - unlikely to happen
2023-07-14 15:25:36 -04:00
OpenShift Merge Robot
4cb9b2d04e Merge pull request #7280 from shiftstack/openstack_cpms
OSASINFRA-3155 - OpenStack: Create ControlPlaneMachineSet CRDs
2023-07-08 02:22:21 -04:00
Pierre Prinetti
482a2fef7d OSASINFRA-3155 - OpenStack: Create ControlPlaneMachineSet CRDs
Co-Authored-By: Pierre Prinetti <pierreprinetti@redhat.com>
Co-Authored-By: Emilien Macchi <emilien@redhat.com>
2023-07-06 16:41:51 +02:00
Stephen Finucane
82fdcf569c docs: Use GHFM for OpenStack doc notes
https://github.com/orgs/community/discussions/16925

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-06-29 13:26:53 +01:00
Stephen Finucane
d40eb17ba9 docs: Add missing refs to OpenStack README ToC
This makes these things a little more discoverable.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-06-29 13:13:45 +01:00
Stephen Finucane
7b50db6ad7 docs: Improve Manila document
When attaching a manila network by editing a machinset, you probably
want to disable allowed address pairs. Document this.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-06-29 13:12:59 +01:00
OpenShift Merge Robot
74d48f8061 Merge pull request #6920 from shiftstack/externallb-doc
openstack: document external LB
2023-06-19 12:47:12 -04:00
OpenShift Merge Robot
45462a859f Merge pull request #7015 from gryf/openstack-req
OSASINFRA-2168: Docs: update OpenStack requirements
2023-06-19 08:32:26 -04:00
Emilien Macchi
a115c7caca openstack: document external LB
Co-authored-by: Martin André <martin.andre@gmail.com>
2023-06-12 10:24:16 -04:00
Emilien Macchi
7bb6c3c666 OCPBUGS-13300: masters on a single compute server group
2.5 years ago we allowed to configure `serverGroupPolicy` in
install-config so a user could choose which Nova scheduling policy
to adopt for the machines.

However, if the masters were configured with AZ, Terraform would
create one ServerGroup in OpenStack (the one from master-0) but
configure the Machine providerSpec with different ServerGroups, one
per AZ. This was unwanted and now we want to use a single ServerGroup
for masters.

With compute AZ support, the users already have the possibility to
ensure that masters aren't on the same failure domain as others.
Also, even if there is less than 3 AZs (e.g. 2), the default
`soft-anti-affinity` server group policy would make Nova to
scheduling in best effort the machines on different hosts within a same
AZ.

Therefore, there is no need to configure the master machines with a
`serverGroup` per availability zone in their Machines.

Also, note that in OCP 4.14, CPMS will be enabled by default.
If a user has set multiple AZ for the controlPlane and upgrade from
4.13 to 4.14, CPMS will adopt the control plane and create a CPMS in
Inactive mode, with a single `serverGroup`. The `serverGroup` will
likely be the one from master-0, and this will be shared across all
control plane machines.
It'll be up to the user to set the CPMS to Active
and then the masters will be redeployed in the unique group for all
masters. They will never have a ServerGroup with "clusterID + role" name
because in previous releases we added the AZ name in it.
2023-05-10 09:54:59 -04:00
gryf
57dcd64b6e OSASINFRA-2168: Docs: update OpenStack requirements 2023-05-10 14:34:23 +02:00
Pierre Prinetti
b60071f07f openstack: Fix invalid certs script for non-HTTPS endpoints
Fix a syntax error in the validation script. Before this change, the
script would not detect, and thus error, on an endpoint with a schema
that is not HTTP and not HTTPS.
2023-03-31 17:32:40 +02:00
Pierre Prinetti
f56223f2d9 openstack: Only check HTTPS certs on public endpoints
Before this change the validation steps, and the script, assumed that
`internal` and `admin` OpenStack endpoints were always reachable. With
this change, the manual steps and the script are amended to only check
the validity of HTTPS certificates on the `public` endpoints of the
OpenStack catalog.
2023-03-31 17:27:47 +02:00
OpenShift Merge Robot
a7632d03c0 Merge pull request #7001 from shiftstack/openstack-readme-updates
openstack: Remove version info, update lb FIP -> API FIP
2023-03-21 20:54:36 -04:00
Pierre Prinetti
2ca646e2c9 openstack: Provide manual instructions for invalid certificates
Provide manual instructions to check the HTTPS certificates of the
OpenStack endpoints for systems where the required tools for the
provided script aren't available.
2023-03-21 15:58:23 +01:00
Stephen Finucane
0d12665a0a openstack: Use literals for floating IP references
Rather than inventing an alias for these, use the proper name.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-03-21 12:11:42 +00:00
Stephen Finucane
6cf18518c5 openstack: Remove version info, update lb FIP -> API FIP
Our indicated supported version was incorrect. Rather than having to
remember to update it for each new OSP version, simply remove this
snippet.

The LB FIP is now called the API FIP.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-03-21 11:18:09 +00:00
Pierre Prinetti
8d0e58a657 openstack: Fix missing docs link 2023-02-14 18:36:45 +01:00
Pierre Prinetti
0e2b614de4 openstack: Document Image Registry migration to Swift 2022-12-22 15:44:48 +01:00
Pierre Prinetti
f8bf57d171 Update OpenStack spec dependencies
The the OpenStack providerSpec for Machine has been moved to
openshift/api.
2022-11-11 11:33:50 +01:00
Pierre Prinetti
168ceac1ac openstack OCPBUGS-2259: Fix soft-anti-affinity known issue
Before this documentation patch, the known issue about
soft-anti-affinity had several issues:
* it was in the UPI section, when it is not a UPI-specific issue
* it mentioned Control plane scale-out, when OCP only supports exactly 3 masters
* it is now possible to set strict anti-affinity from the
  install-config.yaml, and that should be the recommended solution when
  VM distribution across hosts is required.
2022-10-13 09:18:39 +02:00
Maysa Macedo
5e6f1a18cb Add docs about IPv6 on the additional Networks
This doc includes limitation and steps to get additional IPv6
Networks to worker nodes and pods.
2022-10-10 12:38:54 +02:00
Michał Dulko
2af3ae5524 OpenStack: Update Kuryr storage requirements 2022-08-31 12:06:52 +02:00
Michał Dulko
4e4b17a8a8 OpenStack: Set minimum disk of a flavor to 100 GB
Other platforms require at least 100 GB of disk size and we've updated
openshift-docs to reflect that in OpenStack too. Seems like we forgot to
update flavor validation code and docs in the installer. This commit
fixes this.
2022-08-30 10:33:17 +02:00
Jamo Luhrsen
74486c10c6 Change defaultNetworkType to ovn-kubernetes
In 4.12, the default CNI will be OVNKubernetes.
This change will deploy ovnk by default as well
as adjust tests, docs and comments to reflect
the same.

Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
2022-07-28 22:26:08 -07:00
Pierre Prinetti
701abd8b10 openstack UPI: Remove Swift example, use Glance
The UPI workflow needs the bootstrap ignition file to be hosted
somewhere. Prior to this patch, the first proposed example used Swift.
However, the example was using commands that are not available in the
openstack client shipped with the recommended operating systems and
repositories.

This patch removes the Swift example and focuses the workflow on using
Glance instead, along the lines of what the IPI installer does. The UPI
docs still mention that any hosting system can be used, including Swift.
2022-07-07 10:16:31 +02:00
Pierre Prinetti
1c175f709c openstack UPI: clarify naming of RHCOS image
This patch adds:
* explanation on how the name of the RHCOS image on Glance must match
  the content of inventory.yaml;
* instructions for removing the image after use.
* a scripted unique name for the RHCOS image in Glance, so that the UPI
  tests can be run in parallael.
2022-07-05 16:35:38 +02:00
Pierre Prinetti
0a63c1d356 openstack: Prepare for a UPI CI job
With this patch, the documentation for installing on OpenStack with UPI
is made machine-readable.

Additionally, UPI resources are added to the CI container image.
2022-06-29 10:16:59 +02:00
Pierre Prinetti
a78d148c6e openstack UPI: Minor fixes
* Fix the remote RHCOS image name
* Replaced some grammar mishaps with fresher ones
2022-06-29 10:16:58 +02:00
openshift-ci[bot]
6daed68b98 Merge pull request #6018 from danwinship/kubeconfig-command-copyability
Bug 2100841: Print the "export KUBECONFIG=..." command on its own line for easier cut-and-paste
2022-06-24 15:34:42 +00:00
Maysa Macedo
cbb511557b Bug 1997704: [OpenStack]Document limitation for external LBs
By default, the cloud provider does not support creation of FIPs
using pre-defined addresses due to a policy that allows this operation
only for admins. This commit updates the documentation with possible
solutions for this issue.

Co-authored-by: Martin André <martin.andre@gmail.com>
Co-authored-by: Max Bridges <50179998+maxwelldb@users.noreply.github.com>
2022-06-24 11:16:36 +02:00
Dan Winship
68f22f89ed Print the "export KUBECONFIG=..." command on its own line for easier cut-and-paste 2022-06-16 10:54:28 -04:00
Stephen Finucane
eafb73317d Bug 1969794: Correct typo
The created pvc needs to use a volumeMode of 'Filesystem', not 'Block'.
Using the latter will result in the image-registry pod failing to mount
the volume because it can't handle raw block devices without a
filesystem [1].

[1] https://docs.openshift.com/container-platform/4.10/virt/virtual_machines/virtual_disks/virt-creating-data-volumes.html

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-05-17 17:23:05 +01:00
Emilien Macchi
91eabdd494 openstack: add doc for OVS HW offload
* doc for OVS HW offload
* add a link in README for OVS DPDK
2022-05-12 11:46:16 -04:00
Martin André
fb014f8aec OpenStack: fix SR-IOV documentation TOC 2022-05-10 10:44:03 +02:00
Emilien Macchi
d7064a505c Update SR-IOV & DPDK doc for OpenStack
In 4.11, we did the following:

* Remove the dependency on config-drive and support OpenStack Metadata
  URL fetching.
* Automate the configuration of VFIO NO IOMMU
* Add support for vhostuser interfaces for DPDK

This patch adds more content for DPDK, with an example of a pod using
hugepages, dedicated CPUs and the DPDK port.

It also add more content for SR-IOV, like how to create a policy & a
pod.

Later, we'll add content for SR-IOV with HW offload.
2022-05-06 12:11:57 -04:00
Pierre Prinetti
e8c1284240 openstack: Migration script should --force drain
Before this patch, the migration would sometimes fail with the following
error:

```
cannot delete Pods not managed by ReplicationController, ReplicaSet,
Job, DaemonSet or StatefulSet (use --force to override)
```
2022-02-07 11:03:34 +01:00
Pierre Prinetti
f292bcc108 openstack: Fix invalid-https-certificate detection
Fix the reference to an unbound variable; avoid incrementing the invalid
certificate counter in a subshell.
2022-01-25 09:31:25 +01:00
Pierre Prinetti
32afc66b94 openstack: Document legacy HTTPS cert validation
Provide a script to validate the OpenStack endpoints, to be run before
installing or upgrading to OpenShift v4.10.
2022-01-18 10:43:31 +01:00
Adolfo Duarte
a8eddecb37 OpenStack: Instruction on how to deploy on ovs-dpk
- Describe how to deploy cluster onto ovs-dpdk enbled OpenStack
- Describe how to bind the vfi-pci kernel module
- Describe how to configure the host-device network

Co-Authored-By: Adolfo Duarte <adduarte@redhat.com>
Co-Authored-By: Emilien Macchi <emilien@redhat.com>
Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
2021-12-14 11:08:57 -05:00
Pierre Prinetti
39da0917e9 openstack: Document Control plane node migration
Provide an example script.

The script is a combination of:
* [OpenStack node migration][1]
* [OpenShift graceful node reboot][2]

Implements OSASINFRA-2508

[1]: https://docs.openstack.org/nova/latest/admin/migration.html
[2]: https://docs.openshift.com/container-platform/4.9/nodes/nodes/nodes-nodes-rebooting.html#nodes-nodes-rebooting-gracefully_nodes-nodes-rebooting
2021-12-13 14:57:34 +01:00
Pierre Prinetti
5c51a779e2 openstack: Document credential rotation
Implements OSASINFRA-2380
2021-12-10 17:47:39 +01:00