This documentation provides information on how to deploy and operate a
Mirantis OpenStack for Kubernetes (MOSK) environment.
The documentation is intended to help operators to understand the core
concepts of the product. The documentation provides sufficient information
to deploy and operate the solution.
The information provided in this documentation set is being constantly
improved and amended based on the feedback and kind requests from the
consumers of MOS.
The following table lists the guides included in the documentation set you
are reading:
This documentation is intended for engineers who have the basic knowledge of
Linux, virtualization and containerization technologies, Kubernetes API and
CLI, Helm and Helm charts, Mirantis Kubernetes Engine (MKE), and OpenStack.
GUI elements that include any part of interactive user interface and
menu navigation
Superscript
Some extra, brief information
Note
The Note block
Messages of a generic meaning that may be useful for the user
Caution
The Caution block
Information that prevents a user from mistakes and undesirable
consequences when following the procedures
Warning
The Warning block
Messages that include details that can be easily missed, but should not
be ignored by the user and are valuable before proceeding
See also
The See also block
List of references that may be helpful for understanding of some related
tools, concepts, and so on
Learn more
The Learn more block
Used in the Release Notes to wrap a list of internal references to
the reference architecture, deployment and operation procedures specific
to a newly implemented product feature
Mirantis OpenStack for Kubernetes (MOSK) combines the power of
Mirantis Container Cloud for delivering and managing Kubernetes clusters, with
the industry standard OpenStack APIs, enabling you to build your own cloud
infrastructure.
The advantages of running all of the OpenStack components as a Kubernetes
application are multi-fold and include the following:
Zero downtime, non-disruptive updates
Fully automated Day-2 operations
Full-stack management from bare metal through the operating system and
all the necessary components
The list of the most common use cases includes:
Software-defined data center
The traditional data center requires multiple requests and interactions
to deploy new services, by abstracting the data center functionality
behind a standardized set of APIs service can be deployed faster and
more efficiently. MOSK enables you to define all your
data center resources behind the industry standard OpenStack APIs allowing you
to automate the deployment of applications or simply request resources
through the UI to quickly and efficiently provision virtual machines,
storage, networking, and other resources.
Virtual Network Functions (VNFs)
VNFs require high performance systems that can be accessed on demand in
a standardized way, with assurances that they will have access to the
necessary resources and performance guarantees when needed.
MOSK provides extensive support for VNF workload enabling
easy access to functionality
such as Intel EPA (NUMA, CPU pinning, Huge Pages) as well as the consumption
of specialized networking interfaces cards to support SR-IOV and DPDK.
The centralized management model of MOSK and Mirantis
Container Cloud also enables the easy management of multiple
MOSK deployments with full lifecycle management.
Legacy workload migration
With the industry moving toward cloud-native technologies many older or
legacy applications are not able to be moved easily and often it does not
make financial sense to transform the applications to cloud-native
applications. MOSK provides a stable cloud platform that
can cost-effectively host legacy applications whilst still providing the
expected levels of control, customization, and uptime.
Mirantis OpenStack for Kubernetes (MOSK) is a virtualization
platform that provides an infrastructure for cloud-ready applications,
in combination with reliability and full control over the data.
MOSK combines OpenStack, an open-source cloud
infrastructure software, with application management techniques used
in the Kubernetes ecosystem that include container isolation, state
enforcement, declarative definition of deployments, and others.
MOSK integrates with Mirantis Container Cloud to rely
on its capabilities for bare-metal infrastructure provisioning, Kubernetes
cluster management, and continuous delivery of the stack components.
MOSK simplifies the work of a cloud operator by
automating all major cloud life cycle management routines including
cluster updates and upgrades.
A Mirantis OpenStack for Kubernetes (MOSK) deployment profile is a
thoroughly tested and officially supported reference architecture that is
guaranteed to work at a specific scale and is tailored to the demands of
a specific business case, such as generic IaaS cloud, Network Function
Virtualisation infrastructure, Edge Computing, and others.
A deployment profile is defined as a combination of:
Services and features the cloud offers to its users.
Non-functional characteristics that users and operators should expect when
running the profile on top of a reference hardware configuration. Including,
but not limited to:
Performance characteristics, such as an average network throughput between
VMs in the same virtual network.
Reliability characteristics, such as the cloud API error response rate when
recovering a failed controller node.
Scalability characteristics, such as the total amount of virtual routers
tenants can run simultaneously.
Hardware requirements - the specification of physical servers, and
networking equipment required to run the profile in production.
Deployment parameters that an operator for the cloud can tweak within a
certain range without being afraid of breaking the cloud or losing support.
In addition, the following items may be included in a definition:
Compliance-driven technical requirements, such as TLS encryption of all
external API endpoints.
Foundation-level software components, such as Tungsten Fabric or
Open vSwitch as a backend for the networking service.
Note
Mirantis reserves the right to revise the technical implementation of any
profile at will while preserving its definition - the functional
and non-functional characteristics that operators and users are known
to rely on.
MOSK supports a huge list of different deployment profiles
to address a wide variety of business tasks. The table below includes the
profiles for the most common use cases.
Note
Some components of a MOSK cluster are mandatory and
are being installed
during the managed cluster deployment by Container Cloud regardless of the
deployment profile in use. StackLight is one of the cluster components that
are enabled by default. See Container Cloud Operations Guide
for details.
Provides the core set of the services an IaaS vendor would need
including some extra functionality. The profile is designed to
support up 50-70 compute nodes and a reasonable number of
storage nodes. 0
The core set of services provided by the profile includes:
Compute (Nova)
Images (Glance)
Networking (Neutron with Open vSwitch as a backend)
The HelmBundle Operator is the realization of the Kubernetes Operator
pattern that provides a Kubernetes custom resource of the HelmBundle
kind and code running inside a pod in Kubernetes. This code handles changes,
such as creation, update, and deletion, in the Kubernetes resources of this
kind by deploying, updating, and deleting groups of Helm releases from
specified Helm charts with specified values.
The OpenStack platform manages virtual infrastructure resources, including
virtual servers, storage devices, networks, and networking services, such as
load balancers, as well as provides management functions to the tenant users.
Various OpenStack services are running as pods in Kubernetes and are
represented as appropriate native Kubernetes resources, such as
Deployments, StatefulSets, and DaemonSets.
For a simple, resilient, and flexible deployment of OpenStack and related
services on top of a Kubernetes cluster, MOSK uses
OpenStack-Helm that provides a required collection of the Helm charts.
Also, MOSK uses OpenStack Operator as the realization
of the Kubernetes Operator pattern. The OpenStack Operator provides a custom
Kubernetes resource of the OpenStackDeployment kind and code running
inside a pod in Kubernetes. This code handles changes such as creation,
update, and deletion in the Kubernetes resources of this kind by
deploying, updating, and deleting groups of the Helm releases.
Ceph is a distributed storage platform that provides storage resources,
such as objects and virtual block devices, to virtual and physical
infrastructure.
MOSK uses Rook as the implementation of the
Kubernetes Operator pattern that manages resources of the CephCluster
kind to deploy and
manage Ceph services as pods on top of Kubernetes to provide Ceph-based
storage to the consumers, which include OpenStack services, such as Volume
and Image services, and underlying Kubernetes through Ceph CSI (Container
Storage Interface).
The Ceph Controller is the implementation of the Kubernetes Operator
pattern, that manages resources of the MiraCeph kind to simplify
management of the Rook-based Ceph clusters.
The StackLight component is responsible for collection, analysis, and
visualization of critical monitoring data from physical and virtual
infrastructure, as well as alerting and error notifications through
a configured communication system, such as email. StackLight includes
the following key sub-components:
This section provides hardware requirements for the Mirantis Container
Cloud management cluster with a managed Mirantis OpenStack for Kubernetes
(MOSK) cluster.
For installing MOSK, the Mirantis Container Cloud management
cluster and managed cluster must be deployed with baremetal provider.
Important
A MOSK cluster is to be used for a
deployment of an OpenStack cluster and its components. Deployment of
third-party workloads on a MOSK cluster is neither
allowed nor supported.
Note
One of the industry best practices is to verify every new update or
configuration change in a non-customer-facing environment before
applying it to production. Therefore, Mirantis recommends
having a staging cloud, deployed and maintained along with the production
clouds. The recommendation is especially applicable to the environments
that:
Receive updates often and use continuous delivery. For example,
any non-isolated deployment of Mirantis Container Cloud.
Have significant deviations from the reference architecture or
third party extensions installed.
Are managed under the Mirantis OpsCare program.
Run business-critical workloads where even the slightest application
downtime is unacceptable.
A typical staging cloud is a complete copy of the production environment
including the hardware and software configurations, but with a bare minimum
of compute and storage capacity.
The table below describes the node types the MOSK reference
architecture includes.
The Container Cloud management cluster architecture on bare metal
requires three physical servers for manager nodes. On these hosts,
we deploy a Kubernetes cluster with services that provide Container
Cloud control plane functions.
OpenStack control plane node and StackLight node
Host OpenStack control plane services such as database, messaging, API,
schedulers conductors, and L3 and L2 agents, as well as the StackLight
components.
Note
MOSK enables the cloud operator to
collocate the OpenStack control plane with the managed cluster master
nodes on the OpenStack deployments of a small size. This capability
is available as technical preview. Use such configuration for testing
and evaluation purposes only.
Tenant gateway node
Optional. Hosts OpenStack gateway services including L2, L3, and DHCP
agents. The tenant gateway nodes are combined with OpenStack control
plane nodes. The strict requirement is a dedicated physical network
(bond) for tenant network traffic.
Tungsten Fabric control plane node
Required only if Tungsten Fabric is enabled as a backend for the
OpenStack networking. These nodes host the TF control plane services
such as Cassandra database, messaging, API, control, and configuration
services.
Tungsten Fabric analytics node
Required only if Tungsten Fabric is enabled as a backend for the
OpenStack networking. These nodes host the TF analytics services
such as Cassandra, ZooKeeper, and collector.
Compute node
Hosts the OpenStack Compute services such as QEMU, L2 agents, and
others.
Infrastructure nodes
Runs underlying Kubernetes cluster management services.
The MOSK reference configuration requires minimum
three infrastructure nodes.
The table below specifies the hardware resources the MOSK
reference architecture recommends for each node type.
The exact hardware specifications and number of the control plane
and gateway nodes depend on a cloud configuration and scaling needs.
For example, for the clouds with more than 12,000 Neutron ports, Mirantis
recommends increasing the number of gateway nodes.
TF control plane and analytics nodes can be combined with a respective
addition of RAM, CPU, and disk space to the hardware hosts. Though,
Mirantis does not recommend such configuration for production environments
as the risk of the cluster downtime if one of the nodes unexpectedly fails
increases.
A Ceph cluster with 3 Ceph nodes does not provide hardware fault
tolerance and is not eligible for recovery operations,
such as a disk or an entire node replacement.
A Ceph cluster uses the replication factor that equals 3.
If the number of Ceph OSDs is less than 3, a Ceph cluster moves
to the degraded state with the write operations restriction until
the number of alive Ceph OSDs equals the replication factor again.
If you would like to evaluate the MOSK
capabilities and do not have much hardware at your disposal,
you can deploy it in a virtual environment. For example, on
top of another OpenStack cloud using the sample Heat templates.
Please mind, the tooling is provided for reference only and is not
a part of the product itself. Mirantis does not guarantee its
interoperability with any MOSK version.
The management cluster requires minimum two storage devices per node.
Each device is used for different type of storage:
One storage device for boot partitions and root file system.
SSD is recommended. A RAID device is not supported.
One storage device per server is reserved for local persistent
volumes. These volumes are served by the Local Storage Static Provisioner,
that is local-volume-provisioner, and used by many services of Mirantis
Container Cloud.
The seed node is only necessary to deploy the management cluster.
When the bootstrap is complete, the bootstrap node can be
discarded and added back to the MOSK cluster as a node of
any type.
The minimum reference system requirements for a baremetal-based bootstrap
seed node are as follow:
Basic Ubuntu 18.04 server with the following configuration:
Kernel of version 4.15.0-76.86 or later
8 GB of RAM
4 CPU
10 GB of free disk space for the bootstrap cluster cache
No DHCP or TFTP servers on any NIC networks
Routable access IPMI network for the hardware servers.
Internet access for downloading of all required artifacts
If you use a firewall or proxy, make sure that the bootstrap and management
clusters have access to the following IP ranges and domain names:
IP ranges:
Microsoft Azure
(only IP addresses for MicrosoftContainerRegistry)
Amazon AWS
(only IP addresses for "service":"CLOUDFRONT")
MOSK uses Kubernetes labels to place components onto hosts.
For the default locations of components, see MOSK cluster hardware requirements. Additionally,
MOSK supports component collocation. This is mostly useful
for OpenStack compute and Ceph nodes. For component collocation, consider
the following recommendations:
When calculating hardware requirements for nodes, consider the requirements
for all collocated components.
When performing maintenance on a node with collocated components, execute the
maintenance plan for all of them.
When combining other services with the OpenStack compute host, verify that
reserved_host_* has increased accordingly to the needs of collocated
components by using node-specific overrides for the compute service.
MetalLB exposes external IP addresses of cluster services to access
applications in a Kubernetes cluster.
DNS
The Kubernetes Ingress NGINX controller is used to expose OpenStack
services outside of a Kubernetes deployment. Access to the Ingress
services is allowed only by its FQDN. Therefore, DNS is a mandatory
infrastructure service for an OpenStack on Kubernetes deployment.
To keep operating system on a bare metal host up to date with the latest
security updates, the operating system requires periodic software
packages upgrade that may or may not require the host reboot.
Mirantis Container Cloud uses life cycle management tools to update
the operating system packages on the bare metal hosts.
In a management cluster, software package upgrade and host restart are
applied automatically when a new Container Cloud version
with available kernel or software packages upgrade is released.
In a managed cluster, package upgrade and host restart are applied as part of
usual cluster update, when applicable. To start planning the maintenance
window and proceed with the managed cluster update, see Cluster update.
Operating system upgrade and host restart are applied to cluster
nodes one by one. If Ceph is installed in the cluster, the Container
Cloud orchestration securely pauses the Ceph OSDs on the node before
restart. This allows avoiding degradation of the storage service.
Each section below is dedicated to a particular service provided by
MOSK. They contain configuration details and usage
samples of supported capabilities provided through the custom resources.
Note
The list of the services and their supported features included in
this section is not full and is being constantly amended based on the
complexity of the architecture and use of a particular service.
Mirantis OpenStack for Kubernetes (MOSK) provides instances management
capability through the Compute service (OpenStack Nova). The Compute service
interacts with other OpenStack components of an OpenStack environment to
provide life-cycle management of the virtual machine instances.
The Compute service (OpenStack Nova) enables you to spawn instances that can
collectively consume more resources than what is physically available on a
compute node through resource oversubscription, also known as overcommit
or allocation ratio.
Resources available for oversubscription on a compute node include the number
of CPUs, amount of RAM, and amount of available disk space. When making a
scheduling decision, the scheduler of the Compute service takes into account
the actual amount of resources multiplied by the allocation ratio. Thereby,
the service allocates resources based on the assumption that not all instances
will be using their full allocation of resources at the same time.
Oversubscription enables you to increase the density of workloads and compute
resource utilization and, thus, achieve better Return on Investment (ROI) on
compute hardware. In addition, oversubscription can also help avoid the need
to create too many fine-grained flavors, which is commonly known as
flavor explosion.
There are two ways to control the oversubscription values for compute
nodes:
The legacy approach entails utilizing the
{cpu,disk,ram}_allocation_ratio configuration options offered by the
Compute service. A drawback of this method is that restarting the Compute
service is mandatory to apply the new configuration. This introduces the
risk of possible interruptions of cloud user operations, for example,
instance build failures.
The modern and recommended approach, adopted in MOSK
23.1, involves using the initial_{cpu,disk,ram}_allocation_ratio
configuration options, which are employed exclusively during the initial
provisioning of a compute node. This may occur during the initial deployment
of the cluster or when new compute nodes are added subsequently. Any further
alterations can be performed dynamically using the OpenStack Placement
service API without necessitating the restart of the service.
There is no definitive method for selecting optimal oversubscription values.
As a cloud operator, you should continuously monitor your workloads, ideally
have a comprehensive understanding of their nature, and experimentally
determine the maximum values that do not impact performance. This approach
ensures maximum workload density and cloud resource utilization.
To configure the initial compute resource oversubscription in
MOSK, specify the spec:features:nova:allocation_ratios
parameter in the OpenStackDeployment custom resource as explained in the
table below.
Changing the resource oversubscription configuration through the
OpenStackDeployment resource after cloud deployment will only
affect the newly added compute nodes and will not change
oversubscription for already existing compute nodes.
To change oversubscription for already existing compute nodes, use the
placement service API as described in Change oversubscription settings for existing compute nodes.
In the example configuration above, the compute nodes labeled with
compute-type=hi-perf label will use less intense oversubscription
on CPU and no oversubscription on disk.
When using oversubscription, it is important to conduct thorough cloud
management and monitoring to avoid system overloading and performance
degradation. If many or all instances on a compute node start using all
allocated resources at once and, thereby, overconsume physical resources,
failure scenarios depend on the resource being exhausted.
Workloads are getting slower as they actively compete for physical CPU
usage. A useful indicator is the steal time as reported inside the
workload, which is a percentage of time the operating system in the
workload is waiting for actual physical CPU core availability to run
instructions.
To verify the steal time in the Linux-based workload, use the
top command:
top-bn1|head|grepst$|awk-F',''{print $NF}'
Generally, steal times of >10 for 20-30 minutes are considered
alarming.
RAM
Operating system on the compute node starts to aggressively use physical
swap space, which significantly slows the workloads down. Sometimes, when
the swap is also exhausted, the operating system of a compute node can
outright OOM kill most offending processes, which can cause major
disruptions to workloads or a compute node itself.
Warning
While it may seem like a good idea to make the most of
available resources, oversubscribing RAM can lead to various issues and
is generally not recommended due to potential performance degradation,
reduced stability, and security risks for the workloads.
Mirantis strongly advises against oversubscribing RAM, by any amount.
Disk space
Depends on the physical layout of storage. Virtual root and ephemeral
storage devices that are hosted on a compute node itself are put in
the read-only mode negatively affecting workloads. Additionally,
the file system used by the operating system on a compute node may
become read-only too blocking the compute node operability.
There are workload types that are not suitable for running in an oversubscribed
environment, especially those with high performance, latency-sensitive, or
real-time requirements. Such workloads are better suited for compute nodes
with dedicated CPUs, ensuring that only processes of a single instance run
on each CPU core.
MOSK provides the capability to configure virtual CPU types
for OpenStack instances through the OpenStackDeployment custom resource.
This feature enables cloud user to tailor performance and resource allocation
within their OpenStack environment to meet specific workload demands
effectively.
Parameter
spec:features:nova:vcpu_type
Usage
Configures the type of virtual CPU that Nova will use when creating
instances.
The list of supported CPU models include host-model (default),
host-passthrough, and custom models.
The host-model CPU model (default) mimics the host CPU and provides for
decent performance, good security, and moderate compatibility with live
migrations.
With this mode, libvirt finds an available predefined CPU model that best
matches the host CPU, and then explicitly adds the missing CPU feature
flags to closely match the host CPU features. To mitigate known security
flaws, libvirt automatically adds critical CPU flags, supported by
installed libvirt, QEMU, kernel, and CPU microcode versions.
This is a safe choice if your OpenStack compute node CPUs are of the same
generation. If your OpenStack compute node CPUs are sufficiently different,
for example, span multiple CPU generations, Mirantis strongly recommends
setting explicit CPU models supported by all of your OpenStack compute node
CPUs or organizing your OpenStack compute nodes into host aggregates and
availability zones that have largely identical CPUs.
Note
The host-model model does not guarantee two-way live migrations
between nodes.
When migrating instances, the libvirt domain XML is first copied as is to
the destination OpenStack compute node. Once the instance is hard rebooted
or shut down and started again, the domain XML will be re-generated. If
versions of libvirt, kernel, CPU microcode, or BIOS firmware differ from
what they were on the source compute node the instance was started before,
libvirt may pick up additional CPU feature flags, making it impossible to
live-migrate back to the original compute node.
The host-passthrough CPU model provides maximum performance, especially
when nested virtualization is required or if live migration support is not
a concern for workloads. Live migration requires exactly the same CPU
on all OpenStack compute nodes, including the CPU microcode and kernel
versions. Therefore, for live migrations support, organize your compute
nodes into host aggregates and availability zones. For workload migration
between non-identical OpenStack compute nodes, contact Mirantis support.
For example, to set the host-passthrough CPU model for all OpenStack
compute nodes:
MOSK enables you to specify a comma-separated list of
exact QEMU CPU models to create and emulate. Specify the common and less
advanced CPU models first. All explicit CPU models provided must be compatible
with the OpenStack compute node CPUs.
To specify an exact CPU model, review the available CPU models and their
features. List and inspect the /usr/share/libvirt/cpu_map/*.xml files in
the libvirt containers of pods of the libvirt DeamonSet or multiple
DaemonSets if you are using node-specific settings.
OpenStack supports the following types of instance migrations:
Cold migration (also referred to simply as migration)
The process involves shutting down the instance, copying its definition and
disk, if necessary, to another host, and then starting the instance again
on the new host.
This method disrupts the workload running inside the instance but allows
for more reliability and works for most types of instances and consumed
resources.
Live migration
The process involves copying the instance definition, memory, and disk,
if necessary, to another host while the instance continues running,
without shutting it down. The instance then momentarily switches to run
on the new host.
While generally less disruptive to workloads, this method is less reliable
and imposes more restrictions on the instance and target host properties
to succeed.
As a cloud operator, you can configure live migration through the
OpenStackDeployment custom resource. The following table provides
the details on available configuration.
Parameter
Usage
features:nova:live_migration_interface
Specifies the name of the NIC device on the actual host that will be
used by Nova for the live migration of instances.
Mirantis recommends setting up your Kubernetes hosts in such a way
that networking is configured identically on all of them,
and names of the interfaces serving the same purpose or plugged into
the same network are consistent across all physical nodes.
Also, set the option to vhost0 in the following cases:
The Neutron service uses Tungsten Fabric.
Nova migrates instances through the interface specified by
the Neutron tunnel_interface parameter.
features:nova:libvirt:tls
Available since MOSK 23.2.
If set to true, enables the live migration over TLS:
Allowing non-administrative users to migrate instances¶
Available since MOSK 24.3
MOSK provides the following distinct sets of policies that
govern access to cold and live migrations:
os_compute_api:os-migrate-server:migrate and
os_compute_api:os-migrate-server:migrate_live define the ability to
initiate migrations without specifying the target host. In this case,
the OpenStack Compute scheduler selects the best suited target host
automatically.
os_compute_api:os-migrate-server:migrate:host
and os_compute_api:os-migrate-server:migrate_live:host define the ability
to initiate migration together with specifying the target host.
Depending on the API microversion used to start the migration, the host is
either validated by the scheduler (recommended) or forced regardless of
other considerations. The latter option is not recommended as it may lead
to inconsistencies in the internal state of the Compute service.
Since MOSK 24.3, the default policies for migrations without
the target host specification is set to rule:project_member_or_admin.
This means that migration is available to both cloud administrators and
project users with the member role.
The migration to a specific host requires administrative privileges.
If the default policy does not suit your deployment, you can require
administrative access for all instance migrations by setting these policy
values to rule:context_is_admin, or any other value appropriate for your
use case.
If you use the default policies and want to revert to the old defaults, ensure
that the following snippet is present in your OpenStackDeployment custom
resource:
Defines the type of storage for Nova to use on the compute hosts for
the images that back up the instances.
The list of supported options include:
localDeprecated
Option is deprecated and replaced by qcow2.
qcow2
The local storage is used. The backend disk image format is
qcow2. The pros include faster operation, failure domain
independency from the external storage. The cons include local
space consumption and less performant and robust live migration
with block migration.
rawAvailable since 24.2
The local storage is used. The backend disk image format is raw.
Raw images are simple binary dumps of disk data, including empty
space, resulting in larger file sizes. They provide superior
performance because they do not incur overhead from features such as
compression or copy-on-write, which are present in the qcow2 disk
images.
ceph
Instance images are stored in a Ceph pool shared across all
Nova hypervisors. The pros include faster image start, faster and
more robust live migration. The cons include considerably slower
IO performance, workload operations direct dependency on Ceph cluster
availability and performance.
lvmTechPreview
Instance images and ephemeral images are stored on a local Logical
Volume. If specified, features:nova:images:lvm:volume_group must
be set to an available LVM Volume Group, by default, nova-vol.
For details, see Enable LVM ephemeral storage.
MOSK provides a number of different methods to interact
with OpenStack virtual machines including VNC (default) and SPICE remote
consoles. This section outlines how you can configure these different
console services through the OpenStackDeployment custom resource.
The noVNC client provides remote control or remote desktop access to guest
virtual machines through the Virtual Network Computing (VNC) system.
The MOSK Compute service users can access their
instances using the noVNC clients through the noVNC proxy server.
The VNC remote console is enabled by default in MOSK.
To disable VNC remote console through the OpenStackDeployment custom
resource, set spec:features:nova:console:novnc to false:
MOSK uses TLS to secure public-facing VNC access
on networks between a noVNC client and noVNC proxy server.
The features:nova:console:novnc:tls:enabled ensures that the data
transferred between the instance and the noVNC proxy server is encrypted.
Both servers use the VeNCrypt authentication scheme for the data
encryption.
To enable the encrypted data transfer for noVNC, use the following
structure in the OpenStackDeployment custom resource:
The VNC protocol has its limitations, such as the lack of support for multiple
monitors, bi-directional audio, reliable cut-and-paste, video streaming,
and others. The SPICE protocol aims to overcome these limitations and
deliver a robust remote desktop support.
The SPICE remote console is disabled by default in MOSK.
To enable SPICE remote console through the OpenStackDeployment custom
resource, set spec:features:nova:console:spice:enabled to true:
MOSK provides GPU virtualization capabilities to its users
through the NVIDIA vGPU and Multi-Instance GPU (MIG) technologies.
GPU virtualization is a capability offered by modern datacenter-grade GPUs,
enabling the partitioning of a single physical GPU into
smaller virtual devices, that can then be attached to individual
virtual machines.
In contrast to the Peripheral Component Interconnect (PCI) passthrough feature, leveraging the GPU virtualization enables
concurrent utilization of the same physical GPU device by multiple virtual
machines. This enhances hardware utilization and fosters a more elastic
consumption of expensive hardware resources.
When using GPU virtualization, the physical device and its drivers manage
computing resource partitioning and isolation.
Untitled Diagram
The use case for GPU virtualization aligns with any application necessitating
or benefiting from accelerated parallel floating-point calculations, such as
graphic-intensive desktop workloads, for example, 3D modeling and rendering,
as well as computationally intensive tasks, for example, artifial intelligence,
specifically, machine learning training and classification.
At its core, GPU virtualization operates on base of the single-root
input/output virtualization framework (SR-IOV), which is already widely used by
datacenter-grade network adapters and mediated devices Linux kernel framework.
Typically, using GPU virtualization requires the installation of specific
physical GPU drivers on the host system. For detailed instructions on obtaining
and installing the required drivers, refer to official documentation from the
vendor of your GPU.
You can automate the configuration of drivers by adding a custom post-install
script to the BareMetalHostProfile object of your
MOSK cluster. See Configure GPU virtualization for details.
Certain NVIDIA GPUs, for example, Ampere GPU architecture and later,
support GPU virtualization in two modes: time sliced (vGPU)
or
Multi-Instance GPU (MIG).
Older architectures support only the time-sliced mode.
The distinction between these modes lies in resource isolation, dedicated
performance levels, and partitioning flexibility.
Typically, there is no fixed rule dictating which mode should be used, as it
depends on the intended workloads for the virtual GPUs and the level of
experience and assurances the cloud operator aims to offer users. Below,
there is a brief overview of the differences between these two modes.
In time-sliced vGPU mode, each virtual GPU is allocated dedicated slices of
the physical GPU memory while sharing the physical GPU engines. Only one vGPU
operates at a time, with full access to all physical GPU engines. The resource
scheduler within the physical GPU regulates the timing of each vGPU execution,
ensuring fair allocation of resources.
Therefore, this setup may encounter issues with noisy neighbors, where the
performance of one vGPU is affected by resource contention from others.
However, when not all available vGPU slots are occupied, the active ones
can fully utilize the power of its physical GPU.
Advantages:
Potential ability to fully utilize the compute power of physical GPU,
even if not all possible vGPUs have yet been created on that physical GPU.
Easier configuration.
Disadvantages:
Only a single vGPU type (size of the vGPU) can be created on any given
physical GPU. The cloud operator must decide beforehand what type of vGPU
each physical GPU will be providing.
Less strict resource isolation. Noisy neighbors and unpredictable level of
performance for every single guest vGPU.
In Multi-Instance GPUs (MIG) mode, each virtual GPU is allocated
dedicated physical GPU engines, exclusively utilized by that specific virtual
GPU. Virtual GPUs run in parallel, each on its own engines according to their
type.
Advantages:
Ability to partition a single physical GPU into various types of virtual
GPUs. This approach provides cloud operators with enhanced flexibility in
determining the available vGPU types for cloud users. However, the cloud
operator has to decide beforehand what types of virtual GPU each physical
GPU will be providing and partition each GPU accordingly.
Better resource isolation and guaranteed resource access with predictable
performance levels for every virtual GPU.
Disadvantages:
Under-utilization of physical GPU when not all possible virtual GPU slots are
occupied.
Comparatively complicated configuration, especially in heterogeneous hardware
environments.
Some of these restrictions may be lifted in future releases of
MOSK.
Cloud users will face the following limitations when working with
GPU virtualization in MOSK:
Inability to create several instances with virtual GPUs in one request
if there is no physical GPU available that can fit all of them at once.
For NVIDIA MIG, this effectively means that you cannot create
several instances with virtual GPUs in one request.
Inability to create an instance with several virtual GPUs.
Inability to attach virtual GPU to or detach virtual GPU
from a running instance.
Inability to live-migrate instances with virtual GPU attached.
Cloud operator will face the following limitations when configuring GPU
virtualization in MOSK:
Partition of physical GPUs to virtual GPUs is static and not on-demand.
You need to decide beforehand what types of virtual GPUs
each physical GPU will get partinioned into. Changing of the partitioning
requires removing all instances using virtual GPUs from the compute node
before initiating the repartitioning process.
Repartitioning may require additional manual steps to eliminate orphan
resource providers in the placement service, and thus, avoid resource
over-reporting and instance scheduling problems.
Configuration of multiple virtual GPU types per node may be very verbose
since configuration depends on particular PCI addresses of physical GPUs
on each node.
Management of compute node reboots is an important Day 2 operation. Before
shutting down a host, guest instances must either be migrated to other
compute nodes or gracefully powered off. This ensures the integrity of
disk filesystems and prevents damage to running applications.
MOSK provides the capability to automatically power off
the instances during the compute node shutdown or reboot through the ACPI
power event.
Graceful instance shutdown is managed using the systemd inhibit
tool. When the nova-compute service starts, it creates locks. For example:
The process runs in the nova-compute-inhibit-lock container within
the nova-compute pod. It intercepts systemd power event and starts
graceful guest shutdown. When all guest instances are powered off,
the inhibit lock is released.
To initiate a proper shutdown, use the following commands:
systemctl shutdown and systemctl reboot.
Mirantis OpenStack for Kubernetes (MOSK) Networking service
(OpenStack Neutron) provides cloud applications with
Connectivity-as-a-Service enabling instances to communicate with each
other and the outside world.
The API provided by the service abstracts all the nuances of implementing
a virtual network infrastructure on top of your own physical network
infrastructure. The service allows cloud users to create advanced virtual
network topologies that may include load balancing, virtual private
networking, traffic filtering, and other services.
MOSK Networking service supports Open vSwitch and
Tungsten Fabric SDN technologies as backends.
MOSK offers various networking backends. Selecting
the appropriate backend option for the Networking service is essential
for building a robust and efficient cloud networking infrastructure.
Whether you choose Open vSwitch, Open Virtual Networking, or Tungsten
Fabric, understanding their features, capabilities, and suitability
for your specific use case is crucial for achieving optimal performance
and scalability in your OpenStack environment.
Open vSwitch is a production-quality, multilayer virtual switch licensed
under the open source Apache 2.0 license. It is designed to enable massive
network automation through programmatic extension, while supporting standard
management interfaces and protocols.
Open vSwitch is suitable for general-purpose networking requirements in
OpenStack deployments. It provides flexibility and scalability for various
network topologies.
Key characteristics of Open vSwitch:
Depends on RabbitMQ and RPC communication
Uses keepalived to set up HA routers
Uses namespace and Veth routing to provide its capabilities
Locates metadata in router or DHCP namespaces
Centralizes the DHCP service, which is running in a separate namespace
Open Virtual Networking is a solution for Open vSwitch that provides native
virtual networking support for Open vSwitch environments. It provides enhanced
scalability and performance compared to traditional Open vSwitch deployments.
Key characteristics of Open Virtual Networking:
Uses the OVSDB protocol for commmunication
Is distributed by design
Handles all traffic with OpenFlow
Runs metadata on all nodes
Provides DHCP through local Open vSwitch instances
Tungsten Fabric is an open-source SDN based on Juniper Contrail. Its design
allows for simplified creation and management of virtual networks in cloud
environments. Tungsten Fabric supports advanced networking scenarious, such as
BGP integration and scalability.
Key characteristics of Tungsten Fabric:
Uses well scalable protocols to set up tunnels, such as BGP/MPLS
MOSK offers the Networking service as a part of its
core setup. You can configure the service through the
spec:features:neutron section of the OpenStackDeployment custom
resource.
Defines the name of the NIC device on the actual host that will be
used for Neutron.
Mirantis recommends setting up your Kubernetes hosts in such a way
that networking is configured identically on all of them,
and names of the interfaces serving the same purpose or plugged into
the same network are consistent across all physical nodes.
If enabled, must contain the data structure defining the floating IP
network that will be created for Neutron to provide external access to
your Nova instances.
The BGP dynamic routing extension to the Networking service (OpenStack Neutron)
is particularly useful for the MOSK clouds where private
networks managed by cloud users need to be transparently integrated into the
networking of the data center.
For example, the BGP dynamic routing is a common requirement for IPv6-enabled
environments, where clients need to seamlessly access cloud workloads using
dedicated IP addresses with no address translation involved in between the
cloud and the external network.
Untitled Diagram
BGP dynamic routing changes the way self-service (private) network prefixes
are communicated to BGP-compatible physical network devices, such as routers,
present in the data center. It eliminates the traditional reliance on static
routes or ICMP-based advertising by enabling the direct passing of private
network prefix information to router devices.
Note
To effectively use the BGP dynamic routing feature, Mirantis
recommends acquiring good understanding of OpenStack address scopes
and how they work.
The components of the OpenStack BGP dynamic routing are:
Service plugin
An extension to the Networking service (OpenStack Neutron) that implements
the logic for BGP-related entities orhestration and provides the cloud
user-facing API. A cloud administrator creates and configures a BGP speaker
using the CLI or API and manually schedules it to one or more hosts running
the agent.
Agent
Manages BGP peering sessions. In MOSK, the BGP agent
runs on nodes labeled with openstack-gateway=enabled.
Prefix advertisement depends on the binding of external networks to a BGP
speaker and the address scope of external and internal IP address ranges or
subnets.
BGP dynamic routing advertises prefixes for self-service networks and host
routes for floating IP addresses.
To successfully advertise a self-service network, you need to fulfill
the following conditions:
External and self-service networks reside in the same address scope.
The router contains an interface on the self-service subnet and a gateway
on the external network.
The BGP speaker associates with the external network that provides
a gateway on the router.
The BGP speaker has the advertise_tenant_networks attribute set
to True.
To successfully advertise a floating IP address, you need to fulfill
the following conditions:
The router with the floating IP address binding contains a gateway on
an external network with the BGP speaker association.
The BGP speaker has the advertise_floating_ip_host_routes attribute
set to true.
The diagram below is an example of the BGP dynamic routing in the non-DVR mode
with self-service networks and the following advertisements:
B>*192.168.0.0/25[200/0] through 10.11.12.1
B>*192.168.0.128/25[200/0] through 10.11.12.2
B>*10.11.12.234/32[200/0] through 10.11.12.1
Untitled DiagramOperation in the Distributed Virtal Router (DVR) mode¶
For both floating IP and IPv4 fixed IP addresses, the BGP speaker advertises
the gateway of the floating IP agent on the corresponding compute node as
the next-hop IP address. When using IPv6 fixed IP addresses, the BGP speaker
advertises the DVR SNAT node as the next-hop IP address.
The diagram below is an example of the BGP dynamic routing in the DVR mode
with self-service networks and the following advertisements:
DVR incompatibility with ARP announcements and VRRP¶
Due to the known issue
#1774459 in the upstream
implementation, Mirantis does not recommend using Distributed Virtual Routing
(DVR) routers in the same networks as load balancers or other applications
that utilize the Virtual Router Redundancy Protocol (VRRP) such as Keepalived.
The issue prevents the DVR functionality from working correctly with network
protocols that rely on the Address Resolution Protocol (ARP) announcements
such as VRRP.
The issue occurs when updating permanent ARP entries for
allowed_address_pair IP addresses in DVR routers because DVR performs
the ARP table update through the control plane and does not allow any
ARP entry to leave the node to prevent the router IP/MAC from
contaminating the network.
This results in various network failover mechanisms not functioning in virtual
networks that have a distributed virtual router plugged in. For instance, the
default backend for MOSK Load Balancing service,
represented by OpenStack Octavia with the OpenStack Amphora backend when
deployed in the HA mode in a DVR-connected network, is not able to redirect
the traffic from a failed active service instance to a standby one without
interruption.
In MOSK, Cinder backup is enabled and uses the Ceph back
end for Cinder by default. The backup configuration is stored
in the spec:features:cinder:backup structure in the
OpenStackDeployment custom resource. If necessary, you can disable
the backup feature in Cinder as follows:
Using this structure, you can also configure another backup driver supported
by MOSK for Cinder as described below. At any given time,
only one backend can be enabled.
MOSK supports NFS Unix authentication exclusively.
To use an NFS driver with MOSK, ensure you have
a preconfigured NFS server with an NFS share accessible to a Unix
Cinder user. This user must be the owner of the exported NFS folder,
and the folder must have the permission value set to 775.
All Cinder services run with the same user by default.
To obtain the Unix user ID:
You can specify the backup_share parameter in following formats:
hostname:path, ipv4addr:path, or [ipv6addr]:path.
For example: 1.2.3.4:/cinder_backup.
The Block Storage service (OpenStack Cinder) supports volume encryption using a
key stored in the Key Manager service (OpenStack Barbican). Such configuration
uses Linux Unified Key Setup (LUKS) to create an encrypted volume type and
attach it to the Compute service (OpenStack Nova) instances.
Nova retrieves the asymmetric key from Barbican and stores it
on the OpenStack compute node as a libvirt key to encrypt the volume
locally or on the backend and only after that transfers it to Cinder.
Note
To create an encrypted volume under a non-admin user, the
creator role must be assigned to the user.
When planning your cloud, consider that encryption may impact CPU.
MOSK enables its clients to define their own volume backends
for the MOSK Block Storage service (OpenStack Cinder)
through the spec:features:cinder:volume:backends structure in the
OpenStackDeployment custom resource:
The enabled and create_volume_type parameters are optional. With
create_volume_type set to true (default), the new backend
will be added to the Cinder bootstrap job. Once this job is completed,
the volume type for the custom backend will be created in OpenStack.
The supported value for type is statefulset.
The list of keys you can override in the values.yaml file of the Cinder
chart includes conf, images, labels, and pod.
When you define the custom backend for the Block Storage service,
MOSK deploys individual pods for it. These pods have
separate Secrets for configuration files and ConfigMaps for scripts.
Example of configuration of a custom volume backend for Cinder:
The configuration example deploys an additional StatefulSet for the Cinder
volume backend using the NFS driver, running a single replica on nodes
labeled kubernetes.io/hostname:service-node. Privilege escalation for
the Cinder volume and backup pods is driver-specific and may not be required.
Mirantis OpenStack for Kubernetes (MOSK) provides authentication,
service discovery, and distributed multi-tenant authorization through the
OpenStack Identity service, aka Keystone.
MOSK integrates with Mirantis Container Cloud Identity and
Access Management (IAM) subsystem to allow centralized management of users and
their permissions across multiple clouds.
The core component of Container Cloud IAM is Keycloak, the open-source identity
and access management software. Its primary function is to perform secure
authentication of cloud users against its built-in or various external
identity databases, such as LDAP directories, OpenID Connect or SAML
compatible identity providers.
By default, every MOSK cluster is integrated with the
Keycloak running in the Container Cloud management cluster. The integration
automatically provisions the necessary configuration on the
MOSK and Container Cloud IAM sides, such as the os
client object in Keycloak. However, for the federated users to get proper
permissions after logging in, the cloud operator needs to define the role
mapping rules specific to each MOSK environment.
MOSK enables you to connect external identity
provider to Keystone directly through the following structure in the
OpenStackDeployment custom resource:
The oidc_auth_type parameter specifies the Apache module to use:
oauth20 or oauth2. The oauth20 functionality is deprecated
and superseded by a new oauth2 module. You can configure two and more
identity providers only with the oauth2 module.
A region in MOSK represents a complete OpenStack cluster
that has a dedicated control plane and set of API endpoints. It is not uncommon
for operators of large clouds to offer their users several OpenStack regions,
which differ by their geographical location or purpose. In order to easily
navigate in a multi-region environment, cloud users need a way to distinguish
clusters by their names.
The region_name parameter of an OpenStackDeployment custom resource
specifies the name of the region that will be configured in all the OpenStack
services comprising the MOSK cluster upon the initial
deployment.
Important
Once the cluster is up and running, the cloud operator cannot
set or change the name of the region. Therefore, Mirantis recommends
selecting a meaningful name for the new region before the deployment starts.
For example, the region name can be based on the name of the data center the
cluster is located in.
Application credentials is a mechanism in the MOSK
Identity service that enables application automation tools, such as shell
scripts, Terraform modules, Python programs, and others, to securely
perform various actions in the cloud API in order to deploy and manage
application components.
Application credentials is a modern alternative to the legacy approach where
every application owner had to request several technical user accounts
to ensure their tools could authenticate in the cloud.
For the details on how to create and authenticate with application credentials,
refer to Manage application credentials.
Application credentials must be explicitly enabled for federated users¶
By default, cloud users logging in to the cloud through the Mirantis Container
Cloud IAM or any external identity provider cannot use the application
credentials mechanism.
An application credential is heavily tied to the account of the cloud user
owning it. An application automation tool that is a consumer of the credential
acts on behalf of the human user who created the credential. Each action that
the application automation tool performs gets authorized against the
permissions, including roles and groups, the user currently has.
The source of truth about a federated user permissions is the identity
provider. This information gets temporary transferred to the cloud’s
Identity service inside a token once the user authenticates. By default,
if such a user creates an application credential and passes it to the
automation tool, there is no data to validate the tool’s action on
the user’s behalf.
However, a cloud operator can configure the authorization_ttl parameter
for an identity provider object to enable caching of its users authorization
data. The parameter defines for how long in minutes the information about
user permissions is preserved in the database after the user successfully
logs in to the cloud.
Warning
Authorization data caching has security implications. In case a
federated user account is revoked or his permissions change in the identity
provider, the cloud Identity service will still allow performing actions
on the user behalf until the cached data expires or the user
re-authenticates in the cloud.
To set authorization_ttl to, for example, 60 minutes for the keycloak
identity provider in Keystone:
Defines the domain-specific configuration and is useful for integration
with LDAP. An example of OsDpl with LDAP integration, which will create
a separate domain.with.ldap domain and configure it to use LDAP as
an identity driver:
Mirantis OpenStack for Kubernetes (MOSK) provides the image management
capability through the OpenStack Image service, aka Glance.
The Image service enables you to discover, register, and retrieve virtual
machine images. Using the Glance API, you can query virtual machine image
metadata and retrieve actual images.
MOSK deployment profiles include the Image service in the
core set of services. You can configure the Image service through the
spec:features definition in the OpenStackDeployment custom resource.
MOSK can automatically verify the cryptographic signatures
associated with images to ensure the integrity of their data. A signed image
has a few additional properties set in its metadata that include
img_signature, img_signature_hash_method, img_signature_key_type,
and img_signature_certificate_uuid. You can find more information about
these properties and their values in the upstream OpenStack documentation.
MOSK performs image signature verification during the
following operations:
A cloud user or a service creates an image in the store and starts
to upload its data. If the signature metadata properties are set
on the image, its content gets verified against the signature.
The Image service accepts non-signed image uploads.
A cloud user spawns a new instance from an image. The Compute service
ensures that the data it downloads from the image storage matches
the image signature. If the signature is missing or does not match the
data, the operation fails. Limitations apply, see
Known limitations.
A cloud user boots an instance from a volume, or creates a new volume from
an image. If the image is signed, the Block Storage service compares the
downloaded image data against the signature. If there is a mismatch, the
operation fails.
The service will accept a non-signed image as a source for a volume.
Limitations apply, see Known limitations.
Every MOSK cloud is pre-provisioned with a baseline set of
images containing most popular operating systems, such as Ubuntu, Fedora,
CirrOS.
In addition, a few services in MOSK rely on the creation
of service instances to provide their functions, namely the Load Balancer
service and the Bare Metal service, and require corresponding images to exist
in the image store.
When image signature verification is enabled during the cloud deployment,
all these images get automatically signed with a pre-generated self-signed
certificate. Enabling the feature in an already existing cloud requires manual
signing of all of the images stored in it. Consult the OpenStack documentation
for an example of the image signing procedure.
The image signature verification is supported for LVM and local backends for
ephemeral storage.
The functionality is not compatible with Ceph-backed ephemeral storage
combined with RAW formatted images. The Ceph copy-on-write mechanism enables
the user to create instance virtual disks without downloading the image to
a compute node, the data is handled completely on the side of a Ceph cluster.
This enables you to spin up instances almost momentarily but makes it
impossible to verify the image data before creating an instance from it.
The Image service does not enforce the presence of a signature in
the metadata when the user creates a new image. The service will accept the
non-signed image uploads.
The Image service does not verify the correctness of an image signature
upon update of the image metadata.
MOSK does not validate if the certificate used to sign an
image is trusted,
it only ensures the correctness of the signature itself. Cloud users are
allowed to use self-signed certificates.
The Compute service does not verify image signature for Ceph backend when
the RAW image format is used as described in
Supported storage backends.
The Compute service does not verify image signature if the image is already
cached on the target compute node.
The Instance HA service may experience issues when auto-evacuating instances
created from signed images if it does have access to the corresponding
secrets in the Key manager service.
The Block Storage service does not perform image signature verification
when a Ceph backend is used and the images are in the RAW format.
The Block Storage service does not enforce the presence of a signature on
the images.
Instead of Swift, such configuration uses an S3 client to upload server-side
encrypted objects. Using server-side encryption, the data is sent over a secure
HTTPS connection in an unencrypted form and the Ceph Object Gateway stores that
data in the Ceph cluster in an encrypted form.
Defines the list of custom OpenStack Dashboard themes.
Content of the archive file with a theme depends on the level of
customization and can include static files, Django templates, and other
artifacts. For the details, refer to OpenStack official documentation:
Customizing Horizon Themes.
spec:features:horizon:themes:-name:theme_namedescription:The brand new themeurl:https://<path to .tgz file with the contents of custom theme>sha256summ:<SHA256 checksum of the archive above>
The Telemetry services are part of OpenStack services
available in Mirantis OpenStack for Kubernetes (MOSK). The Telemetry
services monitor OpenStack components, collect and store the telemetry data
from them, and perform responsive actions upon this data. See
OpenStack cluster for details about OpenStack services in
MOSK.
OpenStack Ceilometer is a service that collects data from various OpenStack
components. The service can also collect and process notifications from
different OpenStack services. Ceilometer stores the data in the Gnocchi
database. The service is specified as metering in the
OpenStackDeployment custom resource (CR).
Gnocchi is an open-source time series database. One of the advantages of this
database is the ability to pre-aggregate the telemetry data while storing it.
Gnocchi is specified as metric in the OpenStackDeployment CR.
OpenStack Aodh is part of the Telemetry project. Aodh provides a service that
creates alarms based on various metric values or specific events and triggers
response actions. The service uses data collected and stored by Ceilometer
and Gnocchi. Aodh is specified as alarming in the OpenStackDeployment
CR.
The Telemetry feature in MOSK has a single mode.
The autoscaling mode provides settings for telemetry data collection and
storing. The OpenStackDeployment CR should have this mode specified for the
correct work of the OpenStack Telemetry services. The autoscaling mode has
the following notable configurations:
Gnocchi stores cache and data using the Redis storage driver.
Metric stores data for one hour with a resolution of 1 minute.
The Telemetry services are disabled by default in MOSK.
You have to enable them
in the openstackdeployment.yaml file (the OpenStackDeployment CR).
The following code block provides an example of deploying the Telemetry
services as part of MOSK:
Gnocchi is not an OpenStack service, so the settings related to its
functioning should be included in the spec:common:infra section of the
OpenStackDeployment CR.
The Ceilometer configuration files contain many list structures. Overriding
list elements in YAML files is context-dependent and error-prone. Therefore,
to override these configuration files, define the spec:services
structure in the OpenStackDeployment CR.
The spec:services structure provides the ability to use a complete file as
text and not as YAML data structure.
Overriding through the spec:services structure is possible for the
following files:
pipeline.yaml
polling.yaml
meters.yaml
gnocchi_resources.yaml
event_pipeline.yaml
event_definitions.yaml
An example of overriding through the OpenStackDeployment CR
By default, the autoscaling mode collects the data related to
CPU, disk, and memory every minute. The autoscaling mode collects the rest of
the available metrics every hour.
The following example shows the overriding of the polling.yaml
configuration file through the spec:services structure of the
OpenStackDeployment CR.
The Bare Metal service (Ironic) is an extra OpenStack service that can be
deployed by the OpenStack Operator. This section provides the
baremetal-specific configuration options of the OpenStackDeployment
resource.
To provision a user image onto a bare metal server, Ironic boots a node with
a ramdisk image. Depending on the node’s deploy interface and hardware, the
ramdisk may require different drivers (agents). MOSK
provides tinyIPA-based ramdisk images and uses the direct deploy interface
with the ipmitool power interface.
Since the bare metal nodes hardware may require additional drivers,
you may need to build a deploy ramdisk for particular hardware. For more
information, see Ironic Python Agent Builder.
Be sure to create a ramdisk image with the version of Ironic Python Agent
appropriate for your OpenStack release.
Ironic supports the flat and multitenancy networking modes.
The flat networking mode assumes that all bare metal nodes are
pre-connected to a single network that cannot be changed during the
virtual machine provisioning. This network with bridged interfaces
for Ironic should be spread across all nodes including compute nodes
to allow plug-in regular virtual machines to connect to Ironic network.
In its turn, the interface defined as provisioning_interface should
be spread across gateway nodes. The cloud operator can perform
all these underlying configuration through the L2 templates.
Example of the OsDpl resource illustrating the configuration for the flat
network mode:
spec:features:services:-baremetalneutron:external_networks:-bridge:ironic-pxeinterface:<baremetal-interface>network_types:-flatphysnet:ironicvlan_ranges:nullironic:# The name of neutron network used for provisioning/cleaning.baremetal_network_name:ironic-provisioningnetworks:# Neutron baremetal network definition.baremetal:physnet:ironicname:ironic-provisioningnetwork_type:flatexternal:trueshared:truesubnets:-name:baremetal-subnetrange:10.13.0.0/24pool_start:10.13.0.100pool_end:10.13.0.254gateway:10.13.0.11# The name of interface where provision services like tftp and ironic-conductor# are bound.provisioning_interface:br-baremetal
The multitenancy network mode uses the neutron Ironic network
interface to share physical connection information with Neutron. This
information is handled by Neutron ML2 drivers when plugging a Neutron port
to a specific network. MOSK supports the
networking-generic-switch Neutron ML2 driver out of the box.
Example of the OsDpl resource illustrating the configuration for the
multitenancy network mode:
spec:features:services:-baremetalneutron:tunnel_interface:ens3external_networks:-physnet:physnet1interface:<physnet1-interface>bridge:br-exnetwork_types:-flatvlan_ranges:nullmtu:null-physnet:ironicinterface:<physnet-ironic-interface>bridge:ironic-pxenetwork_types:-vlanvlan_ranges:1000:1099ironic:# The name of interface where provision services like tftp and ironic-conductor# are bound.provisioning_interface:<baremetal-interface>baremetal_network_name:ironic-provisioningnetworks:baremetal:physnet:ironicname:ironic-provisioningnetwork_type:vlansegmentation_id:1000external:trueshared:falsesubnets:-name:baremetal-subnetrange:10.13.0.0/24pool_start:10.13.0.100pool_end:10.13.0.254gateway:10.13.0.11
The supported backend for Designate is PowerDNS. If required, you can specify
whether to use an external IP address or UDP, TCP, or TCP + UDP kind
of Kubernetes for the PowerDNS service.
To configure LoadBalancer for PowerDNS, use the spec:features:designate
definition in the OpenStackDeployment custom resource.
The list of supported options includes:
external_ip - Optional. An IP address for the LoadBalancer service. If
not defined, LoadBalancer allocates the IP address.
protocol - A protocol for the Designate backend in Kubernetes. Can only
be udp, tcp, or tcp+udp.
type - The type of the backend for Designate. Can only be powerdns.
Due to an issue in the dnspython library, Asynchronous Transfer Full Range
(AXFR) requests do not work and cause inability to set up a secondary DNS zone.
The issue affects OpenStack Victoria and will be fixed in the Yoga release.
MOSK Key Manager service (OpenStack Barbican) provides
secure storage, provisioning, and management of cloud application secret data,
such as Symmetric Keys, Asymmetric Keys, Certificates, and raw binary data.
Instance High Availability service (OpenStack Masakari) enables cloud users
to ensure that their instances get automatically evacuated from a failed
hypervisor.
The Instance HA service is not included into the core set of services and needs
to be explicitly enabled in the OpenStackDeployment custom resource.
Parameter
features:services:instance-ha
Usage
Enables Masakari, the OpenStack service that ensures high availability
of instances running on a host. To enable the service, add
instance-ha to the service list:
Available since MOSK 24.3 as GAAvailable since MOSK 22.5 as TechPreview
MOSK Shared Filesystems service (OpenStack Manila) provides
Shared Filesystems as a service. The Shared Filesystems service enables you to
create and manage shared filesystems in your multi-project cloud environments.
Note
MOSK does not support the Shared Filesystems
service for the clusters with Tungsten Fabric as a networking backend.
The Shared FileSystems service consists of manila-api,
manila-scheduler, and manila-share services. All these services
communicate with each other through the AMQP protocol and store their data
in the MySQL database.
manila-api
Provides a stable RESTful API, authenticates and routes requests
throughout the Shared Filesystem service
manila-scheduler
Responsible for scheduling and routing requests to the appropriate
manila-share service by determining which backend should
serve as the destination for a share creation request
manila-share
Responsible for managing Shared Filesystems service devices, specifically
the backend ones
The diagram below illustrates how the Shared FileSystems services communicate
with each other.
MOSK ensures support for different kind of equipment and
shared filesystems by means of special drivers that are part of the
manila-share service. Also, these divers determine the ability to restrict
access to data stored on a shared filesystem, list of operations with Manila
volumes, and types of connections to the client network.
Driver Handles Share Servers (DHSS) is one of the main parameters that
define the Manila workflow including the way the Manila driver makes clients
access shared filesystems. Some drivers support only one DHSS mode,
for example, the LVM share driver. Others support both modes, for example,
the Generic driver. If the DHSS is set to False in the driver
configuration, the driver does not prepare the share server that provides
access to the share filesystems and the server and network setup should be
performed by the administrator. In this case, the Shared Filesystems service
only manages the server in its own configuration.
Untitled Diagram
If the driver configuration includes DHSS=True, the driver creates a
service virtual machine that provides access to shared filesystems.
Also, when DHSS=True, the Shared Filesystems service performs a network
setup to provide client’s access to the created service virtual machine.
For working with the service virtual machine, the Shared Filesystems service
requires a separate service network that must be included in the driver’s
configuration as well.
Let’s describe the Generic driver as an example for the DHSS=True case.
There are two network topologies for connecting client’s network to the
service virtual machine, which depend of the
connect_share_server_to_tenant_network parameter.
If the connect_share_server_to_tenant_network parameter is set to
False, which is default, the client must create a shared network connected
to a public router. IP addresses from this network will be granted access to
the created shared filesystem. The Shared Filesystems service creates a subnet
in its service network where the network port of the new service virtual
machine and network port of the clent’s router will be connected to. When a
new shared filesystem is created, the client’s machine is granted access to it
through the router.
Untitled Diagram
If the connect_share_server_to_tenant_network parameter is set to True,
the Shared Filesystems service creates the service virtual machines with two
network interfaces. One of them is connected to the service network while the
other one is connected to the client’s network.
The Shared Filesystems service is not included into the core set of services
and needs to be explicitly enabled in the OpenStackDeployment custom
resource.
To install the OpenStack Manila services, add the shared-file-system
keyword to the spec:features:services list:
In a cloud environment where resources are shared across all workloads,
those resources often become a point of contention.
For example, it is not uncommon for an oversubscribed compute node to
experience the noisy neighbor problem, when one of the instances may
start consuming a lot more resources than usually, negatively affecting
performance of other instances running on the same node.
In such cases, an intervention is required from the cloud operators
to manually re-distribute workloads in the cluster to achieve more equal
utilization of resources.
The Dynamic Resource Balancer (DRB) service continiously measures resource
usage on hypervisors and redistributes workloads to achieve some optimum
target, thereby eliminating the need for manual interventions from cloud
operators.
The DRB service is implemented as a Kubernetes operator, controlled by
the custom resource of kind:DRBConfig. Unless at least one resource
of such kind is present, the service does not perform any operations. Cloud
operators who want to enable the DRB service for their MOSK
clouds, need to create the resource with proper configuration.
The DRB controller consists of the following сomponents interacting with each
other:
collector
Collects the statistics of resource consumption in the cluster
scheduler
Based on the data from the collector, makes decisions whether
cloud resources need to be relocated to achieve the optimum
actuator
Executes the resource relocation decisions made by scheduler
Out of the box, these service components implement a very simple logic, which,
however, can be individually enhanced according to the needs of a specific
cloud environment by utilizing their pluggable architecture. The plugins
need to be written in Python programming language and injected as modules
into the DRB service by building a custom drb-controller container image.
Default plugins as well as custom plugins are configured through the
corresponding sections of DRBConfig custom resources.
Also, it is possible to limit the scope of DRB decisions and actions
to only a subset of hosts. This way, you can model the node grouping
schema that is configured in OpenStack, for example, compute node
aggregates and availability zones, to avoid DRB service attempting resource
placement changes that cannot be fulfilled by MOSK Compute
service (OpenStack Nova).
The spec section of configuration consists of the following main parts:
collector
Specifies and configures the collector plugin to collect the metrics on
which decisions are based. At a minimum, the name of the plugin must
be provided.
scheduler
Specifies and configures the scheduler plugin that will make decisions
based on the collected metrics. At a minimum, the name of the plugin
must be provided.
actuator
Specifies and configures the actuator plugin that will move resources
around. At a minimum, the name of the plugin must be provided.
reconcileInterval
Defines time in seconds between reconciliation cycles. Should be large
enough for the metrics to settle after resources are moved around.
For the default stacklight collector plugin, this value must equal
at least 300.
hosts
Specifies the list of cluster hosts to which this given instance of
DRBConfig applies. This means that only metrics from these hosts
will be used for making decisions, only resources belonging to these
hosts will be considered for re-distribution, and only these hosts
will be considered as possible targets for re-distribution.
You can create multiple DRBConfig resources that watch over
non-overlapping sets of hosts.
Default of this setting is an empty list that implies all hosts.
migrateAny
A boolean flag that the scheduler plugin can consider when making
decisions, allowing cloud operators and users to opt certain workloads
in or out of redistribution.
For the default vm-optimize scheduler plugin:
migrateAny:true (default) - any instance can be migrated, except for
instances tagged with lcm.mirantis.com:no-drb, explicitly opting out
of the DRB functionality
migrateAny:false - only instances tagged with
lcm.mirantis.com:drb are migrated by the DRB service,
explicitly opting in to the DRB functionality
Collects node_load5, machine_cpu_cores, and
libvirt_domain_info_cpu_time_seconds:rate5m metrics
from the StackLight service running in the MOSK cluster.
Does not have options available.
Requires the reconcileInterval set to at least 300 (5 minutes),
as both the collected node and instance CPU usage metrics are effectively
averaged over a 5-minute sliding window.
Attempts to minimize the standard deviation of node load. The node load is
normalized per CPU core, so heterogeneous compute hosts can be compared.
Available options:
load_threshold
The value in percent of the compute host load after which the host will be
considered overloaded and attempts will be made to migrate instances
from it. Defaults to 80.
min_improvement
Minimal improvement of the optimization metric in percent.
While making decisions, the scheduler attempts to predict the resulting load
distribution to determine if moving resources is beneficial. If the total
improvement after all necessary decisions is calculated to be less than
min_improvement, no decisions will be executed.
Defaults to 0, any potential improvement is acted upon.
Setting this to a higher value should allow avoiding instance migrations
that provide negligible improvements.
Warning
The current version of this plugin takes into account only basic
resource classes when making scheduling decisions. These include only RAM,
disk, and vCPU count from the instance flavor. It does not take into account
any other information including specific image or aggregate metadata, custom
resource classes, PCI devices, NUMA, hugepages, and so on. Moving around
instances that consume such resources will more likely fail as the current
implementation of the scheduler plugin cannot reliably predict if such
instances fit onto the selected target host.
Live migrates instances to specific hosts. Assumes any migration is possible.
Refer to the hosts and migrateAny options above to learn how to control
which instances are migrated to which locations.
Available options:
max_parallel_migrations
Defines the number of instances to migrate in parallel.
Defaults to 10.
This value applies to all decisions being processed, so it may involve
instances from different hosts. Meanwhile, the nova-compute service may
have its own limits on how many live migrations a given host can handle
in parallel.
migration_polling_interval
Defines the interval in seconds for checking the instance status while
the latter is being migrated
Defaults to 5.
migration_timeout
Defines the interval in seconds after which an unfinished migration is
considered failed.
OpenStack and auxiliary services are running as containers in the kind: Pod
Kubernetes resources. All long-running services are governed by one of
the ReplicationController-enabled Kubernetes resources, which include
either kind: Deployment, kind: StatefulSet, or kind: DaemonSet.
The placement of the services is mostly governed by the Kubernetes node labels.
The labels affecting the OpenStack services include:
openstack-control-plane=enabled - the node hosting most of the OpenStack
control plane services.
openstack-compute-node=enabled - the node serving as a hypervisor for
Nova. The virtual machines with tenants workloads are created there.
openvswitch=enabled - the node hosting Neutron L2 agents and OpenvSwitch
pods that manage L2 connection of the OpenStack networks.
openstack-gateway=enabled - the node hosting Neutron L3, Metadata and
DHCP agents, Octavia Health Manager, Worker and Housekeeping components.
Note
OpenStack is an infrastructure management platform. Mirantis OpenStack
for Kubernetes (MOSK) uses Kubernetes mostly for
orchestration and dependency isolation. As a result, multiple OpenStack
services are running as privileged containers with host PIDs and Host
Networking enabled. You must ensure that at least the user with the
credentials used by Helm/Tiller (administrator) is capable of creating
such Pods.
While the underlying Kubernetes cluster is configured to use Ceph CSI
for providing persistent storage for container workloads, for some
types of workloads such networked storage is suboptimal due to latency.
This is why the separate local-volume-provisioner CSI is
deployed and configured as an additional storage class.
Local Volume Provisioner is deployed as kind: DaemonSet.
Database
A single WSREP (Galera) cluster of MariaDB is deployed as the SQL
database to be used by all OpenStack services. It uses the storage class
provided by Local Volume Provisioner to store the actual database files.
The service is deployed as kind: StatefulSet of a given size, which
is no less than 3, on any openstack-control-plane node. For details,
see OpenStack database architecture.
Messaging
RabbitMQ is used as a messaging bus between the components of the
OpenStack services.
A separate instance of RabbitMQ is deployed for each OpenStack service
that needs a messaging bus for intercommunication between its
components.
An additional, separate RabbitMQ instance is deployed to serve as
a notification messages bus for OpenStack services to post their own
and listen to notifications from other services.
StackLight also uses this message bus to collect notifications for
monitoring purposes.
Each RabbitMQ instance is a single node and is deployed as
kind: StatefulSet.
Caching
A single multi-instance of the Memcached service is deployed to be used
by all OpenStack services that need caching, which are mostly HTTP API
services.
Coordination
A separate instance of etcd is deployed to be used by Cinder,
which require Distributed Lock Management for coordination between its
components.
Ingress
Is deployed as kind: DaemonSet.
Image pre-caching
A special kind: DaemonSet is deployed and updated each time the
kind: OpenStackDeployment resource is created or updated.
Its purpose is to pre-cache container images on Kubernetes nodes, and
thus, to minimize possible downtime when updating container images.
This is especially useful for containers used in kind: DaemonSet
resources, as during the image update Kubernetes starts to pull the
new image only after the container with the old image is shut down.
keystoneclient - a separate kind: Deployment with a pod that
has the OpenStack CLI client as well as relevant plugins installed,
and OpenStack admin credentials mounted. Can be used by
administrator to manually interact with OpenStack APIs from within a
cluster.
Image (Glance)
Supported backend is RBD (Ceph is required).
Volume (Cinder)
Supported backend is RBD (Ceph is required).
Network (Neutron)
Supported backends are Open vSwitch and Tungsten Fabric.
Placement
Compute (Nova)
Supported hypervisor is Qemu/KVM through libvirt library.
Dashboard (Horizon)
DNS (Designate)
Supported backend is PowerDNS.
Load Balancer (Octavia)
Ceph Object Gateway (SWIFT)
Provides the object storage and a Ceph Object Gateway Swift API that is
compatible with the OpenStack Swift API. You can manually enable the
service in the OpenStackDeployment CR as described in
Deploy an OpenStack cluster.
Instance HA (Masakari)
An OpenStack service that ensures high availability of instances running
on a host. You can manually enable Masakari in the
OpenStackDeployment CR as described in Deploy an OpenStack cluster.
Orchestration (Heat)
Key Manager (Barbican)
The supported backends include:
The built-in Simple Crypto, which is used by default
Vault
Vault by HashiCorp is a third-party system and is not
installed by MOSK. Hence,
the Vault storage backend should be
available elsewhere on the user environment and accessible from
the MOSK deployment.
If the Vault backend is used, you can configure Vault in the
OpenStackDeployment CR as described in
Deploy an OpenStack cluster.
Tempest
Runs tests against a deployed OpenStack cloud. You can manually enable
Tempest in the OpenStackDeployment CR as described in
Deploy an OpenStack cluster.
Telemetry services include alarming (aodh), metering (Ceilometer),
and metric (Gnocchi). All services should be enabled together through
the list of services to be deployed in the OpenStackDeployment CR
as described in Deploy an OpenStack cluster.
Shared Filesystems (OpenStack Manila)
Provides Shared Filesystems as a service that enables you to create and
manage shared filesystems in a multi-project cloud environments.
For details, refer to Shared Filesystems service.
A complete setup of a MariaDB Galera cluster for OpenStack is illustrated
in the following image:
MariaDB server pods are running a Galera multi-master cluster. Clients
requests are forwarded by the Kubernetes mariadb service to the
mariadb-server pod that has the primary label. Other pods from
the mariadb-server StatefulSet have the backup label. Labels are
managed by the mariadb-controller pod.
The MariaDB Controller periodically checks the readiness of the
mariadb-server pods and sets the primary label to it if the following
requirements are met:
The primary label has not already been set on the pod.
The pod is in the ready state.
The pod is not being terminated.
The pod name has the lowest integer suffix among other ready pods in
the StatefulSet. For example, between mariadb-server-1 and
mariadb-server-2, the pod with the mariadb-server-1 name is
preferred.
Otherwise, the MariaDB Controller sets the backup label. This means that
all SQL requests are passed only to one node while other two nodes are in
the backup state and replicate the state from the primary node.
The MariaDB clients are connecting to the mariadb service.
The OpenStack Controller runs in a set of containers in a pod in Kubernetes.
The OpenStack Controller is deployed as a Deployment with 1 replica only.
The failover is provided by Kubernetes that automatically restarts the
failed containers in a pod.
However, given the recommendation to use a separate Kubernetes cluster
for each OpenStack deployment, the controller in envisioned mode for
operation and deployment will only manage a single OpenStackDeployment
resource, making the proper HA much less of an issue.
The OpenStack Controller is written in Python using Kopf, as a Python
framework to build Kubernetes operators, and Pykube, as a Kubernetes API
client.
Using Kubernetes API, the controller subscribes to changes to resources of
kind: OpenStackDeployment, and then reacts to these changes by creating,
updating, or deleting appropriate resources in Kubernetes.
The basic child resources managed by the controller are Helm releases.
They are rendered from templates taking into account
an appropriate values set from the main and features fields in the
OpenStackDeployment resource.
Then, the common fields are merged to resulting data structures.
Lastly, the services fields are merged providing the final and precise override
for any value in any Helm release to be deployed or upgraded.
The constructed values are then used by the OpenStack Controller during a
Helm release installation.
The core container that handles changes in the osdpl object.
helmbundle
The container that watches the helmbundle objects
and reports their statuses to the osdpl object in
status:children. See OpenStackDeploymentStatus custom resource for details.
health
The container that watches all Kubernetes native
resources, such as Deployments, Daemonsets, Statefulsets,
and reports their statuses to the osdpl object in
status:health. See OpenStackDeploymentStatus custom resource for details.
secrets
The container that provides data exchange between different
components such as Ceph.
The CustomResourceDefinition resource in Kubernetes uses the
OpenAPI Specification version 2 to specify the schema of the resource
defined. The Kubernetes API outright rejects the resources that do not
pass this schema validation.
The language of the schema, however, is not expressive enough to define a
specific validation logic that may be needed for a given resource. For this
purpose, Kubernetes enables the extension of its API with
Dynamic Admission Control.
For the OpenStackDeployment (OsDpl) CR the ValidatingAdmissionWebhook
is a natural choice. It is deployed as part of OpenStack Controller
by default and performs specific extended validations when an OsDpl CR is
created or updated.
The inexhaustive list of additional validations includes:
Deny the OpenStack version downgrade
Deny the OpenStack version skip-level upgrade
Deny the OpenStack master version deployment
Deny upgrade to the OpenStack master version
Deny upgrade if any part of an OsDpl CR specification
changes along with the OpenStack version
Under specific circumstances, it may be viable to disable the Admission
Controller, for example, when you attempt to deploy or upgrade to the master
version of OpenStack.
Warning
Mirantis does not support MOSK deployments
performed without the OpenStackDeployment Admission Controller enabled.
Disabling of the OpenStackDeployment Admission Controller is only
allowed in staging non-production environments.
To disable the Admission Controller, ensure that the following structures and
values are present in the openstack-controller HelmBundle resource:
MOSK provides the configurational capabilities through a
number of custom resources. This section is intended to provide detailed
overview of these custom resources and their possible configuration.
The OpenStackDeployment custom resource enables you to securely store
sensitive fields in Kubernetes secrets. To do that, verify that the
reference secret is present in the same namespace as the
OpenStackDeployment object and the
openstack.lcm.mirantis.com/osdpl_secret label is set to true.
The list of fields that can be hidden from OpenStackDeployment is limited
and defined by the OpenStackDeployment schema.
For example, to hide spec:features:ssl:public_endpoints:api_cert, use the
following structure:
Main elements of OpenStackDeployment custom resource¶
Element
Sub-element
Description
apiVersion
n/a
Specifies the version of the Kubernetes API that is used to create
this object
kind
n/a
Specifies the kind of the object
metadata
name
Specifies the name of metadata. Should be set in compliance with the
Kubernetes resource naming limitations
namespace
Specifies the metadata namespace. While technically it is possible to
deploy OpenStack on top of Kubernetes in other than openstack
namespace, such configuration is not included in the
MOSK system integration test plans. Therefore,
Mirantis does not recommend such scenario.
Warning
Both OpenStack and Kubernetes platforms provide resources
to applications. When OpenStack is running on top of Kubernetes,
Kubernetes is completely unaware of OpenStack-native workloads,
such as virtual machines, for example.
For better results and stability, Mirantis recommends using a
dedicated Kubernetes cluster for OpenStack, so that OpenStack and
auxiliary services, Ceph, and StackLight are the only Kubernetes
applications running in the cluster.
spec
openstack_version
Specifies the OpenStack release to deploy
preset
String that specifies the name of the preset, a predefined
configuration for the OpenStack cluster. A preset includes:
A set of enabled services that includes virtualization, bare
metal management, secret management, and others
Major features provided by the services, such as VXLAN encapsulation
of the tenant traffic
Integration of services
Every supported deployment profile incorporates an OpenStack preset.
Refer to Deployment profiles for the list of possible values.
size
String that specifies the size category for the OpenStack cluster.
The size category defines the internal configuration of the cluster
such as the number of replicas for service workers and timeouts, etc.
The list of supported sizes include:
tiny - for approximately 10 OpenStack compute nodes
small - for approximately 50 OpenStack compute nodes
medium - for approximately 100 OpenStack compute nodes
public_domain_name
Specifies the public DNS name for OpenStack services. This is a base
DNS name that must be accessible and resolvable by API clients of your
OpenStack cloud. It will be present in the OpenStack endpoints as
presented by the OpenStack Identity service catalog.
The TLS certificates used by the OpenStack services (see below) must
also be issued to this DNS name.
persistent_volume_storage_class
Specifies the Kubernetes storage class name used for services to create
persistent volumes. For example, backups of MariaDB. If not specified,
the storage class marked as default will be used.
features
Contains the top-level collections of settings for the OpenStack
deployment that potentially target several OpenStack services. The
section where the customizations should take place.
The features:services element contains a list of extra OpenStack
services to deploy. Extra OpenStack services are services that are not
included into preset.
The list of services available for configuration includes: Cinder, Nova,
Designate, Keystone, Glance, Neutron, Heat, Octavia, Barbican, Placement,
Ironic, aodh, Gnocchi, and Masakari.
Caution
Mirantis is not responsible for cloud operability in case
of default policies modifications but provides API to pass the required
configuration to the core OpenStack services.
Enables a tested set of policies that limits the global admin role to
only the user with admin role in the admin project or user with the
service role. The latter should be used only for service users utilizied
for communication between OpenStack services.
A low-level section that defines values that will be passed to all
OpenStack (spec:common:openstack) or auxiliary
(spec:common:infra) services Helm charts.
A section of the lowest level, enables the definition of
specific values to pass to specific Helm charts on a one-by-one basis:
Warning
Mirantis does not recommend changing the default settings for
spec:artifacts, spec:common, and spec:services elements.
Customizations can compromise the OpenStack deployment update and upgrade
processes.
However, you may need to edit the spec:services section to limit
hardware resources in case of a hyperconverged architecture as described in
Limit HW resources for hyperconverged OpenStack compute nodes.
Specifies the standard logging levels for OpenStack services that
include the following, at increasing severity: TRACE, DEBUG,
INFO, AUDIT, WARNING, ERROR, and CRITICAL.
Depending on the use case, you may need to configure the same application
components differently on different hosts. MOSK enables
you to easily perform the required configuration through node-specific
overrides at the OpenStack Controller side.
The limitation of using the node-specific overrides is that they override
only the configuration settings while other components, such as startup
scripts and others, should be reconfigured as well.
Caution
The overrides have been implemented in a similar way to the
OpenStack node and node label specific DaemonSet configurations.
Though, the OpenStack Controller node-specific settings conflict
with the upstream OpenStack node and node label specific DaemonSet
configurations. Therefore, we do not recommend configuring node and
node label overrides.
The list of allowed node labels is located in the Cluster object status
providerStatus.releaseRef.current.allowedNodeLabels field.
If the value field is not defined in allowedNodeLabels, a label can
have any value.
Before or after a machine deployment, add the required label from the allowed
node labels list with the corresponding value to
spec.providerSpec.value.nodeLabels in machine.yaml. For example:
The addition of a node label that is not available in the list of allowed node
labels is restricted.
The node-specific settings are activated through the spec:nodes
section of the OsDpl CR. The spec:nodes section contains the following
subsections:
features- implements overrides for a limited subset of fields and is
constructed similarly to spec::features
services - similarly to spec::services, enables you to override
settings in general for the components running as DaemonSets.
Example configuration:
spec:nodes:<NODE-LABEL>::<NODE-LABEL-VALUE>:features:# Detailed information about features might be found at# openstack_controller/admission/validators/nodes/schema.yamlservices:<service>:<chart>:<chart_daemonset_name>:values:# Any value from specific helm chart
The resource of kind OpenStackDeploymentStatus is a custom resource that
describes the status of an OpenStack deployment. To obtain detailed information
about the schema of an OpenStackDeploymentStatus custom resource:
OPENSTACKVERSION displays the actual OpenStack version of the
deployment
CONTROLLERVERSION indicates the version of the OpenStack controller
responsible for the deployment
STATE reflects the current status of life-cycle management. The list
of possible values includes:
APPLYING indicates that some Kubernetes objects for applications
are in the process of being applied
APPLIED indicates that all Kubernetes objects for applications
have been applied to the latest state
LCMPROGRESS reflects the current progress of STATE in the format
X/Y, where X denotes the number of applications with Kubernetes objects
applied and in the actual state, and Y represents the total number of
applications managed by the OpenStack controller
HEALTH provides an overview of the current health status of the
OpenStack deployment in the format X/Y, where X represents the number
of applications with notReady pods, and Y is the total number of
applications managed by the OpenStack controller
MOSKRELEASE displays the current product release of the OpenStack
deployment
The services subsection provides detailed information of LCM performed with
a specific service. This is a dictionary where keys are service names, for
example, baremetal or compute and values are dictionaries with the
following items.
The OpenStack Controller enables you to modify its configuration at runtime
without restarting. MOSK stores the controller configuration
in the openstack-controller-config ConfigMap in the osh-system
namespace of your cluster.
To retrieve the OpenStack Controller configuration ConfigMap, run:
OpenStack Controller extra configuration parameters¶
Section
Parameter
Default value
Description
[osctl]
wait_application_ready_timeout
1200
The number of seconds to wait for all application components
to become ready.
wait_application_ready_delay
10
The number of seconds before going to the sleep mode between attempts
to verify if the application is ready.
node_not_ready_flapping_timeout
120
The amount of time to wait for the flapping node.
[helmbundle]
manifest_enable_timeout
600
The number of seconds to wait until the values set in the manifest
are propagated to the dependent objects.
manifest_enable_delay
10
The number of seconds between attempts to verify if the values
were applied.
manifest_disable_timeout
600
The number of seconds to wait until the values are removed from
the manifest and propagated to the child objects.
manifest_disable_delay
10
The number of seconds between attempts to verify if the values were
removed from the release.
manifest_purge_timeout
600
The number of seconds to wait until the Kubernetes object is removed.
manifest_purge_delay
10
The number of seconds between attempts to verify if the Kubernetes
object is removed.
manifest_apply_delay
10
The number of seconds to pause for the Helm bundle changes.
[maintenance]
instance_migrate_concurrency
1
The number of instances to migrate concurrently.
nwl_parallel_max_compute
30
The maximum number of compute nodes allowed for a parallel update.
nwl_parallel_max_gateway
1
The maximum number of gateway nodes allowed for a parallel update.
respect_nova_az
true
Respect Nova availability zone (AZ). The true value allows
the parallel update only for the compute nodes in the same AZ.
ndr_skip_instance_check
false
The flag to skip the instance verification on a host before proceeding
with the node removal. The false value blocks the node removal
until at least one instance exists on the host.
ndr_skip_volume_check
false
The flag to skip the volume verification on a host before proceeding
with the node removal. The false value blocks the node removal
until at least one volume exists on the host. A volume is tied to
a specific host only for the LVM backend.
MOSK relies on the MariaDB Galera cluster to provide
its OpenStack components with a reliable storage of persistent data.
For successful long-term operations of a MOSK cloud, it
is crucial to ensure the healthy state of the OpenStack database as well as the
safety of the data stored in it. To help you with that, MOSK
provides built-in automated procedures for OpenStack database maintenance,
backup, and restoration. The hereby chapter describes the internal mechanisms
and configuration details for the provided tools.
Overview of the OpenStack database backup and restoration¶
MOSK relies on the MariaDB Galera cluster to provide
its OpenStack components with a reliable storage for persistent data.
Mirantis recommends backing up your OpenStack databases daily to ensure
the safety of your cloud data. Also, you should always create an instant
backup before updating your cloud or performing any kind of potentially
disruptive experiment.
MOSK has a built-in automated backup routine that can be
triggered manually or by schedule. For detailed information about the process
of MariaDB Galera cluster backup, refer to Workflows of the OpenStack database backup and restoration.
Backup and restoration can only be performed against the OpenStack database
as a whole. Granular per-service or per-table procedures are not supported
by MOSK.
By default, periodic backups are turned off. Though, a cloud operator can
easily enable this capability by adding the following structure to the
OpenStackDeployment custom resource:
By default, MOSK backup routine stores the OpenStack
database data into the Mirantis Ceph cluster, which is a part of the same
cloud. This is sufficient for the vast majority of clouds. However, you may
want to have the backup data stored off the cloud to comply with specific
enterprise practices for infrastructure recovery and data safety.
The size of a backup storage volume depends directly on the size of the
MOSK cluster, which can be determined through the
size parameter in the OpenStackDeployment CR.
The list of the recommended sizes for a minimal backup volume includes:
20 GB for the tiny cluster size
40 GB for the small cluster size
80 GB for the medium cluster size
If required, you can change the default size of a database backup volume.
However, make sure that you configure the volume size before OpenStack
deployment is complete. This is because there is no automatic way to
resize the backup volume once the cloud is deployed. Also, only the local
backup storage (Ceph) supports the configuration of the volume size.
To change the default size of the backup volume, use the following structure
in the OpenStackDeployment CR:
To store the backup data to a local Mirantis Ceph, the MOSK
underlying Kubernetes cluster needs to have a preconfigured storage class for
Kubernetes persistent volumes with the Ceph cluster as a storage backend.
When restoring the OpenStack database from a local Ceph storage, the cron job
restores the state on each MariaDB node sequentially. It is not possible to
perform parallel restoration because Ceph Kubernetes volumes do not support
concurrent mounting from multiple places.
MOSK provides you with a capability to store the OpenStack
database data outside of the cloud, on an external storage device that supports
common data access protocols, such as third-party NAS appliances.
Workflows of the OpenStack database backup and restoration¶
This section provides technical details about the internal implementation
of automated backup and restoration routines built into
MOSK. The below information would be helpful for
troubleshooting of any issues related to the process or understanding the
impact these procedures impose on a running cloud.
The mariadb-phy-backup job launches the
mariadb-phy-backup-<TIMESTAMP> pod. This pod contains the main backup
script, which is responsible for:
Basic sanity checks and choosing right node for backup
Verifying the wsrep status and changing the wsrep_desync parameter
settings
Managing the mariadb-phy-backup-runner pod
During the first backup phase, the following actions take place:
Sanity check: verification of the Kubernetes status and wsrep status of
each MariaDB pod. If some pods have wrong statuses, the backup job
fails unless the --allow-unsafe-backup parameter is passed to
the main script in the Kubernetes backup job.
Note
Since MOSK 22.4, the --allow-unsafe-backup
functionality is removed from the product for security and backup
procedure simplification purposes.
Mirantis does not recommend setting the --allow-unsafe-backup
parameter unless it is absolutely required. To ensure the consistency
of a backup, verify that the MariaDB Galera cluster is in a working
state before you proceed with the backup.
Select the replica to back up. The system selects the replica with the
highest number in its name as a target replica. For example, if the
MariaDB server pods have the mariadb-server-0, mariadb-server-1,
and mariadb-server-2 names, the mariadb-server-2 replica will
be backed up.
Desynchronize the replica from the Galera cluster. The script connects
the target replica and sets the wsrep_desync variable to ON.
Then, the replica stops receiving write-sets and receives the wsrep
status Donor/Desynced. The Kubernetes health check of that
mariadb-server pod fails and the Kubernetes status of that pod
becomes Notready. If the pod has the primary label, the MariaDB
Controller sets the backup label to it and the pod is removed from
the endpoints list of the MariaDB service.
The main script in the mariadb-phy-backup pod launches the
Kubernetes pod mariadb-phy-backup-runner-<TIMESTAMP>
on the same node where the target mariadb-server replica is running,
which is node X in the example.
The mariadb-phy-backup-runner pod has both mysql data directory
and backup directory mounted. The pod performs the following
actions:
Verifies that there is enough space in the /var/backup folder to
perform the backup. The amount of available space in the folder
should be greater than
<DB-SIZE>*<MARIADB-BACKUP-REQUIRED-SPACE-RATIO in KB.
Performs the actual backup using the mariabackup tool.
If the number of current backups is greater than the value of the
MARIADB_BACKUPS_TO_KEEP job parameter, the script removes all
old backups exceeding the allowed number of backups.
Exits with 0 code.
The script waits untill the mariadb-phy-backup-runner pod is
completed and collects its logs.
The script puts the backed up replica back to sync with the Galera
cluster by setting wsrep_desync to OFF and waits for
the replica to become Ready in Kubernetes.
The mariadb-phy-restore pod launches
openstack-mariadb-phy-restore-runner with the first
mariadb-server replica PVC mounted to the /var/lib/mysql
folder and the backup PVC mounted to /var/backup.
The openstack-mariadb-phy-restore-runner pod performs the
following actions:
Unarchives the database backup files to a temporary directory within
/var/backup.
Executes mariabackup--prepare on the unarchived data.
Creates the .prepared file in the temporary directory in
/var/backup.
Restores the backup to /var/lib/mysql.
Exits with 0.
The script in the mariadb-phy-restore pod collects the logs
from the openstack-mariadb-phy-restore-runner pod and removes
the pod. Then, the script launches the next
openstack-mariadb-phy-restore-runner pod for the next
mariadb-server replica PVC.
The openstack-mariadb-phy-restore-runner pod restores the backup
to /var/lib/mysql and exits with 0.
Step 2 is repeated for every mariadb-server replica PVC
sequentially.
When the last replica’s data is restored, the last
openstack-mariadb-phy-restore-runner pod removes the .prepared
file and the temporary folder with unachieved data from /var/backup.
By design, when deleting a cloud resource, for example, an instance, volume,
or router, an OpenStack service does not immediately delete its data but
marks it as removed so that it can later be picked up by the garbage
collector.
Given that an OpenStack resource is often represented by more than one record
in the database, deletion of all of them right away could affect the overall
responsiveness of the cloud API. On the other hand, an OpenStack database
being severely clogged with stale data is one of the most typical reasons for
the cloud slowness.
To keep the OpenStack database small and performance fast,
MOSK is pre-configured to automatically clean up the removed
database records older than 30 days. By default, the clean up is performed for
the following MOSK services every Monday according to the
schedule:
The default database cleanup schedule by OpenStack service¶
Service
Service identifier
Clean up time
Block Storage (OpenStack Cinder)
cinder
12:01 a.m.
Compute (OpenStack Nova)
nova
01:01 a.m.
Image (OpenStack Glance)
glance
02:01 a.m.
Instance HA (OpenStack Masakari)
masakari
03:01 a.m.
Key Manager (OpenStack Barbican)
barbican
04:01 a.m.
Orchestration (OpenStack Heat)
heat
05:01 a.m.
If required, you can adjust the cleanup schedule for the OpenStack database by
adding the features:database:cleanup setting to the OpenStackDeployment
CR following the example below. The schedule parameter must contain a
valid cron expression. The age parameter specifies the number of days after
which a stale record gets cleaned up.
MOSK uses the Mariabackup utility to back up the MariaDB
Galera cluster data where the OpenStack data is stored. The Mariabackup gets
launched on a periodic basis as a part of the Kubernetes CronJob included
in any MOSK deployment and is suspended by default.
Note
If you are using the default backend to store the backup data,
which is Ceph, you can increase the default size of a backup volume.
However, make sure to configure the volume size before you deploy
OpenStack.
MOSK enables you to configure the periodic backup of the
OpenStack database through the OpenStackDeployment object. To enable the
backup, use the following structure:
spec:features:database:backup:enabled:true
By default, the backup job:
Runs backup on a daily basis at 01:00 AM
Creates incremental backups daily and full backups weekly
Keeps 10 latest full backups
Stores backups in the mariadb-phy-backup-data PVC
Has the backup timeout of 3600 seconds
Has the incremental backup type
To verify the configuration of the mariadb-phy-backup CronJob
object, run:
Type of a backup. The list of possible values include:
incremental
If the newest full backup is older than the value of
the full_backup_cycle parameter, the system performs a full
backup. Otherwise, the system performs an incremental backup of
the newest full backup.
Number of seconds that defines a period between 2 full backups.
During this period, incremental backups are performed. The parameter
is taken into account only if backup_type is set to
incremental. Otherwise, it is ignored.
For example, with full_backup_cycle set to 604800 seconds
a full backup is taken weekly and, if cron is set to 00***,
an incremental backup is performed on daily basis.
Multiplier for the database size to predict the space required to
create a backup, either full or incremental, and perform a
restoration keeping the uncompressed backup files on the same file
system as the compressed ones.
To estimate the size of MARIADB_BACKUP_REQUIRED_SPACE_RATIO, use
the following formula: size of (1 uncompressed full backup + all
related incremental uncompressed backups + 1 full compressed backup)
in KB =< (DB_SIZE * MARIADB_BACKUP_REQUIRED_SPACE_RATIO) in
KB.
The DB_SIZE is the disk space allocated in the MySQL data
directory, which is /var/lib/mysql, for databases data excluding
galera.cache and ib_logfile* files. This parameter prevents
the backup PVC from being full in the middle of the restoration and
backup procedures. If the current available space is lower than
DB_SIZE * MARIADB_BACKUP_REQUIRED_SPACE_RATIO, the backup
script fails before the system starts the actual backup and the
overall status of the backup job is failed.
For example, to perform full backups monthly and incremental backups
daily at 02:30 AM and keep the backups for the last six months,
configure the database backup in your OpenStackDeployment object
as follows:
By default, MOSK stores the OpenStack database backups
locally in the Mirantis Ceph cluster, which is a part of the same cloud.
Alternatively, MOSK provides you with a capability to create
remote backups using an external storage. This section contains configuration
details for a remote backend to be used for the OpenStack data backup.
In general, the built-in automated backup routine saves the data to the
mariadb-phy-backup-data PersistentVolumeClaim (PVC), which is provisioned
from StorageClass specified in the spec.persistent_volume_storage_class
parameter of the OpenstackDeployment custom resource (CR).
Remote NFS storage for OpenStack database backups¶
A preconfigured NFS server with NFS share that a Unix backup and
restore user has access to. By default, it is the same user that runs
MySQL server in a MariaDB image.
Removal of the NFS persistent volume does not automatically remove the data.
No validation of mount options. If mount options are specified incorrectly in
the OpenStackDeployment CR, the mount command fails upon the
creation of a backup runner pod.
Optionally, MOSK enables you to set the required mount
options for the NFS mount command. You can set as many options
of mount as you need. For example:
The internal components of Mirantis OpenStack for Kubernetes (MOSK)
coordinate their operations and exchange status information using the
cluster’s message bus (RabbitMQ).
MOSK enables you to configure OpenStack services to emit
notification messages to the MOSK cluster messaging bus
(RabbitMQ) every time an OpenStack resource, for example, an instance, image,
and so on, changes its state due to a cloud user action or through its
lifecycle. For example, MOSK Compute service (OpenStack
Nova) can publish the instance.create.end notification once a newly created
instance is up and running.
Note
In certain cases, RabbitMQ notifications may prove unreliable, such
as when the RabbitMQ server undergoes a restart or when communication
between the server and the client reading the notifications breaks down.
To optimize reliability, Mirantis suggests using multiple channels to store
notification events, encompassing:
OpenStack notification messages can be consumed and processed by various
corporate systems to integrate MOSK clouds into the
company infrastructure and business processes.
The list of the most common use cases includes:
Using notification history for retrospective security audit
Using the real-time aggregation of notification messages to gather
statistics on cloud resource consumption for further capacity planning
Cloud billing considerations
Notifications alone should not be considered as a source of data for any
kind of financial reporting. The delivery of the messages can not be
guaranteed due to various technical reasons. For example, messages can
be lost if an external consumer is not fetching them from the queue fast
enough.
Mirantis strongly recommends that your cloud billing solutions rely on the
combination of the following data sources:
Periodic polling of the OpenStack API as a reliable source of information
about allocated resources
Subscription to notifications to receive timely updates about the resource
status change
A cloud administrator can securely expose part of a MOSK
cluster message bus to the outside world. This enables an external consumer
to subscribe to the notification messages emitted by the cluster services.
Important
The latest OpenStack release available in MOSK supports
notifications from the following services:
Block storage (OpenStack Cinder)
DNS (OpenStack Designate)
Image (OpenStack Glance)
Orchestration (OpenStack Heat)
Bare Metal (OpenStack Ironic)
Identity (OpenStack Keystone)
Shared Filesystems (OpenStack Manila)
Instance High Avalability (OpenStack Masakari)
Networking (OpenStack Neutron)
Compute (OpenStack Nova)
To enable the external notification endpoint, add the following structure
to the OpenStackDeployment custom resource. For example:
For each topic name specified in the topics field, MOSK
creates a topic exchange in its RabbitMQ cluster together with a set of queues
bound to this topic. All enabled MOSK services will
publish their notification messages to all configured topics so that
multiple consumers can receive the same messages in parallel.
A topic name must follow Kubernetes standard format for object names and IDs
that is only lowercase alphanumeric characters, -, or . The topic
name notifications is reserved for the internal use.
MOSK supports the connection to message bus (RabbitMQ)
through an encrypted or non-encrypted endpoint. Once connected, it supports
authentication through either a plain text user name and password or mutual
TLS authentication using encrypted X.509 client certificates.
Each topic exchange is protected by automatically generated authentication
credentials and certificates for secure connection that are stored as a secret
in the openstack-external namespace of a MOSK underlying
Kubernetes cluster. A secret is identified by the name of the topic. The list
of attributes for the secret object includes:
hosts
The IP addresses which an external notification endpoint is available on
port_amqp, port_amqp-tls
The TCP ports which external notification endpoint is available on
vhost
The name of the RabbitMQ virtual host which the topic queues are created on
username, password
Authentication data
ca_cert
The client CA certificate
client_cert
The client certificate
client_key
The client private key
For the configuration example above, the following objects will be created:
Tungsten Fabric provides basic L2/L3 networking to an OpenStack environment
running on the MKE cluster and includes the IP address management, security
groups, floating IP addresses, and routing policies functionality.
Tungsten Fabric is based on overlay networking, where all virtual machines are
connected to a virtual network with encapsulation (MPLSoGRE, MPLSoUDP, VXLAN).
This enables you to separate the underlay Kubernetes management network. A
workload requires an external gateway, such as a hardware EdgeRouter or a
simple gateway to route the outgoing traffic.
The Tungsten Fabric vRouter uses different gateways for the control and data
planes.
All services of Tungsten Fabric are delivered as separate containers, which
are deployed by the Tungsten Fabric Operator (TFO). Each container has an
INI-based configuration file that is available on the host system. The
configuration file is generated automatically upon the container start and is
based on environment variables provided by the TFO through Kubernetes
ConfigMaps.
The main Tungsten Fabric containers run with the host network as
DeploymentSet, without using the Kubernetes networking layer. The services
listen directly on the host network interface.
The following diagram describes the minimum production installation of
Tungsten Fabric with a Mirantis OpenStack for Kubernetes (MOSK)
deployment.
For the details about the Tungsten Fabric services included in
MOSK deployments and the types of traffic and traffic
flow directions, see the subsections below.
This section describes the Tungsten Fabric services and their distribution
across the Mirantis OpenStack for Kubernetes (MOSK) deployment.
The Tungsten Fabric services run mostly as DaemonSets in separate containers
for each service. The deployment and update processes are managed by the
Tungsten Fabric Operator. However, Kubernetes manages the probe checks and
restart of broken containers.
All configuration and control services run on the Tungsten Fabric Controller
nodes.
Service name
Service description
config-api
Exposes a REST-based interface for the Tungsten Fabric API.
config-provisioner
Provisions the node for execution of configuration services.
control
Communicates with the cluster gateways using BGP and with the vRouter
agents using XMPP, as well as redistributes appropriate networking
information.
control-provisioner
Provisions the node for execution of configuration services.
device-manager
Manages physical networking devices using netconf or ovsdb.
In multi-node deployments, it operates in the active-backup mode.
dns
Using the named service, provides the DNS service to the VMs spawned
on different compute nodes. Each vRouter node connects to two
Tungsten Fabric Controller containers that run the dns process.
named
The customized Berkeley Internet Name Domain (BIND) daemon of
Tungsten Fabric that manages DNS zones for the dns service.
schema
Listens to configuration changes performed by a user and generates
corresponding system configuration objects. In multi-node deployments,
it works in the active-backup mode.
svc-monitor
Listens to configuration changes of service-template and
service-instance, as well as spawns and monitors virtual machines
for the firewall, analyzer services, and so on. In multi-node
deployments, it works in the active-backup mode.
webui
Consists of the webserver and jobserver services. Provides
the Tungsten Fabric web UI.
All analytics services run on Tungsten Fabric analytics nodes.
Service name
Service description
alarm-gen
Evaluates and manages the alarms rules.
analytics-api
Provides a REST API to interact with the Cassandra analytics
database.
analytics-nodemgr
Collects all Tungsten Fabric analytics process data and sends
this information to the Tungsten Fabric collector.
analytics-database-nodemgr
Provisions the init model if needed. Collects data of the database
process and sends it to the Tungsten Fabric collector.
collector
Collects and analyzes data from all Tungsten Fabric services.
query-engine
Handles the queries to access data from the Cassandra database.
snmp-collector
Receives the authorization and configuration of the physical routers
from the config-nodemgr service, polls the physical routers using
the Simple Network Management Protocol (SNMP), and uploads the data to
the Tungsten Fabric collector.
topology
Reads the SNMP information from the physical router user-visible
entities (UVEs), creates a neighbor list, and writes the neighbor
information to the physical router UVEs. The Tungsten Fabric web UI uses
the neighbor list to display the physical topology.
The Tungsten Fabric vRouter provides data forwarding to an OpenStack tenant
instance and reports statistics to the Tungsten Fabric analytics service. The
Tungsten Fabric vRouter is installed on all OpenStack compute nodes.
Mirantis OpenStack for Kubernetes (MOSK) supports the kernel-based
deployment of the Tungsten Fabric vRouter.
Connects to the Tungsten Fabric Controller container and the Tungsten
Fabric DNS system using the Extensible Messaging and Presence Protocol
(XMPP). The vRouter Agent acts as a local control plane. Each Tungsten
Fabric vRouter Agent is connected to at least two Tungsten Fabric
controllers in an active-active redundancy mode.
The Tungsten Fabric vRouter Agent is responsible for all
networking-related functions including routing instances, routes,
and others.
The Tungsten Fabric vRouter uses different gateways for the control
and data planes. For example, the Linux system gateway is located
on the management network, and the Tungsten Fabric gateway is located
on the data plane network.
vrouter-provisioner
Provisions the node for the vRouter agent execution.
The following diagram illustrates the Tungsten Fabric kernel vRouter set up by
the TF operator:
On the diagram above, the following types of networks interfaces are used:
eth0 - for the management (PXE) network (eth1 and eth2 are the
slave interfaces of Bond0)
On the Tungsten Fabric control plane nodes, maintains the
configuration data of the Tungsten Fabric cluster.
On the Tungsten Fabric analytics nodes, stores the collector
service data.
cassandra-operator
The Kubernetes operator that enables the Cassandra clusters creation
and management.
kafka
Handles the messaging bus and generates alarms across the Tungsten
Fabric analytics containers.
kafka-operator
The Kubernetes operator that enables Kafka clusters creation and
management.
redis
Stores the physical router UVE storage and serves as a messaging bus
for event notifications.
redis-operator
The Kubernetes operator that enables Redis clusters creation and
management.
zookeeper
Holds the active-backup status for the device-manager,
svc-monitor, and the schema-transformer services. This service
is also used for mapping of the Tungsten Fabric resources names to
UUIDs.
zookeeper-operator
The Kubernetes operator that enables ZooKeeper clusters creation and
management.
rabbitmq
Exchanges messages between API servers and original request senders.
rabbitmq-operator
The Kubernetes operator that enables RabbitMQ clusters creation and
management.
Along with the Tungsten Fabric services, MOSK deploys and
updates special image precaching DaemonSets when the kind TFOperator
resource is created or image references in it get updated.
These DaemonSets precache container images on Kubernetes nodes minimizing
possible downtime when updating container images. Cloud operator can
disable image precaching through the TFOperator resource.
The following diagram illustrates all types of UI
and API traffic in a Mirantis OpenStack for Kubernetes
cluster, including the monitoring and OpenStack API traffic. The OpenStack
Dashboard pod hosts Horizon and acts as a proxy for all other types of
traffic. TLS termination is also performed for this type of traffic.
SDN or Tungsten Fabric traffic goes through the overlay Data network and
processes east-west and north-south traffic for applications that run in a
MOSK cluster. This network segment typically contains
tenant networks as separate MPLS-over-GRE and MPLS-over-UDP tunnels.
The traffic load depends on the workload.
The control traffic between the Tungsten Fabric controllers, edge routers, and
vRouters uses the XMPP with TLS and iBGP protocols. Both protocols produce low
traffic that does not affect MPLS over GRE and MPLS over UDP traffic.
However, this traffic is critical and must be reliably delivered. Mirantis
recommends configuring higher QoS for this type of traffic.
The following diagram displays both MPLS over GRE/MPLS over UDP and iBGP and
XMPP traffic examples in a MOSK cluster:
Mirantis OpenStack for Kubernetes (MOSK) provides the Tungsten Fabric
lifecycle management including pre-deployment custom configurations, updates,
data backup and restoration, as well as handling partial failure scenarios,
by means of the Tungsten Fabric operator.
This section is intended for the cloud operators who want to gain insight into
the capabilities provided by the Tungsten Fabric operator along with the
understanding of how its architecture allows for easy management while
addressing the concerns of users of Tungsten Fabric-based
MOSK clusters.
The Tungsten Fabric Operator (TFO) is based on the Kubernetes operator
SDK project. The Kubernetes operator SDK is a framework that uses the
controller-runtime library to make writing operators easier by providing
the following:
High-level APIs and abstractions to write the operational logic more
intuitively.
Tools for scaffolding and code generation to bootstrap a new project fast.
Extensions to cover common operator use cases.
The TFO deploys the following sub-operators. Each sub-operator handles a
separate part of a TF deployment:
Since MOSK 24.3, Provisioner is a separate
component for the vRouter, deployed as the tf-vrouter-provisioner
DaemonSet. The NodeManager service is no longer deployed in TF
setups.
Besides the sub-operators that deploy TF services, TFO uses operators to deploy
and maintain third-party services, such as different types of storage, cache,
message system, and so on. The following table describes all third-party
operators:
The resource of kind TFOperator is a custom resource defined by a resource
of kind CustomResourceDefinition.
The CustomResourceDefinition resource in Kubernetes uses the OpenAPI
Specification version 2 to specify the schema of the defined resource.
The Kubernetes API outright rejects the resources that do not pass this schema
validation. Along with schema validation, TFOperator uses
ValidatingAdmissionWebhook for extended validations when a custom resource
is created or updated.
Important
Since 24.1, MOSK introduces the technical
preview support for the API v2 for the Tungsten Fabric Operator. This
version of the Tungsten Fabric Operator API aligns with the OpenStack
Controller API and provides better interface for advanced configurations.
Refer to Key differences between TFOperator API v1alpha1 and v2 for details.
Tungsten Fabric Operator uses ValidatingAdmissionWebhook to validate
environment variables set to Tungsten Fabric components upon the TFOperator
object creation or update. The following validations are performed:
Environment variables passed to the Tungsten Fabric components containers
Mapping between tfVersion and tfImageTag, if defined
Schedule for dbBackup
Data capacity format
Feature variable values
Availability of the dataStorageClass class
If required, you can disable ValidatingAdmissionWebhook through the
TFOperator HelmBundle resource:
Environment variables for Tungsten Fabric components¶
API v2
Available since MOSK 24.1
Warning
The features section of the TFOperator specification
allows for easy configuration of all Tungsten Fabric features. Mirantis
recommends updating the environment variables through envSettings
directly.
Allowed environment variables for Tungsten Fabric components¶
Key differences between TFOperator API v1alpha1 and v2¶
This section outlines the main differences between the v1alpha1 and v2 versions
of the TFOperator API:
Introduction of the features section:
All non-default Tungsten Fabric and Tungsten Fabric Operator features
can now be set in the features section.
Setting environment variables is no longer necessary but can still be
done using the envSetting field in each Tungsten Fabric service
section.
Relocation of CustomSpec from the vRouter agent specification
to the nodes section.
Reorganization of the controllers section:
The controllers section has been integrated into the services
section.
The services section is now divided into groups: analytics,
config, control, vRouter, and webUI.
Configuration of third-party services can be performed through the
analytics or config sections.
Configuration of the logging levels can be performed using the logging
field, which is a separate field in each Tungsten Fabric services
configuration.
Movement of the dataStorageClass and tfVersion fields to the upper
level of the specification.
Introduction of the devOptions section enabling the setup of experimental
development-related options.
Mirantis OpenStack for Kubernetes (MOSK) allows you to easily adapt
your Tungsten Fabric deployment to the needs of your environment through the
TFOperator custom resource.
This section includes custom configuration details available to you.
Important
Since 24.1, MOSK introduces the technical
preview support for the API v2 for the Tungsten Fabric Operator. This
version of the Tungsten Fabric Operator API aligns with the OpenStack
Controller API and provides better interface for advanced configurations.
In MOSK 24.1, the API v2 is available only for the
new product deployments with Tungsten Fabric.
Since 24.2, the API v2 becomes default for new product deployments and
includes the ability to convert existing v1alpha1 TFOperator to v2
during update.
During the update to the 24.3 series, the old Tungsten Fabric cluster
configuration API v1alpha1 is automatically converted and replaced
with the v2 version. Therefore, since MOSK 24.3,
start using the v2 TFOperator custom resource for any updates.
The v1alpha1 TFOperator custom resource remains in the cluster
but is no longer reconciled and will be automatically removed with
the next major cluster update.
By default, Tungsten Fabric Operator sets up the following resource limits for
Cassandra analytics and configuration StatefulSets:
Limits:cpu:8memory:32GiRequests:cpu:1memory:16Gi
This is a verified configuration suitable for most cases. However, if nodes
are under a heavy load, the KubeContainerCPUThrottlingHigh StackLight alert
may raise for Tungsten Fabric Pods of the tf-cassandra-analytics and
tf-cassandra-config StatefulSets. If such alerts appear constantly, you can
increase the limits through the TFOperator custom resource. For example:
To specify custom configurations for Cassandra clusters, use the
configOptions settings in the TFOperator custom resource.
For example, you may need to increase the file cache size in case
of a heavy load on the nodes labeled with tfanalyticsdb=enabled
or tfconfigdb=enabled:
Depending on the Tungsten Fabric Operator API version in use, proceed with
one of the following options:
API v2
Available since MOSK 24.1
To specify custom settings for the Tungsten Fabric vRouter nodes, for
example, to change the name of the tunnel network interface or enable
debug level logging on some subset of nodes, use the nodes settings in
the TFOperator custom resource.
For example, to enable debug level logging on a specific node or multiple
nodes:
To specify custom settings for the Tungsten Fabric vRouter nodes, for
example, to change the name of the tunnel network interface or enable
debug level logging on some subset of nodes, use the customSpecs
settings in the TFOperator custom resource.
For example, to enable debug level logging on a specific node or multiple
nodes:
The customspecs:name value must follow the RFC 1123
international format. Verify that the name of a DaemonSet object
is a valid DNS subdomain name.
The customSpecs parameter inherits all settings for the tf-vrouter
containers that are set on the spec:controllers:agent level and
overrides or adds additional parameters. The example configuration above
overrides the logging level from SYS_INFO, which is the default logging
level, to SYS_DEBUG.
For clusters with a multi-rack architecture, you may need to redefine the
gateway IP for the Tungsten Fabric vRouter nodes using the
VROUTER_GATEWAY parameter. For details, see Multi-rack architecture.
By default, the TF control service uses the management interface for
the BGP and XMPP traffic. You can change the control service interface
using the controlInterface parameter in the TFOperator custom resource,
for example, to combine the BGP and XMPP traffic with the data (tenant)
traffic:
Tungsten Fabric implements cloud tenants’ virtual networks as Layer 3 overlays.
Tenant traffic gets encapsulated into one of the supported protocols and is
carried over the infrastructure network between 2 compute nodes or a compute
node and an edge router device.
In addition, Tungsten Fabric is capable of exchanging encapsulated traffic with
external systems in order to build advanced virtual networking topologies,
for example, BGP VPN connectivity between 2 MOSK clouds or a
MOSK cloud and a cloud tenant premises.
MOSK supports the following encapsulation protocols:
MPLS over Generic Routing Encapsulation (GRE)
A traditional encapsulation method supported by several router vendors,
including Cisco and Juniper. The feature is applicable when other
encapsulation methods are not available. For example, an SDN gateway
runs software that does not support MPLS over UDP.
MPLS over User Datagram Protocol (UDP)
A variation of the MPLS over GRE mechanism. It is the default and the most
frequently used option in MOSK. MPLS over UDP replaces
headers in UDP packets. In this case, a UDP port stores a hash of
the packet payload (entropy). It provides a significant benefit for
equal-cost multi-path (ECMP) routing load balancing. MPLS over UDP and MPLS
over GRE transfer Layer 3 traffic only.
Virtual Extensible LAN (VXLAN) TechPrev
The combination of VXLAN and EVPN technologies is often used for creating
advanced cloud networking topologies. For example, it can provide
transparent Layer 2 interconnections between Virtual Network Functions
running on top of the cloud and physical traffic generator appliances hosted
somewhere else.
The ENCAP_PRIORIY parameter defines the priority in which the
encapsulation protocols are attempted to be used when setting the BGP VPN
connectivity between the cloud and external systems.
By default, the encapsulation order is set to MPLSoUDP,MPLSoGRE,VXLAN.
The cloud operator can change it depending their needs in the TFOperator
custom resource as it is illustrated in Configuring encapsulation.
The list of supported encapsulated methods along with their order is shared
between BGP peers as part of the capabilities information exchange when
establishing a BGP session. Both parties must support the same encapsulation
methods to build a tunnel for the network traffic.
For example, if the cloud operator wants to set up a Layer 2 VPN between the
cloud and their network infrastructure, they configure the cloud’s virtual
networks with VXLAN identifiers (VNIs) and do the same on the other side,
for example, on a network switch. Also, VXLAN must be set in the first position
in encapsulation priority order. Otherwise, VXLAN tunnels will not get
established between endpoints, even though both endpoints may support the VXLAN
protocol.
However, setting VXLAN first in the encapsulation priority order will not
enforce VXLAN encapsulation between compute nodes or between compute nodes and
gateway routers that use Layer 3 VPNs for communication.
The TFOperator custom resource allows you to define encapsulation settings
for your Tungsten Fabric cluster.
Important
The TFOperator custom resource must be the only place to
configure the cluster encapsulation. Performing these configurations through
the Tungsten Fabric web UI, CLI, or API does not provide the configuration
persistency, and the settings defined this way may get reset to defaults
during the cluster services restart or update.
Note
Defining the default values for encapsulation parameters in
the TFOperator custom resource is unnecessary.
Depending on the Tungsten Fabric operator API version in use, proceed with
one of the following options:
In the routing fabric of a data centre, a MOSK cluster
with Tungsten Fabric enabled can be represented either by a separate
Autonomous System (AS)
or as part of a bigger autonomous system. In either case, Tungsten Fabric
needs to participate in the BGP peering, exchanging routes with external
devices and within the cloud.
The Tungsten Fabric Controller acts as an internal (iBGP) route reflector for
the cloud AS by populating /32 routes pointing to VMs across all compute
nodes as well as the cloud’s edge gateway devices in case they belong to the
same AS. Apart from being an iBGP router reflector for the cloud AS, the
Tungsten Fabric Controller can act as a BGP peer for autonomous systems
external to the cloud, for example, for the AS configured across the
leaf-spine fabric of the data center.
The Autonomous System Number (ASN) setting contains the unique identifier
of the autonomous system that the MOSK cluster with
Tungsten Fabric belongs to. The ASN number does not affect the internal
iBGP communication between vRouters running on the compute nodes. Such
communication will work regardless of the ASN number settings. However,
any network appliance that is not managed by the Tungsten Fabric control plane
will have BGP configured manually. Therefore, the ASN settings should be
configured accordingly on both sides. Otherwise, it would result in the
inability to establish BPG sessions, regardless of whether the external device
peers with Tungsten Fabric over iBGP or eBGP.
The TFOperator custom resource enables you to define ASN settings for
your Tungsten Fabric cluster.
Important
The TFOperator CR must be the only place to configure
the cluster ASN. Performing these configurations through the Tungsten
Fabric web UI, CLI, or API does not provide the configuration persistency,
and the settings defined this way may get reset to defaults during
the cluster services restart or update.
Note
Defining the default values for ASN parameters in the Tungsten Fabric
Operator custom resource is unnecessary.
Depending on the Tungsten Fabric Operator API version in use, proceed with
one of the following options:
By default, the Tungsten Fabric tf-control-dns-external service is created
to expose the Tungsten Fabric controldns. You can disable creation of this
service through the enableDNSExternal parameter in the TFOperator
custom resource. For example:
If an edge router is accessible from the data plane through a gateway, define
the vRouter gateway in the TFOperator custom resource. Otherwise,
the default system gateway is used.
Depending on the Tungsten Fabric Operator API version in use, proceed with
one of the following configurations:
API v2
Available since MOSK 24.1
Define the vRouterGateway parameter in the features section of
the TFOperator custom resource:
By default, MOSK deploys image precaching DaemonSets
to minimize possible downtime when updating container images. You can disable
creation of these DaemonSets by setting the imagePreCaching parameter in
the TFOperator custom resource to false:
Available since MOSK 23.2
for Tungsten Fabric 21.4 onlyTechPreview
Graceful restart and long-lived graceful restart are vital mechanisms
within BGP (Border Gateway Protocol) routing, designed to optimize
the routing tables convergence in scenarios where a BGP router restarts or
a networking failure is experienced, leading to interruptions of router
peering.
During a graceful restart, a router can signal its BGP peers about its
impending restart, requesting them to retain the routes it had previously
advertised as active. This allows for seamless network operation and minimal
disruption to data forwarding during the router downtime.
The long-lived aspect of the long-lived graceful restart extends
the graceful restart effectiveness beyond the usual restart duration.
This extension provides an additional layer of resilience and stability
to BGP routing updates, bolstering the network ability to manage
unforeseen disruptions.
Caution
Mirantis does not generally recommend using the graceful restart
and long-lived graceful restart features with the Tungsten Fabric XMPP
helper, unless the configuration is done by proficient operators with
at-scale expertise in networking domain and exclusively to address specific
corner cases.
Configuring graceful restart and long-lived graceful restart¶
Tungsten Fabric Operator allows for easy enablement and configuration
of the graceful restart and long-lived graceful restart features through
the TFOperator custom resource:
Graceful restart and long-lived graceful restart settings¶
Parameter
Default value
Description
enabled
false
Enables or disables graceful restart and long-lived graceful
restart features.
bgpHelperEnabled
false
Specifies the time interval, when the Tungsten Fabric control services
act as a graceful restart helper to the edge router or any other BGP
peer by retaining the routes learned from this peer and advertising
them to the rest of the network as applicable.
Note
BGP peer should support and be configured with graceful
restart for all of the address families used.
xmppHelperEnabled
false
Specifies the time interval, when the datapath agent should retain
the last route path from the Tungsten Fabric Controller when an
XMPP-based connection is lost.
restartTime
300
Configures a non-zero restart time in seconds to advertise for graceful
restart capability from peers.
llgrRestartTime
300
Specifies the amount of time in seconds the vRouter datapath should keep
advertised routes from the Tungsten Fabric control services, when
an XMPP connection between the control and vRouter agent services is lost.
Note
When graceful restart and long-lived graceful restart
are both configured, the duration of the long-lived graceful
restart timer is the sum of both timers.
endOfRibTimeout
300
Specifies the amount of time in seconds a control node waits to remove
stale routes from a vRouter agent Routing Information Base (RIB).
Configuring the protocol for connecting to Cassandra clusters¶
To streamline and improve the efficiency of communication between clients and
the database, Cassandra is transitioning away from the Thrift protocol in
favor of the Query Language (CQL) protocol starting with
MOSK 24.1. Since MOSK 24.2, Cassandra
uses the CQL protocol by default.
CQL provides a more user-friendly and SQL-like interface for interacting with
the database. With the move towards CQL, the Thrift-based client drivers are
no longer actively supported encouraging the users to migrate to CQL-based
client drivers to take advantage of new features and improvements in Cassandra.
If your cluster is running MOSK 24.1.x, you can enable the
CQL protocol proceeding with one of the options below depending on the Tungsten
Fabric Operator API version in use.
During update to MOSK 24.2, switching from Thrift to CQL
is performed automatically. While it is possible to switch back to Thrift,
Mirantis does not recommend it. If you choose to do so, specify thrift
instead of cql in the configuration examples below.
API v2
Available since MOSK 24.1
Define the cassandraDriver parameter in the devOptions section of
the TFOperator custom resource:
MOSK provides the capability to enable SR-IOV Spoof Check
control with the Neutron Tungsten Fabric backend.
The capability can be useful for certain network configurations. For example,
you might need to allow traffic from a virtual function interface even when
its MAC address does not match the MAC address inside the virtual machine.
In this scenario, known as MAC spoofing, disabling spoof check enables
the traffic to pass through regardless of the MAC address mismatch.
Caution
Certain NICs and drivers may not handle the spoofchk setting.
For example, the Intel 82599ES NIC paired with the ixgbe driver disregards
the spoofchk setting when VLAN tagging is enabled. Therefore, ensure
compatibility with your hardware configuration regarding spoofchk
handling before proceeding.
To enable SR-IOV Spoof Check control for Tungsten Fabric, enable SR-IOV
interfaces handling by Nova os-vif plugin in the OpenStackDeployment
custom resource:
The Tungsten Fabric Operator provides a capability to configure
the netns_availability_zone parameter of the Tungsten Fabric
svc-monitor service through the netnsAZ parameter. This configuration
enables MOSK users to specify an availability zone for
Tungsten Fabric instances, such as HAProxy (load balancer instances) or SNAT
routers.
Tungsten Fabric (TF) uses Cassandra and ZooKeeper to store its data.
Cassandra is a fault-tolerant and horizontally scalable database that provides
persistent storage of configuration and analytics data. ZooKeeper is used by
TF for allocation of unique object identifiers and transactions implementation.
To prevent data loss, Mirantis recommends that you simultaneously back up
the ZooKeeper database dedicated to configuration services and the Cassandra
database.
The backup of database must be consistent across all systems
because the state of the Tungsten Fabric databases is associated with
other system databases, such as OpenStack databases.
MOSK enables you to perform the automatic TF
data backup in the JSON format using the tf-dbbackup-job cron job.
By default, it is disabled. To back up the TF databases, enable
tf-dbBackup in the TF Operator custom resource:
By default, the tf-dbbackup-job job is scheduled for weekly execution,
allocating PVC of 5 Gi size for storing backups and keeping 5 previous
backups. To configure the backup parameters according to the needs of your
cluster, use the following structure:
The section explains specifics of the Tungsten Fabric services provided by
Mirantis OpenStack for Kubernetes (MOSK). The list of the services
and their supported features included in this section is not full and is being
constantly amended based on the complexity of the architecture and use of
a particular service.
MOSK ensures Octavia with Tungsten Fabric integration
by OpenStack Octavia Driver with Tungsten Fabric HAProxy as a backend.
The Tungsten Fabric-based MOSK deployment supports
creation, update, and deletion operations with the following standard
load balancing API entities:
Load balancers
Note
For a load balancer creation operation, the driver supports
only the vip-subnet-id argument, the vip-network-id argument is
not supported.
Listeners
Pools
Health monitors
The Tungsten Fabric-based MOSK deployment does not support
the following load balancing capabilities:
L7 load balancing capabilities, such as L7 policies, L7 rules, and others
Setting specific availability zones for load balancers and their resources
Using of the UDP protocol
Operations with Octavia quotas
Operations with Octavia flavors
Warning
The Tungsten Fabric-based MOSK deployment
enables you to manage the load balancer resources by means of the OpenStack
CLI or OpenStack Horizon. Do not perform any manipulations with the load
balancer resources through the Tungsten Fabric web UI because in this case
the changes will not be reflected on the OpenStack API side.
Octavia Amphora (Amphora v2) load balancing provides a scalable and flexible
solution for load balancing in cloud environments. MOSK
deploys Amphora load balancer on each node of the OpenStack environment
ensuring that load balancing services are easily accessible, highly scalable,
and highly reliable.
Compared to the Octavia Tungsten Fabric driver for LBaaS v2 solution, Amphora
offers several advanced features including:
Full compatibility with the Octavia API, which provides a standardized
interface for load balancing in MOSK OpenStack
environments. This makes it easier to manage and integrate with other
OpenStack services.
Layer 7 policies and rules, which allow for more granular control over
traffic routing and load balancing decisions. This enables users to
optimize their application performance and improve the user experience.
Support for the UDP protocol, which is commonly used for real-time
communications and other high-performance applications. This enables
users to deploy a wider range of applications with the same load
balancing infrastructure.
By default, MOSK uses the Octavia Tungsten Fabric load
balancing. Once Octavia Amphora load balancing is enabled, the existing Octavia
Tungsten Fabric driver load balancers will continue to function normally.
However, you cannot migrate your load balancer workloads from the old LBaaS
v2 solution to Amphora.
Note
As long as MOSK provides Octavia Amphora load
balancing as a technology preview feature, Mirantis
cannot guarantee the stability of this solution and does not provide
a migration path from Tungsten Fabric load balancing (HAProxy), which
is used by default.
To enable Octavia Amphora load balancing:
Assign openstack-gateway:enabled labels to the compute nodes in either
order.
Caution
Assigning the openstack-gateway:enabled labels on compute
nodes is crucial for the effective operation of Octavia Amphora load
balancing within an OpenStack environment. Double-check the labels
assignment to guarantee proper configuration.
To make Amphora the default provider, specify it in the
OpenStackDeployment custom resource:
spec:features:octavia:default_provider:amphorav2
Verify that the OpenStack Controller has scheduled new Octavia pods that
include health manager, worker, and housekeeping pods.
kubectlgetpods-nopenstack-l'application=octavia,component in (worker, health_manager, housekeeping)'
Example of output for an environment with two compute nodes:
The workflow for creating new load balancers with Amphora is identical
to the workflow for creating load balancers with Octavia Tungsten Fabric
driver for LBaaS v2. You can do it either through the OpenStack Horizon
UI or OpenStack CLI.
If you have not defined amphorav2 as default provider in the
OpenStackDeployment custom resource, you can specify it explicitly
when creating a load balancer using the provider argument:
This section contains a summary of the Tungsten Fabric upstream features
and use cases not supported in MOSK,
features and use cases offered as Technology Preview
in the current product release if any, and known limitations of Tungsten
Fabric in integration with other product components.
Feature or use case
Status
Description
Tungsten Fabric web UI
Provided as is
MOSK provides the TF web UI as is and does not
include this service in the support Service Level Agreement
Automatic generation of network port records in DNSaaS
(Designate)
Not supported
As a workaround, you can use the Tungsten Fabric
built-in DNS service that enables virtual machines to resolve
each other names
Secret management (Barbican)
Not supported
It is not possible to use the certificates stored in Barbican
to terminate HTTPs on a load balancer in a Tungsten Fabric deployment
Role Based Access Control (RBAC) for Neutron objects
Not supported
Advanced Tungsten Fabric features
Provided as is
MOSK provides the following advanced Tungsten Fabric
features as is and does not include them in the support Service
Level Agreement:
Service Function Chaining
Production ready multi-site SDN
Layer 3 multihoming
Long-Lived Graceful Restart (LLGR)
Technical Preview
DPDK
Monitoring of tf-rabbitmq
Not supported
Due to a known issue, tf-rabbitmq is not monitored on new
MOSK 22.5 clusters. The existing clusters updated to
MOSK 22.5 are not affected.
The integration between the OpenStack and TF controllers is
implemented through the shared Kubernetes openstack-tf-shared namespace.
Both controllers have access to this namespace to read and write the Kubernetes
kind: Secret objects.
The OpenStack Controller posts the data into the openstack-tf-shared
namespace required by the TF services. The TF controller watches this
namespace. Once an appropriate secret is created, the TF controller obtains it
into the internal data structures for further processing.
The OpenStack Controller includes the following data for the TF Controller:
tunnel_inteface
Name of the network interface for the TF data plane. This interface
is used by TF for the encapsulated traffic for overlay networks.
Keystone authorization information
Keystone Administrator credentials and an up-and-running IAM service
are required for the TF Controller to initiate the deployment process.
Nova metadata information
Required for the TF vRrouter agent service.
Also, the OpenStack Controller watches the openstack-tf-shared namespace
for the vrouter_port parameter that defines the vRouter port number and
passes it to the nova-compute pod.
The list of the OpenStack services that are integrated with TF through their
API include:
neutron-server - integration is provided by the
contrail-neutron-plugin component that is used by the neutron-server
service for transformation of the API calls to the TF API compatible
requests.
nova-compute - integration is provided by the
contrail-nova-vif-driver and contrail-vrouter-api packages used
by the nova-compute service for interaction with the TF vRouter to
the network ports.
octavia-api - integration is provided by the Octavia TF Driver that
enables you to use OpenStack CLI and Horizon for operations with load
balancers. See Tungsten Fabric load balancing (HAProxy) for details.
Warning
TF is not integrated with the following OpenStack services:
Depending on the size of an OpenStack environment and the components
that you use, you may want to have a single or multiple network interfaces,
as well as run different types of traffic on a single or multiple VLANs.
This section provides the recommendations for planning the network
configuration and optimizing the cloud performance.
Mirantis OpenStack for Kubernetes (MOSK) cluster networking is
complex and defined by the security requirements and performance
considerations. It is based on the Kubernetes cluster networking provided by
Mirantis Container Cloud and expanded to facilitate the demands of the
OpenStack virtualization platform.
A Container Cloud Kubernetes cluster provides a platform for
MOSK and is considered a part of its control plane. All
networks that serve Kubernetes and related traffic are considered control
plane networks. The Kubernetes cluster networking is typically focused on
connecting pods of different nodes as well as exposing the Kubernetes API and
services running in pods into an external network.
The OpenStack networking connects virtual machines to each other and the
outside world. Most of the OpenStack-related networks are considered a part of
the data plane in an OpenStack cluster. Ceph networks are considered data
plane networks for the purpose of this reference architecture.
When planning your OpenStack environment, consider the types of traffic that
your workloads generate and design your network accordingly. If you
anticipate that certain types of traffic, such as storage replication,
will likely consume a significant amount of network bandwidth, you may
want to move that traffic to a dedicated network interface to avoid
performance degradation.
The following diagram provides a simplified overview of the underlay
networking in a MOSK environment:
This page summarizes the recommended networking architecture of a Mirantis
Container Cloud management cluster for a Mirantis OpenStack for Kubernetes
(MOSK) cluster.
We recommend deploying the management cluster with a dedicated interface
for the provisioning (PXE) network. The separation of the provisioning network
from the management network ensures additional security and resilience of
the solution.
MOSK end users typically should have access to the Keycloak
service in the management cluster for authentication to the Horizon web UI.
Therefore, we recommend that you connect the management network of the
management cluster to an external network through an IP router. The default
route on the management cluster nodes must be configured with the default
gateway in the management network.
If you deploy the multi-rack configuration, ensure that the provisioning
network of the management cluster is connected to an IP router that connects
it to the provisioning networks of all racks.
Facilitates the iPXE boot of all bare metal machines in a
MOSK cluster and provisioning of the operating system
to machines.
This network is only used during provisioning of the host. It must not
be configured on an operational MOSK node.
Life-cycle management (LCM) network
Connects LCM Agents running on the hosts to the Container Cloud LCM API.
The LCM API is provided by the management cluster.
The LCM network is also used for communication between kubelet
and the Kubernetes API server inside a Kubernetes cluster. The MKE
components use this network for communication inside a swarm cluster.
The LCM subnet(s) provides IP addresses that are statically allocated
by the IPAM service to bare metal hosts. This network must be connected
to the Kubernetes API endpoint of the management cluster through an
IP router. LCM Agents running on MOSK clusters will
connect to the management cluster API through this router. LCM subnets
may be different per MOSK cluster as long as this
connection requirement is satisfied.
You can use more than one LCM network segment in a MOSK
cluster. In this case, separated L2 segments and interconnected L3
subnets are still used to serve LCM and API traffic.
All IP subnets in the LCM networks must be connected to each other
by IP routes. These routes must be configured on the hosts through
L2 templates.
All IP subnets in the LCM network must be connected to the Kubernetes
API endpoints of the management cluster through an IP router.
You can manually select the load balancer IP address for external
access to the cluster API and specify it in the Cluster object
configuration. Alternatively, you can allocate a dedicated IP range
for a virtual IP of the cluster API load balancer by adding a Subnet
object with a special annotation. Mirantis recommends that this subnet
stays unique per MOSK cluster.
For details, see Create subnets.
Note
When using the ARP announcement of the IP address for the
cluster API load balancer, the following limitations apply:
Only one of the LCM networks can contain the API endpoint.
This network is called API/LCM throughout this documentation.
It consists of a VLAN segment stretched between all Kubernetes
master nodes in the cluster and the IP subnet that provides
IP addresses allocated to these nodes.
The load balancer IP address must be allocated from the same
subnet CIDR address that the LCM subnet uses.
When using the BGP announcement of the IP address for the cluster API
load balancer, which is available as Technology Preview since
MOSK 23.2.2, no segment stretching is required
between Kubernetes master nodes. Also, in this scenario, the load
balancer IP address is not required to match the LCM subnet CIDR address.
Kubernetes workloads network
Serves as an underlay network for traffic between pods in
the MOSK cluster. Do not share this network between
clusters.
There might be more than one Kubernetes pods network segment in the cluster.
In this case, they must be connected through an IP router.
Kubernetes workloads network does not need an external access.
The Kubernetes workloads subnet(s) provides IP addresses that
are statically allocated by the IPAM service to all nodes and that
are used by Calico for cross-node communication inside a cluster.
By default, VXLAN overlay is used for Calico cross-node communication.
Kubernetes external network
Serves for an access to the OpenStack endpoints in a MOSK
cluster.
When using the ARP announcement of the external endpoints of
load-balanced services, the network must contain a VLAN segment
extended to all MOSK nodes connected to this network.
When using the BGP announcement of the external endpoints of
load-balanced services, which is available as Technology Preview since
MOSK 23.2.2, there is no requirement of having
a single VLAN segment extended to all MOSK nodes
connected to this network.
A typical MOSK cluster only has one external network.
The external network must include at least two IP address ranges
defined by separate Subnet objects in Container Cloud API:
MOSK services address range
Provides IP addresses for externally available
load-balanced services, including OpenStack API endpoints.
External address range
Provides IP addresses to be assigned to network interfaces
on all cluster nodes that are connected to this network.
MetalLB speakers must run on the same nodes. For details, see
Configure the MetalLB speaker node selector.
This is required for external traffic to return to the originating
client. The default route on the MOSK nodes that
are connected to the external network must be configured with the
default gateway in the external network.
Storage access network
Serves for the storage access traffic from and to Ceph OSD services.
A MOSK cluster may have more than one VLAN segment
and IP subnet in the storage access network. All IP subnets of this
network in a single cluster must be connected by an IP router.
The storage access network does not require external access unless
you want to directly expose Ceph to the clients outside of a
MOSK cluster.
Note
A direct access to Ceph by the clients outside of a
MOSK cluster is technically possible but not
supported by Mirantis. Use at your own risk.
The IP addresses from subnets in this network are statically allocated
by the IPAM service to Ceph nodes. The Ceph OSD services bind to these
addresses on their respective nodes.
Serves for the storage replication traffic between Ceph OSD services.
A MOSK cluster may have more than one VLAN segment
and IP subnet in this network as long as the subnets are connected
by an IP router.
This network does not require external access.
The IP addresses from subnets in this network are statically allocated
by the IPAM service to Ceph nodes.
The Ceph OSD services bind to these addresses on their respective nodes.
The following diagram illustrates the networking schema of the Container Cloud
deployment on bare metal with a MOSK cluster using ARP
announcements:
Since 23.2.2, MOSK supports full L3 networking
topology in the Technology Preview scope.
The following diagram illustrates the networking schema of the Container Cloud
deployment on bare metal with a MOSK cluster using BGP
announcements:
This section describes network types for Layer 3 networks used for Kubernetes
and Mirantis OpenStack for Kubernetes (MOSK) clusters along with
requirements for each network type.
Note
Only IPv4 is currently supported by Container Cloud and IPAM
for infrastructure networks. Both IPv4 and IPv6 are supported
for OpenStack workloads.
The following diagram provides an overview of the underlay networks in a
MOSK environment:
If BGP announcement is configured for the MOSK cluster API LB address, the
API/LCM network is not required. Announcement of the cluster API LB address
is done using the LCM network.
If you configure ARP announcement of the load-balancer IP address for the
MOSK cluster API, the API/LCM network must be configured on the Kubernetes
manager nodes of the cluster. This network contains the Kubernetes API
endpoint with the VRRP virtual IP address.
LCM network
Enables communication between the MKE cluster nodes. Multiple VLAN
segments and IP subnets can be created for a multi-rack architecture. Each
server must be connected to one of the LCM segments and have an IP from
the corresponding subnet.
External network
Used to expose the OpenStack, StackLight, and other services of the
MOSK cluster.
Kubernetes workloads network
Used for communication between containers in Kubernetes.
Storage access network (Ceph)
Used for accessing the Ceph storage. In Ceph terms, this is a public
network 0. We recommended that it is placed on a dedicated hardware
interface.
Storage replication network (Ceph)
Used for Ceph storage replication. In Ceph terms, this is a cluster
network 0. To ensure low latency and fast access, place the network on a
dedicated hardware interface.
Typically, a routable network used to provide the external access to
OpenStack instances (a floating network). Can be used by the OpenStack
services such as Ironic, Manila, and others, to connect their
management resources.
pr-floating
Networking
Overlay networks (virtual networks)
The network used to provide denied, secure tenant networks with the
help of the tunneling mechanism (VLAN/GRE/VXLAN). If the VXLAN and GRE
encapsulation takes place, the IP address assignment is required on
interfaces at the node level.
neutron-tunnel
Compute
Live migration network
The network used by the OpenStack compute service (Nova) to transfer
data during live migration. Depending on the cloud needs, it can be
placed on a dedicated physical network not to affect other networks
during live migration. The IP address assignment is required on
interfaces at the node level.
lm-vlan
The way of mapping of the logical networks described above to physical
networks and interfaces on nodes depends on the cloud size and configuration.
We recommend placing OpenStack networks on a dedicated physical interface
(bond) that is not shared with storage and Kubernetes management network
to minimize the influence on each other.
The bridge interface with this name is mandatory if you need to separate
Kubernetes workloads traffic. You can configure this bridge over the VLAN or
directly over the bonded or single interface.
Routing to all IP subnets of the Storage access network
Routing to all IP subnets of the Storage replication network
Note
When selecting externally routable subnets, ensure that the subnet
ranges do not overlap with the internal subnets ranges. Otherwise, internal
resources of users will not be available from the MOSK
cluster.
Mirantis OpenStack for Kubernetes (MOSK) enables you to deploy a
cluster with a multi-rack architecture, where every data center cabinet
(a rack) incorporates its own Layer 2 network infrastructure that does not
extend beyond its top-of-rack switch. The architecture allows a
MOSK cloud to integrate natively with the Layer 3-centric
networking topologies such as Spine-Leaf
that are commonly seen in modern data centers.
The architecture eliminates the need to stretch and manage VLANs across
parts of a single data center, or to build VPN tunnels between the segments of
a geographically distributed cloud.
The set of networks present in each rack depends on the backend used by the
OpenStack networking service.
In the Mirantis Container Cloud and MOSK multi-rack
reference architecture, every rack has its own L2 segment (VLAN) to bootstrap
and install servers.
Segmentation of the provisioning network requires additional configuration
of the underlay networking infrastructure and certain Container Cloud API
objects. You need to configure a DHCP Relay agent on the border of each VLAN
in the provisioning network. The agent handles broadcast DHCP requests coming
from the bare metal servers in the rack and forwards them as unicast packets
across L3 fabric of the data center to a Container Cloud management cluster.
The DHCP server of Container Cloud automatically leases a temporary IP address
from the DHCP range to the requester host depending on the address of the DHCP
agent that relays the request.
To deploy a MOSK cluster with multi-rack reference
architecture, you need to create a dedicated set of subnets and L2 templates
for every rack in your cluster.
Every specific host type in the rack, which is defined by the role in the
MOSK cluster and network-related hardware configuration,
may require a specific L2 template.
For MOSK 23.1 and older versions, due to the Container
Cloud limitations, you need to configure the following networks to have L2
segments (VLANs) stretch across racks to all hosts of certain types in
a multi-rack environment:
LCM/API network
Must be configured on the Kubernetes manager nodes of the
MOSK cluster. Contains a Kubernetes API endpoint with a
VRRP virtual IP address. Enables MKE cluster nodes to communicate
with each other.
External network
Exposes OpenStack, StackLight, and other services of the
MOSK cluster to external clients.
When planning space allocation for IP addresses in your cluster, pick large
IP ranges for each type of network. Then you will split these ranges into
per-rack subnets.
For example, if you allocate a /20 address block for LCM network,
then you can create up to 16 Subnet objects with the /24 address block
each for up to 16 racks. This way you can simplify routing on your hosts using
the large /20 IP subnet as an aggregated route destination. For details,
see Underlay networking: routing configuration.
A typical medium and more sized MOSK cloud consists of three
or more racks that can generally be divided into the following major
categories:
Compute/Storage racks that contain the hypervisors and instances running on
top of them. Additionally, they contain nodes that store cloud applications’
block, ephemeral, and object data as part of the Ceph cluster.
Control plane racks that incorporate all the components needed by the cloud
operator to manage its life cycle. Also, they include the services through
which the cloud users interact with the cloud to deploy their applications,
such as cloud APIs and web UI.
A control plane rack may also contain additional compute and storage nodes.
The diagram below will help you to plan the networking layout of a multi-rack
MOSK cloud with Tungsten Fabric.
For MOSK 23.1 and older versions, Kubernetes masters
(3 nodes) either need to be placed into a single rack or, if distributed
across multiple racks for better availability, require stretching of the
L2 segment of the management network across these racks.
This requirement is caused by the Mirantis Kubernetes Engine underlay for
MOSK relying on the Layer 2 VRRP protocol to ensure high
availability of the Kubernetes API endpoint.
The table below provides a mapping between the racks and the network types
participating in a multi-rack MOSK cluster with the
Tungsten Fabric backend.
Networks and VLANs for a multi-rack MOSK
cluster with TF¶
This section summarizes the requirements for the physical layout of underlay
network and VLANs configuration for the multi-rack architecture of
Mirantis OpenStack for Kubernetes (MOSK).
Physical networking of a Container Cloud management cluster¶
Due to limitations of virtual IP address for Kubernetes API and of MetalLB
load balancing in Container Cloud, the management cluster nodes must share
VLAN segments in the provisioning and management networks.
In the multi-rack architecture, the management cluster nodes may be placed to
a single rack or spread across three racks. In either case, provisioning and
management network VLANs must be stretched across ToR switches of the racks.
The following diagram illustrates physical and L2 connections of
the Container Cloud management cluster.
If you configure BGP announcement for IP addresses of load-balanced services
of a MOSK cluster, the external network can consist of multiple VLAN segments
connected to all nodes of a MOSK cluster where MetalLB speaker components are
configured to announce IP addresses for Kubernetes load-balanced services.
Mirantis recommends that you use OpenStack controller nodes for this purpose.
If you configure ARP announcement for IP addresses of load-balanced services
of a MOSK cluster, the external network must consist of a single VLAN
stretched to the ToR switches of all the racks where MOSK nodes connected to
the external network are located. Those are the nodes where MetalLB speaker
components are configured to announce IP addresses for Kubernetes load-balanced
services. Mirantis recommends that you use OpenStack controller nodes for this
purpose.
If BGP announcement is configured for MOSK
cluster API LB address, Kubernetes manager
nodes have no requirement to share the single stretched VLAN segment in the
API/LCM network. All VLANs may be configured per rack.
If ARP announcement is configured for
MOSK cluster API LB address, Kubernetes manager
nodes must share the VLAN segment in the API/LCM network.
In the multi-rack architecture, Kubernetes manager nodes may be spread
across three racks. The API/LCM network VLAN must be stretched to the ToR
switches of the racks. All other VLANs may be configured per rack.
This requirement is caused by the Mirantis Kubernetes Engine underlay for
MOSK relying on the Layer 2 VRRP protocol to ensure high
availability of the Kubernetes API endpoint.
The following diagram illustrates physical and L2 network connections
of the Kubernetes manager nodes in a MOSK cluster.
Caution
Such configuration does not apply to a compact control plane
MOSK installation. See Create a MOSK cluster.
This section describes requirements for the configuration of the underlay
network for an MOSK cluster in a multi-rack
reference configuration. The infrastructure operator must configure the
underlay network according to these guidelines. Mirantis Container Cloud will
not configure routing on the network devices.
In the multi-rack reference architecture, every server rack has its own
layer-2 segment (VLAN) for network bootstrap and installation of physical
servers.
You need to configure top-of-rack (ToR) switches in each rack with the default
gateway for the provisioning network VLAN. This gateway must also serve as a
DHCP Relay Agent on the border of the VLAN. The agent handles broadcast
DHCP requests coming from the bare metal servers in the rack and
forwards them as unicast packets across the data center L3 fabric to the
provisioning network of a Container Cloud management cluster.
Therefore, each ToR gateway must have an IP route to the IP subnet of the
provisioning network of the management cluster. The provisioning network
gateway, in turn, must have routes to all IP subnets of all racks.
The hosts of the management cluster must have routes to all IP subnets
in the provisioning network through the gateway in the provisioning network
of the management cluster.
All hosts in the management cluster must have IP addresses from the same
IP subnet of the provisioning network. Even if the hosts
of the management cluster are mounted to different racks, they must share
a single provisioning VLAN segment.
All hosts of a management cluster must have IP addresses from the same subnet
of the management network. Even if hosts of a management cluster are mounted
to different racks, they must share a single management VLAN segment.
The gateway in this network is used as the default route on the nodes
in a Container Cloud management cluster. This gateway must connect to
external Internet networks directly or through a proxy server.
If the Internet is accessible through a proxy server, you must configure
Container Cloud bootstrap to use it as well. For details, see
Container Cloud Deployment Guide: Deploy a management cluster using CLI.
This network connects a Container Cloud management cluster to Kubernetes
API endpoints of MOSK clusters. It also connects LCM agents
of MOSK nodes to the Kubernetes API endpoint of the
management cluster.
The network gateway must have routes to all API/LCM subnets of all
MOSK clusters.
This network may include multiple VLANs, typically, one VLAN per rack.
Each VLAN may have one or more IP subnets with gateways configured on
ToR switches.
Each ToR gateway must provide routes to all other IP subnets in all
other VLANs in the LCM network to enable communication between nodes
in the cluster.
If you configure BGP announcement of the load-balancer IP address for a
MOSK cluster API:
All nodes of a MOSK cluster must be connected to the
LCM network. Each host connected to this network must have routes to all
IP subnets in the LCM network and to the management subnet of the
management cluster, through the ToR gateway for the rack of this host.
It is not required to configure a separate API/LCM network.
Announcement of the IP address of the load balancer is done using the LCM
network.
If you configure ARP announcement of the load-balancer IP address for a
MOSK cluster API:
All nodes of a MOSK cluster excluding manager nodes
must be connected to the LCM network. Each host connected to this network
must have routes to all IP subnets in the LCM network, including the
API/LCM network of this MOSK cluster and to the
Management subnet of the management cluster, through the ToR gateway for
the rack of this host.
It is required to configure a separate API/LCM network. All manager nodes
of a MOSK cluster must be connected to the API/LCM
network. IP address announcement for load balancing is done using the
API/LCM network.
If BGP announcement is configured for the MOSK cluster API LB address, the
API/LCM network is not required. Announcement of the cluster API LB address
is done using the LCM network.
If you configure ARP announcement of the load-balancer IP address for the
MOSK cluster API, the API/LCM network must be configured on the Kubernetes
manager nodes of the cluster. This network contains the Kubernetes API
endpoint with the VRRP virtual IP address.
This network consists of a single VLAN shared between all
MOSK manager nodes in a MOSK cluster,
even if the nodes are spread across multiple racks.
All manager nodes of a MOSK cluster must be connected to
this network and have IP addresses from the same subnet in this network.
The gateway in the API/LCM network for a MOSK cluster
must have a route to the Management subnet of the management cluster.
This is required to ensure symmetric traffic flow between the management
and MOSK clusters.
The gateway in this network must also have routes to all IP subnets
in the LCM network of this MOSK cluster.
The load-balancer IP address for cluster API must be allocated from the same
CIDR address that the API/LCM subnet uses.
If you configure BGP announcement for IP addresses of load-balanced services
of a MOSK cluster, the external network can consist of multiple VLAN segments
connected to all nodes of a MOSK cluster where MetalLB speaker components are
configured to announce IP addresses for Kubernetes load-balanced services.
Mirantis recommends that you use OpenStack controller nodes for this purpose.
If you configure ARP announcement for IP addresses of load-balanced services
of a MOSK cluster, the external network must consist of a single VLAN
stretched to the ToR switches of all the racks where MOSK nodes connected to
the external network are located. Those are the nodes where MetalLB speaker
components are configured to announce IP addresses for Kubernetes load-balanced
services. Mirantis recommends that you use OpenStack controller nodes for this
purpose.
The IP gateway in this network is used as the default route on all nodes in the
MOSK cluster, which are connected to this network.
This allows external users to connect to the OpenStack endpoints exposed as
Kubernetes load-balanced services.
Dedicated IP ranges from this network must be configured as address pools
for the MetalLB service. MetalLB allocates addresses from these address pools
to Kubernetes load-balanced services.
This network may include multiple VLANs and IP subnets, typically,
one VLAN and IP subnet per rack. All IP subnets in this network must
be connected by IP routes on the ToR switches.
Typically, every node in a MOSK cluster is connected
to this network and have routes to all IP subnets from this network through
its rack IP gateway.
This network is not connected to the external networks.
This network may include multiple VLANs and IP subnets, typically,
one VLAN and IP subnet per rack. All IP subnets in this network must
be connected by IP routes on the ToR switches.
Every Ceph OSD node in a MOSK cluster must be connected
to this network and have routes to all IP subnets from this network
through its rack IP gateway.
This network is not connected to the external networks.
This network may include multiple VLANs and IP subnets, typically,
one VLAN and IP subnet per rack. All IP subnets in this network must
be connected by IP routes on the ToR switches.
All nodes in a MOSK cluster must be connected
to this network and have routes to all IP subnets from this network
through its rack IP gateway.
This network is not connected to the external networks.
To improve the goodput, we recommend that you enable jumbo frames where
possible. The jumbo frames have to be enabled on the whole path of the packets
traverse. If one of the network components cannot handle jumbo frames, the
network path uses the smallest MTU.
To provide fault tolerance of a single NIC, we recommend using the link
aggregation, such as bonding. The link aggregation is useful for linear
scaling of bandwidth, load balancing, and fault protection. Depending
on the hardware equipment, different types of bonds might be supported.
Use the multi-chassis link aggregation as it provides fault tolerance
at the device level. For example, MLAG on Arista equipment or vPC on
Cisco equipment.
The Linux kernel supports the following bonding modes:
active-backup
balance-xor
802.3ad (LACP)
balance-tlb
balance-alb
Since LACP is the IEEE standard 802.3ad supported by the majority of
network platforms, we recommend using this bonding mode.
Use the Link Aggregation Control Protocol (LACP) bonding mode
with MC-LAG domains configured on ToR switches. This corresponds to
the 802.3ad bond mode on hosts.
Additionally, follow these recommendations in regards to bond interfaces:
Use ports from different multi-port NICs when creating bonds. This makes
network connections redundant if failure of a single NIC occurs.
Configure the ports that connect servers to the PXE network with PXE VLAN
as native or untagged. On these ports, configure LACP fallback to ensure
that the servers can reach DHCP server and boot over network.
Configure Spanning Tree Protocol (STP) settings on the network switch ports to
ensure that the ports start forwarding packets as soon as the link comes up.
It helps avoid iPXE timeout issues and ensures reliable boot over network.
A MOSK cluster uses Ceph as a distributed storage system
for file, block, and object storage. This section provides an overview of a
Ceph cluster deployed by Container Cloud.
Mirantis Container Cloud deploys Ceph on MOSK using Helm
charts with the following components:
Rook Ceph Operator
A storage orchestrator that deploys Ceph on top of a Kubernetes cluster. Also
known as Rook or RookOperator. Rook operations include:
Deploying and managing a Ceph cluster based on provided Rook CRs such as
CephCluster, CephBlockPool, CephObjectStore, and so on.
Orchestrating the state of the Ceph cluster and all its daemons.
KaaSCephCluster custom resource (CR)
Represents the customization of a Kubernetes installation and allows you to
define the required Ceph configuration through the Container Cloud web UI
before deployment. For example, you can define the failure domain, Ceph pools,
Ceph node roles, number of Ceph components such as Ceph OSDs, and so on.
The ceph-kcc-controller controller on the Container Cloud management
cluster manages the KaaSCephCluster CR.
Ceph Controller
A Kubernetes controller that obtains the parameters from Container Cloud
through a CR, creates CRs for Rook and updates its CR status based on the Ceph
cluster deployment progress. It creates users, pools, and keys for OpenStack
and Kubernetes and provides Ceph configurations and keys to access them. Also,
Ceph Controller eventually obtains the data from the OpenStack Controller for
the Keystone integration and updates the Ceph Object Gateway services
configurations to use Kubernetes for user authentication. Ceph Controller
operations include:
Transforming user parameters from the Container Cloud Ceph CR into Rook CRs
and deploying a Ceph cluster using Rook.
Providing integration of the Ceph cluster with Kubernetes.
Providing data for OpenStack to integrate with the deployed Ceph cluster.
Ceph Status Controller
A Kubernetes controller that collects all valuable parameters from the current
Ceph cluster, its daemons, and entities and exposes them into the
KaaSCephCluster status. Ceph Status Controller operations include:
Collecting all statuses from a Ceph cluster and corresponding Rook CRs.
Collecting additional information on the health of Ceph daemons.
Provides information to the status section of the KaaSCephCluster
CR.
Ceph Request Controller
A Kubernetes controller that obtains the parameters from Container Cloud
through a CR and manages Ceph OSD lifecycle management (LCM) operations. It
allows for a safe Ceph OSD removal from the Ceph cluster. Ceph Request
Controller operations include:
Providing an ability to perform Ceph OSD LCM operations.
Obtaining specific CRs to remove Ceph OSDs and executing them.
Pausing the regular Ceph Controller reconciliation until all requests are
completed.
A typical Ceph cluster consists of the following components:
Ceph Monitors - three or, in rare cases, five Ceph Monitors.
Ceph Managers - one Ceph Manager in a regular cluster.
Ceph Object Gateway (radosgw) - Mirantis recommends having three or more
radosgw instances for HA.
Ceph OSDs - the number of Ceph OSDs may vary according to the deployment
needs.
Warning
A Ceph cluster with 3 Ceph nodes does not provide
hardware fault tolerance and is not eligible
for recovery operations,
such as a disk or an entire Ceph node replacement.
A Ceph cluster uses the replication factor that equals 3.
If the number of Ceph OSDs is less than 3, a Ceph cluster
moves to the degraded state with the write operations
restriction until the number of alive Ceph OSDs
equals the replication factor again.
The placement of Ceph Monitors and Ceph Managers is defined in the
KaaSCephCluster CR.
The following diagram illustrates the way a Ceph cluster is deployed in
Container Cloud:
The following diagram illustrates the processes within a deployed Ceph cluster:
A Ceph cluster configuration in MOSK includes but is
not limited to the following limitations:
Only one Ceph Controller per MOSK cluster
and only one Ceph cluster per Ceph Controller are supported.
The replication size for any Ceph pool must be set to more than 1.
Only one CRUSH tree per cluster. The separation of devices per Ceph pool is
supported through device classes
with only one pool of each type for a device class.
All CRUSH rules must have the same failure_domain.
Only the following types of CRUSH buckets are supported:
topology.kubernetes.io/region
topology.kubernetes.io/zone
topology.rook.io/datacenter
topology.rook.io/room
topology.rook.io/pod
topology.rook.io/pdu
topology.rook.io/row
topology.rook.io/rack
topology.rook.io/chassis
RBD mirroring is not supported.
Consuming an existing Ceph cluster is not supported.
CephFS is not supported.
Only IPv4 is supported.
If two or more Ceph OSDs are located on the same device, there must be no
dedicated WAL or DB for this class.
Only a full collocation or dedicated WAL and DB configurations are supported.
The minimum size of any defined Ceph OSD device is 5 GB.
Ceph OSDs support only raw disks as data devices meaning that no dm or
lvm devices are allowed.
Lifted since MOSK 23.3. Ceph cluster does not support
removable devices (with hotplug enabled) for deploying Ceph OSDs.
When adding a Ceph node with the Ceph Monitor role, if any issues occur with
the Ceph Monitor, rook-ceph removes it and adds a new Ceph Monitor instead,
named using the next alphabetic character in order. Therefore, the Ceph Monitor
names may not follow the alphabetical order. For example, a, b, d,
instead of a, b, c.
Reducing the number of Ceph Monitors is not supported and causes the Ceph
Monitor daemons removal from random nodes.
Removal of the mgr role in the nodes section of the
KaaSCephCluster CR does not remove Ceph Managers. To remove a Ceph
Manager from a node, remove it from the nodes spec and manually delete
the mgr pod in the Rook namespace.
Lifted since MOSK 24.1. Ceph does not support allocation
of Ceph RGW pods on nodes where the Federal Information Processing Standard
(FIPS) mode is enabled.
The integration between Ceph and OpenStack controllers is implemented
through the shared Kubernetes openstack-ceph-shared namespace.
Both controllers have access to this namespace to read and write
the Kubernetes kind: Secret objects.
As Ceph is required and only supported backend for several OpenStack
services, all necessary Ceph pools must be specified in the configuration
of the kind: MiraCeph custom resource as part of the deployment.
Once the Ceph cluster is deployed, the Ceph Controller posts the
information required by the OpenStack services to be properly configured
as a kind: Secret object into the openstack-ceph-shared namespace.
The OpenStack Controller watches this namespace. Once the corresponding
secret is created, the OpenStack Controller transforms this secret to the
data structures expected by the OpenStack-Helm charts. Even if an OpenStack
installation is triggered at the same time as a Ceph cluster deployment, the
OpenStack Controller halts the deployment of the OpenStack services that
depend on Ceph availability until the secret in the shared namespace is
created by the Ceph Controller.
For the configuration of Ceph Object Gateway as an OpenStack Object
Storage, the reverse process takes place. The OpenStack Controller waits
for the OpenStack-Helm to create a secret with OpenStack Identity
(Keystone) credentials that Ceph Object Gateway must use to validate the
OpenStack Identity tokens, and posts it back to the same
openstack-ceph-shared namespace in the format suitable for
consumption by the Ceph Controller. The Ceph Controller then reads this
secret and reconfigures Ceph Object Gateway accordingly.
StackLight is the logging, monitoring, and alerting solution that provides a
single pane of glass for cloud maintenance and day-to-day operations as well
as offers critical insights into cloud health including operational
information about the components deployed with Mirantis OpenStack for
Kubernetes (MOSK). StackLight is based on Prometheus, an
open-source monitoring solution and a time series database, and OpenSearch, the
logs and notifications storage.
Mirantis OpenStack for Kubernetes (MOSK) deploys the StackLight stack
as a release of a Helm chart that contains the helm-controller and HelmBundle
custom resources. The StackLight HelmBundle consists of a set of Helm charts
describing the StackLight components. Apart from the OpenStack-specific
components below, StackLight also includes the components described in
Mirantis Container Cloud Reference Architecture: Deployment architecture.
By default, StackLight logging stack is disabled.
StackLight measures, analyzes, and reports in a timely manner about failures
that may occur in the following Mirantis OpenStack for Kubernetes
(MOSK)
components and their sub-components. Apart from the components below,
StackLight also monitors the components listed in
Mirantis Container Cloud Reference Architecture: Monitored components.
Calculations in this document are based on numbers from a
real-scale test cluster with 34 nodes. The exact space required for metrics
and logs must be calculated depending on the ongoing cluster operations.
Some operations force the generation of additional metrics and logs. The
values below are approximate. Use them only as recommendations.
During the deployment of a new cluster, you must specify the OpenSearch
retention time and Persistent Volume Claim (PVC) size, Prometheus PVC,
retention time, and retention size.
When configuring an existing cluster, you can only set OpenSearch
retention time, Prometheus retention time, and retention size.
The following table describes the recommendations for both OpenSearch
and Prometheus retention size and PVC size for a cluster with 34 nodes.
Retention time depends on the space allocated for the data. To calculate
the required retention time, use the
{retentiontime}={retentionsize}/{amountofdataperday} formula.
Service
Required space per day
Description
OpenSearch
StackLight in non-HA mode:
202 - 253 GB for the entire cluster
~6 - 7.5 GB for a single node
StackLight in HA mode:
404 - 506 GB for the entire cluster
~12 - 15 GB for a single node
When setting Persistent Volume Claim Size for OpenSearch
during the cluster creation, take into account that it defines the PVC
size for a single instance of the OpenSearch cluster. StackLight in HA
mode has 3 OpenSearch instances. Therefore, for a total OpenSearch
capacity, multiply the PVC size by 3.
Prometheus
11 GB for the entire cluster
~400 MB for a single node
Every Prometheus instance stores the entire database. Multiple replicas
store multiple copies of the same data. Therefore, treat the Prometheus
PVC size as the capacity of Prometheus in the cluster. Do not sum them
up.
Prometheus has built-in retention mechanisms based on the database size
and time series duration stored in the database. Therefore, if you
miscalculate the PVC size, retention size set to ~1 GB less than the PVC
size will prevent disk overfilling.
StackLight integration with OpenStack includes automatic discovery of RabbitMQ
credentials for notifications and OpenStack credentials for OpenStack API
metrics. For details, see the
openstack.rabbitmq.credentialsConfig and
openstack.telegraf.credentialsConfig parameters description in
StackLight configuration parameters.
Lifecycle management operations of a MOSK cluster may
impose impact on its workloads and, specifically, may cause network
connectivity interruptions for instances running in OpenStack.
To make sure that the downtime caused on the cloud applications still
fits into Service Level Agreements (SLAs), MOSK
provides the tooling to measure the network availability of instances.
Additionally, continuous monitoring of the network connectivity in the cluster
is essential for early detection of infrastructure problems.
MOSK offers cloud operators to oversee the availability
of workloads hosted in their OpenStack infrastructure on several levels:
Monitoring of floating IP addresses through the Cloudprober service
Monitoring of network ports availability through the Portprober service
Floating IP address availability monitoring (Cloudprober)¶
Available since MOSK 23.2TechPreview
The floating IP address availability monitoring service (Cloudprober) is a
special probing agent that starts on controller nodes and periodically pings
selected floating IP addresses. As of today, the agent supports
only Internet Control Message Protocol (ICMP) to determine the IP address
availability.
instance_availability_arch
To monitor the availability of floating IP addresses, your
MOSK cluster and workloads need to meet the
following requirements:
There must be the layer-3 connectivity between the clusters floating
IP networks and nodes running the OpenStack control plane.
The guest operating system of the monitored OpenStack instances must allow
the ICMP ingress and egress traffic.
OpenStack security groups used by the monitored instances must allow the ICMP
ingress and egress traffic.
To enable the floating IP address availability monitoring service, use the
following OpenStackDeployment definition:
Network port availability monitoring (Portprober)¶
Available since MOSK 24.2TechPreview
The network port availability monitoring service (Portprober) is implemented
as an extension to OpenStack Neutron service which gets enabled automatically
together with the cloudprober service described above.
Also, you can enable Portprober explicitly, regardless of whether Cloudprober
is enabled or not. To do so, specify the following structure in the
OpenStackDeployment custom resource:
The Portprober service is supported only for the following cloud
configurations:
OpenStack version is Antelope or newer
Neutron OVS backend for networking (Tungsten Fabric and OVN backends are
not supported)
portprober
The Portprober agent automatically connects to all OpenStack virtual networks
and probes all the ports that are plugged in there and are in the bound
state, meaning they are associated with an instance or a network service.
The service makes no difference between private and external networks and also
reports the availability of the ports that belong to virtual routers.
The service relies on the ARP protocol to determine port availability and
does not require any security groups to be assigned to monitored instances,
as opposed to the Floating IP address monitoring service (Cloudprober).
Among the known limitations of the network port availability monitoring
service is the lack of support for IPv6. The service ignores the ports that
do not have IPv4 addresses associated with them.
This section contains a collection of Mirantis OpenStack for Kubernetes
(MOSK) architecture blueprints that include common cluster
topology and configuration patterns that can be referred to when building a
MOSK cloud. Every blueprint is validated by Mirantis and
is known to work. You can use these blueprints alone or in combination,
although the interoperability of all possible combinations can not be
guaranteed.
The section provides information on the target use cases, pros and cons of
every blueprint and outlines the extents of its applicability. However, do
not hesitate to reach out to Mirantis if you have any questions or doubts
on whether a specific blueprint can be applied when designing your cloud.
Although a classic cloud approach allows resources to be distributed across
multiple regions, it still needs powerful data centers to host control planes
and compute clusters. Such regional centralization poses challenges when the
number of data consumers grows. It becomes hard to access the resources hosted
in the cloud even though the resources are located in the same geographic
region. The solution would be to bring the data closer to the consumer.
And this is exactly what edge computing provides.
Edge computing is a paradigm that brings computation and data storage closer to
the sources of data or the consumer. It is designed to improve response time
and save bandwidth.
A few examples of use cases for edge computing include:
Hosting a video stream processing application on premises of a large stadium
during the Super Bowl match
Placing the inventory or augmented reality services directly in the
industrial facilities, such as storage, powerplant, shipyard, and so on
A small computation node deployed in a far-distanced village supermarket to
host an application for store automatization and accounting
These and many other use cases could be solved by deploying multiple edge
clusters managed from a single central place. The idea of centralized
management plays a significant role for the business efficiency of the edge
cloud environment:
Cloud operators obtain a single management console for the cloud that
simplifies the Day-1 provisioning of new edge sites and Day-2 operations
across multiple geographically distributed points of presence
Cloud users get ability to transparently connect their edge applications
with central databases or business logic components hosted in data centers
or public clouds
Depending on the size, location, and target use case, the points of presence
comprising an edge cloud environment can be divided into five major categories.
Mirantis OpenStack powered by Mirantis Container Cloud offers reference
architectures to address the centralized management in core and regional data
centers as well as edge sites.
Remote compute nodes is one of the approaches to the implementation of the
edge computing concept offered by MOSK. The topology
consists of a MOSK cluster residing in a data center,
which is extended with multiple small groups of compute nodes deployed in
geographically distanced remote sites. Remote compute nodes are integrated
into the MOSK cluster just like the nodes in the central
site with their configuration and life cycle managed through the same means.
Along with compute nodes, remote sites need to incorporate network gateway
components that allow application users to consume edge services directly
without looping the traffic through the central site.
Deployment of an edge cluster managed from a single central place starts with
a proper planning. This section provides recommendations on how to approach
the deployment design.
Compute nodes aggregation into availability zones¶
Mirantis recommends organizing nodes in each remote site into separate
Availability Zones in the MOSK Compute (OpenStack Nova),
Networking (OpenStack Neutron), and Block Storage (OpenStack Cinder)
services. This enables the cloud users to be aware of the failure domain
represented by a remote site and distribute the parts of their applications
accordingly.
Typically, high latency in between the central control plane and remote sites
makes it not feasible to rely on Ceph as a storage for the instance
root/ephemeral and block data.
Mirantis recommends that you configure the remote sites to use the following
backends:
Local storage (LVM or QCOW2) as a storage backend for the
MOSK Compute service. See images-storage-back-end
for the configuration details.
LVM on iSCSI backend for the MOSK Block Storage service.
See Enable LVM block storage for the enablement procedure.
To maintain the small size of a remote site, the compute nodes need to be
hyper-converged and combine the compute and block storage functions.
There is no limitation on the number of the remote sites and their size.
However, when planning the cluster, ensure consistency between the total number
of nodes managed by a single control plane and the value of the size
parameter set in the OpenStackDeployment custom resource. For the list of
supported sizes, refer to Main elements.
Additionally, the sizing of the remote site needs to take into account the
characteristics of the networking channel with the main site.
Typically, an edge site consists of 3-7 compute nodes installed in a single,
usually rented, rack.
Mirantis recommends keeping the network latency between the main and remote
sites as low as possible. For stable interoperability of cluster components,
the latency needs to be around 30-70 milliseconds. Though, depending on the
cluster configuration and dynamism of the workloads running in the remote site,
the stability of the cluster can be preserved with the latency of up to 190
milliseconds.
The bandwidth of the communication channel between the main and remote sites
needs to be sufficient to run the following traffic:
The control plane and management traffic, such as OpenStack messaging,
database access, MOSK underlay Kubernetes cluster control
plane, and so on. A single remote compute node in the idle state requires at
minimum 1.5 Mbit/s of bandwidth to perform the non-data plane communications.
The data plane traffic, such as OpenStack image operations, instances VNC
console traffic, and so on, that heavily depend on the profile of the
workloads and other aspects of the cloud usage.
In general, Mirantis recommends having a minimum of 100 MBit/s bandwidth
between the main and remote sites.
MOSK remote compute nodes architecture is designed to
tolerate a temporary loss of connectivity between the main cluster and
the remote sites. In case of a disconnection, the instances running
on remote compute nodes will keep running normally preserving their
ability to read and write ephemeral and block storage data presuming it
is located in the same site, as well as connectivity to their neighbours
and edge application users. However, the instances will not have access
to any cloud services or applications located outside of their remote site.
Since the MOSK control plane communicates with remote
compute nodes through the same network channel, cloud users will not be able
to perform any manipulations, for example, instance creation, deletion,
snapshotting, and so on, over their edge applications until the
connectivity gets restored. MOSK services providing high
availability to cloud applications, such as the Instance HA service and Network
service, need to be connected to the remote compute nodes to perform a failover
of application components running in the remote site.
Once the connectivity between the main and the remote site restores, all
functions become available again. The period during which an edge application
can sustain normal function after a connectivity loss is determined by multiple
factors including the selected networking backend for the
MOSK cluster. Mirantis recommends that a cloud operator
performs a set of test manipulations over the cloud resources hosted in the
remote site to ensure that it has been fully restored.
When configured in Tungsten Fabric-powered clouds, the Graceful restart and long-lived graceful restart
feature significantly improves the MOSK ability to sustain
the connectivity of workloads running at remote sites in situations when
a site experiences a loss of connection to the central hosting location of
the control plane.
Extensive testing has demonstrated that remote sites can effectively withstand
a 72-hour control plane disconnection with zero impact on the running
applications.
Given that a remote site communicates with its main MOSK
cluster across a wide area network (WAN), it becomes important to protect
sensitive data from being intercepted and viewed by a third party.
Specifically, you should ensure the protection of the data belonging to the
following cloud components:
Bare metal servers provisioning and control, Kubernetes cluster deployment
and management, Mirantis StackLight telemetry
MOSK control plane
Communication between the components of OpenStack, Tungsten Fabric, and
Mirantis Ceph
MOSK data plane
Cloud application traffic
The most reliable way to protect the data is to configure the network equipment
in the data center and the remote site to encapsulate all the bypassing
remote-to-main communications into an encrypted VPN tunnel. Alternatively,
Mirantis Container Cloud and MOSK can be configured to force
encryption of specific types of network traffic, such as:
Kubernetes networking for MOSK underlying Kubernetes
cluster that handles the vast majority of in-MOSK
communications
OpenStack tenant networking that carries all the cloud application traffic
The ability to enforce traffic encryption depends on the specific version of
the Mirantis Container Cloud and MOSK in use, as well as
the selected SDN backend for OpenStack.
In MOSK, the main cloud that controls remote computes can be
the regional site that locates the regional cluster and the
MOSK control plane. Additionally, it can contain a local
storage and compute nodes.
The remote computes implementation in MOSK considers
Tungsten Fabric as an SDN solution.
Remote computes bare metal servers are configured as Kubernetes workers
hosting the deployments for:
The architecture validation is perfomed by means of simultanious creation of
multiple OpenStack resources of various types and execution of functional tests
against each resource. The amount of resources hosted in the cluster at the
moment when a certain threshold of non-operational resources starts being
observed, is described below as cluster capacity limit.
Note
A successfully created resource has the Active status in the API
and passes the functional tests, for example, its floating IP address is
accessible. The MOSK cluster is considered to be able to
handle the created resources if it successfully performs the LCM operations
including the OpenStack services restart, both on the control and data
plane.
Note
The key limiting factor for creating more OpenStack objects in this
illustrative setup is hardware resources (vCPU and RAM) available on the
compute nodes.
Persistent storage is a key component of any MOSK
deployment. Out of the box, MOSK includes an open-source
software-defined storage solution (Ceph), which hosts various kinds of
cloud application data, such as root and ephemeral disks for virtual machines,
virtual machine images, attachable virtual block storage, and object data.
In addition, a Ceph cluster usually acts as a storage for the internal
MOSK components, such as Kubernetes, OpenStack, StackLight,
and so on.
Being distributed and redundant by design, Ceph requires a certain minimum
amount of servers, also known as OSD or storage nodes, to work.
A production-grade Ceph cluster typically consists of at least nine storage
nodes, while a development and test environment may include four to six
servers. For details, refer to MOSK cluster hardware requirements.
It is possible to reduce the overall footprint of a MOSK
cluster by collocating the Ceph components with hypervisors on the same
physical servers; this is also known as hyper-converged design. However,
this architecture still may not satisfy the requirements of certain use cases
for the cloud.
Standalone telco-edge MOSK clouds typically consist of
three to seven servers hosted in a single rack, where every piece of CPU,
memory and disk resources is strictly accounted and better be dedicated
to the cloud workloads, rather than control plane. For such clouds,
where the cluster footprint is more important than the resiliency of
the application data storage, it makes sense either not to have a Ceph
cluster at all or to replace it with some primitive non-redundant solution.
Enterprise virtualization infrastructure with third-party storage is
not a rare strategy among large companies that rely on proprietary storage
appliances, provided by NetApp, Dell, HPE, Pure Storage, and other major
players in the data storage sector. These industry leaders offer a variety
of storage solutions meticulously designed to suit various enterprise demands.
Many companies, having already invested substantially in proprietary storage
infrastructure, prefer integrating MOSK with their existing
storage systems. This approach allows them to leverage this investment rather
than incurring new costs and logistical complexities associated with
migrating to Ceph.
MOSK standard LVM+iSCSI backend for the Block
Storage service. This aligns in a seamless manner with the concept
of hyper-converged design, wherein the LVM volumes are collocated
on the compute nodes.
Local file system of one of the MOSK controller
nodes. By default, database backups are stored on the local file
system on the node where the MariaDB service is running. This imposes
a risk to cloud security and resiliency. For enterprise environments,
it is a common requirement to store all the backup data externally.
Alternatively, you can disable the database backup functionality.
Results of functional testing
OpenStack Tempest
Local file system of MOSK controller nodes.
The openstack-tempest-run-tests job responsible for running
the Tempest suite stores the results of its execution in a volume
requested through the pvc-tempest PersistentVolumeClaim
(PVC). The subject volume can be created by the local volume provisioner
on the same Kubernetes worker node, where the job runs. Usually, it is
a MOSK controller node.
You can configure the Block Storage service (OpenStack Cinder)
to be used as a storage backend for images and snapshots.
In this case, each image is represented as a volume.
Important
Representing volumes as images implies a hard
requirement for the selected block storage backend to support
multi-attach capability that is concurrent reads and writes to
and from a single volume.
External S3, Swift, or any other third-party storage solutions
compatible with object access protocols.
Note
An external object storage solution will not be integrated
into the MOSK identity service (OpenStack
Keystone), the cloud applications will need to take care of managing
access to their object data themselves.
If no Ceph is deployed as part of a cluster, the MOSK
built-in Object Storage service API endpoints are disabled automatically.
StackLight must be deployed in the HA mode, when all its data gets
stored on the local file system of the nodes running StackLight
services. In this mode, StackLight components get configured
to handle the data replication themselves.
The determination of whether a MOSK cloud will
include Ceph or not should take place during its planning and design
phase. Once the deployment is complete, reconfiguring the cloud
to switch between Ceph and non-Ceph architectures becomes impossible.
Mirantis recommends avoiding substitution of Ceph-backed persistent volumes
in the MOSK underlying Kubernetes cluster with local
volumes (local volume provisioner) for production environments.
MOSK does not support such configuration unless
the components that rely on these volumes can replicate
their data themselves, for example, StackLight. Volumes provided by
the local volume provisioner are not redundant, as they are bound
to just a single node and can only be mounted from the Kubernetes
pods running on the same nodes.
This section describes internal implementation of the node maintenance API
and how OpenStack and Tungsten Fabric controllers communicate with LCM and
each other during a managed cluster update.
The WorkloadLock objects are created by each Application Controller.
These objects prevent LCM from performing any changes on the cluster or node
level while the lock is in the active state. The inactive state of the lock
means that the Application Controller has finished its work and the LCM can
proceed with the node or cluster maintenance.
The MaintenanceRequest objects are created by LCM. These objects notify
Application Controllers about the upcoming maintenance of a cluster or
a specific node.
ClusterMaintenanceRequest object example configuration¶
The scope parameter in the object specification defines the impact on
the managed cluster or node. The list of the available options include:
drain
A regular managed cluster update. Each node in the cluster
goes over a drain procedure. No node reboot takes place, a maximum impact
includes restart of services on the node including Docker, which causes
the restart of all containers present in the cluster.
os
A node might be rebooted during the update. Triggers the workload
evacuation by the OpenStack Controller.
When the MaintenanceRequest object is created, an Application Controller
executes a handler to prepare workloads for maintenance and put appropriate
WorkloadLock objects into the inactive state.
When maintenance is over, LCM removes MaintenanceRequest objects,
and the Application Controllers move their WorkloadLocks objects into
the active state.
When LCM creates the ClusterMaintenanceRequest object, the OpenStack
Controller ensures that all OpenStack components are in the Healthy
state, which means that the pods are up and running, and the readiness
probes are passing.
The ClusterMaintenanceRequest object creation flow:
ClusterMaintenanceRequest - create
When LCM creates the NodeMaintenanceRequest, the OpenStack Controller:
Prepares components on the node for maintenance by removing
nova-compute from scheduling.
If the reboot of a node is possible, the instance migration workflow is
triggered. The Operator can configure the instance migration flow
through the Kubernetes node annotation and should define the required option
before the managed cluster update.
To mitigate the potential impact on the cloud workloads, you can define
the instance migration flow for the compute nodes running the most valuable
instances.
The list of available options for the instance migration configuration
includes:
The openstack.lcm.mirantis.com/instance_migration_mode annotation:
live
Default. The OpenStack controller live migrates instances
automatically. The update mechanism tries to move the memory
and local storage of all instances on the node to another
node without interrupting before applying any changes to the node.
By default, the update mechanism makes three attempts to migrate
each instance before falling back to the manual mode.
Note
Success of live migration depends on many factors
including the selected vCPU type and model, the amount of
data that needs to be transferred, the intensity of the disk
IO and memory writes, the type of the local storage, and others.
Instances using the following product features are known to have
issues with live migration:
LVM-based ephemeral storage with and without encryption
Encrypted block storage volumes
CPU and NUMA node pinning
manual
The OpenStack Controller waits for the Operator to migrate instances
from the compute node. When it is time to update the compute node,
the update mechanism asks you to manually migrate the instances and
proceeds only once you confirm the node is safe to update.
skip
The OpenStack Controller skips the instance check on the
node and reboots it.
Note
For the clouds relying on the converged LVM with iSCSI block
storage that offer persistent volumes in a remote edge sub-region,
it is important to keep in mind that applying a major change to a
compute node may impact not only the instances running on this node
but also the instances attached to the LVM devices hosted there.
We recommend that in such environments you perform the update procedure
in the manual mode with mitigation measures taken by the Operator
for each compute node. Otherwise, all the instances that have LVM with
iSCSI volumes attached would need reboot to restore the connectivity.
The openstack.lcm.mirantis.com/instance_migration_attempts annotation
Defines the number of times the OpenStack Controller attempts
to migrate a single instance before giving up.
Defaults to 3.
Note
You can also use annotations to control the update of
non-compute nodes if they represent critical points of a specific
cloud architecture. For example, setting the instance_migration_mode
to manual on a controller node with a collocated gateway (Open vSwitch)
will allow the Operator to gracefully shut down all the virtual routers
hosted on this node.
If the OpenStack Controller cannot migrate instances due to errors, it
is suspended unless all instances are migrated manually or
the openstack.lcm.mirantis.com/instance_migration_mode annotation
is set to skip.
The NodeMaintenanceRequest object creation flow:
NodeMaintenanceRequest - create
When the node maintenance is over, LCM removes the NodeMaintenanceRequest
object and the OpenStack Controller:
Verifies that the Kubernetes Node becomes Ready.
Verifies that all OpenStack components on a given node are Healthy,
which means that the pods are up and running, and the readiness probes
are passing.
Ensures that the OpenStack components are connected to RabbitMQ.
For example, the Neutron Agents become alive on the node, and compute
instances are in the UP state.
Note
The OpenStack Controller enables you to have only one
nodeworkloadlock object at a time in the inactive state. Therefore,
the update process for nodes is sequential.
The NodeMaintenanceRequest object removal flow:
NodeMaintenanceRequest - delete
When the cluster maintenance is over, the OpenStack Controller sets the
ClusterWorkloadLock object to back active and the update completes.
The CLusterMaintenanceRequest object removal flow:
The Tungsten Fabric (TF) Controller creates and uses both types of
workloadlocks that include ClusterWorkloadLock and NodeWorkloadLock.
When the ClusterMaintenanceRequest object is created, the TF Controller
verifies the TF cluster health status and proceeds as follows:
If the cluster is Ready , the TF Controller moves the
ClusterWorkloadLock object to the inactive state.
Otherwise, the TF Controller keeps the ClusterWorkloadLock object
in the active state.
When the NodeMaintenanceRequest object is created, the TF Controller
verifies the vRouter pod state on the corresponding node and proceeds as
follows:
If all containers are Ready, the TF Controller moves the
NodeWorkloadLock object to the inactive state.
Otherwise, the TF Controller keeps the NodeWorkloadLock in the active
state.
Note
If there is a NodeWorkloadLock object in the inactive state
present in the cluster, the TF Controller does not process the
NodeMaintenanceRequest object for other nodes until this inactive
NodeWorkloadLock object becomes active.
When the cluster LCM removes the MaintenanceRequest object, the TF
Controller waits for the vRouter pods to become ready and proceeds as follows:
If all containers are in the Ready state, the TF Controller moves
the NodeWorkloadLock object to the active state.
Otherwise, the TF Controller keeps the NodeWorkloadLock object in the
inactive state.
This section describes the MOSK cluster update
flow to the product releases that contain major updates and require node reboot
such as support for new Linux kernel, and similar.
The diagram below illustrates the sequence of operations controlled by
LCM and taking place during the update under the hood. We assume that the
ClusterWorkloadLock and NodeWrokloadLock objects present in the cluster
are in the active state before the cloud operator triggers the update.
Cluster update flow
See also
For details about the Application Controllers flow during different
maintenance stages, refer to:
MOSK enables you to parallelize node update operations,
significantly improving the efficiency of your deployment. This capability
applies to any operation that utilizes the Node Maintenance API, such as
cluster updates or graceful node reboots.
The core implementation of parallel updates is handled by the LCM Controller
ensuring seamless execution of parallel operations. LCM starts performing an
operation on the node only when all NodeWorkloadLock objects for the node
are marked as inactive. By default, the LCM Controller creates one
NodeMaintenanceRequest at a time.
Each application controller, including Ceph, OpenStack, and Tungsten Fabric
Controllers, manages parallel NodeMaintenanceRequest objects independently.
The controllers determine how to handle and execute parallel node maintenance
requests based on specific requirements of their respective applications.
To understand the workflow of the Node Maintenance API, refer to
WorkloadLock objects.
You can optimize parallel updates by setting the order in which nodes are
updated. You can accomplish this by configuring upgradeIndex of
the Machine object. For the procedure, refer to
Mirantis Container Cloud: Change upgrade order for machines.
Increase parallelism.
Boost parallelism by adjusting the maximum number of worker node updates
that are allowed during LCM operations using the
spec.providerSpec.value.maxWorkerUpgradeCount configuration parameter,
which is set to 1 by default.
By default, the OpenStack Controller handles the NodeMaintenanceRequest
objects as follows:
Updates the OpenStack controller nodes sequentially (one by one).
Updates the gateway nodes sequentially. Technically, you can increase
the number of gateway nodes upgrades allowed in parallel using the
nwl_parallel_max_gateway parameter but Mirantis does not recommend
to do so.
Updates the compute nodes in parallel. The default number of allowed
parallel updates is 30. You can adjust this value through
the nwl_parallel_max_compute parameter.
Parallelism considerations for compute nodes
When considering parallelism for compute nodes, take into account that
during certain pod restarts, for example, the openvswitch-vswitchd
pods, a brief instance downtime may occur. Select a suitable level
of parallelism to minimize the impact on workloads and prevent excessive
load on the control plane nodes.
If your cloud environment is distributed across failure domains, which are
represented by Nova availability zones, you can limit the parallel updates
of nodes to only those within the same availability zone. This behavior is
controlled by the respect_nova_az option in the OpenStack Controller.
The OpenStack Controller configuration is stored in the
openstack-controller-config configMap of the osh-system namespace.
The options are picked up automatically after update. To learn more about
the OpenStack Controller configuration parameters,
refer to OpenStack Controller configuration.
By default, the Ceph Controller handles the NodeMaintenanceRequest
objects as follows:
Updates the non-storage nodes sequentially. Non-storage nodes include all
nodes that have mon, mgr, rgw, or mds roles.
Updates storage nodes in parallel. The default number of allowed
parallel updates is calculated automatically based on the minimal
failure domain in a Ceph cluster.
Parallelism calculations for storage nodes
The Ceph Controller automatically calculates the parallelism number
in the following way:
Finds the minimal failure domain for a Ceph cluster. For example,
the minimal failure domain is rack.
Filters all currently requested nodes by minimal failure domain.
For example, parallelism equals to 5, and LCM requests 3 nodes from
the rack1 rack and 2 nodes from the rack2 rack.
Handles each filtered node group one by one. For example, the controller
handles in parallel all nodes from rack1 before processing nodes
from rack2.
The Ceph Controller handles non-storage nodes before the storage
ones. If there are node requests for both node types, the Ceph Controller
handles sequentially the non-storage nodes first. Therefore, Mirantis
recommends setting the upgrade index of a higher priority for the non-storage
nodes to decrease the total upgrade time.
If the minimal failure domain is host, the Ceph Controller updates only
one storage node per failure domain unit. This results in updating all Ceph
nodes sequentially, despite the potential for increased parallelism.
By default, the Tungsten Fabric Controller handles the
NodeMaintenanceRequest objects as follows:
Updates the Tungsten Fabric Controller and gateway nodes sequentially.
Updates the vRouter nodes in parallel. The Tungsten Fabric Controller
allows updating up to 30 vRouter nodes in parallel.
Maximum amount of vRouter nodes in maintenance
While the Tungsten Fabric Controller has the capability to process up
to 30 NodeMaintenanceRequest objects targeted to vRouter nodes,
the actual amount may be lower. This is due to a check that ensures
OpenStack readiness to unlock the relevant nodes for maintenance.
If OpenStack allows for maintenance, the Tungsten Fabric Controller
verifies the vRouter pods. Upon successful verification,
the NodeWorkloadLock object is switched to the maintenance mode.
Mirantis OpenStack for Kubernetes (MOSK) enables the operator to
create, scale, update, and upgrade OpenStack deployments on Kubernetes through
a declarative API.
The Kubernetes built-in features, such as flexibility, scalability, and
declarative resource definition make MOSK a robust solution.
The detailed plan of any Mirantis OpenStack for Kubernetes (MOSK)
deployment is determined on a per-cloud basis. For the MOSK
reference architecture and design overview, see Reference Architecture.
One of the industry best practices is to verify every new update or
configuration change in a non-customer-facing environment before
applying it to production. Therefore, Mirantis recommends
having a staging cloud, deployed and maintained along with the production
clouds. The recommendation is especially applicable to the environments
that:
Receive updates often and use continuous delivery. For example,
any non-isolated deployment of Mirantis Container Cloud.
Have significant deviations from the reference architecture or
third party extensions installed.
Are managed under the Mirantis OpsCare program.
Run business-critical workloads where even the slightest application
downtime is unacceptable.
A typical staging cloud is a complete copy of the production environment
including the hardware and software configurations, but with a bare minimum
of compute and storage capacity.
Provision a Container Cloud bare metal management cluster¶
The bare metal management system enables the Infrastructure Operator to
deploy Container Cloud on a set of bare metal servers. It also enables
Container Cloud to deploy MOSK clusters on bare
metal servers without a pre-provisioned operating system.
After bootstrapping your baremetal-based Mirantis Container Cloud
management cluster, you can create a baremetal-based managed cluster
to deploy Mirantis OpenStack for Kubernetes using the Container Cloud API.
Before creating a bare metal managed cluster, add the required number
of bare metal hosts using CLI and YAML files for configuration.
This section describes how to add bare metal hosts using the Container Cloud
CLI during a managed cluster creation.
To add a bare metal host:
Verify that you configured each bare metal host as follows:
Enable the boot NIC support for UEFI load. Usually, at least the built-in
network interfaces support it.
Enable the UEFI-LAN-OPROM support in
BIOS -> Advanced -> PCIPCIe.
Enable the IPv4-PXE stack.
Set the following boot order:
UEFI-DISK
UEFI-PXE
If your PXE network is not configured to use the first network interface,
fix the UEFI-PXE boot order to speed up node discovering
by selecting only one required network interface.
Power off all bare metal hosts.
Warning
Only one Ethernet port on a host must be connected to the
Common/PXE network at any given time. The physical address
(MAC) of this interface must be noted and used to configure
the BareMetalHost object describing the host.
Create a project for a managed cluster using the Container Cloud web UI:
Log in to the Container Cloud web UI as m:kaas@global-admin or
m:kaas@writer.
In the Projects tab, click Create.
Type the new project name.
Click Create.
Log in to the host where your management cluster kubeconfig is located
and where kubectl is installed.
Describe the unique credentials of the new bare metal host:
MOSK 22.5 and later
Create a YAML file that describes the unique credentials of the new
bare metal host as a BareMetalHostCredential object.
In the metadata section, add a unique credentials name and the
name of the non-default project (namespace) dedicated for the
managed cluster being created.
In the spec section, add the IPMI user name and password in plain
text to access the Baseboard Management Controller (BMC). The password
will not be stored in the BareMetalHostCredential object but will
be erased and saved in an underlying Secret object.
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
MOSK 22.4 and earlier
Create a secret YAML file that describes
the unique credentials of the new bare metal host.
Example of the bare metal host secret:
In the data section, add the IPMI user name and password in the
base64 encoding to access the BMC. To obtain the base64-encoded
credentials, you can use the following command in your Linux console:
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
During provisioning, the status changes as follows:
registering
inspecting
preparing
After BareMetalHost switches to the preparing stage, the
inspecting phase finishes and you can verify that hardware information
is available in the object status and matches the MOSK cluster hardware requirements.
The bare metal host profile is a Kubernetes custom resource.
It enables the Operator to define how the storage devices
and the operating system are provisioned and configured.
This section describes the bare metal host profile default settings
and configuration of custom profiles for managed clusters
using Mirantis Container Cloud API.
The default host profile requires three storage devices
in the following strict order:
Boot device and operating system storage
This device contains boot data and operating system data. It
is partitioned using the GUID Partition Table (GPT) labels.
The root file system is an ext4 file system
created on top of an LVM logical volume.
For a detailed layout, refer to the table below.
Local volumes device
This device contains an ext4 file system with directories mounted
as persistent volumes to Kubernetes. These volumes are used by
the Mirantis Container Cloud services to store its data,
including monitoring and identity databases.
Ceph storage device
This device is used as a Ceph datastore or Ceph OSD on managed clusters.
The following table summarizes the default configuration of the host system
storage set up by the Container Cloud bare metal management.
Default configuration of the bare metal host storage¶
Device/partition
Name/Mount point
Recommended size, GB
Description
/dev/sda1
bios_grub
4 MiB
The mandatory GRUB boot partition required for non-UEFI systems.
/dev/sda2
UEFI -> /boot/efi
0.2 GiB
The boot partition required for the UEFI boot mode.
/dev/sda3
config-2
64 MiB
The mandatory partition for the cloud-init configuration.
Used during the first host boot for initial configuration.
/dev/sda4
lvm_root_part
100% of the remaining free space in the LVM volume group
The main LVM physical volume that is used to create the root file system.
/dev/sdb
lvm_lvp_part -> /mnt/local-volumes
100% of the remaining free space in the LVM volume group
The LVM physical volume that is used to create the file system
for LocalVolumeProvisioner.
/dev/sdc
-
100% of the remaining free space in the LVM volume group
Clean raw disk that will be used for the Ceph storage backend on
managed clusters.
Different types of MOSK nodes require differently
configured host storage. This section describes how to create custom
host profiles for different types of MOSK nodes.
You can create custom profiles for managed clusters using Container
Cloud API.
You can use flexible size units throughout bare metal host profiles.
For example, you can now use either sizeGiB:0.1 or size:100Mi
when specifying a device size.
Mirantis recommends using only one parameter name type and units throughout
the configuration files. If both sizeGiB and size are used,
sizeGiB is ignored during deployment and the suffix is adjusted
accordingly. For example, 1.5Gi will be serialized as 1536Mi. The size
without units is counted in bytes. For example, size:120 means 120 bytes.
Warning
All data will be wiped during cluster deployment on devices
defined directly or indirectly in the fileSystems list of
BareMetalHostProfile. For example:
A raw device partition with a file system on it
A device partition in a volume group with a logical volume that has a
file system on it
An mdadm RAID device with a file system on it
An LVM RAID device with a file system on it
The wipe field is always considered true for these devices.
The false value is ignored.
Therefore, to prevent data loss, move the necessary data from these file
systems to another server beforehand, if required.
To create MOSK bare metal host profiles:
Log in to the local machine where you management
cluster kubeconfig is located and where kubectl is installed.
Note
The management cluster kubeconfig is created automatically
during the last stage of the management cluster bootstrap.
Create a new bare metal host profile for MOSK compute
nodes in a YAML file under the templates/bm/ directory.
Edit the host profile using the example template below to meet
your hardware configuration requirements:
apiVersion:metal3.io/v1alpha1kind:BareMetalHostProfilemetadata:name:<PROFILE_NAME>namespace:<PROJECT_NAME>spec:devices:# From the HW node, obtain the first device, which size is at least 60Gib-device:workBy:"by_id,by_wwn,by_path,by_name"minSize:60Gitype:ssdwipe:truepartitions:-name:bios_grubpartflags:-bios_grubsize:4Miwipe:true-name:uefipartflags:-espsize:200Miwipe:true-name:config-2size:64Miwipe:true# This partition is only required on compute nodes if you plan to# use LVM ephemeral storage.-name:lvm_nova_partwipe:truesize:100Gi-name:lvm_root_partsize:0wipe:true# From the HW node, obtain the second device, which size is at least 60Gib# If a device exists but does not fit the size,# the BareMetalHostProfile will not be applied to the node-device:workBy:"by_id,by_wwn,by_path,by_name"minSize:60Gitype:ssdwipe:true# From the HW node, obtain the disk device with the exact name-device:workBy:"by_id,by_wwn,by_path,by_name"minSize:60Giwipe:truepartitions:-name:lvm_lvp_partsize:0wipe:true# Example of wiping a device w\o partitioning it.# Mandatory for the case when a disk is supposed to be used for Ceph backend# later-device:workBy:"by_id,by_wwn,by_path,by_name"wipe:truefileSystems:-fileSystem:vfatpartition:config-2-fileSystem:vfatmountPoint:/boot/efipartition:uefi-fileSystem:ext4logicalVolume:rootmountPoint:/-fileSystem:ext4logicalVolume:lvpmountPoint:/mnt/local-volumes/logicalVolumes:-name:rootsize:0vg:lvm_root-name:lvpsize:0vg:lvm_lvppostDeployScript:|#!/bin/bash -execho $(date) 'post_deploy_script done' >> /root/post_deploy_donepreDeployScript:|#!/bin/bash -execho $(date) 'pre_deploy_script done' >> /root/pre_deploy_donevolumeGroups:-devices:-partition:lvm_root_partname:lvm_root-devices:-partition:lvm_lvp_partname:lvm_lvpgrubConfig:defaultGrubOptions:-GRUB_DISABLE_RECOVERY="true"-GRUB_PRELOAD_MODULES=lvm-GRUB_TIMEOUT=20kernelParameters:sysctl:# For the list of options prohibited to change, refer to# https://docs.mirantis.com/mke/3.7/install/predeployment/set-up-kernel-default-protections.htmlkernel.dmesg_restrict:"1"kernel.core_uses_pid:"1"fs.file-max:"9223372036854775807"fs.aio-max-nr:"1048576"fs.inotify.max_user_instances:"4096"vm.max_map_count:"262144"
If asymmetric traffic is expected on some of the
MOSK cluster nodes, enable the loose mode for
the corresponding interfaces on those nodes by setting the
net.ipv4.conf.<interface-name>.rp_filter parameter to "2"
in the kernelParameters.sysctl section. For example:
The BareMetalHostProfile API allows configuring a host to use the
huge pages feature of the Linux kernel on managed clusters. The procedure
included in this section applies to both new and existing cluster
deployments.
Note
Huge pages is a mode of operation of the Linux kernel. With huge
pages enabled, the kernel allocates the RAM in bigger chunks, or pages.
This allows kernel-based virtual machines and virtual machines running
on it to use the host RAM more efficiently and improves the performance
of the virtual machines.
To enable huge pages in a custom bare metal host profile for a managed
cluster:
Log in to the local machine where you management
cluster kubeconfig is located and where kubectl is installed.
Note
The management cluster kubeconfig is created automatically
during the last stage of the management cluster bootstrap.
Open for editing or create a new bare metal host profile
under the templates/bm/ directory.
Edit the grubConfig section of the host profile spec using
the example below to configure the kernel boot parameters and
enable huge pages:
The example configuration above will allocate N huge pages of 1 GB each
on the server boot. The last hugepagesz parameter value is default unless
default_hugepagesz is defined. For details about possible values, see
official Linux kernel documentation.
Add the bare metal host profile to your management cluster:
You can configure the support of the software-based Redundant Array of
Independent Disks (RAID) using BareMetalHosProfile to set up an LVM-based
RAID level 1 (raid1) or an mdadm-based RAID level 0, 1, or 10 (raid0,
raid1, or raid10).
If required, you can further configure RAID in the same profile, for example,
to install a cluster operating system onto a RAID device.
Caution
RAID configuration on already provisioned bare metal machines
or on an existing cluster is not supported.
To start using any kind of RAIDs, reprovisioning of machines
with a new BaremetalHostProfile is required.
Mirantis supports the raid1 type of RAID devices both
for LVM and mdadm.
Mirantis supports the raid0 type for the mdadm RAID
to be on par with the LVM linear type.
Mirantis recommends having at least two physical disks
for raid0 and raid1 devices to prevent unnecessary
complexity.
Mirantis supports the raid10 type for mdadm RAID. At least
four physical disks are required for this type of RAID.
Only an even number of disks can be used for a raid1 or
raid10 device.
The EFI system partition partflags: ['esp'] must be
a physical partition in the main partition table of the disk, not under
LVM or mdadm software RAID.
During configuration of your custom bare metal host profile,
you can create an LVM-based software RAID device raid1 by adding
type: raid1 to the logicalVolume spec in BaremetalHostProfile.
The logicalVolume spec of the raid1 type requires
at least two devices (partitions) in volumeGroup where you
build a logical volume. For an LVM of the linear type,
one device is enough.
You can use flexible size units throughout bare metal host profiles.
For example, you can now use either sizeGiB:0.1 or size:100Mi
when specifying a device size.
Mirantis recommends using only one parameter name type and units throughout
the configuration files. If both sizeGiB and size are used,
sizeGiB is ignored during deployment and the suffix is adjusted
accordingly. For example, 1.5Gi will be serialized as 1536Mi. The size
without units is counted in bytes. For example, size:120 means 120 bytes.
Note
The LVM raid1 requires additional space to store the raid1
metadata on a volume group, roughly 4 MB for each partition.
Therefore, you cannot create a logical volume of exactly the same
size as the partitions it works on.
For example, if you have two partitions of 10 GiB, the corresponding
raid1 logical volume size will be less than 10 GiB. For that
reason, you can either set size: 0 to use all available
space on the volume group, or set a smaller size than the partition
size. For example, use size: 9.9Gi instead of
size: 10Gi for the logical volume.
The following example illustrates an extract of BaremetalHostProfile
with / on the LVM raid1.
All data will be wiped during cluster deployment on devices
defined directly or indirectly in the fileSystems list of
BareMetalHostProfile. For example:
A raw device partition with a file system on it
A device partition in a volume group with a logical volume that has a
file system on it
An mdadm RAID device with a file system on it
An LVM RAID device with a file system on it
The wipe field is always considered true for these devices.
The false value is ignored.
Therefore, to prevent data loss, move the necessary data from these file
systems to another server beforehand, if required.
Create an mdadm software RAID (raid0, raid1, raid10)¶
TechPreview
Warning
The EFI system partition partflags: ['esp'] must be
a physical partition in the main partition table of the disk, not under
LVM or mdadm software RAID.
During configuration of your custom bare metal host profile as described in
Create a custom bare metal host profile, you can create an mdadm-based software RAID
device raid0 and raid1 by describing the mdadm devices under the
softRaidDevices field in BaremetalHostProfile. For example:
You can also use the raid10 type for the mdadm-based software RAID devices.
This type requires at least four and in total an even number of storage devices
available on your servers. For example:
The following fields in softRaidDevices describe RAID devices:
name
Name of the RAID device to refer to throughout the baremetalhostprofile.
level
Type or level of RAID used to create a device, defaults to raid1.
Set to raid0 or raid10 to create a device of the corresponding type.
devices
List of physical devices or partitions used to build a software RAID device.
It must include at least two partitions or devices to build a raid0 and
raid1 devices and at least four for raid10.
The mdadm RAID devices cannot be created on top of LVM devices.
You can use flexible size units throughout bare metal host profiles.
For example, you can now use either sizeGiB:0.1 or size:100Mi
when specifying a device size.
Mirantis recommends using only one parameter name type and units throughout
the configuration files. If both sizeGiB and size are used,
sizeGiB is ignored during deployment and the suffix is adjusted
accordingly. For example, 1.5Gi will be serialized as 1536Mi. The size
without units is counted in bytes. For example, size:120 means 120 bytes.
Warning
All data will be wiped during cluster deployment on devices
defined directly or indirectly in the fileSystems list of
BareMetalHostProfile. For example:
A raw device partition with a file system on it
A device partition in a volume group with a logical volume that has a
file system on it
An mdadm RAID device with a file system on it
An LVM RAID device with a file system on it
The wipe field is always considered true for these devices.
The false value is ignored.
Therefore, to prevent data loss, move the necessary data from these file
systems to another server beforehand, if required.
The following example illustrates an extract of BaremetalHostProfile
with / on the mdadm raid1 and some data storage on raid0:
Example with / on the mdadm raid1 and data storage on raid0
You can configure an LVM volume group on top of mdadm-based RAID devices as
physical volumes using the BareMetalHostProfile resource. List the
required RAID devices in a separate field of the volumeGroups definition
within the storage configuration of BareMetalHostProfile.
You can use flexible size units throughout bare metal host profiles.
For example, you can now use either sizeGiB:0.1 or size:100Mi
when specifying a device size.
Mirantis recommends using only one parameter name type and units throughout
the configuration files. If both sizeGiB and size are used,
sizeGiB is ignored during deployment and the suffix is adjusted
accordingly. For example, 1.5Gi will be serialized as 1536Mi. The size
without units is counted in bytes. For example, size:120 means 120 bytes.
Warning
All data will be wiped during cluster deployment on devices
defined directly or indirectly in the fileSystems list of
BareMetalHostProfile. For example:
A raw device partition with a file system on it
A device partition in a volume group with a logical volume that has a
file system on it
An mdadm RAID device with a file system on it
An LVM RAID device with a file system on it
The wipe field is always considered true for these devices.
The false value is ignored.
Therefore, to prevent data loss, move the necessary data from these file
systems to another server beforehand, if required.
The following example illustrates an extract of BaremetalHostProfile with
a volume group named lvm_nova to be created on top of an mdadm-based
RAID device raid1:
With L2 networking templates, you can create MOSK
clusters with advanced host networking configurations. For example,
you can create bond interfaces on top of physical interfaces on the
host or use multiple subnets to separate different types of network
traffic.
You can use several host-specific L2 templates per one cluster
to support different hardware configurations. For example, you can create
L2 templates with a different number and layout of NICs to be applied
to specific machines of one cluster.
You can also use multiple L2 templates to support different roles
for nodes in a MOSK installation. You can create L2
templates with different logical interfaces and assign them to individual
machines based on their roles in a MOSK cluster.
Note
Mirantis does not recommend modifying L2 templates in use
to prevent accidental cluster failures due to unsafe changes.
The list of risks posed by modifying L2 templates includes:
Services running on hosts cannot reconfigure automatically to switch to
the new IP addresses and/or interfaces.
Connections between services are interrupted unexpectedly, which can cause
data loss.
Incorrect configurations on hosts can lead to irrevocable loss of
connectivity between services and unexpected cluster partition or
disassembly.
Since MOSK 23.2.2, in the Technology Preview scope, you can
create a MOSK cluster with the multi-rack topology,
where cluster nodes including Kubernetes masters are distributed across
multiple racks without L2 layer extension between them, and use BGP for
announcement of the cluster API load balancer address and external addresses
of Kubernetes load-balanced services.
Implementation of the multi-rack topology implies the use of Rack and
MultiRackCluster objects that support configuration of BGP announcement
of the cluster API load balancer address. For the configuration procedure,
refer to Configure BGP announcement for cluster API LB address. For configuring the BGP announcement of
external addresses of Kubernetes load-balanced services, refer to
Configure MetalLB.
Follow the procedures described in the below subsections to configure initial
settings and advanced network objects for your managed clusters.
This section instructs you on how to configure and deploy a managed cluster
that is based on the baremetal-based management cluster
through the Mirantis Container Cloud web UI.
To create a managed cluster on bare metal:
Log in to the Container Cloud web UI with the writer permissions.
Switch to the required project using the Switch Project
action icon located on top of the main left-side navigation panel.
Caution
Do not create a new managed cluster for MOSK
in the default project (Kubernetes namespace), which is dedicated
for the management cluster only. If no projects are defined, first create
a new mosk project using Projects > Create in the
Container Cloud web UI.
In the SSH keys tab, click Add SSH Key
to upload the public SSH key that will be used for the SSH access to VMs.
Optional. In the Proxies tab, enable proxy access
to the managed cluster:
Click Add Proxy.
In the Add New Proxy wizard, fill out the form
with the following parameters:
Name of the proxy server to use during a managed cluster creation.
Region Removed in MOSK 24.1
From the drop-down list, select the required region.
HTTP Proxy
Add the HTTP proxy server domain name in the following format:
http://proxy.example.com:port - for anonymous access
http://user:password@proxy.example.com:port - for restricted access
HTTPS Proxy
Add the HTTPS proxy server domain name in the same format
as for HTTP Proxy.
No Proxy
Comma-separated list of IP addresses or domain names.
For the list of Mirantis resources and IP addresses to be accessible
from the Container Cloud clusters, see Reference Architecture:
Requirements.
In the Clusters tab, click Create Cluster.
Configure the new cluster in the Create New Cluster wizard
that opens:
Define general and Kubernetes parameters:
Create new cluster: General, Provider, and Kubernetes¶
Section
Parameter name
Description
General settings
Cluster name
The cluster name.
Provider
Select Baremetal.
Region Removed since MOSK 24.1
From the drop-down list, select Baremetal.
Release version
Select a Container Cloud version with the OpenStack
label tag. Otherwise, you will not be able to deploy MOSK
on this managed cluster.
Proxy
Optional. From the drop-down list,
select the proxy server name that you have previously created.
SSH keys
From the drop-down list, select the SSH key name that you have
previously added for SSH access to the bare metal hosts.
Provider
LB host IP
The IP address of the load balancer endpoint that will be used to
access the Kubernetes API of the new cluster. This IP address
must be in the LCM network if a separate LCM network is in use and
if L2 (ARP) announcement of cluster API load balancer IP is in use.
LB address range Removed in 24.3
The range of IP addresses that can be assigned to load balancers
for Kubernetes Services by MetalLB. For a more flexible MetalLB
configuration, refer to Configure MetalLB.
Note
Since MOSK 24.3, MetalLB configuration
must be added after cluster creation.
Kubernetes
Services CIDR blocks
The Kubernetes Services CIDR blocks.
For example, 10.233.0.0/18.
Pods CIDR blocks
The Kubernetes pods CIDR blocks.
For example, 10.233.64.0/18.
Selected by default. Deselect to skip StackLight deployment.
Note
You can also enable, disable, or configure StackLight
parameters after deploying a managed cluster.
For details, see Mirantis Container Cloud
Operations Guide:
Select to enable StackLight monitoring in
the HA mode. For the differences between HA and non-HA modes, see
Deployment architecture.
StackLight Default Logs Severity Level
Log severity (verbosity) level for all StackLight components.
The default value for this parameter is
Default component log level that respects original defaults
of each StackLight component.
For details about severity levels, see Mirantis Container Cloud
Operations Guide: StackLight log verbosity.
Select to enable notifications about resolved StackLight alerts.
Require TLS
Select to enable transmitting emails through TLS.
Email alerts configuration for StackLight
Fill out the following email alerts parameters as required:
To - the email address to send notifications to.
From - the sender address.
SmartHost - the SMTP host through which the emails are sent.
Authentication username - the SMTP user name.
Authentication password - the SMTP password.
Authentication identity - the SMTP identity.
Authentication secret - the SMTP secret.
StackLight Slack Alerts
Enable Slack alerts
Select to enable the StackLight Slack alerts.
Send Resolved
Select to enable notifications about resolved StackLight alerts.
Slack alerts configuration for StackLight
Fill out the following Slack alerts parameters as required:
API URL - The Slack webhook URL.
Channel - The channel to send notifications to, for example,
#channel-for-alerts.
Click Create.
To monitor the cluster readiness, hover over the status icon of a specific
cluster in the Status column of the Clusters page.
Once the orange blinking status icon is green and Ready,
the cluster deployment or update is complete.
You can monitor live deployment status of the following cluster components:
Component
Description
Helm
Installation or upgrade status of all Helm releases
Kubelet
Readiness of the node in a Kubernetes cluster, as reported by kubelet
Kubernetes
Readiness of all requested Kubernetes objects
Nodes
Equality of the requested nodes number in the cluster to the number
of nodes having the Ready LCM status
OIDC
Readiness of the cluster OIDC configuration
StackLight
Health of all StackLight-related objects in a Kubernetes cluster
Swarm
Readiness of all nodes in a Docker Swarm cluster
LoadBalancer
Readiness of the Kubernetes API load balancer
ProviderInstance
Readiness of all machines in the underlying infrastructure
(virtual or bare metal, depending on the provider type)
Optional. Colocate the OpenStack control plane with the managed cluster
Kubernetes manager nodes by adding the following field to the Cluster
object spec:
This feature is available as technical preview. Use such
configuration for testing and evaluation purposes only.
Optional. Customize MetalLB speakers that are deployed on all Kubernetes
nodes except master nodes by default. For details, see
Configure the MetalLB speaker node selector.
Configure the MetalLB parameters related to IP address allocation and
announcement for load-balanced cluster services. For details, see
Configure MetalLB.
To simplify operations with L2 templates, before you start creating
them, inspect the general workflow of a network interface name gathering
and processing.
Network interface naming workflow:
The Operator creates a baremetalHost object.
The baremetalHost object executes the introspection stage
and becomes ready.
The Operator collects information about NIC count, naming, and so on
for further changes in the mapping logic.
At this stage, the NICs order in the object may randomly change
during each introspection, but the NICs names are always the same.
For more details, see Predictable Network Interface Names.
For example:
# Example commands:# kubectl -n managed-ns get bmh baremetalhost1 -o custom-columns='NAME:.metadata.name,STATUS:.status.provisioning.state'# NAME STATE# baremetalhost1 ready# kubectl -n managed-ns get bmh baremetalhost1 -o yaml# Example output:apiVersion:metal3.io/v1alpha1kind:BareMetalHost...status:...nics:-ip:fe80::ec4:7aff:fe6a:fb1f%eno2mac:0c:c4:7a:6a:fb:1fmodel:0x8086 0x1521name:eno2pxe:false-ip:fe80::ec4:7aff:fe1e:a2fc%ens1f0mac:0c:c4:7a:1e:a2:fcmodel:0x8086 0x10fbname:ens1f0pxe:false-ip:fe80::ec4:7aff:fe1e:a2fd%ens1f1mac:0c:c4:7a:1e:a2:fdmodel:0x8086 0x10fbname:ens1f1pxe:false-ip:192.168.1.151# Temp. PXE network adressmac:0c:c4:7a:6a:fb:1emodel:0x8086 0x1521name:eno1pxe:true...
The Operator selects from the following options:
Create an l2template object with the ifMapping configuration.
For details, see Create L2 templates.
The baremetal-provider service links the Machine object
to the baremetalHost object.
The kaas-ipam and baremetal-provider services collect hardware
information from the baremetalHost object and use it to configure
host networking and services.
The kaas-ipam service:
Spawns the IpamHost object.
Renders the l2template object.
Spawns the ipaddr object.
Updates the IpamHost object status with all rendered
and linked information.
The baremetal-provider service collects the rendered networking
information from the IpamHost object
The baremetal-provider service proceeds with the IpamHost object
provisioning.
Any Subnet object may contain ipam/SVC-<serviceName> labels.
All IP addresses allocated from the Subnet object that has service labels
defined inherit those labels.
When a particular IpamHost uses IP addresses allocated from such labeled
Subnet objects, the ServiceMap field in IpamHost.Status
contains information about which IPs and interfaces correspond to which service
labels (that have been set in the Subnet objects). Using ServiceMap,
you can understand what IPs and interfaces of a particular host are used
for network traffic of a given service.
Container Cloud uses the following service labels that allow using of the
specific subnets for particular Container Cloud services:
ipam/SVC-k8s-lcm
ipam/SVC-ceph-cluster
ipam/SVC-ceph-public
ipam/SVC-dhcp-range
ipam/SVC-MetalLBDeprecated since 24.2
ipam/SVC-LBhost
Caution
The use of the ipam/SVC-k8s-lcm label is mandatory
for every cluster.
You can also add own service labels to the Subnet objects the same way you
add Container Cloud service labels. The mapping of IPs and interfaces to the
defined services is displayed in IpamHost.Status.ServiceMap.
You can assign multiple service labels to one network. You can also assign the
ceph-*, dhcp-range, and MetalLB services to multiple networks.
In the latter case, the system sorts the IP addresses in the ascending order:
After creating the MetalLB configuration as described in Configure MetalLB
and before creating an L2 template, ensure that you have the required subnets
that can be used in the L2 template to allocate IP addresses for the
MOSK cluster nodes.
Where required, create a number of subnets for a particular project
using the Subnet CR. A subnet has three logical scopes:
global - CR uses the default namespace.
A subnet can be used for any cluster located in any project.
namespaced - CR uses the namespace that corresponds to a particular project
where MOSK clusters are located. A subnet can be used
for any cluster located in the same project.
cluster - CR uses the namespace where the referenced cluster is located.
A subnet is only accessible to the cluster that
L2Template.metadata.labels:cluster.sigs.k8s.io/cluster-name (mandatory
since MOSK 23.3) or L2Template.spec.clusterRef
(deprecated since MOSK 23.3) refers to. The Subnet
objects with the cluster scope will be created for every new cluster.
You can have subnets with the same name in different projects.
In this case, the subnet that has the same project
as the cluster will be used. One L2 template may often reference several
subnets, those subnets may have different scopes in this case.
The IP address objects (IPaddr CR) that are allocated from subnets
always have the same project as their corresponding IpamHost objects,
regardless of the subnet scope.
To create subnets for a cluster:
Log in to a local machine where your management cluster kubeconfig
is located and where kubectl is installed.
Note
The management cluster kubeconfig is created
during the last stage of the management cluster bootstrap.
Create the subnet.yaml file with a number of global or namespaced
subnets depending on the configuration of your cluster:
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
A list of IP address ranges within the given CIDR that should be used
in the allocation of IPs for nodes. If the includeRanges parameter
is not set, the entire address range within the given CIDR is used in
the allocation of IPs for nodes.
The gateway, network, broadcast, and DNS addresses will be excluded
(protected) automatically if they intersect with one IP in the range.
The IPs outside the given ranges will not be used in the allocation.
Each element of the list can be either an interval
10.11.0.5-10.11.0.70 or a single address 10.11.0.77.
In the example above, the addresses
10.11.0.5-10.11.0.70 (excluding the gateway address 10.11.0.9)
will be allocated for nodes.
The includeRanges parameter is mutually exclusive
with excludeRanges.
excludeRanges (list)
A list of IP address ranges within the given CIDR that should not
be used in the allocation of IPs for nodes. The IPs within the given
CIDR but outside the given ranges will be used in the allocation.
The gateway, network, broadcast, and DNS addresses will be excluded
(protected) automatically if they are included in the CIDR.
Each element of the list can be either
an interval 10.11.0.5-10.11.0.70 or a single address 10.11.0.77.
The excludeRanges parameter is mutually exclusive with
includeRanges.
useWholeCidr (boolean)
If set to true, the subnet address (10.11.0.0 in the example
above) and the broadcast address (10.11.0.255 in the example above)
are included into the address allocation for nodes. Otherwise,
(false by default), the subnet address and broadcast address
are excluded from the address allocation.
gateway (singular)
A valid gateway address, for example, 10.11.0.9.
nameservers (list)
A list of the IP addresses of name servers. Each element of the list
is a single address, for example, 172.18.176.6.
Note
You may use different subnets to allocate IP addresses
to different Container Cloud components in your cluster.
Add a label with the ipam/SVC- prefix to each subnet
that is used to configure a Container Cloud service.
For details, see Service labels and their life cycle and the optional steps
below.
Caution
Use of a dedicated network for Kubernetes pods traffic,
for external connection to the Kubernetes services exposed
by the cluster, and for the Ceph cluster access and replication
traffic is available as Technology Preview. Use such
configurations for testing and evaluation purposes only.
For the Technology Preview feature definition,
refer to Technology Preview features.
Add one or more subnets for the LCM network:
Set the ipam/SVC-k8s-lcm label with the value "1" to create
a subnet that will be used to assign IP addresses in the LCM network.
Optional. Set the cluster.sigs.k8s.io/cluster-name
label to the name of the target cluster during the subnet creation.
Use this subnet in the L2 template for all cluster nodes.
Assign this subnet to the interface connected to your LCM network.
Precautions for the LCM network usage
Each cluster must use at least one subnet for its LCM network.
Every node must have the address allocated in the LCM network
using such subnet(s).
Each node of every cluster must have one and only IP address in the LCM
network that is allocated from one of the Subnet
objects having the ipam/SVC-k8s-lcm label defined. Therefore, all
Subnet objects used for LCM networks must have the ipam/SVC-k8s-lcm
label defined.
You can use any interface name for the LCM network traffic.
The Subnet objects for the LCM network must have the
ipam/SVC-k8s-lcm label. For details, see Service labels and their life cycle.
Optional. Technology Preview. Add a subnet for the externally accessible
API endpoint of the MOSK cluster.
Make sure that loadBalancerHost is set to "" (empty string)
in the Cluster spec.
Create a subnet with the ipam/SVC-LBhost label having the "1"
value to make the baremetal-provider use this subnet for allocation
of addresses for cluster API endpoints.
One IP address will be allocated for each cluster to serve its
Kubernetes/MKE API endpoint.
Caution
Make sure that master nodes have host local-link addresses
in the same subnet as the cluster API endpoint address.
These host IP addresses will be used for VRRP traffic.
The cluster API endpoint address will be assigned to the same
interface on one of the master nodes where these host IPs
are assigned.
Note
We highly recommend that you assign the cluster API endpoint
address from the LCM network. For details on cluster networks
types, refer to MOSK cluster networking.
See also the Single MOSK cluster use case
example in the following table.
You can use several options of addresses allocation scope of API endpoints
using subnets:
Use case
Example configuration
Several MOSK clusters with one management cluster
Create a subnet in the default namespace with no reference to any
cluster.
Combining the ipam/SVC-LBhost label with any other
service labels on a single subnet is not supported. Use a dedicated
subnet for addresses allocation for cluster API endpoints.
Several MOSK clusters in a project
Create a subnet in a namespace corresponding to your project with no
reference to any cluster. Such subnet has priority over the one
described above.
Combining the ipam/SVC-LBhost label with any other
service labels on a single subnet is not supported. Use a dedicated
subnet for addresses allocation for cluster API endpoints.
Single MOSK cluster
Create a subnet in a namespace corresponding to your project with
a reference to the target cluster using the
cluster.sigs.k8s.io/cluster-name label. Such subnet has priority
over the ones described above. In this case, it is not obligatory to use
a dedicated subnet for addresses allocation of API endpoints.
You can add the ipam/SVC-LBhost label to the LCM subnet, and one of
the addresses from this subnet will be allocated for an API endpoint:
You can combine the ipam/SVC-LBhost label only with the
following service labels on a single subnet:
ipam/SVC-k8s-lcm
ipam/SVC-ceph-cluster
ipam/SVC-ceph-public
Otherwise, use a dedicated subnet for address allocation for the
cluster API endpoint. Other combinations are not supported and
can lead to unexpected results.
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
The above options can be used in conjunction. For example, you can define
a subnet for all managed clusters within one management cluster, a number
of subnets within this management cluster defined for particular
namespaces, and a number of subnets within the same management cluster
and namespaces defined for particular clusters.
Optional. Add a subnet(s) for the storage access network.
Set the ipam/SVC-ceph-public label with the value "1" to create
a subnet that will be used to configure the Ceph public network.
Set the cluster.sigs.k8s.io/cluster-name
label to the name of the target cluster during the subnet creation.
Use this subnet in the L2 template for all cluster nodes except Kubernetes
manager nodes.
Assign this subnet to the interface connected to your Storage access
network.
Ceph will automatically use this subnet for its external connections.
A Ceph OSD will look for and bind to an address from this subnet
when it is started on a machine.
Optional. Add a subnet(s) for the storage replication network.
Set the ipam/SVC-ceph-cluster label with the value "1" to create
a subnet that will be used to configure the Ceph cluster network.
Set the cluster.sigs.k8s.io/cluster-name label to the name
of the target cluster during the subnet creation.
Use this subnet in the L2 template for storage nodes.
Assign this subnet to the interface connected to your storage replication
network.
Ceph will automatically use this subnet for its internal replication
traffic.
Optional. Add a subnet for the Kubernetes Pods traffic.
Use this subnet in the L2 template for all nodes in the cluster.
Assign this subnet to the interface connected to your Kubernetes
workloads network.
Use the npTemplate.bridges.k8s-pods bridge name in the L2 template.
This bridge name is reserved for the Kubernetes workloads network.
When the k8s-pods bridge is defined in an L2 template,
Calico CNI uses that network for routing the Pods traffic between nodes.
Optional. Add a subnet for the MOSK overlay network:
Use this subnet in the L2 template for the compute and gateway
(controller) nodes in the MOSK cluster.
Assign this subnet to the interface connected to your
MOSK overlay network.
This network is used to provide denied and secure tenant networks with the
help of the tunneling mechanism (VLAN/GRE/VXLAN). If the VXLAN and GRE
encapsulation takes place, the IP address assignment is required on
interfaces at the node level. On the Tungsten Fabric deployments,
this network is used for MPLS over UDP+GRE traffic.
Optional. Add a subnet for the MOSK live migration
network:
Use this subnet in the L2 template for compute nodes in the
MOSK cluster.
Assign this subnet to the interface connected to your
MOSK overlay network.
This subnet is used by the Compute service (OpenStack Nova) to transfer
data during live migration. Depending on the cloud needs, you can place
it on a dedicated physical network not to affect other networks during
live migration. The IP address assignment is required on interfaces at the
node level.
Verify that the subnet is successfully created:
kubectlgetsubnetkaas-mgmt-oyaml
In the system output, verify the status fields of the subnet.yaml
file using the table below.
Contains a short state description and a more detailed one if
applicable. The short status values are as follows:
OK - object is operational.
ERR - object is non-operational. This status has a detailed
description in the messages list.
TERM - object was deleted and is terminating.
messagesSince 23.1
Contains error or warning messages if the object state is ERR.
For example, ERR:WrongincludeRangeforCIDR….
statusMessage
Deprecated since MOSK 23.1 and will be removed in
one of the following releases in favor of state and messages.
Since MOSK 23.2, this field is not set for the
objects of newly created clusters.
cidr
Reflects the actual CIDR, has the same meaning as spec.cidr.
gateway
Reflects the actual gateway, has the same meaning as spec.gateway.
nameservers
Reflects the actual name servers, has same meaning as spec.nameservers.
ranges
Specifies the address ranges that are calculated using the fields from
spec:cidr,includeRanges,excludeRanges,gateway,useWholeCidr.
These ranges are directly used for nodes IP allocation.
allocatable
Includes the number of currently available IP addresses that can be allocated
for nodes from the subnet.
allocatedIPs
Specifies the list of IPv4 addresses with the corresponding IPaddr object IDs
that were already allocated from the subnet.
capacity
Contains the total number of IP addresses being held by ranges that equals to a sum
of the allocatable and allocatedIPs parameters values.
objCreated
Date, time, and IPAM version of the Subnet CR creation.
objStatusUpdated
Date, time, and IPAM version of the last update of the status
field in the Subnet CR.
objUpdated
Date, time, and IPAM version of the last Subnet CR update
by kaas-ipam.
Example of a successfully created subnet:
apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:labels:ipam/UID:6039758f-23ee-40ba-8c0f-61c01b0ac863kaas.mirantis.com/provider:baremetalkaas.mirantis.com/region:region-oneipam/SVC-k8s-lcm:"1"name:kaas-mgmtnamespace:defaultspec:cidr:10.0.0.0/24excludeRanges:-10.0.0.100-10.0.0.101-10.0.0.120gateway:10.0.0.1includeRanges:-10.0.0.50-10.0.0.90nameservers:-172.18.176.6status:allocatable:38allocatedIPs:-10.0.0.50:0b50774f-ffed-11ea-84c7-0242c0a85b02-10.0.0.51:1422e651-ffed-11ea-84c7-0242c0a85b02-10.0.0.52:1d19912c-ffed-11ea-84c7-0242c0a85b02capacity:41cidr:10.0.0.0/24gateway:10.0.0.1objCreated:2021-10-21T19:09:32Z by v5.1.0-20210930-121522-f5b2af8objStatusUpdated:2021-10-21T19:14:18.748114886Z by v5.1.0-20210930-121522-f5b2af8objUpdated:2021-10-21T19:09:32.606968024Z by v5.1.0-20210930-121522-f5b2af8nameservers:-172.18.176.6ranges:-10.0.0.50-10.0.0.90
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
When planning your installation in advance, you need to prepare a set
of subnets and L2 templates for every rack in your cluster. For details, see
Multi-rack architecture.
Using the Subnet object examples for a multi-rack cluster that are
described in the following sections, create subnets for the target cluster.
Note
Subnet labels such as rack-x-lcm, rack-api-lcm, and so on are
optional. You can use them in L2 templates to select Subnet objects by
label.
Note
Before the Cluster release 16.1.0, the Subnet object contains
the kaas.mirantis.com/region label that specifies the region
where the Subnet object will be applied.
Configure DHCP relay agents on the edges of the broadcast domains in the
provisioning network, as needed.
Make sure to assign the IP address ranges you want to allocate
to the hosts using DHCP for discovery and inspection. Create subnets
using these IP parameters. Specify the IP address of your DHCP relay
as the default gateway in the corresponding Subnet object.
Caution
Support of multiple DHCP ranges has the following limitations:
Using of custom DNS server addresses for servers that boot over PXE
is not supported.
The Subnet objects for DHCP ranges cannot be associated with any
specific cluster, as the DHCP server configuration is only applicable to
the management cluster where the DHCP server is running.
The cluster.sigs.k8s.io/cluster-name label will be ignored.
Example mos-racks-dhcp-subnets.yaml
apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-1-dhcpnamespace:defaultlabels:ipam/SVC-dhcp-range:"1"kaas.mirantis.com/provider:baremetalspec:cidr:10.20.101.0/24gateway:10.20.101.1includeRanges:-10.20.101.16-10.20.101.127---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-2-dhcpnamespace:defaultlabels:ipam/SVC-dhcp-range:"1"kaas.mirantis.com/provider:baremetalspec:cidr:10.20.102.0/24gateway:10.20.102.1includeRanges:-10.20.102.16-10.20.102.127---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-3-dhcpnamespace:defaultlabels:ipam/SVC-dhcp-range:"1"kaas.mirantis.com/provider:baremetalspec:cidr:10.20.103.0/24gateway:10.20.103.1includeRanges:-10.20.103.16-10.20.103.127---# Add more Subnet object templates as required using the above example# (one subnet per rack)
This is the IP address space that Container Cloud uses to ensure communication
between the LCM agents and the management API. These addresses are also used
by Kubernetes nodes for communication. The addresses from the subnets
are assigned to all MOSK cluster nodes.
Example mosk-racks-lcm-subnets.yaml
apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-1-lcmnamespace:mosk-namespace-namelabels:ipam/SVC-k8s-lcm:"1"kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-1-lcm:"true"spec:cidr:10.20.111.0/24gateway:10.20.111.1includeRanges:-10.20.111.16-10.20.111.255nameservers:-8.8.8.8---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-2-lcmnamespace:mosk-namespace-namelabels:ipam/SVC-k8s-lcm:"1"kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-2-lcm:"true"spec:cidr:10.20.112.0/24gateway:10.20.112.1includeRanges:-10.20.112.16-10.20.112.255nameservers:-8.8.8.8---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-3-lcmnamespace:mosk-namespace-namelabels:ipam/SVC-k8s-lcm:"1"kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-3-lcm:"true"spec:cidr:10.20.113.0/24gateway:10.20.113.1includeRanges:-10.20.113.16-10.20.113.255nameservers:-8.8.8.8---# Add more subnet object templates as required using the above example# (one subnet per rack)
If BGP announcement is configured for the MOSK cluster API LB address, the
API/LCM network is not required. Announcement of the cluster API LB address
is done using the LCM network.
If you configure ARP announcement of the load-balancer IP address for the
MOSK cluster API, the API/LCM network must be configured on the Kubernetes
manager nodes of the cluster. This network contains the Kubernetes API
endpoint with the VRRP virtual IP address.
This network contains Kubernetes API endpoint with the VRRP virtual IP address.
This is the IP address space that Container Cloud uses to ensure communication
between the LCM agents and the management API. These addresses are also used by
Kubernetes nodes for communication. The addresses from the subnet are assigned
to all Kubernetes manager nodes of the MOSK cluster.
If you configure BGP announcement for IP addresses of load-balanced services
of a MOSK cluster, the external network can consist of multiple VLAN segments
connected to all nodes of a MOSK cluster where MetalLB speaker components are
configured to announce IP addresses for Kubernetes load-balanced services.
Mirantis recommends that you use OpenStack controller nodes for this purpose.
If you configure ARP announcement for IP addresses of load-balanced services
of a MOSK cluster, the external network must consist of a single VLAN
stretched to the ToR switches of all the racks where MOSK nodes connected to
the external network are located. Those are the nodes where MetalLB speaker
components are configured to announce IP addresses for Kubernetes load-balanced
services. Mirantis recommends that you use OpenStack controller nodes for this
purpose.
The subnets are used to assign addresses to the external interfaces of the
MOSK controller nodes and will be used to assign the default
gateway to these hosts. The default gateway for other hosts of the
MOSK cluster is assigned using the LCM and optionally
API/LCM subnets.
Example mosk-racks-external-subnets.yaml
Example of a subnet where a single VLAN segment is stretched to all
MOSK controller nodes:
apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:k8s-externalnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namek8s-external:truespec:cidr:10.20.120.0/24gateway:10.20.120.1# This will be the default gateway on hostsincludeRanges:-10.20.120.16-10.20.120.20nameservers:-8.8.8.8
Example of subnets where separate VLAN segments per rack are used:
apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-1-k8s-extnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-1-k8s-ext:truespec:cidr:10.20.121.0/24gateway:10.20.121.1# This will be the default gateway on hostsincludeRanges:-10.20.121.16-10.20.121.20nameservers:-8.8.8.8---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-2-k8s-extnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-2-k8s-ext:truespec:cidr:10.20.122.0/24gateway:10.20.122.1# This will be the default gateway on hostsincludeRanges:-10.20.122.16-10.20.122.20nameservers:-8.8.8.8---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-3-k8s-extnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-3-k8s-ext:truespec:cidr:10.20.123.0/24gateway:10.20.123.1# This will be the default gateway on hostsincludeRanges:-10.20.123.16-10.20.123.20nameservers:-8.8.8.8
This network may have per-rack VLANs and IP subnets. The addresses from the
subnets are assigned to all MOSK cluster nodes besides
Kubernetes manager nodes.
Example mosk-racks-ceph-public-subnets.yaml
apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-1-ceph-publicnamespace:mosk-namespace-namelabels:ipam/SVC-ceph-public:"1"kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-1-ceph-public:truespec:cidr:10.20.131.0/24gateway:10.20.131.1includeRanges:-10.20.131.16-10.20.131.255---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-2-ceph-publicnamespace:mosk-namespace-namelabels:ipam/SVC-ceph-public:"1"kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-2-ceph-public:truespec:cidr:10.20.132.0/24gateway:10.20.132.1includeRanges:-10.20.132.16-10.20.132.255---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-3-ceph-publicnamespace:mosk-namespace-namelabels:ipam/SVC-ceph-public:"1"kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-3-ceph-public:truespec:cidr:10.20.133.0/24gateway:10.20.133.1includeRanges:-10.20.133.16-10.20.133.255---# Add more Subnet object templates as required using the above example# (one subnet per rack)
This network may have per-rack VLANs and IP subnets. The addresses from the
subnets are assigned to storage nodes in the MOSK cluster.
Example mosk-racks-ceph-cluster-subnets.yaml
apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-1-ceph-clusternamespace:mosk-namespace-namelabels:ipam/SVC-ceph-cluster:"1"kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-1-ceph-cluster:truespec:cidr:10.20.141.0/24gateway:10.20.141.1includeRanges:-10.20.141.16-10.20.141.255---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-2-ceph-clusternamespace:mosk-namespace-namelabels:ipam/SVC-ceph-cluster:"1"kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-2-ceph-cluster:truespec:cidr:10.20.142.0/24gateway:10.20.142.1includeRanges:-10.20.142.16-10.20.142.255---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-3-ceph-clusternamespace:mosk-namespace-namelabels:ipam/SVC-ceph-cluster:"1"kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-3-ceph-cluster:truespec:cidr:10.20.143.0/24gateway:10.20.143.1includeRanges:-10.20.143.16-10.20.143.255---# Add more Subnet object templates as required using the above example# (one subnet per rack)
This network may include multiple per-rack VLANs and IP subnets. The addresses
from the subnets are assigned to all MOSK cluster nodes.
For details, see Network types.
Example mosk-racks-k8s-pods.yaml
apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-1-k8s-podsnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-1-k8s-pods:truespec:cidr:10.20.151.0/24gateway:10.20.151.1includeRanges:-10.20.151.16-10.20.151.255---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-2-k8s-podsnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-2-k8s-pods:truespec:cidr:10.20.152.0/24gateway:10.20.152.1includeRanges:-10.20.152.16-10.20.152.255---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-3-k8s-podsnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-3-k8s-pods:truespec:cidr:10.20.153.0/24gateway:10.20.153.1includeRanges:-10.20.153.16-10.20.153.255---# Add more Subnet object templates as required using the above example# (one subnet per rack)
The underlay network for VXLAN tunnels for the MOSK tenants
traffic. If deployed with Tungsten Fabric, it is used for MPLS over UDP+GRE
traffic.
Example mosk-racks-tenant-tunnel.yaml
apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-1-tenant-tunnelnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-1-tenant-tunnel:truespec:cidr:10.20.161.0/24gateway:10.20.161.1includeRanges:-10.20.161.16-10.20.161.255---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-2-tenant-tunnelnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-2-tenant-tunnel:truespec:cidr:10.20.162.0/24gateway:10.20.162.1includeRanges:-10.20.162.16-10.20.162.255---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-3-tenant-tunnelnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-3-tenant-tunnel:truespec:cidr:10.20.163.0/24gateway:10.20.163.1includeRanges:-10.20.163.16-10.20.163.255---# Add more Subnet object templates as required using the above example# (one subnet per rack)
The network is used by the Compute service (OpenStack Nova) to transfer data
during live migration. Depending on the cloud needs, it can be placed on a
dedicated physical network not to affect other networks during live migration.
Example mosk-racks-live-migration.yaml
apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-1-live-migrationnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-1-live-migration:truespec:cidr:10.20.171.0/24gateway:10.20.171.1includeRanges:-10.20.171.16-10.20.171.255---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-2-live-migrationnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-2-live-migration:truespec:cidr:10.20.172.0/24gateway:10.20.172.1includeRanges:-10.20.172.16-10.20.172.255---apiVersion:ipam.mirantis.com/v1alpha1kind:Subnetmetadata:name:rack-3-live-migrationnamespace:mosk-namespace-namelabels:kaas.mirantis.com/provider:baremetalcluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack-3-live-migration:truespec:cidr:10.20.173.0/24gateway:10.20.173.1includeRanges:-10.20.173.16-10.20.173.255---# Add more Subnet object templates as required using the above example# (one subnet per rack)
According to the MOSK reference architecture,
you should create the following subnets.
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
The addresses from this subnet are not allocated to interfaces, but used
as a MetalLB address pool to expose MOSK API endpoints
as Kubernetes cluster services.
The addresses from this subnet are assigned to interfaces connected
to the Kubernetes workloads network and used by Calico CNI as underlay
for traffic between the pods in the Kubernetes cluster.
The network is used by the Compute service (OpenStack Nova) to transfer data
during live migration. Depending on the cloud needs, you can place it on a
dedicated physical network not to affect other networks during live migration.
The use of the MetalLBConfig object is mandatory after your
management cluster upgrade to the Cluster release 17.0.0.
The following rules and requirements apply to configuration of the
MetalLBConfig and MetalLBConfigTemplate objects:
Define one MetalLBConfig object per cluster.
Define the following mandatory labels:
cluster.sigs.k8s.io/cluster-name
Specifies the cluster name where the MetalLB address pool is used.
kaas.mirantis.com/region
Specifies the region name of the cluster where the MetalLB address pool is
used.
kaas.mirantis.com/provider
Specifies the provider of the cluster where the MetalLB address pool is used.
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Intersection of IP address ranges within any single MetalLB address pool
is not allowed.
At least one MetalLB address pool must have the auto-assign policy enabled
so that unannotated services can have load balancer IP addresses allocated
for them.
When configuring multiple address pools with the auto-assign policy enabled,
keep in mind that it is not determined in advance which pool of those
multiple address pools is used to allocate an IP address for a particular
unannotated service.
You can use the MetalLBConfig object to optimize address announcement for
load-balanced services using the interfaces selector for the
l2Advertisements object. This selector allows for announcing addresses
only on selected host interfaces. For details, see Container Cloud API
Reference: MetalLBConfig spec.
Optional. Deprecated since MOSK 24.2 and will be removed
in one of the following releases. Define one MetalLBConfigTemplate object
per cluster. The use of this object without MetalLBConfig is not allowed.
When using MetalLBConfigTemplate:
MetalLBConfig must reference MetalLBConfigTemplate by name:
spec:templateName:<managed-metallb-template>
You can use Subnet objects for defining MetalLB address pools.
Refer to MetalLB configuration guidelines for subnets for guidelines on configuring
MetalLB address pools using Subnet objects.
The BGP configuration is not yet supported in the Container Cloud
web UI. Meantime, use the CLI for this purpose. For details, see
conf-verify-metallb-cli.
Optional. Configure parameters related to MetalLB components life cycle
such as deployment and update using the metallb Helm chart values in
the Clusterspec section. For example:
Log in to the Container Cloud web UI with the writer permissions.
Switch to the required project using the Switch Project
action icon located on top of the main left-side navigation panel.
In the Networks section, click the MetalLB Configs
tab.
Click Create MetalLB Config.
Fill out the Create MetalLB Config form as required:
Name
Name of the MetalLB object being created.
Cluster
Name of the cluster that the MetalLB object is being created
for
IP Address Pools
List of MetalLB IP address pool descriptions that will be used to create
the MetalLB IPAddressPool objects. Click the + button on
the right side of the section to add more objects.
Name
IP address pool name.
Addresses
Comma-separated ranges of the IP addresses included into the address
pool.
Auto Assign
Enable auto-assign policy for unannotated services to have load
balancer IP addresses allocated to them. At least one MetalLB address
pool must have the auto-assign policy enabled.
Service Allocation
IP address pool allocation to services. Click Edit to
insert a service allocation object with required label selectors for
services in the YAML format. For example:
Optional. Comma-separated list of interface names that must match
the ones on the corresponding nodes. These names are defined in
L2 templates that are linked to the selected cluster.
IP Address Pools
Select the IP adress pool to use for the l2Advertisements
object.
Node Selectors
Optional. Match labels and values for the Kubernetes node selector
to limit the nodes announced as next hops for the LoadBalancer
IP. If you do not provide any labels, all nodes are announced as
next hops.
In Networks > MetalLB Configs, verify the status of the created
MetalLB object:
Ready - object is operational.
Error - object is non-operational. Hover over the status
to obtain details of the issue.
Note
To verify the object details, in
Networks > MetalLB Configs, click the More action
icon in the last column of the required object section and select
MetalLB Config info.
Proceed to creating cluster subnets as described in
Create subnets.
Optional. Configure parameters related to MetalLB components life cycle
such as deployment and update using the metallb Helm chart values in
the Clusterspec section. For example:
In the Technology Preview scope, you can use BGP for announcement of
external addresses of Kubernetes load-balanced services for a
MOSK cluster. To configure the BGP announcement mode
for MetalLB, use MetalLBConfig object.
The use of BGP is required to announce IP addresses for load-balanced
services when using MetalLB on nodes that are distributed across
multiple racks. In this case, setting of rack-id labels on nodes
is required, they are used in node selectors for BGPPeer,
BGPAdvertisement, or both MetalLB objects to properly configure
BGP connections from each node.
Configuration example of the Machine object for the
BGP announcement mode
apiVersion:cluster.k8s.io/v1alpha1kind:Machinemetadata:name:test-cluster-compute-1namespace:mosk-nslabels:cluster.sigs.k8s.io/cluster-name:test-clusteripam/RackRef:rack-1# reference to the "rack-1" Rackkaas.mirantis.com/provider:baremetalkaas.mirantis.com/region:region-onespec:providerSpec:value:...nodeLabels:-key:rack-id# node label can be used in "nodeSelectors" insidevalue:rack-1# "BGPPeer" and/or "BGPAdvertisement" MetalLB objects...
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Configuration example of the MetalLBConfig
object for the BGP announcement mode
apiVersion:ipam.mirantis.com/v1alpha1kind:MetalLBConfigmetadata:name:test-cluster-metallb-confignamespace:mosk-nslabels:cluster.sigs.k8s.io/cluster-name:test-clusterkaas.mirantis.com/provider:baremetalkaas.mirantis.com/region:region-onespec:...bgpPeers:-name:svc-peer-1spec:holdTime:0skeepaliveTime:0speerAddress:10.77.42.1peerASN:65100myASN:65101nodeSelectors:-matchLabels:rack-id:rack-1# references the nodes having# the "rack-id=rack-1" labelbgpAdvertisements:-name:servicesspec:aggregationLength:32aggregationLengthV6:128ipAddressPools:-servicespeers:-svc-peer-1...
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
The bgpPeers and bgpAdvertisements fields are used to
configure BGP announcement instead of l2Advertisements.
The use of BGP for announcement also allows for better balancing
of service traffic between cluster nodes as well as gives more
configuration control and flexibility for infrastructure administrators.
For configuration examples, refer to Examples of MetalLBConfig.
For configuration procedure, refer to Configure BGP announcement for cluster API LB address.
Since MOSK 23.2
Select from the following options:
Deprecated since MOSK 24.2.
Mandatory after a management cluster upgrade to the Cluster release
17.0.0. Recommended and default since MOSK 23.2 in
the Technology Preview scope.
Create MetalLBConfig and MetalLBConfigTemplate objects.
This method allows using the Subnet object to define MetalLB
address pools.
Since MOSK 23.2.2, in the Technology Preview scope,
you can use BGP for announcement of external addresses of Kubernetes
load-balanced services for a MOSK cluster.
To configure the BGP announcement mode for MetalLB, use
MetalLBConfig and MetalLBConfigTemplate objects.
The use of BGP is required to announce IP addresses for load-balanced
services when using MetalLB on nodes that are distributed across
multiple racks. In this case, setting of rack-id labels on nodes
is required, they are used in node selectors for BGPPeer,
BGPAdvertisement, or both MetalLB objects to properly configure
BGP connections from each node.
Configuration example of the Machine object for the
BGP announcement mode
apiVersion:cluster.k8s.io/v1alpha1kind:Machinemetadata:name:test-cluster-compute-1namespace:mosk-nslabels:cluster.sigs.k8s.io/cluster-name:test-clusteripam/RackRef:rack-1# reference to the "rack-1" Rackkaas.mirantis.com/provider:baremetalkaas.mirantis.com/region:region-onespec:providerSpec:value:...nodeLabels:-key:rack-id# node label can be used in "nodeSelectors" insidevalue:rack-1# "BGPPeer" and/or "BGPAdvertisement" MetalLB objects...
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Configuration example of the MetalLBConfigTemplate
object for the BGP announcement mode
apiVersion:ipam.mirantis.com/v1alpha1kind:MetalLBConfigTemplatemetadata:name:test-cluster-metallb-config-templatenamespace:mosk-nslabels:cluster.sigs.k8s.io/cluster-name:test-clusterkaas.mirantis.com/provider:baremetalkaas.mirantis.com/region:region-onespec:templates:...bgpPeers:|- name: svc-peer-1spec:peerAddress: 10.77.42.1peerASN: 65100myASN: 65101nodeSelectors:- matchLabels:rack-id: rack-1 # references the nodes having# the "rack-id=rack-1" labelbgpAdvertisements:|- name: servicesspec:ipAddressPools:- servicespeers:- svc-peer-1...
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
The bgpPeers and bgpAdvertisements fields are used to
configure BGP announcement instead of l2Advertisements.
The use of BGP for announcement also allows for better balancing
of service traffic between cluster nodes as well as gives more
configuration control and flexibility for infrastructure administrators.
For configuration examples, refer to Examples of MetalLBConfigTemplate.
For configuration procedure, refer to Configure BGP announcement for cluster API LB address.
Not recommended. Configure the configInline value in the MetalLB
chart of the Cluster object.
Warning
This option is deprecated since MOSK
23.2 and is removed during the management cluster upgrade to the
Cluster release 17.0.0, which is introduced in Container Cloud 2.25.0.
Therefore, this option becomes unavailable on MOSK
23.2 clusters after the parent management cluster upgrade to 2.25.0.
Not recommended. Configure the Subnet objects without
MetalLBConfigTemplate.
Warning
This option is deprecated since MOSK
23.2 and is removed during the management cluster upgrade to the
Cluster release 17.0.0, which is introduced in Container Cloud 2.25.0.
Therefore, this option becomes unavailable on MOSK
23.2 clusters after the parent management cluster upgrade to 2.25.0.
Caution
If the MetalLBConfig object is not used for MetalLB
configuration related to address allocation and announcement for
load-balanced services, then automated migration applies during
cluster creation or update to MOSK 23.2.
During automated migration, the MetalLBConfig and
MetalLBConfigTemplate objects are created and contents of the MetalLB
chart configInline value is converted to the parameters of the
MetalLBConfigTemplate object.
Any change to the configInline value made on a
MOSK 23.2 cluster will be reflected in the
MetalLBConfigTemplate object.
This automated migration is removed during your management cluster
upgrade to the Cluster release 17.0.0, which is introduced in Container
Cloud 2.25.0, together with the possibility to use the configInline
value of the MetalLB chart. After that, any changes in MetalLB
configuration related to address allocation and announcement for
load-balanced services are applied using the MetalLBConfig,
MetalLBConfigTemplate, and Subnet objects only.
Configure the configInline value for the MetalLB chart in the
Cluster object.
Configure both the configInline value for the MetalLB chart and
Subnet objects.
The resulting MetalLB address pools configuration will contain address
ranges from both cluster specification and Subnet objects.
All address ranges for L2 address pools will be aggregated into a single
L2 address pool and sorted as strings.
Changes to be applied since MOSK 23.2
The configuration options above become deprecated since 23.2, and
automated migration of MetalLB parameters applies during cluster creation
or update to MOSK 23.2.
During automated migration, the MetalLBConfig and
MetalLBConfigTemplate objects are created and contents of the
MetalLB chart configInline value is converted to the parameters of
the MetalLBConfigTemplate object.
Any change to the configInline value made on a
MOSK 23.2 cluster will be reflected in the
MetalLBConfigTemplate object.
This automated migration is removed during your management cluster
upgrade to Container Cloud 2.25.0 together with the possibility to use
the configInline value of the MetalLB chart. After that, any
changes in MetalLB configuration related to address allocation and
announcement for load-balanced services will be applied using the
MetalLBConfigTemplate and Subnet objects only.
Verify the current MetalLB configuration:
Since MOSK 22.5
Verify the MetalLB configuration that is stored in MetalLB objects:
The auto-assign parameter will be set to false for all address
pools except the default one. So, a particular service will get an
address from such an address pool only if the Service object has a
special metallb.universe.tf/address-pool annotation that points to
the specific address pool name.
Proceed to creating cluster subnets as described in
Create subnets.
Each Subnet object can define either a MetalLB address range or MetalLB
address pool. A MetalLB address pool may contain one or several address
ranges. The following rules apply to creation of address ranges or pools:
To designate a subnet as a MetalLB address pool or range, use
the ipam/SVC-MetalLB label key. Set the label value to "1".
The object must contain the cluster.sigs.k8s.io/<cluster-name> label to
reference the name of the target cluster where the MetalLB address pool
is used.
You may create multiple subnets with the ipam/SVC-MetalLB label to
define multiple IP address ranges or multiple address pools for MetalLB in
the cluster.
The IP addresses of the MetalLB address pool are not assigned to the
interfaces on hosts. This subnet is virtual. Do not include such subnets
to the L2 template definitions for your cluster.
If a Subnet object defines a MetalLB address range, no additional
object properties are required.
You can use any number of Subnet objects that define a single MetalLB
address range. In this case, all address ranges are aggregated into
a single MetalLB L2 address pool named services having the auto-assign
policy enabled.
Intersection of IP address ranges within any single MetalLB address pool
is not allowed.
The bare metal provider verifies intersection of IP address ranges.
If it detects intersection, the MetalLB configuration is blocked and
the provider logs contain corresponding error messages.
Use the following labels to identify the Subnet object as a MetalLB
address pool and configure the name and protocol for that address pool.
All labels below are mandatory for the Subnet object that configures
a MetalLB address pool.
Mandatory Subnet labels for a MetalLB address pool¶
Label
Description
Labels to link Subnet to the target MOSK
clusters within a management cluster.
cluster.sigs.k8s.io/cluster-name
Specifies the cluster name where the MetalLB address pool is used.
kaas.mirantis.com/region
Specifies the region name of the cluster where the MetalLB address pool is
used.
kaas.mirantis.com/provider
Specifies the provider of the cluster where the MetalLB address pool is used.
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
ipam/SVC-MetalLB
Defines that the Subnet object will be used to provide
a new address pool or range for MetalLB.
metallb/address-pool-name
Every address pool must have a distinct name.
The services-pxe address pool is mandatory when configuring
a dedicated PXE network in the management cluster. This name will be
used in annotations for services exposed through the PXE network.
metallb/address-pool-auto-assign
Configures the auto-assign policy of an address pool. Boolean.
Caution
For the address pools defined using the MetalLB Helm chart
values in the Clusterspec section, auto-assign policy is
set to true and is not configurable.
For any service that does not have a specific MetalLB annotation
configured, MetalLB allocates external IPs from arbitrary address
pools that have the auto-assign policy set to true.
Only for the service that has a specific MetalLB annotation with
the address pool name, MetalLB allocates external IPs from the address
pool having the auto-assign policy set to false.
metallb/address-pool-protocol
Sets the address pool protocol.
The only supported value is layer2 (default).
Caution
Do not set the same address pool name for two or more
Subnet objects. Otherwise, the corresponding MetalLB address pool
configuration fails with a warning message in the bare metal provider log.
Caution
For the auto-assign policy, the following configuration
rules apply:
At least one MetalLB address pool must have the auto-assign
policy enabled so that unannotated services can have load balancer IPs
allocated for them. To satisfy this requirement, either configure one
of address pools using the Subnet object with
metallb/address-pool-auto-assign:"true" or configure address
range(s) using the Subnet object(s) without
metallb/address-pool-* labels.
When configuring multiple address pools with the auto-assign policy
enabled, keep in mind that it is not determined in advance which pool of
those multiple address pools is used to allocate an IP for a particular
unannotated service.
By default, MetalLB speakers are deployed on all Kubernetes nodes except
master nodes.
You can configure MetalLB to run its speakers on a particular set of nodes.
This decreases the number of nodes that should be connected to external
network. In this scenario, only a few nodes are exposed for ingress
traffic from the outside world.
To customize the MetalLB speaker node selector:
Using kubeconfig of the Container Cloud management cluster, open the
MOSK Cluster object for editing:
The metallbSpeakerEnabled:"true" parameter in this example is the
label on Kubernetes nodes where MetalLB speakers will be deployed.
It can be an already existing node label or a new one.
You can add user-defined labels to nodes using the nodeLabels field.
This field contains the list of node labels to be attached to a node for the
user to run certain components on separate cluster nodes. The list of allowed
node labels is located in the Cluster object status
providerStatus.releaseRef.current.allowedNodeLabels field.
If the value field is not defined in allowedNodeLabels, a label can
have any value. For example:
Before or after a machine deployment, add the required label from the allowed
node labels list with the corresponding value to
spec.providerSpec.value.nodeLabels in machine.yaml. For example:
nodeLabels:-key:stacklightvalue:enabled
Adding of a node label that is not available in the list of allowed node
labels is restricted.
Configure BGP announcement for cluster API LB address¶
TechPreviewAvailable since 23.2.2
When you create a MOSK cluster with the multi-rack topology,
where Kubernetes masters are distributed across multiple racks
without an L2 layer extension between them, you must configure
BGP announcement of the cluster API load balancer address.
For clusters where Kubernetes masters are in the same rack or with an L2 layer
extension between masters, you can configure either BGP or L2 (ARP)
announcement of the cluster API load balancer address.
The L2 (ARP) announcement is used by default and its configuration is covered
in Create a managed bare metal cluster.
Caution
Create Rack and MultiRackCluster objects, which are
described in the below procedure, before initiating the provisioning
of master nodes to ensure that both BGP and netplan configurations
are applied simultaneously during the provisioning process.
To enable the use of BGP announcement for the cluster API LB address:
In the Cluster object, set the useBGPAnnouncement parameter
to true:
spec:providerSpec:value:useBGPAnnouncement:true
Create the MultiRackCluster object that is mandatory when configuring
BGP announcement for the cluster API LB address. This object enables you
to set cluster-wide parameters for configuration of BGP announcement.
In this scenario, the MultiRackCluster object must be bound to the
corresponding Cluster object using the
cluster.sigs.k8s.io/cluster-name label.
Container Cloud uses the bird BGP daemon for announcement of the cluster
API LB address. For this reason, set the corresponding
bgpdConfigFileName and bgpdConfigFilePath parameters in the
MultiRackCluster object, so that bird can locate the configuration
file. For details, see the configuration example below.
The bgpdConfigTemplate object contains the default configuration file
template for the bird BGP daemon, which you can override in Rack
objects.
The defaultPeer parameter contains default parameters of the BGP
connection from master nodes to infrastructure BGP peers, which you can
override in Rack objects.
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Create the Rack object(s). This object is mandatory when configuring
BGP announcement for the cluster API LB address and it allows you
to configure BGP announcement parameters for each rack.
In this scenario, Rack objects must be bound to Machine objects
corresponding to master nodes of the cluster.
Each Rack object describes the configuration for the bird BGP
daemon used to announce the cluster API LB address from a particular
master node or from several master nodes in the same rack.
The Machine object can optionally define the rack-id node label
that is not used for BGP announcement of the cluster API LB IP but
can be used for MetalLB. This label is required for MetalLB node selectors
when MetalLB is used to announce LB IP addresses on nodes that are
distributed across multiple racks. In this scenario, the L2 (ARP)
announcement mode cannot be used for MetalLB because master nodes are in
different L2 segments. So, the BGP announcement mode must be used for
MetalLB, and node selectors are required to properly configure BGP
connections from each node. See Configure MetalLB for details.
The L2Template object includes the lo interface configuration
to set the IP address for the bird BGP daemon that will be advertised
as the cluster API LB address. The {{ cluster_api_lb_ip }}
function is used in npTemplate to obtain the cluster API LB address
value.
Configuration example for Rack
apiVersion:ipam.mirantis.com/v1alpha1kind:Rackmetadata:name:rack-master-1namespace:mosk-nslabels:cluster.sigs.k8s.io/cluster-name:test-clusterkaas.mirantis.com/provider:baremetalkaas.mirantis.com/region:region-onespec:bgpdConfigTemplate:|# optional...peeringMap:lcm-rack-control-1:peers:-neighborIP:10.77.31.2# "localASN" & "neighborASN" are taken from-neighborIP:10.77.31.3# "MultiRackCluster.spec.defaultPeer" if# not set here
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Configuration example for Machine
apiVersion:cluster.k8s.io/v1alpha1kind:Machinemetadata:name:test-cluster-master-1namespace:mosk-nsannotations:metal3.io/BareMetalHost:mosk-ns/test-cluster-master-1labels:cluster.sigs.k8s.io/cluster-name:test-clustercluster.sigs.k8s.io/control-plane:controlplanehostlabel.bm.kaas.mirantis.com/controlplane:controlplaneipam/RackRef:rack-master-1# reference to the "rack-master-1" Rackkaas.mirantis.com/provider:baremetalkaas.mirantis.com/region:region-onespec:providerSpec:value:kind:BareMetalMachineProviderSpecapiVersion:baremetal.k8s.io/v1alpha1hostSelector:matchLabels:kaas.mirantis.com/baremetalhost-id:test-cluster-master-1l2TemplateSelector:name:test-cluster-master-1nodeLabels:# optional. it is not used for BGP announcement-key:rack-id# of the cluster API LB IP but it can be usedvalue:rack-master-1# for MetalLB if "nodeSelectors" are required...
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Configuration example for L2Template
apiVersion:ipam.mirantis.com/v1alpha1kind:L2Templatemetadata:labels:cluster.sigs.k8s.io/cluster-name:test-clusterkaas.mirantis.com/provider:baremetalkaas.mirantis.com/region:region-onename:test-cluster-master-1namespace:mosk-nsspec:...l3Layout:-subnetName:lcm-rack-control-1# this network is referencedscope:namespace# in the "rack-master-1" Rack-subnetName:ext-rack-control-1# optional. this network is usedscope:namespace# for k8s services traffic and# MetalLB BGP connections...npTemplate:|...ethernets:lo:addresses:- {{ cluster_api_lb_ip }} # function for cluster API LB IPdhcp4: falsedhcp6: false...
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
After you create subnets for the MOSK cluster
as described in Create subnets, follow the procedure below to create L2
templates for different types of OpenStack nodes in the cluster.
See the following subsections for templates that implement the
MOSK Reference Architecture: Networking.
You may adjust the templates according to the requirements of
your architecture using the last two subsections of this section.
They explain mandatory parameters of the templates and supported
configuration options.
Create L2 templates for a multi-rack MOSK cluster¶
For a multi-rack MOSK cluster, you need to create
one L2 template for each type of server in each rack. This may result
in a large number of L2 templates in your configuration.
For example, if you have a three-rack deployment of MOSK
with 4 types of nodes evenly distributed across three racks, you have to create
at least the following L2 templates:
rack-1-k8s-manager, rack-2-k8s-manager, rack-3-k8s-manager
for Kubernetes control plane nodes, unless you use the compact control
plane option.
rack-1-mosk-control, rack-2-mosk-control, rack-3-mosk-control
for OpenStack controller nodes in each rack.
rack-1-mosk-compute, rack-2-mosk-compute, rack-3-mosk-compute
for OpenStack compute nodes in each rack.
rack-1-mosk-storage, rack-2-mosk-storage, rack-3-mosk-storage
for OpenStack storage nodes in each rack.
In total, twelve L2 templates are required for this relatively simple cluster.
In the following sections, the examples cover only one rack, but can be
easily expanded to more racks.
Note
Three servers are required for Kubernetes control plane and for the
OpenStack control plane. So, you might not need more L2 templates for these
roles when expanding beyond three racks.
To create L2 templates for Kubernetes manager nodes:
Create or open the mosk-l2templates.yml file that contains
the L2 templates you are preparing.
Add L2 templates using the following example. Adjust the values of
specific parameters according to the specifications of your environment,
specifically the name of your project (namespace) and cluster,
IP address ranges and networks, subnet names.
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Note
Before MOSK 23.3, an L2 template requires
clusterRef:<clusterName> in the spec section. Since MOSK 23.3,
this parameter is deprecated and automatically migrated to the
cluster.sigs.k8s.io/cluster-name:<clusterName> label.
To create L2 templates for other racks, change the rack
identifier in the names and labels above.
Mirantis does not recommend modifying L2 templates in use
to prevent accidental cluster failures due to unsafe changes.
The list of risks posed by modifying L2 templates includes:
Services running on hosts cannot reconfigure automatically to switch to
the new IP addresses and/or interfaces.
Connections between services are interrupted unexpectedly, which can cause
data loss.
Incorrect configurations on hosts can lead to irrevocable loss of
connectivity between services and unexpected cluster partition or
disassembly.
According to the reference architecture, MOSK controller
nodes must be connected to the following networks:
PXE network
LCM network
Kubernetes workloads network
Storage access network (if deploying with Ceph as a backend for ephemeral
storage)
Floating IP and provider networks. Not required for deployment with
Tungsten Fabric.
Tenant underlay networks. If deploying with VXLAN networking or with
Tungsten Fabric. In the latter case, the BGP service is configured over
this network.
To create L2 templates for MOSK controller nodes:
Create or open the mosk-l2template.yml file that contains
the L2 templates.
Add L2 templates using the following example. Adjust the values of
specific parameters according to the specification of your environment.
Example of an L2 template for a MOSK
controller node¶
apiVersion:ipam.mirantis.com/v1alpha1kind:L2Templatemetadata:labels:kaas.mirantis.com/provider:baremetalkaas.mirantis.com/region:region-onecluster.sigs.k8s.io/cluster-name:mosk-cluster-namerack1-mosk-controller:"true"name:rack1-mosk-controllernamespace:mosk-namespace-namespec:autoIfMappingPrio:-provision-eno-ens-enpl3Layout:-subnetName:mgmt-lcmscope:global-subnetName:rack1-k8s-lcmscope:namespace-subnetName:k8s-externalscope:namespace-subnetName:rack1-k8s-podsscope:namespace-subnetName:rack1-ceph-publicscope:namespace-subnetName:rack1-tenant-tunnelscope:namespacenpTemplate:|-version: 2ethernets:{{nic 0}}:dhcp4: falsedhcp6: falsematch:macaddress: {{mac 0}}set-name: {{nic 0}}mtu: 9000{{nic 1}}:dhcp4: falsedhcp6: falsematch:macaddress: {{mac 1}}set-name: {{nic 1}}mtu: 9000{{nic 2}}dhcp4: falsedhcp6: falsematch:macaddress: {{mac 2}}set-name: {{nic 2}}mtu: 9000{{nic 3}}:dhcp4: falsedhcp6: falsematch:macaddress: {{mac 3}}set-name: {{nic 3}}mtu: 9000bonds:bond0:mtu: 9000parameters:mode: 802.3admii-monitor-interval: 100interfaces:- {{nic 0}}- {{nic 1}}bond1:mtu: 9000parameters:mode: 802.3admii-monitor-interval: 100interfaces:- {{nic 2}}- {{nic 3}}vlans:k8s-lcm-v:id: 403link: bond0mtu: 9000k8s-ext-v:id: 409link: bond0mtu: 9000k8s-pods-v:id: 408link: bond0mtu: 9000pr-floating:id: 407link: bond1mtu: 9000stor-frontend:id: 404link: bond0addresses:- {{ip "stor-frontend:rack1-ceph-public"}}mtu: 9000routes:- to: 10.199.16.0/22 # aggregated address space for Ceph public networkvia: {{ gateway_from_subnet "rack1-ceph-public" }}tenant-tunnel:id: 406link: bond1addresses:- {{ip "tenant-tunnel:rack1-tenant-tunnel"}}mtu: 9000routes:- to: 10.195.0.0/22 # aggregated address space for tenant networksvia: {{ gateway_from_subnet "rack1-tenant-tunnel" }}bridges:k8s-lcm:interfaces: [k8s-lcm-v]addresses:- {{ ip "k8s-lcm:rack1-k8s-lcm" }}nameservers:addresses: {{nameservers_from_subnet "rack1-k8s-lcm"}}routes:- to: 10.197.0.0/21 # aggregated address space for LCM and API/LCM networksvia: {{ gateway_from_subnet "rack1-k8s-lcm" }}- to: {{ cidr_from_subnet "mgmt-lcm" }}via: {{ gateway_from_subnet "rack1-k8s-lcm" }}k8s-ext:interfaces: [k8s-ext-v]addresses:- {{ip "k8s-ext:k8s-external"}}nameservers:addresses: {{nameservers_from_subnet "k8s-external"}}gateway4: {{ gateway_from_subnet "k8s-external" }}mtu: 9000k8s-pods:interfaces: [k8s-pods-v]addresses:- {{ip "k8s-pods:rack1-k8s-pods"}}mtu: 9000routes:- to: 10.199.0.0/22 # aggregated address space for Kubernetes workloadsvia: {{ gateway_from_subnet "rack1-k8s-pods" }}
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Note
Before MOSK 23.3, an L2 template requires
clusterRef:<clusterName> in the spec section. Since MOSK 23.3,
this parameter is deprecated and automatically migrated to the
cluster.sigs.k8s.io/cluster-name:<clusterName> label.
Caution
If you plan to deploy a MOSK cluster with
the compact control plane option and configure ARP announcement of the
load-balancer IP address for the MOSK cluster API, the
API/LCM network will be used for MOSK controller nodes.
Therefore, change the rack1-k8s-lcm subnet to the api-lcm one in
the corresponding L2Template object:
spec:...l3Layout:...-subnetName:api-lcmscope:namespace...npTemplate:|-...bridges:k8s-lcm:interfaces:[k8s-lcm-v]addresses:-{{ip "k8s-lcm:api-lcm"}}nameservers:addresses:{{nameservers_from_subnet "api-lcm"}}routes:-to:10.197.0.0/21# aggregated address space for LCM and API/LCM networksvia:{{gateway_from_subnet "api-lcm"}}-to:{{cidr_from_subnet "mgmt-lcm"}}via:{{gateway_from_subnet "api-lcm"}}...
Mirantis does not recommend modifying L2 templates in use
to prevent accidental cluster failures due to unsafe changes.
The list of risks posed by modifying L2 templates includes:
Services running on hosts cannot reconfigure automatically to switch to
the new IP addresses and/or interfaces.
Connections between services are interrupted unexpectedly, which can cause
data loss.
Incorrect configurations on hosts can lead to irrevocable loss of
connectivity between services and unexpected cluster partition or
disassembly.
According to the reference architecture, MOSK compute nodes
must be connected to the following networks:
PXE network
LCM network
Kubernetes workloads network
Storage access network (if deploying with Ceph as a backend for ephemeral
storage)
Floating IP and provider networks (if deploying OpenStack with DVR)
Tenant underlay networks
To create L2 templates for MOSK compute nodes:
Add L2 templates to the mosk-l2templates.yml file using the following
example. Adjust the values of parameters according to the specification
of your environment.
Example of an L2 template for a MOSK
compute node¶
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Note
Before MOSK 23.3, an L2 template requires
clusterRef:<clusterName> in the spec section. Since MOSK 23.3,
this parameter is deprecated and automatically migrated to the
cluster.sigs.k8s.io/cluster-name:<clusterName> label.
Mirantis does not recommend modifying L2 templates in use
to prevent accidental cluster failures due to unsafe changes.
The list of risks posed by modifying L2 templates includes:
Services running on hosts cannot reconfigure automatically to switch to
the new IP addresses and/or interfaces.
Connections between services are interrupted unexpectedly, which can cause
data loss.
Incorrect configurations on hosts can lead to irrevocable loss of
connectivity between services and unexpected cluster partition or
disassembly.
According to the reference architecture, MOSK storage nodes
in the MOSK cluster must be connected to the
following networks:
PXE network
LCM network
Kubernetes workloads network
Storage access network
Storage replication network
To create L2 templates for MOSK storage nodes:
Add L2 templates to the mosk-l2templates.yml file using the following
example. Adjust the values of parameters according to the specification
of your environment.
Example of an L2 template for a MOSK storage node¶
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Note
Before MOSK 23.3, an L2 template requires
clusterRef:<clusterName> in the spec section. Since MOSK 23.3,
this parameter is deprecated and automatically migrated to the
cluster.sigs.k8s.io/cluster-name:<clusterName> label.
Think of an L2 template as a template for networking configuration for
your hosts. You may adjust the parameters according to the actual
requirements and hardware setup of your hosts.
Mandatory since MOSK 23.3. References the Cluster object
that this template is applied to.
L2 template requirements
An L2 template must have the same project (Kubernetes namespace) as the
referenced cluster.
A cluster can be associated with many L2 templates. Only one of them can
have the ipam/DefaultForCluster label. Every L2 template that does not
have the ipam/DefaultForCluster label can later be assigned to a
particular machine using l2TemplateSelector.
The following rules apply to the default L2 template of a namespace:
Since MOSK 23.3, creation of the default L2 template for a namespace is
disabled. On existing clusters, the Spec.clusterRef:default
parameter of such an L2 template is automatically removed during the
migration process. Subsequently, this parameter is not substituted with
the cluster.sigs.k8s.io/cluster-name label, ensuring the application
of the L2 template across the entire Kubernetes namespace. Therefore,
you can continue using existing default L2 templates for namespaces.
Before MOSK 23.3, the default L2Template object for a namespace must
have the Spec.clusterRef:default parameter that is deprecated in
MOSK 23.3.
clusterRef
Deprecated since MOSK 23.3. References the Cluster object
that this template is applied to.
The default value is used to apply the given template
to all clusters within a particular project,
unless an L2 template that references a specific cluster name exists.
Note
Before MOSK 23.3, an L2 template requires
clusterRef:<clusterName> in the spec section. Since MOSK 23.3,
this parameter is deprecated and automatically migrated to the
cluster.sigs.k8s.io/cluster-name:<clusterName> label.
ifMapping or autoIfMappingPrio
ifMapping is a list of interface names for the template.
The interface mapping is defined globally for all bare metal hosts
in the cluster but can be overridden at the host level, if required,
by editing the IpamHost object for a particular host.
The ifMapping parameter is mutually exclusive with
autoIfMappingPrio.
autoIfMappingPrio is a list of prefixes, such as eno, ens,
and so on, to match the interfaces to automatically create a list
for the template. If you are not aware of any specific
ordering of interfaces on the nodes, use the default
ordering from
Predictable Network Interfaces Names specification for systemd.
You can also override the default NIC list per host
using the IfMappingOverride parameter of the corresponding
IpamHost. The provision value corresponds to the network
interface that was used to provision a node.
Usually, it is the first NIC found on a particular node.
It is defined explicitly to ensure that this interface
will not be reconfigured accidentally.
The autoIfMappingPrio parameter is mutually exclusive
with ifMapping.
l3Layout
Subnets to be used in the npTemplate section. The field contains
a list of subnet definitions with parameters used by template macros.
subnetName
Defines the alias name of the subnet that can be used to reference this
subnet from the template macros and that will be used in the npTemplate
section. This name may differ from the name of the actual Subnet resource
if the labelSelector field is present and uniquely identifies the resource.
This parameter is mandatory for every entry in the l3Layout list.
subnetPool
Deprecated since MOSK 24.2. Optional. Default: none.
Defines a name of the parent SubnetPool object
that will be used to create a Subnet object with a given subnetName
and scope.
If a corresponding Subnet object already exists,
nothing will be created and the existing object will be used.
If no SubnetPool is provided, no new Subnet object will be created.
Warning
The SubnetPool object may not work as expected due to its
deprecation. If you still require this feature, contact Mirantis support
for further information.
Existing configurations that use the SubnetPool object in L2Template
will be automatically migrated during cluster update to MOSK
24.2. As a result of migration, existing Subnet objects will be referenced
in L2Template objects instead of SubnetPool.
scope
Logical scope of the Subnet object with a corresponding subnetName.
Possible values:
global - the Subnet object is accessible globally,
for any Container Cloud project and cluster within one management
cluster, for example, the PXE subnet.
namespace - the Subnet object is accessible within the same
project and management cluster where the L2 template is defined.
cluster - CR uses the namespace where the referenced cluster is located.
A subnet is only accessible to the cluster that
L2Template.metadata.labels:cluster.sigs.k8s.io/cluster-name (mandatory
since MOSK 23.3) or L2Template.spec.clusterRef
(deprecated in MOSK 23.3) refers to. The Subnet objects
with the cluster scope will be created for every new cluster.
labelSelector
Contains a dictionary of labels and their respective values that will be
used to find the matching Subnet object for the subnet. If the
labelSelector field is omitted, the Subnet object will be selected
by name, specified by the subnetName parameter.
Caution
The l3Layout section is mandatory for each L2Template
custom resource.
Caution
Using the l3Layout section, define all subnets that are used
in the npTemplate section.
Defining only part of subnets is not allowed.
If labelSelector is used in l3Layout, use any custom
label name that differs from system names. This allows for easier
cluster scaling in case of adding new subnets as described in
Expand IP addresses capacity in an existing cluster.
Mirantis recommends using a unique label prefix such as
user-defined/.
npTemplate
A netplan-compatible configuration with special lookup functions
that defines the networking settings for the cluster hosts,
where physical NIC names and details are parameterized.
This configuration will be processed using Go templates.
Instead of specifying IP and MAC addresses, interface names,
and other network details specific to a particular host,
the template supports use of special lookup functions.
These lookup functions, such as nic, mac, ip, and so on,
return host-specific network information
when the template is rendered for a particular host.
For details about netplan, see the
official netplan documentation.
Caution
All rules and restrictions of the netplan configuration
also apply to L2 templates. For details, see the official netplan
documentation.
Caution
Mirantis strongly recommends following the below
conventions on network interface naming:
A physical NIC name set by an L2 template must not exceed 15 symbols.
Otherwise, an L2 template creation fails. This limit is set by the
Linux kernel.
Names of virtual network interfaces such as VLANs, bridges, bonds,
veth, and so on must not exceed 15 symbols.
Mirantis recommends setting interfaces names that do not exceed
13 symbols for both physical and virtual interfaces to avoid corner
cases and issues in netplan rendering.
The following table describes the main lookup functions, or macros,
that can be used in the npTemplate field of an L2 template.
Lookup function
Description
{{nicN}}
Name of a NIC number N. NIC numbers correspond to the interface
mapping list. This macro can be used as a key for the elements
of ethernets map, or as the value of name and set-name
parameters of a NIC. It is also used to reference the physical
NIC from definitions of virtual interfaces (vlan, bridge).
{{macN}}
MAC address of a NIC number N registered during a host hardware
inspection.
{{ip "N:subnet-a"}}
IP address and mask for a NIC number N. If the address does not exist
yet, it will be automatically allocated from the given subnet.
The interface is identified by its MAC address.
{{ip "br0:subnet-x"}}
IP address and mask for a virtual interface, "br0" in this example.
The address will be auto-allocated from the given subnet
if the address does not exist yet.
{{cidr_from_subnet “subnet-a”}}
IPv4 CIDR address from the given subnet.
{{gateway_from_subnet"subnet-a"}}
IPv4 default gateway address from the given subnet.
{{nameservers_from_subnet "subnet-a"}}
List of the IP addresses of name servers from the given subnet.
{{cluster_api_lb_ip}}
Technology Preview since MOSK 23.2.2. IP address for
a cluster API load balancer.
Use of a dedicated network for Kubernetes pods traffic,
for external connection to the Kubernetes services exposed
by the cluster, and for the Ceph cluster access and replication
traffic is available as Technology Preview. Use such
configurations for testing and evaluation purposes only.
For the Technology Preview feature definition,
refer to Technology Preview features.
The Kubernetes LCM network connects LCM Agents running on nodes to the LCM API
of the management cluster. It is also used for communication between
kubelet and Kubernetes API server inside a Kubernetes cluster.
The MKE components use this network for communication inside a swarm
cluster.
Each node of every cluster must have one and only IP address in the LCM
network that is allocated from one of the Subnet
objects having the ipam/SVC-k8s-lcm label defined. Therefore, all
Subnet objects used for LCM networks must have the ipam/SVC-k8s-lcm
label defined.
You can use any interface name for the LCM network traffic.
The Subnet objects for the LCM network must have the
ipam/SVC-k8s-lcm label. For details, see Service labels and their life cycle.
Dedicated network for the Kubernetes pods traffic¶
If you want to use a dedicated network for Kubernetes pods traffic,
configure each node with an IPv4
address that will be used to route the pods traffic between nodes.
To accomplish that, use the npTemplate.bridges.k8s-pods bridge
in the L2 template, as demonstrated in the example below.
As defined in Container Cloud Reference Architecture: Host networking,
this bridge name is reserved for the Kubernetes pods network. When the
k8s-pods bridge is defined in an L2 template, Calico CNI uses that network
for routing the pods traffic between nodes.
Dedicated network for the Kubernetes services traffic (MetalLB)¶
You can use a dedicated network for external connection to the Kubernetes
services exposed by the cluster.
If enabled, MetalLB will listen and respond on the dedicated virtual bridge.
To accomplish that, configure each node where metallb-speaker is deployed
with an IPv4 address. The default route on the MOSK nodes
that are connected to the external network must be configured with the
default gateway in the external network.
Use the npTemplate.bridges.k8s-ext bridge in the L2 template,
as demonstrated in the example below.
The Subnet object that corresponds to the k8s-ext bridge must have
explicitly excluded IP address ranges that are in use by MetalLB.
Dedicated networks for the Ceph distributed storage traffic¶
Starting from Container Cloud 2.7.0, you can configure dedicated networks
for the Ceph cluster access and replication traffic. Set labels on the
Subnet CRs for the corresponding networks, as described in
Create subnets.
Container Cloud automatically configures Ceph to use the addresses from these
subnets. Ensure that the addresses are assigned to the storage nodes.
The Subnet objects used to assign IP addresses to these networks
must have corresponding labels ipam/SVC-ceph-public for the
Ceph public (storage access) network and ipam/SVC-ceph-cluster for the
Ceph cluster (storage replication) network.
Example of an L2 template with interfaces bonding¶
Before MOSK 23.3, an L2 template requires
clusterRef:<clusterName> in the spec section. Since MOSK 23.3,
this parameter is deprecated and automatically migrated to the
cluster.sigs.k8s.io/cluster-name:<clusterName> label.
Log in to the host where your management cluster kubeconfig is
located and where kubectl is installed.
Create a new text file mosk-cluster-machines.yaml and create the
YAML definitons of the Machine resources. Use this as an example,
and see the descriptions of the fields below:
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Add the top level fields:
apiVersion
API version of the object that is cluster.k8s.io/v1alpha1.
kind
Object type that is Machine.
metadata
This section will contain the metadata of the object.
spec
This section will contain the configuration of the object.
Add mandatory fields to the metadata section of the Machine
object definition.
name
The name of the Machine object.
namespace
The name of the Project where the Machine will be created.
labels
This section contains additional metadata of the machine. Set
the following mandatory labels for the Machine object.
kaas.mirantis.com/provider
Set to "baremetal".
kaas.mirantis.com/region
Region name that matches the region name in the Cluster
object.
cluster.sigs.k8s.io/cluster-name
The name of the cluster to add the machine to.
Note
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Configure the mandatory parameters of the Machine object in
spec field. Add providerSpec field that contains parameters
for deployment on bare metal in a form of Kubernetes subresource.
In the providerSpec section, add the following mandatory configuration
parameters:
apiVersion
API version of the subresource that is baremetal.k8s.io/v1alpha1.
kind
Object type that is BareMetalMachineProviderSpec.
bareMetalHostProfile
Reference to a configuration profile of a bare metal host. It
helps to pick bare metal host with suitable configuration for
the machine. This section includes two parameters:
name
Name of a bare metal host profile
namespace
Project in which the bare metal host profile is created.
l2TemplateSelector
If specified, contains the name (first priority) or label
of the L2 template that will be applied during a machine creation.
Note that changing this field after Machine object is created
will not affect the host network configuration of the machine.
You should assign one of the templates you defined in
Create L2 templates to the machine. If there is no suitable
templates, you should create one per Create L2 templates.
hostSelector
This parameter defines matching criteria for picking a bare metal
host for the machine by label.
Any custom label that is assigned to one or more bare metal hosts
using API can be used as a host selector. If the BareMetalHost
objects with the specified label are missing, the Machine object
will not be deployed until at least one bare metal host with the
specified label is available.
This parameter contains a list of names of network interfaces of
the host. It allows to override the default naming and ordering
of network interfaces defined in L2 template referenced by
the l2TemplateSelector. This ordering informs the L2
templates how to generate the host network configuration.
Depending on the role of the machine in the MOSK cluster,
add labels to the nodeLabels field.
This field contains the list of node labels to be attached to a node for the
user to run certain components on separate cluster nodes. The list of allowed
node labels is located in the Cluster object status
providerStatus.releaseRef.current.allowedNodeLabels field.
If the value field is not defined in allowedNodeLabels, a label can
have any value. For example:
Before or after a machine deployment, add the required label from the allowed
node labels list with the corresponding value to
spec.providerSpec.value.nodeLabels in machine.yaml. For example:
nodeLabels:-key:stacklightvalue:enabled
Adding of a node label that is not available in the list of allowed node
labels is restricted.
If you are NOT deploying MOSK with the compact
control plane, add 3 dedicated Kubernetes manager nodes.
Add 3 Machine objects for Kubernetes manager nodes using
the following label:
If you are deploying MOSK with compact control plane,
add Machine objects for 3 combined control plane nodes using the
following labels and parameters to the nodeLabels field:
To install MOSK on bare metal with Container Cloud,
you must create L2 templates for each node type in the MOSK
cluster. Additionally, you may have to create separate templates for nodes
of the same type when they have different configuration.
To assign specific L2 templates to machines in a cluster:
Select from the following options to assign the templates to the cluster:
Since MOSK 23.3, use the
cluster.sigs.k8s.io/cluster-name label in the labels section.
Before MOSK 23.3, use the clusterRef parameter in
the spec section.
Add a unique identifier label to every L2 template.
Typically, that would be the name of the MOSK node role,
for example l2template-compute, or l2template-compute-5nics.
Assign an L2 template to a machine. Set the l2TemplateSelector
field in the machine spec to the name of the label added in the previous
step. IPAM Controller uses this field to use a specific L2 template
for the corresponding machine.
Alternatively, you may set the l2TemplateSelector field to
the name of the L2 template.
Consider the following examples of an L2 template assignment to a machine.
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Note
Before MOSK 23.3, an L2 template requires
clusterRef:<clusterName> in the spec section. Since MOSK 23.3,
this parameter is deprecated and automatically migrated to the
cluster.sigs.k8s.io/cluster-name:<clusterName> label.
Example of a Machine resource with the label-based L2 template selector¶
Machine in a MOSK cluster requires dedicated bare metal
host for deployment. The bare metal hosts are represented by the
BareMetalHost objects in MCC management API. All BareMetalHost
objects must be labeled upon creation with a label that will allow to
identify the host and assign it to a machine.
The labels may be unique, or applied to a group of hosts, based on
similarities in their capacity, capabilities and hardware configuration,
on their location, suitable role, or a combination of thereof.
In some cases, you may need to deploy a machine to a specific
bare metal host. This is especially useful when some of your bare metal
hosts have different hardware configuration than the rest.
To deploy a machine to a specific bare metal host:
Log in to the host where your management cluster kubeconfig is located
and where kubectl is installed.
Identify the bare metal host that you want to associate with the specific
machine. For example, host host-1.
kubectlgetbaremetalhosthost-1-oyaml
Add a label that will uniquely identify this host, for example, by the
name of the host and machine that you want to deploy on it.
Caution
Do not remove any existing labels from the BareMetalHost resource.
An L2 template contains the ifMapping field that allows you to
identify Ethernet interfaces for the template. The Machine object
API enables the Operator to override the mapping from the L2 template
by enforcing a specific order of names of the interfaces when applied
to the template.
The field l2TemplateIfMappingOverride in the spec of the Machine
object contains a list of interfaces names. The order of the interfaces
names in the list is important because the L2Template object will
be rendered with NICs ordered as per this list.
Note
Changes in the l2TemplateIfMappingOverride field will apply
only once when the Machine and corresponding IpamHost objects
are created. Further changes to l2TemplateIfMappingOverride
will not reset the interfaces assignment and configuration.
Caution
The l2TemplateIfMappingOverride field must contain the names of
all interfaces of the bare metal host.
The following example illustrates how to include the override field to the
Machine object. In this example, we configure the interface eno1,
which is the second on-board interface of the server, to precede the first
on-board interface eno0.
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
As a result of the configuration above, when used with the example
L2 template for bonds and bridges described in Create L2 templates,
the enp0s1 and enp0s2 interfaces will be in predictable
ordered state. This state will be used to create subinterfaces for
Kubernetes networks (k8s-pods) and for Kubernetes external
network (k8s-ext).
The procedure below enables you to create a Ceph cluster with minimum three
Ceph nodes that provides persistent volumes to the Kubernetes workloads
in the managed cluster.
Substitute <managedClusterProject> and <clusterName> with
the corresponding managed cluster namespace and name.
Example of system response:
status:providerStatus:ready:trueconditions:-message:Helm charts are successfully installed(upgraded).ready:truetype:Helm-message:Kubernetes objects are fully up.ready:truetype:Kubernetes-message:All requested nodes are ready.ready:truetype:Nodes-message:Maintenance state of the cluster is falseready:truetype:Maintenance-message:TLS configuration settings are appliedready:truetype:TLS-message:Kubelet is Ready on all nodes belonging to the clusterready:truetype:Kubelet-message:Swarm is Ready on all nodes belonging to the clusterready:truetype:Swarm-message:All provider instances of the cluster are Readyready:truetype:ProviderInstance-message:LCM agents have the latest versionready:truetype:LCMAgent-message:StackLight is fully up.ready:truetype:StackLight-message:OIDC configuration has been applied.ready:truetype:OIDC-message:Load balancer 10.100.91.150 for kubernetes API has status HEALTHYready:truetype:LoadBalancer
Create a YAML file with the Ceph cluster specification:
Substitute the following values that should match the corresponding values
of the cluster Subnet object:
<publicNet> is a CIDR definition or comma-separated list of
CIDR definitions (if the managed cluster uses multiple networks) of
public network for the Ceph data.
<clusterNet> is a CIDR definition or comma-separated list of
CIDR definitions (if the managed cluster uses multiple networks) of
replication network for the Ceph data.
Configure Ceph Manager and Ceph Monitor roles to select nodes that must
place Ceph Monitor and Ceph Manager daemons:
Obtain the names of machines to place Ceph Monitor and Ceph Manager
daemons at:
kubectl-n<managedClusterProject>getmachine
Add the nodes section with mon and mgr roles defined:
Substitute <mgr-node-X> with the corresponding Machine object
names and <role-X> with the corresponding roles of daemon placement,
for example, mon or mgr.
Configure Ceph OSD daemons for Ceph cluster data storage:
Note
This step involves the deployment of Ceph Monitor and Ceph Manager
daemons on nodes that are different from the ones hosting Ceph cluster
OSDs. However, you can also colocate Ceph OSDs, Ceph Monitor, and
Ceph Manager daemons on the same nodes by configuring the roles and
storageDevices sections accordingly. This kind of configuration
flexibility is particularly useful in scenarios such as hyper-converged
clusters.
Warning
The minimal production cluster requires at least three nodes
for Ceph Monitor daemons and three nodes for Ceph OSDs.
Obtain the names of machines with disks intended for storing Ceph data:
kubectl-n<managedClusterProject>getmachine
For each machine, use status.providerStatus.hardware.storage
to obtain information about node disks:
Select by-id symlinks on the disks to be used in the Ceph cluster.
The symlinks must meet the following requirements:
A by-id symlink must contain
status.providerStatus.hardware.storage.serialNumber
A by-id symlink must not contain wwn
For the example above, to use the sdc disk to store Ceph data on it,
select the /dev/disk/by-id/scsi-SQEMU_QEMU_HARDDISK_2e52abb48862dbdc
symlink. It is persistent and will not be affected by node reboot.
Specify the selected by-id symlinks in the
spec.cephClusterSpec.nodes.storageDevices.fullPath field
along with the
spec.cephClusterSpec.nodes.storageDevices.config.deviceClass
field:
Each Ceph pool, depending on its role, has the default targetSizeRatio
value that defines the expected consumption of the total Ceph cluster
capacity. The default ratio values for MOSK pools are
as follows:
20.0% for a Ceph pool with the role volumes
40.0% for a Ceph pool with the role vms
10.0% for a Ceph pool with the role images
10.0% for a Ceph pool with the role backup
Once all pools are created, verify that an appropriate secret required for
a successful deployment of the OpenStack services that rely on Ceph is
created in the openstack-ceph-shared namespace:
Mirantis highly recommends adding a Ceph cluster using the CLI
instead of the web UI.
The web UI capabilities for adding a Ceph cluster are limited and lack
flexibility in defining Ceph cluster specifications.
For example, if an error occurs while adding a Ceph cluster using the
web UI, usually you can address it only through the CLI.
The web UI functionality for managing Ceph cluster is going to be
deprecated in one of the following releases.
Log in to the Container Cloud web UI with the
m:kaas:namespace@operator or m:kaas:namespace@writer permissions.
Switch to the required project using the Switch Project
action icon located on top of the main left-side navigation panel.
In the Clusters tab, click the required cluster name.
The Cluster page with the Machines and
Ceph clusters lists opens.
In the Ceph Clusters block, click Create Cluster.
Configure the Ceph cluster in the Create New Ceph Cluster
wizard that opens:
Replication network for Ceph OSDs. Must contain the CIDR definition
and match the corresponding values of the cluster L2Template
object or the environment network values.
Public Network
Public network for Ceph data. Must contain the CIDR definition and
match the corresponding values of the cluster L2Template object
or the environment network values.
Enable OSDs LCM
Select to enable LCM for Ceph OSDs.
Machines / Machine #1-3
Select machine
Select the name of the Kubernetes machine that will host
the corresponding Ceph node in the Ceph cluster.
Manager, Monitor
Select the required Ceph services to install on the Ceph node.
Devices
Select the disk that Ceph will use.
Warning
Do not select the device for system services,
for example, sda.
Warning
A Ceph cluster does not support removable devices that are
hosts with hotplug functionality enabled. To use devices as Ceph OSD
data devices, make them non-removable or disable the hotplug
functionality in the BIOS settings for disks that are configured
to be used as Ceph OSD data devices.
Enable Object Storage
Select to enable the single-instance RGW Object Storage.
To add more Ceph nodes to the new Ceph cluster, click +
next to any Ceph Machine title in the Machines tab.
Configure a Ceph node as required.
Warning
Do not add more than 3 Manager and/or Monitor
services to the Ceph cluster.
After you add and configure all nodes in your Ceph cluster, click
Create.
Each Ceph pool, depending on its role, has a default targetSizeRatio
value that defines the expected consumption of the total Ceph cluster
capacity. The default ratio values for MOSK pools are
as follows:
20.0% for a Ceph pool with role volumes
40.0% for a Ceph pool with role vms
10.0% for a Ceph pool with role images
10.0% for a Ceph pool with role backup
Once all pools are created, verify that an appropriate secret required for
a successful deployment of the OpenStack services that rely on Ceph is
created in the openstack-ceph-shared namespace:
Due to a development limitation in baremetaloperator,
deletion of a managed cluster requires preliminary deletion
of the worker machines running on the cluster.
Using the Container Cloud web UI, first delete worker
machines one by one until you hit the minimum of 2 workers
for an operational cluster. After that, you can delete the cluster
with the remaining workers and managers.
To delete a baremetal-based managed cluster:
Log in to the Mirantis Container Cloud web UI
with the writer permissions.
Switch to the required project using the Switch Project
action icon located on top of the main left-side navigation panel.
In the Clusters tab, click the required cluster name
to open the list of machines running on it.
Click the More action icon in the last column of the
worker machine you want to delete and select Delete.
Confirm the deletion.
Repeat the step above until you have 2 workers left.
In the Clusters tab, click the More action icon
in the last column of the required cluster and select Delete.
Verify the list of machines to be removed. Confirm the deletion.
Optional. If you do not plan to reuse the credentials
of the deleted cluster, delete them:
In the Credentials tab, click the
Delete credential action icon next to the name
of the credentials to be deleted.
Confirm the deletion.
Warning
You can delete credentials only after deleting
the managed cluster they relate to.
Deleting a cluster automatically frees up the resources allocated
for this cluster, for example, instances, load balancers, networks,
floating IPs, and so on.
This section instructs you on how to deploy OpenStack on top of Kubernetes
as well as how to troubleshoot the deployment and access your OpenStack
environment after deployment.
This section instructs you on how to deploy OpenStack on top of Kubernetes
using the OpenStack Controller and openstackdeployments.lcm.mirantis.com
(OsDpl) CR.
To deploy an OpenStack cluster:
Verify that you have pre-configured the networking according to
Networking.
Verify that the TLS certificates that will be required for the OpenStack
cluster deployment have been pre-generated.
Note
The Transport Layer Security (TLS) protocol is mandatory on public
endpoints.
Caution
To avoid certificates renewal with subsequent OpenStack
updates during which additional services with new public endpoints may
appear, we recommend using wildcard SSL certificates for public
endpoints. For example, *.it.just.works, where it.just.works is
a cluster public domain.
The sample code block below illustrates how to generate a self-signed
certificate for the it.just.works domain. The procedure presumes
the cfssl and cfssljson tools are installed on the
machine.
Create the openstackdeployment.yaml file that will include the
OpenStack cluster deployment configuration. For the configuration details,
refer to OpenStack configuration and API Reference.
Note
The resource of kind OpenStackDeployment (OsDpl) is a custom
resource defined by a resource of kind
CustomResourceDefinition. The resource is validated with
the help of the OpenAPI v3 schema.
Configure the OsDpl resource depending on the needs of your deployment.
For the configuration details, refer to OpenStack configuration.
Example of an OpenStackDeployment CR of minimum configuration¶
To the openstackdeployment object, add information about the TLS
certificates:
ssl:public_endpoints:ca_cert - CA certificate content (ca.pem)
ssl:public_endpoints:api_cert - server certificate content
(server.pem)
ssl:public_endpoints:api_key - server private key (server-key.pem)
Verify that the Load Balancer network does not overlap your corporate
or internal Kubernetes networks, for example, Calico IP pools. Also,
verify that the pool of Load Balancer network is big enough to provide
IP addresses for all Amphora VMs (loadbalancers).
If required, reconfigure the Octavia network settings using the
following sample structure:
If you are using the default backend to store OpenStack database backups,
which is Ceph, you may want to increase the default size of the allocated
storage since there is no automatic way to resize the backup volume once
the cloud is deployed.
This section includes configuration information for available advanced
Mirantis OpenStack for Kubernetes features that include DPDK with the Neutron
OVS backend, huge pages, CPU pinning, and other Enhanced Platform Awareness
(EPA) capabilities.
This section instructs you on how to configure LVM as backend for the VM disks
and ephemeral storage.
You can use flexible size units throughout bare metal host profiles.
For example, you can now use either sizeGiB:0.1 or size:100Mi
when specifying a device size.
Mirantis recommends using only one parameter name type and units throughout
the configuration files. If both sizeGiB and size are used,
sizeGiB is ignored during deployment and the suffix is adjusted
accordingly. For example, 1.5Gi will be serialized as 1536Mi. The size
without units is counted in bytes. For example, size:120 means 120 bytes.
Warning
All data will be wiped during cluster deployment on devices
defined directly or indirectly in the fileSystems list of
BareMetalHostProfile. For example:
A raw device partition with a file system on it
A device partition in a volume group with a logical volume that has a
file system on it
An mdadm RAID device with a file system on it
An LVM RAID device with a file system on it
The wipe field is always considered true for these devices.
The false value is ignored.
Therefore, to prevent data loss, move the necessary data from these file
systems to another server beforehand, if required.
Warning
Usage of more than one nonvolatile memory express (NVMe) drive per
node may cause update issues and is therefore not supported.
To enable LVM ephemeral storage:
In BareMetalHostProfile in the spec:volumeGroups section, add
the following configuration for the OpenStack compute nodes:
Due to a limitation, it is not possible to create volume groups
without logical volumes and formatted partitions. Therefore, set the
logicalVolumes:name, fileSystems:logicalVolume, and
fileSystems:mountPoint parameters to nova-fake.
This section instructs you on how to configure LVM as a backend for the
OpenStack Block Storage service.
You can use flexible size units throughout bare metal host profiles.
For example, you can now use either sizeGiB:0.1 or size:100Mi
when specifying a device size.
Mirantis recommends using only one parameter name type and units throughout
the configuration files. If both sizeGiB and size are used,
sizeGiB is ignored during deployment and the suffix is adjusted
accordingly. For example, 1.5Gi will be serialized as 1536Mi. The size
without units is counted in bytes. For example, size:120 means 120 bytes.
Warning
All data will be wiped during cluster deployment on devices
defined directly or indirectly in the fileSystems list of
BareMetalHostProfile. For example:
A raw device partition with a file system on it
A device partition in a volume group with a logical volume that has a
file system on it
An mdadm RAID device with a file system on it
An LVM RAID device with a file system on it
The wipe field is always considered true for these devices.
The false value is ignored.
Therefore, to prevent data loss, move the necessary data from these file
systems to another server beforehand, if required.
To enable LVM block storage:
Open BareMetalHostProfile for editing.
In the spec:volumeGroups section, specify the following data
for the OpenStack compute nodes. In the following example, we deploy
a Cinder volume with LVM on compute nodes.
However, you can use dedicated nodes for this purpose.
Since MOSK 23.1, the open-iscsi
package does not install by default on bare metal hosts. Install
it manually during cluster deployment in BareMetalHostProfile
in the spec:postDeployScript section:
This section instructs you on how to enable DPDK with the Neutron OVS back
end.
Warning
Usage of third-party software, which is not part of
Mirantis-supported configurations, for example, the use of custom DPDK
modules, may block upgrade of an operating system distribution. Users are
fully responsible for ensuring the compatibility of such custom components
with the latest supported Ubuntu version.
To enable DPDK with OVS:
Verify that your deployment meets the following requirements:
The required drivers have been installed on the host operating system.
This section instructs you on how to enable SR-IOV with the Neutron OVS back
end.
To enable SR-IOV with OVS:
Verify that your deployment meets the following requirements:
NICs with the SR-IOV support are installed
SR-IOV and VT-d are enabled in BIOS
Enable IOMMU in the kernel by configuring intel_iommu=on in the GRUB
configuration file. Specify the parameter for compute nodes in
BareMetalHostProfile in the grubConfig section:
The BGP VPN service is an extra OpenStack Neutron plugin that enables
connection of OpenStack Virtual Private Networks with external VPN
sites through either BGP/MPLS IP VPNs or E-VPN.
To enable the BGP VPN service:
Enable BGP VPN in the OsDpl custom resource through the
nodespecificoverrides settings. For example:
spec:features:neutron:bgpvpn:enabled:trueroute_reflector:# Enable deploygin FRR route reflectorenabled:true# Local AS numberas_number:64512# List of subnets we allow to connect to# router reflector BGPneighbor_subnets:-10.0.0.0/8-172.16.0.0/16nodes:openstack-compute-node::enabled:features:neutron:bgpvpn:enabled:true
When the service is enabled, a route reflector is scheduled on nodes with
the openstack-frrouting:enabled label. Mirantis recommends collocating
the route reflector nodes with the OpenStack controller nodes. By default, two
replicas are deployed.
MOSK allows configuring Internet Protocol Security
(IPSec) encryption for the east-west tenant traffic between the OpenStack
compute nodes and gateways. The feature uses the
strongSwan open source IPSec solution.
Authentication is accomplished through a pre-shared key (PSK). However, other
authentication methods are upcoming.
To encrypt the east-west tenant traffic, enable ipsec in the
spec:features:neutron settings of the OpenStackDeployment CR:
spec:features:neutron:ipsec:enabled:true
Caution
Enabling IPSec adds extra headers to the tenant traffic. The
header size varies depending on IPSec configuration.
This section instructs you on how to configure Cinder backend for the
for images through the OpenStackDeployment CR.
Note
This feature depends heavily on Cinder multi-attach, which
enables you to simultaneously attach volumes to multiple instances.
Therefore, only the block storage backends that support multi-attach
can be used.
To configure a Cinder backend for Glance, define the backend identity
in the OpenStackDeployment CR. This identity will be used as a name for
the backend section in the Glance configuration file.
When defining the backend:
Configure one of the backends as default.
Configure each backend to use specific Cinder volume type.
Note
You can use the volume_type parameter instead of
backend_name. If so, you have to create this volume type beforehand
and take into account that the bootstrap script does not manage such
volume types.
The blockstore identity definition example:
spec:features:glance:backends:cinder:blockstore:default:truebackend_name:<volume_type:volume_name># e.g. backend_name: lvm:lvm_storespec:features:glance:backends:cinder:blockstore:default:truevolume_type:netapp
This section instructs you on how to enable Cinder volume encryption
through the OpenStackDeployment CR using Linux Unified Key Setup (LUKS)
and store the encryption keys in Barbican. For details, see
Volume encryption.
To enable Cinder volume encryption:
In the OpenStackDeployment CR, specify the LUKS volume type and
configure the required encryption parameters for the storage system to
encrypt or decrypt the volume.
To create an encrypted volume as a non-admin user and store keys in the
Barbican storage, assign the creator role to the user since the default
Barbican policy allows only the admin or creator role:
The section describes how to perform advanced configuration for the OpenStack
compute nodes. Such configuration can be required in some specific use cases,
such as DPDK, SR-IOV, or huge pages features usage.
Configuration recommendations for compute node types¶
This section contains recommendations for configuration of an
OpenStackDeployment custom resource for the compute nodes
of the following types:
Compute nodes with the default configuration, without local NVMe storage and
SR-IOV network interface cards (NICs)
Compute nodes with the NVMe local storage
Compute nodes with the SR-IOV NICs
Compute nodes with both the NVMe local storage and SR-IOV NICs
Note
If the local NVMe storage is enabled, Mirantis recommends using it
and enable SR-IOV if possible.
Caution
Before using the NVMe local storage and mount point, define them
in BareMetalHostProfile. For example:
apiVersion:metal3.io/v1alpha1kind:BareMetalHostProfile...spec:devices:...-device:byName:/dev/nvme0n1minSizeGiB:30wipe:truepartitions:-name:local-volumes-partitionsizeGiB:0wipe:true...fileSystems:...-fileSystem:ext4partition:local-volumes-partition# mountpoint for Nova imagesmountPoint:/var/lib/nova
Caution
To control the storage type (local NVMe or Ceph) for virtual
machines, place a node into the OpenStack aggregate. For details, see
OpenStack documentation: Host aggregates.
As defined in Node-specific configuration, each node with a non-default configuration
must be configured separately. Each Machine object must have a
configuration-specific label. For example, for a compute node with the local
NVMe storage:
In the examples above, compute-sriov, compute-nvme-sriov, and
compute-nvme are human-readable string identifiers. You can use any unique
string value for each type of compute node.
In the OpenStackDeployment object of each node group, define its own
section that starts with <NODE-LABEL>::<NODE-LABEL-VALUE>::
Mirantis OpenStack for Kubernetes (MOSK) enables you to configure the
vCPU model for all instances managed by the OpenStack Compute service (Nova)
using the following osdpl definition:
spec:features:nova:vcpu_type:host-model
For the supported values and configuration examples, see Virtual CPU.
The instruction provided in this section applies to both
OpenStack with OVS and OpenStack with Tungsten Fabric topologies.
The huge pages OpenStack feature provides essential performance improvements
for applications that are highly memory IO-bound. Huge pages should be enabled
on a per compute node basis. By default, NUMATopologyFilter is enabled.
To activate the feature, you need to enable huge pages on the dedicated
bare metal host as described in Enable huge pages in a host profile during
the predeployment bare metal configuration.
Note
The multi-size huge pages are not fully supported by Kubernetes
versions before 1.19. Therefore, define only one size in kernel parameters.
CPU isolation is a way to force the system scheduler to use only some logical
CPU cores for processes. For compute hosts, you should typically isolate system
processes and virtual guests on different cores through the cpusets
mechanism in Linux kernel.
The Linux kernel and cpuset provide a mechanism to run tasks by limiting the
resources defined by a cpuset. The tasks can be moved from one cpuset to
another to use the resources defined in other cpusets. The cset Python tool
is a command-line interface to work with cpusets.
To configure CPU isolation using cpusets:
Configure core isolation:
Note
You can also automate this step during deployment by using the
postDeploy script as described in Create MOSK host profiles.
cat<<-"EOF">/usr/bin/setup-cgroups.sh
#!/bin/bashset-x
UNSHIELDED_CPUS=${UNSHIELDED_CPUS:-"0-3"}UNSHIELDED_MEM_NUMAS=${UNSHIELDED_MEM_NUMAS:-0}SHIELD_CPUS=${SHIELD_CPUS:-"4-15"}SHIELD_MODE=${SHIELD_MODE:-"cpuset"}# One of isolcpu or cpusetDOCKER_CPUS=${DOCKER_CPUS:-$UNSHIELDED_CPUS}DOCKER_MEM_NUMAS=${DOCKER_MEM_NUMAS:-$UNSHIELDED_MEM_NUMAS}KUBERNETES_CPUS=${KUBERNETES_CPUS:-$UNSHIELDED_CPUS}KUBERNETES_MEM_NUMAS=${KUBERNETES_MEM_NUMAS:-$UNSHIELDED_MEM_NUMAS}CSET_CMD=${CSET_CMD:-"python3 /usr/bin/cset"}if[[${SHIELD_MODE}=="cpuset"]];then${CSET_CMD}set-c${UNSHIELDED_CPUS}-m${UNSHIELDED_MEM_NUMAS}-ssystem
${CSET_CMD}proc-m-froot-tsystem
${CSET_CMD}proc-k-froot-tsystem
fi${CSET_CMD}set--cpu=${DOCKER_CPUS}--mem=${DOCKER_MEM_NUMAS}--set=docker
${CSET_CMD}set--cpu=${KUBERNETES_CPUS}--mem=${KUBERNETES_MEM_NUMAS}--set=kubepods
${CSET_CMD}set--cpu=${DOCKER_CPUS}--mem=${DOCKER_MEM_NUMAS}--set=com.docker.ucp
EOF
chmod+x/usr/bin/setup-cgroups.sh
cat<<-"EOF">/etc/systemd/system/shield-cpus.service
[Unit]Description=ShieldCPUs
DefaultDependencies=no
After=systemd-udev-settle.service
Before=lvm2-activation-early.service
Wants=systemd-udev-settle.service
[Service]ExecStart=/usr/bin/setup-cgroups.sh
RemainAfterExit=trueType=oneshot
Restart=on-failure#Service should restart on failureRestartSec=5s#Restart each five seconds until success[Install]WantedBy=basic.target
EOF
systemctlenableshield-cpus
reboot
As root user, verify that isolation has been applied:
The majority of CPU topologies features are activated by NUMATopologyFilter
that is enabled by default. Such features do not require any further service
configuration and can be used directly on a vanilla MOSK
deployment. The list of the CPU topologies features includes, for example:
NUMA placement policies
CPU pinning policies
CPU thread pinning policies
CPU topologies
To enable libvirt CPU pinning through the node-specific overrides in the
OpenStackDeployment custom resource, use the following sample
configuration structure:
The Peripheral Component Interconnect (PCI) passthrough feature in OpenStack
allows full access and direct control over physical PCI devices in guests.
The mechanism applies to any kind of PCI devices including a Network
Interface Card (NIC), Graphics Processing Unit (GPU), and any other device
that can be attached to a PCI bus. The only requirement for the guest
to properly use the device is to correctly install the driver.
To enable PCI passthrough in a MOSK deployment:
For Linux X86 compute nodes, verify that the following
features are enabled on the host:
Configure the nova-api service that is scheduled
on OpenStack controllers nodes. To generate the alias for PCI
in nova.conf, add the alias configuration through the
OpenStackDeployment CR.
Note
When configuring PCI with SR-IOV on the same host, the values
specified in alias take precedence. Therefore, add the SR-IOV
devices to passthrough_whitelist explicitly.
Configure the nova-compute service that is scheduled
on OpenStack compute nodes. To enable Nova to pass PCI devices
to virtual machines, configure the passthrough_whitelist
section in nova.conf through the node-specific overrides in the
OpenStackDeployment CR. For example:
MOSK enables you to configure initial oversubscription
through the OpenStackDeployment custom resource. For configuration details
and oversubscription considerations, refer to
Configuring initial resource oversubscription.
By default, the following values are applied:
8.0 for the number of CPUs
1.6 for the disk space
1.0 for the amount of RAM
Note
In MOSK 22.5 and earlier, the effective default
value of RAM allocation ratio is 1.1.
Changing oversubscription configuration after deployment will only affect the
newly added compute nodes and will not change oversubscription for already
existing compute nodes. You can change oversubscription for existing compute
nodes through the placement API as described in Change oversubscription settings for existing compute nodes.
Hyperconverged architecture combines OpenStack compute nodes along with Ceph
nodes. To avoid nodes overloading, which can cause Ceph performance degradation
and outage, limit the hardware resources consumption by the OpenStack compute
services.
cpu_allocation_ratio - in case of a hyperconverged architecture, the
value depends on the number of vCPU used for non-workload related operations,
total number of vCPUs of a hyperconverged node, and on workload vCPU
consumption:
In this case, if there are 40 vCPUs per hyperconverged node, 28 vCPUs are
required for non-workload related calculations, and a workload consumes 50%
of the allocated CPU time:
cpu_allocation_ratio=(40-28)/40/0.5=0.6.
reserved_host_memory_mb - a dedicated variable in the OpenStack Nova
configuration, to reserve memory for non-OpenStack related VM activities:
For example for 10 Ceph OSDs per hyperconverged node:
reserved_host_memory_mb=13GB*10=130GB=133120
ram_allocation_ratio - the allocation ratio of virtual RAM to physical
RAM. To completely exclude the possibility of memory overcommitting, set to
1.
To limit HW resources for hyperconverged OpenStack compute nodes:
In the OpenStackDeployment CR, specify the cpu_allocation_ratio,
ram_allocation_ratio, and reserved_host_memory_mb parameters as
required using the calculations described above.
This section delves into virtual GPU configuration. It is specifically
tailored for NVIDIA physical GPUs, with a focus on the A100 40GB GPU and NVIDIA
AIE 4.1 drivers.
While setup procedures may vary among different cards and vendors,
MOSK can generally ensure compatibility between the
MOSK Compute service (Nova) and vGPU functionality,
as long as the drivers for the physical GPU expose an VFIO mdev-compatible
interface to the Linux host.
For configuration specifics of other physical GPUs, refer to the official
documentation provided by the vendor.
To install the acquired drivers within your cluster, add a custom
postDeployScript script to the custom BareMetalHostProfile object
used for the compute nodes with GPUs.
Virtual GPU types are similar to compute flavors as they determine the
resources allocated to each virtual GPU. This allows for efficient allocation
and optimization of GPU resources in virtualized environments.
Each physical GPU has a maximum number of virtual GPUs of a specific type that
can be created on it, with no possibility for overallocation. In the
time-sliced vGPU configuration, each particular physical GPU can only
instantiate vGPUs of the same selected type. In the Multi-Instance GPU (MIG),
a single physical GPU may be partitioned into several differently sized
virtual GPUs.
Either way, prior to accepting workloads, Mirantis recommends determining the
virtual GPU types that each of your physical GPU will provide. Altering
these settings afterward necessitates terminating every virtual machine
currently running on the physical GPU intended for reconfiguration or
repurposing for another virtual GPU type.
This section outlines the process for partitioning physical GPUs into
Multi-Instance GPUs (MIG) using the nvidia-smi tool provided
by the NVIDIA Host GPU driver.
To create seven, which is a maximum possible amount of instances according to
the system response above, MIG vGPUs of the smallest size:
nvidia-smimig-cgi19,19,19,19,19,19,19
To create three differently sized vGPUs of 4g.20gb, 2g.10gb, and
1g.5gb sizes:
nvidia-smimig-cgi5,14,19
Caution
Keep in mind that not all combinations of differently sized vGPU
instances are supported. Additionally, the order in which you create vGPUs
is important.
To determine the mdev class supported by a specific virtual GPU type
listed by a PCI device address, verify the output of the
mdevctl types command executed on the compute node that has a
physical GPU available on it:
The Name field from the example system output above corresponds to the
supported virtual GPU type, linking the GPU instance profile with the mdev class
supported by your physical GPU.
In the example above, the MIG1g.5gb GPU instance profile corresponds
to the GRIDA100-1-5C vGPU type as per NVIDIA documentation, and according
to the mdevctl types` output, it corresponds to the nvidia-474
mdev class.
Note
Notice that Availableinstances is zero for vGPU types that are
not actually supported by this given card and configuration. For MIGs,
the Availableinstances will be non-zero only for the virtual GPU types
for which the MIG virtual GPU instances have already been created. See
Partition to Multi-Instance GPUs.
The parameters you need to define for the nova-compute service on each
compute node with physical GPUs you want to expose as virtual GPUs include:
[devices]enabled_mdev_types
Required. List of the mdev classes, see the previous step for details.
[devices]cleanup_mdev_devices
Optional. By default, the Compute service does not delete created mdev
devices but reuses them instead. While this speeds up processes, it may
pose challenges when reconfiguring the enabled_mdev_types parameter.
Set cleanup_mdev_devices to True for the Compute service to
auto-delete created mdev devices upon instance deletion.
If you plan to use only time-sliced vGPUs and provide a single virtal GPU type
across the entire cloud, you only need to configure the options mentioned
above once globally for all compute nodes through the spec.services section
of the OpenStackDeployment custom resource.
With the configuration below, the Compute service will auto-detect all PCI
devices that provide this mdev type and automatically create required resource
providers in the placement service with the resource class VGPU.
Example configuration for the nvidia-474 mdev type:
If you plan to provide multiple time-sliced vGPU types, simplify the
configuration by grouping the nodes based on a node label (not necessarily
aggregates). Ensure that each group exposes only one mdev type using the
Node-specific configuration settings. Additionally, use custom resource classes to
facilitate flavor creation, ensuring consistent use of the CUSTOM_ prefix
for custom mdev_class.
For example, if you want to provide the nvidia-474 and nvidia-475 mdev
types, label your nodes with the vgpu-type=nvidia-474 and
vgpu-type=nvidia-475 labels and use the following node-specific settings:
The configuration above creates corresponding resource providers in the
placement service that provide CUSTOM_VGPU_A100_1_5C or
CUSTOM_VGPU_A100_2_10C resources.
You can use these resources during the definition of flavors for instances
with corresponding vGPU types.
In some cases, you may need to provide different vGPU types from a single
compute node, for example, if the compute node has 2 physical GPUs and
you want to create two different types of vGPU on them. For such scenarios,
you should provide explicit PCI device addresses of these physical GPUs in
the settings. This makes such configuration verbose in heterogeneous hardware
environments where physical GPUs have different PCI addresses on each node.
For example, when targeting node-specific settings by node name:
In the SR-IOV mode, the driver typically creates more virtual functions than
the maximum capacity of the physical GPU, even for the smallest virtual GPU
type. Each virtual function can hold only one single virtual GPU. This leads
to resource over-reporting to the placement service.
Therefore, to ensure efficient resource allocation and utilization within a
homogeneous hardware environment, assuming that each compute node in it has
the same PCI address for the physical GPU and the physical GPU has been
partitioned to the MIG GPU instances identically:
Identify the number of instances created of each MIG profile.
Select random but not overlapping sets of PCI addresses from the list of
virtual functions of the physical GPU. The amount of addresses in each set
must correspond to the number of instances created of each MIG profile.
Assign the mdev type to the selected devices.
For example, for the environment with the following configuration:
3 MIG instances of MIG1.5gb and 2 MIG instances of MIG2.10gb
16 virtual functions created for the physical GPU with the PCI address range
from 0000:42:00.0 to 0000:42:01.7
Pick 3 and 2 random PCI addresses from that pool and assign them to
CUSTOM_VGPU_A100_1_5C and CUSTOM_VGPU_A100_2_10C mdev classes
respectively:
In a heterogeneous hardware environment, use node-specific settings to group
nodes with the same PCI addresses and intended vGPU configuration, or use
explicit setting for each node targeting node-specific settings to every
node, sequentially if needed.
This section provides guidelines for verifying that virtual GPUs are correctly
accounted for in the OpenStack Placement service, ensuring proper scheduling
of instances that utilize virtual GPUs.
Firstly, verify that resource providers have been created with accurate
inventories. For each PCI device associated with a virtual GPU, including
virtual instances in the case of MIG/SR-IOV, there should be a nested resource
provider under the resource provider of the corresponding compute node.
The name of this nested resource provider should follow the format
<node-name>_pci_<pci-address-with-underscores>:
Also, examine the inventory of each resource provider. It should exclusively
consist of the VGPU resource or any custom resource name configured in
the Compute service settings. The total capacity of the resource should match
the capacity reported by the mdevctl types output, reflecting the
capabilities of the PCI device for the specified mdev class. In the case
of MIG, this total capacity will always be 1.
This section provides instructions for creating a flavor that requests
a specific virtual GPU resource, using the mdev classes configured in the
Compute service and registered in the placement service.
To create the flavor, use the openstack flavor create command.
Ensure that the flavor properties match the configured mdev classes in the
Compute service. For example, to request one vGPU of type nvidia-474 using
the resource class from the previous examples:
Mirantis OpenStack for Kubernetes (MOSK) enables you to perform image
signature verification when booting an OpenStack instance, uploading
a Glance image with signature metadata fields set, and creating a volume
from an image.
To enable signature verification, use the following osdpl definition:
spec:features:glance:signature:enabled:true
When enabled during initial deployment, all internal images such as
Amphora, Ironic, and test (CirrOS, Fedora, Ubuntu) images, will be signed by
a self-signed certificate.
Mirantis OpenStack for Kubernetes (MOSK) allows configuring
LoadBalancer for the Designate PowerDNS backend. For example, you can expose a
TCP port for zone transferring using the following exemplary osdpl
definition:
DNS is a mandatory component for MOSK deployment, all
records must be created on the customer DNS server. The OpenStack services
are exposed through the Ingress NGINX controller.
Warning
This document describes how to temporarily configure DNS.
The workflow contains non-permanent changes that will be rolled back
during a managed cluster update or reconciliation loop.
Therefore, proceed at your own risk.
To configure DNS to access your OpenStack environment:
Obtain the external IP address of the Ingress service:
Deploy a standalone CoreDNS server by including the following
configuration into coredns.yaml:
apiVersion:lcm.mirantis.com/v1alpha1kind:HelmBundlemetadata:name:corednsnamespace:osh-systemspec:repositories:-name:hub_stableurl:https://charts.helm.sh/stablereleases:-name:corednschart:hub_stable/corednsversion:1.8.1namespace:corednsvalues:image:repository:mirantis.azurecr.io/openstack/extra/corednstag:"1.6.9"isClusterService:falseservers:-zones:-zone:.scheme:dns://use_tcp:falseport:53plugins:-name:cacheparameters:30-name:errors# Serves a /health endpoint on :8080, required for livenessProbe-name:health# Serves a /ready endpoint on :8181, required for readinessProbe-name:ready# Required to query kubernetes API for data-name:kubernetesparameters:cluster.local-name:loadbalanceparameters:round_robin# Serves a /metrics endpoint on :9153, required for serviceMonitor-name:prometheusparameters:0.0.0.0:9153-name:forwardparameters:. /etc/resolv.conf-name:fileparameters:/etc/coredns/it.just.works.db it.just.worksserviceType:LoadBalancerzoneFiles:-filename:it.just.works.dbdomain:it.just.workscontents:|it.just.works. IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600it.just.works. IN NS b.iana-servers.net.it.just.works. IN NS a.iana-servers.net.it.just.works. IN A 1.2.3.4*.it.just.works. IN A 1.2.3.4
Update the public IP address of the Ingress service:
sed -i 's/1.2.3.4/10.172.1.101/' coredns.yamlkubectl apply -f coredns.yaml
Point your machine to use the correct DNS. It is 10.172.1.102
in the example system response above.
If you plan to launch Tempest tests or use the OpenStack client from
a keystone-client-XXX pod, verify that the Kubernetes built-in
DNS service is configured to resolve your public FQDN records by
adding your public domain to Corefile. For example,
to add the it.just.works domain:
This section explains how to access your OpenStack environment as admin user.
Before you proceed, make sure that you can access the Kubernetes API and have
privileges to read secrets from the openstack-external namespace in
Kubernetes or you are able to exec to the pods in the openstack
namespace.
Access OpenStack using the Kubernetes built-in admin CLI¶
You can use the built-in admin CLI client and execute the openstack
commands from a dedicated pod deployed in the openstack namespace:
This pod has python-openstackclient and all required plugins already
installed. The python-openstackclient command-line client is configured
to use the admin user credentials. You can view the detailed configuration
for the openstack command in /etc/openstack/clouds.yaml file in
the pod.
Access Horizon through your browser using its public service.
For example, https://horizon.it.just.works.
To log in, specify the user name and domain name obtained in previous step
from the <ADMIN_USER_NAME> and <ADMIN_USER_DOMAIN> values.
If the OpenStack Identity service has been deployed with the OpenID Connect
integration:
From the Authenticate using drop-down menu, select
OpenID Connect.
Click Connect. You will be redirected to your identity
provider to proceed with the authentication.
Note
If OpenStack has been deployed with self-signed TLS certificates
for public endpoints, you may get a warning about an untrusted
certificate. To proceed, allow the connection.
Access OpenStack through CLI from your local machine¶
To be able to access your OpenStack environment through the CLI,
you need to configure the openstack client environment
using either an openstackrc environment file or clouds.yaml file.
If OpenStack was deployed with self-signed TLS certificates
for public endpoints, you may need to use the openstack
command-line client with certificate validation disabled. For example:
This section provides the general debugging instructions for your OpenStack on
Kubernetes deployment. Start your troubleshooting with the determination of
the failing component that can include the OpenStack Operator, Helm,
a particular pod or service.
The OpenStack Controller is running in several containers in the
openstack-controller-xxxx pod in the osh-system namespace.
For the full list of containers and their roles, refer to
OpenStack Controller.
To verify the status of the OpenStack Controller, run:
This section includes the ways to mitigate the most common issues with the
OsDpl CR. We assume that you have already debugged the Helm releases and
OpenStack Controllers to rule out possible failures with these components
as described in Debugging the Helm releases and Debugging the OpenStack Controller.
Possible root cause: MOSK uses the Kubernetes entrypoint
init container to resolve dependencies between objects. If the pod is stuck
in Init:0/X, this pod may be waiting for its dependencies.
Possible root cause: some OpenStack services depend on Ceph. These services
include OpenStack Image, OpenStack Compute, and OpenStack Block Storage.
If the Helm releases for these services are not present, the
openstack-ceph-keys secret may be missing in the openstack-ceph-shared
namespace.
To debug the issue:
Verify that the Ceph Controller has created the openstack-ceph-keys
secret in the openstack-ceph-shared namespace:
Support dump described in this section specifically targets OpenStack
components, providing valuable insights for troubleshooting
OpenStack-related problems.
To generate a support dump for your MOSK environment,
use the osctl sos report tool present within
the openstack-controller image.
This section focuses only on the essential capabilities of the tool.
For all available parameters, consult osctl sos report --help.
The support dump is modular. Each module is responsible for specific
functionality. To enable or disable specific modules during support
dump creation, use the --collector option. If not specified,
all collectors are used.
Collects logs from StackLight by connecting to the OpenSearch API.
k8s
Collects data about objects from Kubernetes.
nova
Collects metadata associated with the Compute service (OpenStack Nova)
from the OpenStack nodes. This encompasses a wide range of data,
including instance details, general libvirt information, and so on.
neutron
Collects metadata associated with the Networking service (OpenStack
Neutron) from the OpenStack nodes. This encompasses a wide range of
data, including Open vSwitch statistics, list of namespaces, IP address
statistics in namespaces, Open vSwitch flows, and so on.
Given the substantial amount of information, you can manage the components
included in a support dump using the mutually exclusive --component
or --all-components options. Within the elastic collector component,
you can specify which loggers to gather logs for. For example,
the --componentnova option restricts log collection to pods related
to Nova, which names start with nova-* and libvirt-*.
Another filtering criterion involves specifying the host for which you intend
to collect support information. This can be accomplished through the use of
mutually exclusive --host or --all-hosts options. This feature is
particularly valuable for limiting the volume of data included in
the support dump.
For older MOSK versions, to start generating support
dumps, execute the osctl sos commands from a manually started
Docker container on any node of your cluster. For example, to create a generic
report for the Neutron component:
Before you proceed with the actual Tungsten Fabric (TF) deployment, verify
that your deployment meets the following prerequisites:
Your MOSK OpenStack cluster is deployed as described in
Deploy an OpenStack cluster with the Tungsten Fabric backend
enabled for Neutron using the following structure:
spec:features:neutron:backend:tungstenfabric
Your MOSK OpenStack cluster uses the correct value of
features:neutron:tunnel_interface in the openstackdeployment object.
The TF Operator will consume this value through the shared secret and use
it as a network interface from the underlay network to create encapsulated
tunnels with the tenant networks.
Considerations for tunnel_interface
Plan this interface as a dedicated physical interface for TF overlay
networks. TF uses features:neutron:tunnel_interface to create the
vhost0 virtual interface and transfers the IP configuration from
the tunnel_interface to the virtual one.
Do not use bridges from L2 templates as tunnel_interface.
Such usage might lead to networking performance degradation and data
plane downtime.
The Kubernetes nodes are labeled according to the TF node roles:
Deployment of Tungsten Fabric is managed by the tungstenfabric-operator
Helm resource in a respective ClusterRelease.
To deploy Tungsten Fabric:
Optional. Configure the ASN and encapsulation settings if you need custom
values for these parameters. For configuration details, see Autonomous System Number (ASN).
Configure the TFOperator custom resource according to the needs of your
deployment. For the configuration details, refer to TFOperator custom resource
and API Reference.
Trigger the Tungsten Fabric deployment:
kubectlapply-ftungstenfabric.yaml
Verify that Tungsten Fabric has been successfully deployed:
kubectlgetpods-ntf
The successfully deployed TF services should appear in the Running status
in the system response.
If you have enabled StackLight, enable Tungsten Fabric monitoring by setting
tungstenFabricMonitoring.enabled to true as described in
StackLight configuration procedure.
Since MOSK 23.1,
tungstenFabricMonitoring.enabled is enabled by default during
the Tungsten Fabric deployment. Therefore, skip this step.
This section includes configuration information for available advanced
Mirantis OpenStack for Kubernetes features that include SR-IOV and DPDK
with the Neutron Tungsten Fabric backend.
Enable huge pages for OpenStack with Tungsten Fabric¶
Note
The instruction provided in this section applies to both
OpenStack with OVS and OpenStack with Tungsten Fabric topologies.
The huge pages OpenStack feature provides essential performance improvements
for applications that are highly memory IO-bound. Huge pages should be enabled
on a per compute node basis. By default, NUMATopologyFilter is enabled.
To activate the feature, you need to enable huge pages on the dedicated
bare metal host as described in Enable huge pages in a host profile during
the predeployment bare metal configuration.
Note
The multi-size huge pages are not fully supported by Kubernetes
versions before 1.19. Therefore, define only one size in kernel parameters.
Verify that DPDK NICs are not used on the host operating system.
Note
For use in the Linux user space, DPDK NICs will be bound to
specific Linux drivers, required by PMDs. In such a way,
bounded NICs are not available for usage by standard Linux network
utilities. Therefore, allocate a dedicated NIC(s) for the vRouter
deployment in DPDK mode.
This section instructs you on how to enable SR-IOV with the Neutron Tungsten
Fabric (TF) backend.
To enable SR-IOV for TF:
Verify that your deployment meets the following requirements:
NICs with the SR-IOV support are installed
SR-IOV and VT-d are enabled in BIOS
Enable IOMMU in the kernel by configuring intel_iommu=on in the GRUB
configuration file. Specify the parameter for compute nodes in
BareMetalHostProfile in the grubConfig section:
After the OpenStackDeployment CR modification,
the TF Operator generates a separate vRouter DaemonSet with specified
settings. The tf-vrouter-agent-<XXXXX> pods will be automatically
restarted on the affected nodes causing the network services
interruption on virtual machines running on these hosts.
Optional. To modify a vRouter DaemonSet according to
the SR-IOV definition in the OpenStackDevelopment
CR, add vRouter custom specs to the TF Operator CR with
the node label specified in the OpenStackDeployment CR.
For example:
Tungsten Fabric MOSK deployments use six workers of the
contrail-api service by default. This section instructs you on how to
change the default configuration if needed.
To configure the number of Contrail API workers on a TF deployment:
Specify the required number of workers in the TFOperator custom
resource:
Verify that the ps output lists one API process with PID "1"
and the number of workers set in the TFOperator custom resource.
In /etc/contrail/, verify that the number of configuration
files contrail-api-X.conf matches the number of workers set in the
TFOperator custom resource.
By default, analytics services are part of basic
setups for Tungsten Fabric deployments. To obtain a more lightweight setup,
you can disable these services through the custom resource of the Tungsten
Fabric Operator.
Warning
Disabling of the Tungsten Fabric analytics services requires
restart of the data plane services for existing environments and must be
planned in advance. While calculating the maintenance window for this
operation, take into account the deletion of the analytics DaemonSets
and automatic restart of the tf-config, tf-control, and
tf-webui pods.
Clean up the Kubernetes resources. To free up the space that has been used
by Cassandra, ZooKeeper, and Kafka analytics storage, manually delete the
related PVC:
Delete terminated nodes from the Tungsten Fabric configuration through
the Tungsten Fabric web UI:
Caution
With disabled Tungsten Fabric analytics, the Tungsten Fabric
web UI may not work properly.
Log in to the Tungsten Fabric web UI.
On Configure > Infrastructure > Nodes > Analytics Nodes,
delete all terminated analytics nodes.
On Configure > Infrastructure > Nodes > Database Analytics
Nodes, delete all terminated database analytics nodes.
Depending on the MOSK version, proceed accordingly:
MOSK 24.1
Disable monitoring of the Tungsten Fabric analytics services in
StackLight by setting the following parameter in StackLight values
of the Cluster object to false:
tungstenFabricMonitoring:
analyticsEnabled:false
When done, the monitoring of the Tungsten Fabric analytics components
will become disabled and Kafka alerts along with the Kafka dashboard
will disappear from StackLight.
Since MOSK 24.2
The tungstenFabricMonitoring.analyticsEnabled setting is
automatically configured based on the state of the Tungsten Fabric
analytics services, which are enabled or disabled.
However, you can still override this setting. If set manually,
the configuration overrides the default behavior and does not reflect
the actual state of Tungsten Fabric analytics.
Now, with the Tungsten Fabric analytics services successfully disabled, you
have optimized resource utilization and system performance. While these
services are deactivated, related alerts may still be present in StackLight.
However, do not consider such alerts as indicative of the actual status
of the analytics services.
The Tungsten Fabric (TF) web UI allows for easy and fast TF resources
configuration, monitoring, and debugging. You can access
the TF web UI through either the Ingress service or the Kubernetes Service
directly. TLS termination for the https protocol is performed through the
Ingress service.
Note
Mirantis OpenStack for Kubernetes provides the TF web UI as is and
does not include this service in the support Service Level Agreement.
To access the TF web UI through Ingress:
Log in to a local machine where kubectl is installed.
After the TF custom resource modification, the pods
related to the affected services will be restarted. This rule does not
apply to the tf-vrouter-agent-<XXXXX> pods as their update strategy
differs. Therefore, if you enable the debug logging for the services in
a tf-vrouter-agent-<XXXXX> pod, restart this pod manually after you
modify the custom resource.
Troubleshoot access to the Tungsten Fabric web UI¶
If you cannot access the Tungsten Fabric (TF) web UI service, verify that
the FQDN of the TF web UI is resolvable on your PC by running one of the
following commands:
hosttf-webui.it.just.works
# or
pingtf-webui.it.just.works
# or
dighosttf-webui.it.just.works
All commands above should resolve the web UI domain name to the IP address
that should match the EXTERNAL-IPs subnet dedicated to Kubernetes.
If the TF web UI domain name has not been resolved to the IP address, your PC
is using a different DNS or the DNS does not contain the record for the TF web
UI service. To resolve the issue, define the IP address of the Ingress service
from the openstack namespace of Kubernetes in the hosts file of your
machine. To obtain the Ingress IP address:
In the following cases, a TCP-based service may not work on VMs:
If the setup has nested VMs.
If VMs are running in the ESXi hypervisor.
If the Network Interface Cards (NICs) do not support the IP checksum
calculation and generate an incorrect checksum. For example, the Broadcom
Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe NIC cards.
To resolve the issue, disable the transmit (TX) offloading on all OpenStack
compute nodes for the affected NIC used by the vRouter as described below.
To identify the issue:
Verify whether ping is working between VMs on different
hypervisor hosts and the TCP services are working.
Run the following command for the vRouter Agent and verify whether the
output includes the number of Checksumerrors:
Once you modify the TFOperator CR, the
tf-vrouter-agent-<XXXXX> pods will not restart automatically because
they use the OnDelete update strategy. Restart such pods manually,
considering that the vRouter pods restart causes network services
interruption for the VMs hosted on the affected nodes.
To disable TX offloading on a specific subset of nodes, use custom
vRouter settings. For details, see Custom vRouter settings.
Warning
Once you add a new CustomSpec, a new daemon set will be
generated and the tf-vrouter-agent-<XXXXX> pods will be automatically
restarted. The vRouter pods restart causes network services interruption
for VMs hosted on the affected node. Therefore, plan this procedure
accordingly.
This guide outlines the post-deployment Day-2 operations for a Mirantis
OpenStack for Kubernetes environment. It describes how to configure and manage
the MOSK components, perform different types of cloud
verification, and enable additional features depending on your cloud needs.
The guide also contains day-to-day maintenance procedures such as how to back
up and restore, update and upgrade, or troubleshoot your
MOSK cluster.
Updating a MOSK cluster ensures that the system remains
secure, efficient, and up-to-date with the latest features and performance
improvements, as well as receives fixes for the known CVEs. This section
provides comprehensive details and step-by-step procedures to guide you
through the process of updating your cluster.
Calculate a maintenance window duration for update¶
This section provides an online calculator for quick calculation
of the approximate time required to update your MOSK
cluster that uses Open vSwitch as a networking backend.
Additionally, for a more accurate calculation, consider any cluster-specific
factors that can have a large impact on the update time in some edge cases,
such as number of routers, frequency of CPU, and so on.
Number of virtual machines per compute node:
Number of OpenStack compute nodes:
Number of OpenStack gateway nodes:
Number of Kubernetes control plane nodes:
Number of Kubernetes worker nodes except Kubernetes control plane nodes under the Kubernetes worker role:
This section describes the workflow you as a cloud operator need to follow
to correctly update your Mirantis OpenStack for Kubernetes (MOSK)
cluster to a major release version.
Note
The hereby guide applies to the clusters running
MOSK of version 23.1 and above. In case you have an
older version and looking to update, please contact Mirantis support
to get intructions valid for your cluster.
The instructions below are generic and apply to any MOSK
cluster regardless of its configuration specifics. However, every major
release may have its own update peculiarities. Therefore, to accurately plan
and successfully perform an update, in addition to the hereby document,
read the update-related section in the
Release Notes of the target MOSK version.
Depending on the payload of a target release, the update mechanism
can perform the changes on different levels of the stack, from the
configuration of the host operating system to the code of OpenStack itself.
The update mechanism is designed to avoid the impact on the workloads and cloud
users as much as possible. The life-cycle management logic minimizes
the downtime for the cloud API by means of smart management of the
cluster components under the hood and only requests your involvement when a
human decision is required to proceed.
Though the update mechanism may change the internal components of the cluster,
it will always preserve the major versions of OpenStack, that is, the APIs that
cloud users and workloads deal with. After the cluster is successfully updated,
you can initiate a separate upgrade procedure to obtain the latest supported
OpenStack version.
Before starting an update, we recommend that you closely peruse the Release
Compatibility Matrix document and Release notes of the target release, as well
as thoroughly plan maintenance windows for each update phase depending on the
configurational of your cluster.
Current Mirantis Container Cloud software version and the need to first
update to the latest cluster release version
Update notes provided in the Release notes for the target
MOSK version
New product features that will get enabled in your cloud by default
New product features that may have already been configured in your cloud
as customizations and now need to be properly re-enabled to be eligible for
further support
Any changes in the behavior of the product features enabled in your cloud
List of the addressed and known issues in the target MOSK
version
Warning
If your cloud configuration is known to have any custom
configuration that was not explicitly approved by Mirantis,
make sure to bring this up with your dedicated Mirantis
representative before proceeding with the update. Mirantis
cannot guarantee the safe updating of a customized cloud.
Depending on the payload brought by a particular target release, a generic
cluster update includes from three to six major phases.
The first three phases are present in any update. They focus on the
containerized components of the software stack and have minimal impact on the
cloud users and workloads.
The remaining phases are only present if any changes need to be made to the
foundation layers: the underlay Kubernetes cluster and host
operating system. For the changes to take effect, you may need to reboot the
cluster nodes. This procedure imposes a severe impact on
cloud workloads and, therefore, needs to be thoroughly planned across
several sequential maintenance windows.
Important
To effectively plan a cluster update, keep in mind the
architecture of your specific cloud. Depending on the selected design, the
components of a MOSK cluster may have different
distribution across the nodes (physical servers) comprising the underlay
bare metal Kubernetes cluster. The more components are collocated on a
single node, the harder is the impact on the functions of the cloud when the
changes are applied.
The tables below will help you to plan your cluster update and include the
following information for each mandatory and additional update phase:
What happens during the phase
Includes the phase milestones. The nature of changes that are going to be
applied is important to understand in order to estimate the exact impact
the update is going to have on your cluster.
Consult the Update notes section of the target MOSK
release for the detailed information about the changes it brings and the
impact these changes are going to imply when getting applied to your
cluster.
Impact
Describes possible impact on cloud users and workloads.
The provided information about the impact represents the worst-case scenario
in the cluster architectures that imply a combination of several roles on
the same physical servers, such as hyper-converged compute nodes and
clusters with a compact control plane.
The impact estimation presumes that your cluster uses one of the standard
architectures provided by the product and follows Mirantis design
guidelines.
Time to complete
Provides a rough estimation of the time required to complete the phase.
The estimates for a phase timeline presume that your cluster uses one
of the standard architectures provided by the product and follows
Mirantis design guidelines.
Warning
During the update, try to prevent users from performing write
operations on the cloud resources. Any intensive manipulations may lead to
workload corruption.
Phase 1: Life-cycle management modules update
Important
This phase is mandatory. It is always present in the update flow
regardless of the contents of the target release.
New versions of OpenStack and Tungsten Fabric container images
downloaded, services restarted sequentially.
Impact
Some of the running cloud operations may fail over
the course of the phase due to minor unavailability of the cloud
API.
Workloads may experience temporary loss of the North-South
connectivity in the clusters with Open vSwitch networking backend.
The downtime depends on the type of virtual routers in use.
Time to complete
20 minutes per network gateway node (Open vSwitch)
5 minutes for a Tungsten Fabric cluster
15 minutes per compute node
Phase 3: Ceph cluster update and upgrade
Important
This phase is mandatory. It is always present in the update flow
regardless of the contents of the target release.
New versions of Ceph components downloaded, services restarted.
If applicable, Ceph switched to the latest major version.
Impact
Workloads may experience IO performance degradation for the virtual
storage devices backed by Ceph.
Time to complete
The update of a Ceph cluster with 30 storage nodes can take up to 35
minutes. Additionally, 15 minutes are required for the major Ceph
version upgrade, if any.
Phase 4a: Host operating system update on Kubernetes master nodes
Important
This phase is optional. The presense of this phase
in the update flow depends on the contents of
the target release.
Host operating system update on Kubernetes master nodes¶
What happens during the phase
New system packages downloaded and installed on the host operating
system, other major changes get applied.
Impact
None
Time to complete
The nodes are updated sequentially. Up to 15 minutes per node.
Phase 4b: Kubernetes components update on Kubernetes master nodes
Important
This phase is optional. The presense of this phase
in the update flow depends on the contents of
the target release.
Kubernetes cluster update on Kubernetes master nodes¶
What happens during the phase
New versions of Kubernetes control plane components downloaded and
installed.
Impact
For clusters with the compact control plane, some of the running
cloud operations may fail over the course of the phase due to minor
unavailability of the cloud API.
For the compact control plane with gateway nodes collocated
(Open vSwitch networking backend), workloads can experience
temporary loss of the North-South connectivity. The downtime
depends on the type of virtual routers in use.
Time to complete
Up to 40 minutes total
Phases 5a and 5b: Host operating system and Kubernetes cluster
update on Kubernetes worker nodes
Important
Both phases, 5a and 5b, are applied together, either node
by node (default) or to several nodes in parallel. The parallel updating
is available since 23.1.
Take this into consideration when estimating the impact and planning the
maintenance window.
Loss of connectivity to the volumes for the nodes hosting LVM
with iSCSI volumes.
For dedicated control plane nodes, some of the
running cloud operations may fail over the course of the phase
due to minor unavailability of the cloud API.
For dedicated gateway nodes (Open vSwitch), workloads can
experience minor loss of the North-South connectivity.
For compute nodes, there can be up to 5 minute downtime on the
network connectivity for the workloads running on the node,
due to the restart of the containers hosting the components
of the cloud data plane.
For clusters running MOSK 24.1.2 and above, the
dowtime is up to 2 minutes per node.
Time to complete
By default, the nodes are updated sequentially as follows:
For the host operating system update, up to 15 minutes per node.
For the Kubernetes cluster update, up to 40 minutes per node.
For MOSK 23.1 to 23.2 and newer releases, you can
reduce update time by enabling parallel node update. The procedure
is described further in the Enable parallel update of Kubernetes worker nodes
subsection.
Phase 6: Cluster nodes reboot
Important
This phase is optional. The presense of this phase
in the update flow depends on the contents of
the target release.
Important
An update to a newer MOSK version may require reboot
of the cluster nodes for changes to take effect. Although, you can decide
when to restart each particular node, an update can not be
considered complete until all of the nodes get restarted.
Optional. You configure an instance migration policy.
You initiate the node reboot.
The node is gracefully restarted with automatic or manual
migration of cloud workloads running on it.
Impact
For the storage nodes:
No impact on the nodes hosting the Ceph cluster data
Loss of connectivity to the volumes for the nodes hosting LVM
with iSCSI volumes
For the control plane nodes, some of the
running cloud operations may fail over the course of the phase
due to minor unavailability of the cloud API.
For the network gateway nodes (Open vSwitch), workloads can
experience minor loss of the North-South connectivity depending on
the type of virtual routers in use.
Step 1. Verify that the Container Cloud management cluster is up-to-date¶
MOSK relies on Mirantis Container Cloud to manage the
underlying software stack for a cluster, as well as to deliver updates
for all the components.
Since every MOSK release is tightly coupled with a
Container Cloud release, a MOSK cluster update becomes
possible once the management cluster is known to run the latest Container Cloud
version. The management cluster periodically verifies public Mirantis
repositories and updates itself automatically when a newer version becomes
available. Having any of the managed clusters, including
MOSK, running outdated Container Cloud version will
prevent the management cluster from automatic self-update.
To identify the current version of the Container Cloud software your management
cluster is running, refer to the Container Cloud web UI.
During an update of a MOSK cluster, numerous alerts may be
seen in StackLight. This is expected behavior. Therefore, ignore or temporarily
mute the alerts as described in
Container Cloud Operations Guide: Silence alerts.
If you update MOSK to 23.1, verify that the
KaaSCephCluster custom resource does not contain the following entries.
If they exist, remove them.
In the spec.cephClusterSpec section, the external section.
In the spec.cephClusterSpec.rookConfig section, the ms_crc_data or
mscrcdata configuration key. After you remove the key, wait for
rook-ceph-mon pods to restart on the MOSK
cluster.
Enable parallel update of Kubernetes worker nodes¶
Optional. Starting from MOSK 23.1 to 23.2 update, you can
enable and configure parallel node update to reduce update time and minimize
downtime:
Consider the specifics of handling of parallel node updates by OpenStack,
Ceph, and Tungsten Fabric Controllers to properly plan the maintenance
window. For handling details and possible configuration, refer to
Parallelizing node update operations.
Optional. Starting from MOSK 24.3, you can enable automatic
node reboot of an update group, which contains a set of controller or worker
machines. This option applies when a Cluster release update requires node
reboot, for example, when kernel version update is available in the target
Cluster release. The option reduces manual intervention and overall downtime
during cluster update.
Log in to the Container Cloud web UI with the m:kaas:namespace@operator
or m:kaas:namespace@writer permissions.
Switch to the required project using the Switch Project
action icon located on top of the main left-side navigation panel.
In the Clusters tab, find the managed MOSK
cluster.
Click the More action icon to see whether a new release is
available. If that is the case, click Update cluster.
In the Release Update window, select the required Cluster
release to update your managed cluster to.
The Description section contains the list of components
versions to be installed with a new Cluster release.
Click Update.
Before the cluster update starts, Container Cloud performs
a backup of MKE and Docker Swarm. The backup directory is located
under:
/srv/backup/swarm on every Container Cloud node for Docker Swarm
/srv/backup/ucp on one of the controller nodes for MKE
To view the update status, verify the cluster status on the
Clusters page. Once the orange blinking dot near the cluster
name disappears, the update is complete.
To view the update status through the Container Cloud web UI, navigate to
the Clusters page. Once the orange blinking dot next to the
cluster name disappears, the cluster update is complete.
Also, you can see the general status of each node during the update on the
Container Cloud cluster view page.
The whole update process is controlled by lcm-controller, which runs in
the kaas namespace of the Container Cloud management cluster. Follow
its logs to watch the progress of the update, discover, and debug any issues.
Watch the state of the cluster and nodes update through the CLI¶
The lcmclusterstate and lcmmachines objects in the mos namespace
of the Container Cloud management cluster provide detailed information about
the current phase of the update process in the context of the managed cluster
overall as well as specific nodes.
The lcmmachine object being in the Ready state indicates that a node
has been successfully updated.
To display the detailed view of the cluster update state, run:
Step 4. Reboot the nodes with optional instance migration¶
Depending on the target release content, you may need to reboot the cluster
nodes for the changes to take effect. Running a MOSK cluster
in a semi-updated state for an extended period may result in unpredictable
behavior of the cloud and impact users and workloads. Therefore, when it is
required, you need to reboot the cluster nodes as soon as possible to avoid
potential risks.
Note
If you enabled rebootIfUpdateRequires as described in
Enable automatic node reboot in update groups, nodes will be automatically rebooted in update
groups during a Cluster release update that requires a reboot, for example,
when kernel version update is available in the target Cluster release.
For a distribution upgrade, continue reading the following subsections.
Verify the YAML definitions of the LCMMachine and Machine objects.
The node must be rebooted if the rebootRequired flag is set to true.
In addition, objects explicitly specify the reason for rebooting. For example:
The LCMMachine object of the node that requires rebooting:
Since MOSK 23.1, you can also use the Mirantis
Container Cloud web UI to identify the nodes requiring reboot:
In the Clusters tab, click the required cluster name. The
page with Machines opens.
Hover over the status of every machine. A machine to reboot contains
the Reboot > The machine requires a reboot notification in
the Status tooltip.
Configure instance migration policy for cluster nodes¶
Restarting the cluster causes downtime of the cloud services running on the
nodes. While the MOSK control plane is built for high
availability and can tolerate temporary loss of at least 1/3 of services
without a significant impact on user experience, rebooting nodes that host the
elements of cloud data plane, such as network gateway nodes and compute nodes,
has a detrimental effect on the cloud workloads, if not performed gracefully.
To mitigate the potential impact on the cloud workloads, you can define
the instance migration flow for the compute nodes running the most valuable
instances.
The list of available options for the instance migration configuration
includes:
The openstack.lcm.mirantis.com/instance_migration_mode annotation:
live
Default. The OpenStack controller live migrates instances
automatically. The update mechanism tries to move the memory
and local storage of all instances on the node to another
node without interrupting before applying any changes to the node.
By default, the update mechanism makes three attempts to migrate
each instance before falling back to the manual mode.
Note
Success of live migration depends on many factors
including the selected vCPU type and model, the amount of
data that needs to be transferred, the intensity of the disk
IO and memory writes, the type of the local storage, and others.
Instances using the following product features are known to have
issues with live migration:
LVM-based ephemeral storage with and without encryption
Encrypted block storage volumes
CPU and NUMA node pinning
manual
The OpenStack Controller waits for the Operator to migrate instances
from the compute node. When it is time to update the compute node,
the update mechanism asks you to manually migrate the instances and
proceeds only once you confirm the node is safe to update.
skip
The OpenStack Controller skips the instance check on the
node and reboots it.
Note
For the clouds relying on the converged LVM with iSCSI block
storage that offer persistent volumes in a remote edge sub-region,
it is important to keep in mind that applying a major change to a
compute node may impact not only the instances running on this node
but also the instances attached to the LVM devices hosted there.
We recommend that in such environments you perform the update procedure
in the manual mode with mitigation measures taken by the Operator
for each compute node. Otherwise, all the instances that have LVM with
iSCSI volumes attached would need reboot to restore the connectivity.
The openstack.lcm.mirantis.com/instance_migration_attempts annotation
Defines the number of times the OpenStack Controller attempts
to migrate a single instance before giving up.
Defaults to 3.
Note
You can also use annotations to control the update of
non-compute nodes if they represent critical points of a specific
cloud architecture. For example, setting the instance_migration_mode
to manual on a controller node with a collocated gateway (Open vSwitch)
will allow the Operator to gracefully shut down all the virtual routers
hosted on this node.
To configure the instance migration policy:
Edit the target compute node resource. For example:
Since MOSK 23.1, you can reboot several cluster nodes
in one go by using the Graceful reboot mechanism
provided by Mirantis Container Cloud. The mechanism restarts the selected nodes
one by one, honoring the instance migration policies.
For older versions of MOSK, you need to reboot each node
manually as follows:
When a node that has a manual instance migration policy is ready to be
restarted, the life-cycle management mechanism notifies you about that by
creating a NodeMaintenanceRequest object for the node and setting the
active status attribute for the corresponding NodeWorkloadLock object.
Note
Verify the status:errorMessage attribute before proceeding.
To view the NodeWorkloadLock objects details for a specific node, run:
If an update phase takes significantly longer than expected according
to the tables included in Plan the cluster update, you should consider
the update process hung.
If you observe errors that are not described explicitly in the documentation,
immediately contact Mirantis support.
To see any issues that might have occurred during the update, verify the logs
of the lcm-controller pods in the kaas namespace of the Container Cloud
management cluster.
To troubleshoot the update that involves the operating system upgrade
with host reboot, refer to Container Cloud documentation.
Patch releases aim to significantly shorten the cycle of CVE fixes delivery
onto your MOSK deployments to help you avoid cyber
threats and data breaches.
Your management bare-metal cluster obtains patch releases automatically
the same way as major releases. A new patch MOSK release
version becomes available through the Container Cloud web UI after the
automatic upgrade of the management cluster.
It is not possible to update between the patch releases that belong to
different release series in one go. For example, you can update from
MOSK 23.1.1 to 23.1.2, but you cannot immediately update
from MOSK 23.1.x to 23.2.x because you need to update to
the major MOSK 23.2 release first.
Read the Update notes part of the target MOSK
release notes to understand the changes it brings and the impact these
changes are going to have on your cloud users and workloads.
The application of the patch releases may not require the cluster nodes
reboot. Though, your cluster can contain nodes that require reboot after
the last update to a major release, and this requirement will remain after
update to any of the following patch releases. Therefore, Mirantis strongly
recommends that you determine if there are such nodes in your cluster
before you update to the next patch release and reboot them if any, as
described in Step 4. Reboot the nodes with optional instance migration.
For some MOSK versions, applying a patch release may require
restart of the containers that host the elements of the cloud data plane. In
case of Open vSwitch-based clusters, this may result in up to 5 minute downtime
of workload network connectivity for each compute node.
For MOSK prior to 24.1 series, you can determine whether
applying a patch release is going to require the restart of the data plane by
consulting the Release artifacts part of the release notes of the current
and target MOSK releases.
The data plane restart will only happen if there are new versions of the
container images related to the data plane.
It is possible to avoid the downtime for the cloud data by
explicitly pinning the image versions of the following components:
Open vSwitch
Kubernetes entrypoint
However, pinning these images will result in the cloud data plane not receiving
any security or bugfixes during the update.
To pin the images:
Depending on the proxy configuration, the image base URL differs.
To obtain the list of currently used images on the cluster, run:
Verify that your OpenStack cloud is running on the latest
MOSK release. See Release Compatibility Matrix for the
release matrix and supported upgrade paths.
Just before the upgrade, back up your OpenStack databases.
See the following documentation for details:
Verify that OpenStack is healthy and operational. All OpenStack components
in the health group in the OpenStackDeploymentStatus CR should be
in the Ready state. See OpenStackDeploymentStatus custom resource for details.
Verify the workability of your OpenStack deployment by running Tempest
against the OpenStack cluster as described in Run Tempest tests.
Verification of the testing pass rate before upgrading will help you
measure your cloud quality before and after upgrade.
Read carefully through the Release Notes of your
MOSK version paying attention to the Known issues
section and the
OpenStack upstream release notes
for the target OpenStack version.
Calculate the maintenance window using services-update-details
and notify users.
When upgrading to OpenStack Yoga, remove the Panko service from the cloud
by removing the event entry from the spec:features:services
structure in the OpenStackDeployment resource as described in
Remove an OpenStack service.
To start the OpenStack upgrade, change the value of the
spec:openstack_version parameter in the OpenStackDeployment object
to the target OpenStack release.
After you change the value of the spec:openstack_version parameter,
the OpenStack Controller initializes the upgrade process.
To verify the upgrade status, use:
Logs from the osdpl container in the OpenStack Controller pod.
The OpenStackDeploymentStatus object.
When upgrade starts, the OPENSTACKVERSION field content changes
to the target OpenStack version, and STATE displays APPLYING:
Verify that OpenStack is healthy and operational. All OpenStack components
in the health group in the OpenStackDeploymentStatus CR should be
in the Ready state. See OpenStackDeploymentStatus custom resource for details.
Verify the workability of your OpenStack deployment by running Tempest
against the OpenStack cluster as described in Run Tempest tests.
Before upgrading, verify that you have completed
the Prerequisites and removed the domains from federation
mappings as described below.
MOSK enables you to upgrade directly from Antelope to
Caracal without the need to upgrade to the intermediate Bobcat release.
To upgrade the cloud, complete the upgrade steps
instruction changing the value of the spec:openstack_version parameter
in the OpenStackDeployment object from antelope to caracal.
Perform the domains removal from the federation
mappings if your MOSK cluster configuration
includes federated identity management system, such as IAM or
any other supported identity provider.
Before Caracal, Keystone does not properly handle domain specifications for
users in mappings. Even though domains are specified for users, Keystone always
creates users in the domain associated with the identity provider the user
logs in from.
Starting with Caracal, Keystone honors the domains specified for users
in mappings. Many example mappings, including the previous default mapping
in MOSK, use domain specifications. After upgrading
to Caracal, the new users logging in through federation may be assigned to
a different Keystone domain, while existing users will retain their
current domain. This behaviour may negatively impact monitoring,
compliance, and overall cluster operations.
To maintain the same functionality after the upgrade, remove the domain
element from both the local.user element and local element, which
sets default domain values for user and group elements, from the previous
default mappings.
You can use the openstack mapping commands to manage mappings:
To list available mappings: openstack mapping list
To display the mapping rules: openstack mapping show <name>
To modify the mapping rules:
openstack mapping set <name> --rules <rules>
MOSK enables you to upgrade directly from Yoga to Antelope
without the need to upgrade to the intermediate Zed release.
Before upgrading, verify that you have completed the
Prerequisites.
Important
There are several known issue affecting MOSK clusters running
OpenStack Antelope that can disrupt the network connectivity of the cloud
workloads.
If your cluster is still running OpenStack Yoga, update to the MOSK 24.2.1
patch release first and only then upgrade to OpenStack Antelope. If you
have not been applying patch releases previously and would prefer to switch
back to major releases-only mode, you will be able to do this when MOSK 24.3
is released.
If you have updated your cluster to OpenStack Antelope, apply the
workarounds described in Release notes: OpenStack known issues for the following issues:
[45879] [Antelope] Incorrect packet handling between instance and
its gateway
[44813] Traffic disruption observed on trunk ports
To upgrade the cloud, complete the upgrade steps
instruction changing the value of the spec:openstack_version parameter
in the OpenStackDeployment object from yoga to antelope.
If your cluster is running on top of the MOSK 23.1.2
patch version, the OpenStack upgrade to Yoga may fail due to the delay
in the Cinder start. For the workaround, see 23.1.2 known issues:
OpenStack upgrade failure.
Before upgrading, verify that you have completed the
Prerequisites.
If your cloud runs on top of the OpenStack Victoria release, you must first
upgrade to the technical OpenStack releases Wallaby and Xena before upgrading
to Yoga.
Caution
The Wallaby and Xena releases are not recommended for a long-run
production usage. These versions are transitional, so-called technical
releases with limited testing scopes. For the OpenStack versions support
cycle, refer to OpenStack support cycle.
To upgrade the cloud, complete the upgrade steps
for each release version in line in the following strict order:
Mirantis OpenStack for Kubernetes (MOSK) relies on the MariaDB Galera
cluster to provide its OpenStack components with reliable storage of persistent
data. Mirantis recommends backing up your OpenStack databases daily to ensure
the safety of your cloud data. Also, you should always create an instant
backup before updating your cloud or performing any kind of potentially
disruptive experiment.
MOSK has a built-in automated backup routine that can be
triggered manually or by schedule. Periodic backups are suspended by default
but you can easily enable them through the OpenStackDeployment custom
resource. For the details about enablement and configuration of the periodic
backups, refer to Periodic OpenStack database backups in the Reference Architecture.
This section includes more intricate procedures that involve additional steps
beyond editing the OpenStackDeployment custom resource, such as restoring
the OpenStack database from a backup or configuring a remote storage for
backups.
By default, MOSK stores the OpenStack database backups
locally in the Mirantis Ceph cluster, which is a part of the same cloud.
Alternatively, MOSK enables you to save the backup data
to an external storage. This section contains the details on how you, as a
cloud operator, can configure a remote storage backend for OpenStack
database backups.
In general, the built-in automated backup mechanism saves the data to the
mariadb-phy-backup-data PersistentVolumeClaim (PVC), which is provisioned
from StorageClass specified in the spec.persistent_volume_storage_class
parameter of the OpenstackDeployment custom resource (CR).
Configure a remote NFS storage for OpenStack backups¶
If your MOSK cluster was originally deployed with the default
backup storage, proceed with this step. Otherwise, skip it.
Copy the already existing backup data to a storage different from the
mariadb-phy-backup-data PVC.
During the OpenStack database restoration, the MariaDB cluster is
unavailable due to the MariaDB StatefulSet being scaled down to 0 replicas.
Therefore, to safely restore the state of the OpenStack database,
plan the maintenance window thoroughly and in accordance with the
database size.
The duration of the maintenance window may depend on the following:
Network throughput
Performance of the storage where backups are kept, which is Mirantis Ceph
by default
Local disks performance of the nodes where MariaDB data resides
If you want to restore the full backup, the name from the
example above is 2020-09-09_11-35-48. To restore a specific
incremental backup, the name from the example above is
2020-09-09_11-35-48/2020-09-12_01-01-54.
In the example above, the backups will be restored in the following strict
order:
2020-09-09_11-35-48 - full backup,
path /var/backup/base/2020-09-09_11-35-48
Pass the following parameters to the mariadb_resque.py script from
the OsDpl object:
Parameter
Type
Default
Description
--backup-name
String
Name of a folder with backup in <BASE_BACKUP> or
<BASE_BACKUP>/<INCREMENTAL_BACKUP>.
--replica-restore-timeout
Integer
3600
Timeout in seconds for 1 replica data to be restored to the
mysql data directory. Also, includes time for spawning a
rescue runner pod in Kubernetes and extracting data from a
backup archive.
kubectl -n openstack get jobs mariadb-phy-restore -o jsonpath='{.status}'
The mariadb-phy-restore job is an immutable object. Therefore,
remove the job after each successful execution. To correctly remove the job,
clean up all the settings from the OpenStackDeployment object
that you have configured during step 7 of this procedure.
This will remove all related pods as well.
Important
If mariadb-phy-restore fails, the MariaDB Pods do not start automatically.
For example, the failure may occur due to discrepancy between the current
and backup versions of MariaDB, broken backup archive, and so on.
Assess the mariadb-phy-restore job log to identify the issue:
The base directory contains full backups. Each directory in the incr
folder contains incremental backups related to a certain full backup in
the base folder. All incremental backups always have the base backup
name as parent folder.
This section describes how to add a new control plane node to the existing
MOSK deployment.
To add an OpenStack controller node:
Add a bare metal host to the managed cluster with MOSK
as described in Add a bare metal host.
When adding the bare metal host YAML file, specify the following OpenStack
control plane node labels for the OpenStack control plane services
such as database, messaging, API, schedulers, conductors, L3 and L2 agents:
openstack-control-plane=enabled
openstack-gateway=enabled
openvswitch=enabled
Create a Kubernetes machine in your cluster as described in
Add a machine.
When adding the machine, verify that OpenStack control plane node has
the following labels:
openstack-control-plane=enabled
openstack-gateway=enabled
openvswitch=enabled
Note
Depending on the applications that were colocated on the failed
controller node, you may need to specify some additional labels,
for example, ceph_role_mgr=true and ceph_role_mon=true . To
successfuly replace a failed mon and mgr node, refer to
Mirantis Container Cloud Operations Guide: Manage Ceph.
Verify that the node is in the Ready state through the Kubernetes API:
kubectlgetnode<NODE-NAME>-owide|grepReady
Verify that the node has all required labels described in the previous
steps:
This section describes how to replace a failed control plane node in your
MOSK deployment. The procedure applies to the control plane
nodes that are, for example, permanently failed due to a hardware failure and
appear in the NotReady state:
For MOSK 23.3 series or earlier,
reschedule stateful applications pods to healthy controller nodes as
described in Reschedule stateful applications. For the newer
versions, MOSK performs the rescheduling of stateful
applications automatically.
Hosts the OpenStack control plane services such as database,
messaging, API, schedulers, conductors, L3 and L2 agents.
openstack-control-plane=enabled
openstack-gateway=enabled
openvswitch=enabled
3
OpenStack compute
Hosts the OpenStack compute services such as libvirt and L2 agents.
openstack-compute-node=enabled
openvswitch=enabled (for a deployment with Open vSwitch as a
backend for networking)
Varies
If required, configure the compute host to enable DPDK, huge pages, SR-IOV,
and other advanced features in your MOSK deployment.
See Advanced OpenStack configuration (optional) for details.
Once the node is available in Kubernetes and when the nova-compute and
neutron pods are running on the node, verify that the compute
service and Neutron Agents are healthy in OpenStack API.
Verify that the compute service is mapped to cell.
The OpenStack Controller triggers the nova-cell-setup job
once it detects a new compute pod in the Ready state.
This job sets mapping for new compute services to cells.
In the nova-api-osapi pod, run:
nova-managecell_v2list_hosts|grep<cmp_host_name>
Change oversubscription settings for existing compute nodes¶
Available since MOSK 23.1
MOSK enables you to control the oversubscription of compute
node resources through the placement service API.
To manage the oversubscription through the placement API:
Obtain the host name of the hypervisor in question:
Update the allocation ratio for the required resource class in the resource
provider and inspect the system response to verify that the change has been
applied:
To ensure accurate resource updates, it is crucial to specify
the --amend argument when making requests. Failure to do so will
require the inclusion of values for all fields associated with the
resource provider.
During the graceful machine deletion, the OpenStack Controller performs
the following operations:
Disables the OpenStack Compute and Block Storage services on the node
to prevent further scheduling of workloads to it.
Verifies if any resources are present on the node, for example, instances
and volumes. By default, the OpenStack Controller blocks the removal process
until the resources are removed by the user. To adjust this behavior
to the needs of your cluster, refer to OpenStack Controller configuration.
Removes OpenStack services metadata including compute services, Neutron
agents, and volume services.
Caution
You cannot collocate the OpenStack compute node with other cluster
components, such as Ceph. If done so, refer to the removal steps
of the collocated components when planning the maintenance window.
If your cluster runs MOSK 23.1 or older version, perfrom
the following steps before you remove the node from the cluster through
the web UI to correctly remove the OpenStack-related metadata from it:
Disable the compute service to prevent spawning of new instances.
In the keystone-client pod, run:
openstackcomputeserviceset--disable<cmp_host_name>nova-compute--disable-reason"Compute is going to be removed."
The procedure applies to the MOSK clusters running
MOSK 23.3 series or earlier versions. Starting from
24.1, MOSK performs the rescheduling of stateful
applications automatically.
The rescheduling of stateful applications may be required when replacing
a permanently failed node, decommissioning a node, migrating applications
to nodes with a more suitable set of hardware, and in several other use cases.
MOSK deployment profiles include the following stateful
applications:
OpenStack database (MariaDB)
OpenStack coordination (etcd)
OpenStack Time Series Database backend (Redis)
Each stateful application from the list above has a persistent volume claim
(PVC) based on a local persistent volume per pod. Each of control plane nodes
has a set of local volumes available. To migrate an application pod to another
node, recreate a PVC with the persistent volume from the target node.
Caution
A stateful application pod can only be migrated to a node
that does not contain other pods of this application.
Caution
When a PVC is removed, all data present in the related persistent
volume is removed from the node as well.
Perform the pods rescheduling if you have to move a PVC to
another node and the current node is still present in the cluster. If the
current node has been removed already, MOSK reschedules pods automatically
when a node with required labels is present in the cluster.
When the rescheduling is finalized, the <STATEFULSET-NAME>-<NUMBER>
pod rejoins the Galera cluster with a clean MySQL data directory
and requests the Galera state transfer from the available nodes.
Perform the pods rescheduling if you have to move a PVC to
another node and the current node is still present in the cluster. If the
current node has been removed already, MOSK reschedules pods automatically
when a node with required labels is present in the cluster.
During the reschedule procedure of the etcd LCM, a short
cluster downtime is expected.
Before MOSK 23.1:
Identify the etcd replica ID that is a numeric suffix in a pod name.
For example, the ID of the etcd-etcd-0 pod is 0.
This ID is required during the reschedule procedure.
<STORAGE-SIZE>, <STORAGE-CLASS>, and
<NAMESPACE> should correspond to the storage,
storageClassName, and namespace values from the
<OLD-PVC>.yaml file with the old PVC configuration.
The OpenStack Integration Test Suite (Tempest), is a set of integration tests
to be run against a live OpenStack environment. This section instructs you
on how to verify the workability of your OpenStack deployment using Tempest.
To verify an OpenStack deployment using Tempest:
Configure the Tempest run parameters using the features:services:tempest
structure in the OpenStackDeployment custom resource.
Note
To perform the smoke testing of your deployment, no additional
configuration is required.
Configuration examples:
To perform the full Tempest testing:
spec:services:tempest:tempest:values:conf:script:|tempest run --config-file /etc/tempest/tempest.conf --concurrency 4 --blacklist-file /etc/tempest/test-blacklist --regex test
Run Tempest. The OpenStack Tempest is deployed like other OpenStack services
in a dedicated openstack-tempest Helm release by adding tempest to
spec:features:services in the OpenStackDeployment custom resource:
spec:features:services:-tempest
Wait until Tempest is ready. The Tempest tests are launched by the
openstack-tempest-run-tests job. To keep track of the tests execution,
run:
This section instructs you on how to remove an OpenStack cluster, deployed on
top of Kubernetes, by deleting the openstackdeployments.lcm.mirantis.com
(OsDpl) CR.
To remove an OpenStack cluster:
Verify that the OsDpl object is present:
kubectlgetosdpl-nopenstack
Delete the OsDpl object:
kubectldeleteosdplosh-dev-nopenstack
The deletion may take a certain amount of time.
Verify that all pods and jobs have been deleted and no objects are present
in the command output:
kubectlgetpods,jobs-nopenstack
Delete Persistent Volume Claims (PVCs) using the following snippet. Deletion
of PVCs causes data deletion on Persistent Volumes. The volumes themselves
will become available for further operations.
Caution
Before deleting PVCs, save valuable data in a safe place.
This section instructs you on how to remove an OpenStack service deployed on
top of Kubernetes. A service is typically removed by deleting a corresponding
entry in the spec.features.services section of the
openstackdeployments.lcm.mirantis.com (OsDpl) CR.
Caution
You cannot remove the default services built into the preset
section.
Clean up OpenStack database leftovers after the service removal¶
Caution
The procedure below will permanently destroy the data of
the removed service.
Log in to the mariadb-server pod shell:
kubectl-nopenstackexec-itmariadb-server-0--bash
Remove the service database user and its permissions:
Note
Use the user name for the service database obtained during
the Remove a service procedure to substitute SERVICE-DB-NAME:
mysql-uroot-p${MYSQL_DBADMIN_PASSWORD}-e"REVOKE ALL PRIVILEGES, GRANT OPTION FROM '<SERVICE-DB-USERNAME>'@'%';"
mysql-uroot-p${MYSQL_DBADMIN_PASSWORD}-e"DROP USER '<SERVICE-DB-USERNAME>'@'%';"
Enable uploading of an image through Horizon with untrusted SSL certificates¶
By default, the OpenStack Dashboard (Horizon) is configured to load images
directly into Glance. However, if a MOSK cluster
is deployed using untrusted certificates for public API endpoints and
Horizon, uploading of images to Glance through the Horizon web UI may fail.
When accessing the Horizon web UI of such MOSK deployment
for the first time, a warning informs you that the site is insecure and you
must force trust the certificate of this site. However, when trying to upload
an image directly from a web browser, the certificate of the Glance API is
still not considered by the web browser as a trusted one since host:port
of the site is different. In this case, you must explicitly trust the
certificate of the Glance API.
To enable uploading of an image through Horizon with untrusted SSL
certificates:
Navigate to the Horizon web UI.
Configure your web browser to trust the Horizon certificate if you have not
done so yet:
In Google Chrome or Chromium, click
Advanced > Proceed to <URL> (unsafe).
In Mozilla Firefox, navigate to Advanced > Add Exception,
enter the URL in the Location field, and click
Confirm Security Exception.
Note
For other web browsers, the steps may vary slightly.
Navigate to Project > API Access.
Copy the Service Endpoint URL of the Image service.
Open this URL in a new window or tab of the same web browser.
Configure your web browser to trust the certificate of this site as
described in the step 2.
As a result, the version discovery document should appear with contents
that varies depending on the OpenStack version. For example, for OpenStack
Victoria:
The credential rotation procedure is designed to minimize the impact on service
availability and workload downtime. It depends on the credential type and
is based on the following principles:
Credentials for OpenStack admin database and messaging are immediately
changed during one rotation cycle, without a transition period.
Credentials for OpenStack admin identity are rotated with a transition
period of one extra rotation cycle. This means that the credentials
become invalid after two rotations. MOSK exposes
the latest valid credentials to the openstack-external namespace.
For details, refer to Access OpenStack through CLI from your local machine.
Credentials for OpenStack service users, including those for messaging,
identity, and database, undergo a transition period of one extra rotation
cycle during rotation.
Note
If immediate inactivation of credentials is required, initiate
the rotation procedure twice.
Verify that there are no other LCM operations running on the OpenStack
cluster.
Thoroughly plan the maintenance window taking into account the following
considerations:
All OpenStack control plane services, components of the Networking service
(OpenStack Neutron) responsible for the data plane and messaging services
are restarted during service credentials rotation.
OpenStack database and OpenStack messaging services are restarted during
administrator credentials rotation, as well as some of the Openstack
control plane services, including the Instance High Availability service
(OpenStack Masakari), Dashboard (OpenStack Horizon), and Identity service
(OpenStack Keystone).
Where the <credentials-type> value is either admin or service.
Note
Mirantis recommends rotating both admin and service credentials
simultaneously to decrease the duration of the maintenance window and
number of service restarts. You can do this by passing the --type
argument twice:
Wait until the OpenStackDeploymentStatus object has state APPLIED
and all OpenStack components in the health group in the
OpenStackDeploymentStatus custom resource are in the Ready state.
Alternatively, you can launch the rotation command with the --wait flag.
Now, the latest admin password for your OpenStack environment is available in
the openstack-identity-credentials secret in the openstack-external
namespace.
This section provides instructions on how to customize the functionality of
your MOSK OpenStack services by installing custom system
or Python packages into their container images.
The MOSK services are running in Ubuntu-based
containers, which can be extended to meet specific requirements or implement
specific use cases, for example:
Enabling third-party storage driver for OpenStack Cinder
Implementing a custom scheduler for OpenStack Nova
Adding a custom dashboard to OpenStack Horizon
Building your own image importing workflow for OpenStack Glance
Warning
Mirantis cannot be held responsible for any consequences arising
from using customized container images. Mirantis does not provide support
for such actions, and any modifications to production systems are made at
your own risk.
Note
Custom images are pinned in the OpenStackDeployment custom
resource. These images do not undergo automatic updates or upgrades.
Cloud administrator is responsible for image update during OpenStack
updating and upgrading.
Specify the location for the base image in the Dockerfile.
A custom image can be derived from any OpenStack image shipped with
MOSK. For locations of the images comprising a
specific MOSK release, refer to a corresponding
release artifacts page in the Release Notes.
Presuming the custom image will need to get rebuilt for every new
MOSK release, Mirantis recommends parametrizing the
location of its base by introducing the $FROM argument to the
Dockerfile.
Instruct the Dockerfile to install additional system packages:
Honor upper constraints that MOSK defines for its
OpenStack packages prerequisites
OpenStack components in every MOSK release are shipped
together with their requirements packaged as Python wheels and constraints
file. Download and extract these artifacts from the corresponding
requirements container image, so that they can be used for building
your packages as well. Use the requirements image with the same tag
as the base image that you plan to customize:
When selecting the name for your image, Mirantis recommends following the
common practice across major public Docker repositories, that is Docker Hub.
The image name should be <user-name>/<repo-name>, where <user-name>
is a unique identifier of the user who authored it and <repo-name>
is the name of the software shipped.
Specify the current directory as the build context. Also, use the --tag
option to assign the tag to your image. Assigning a tag :<tag>
enables you to add multiple versions of the same image to the repository.
Unless you assign a tag, it defaults to latest.
If you are adding Python packages, you can minimize the size of the custom
image by building it with the --squash flag. It merges all the image
layers into one and instructs the system not to store the cache layers of
the wheel packages.
Verify that the image has been built and is present on your system:
dockerimagels
Publish the image to the designated registry by its name and tag:
Note
Before pushing the image, make sure that you have authenticated
with the registry using the docker login command.
dockerpush<user-name>/<repo-name>:<tag>
Attach a private Docker registry to MOSK Kubernetes underlay¶
To ensure that the Kubernetes worker nodes in your MOSK
cluster can locate and download the custom image, it should be published
to a container image registry that the cluster is configured to use.
To configure the MOSK Kubernetes underlay to use your
private registry, you need to create a ContainerRegistry resource in the
Mirantis Container Cloud API with the registry domain and CA certificate in it,
and specify the resource in the Cluster object that corresponds to
MOSK.
For the details, refer to the Mirantis Container Cloud documentation:
To inject a customized OpenStack container into your MOSK
cluster, you need to use the spec:services section in the
OpenStackDeployment custom resource to override the default location of
the container image with your own:
Open the OpenStackDeployment custom resource for editing:
To help you better understand the process, this section provides a few examples
illustrating how to add various plugins to MOSK services.
Warning
Mirantis cannot be held responsible for any consequences arising
from using storage drivers, plugins, or features that are not explicitly
tested or documented with MOSK. Mirantis does not provide
support for such configurations as a part of standard product subscription.
Pure Storage driver for OpenStack Cinder
Although the PureStorage driver itself is already included in the cinder
system package, you need to install additional dependencies to make it work:
System packages: nfs-common
Python packages: purestorage
The base image is the MOSK Cinder image
cinder:yoga-focal-20230227093206.
Procedure:
Download and extract the requirements from the requirements container
image that corresponds to the base image that you plan to customize:
Build wheels. This step will be performed automatically because the
Trillio repository has tar Python packages that build wheels
binaries on installation.
Orphaned resource allocations are entries in the Placement database that
track resource consumption, but the corresponding consumer (instance)
no longer exists on the compute nodes. As a result, the Nova scheduler
mistakenly believes that compute nodes have more resources allocated
than they actually have.
For example, orphaned resource allocations may occur when an instance
is evacuated from a hypervisor while the related nova-compute service
is down.
This section provides instructions on how to resolve orphaned resource
allocations in Nova if they are detected on compute nodes.
Orphaned allocations are detected by the nova-placement-audit CronJob that
runs every four hours.
The osdpl-exporter service processes the nova-placement-audit CronJob
output and exports current number of orphaned allocations to StackLight as an
osdpl_nova_audit_orphaned_allocations metric. If the value of this metric
is greater than 0, StackLight raises a major alert
NovaOrphanedAllocationsDetected.
Analyze the list of the nova-compute services obtained during
the previous step:
For the nova-compute services in the down state, most probably
there were evacuations of instances from the correspoding nodes when
the services were down. If this is the case, proceed directly to
Remove orphaned allocations. Otherwise, proceed with collecting
the logs.
For the nova-compute services in the UP state, proceed with
collecting the logs.
Collect the following logs from the environment:
Caution
The log data can be significant in size. Ensure that there is
sufficient space available in the /tmp/ directory of the OpenStack
controller pod. Create a separate report for each node.
Logs from compute nodes for a 3-day period around the time of the alert:
From the node with the orphaned allocation
From the node with the actual allocation (where the instance exists,
if any)
For example, if the alert was raised on 2024-08-12, set
<REPORT_PERIOD_TIMESTAMPS> to 2024-08-11,2024-08-13.
Logs from the nova-scheduler, nova-api, nova-conductor,
placement-api pods for a 3-day period around the time of the alert:
ctl_nodes=$(kubectlgetnodes-lopenstack-control-plane=enabled-oname)
kubectl-nosh-systemexec-itdeployment/openstack-controller--bash
# for each node in ctl_nodes execute:
osctlsos--between<REPORT_PERIOD_TIMESTAMPS>\--host<CTL_HOSTNAME>\--componentnova\--componentplacement\--collectorelastic\--workspace/tmp/report
kubectl-nopenstackexec-itdeployment/keystone-client--bash
openstackservermigrationlist
openstackcomputeservicelist--long
openstackresourceproviderlist
# Get the server event list for each orphaned consumer id
openstackservereventlist<SERVER_ID>
Note
SERVER_ID is the orphaned consumer ID from the
nova-placement-audit logs.
Create a support case and attach the obtained information.
The section covers OpenStack services post-deployment configuration and is
intended for cloud operators who are responsible for providing working cloud
infrastructure to the cloud end users.
Instances High Availability Service or Masakari is an OpenStack project
designed to ensure high availability of instances and compute processes
running on hosts.
Before the end user can start enjoying the benefits of Masakari, the cloud
operator has to configure the service properly. This section includes
instructions on how to create segments and host through the Masakari API
as well as provides the list of additional settings that can be useful
in certain use cases.
The segment object is a logical grouping of compute nodes into zones
also known as availability zones. The segment object enables
the cloud operator to list, create, show details for, update,
and delete segments.
To create a segment named allcomputes with service_type=compute,
and recovery_method=auto, run:
The host object represents compute service hypervisors. A host belongs
to a segment. The host can be any kind of virtual machine that has
compute service running on it. The host object enables the operator
to list, create, show details for, update, and delete hosts.
The alerting API is used by Masakari monitors to notify about a failure
of either a host, process, or instance. The notification object enables
the operator to list, create, and show details of notifications.
The list of useful tunings for the Masakari service includes:
[host_failure]\evacuate_all_instances
Enables the operator to decide whether to evacuate all instances or only the
instances that have [host_failure]\ha_enabled_instance_metadata_key
set to True. By default, the parameter is set to False.
[host_failure]\ha_enabled_instance_metadata_key
Enables the operator to decide on the instance metadata key naming that
affects the per instance behavior of
[host_failure]\evacuate_all_instances. The default is the same for
both failure types, which include host and instance, but
the value can be overridden to make the metadata key different per
failure type.
[host_failure]\ignore_instances_in_error_state
Enables the operator to decide whether error instances should be allowed
for evacuation from a failed source compute node or not. If set to True,
it will ignore error instances from evacuation from a failed source compute
node. Otherwise, it will evacuate error instances along with other
instances from a failed source compute node.
[instance_failure]\process_all_instances
Enables the operator to decide whether all instances or only the
ones that have
[instance_failure]\ha_enabled_instance_metadata_key set to True
should be recovered from instance failure events. If set to True,
it will execute instance failure recovery actions for an instance
irrespective of whether that particular instance has
[instance_failure]\ha_enabled_instance_metadata_key set to True or
not. Otherwise, it will only execute instance failure recovery actions
for an instance which has
[instance_failure]\ha_enabled_instance_metadata_key set to True.
Enables the operators to decide on the instance metadata key naming that
affects the per-instance behavior of
[instance_failure]\process_all_instances. The default is the same for
both failure types, which include host and instance, but you can
override the value to make the metadata key different per failure type.
Configure monitoring of cloud workload availability¶
MOSK enables cloud operators to oversee the availability of
workloads hosted in their OpenStack infrastructure through the monitoring of
floating IP addresses availability (Cloudpprober) and network port availability
(Portprober).
For the feature description and usage requirements, refer to
Workload monitoring.
Configure floating IP address availability monitoring¶
Available since MOSK 23.2TechPreview
MOSK allows you to monitor the floating IP address
availability through the Cloudprober service. This section explains the details
of the service configuration.
By default, for outgoing traffic, the IP address for the Cloudprober Pod
is translated to the node IP address. In this procedure, we assume no
further translation of that node IP address on the path between the node
and floating network.
Identify the node IP address used for traffic destined to floating
network by selecting the IP address from the floating network and
running the following command on each OpenStack control plane node:
Verify that the instances have been added successfully.
Cloudprober uses auto-discovery of instances on periodic basis. Therefore,
wait for the discovery interval to pass (defaults to 600 seconds) and
execute the following command inside the keystone-client Pod:
You can adjust the instance auto-discovery interval in
the OpenStackDeployment object. However, Mirantis does not
recommend setting it to too low values to avoid high load on
the OpenStack API:
spec:features:cloudprober:discovery:interval:300
Now, you can start seeing the availability of instances floating IP
addresses per OpenStack compute node and project, as well as
viewing the probe statistics for individual instance floating IP addresses
through the OpenStack Instances Availability dashboard
in Grafana.
MOSK allows you to monitor the network port availability
through the Portprober service.
The Portprober service is enabled by default when the Cloudprober service
is enabled as described above, on clouds running OpenStack Antelope or newer
version and using Neutron OVS backend for networking.
To manage a running Ceph cluster, for example, to add or remove a Ceph OSD,
remove a Ceph node, replace a failed physical disk with a Ceph node, or
update your Ceph cluster, refer to
Mirantis Container Cloud Operations Guide: Manage Ceph.
Once you enable Ceph Object Gateway (radosgw) as described in
Mirantis Container Cloud: Enable Ceph RGW Object Storage,
you can configure the Transport Layer Security (TLS) protocol for a Ceph Object
Gateway public endpoint using the following options:
Using MOSK TLS, if it is enabled and exposes its
certificates and domain for Ceph.
In this case, Ceph Object Gateway will automatically create an ingress rule
with MOSK certificates and domain to access the Ceph
Object Gateway public endpoint.
Therefore, you only need to reach the Ceph Object Gateway public and internal
endpoints and set the CA certificates for a trusted TLS connection.
Using custom ingress specified in the KaaSCephCluster CR. In this
case, Ceph Object Gateway public endpoint will use the public domain
specified using the ingress parameters.
Caution
External Ceph Object Gateway service is not supported and will
be deleted during update. If your system already uses endpoints of an
external Ceph Object Gateway service, reconfigure them to the ingress
endpoints.
Caution
When using a custom or OpenStack ingress, ensure to configure
the DNS name for RGW to target an external IP address of that ingress.
If there is no OpenStack or custom ingress available, point the DNS to
an external load balancer of RGW.
Note
Since MOSK 23.3, if the cluster has
tls-proxy enabled, TLS certificates specified in ingress objects,
including those configured in the KaaSCephCluster specification,
are disregarded. Instead, common certificates are applied to all ingresses
from the OpenStackDeployment object. This implies that tlsCert and
other ingress certificates specified in KaaSCephCluster are ignored,
and the common certificate from the OpenStackDeployment object is used.
This section also describes how to specify a custom public endpoint for the
Object Storage service.
To configure Ceph Object Gateway TLS:
Verify whether MOSK TLS is enabled. The
spec.features.ssl.public_endpoints section should be specified in the
OpenStackDeployment CR.
Configure Ceph Object Gateway TLS using a custom ingress:
Warning
The rgw section is deprecated and the ingress
parameters are moved under cephClusterSpec.ingress. If you continue
using rgw.ingress, it will be automatically translated into
cephClusterSpec.ingress during the MOSK cluster
release update.
Open the KaasCephCluster CR for editing.
Specify the ingress parameters:
publicDomain - domain name to use for the external service.
Caution
Since MOSK 23.3, the default
ingress controller does not support publicDomain values
different from the OpenStack ingress public domain. Therefore,
if you intend to use the default OpenStack ingress controller
for your Ceph Object Storage public endpoint, plan to use the
same public domain as your OpenStack endpoints.
cacert - Certificate Authority (CA) certificate, used for the
ingress rule TLS support.
tlsCert - TLS certificate, used for the ingress rule TLS support.
tlsKey - TLS private key, used for the ingress rule TLS support.
customIngressOptional -
includes the following custom Ingress Controller parameters:
className - the custom Ingress Controller class name. If not
specified, the openstack-ingress-nginx class name is used by
default.
nginx.ingress.kubernetes.io/rewrite-target is set to /
nginx.ingress.kubernetes.io/upstream-vhost is set to
<rgwName>.rook-ceph.svc.
The value for <rgwName> is
spec.cephClusterSpec.objectStorage.rgw.name.
Optional annotations:
nginx.ingress.kubernetes.io/proxy-request-buffering:"off"
that disables buffering for ingress to prevent the
413 (Request Entity Too Large) error when uploading large
files using radosgw.
nginx.ingress.kubernetes.io/proxy-body-size:<size> that
increases the default uploading size limit to prevent the
413 (Request Entity Too Large) error when uploading large
files using radosgw. Set the value in MB (m) or KB
(k). For example, 100m.
An ingress rule is by default created with an internal
Ceph Object Gateway service endpoint as a backend. Also,
rgwdnsname is specified in the Ceph configuration and is set
to <rgwName>.rook-ceph.svc by default. You can override this
option using the spec.cephClusterSpec.rookConfig key-value
parameter. In this case, also change the corresponding ingress
annotation.
For clouds with the publicDomain parameter specified, align
the upstream-vhost ingress annotation with the name of the
Ceph Object Storage and the specified public domain.
Ceph Object Storage requires the upstream-vhost and
rgwdnsname parameters to be equal. Therefore, override the
default rgwdnsname to the corresponding ingress annotation
value.
To access internal and public Ceph Object Gateway endpoints:
Select from the following options:
Note
If you are using the HTTP scheme instead of HTTPS, skip
obtaining CA certificates and add the following configuration to
the KaaSCephCluster object on a management cluster:
To access Ceph Object Gateway with an internal endpoint:
Obtain the internal endpoint name for Ceph Object Gateway:
kubectl-nrook-cephgetsvc-lapp=rook-ceph-rgw
The internal endpoint for Ceph Object Gateway has the
https://<internal-svc-name>.rook-ceph.svc:<rgw-secure-port>/
format, where <rgw-secure-port> is
spec.rgw.gateway.securePort specified in the
KaaSCephCluster CR.
Substitute <objectStorageName> with the Ceph Object Storage name and
<customPublicEndpoint> with the public endpoint with a custom public
domain.
If one or both endpoints are omitted in the list, add the missing
endpoints to the hostnames list in the zonegroup.json file and
update Ceph Object Gateway zonegroup configuration:
Once done, Ceph Object Gateway becomes available by the custom public endpoint
with an S3 API client, OpenStack Swift CLI, and OpenStack Horizon Containers
plugin.
Ceph Controller provides the capability to specify configuration options for
the Ceph cluster through the spec.cephClusterSpec.rookConfig key-value
parameter of the KaaSCephCluster resource as if they were set in a usual
ceph.conf file. For details, see
Mirantis Container Cloud Operations Guide: Ceph advanced configuration.
However, if rookConfig is empty but the
spec.cephClsuterSpec.objectStore.rgw section is defined, Ceph Controller
specifies the following OpenStack-related default configuration options for
each Ceph cluster. For other default options, see Mirantis Container Cloud
Operations Guide: Ceph default configuration options.
Ceph Object Gateway options, which you can override using the rookConfig
parameter:
When you use Ceph Object Gateway server-side encryption (SSE),
unencrypted data sent over HTTPS is stored encrypted by the Ceph Object Gateway
in the Ceph cluster. The current implementation integrates Barbican as a key
management service.
The object storage SSE feature is enabled by default in MOSK
deployments with Barbican. To use object storage SSE, the AWS CLI S3 client is
used.
In the output, capture the first value as the <user-id>,
which is c63b70134e0845a2b13c3f947880f66a in the above
example.
Specify the ceph-rgw user in the Barbican ACL:
openstackacluseradd--user<user-id><secret-href>
Substitute <user-id> with the corresponding value from the output of
the previous command and <secret-href> with the corresponding value
obtained in step 3.
The following procedure illustrates the process of setting a bucket policy for
a bucket between two OpenStack users.
Due to specifics of the Ceph integration with OpenStack projects, you should
configure the bucket policy for OpenStack users indirectly through setting
permissions for corresponding OpenStack projects.
For illustration purposes, we use the following names in the procedure:
test01 for the bucket
user-a, user-t for the OpenStack users
project-a, project-t for the OpenStack projects
To configure an Amazon S3 bucket policy for OpenStack users:
Specify the rookConfig parameter in the cephClusterSpec section of
the KaaSCephCluster custom resource:
Obtain the values from the access and secret fields to connect with
Ceph Object Storage trough the s3cmd tool.
Note
The s3cmd is a free command-line tool for uploading, retrieving,
and managing data in Amazon S3 and other cloud storage service providers
that use the S3 protocol. You can download the s3cmd tool from
Amazon S3 tools: Download s3cmd.
Create bucket users and configure a bucket policy for the project-t
OpenStack project similarly to the procedure described in
Mirantis Container Cloud Operations Guide:
Set a bucket policy for a Ceph Object Storage user.
Ceph integration does not allow providing permissions for OpenStack users
directly. Therefore, you need to set permissions for the project that
corresponds to the user:
Ceph pool target ratio defines for the Placement Group (PG) autoscaler the
amount of data the pools are expected to acquire over time in relation to each
other. You can set initial PG values for each Ceph pool. Otherwise, the
autoscaler starts with the minimum value and scales up, causing a lot of data
to move in the background.
You can allocate several pools to use the same device class, which is a solid
block of available capacity in Ceph. For example, if three pools
(kubernetes-hdd, images-hdd, and volumes-hdd) are set to use the
same device class hdd, you can set the target ratio for Ceph pools to
provide 80% of capacity to the volumes-hdd pool and distribute the
remaining capacity evenly between the two other pools. This way, Ceph pool
target ratio instructs Ceph on when to warn that a pool is running out of free
space and, at the same time, instructs Ceph on how many placement groups Ceph
should allocate/autoscale for a pool for better data distribution.
Ceph pool target ratio is not a constant value and you can change it according
to new capacity plans. Once you specify target ratio, if the PG number of a
pool scales, other pools with specified target ratio will automatically scale
accordingly.
For illustration purposes, the procedure below uses raw capacity of 185 TB
or 189440 GB.
Design Ceph pools with the considered device class upper bounds of the
possible capacity. For example, consider the hdd device class that
contains the following pools:
The kubernetes-hdd pool will contain not more than 2048 GB.
The images-hdd pool will contain not more than 2048 GB.
The volumes-hdd pool will contain 50 GB per VM. The upper bound of
used VMs on the cloud is 204, the pool replicated size is 3.
Therefore, calculate the upper bounds for volumes-hdd:
50 GB per VM * 204 VMs * 3 replicas=30600 GB
The backup-hdd pool can be calculated as a relative of
volumes-hdd. For example, 1 volumes-hdd storage unit per 5
backup-hdd units.
The vms-hdd is a pool for ephemeral storage Copy on Write (CoW). We
recommend designing the amount of ephemeral data it should store. For
example purposes, we use 500 GB. However, in reality, despite the CoW data
reduction, this value is very optimistic.
Note
If dataPool is replicated and Ceph Object Store is planned for
intensive use, also calculate upper bounds for dataPool.
Calculate target ratio for each considered pool. For example:
If required, calculate the target ratio for erasure-coded pools.
Due to erasure-coded pools splitting each object into K data parts
and M coding parts, the total used storage for each object is less
than that in replicated pools. Indeed, M is equal to the number of
OSDs that can be missing from the cluster without the cluster experiencing
data loss. This means that planned data is stored with an efficiency
of (K+M)/2 on the Ceph cluster. For example, if an erasure-coded data
pool with K=2,M=2 planned capacity is 200 GB, then the total used
capacity is 200*(2+2)/2, which is 400 GB.
Open the KaasCephCluster CR of a managed cluster for editing:
In the spec.cephClusterSpec.pools section, specify the calculated
relatives as parameters.target_size_ratio for each considered
erasure-coded pool. For example:
Note
The parameters section is a key-value mapping where
the value is of the string type and should be quoted.
After the Ceph pool becomes available, it is automatically specified as an
additional Cinder backend and registered as a new volume type, which you can
use to create Cinder volumes.
Using the Grafana web UI, you can view the visual representation of the metric
graphs based on the time series databases.
This section describes only the OpenStack-related Grafana dashboards. For
other dashboards, including the system, Kubernetes, Ceph, and StackLight
dashboards that can contain information about both OpenStack and
MOSK clusters, see
Mirantis Container Cloud Operations Guide: View Grafana dashboards.
Note
Some Grafana dashboards include a View logs in OpenSearch
Dashboards link to immediately view relevant logs in the OpenSearch
Dashboards web UI.
Grafana dashboards that present node data have an additional
Node identifier drop-down menu. By default, it is set to
machine to display short names for Kubernetes nodes.
To display Kubernetes node name labels, change this option to
node.
From the drop-down list, select the required dashboard to inspect
the status and statistics of the corresponding service deployed in Mirantis
OpenStack on Kubernetes:
Dashboard
Description
OpenStack - Overview
Provides general information on OpenStack services resources
consumption, API errors, deployed OpenStack compute nodes and block
storage usage.
OpenStack Ingress controller
Available since MOSK 23.3. Monitors the number
of requests, response times and statuses, as well as the number of
Ingress SSL certificates including expiration time and resources usage.
OpenStack Instances Availability
Available since MOSK 23.2.
Provides information about the availability of instance floating IPs
per OpenStack compute node and project. Also, enables monitoring
of probe statistics for individual instance floating IPs.
OpenStack PortProber
Available since MOSK 24.2.
Provides information about the availability of Neutron ports
per OpenStack compute node, project, and port owner.
OpenStack PowerDNS
Available since MOSK 24.3.
Provides different stats about OpenStack PowerDNS servers such as
connections, resources, queries, rings, errors, and other.
OpenStack Usage Efficiency
Available since MOSK 23.3.
Provides information about requested (allocated) CPU and memory
usage efficiency on a per-project and per-flavor basis. Aims to
identify flavors that specific projects are not effectively using,
with allocations significantly exceeding actual usage. Also,
evaluates per-instance underuse for specific projects.
KPI - Provisioning
Provides provisioning statistics for OpenStack compute instances,
including graphs on VM creation results by day.
Cinder
Provides graphs on the OpenStack Block Storage service health, HTTP
API availability, pool capacity and utilization, number of created
volumes and snapshots.
Glance
Provides graphs on the OpenStack Image service health, HTTP API
availability, number of created images and snapshots.
Gnocchi
Provides panels and graphs on the Gnocchi health and HTTP API
availability.
Heat
Provides graphs on the OpenStack Orchestration service health, HTTP
API availability and usage.
Ironic OpenStack
Provides graphs on the OpenStack Bare Metal Provisioning service
health, HTTP API availability, provisioned nodes by state and
installed ironic-conductor backend drivers.
Keystone
Provides graphs on the OpenStack Identity service health, HTTP API
availability, number of tenants and users by state.
Neutron
Provides graphs on the OpenStack networking service health, HTTP API
availability, agents status and usage of Neutron L2 and L3 resources.
NGINX Ingress controller
Not recommended. Deprecated since MOSK 23.3 and
is removed in MOSK 24.1. Use
OpenStack Ingress controller instead.
Monitors the number of requests, response times and statuses, as
well as the number of Ingress SSL certificates including expiration
time and resources usage.
Nova - Availability Zones
Provides detailed graphs on the OpenStack availability zones and
hypervisor usage.
Nova - Hypervisor Overview
Provides a set of single-stat panels presenting resources usage by
host.
Nova - Instances
Provides graphs on libvirt Prometheus exporter health and resources
usage. Monitors the number of running instances and tasks and allows
sorting the metrics by top instances.
Nova - Overview
Provides graphs on the OpenStack compute services
(nova-scheduler, nova-conductor, and nova-compute)
health, as well as HTTP API availability.
Nova - Tenants
Provides graphs on CPU, RAM, disk throughput, IOPS, and space usage
and allocation and allows sorting the metrics by top tenants.
Nova - Users
Provides graphs on CPU, RAM, disk throughput, IOPS, and space usage
and allocation and allows sorting the metrics by top users.
Nova - Utilization
Provides detailed graphs on Nova hypervisor resources capacity and
consumption.
Memcached
Memcached Prometheus exporter dashboard. Monitors Kubernetes
Memcached pods and displays memory usage, hit rate, evicts and
reclaims rate, items in cache, network statistics, and commands rate.
MySQL
MySQL Prometheus exporter dashboard. Monitors Kubernetes MySQL pods,
resources usage and provides details on current connections and
database performance.
RabbitMQ
RabbitMQ Prometheus exporter dashboard. Monitors Kubernetes RabbitMQ
pods, resources usage and provides details on cluster utilization and
performance.
Cassandra
Provides graphs on Cassandra clusters’ health, ongoing operations,
and resource consumption.
Kafka
Provides graphs on Kafka clusters’ and broker health, as well as
broker and topic usage.
Redis
Provides graphs on Redis clusters’ and pods’ health, connections,
command calls, and resource consumption.
Tungsten Fabric Controller
Provides graphs on the overall Tungsten Fabric Controller cluster
processes and usage.
Tungsten Fabric vRouter
Provides graphs on the overall Tungsten Fabric vRouter cluster
processes and usage.
ZooKeeper
Provides graphs on ZooKeeper clusters’ quorum health and resource
consumption.
OpenSearch Dashboards is part of the StackLight logging stack. Using the
OpenSearch Dashboards web UI, you can view the visual representation of your
OpenStack deployment notifications.
The Notifications dashboard provides visualizations on the number
of notifications over time per source and severity, host, and breakdowns.
The dashboard includes search.
This section provides an overview of the available predefined OpenStack-related
StackLight alerts. To view the alerts, use the Prometheus web UI. To view the
firing alerts, use the Alertmanager or Alerta web UI.
The {{ $labels.namespace }}/{{ $labels.pod }}
MariaDB node in the {{ $labels.cluster }} cluster has
high table lock waits of {{ $value }} percentage
(more than 30).
An average of {{ $value }} evictions occurred in the Memcached
database cluster {{ $labels.cluster }} in the
{{ $labels.namespace }} namespace during the last minute.
This section describes the alerts for the OpenStack SSL certificates.
By default, these alerts are disabled. To enable them, set
openstack.externalFQDNs.enabled to true. For details, see
Configuration options for SSL certificates.
SSL certificate for an OpenStack service expires on {{ $value | humanizeTimestamp }}
Description
The SSL certificate for the OpenStack {{ $labels.namespace }}/{{ $labels.service_name }}
service endpoints expires on {{ $value | humanizeTimestamp }},
less than 10 days are left.
SSL certificate for an OpenStack service expires on {{ $value | humanizeTimestamp }}
Description
The SSL certificate for the OpenStack {{ $labels.namespace }}/{{ $labels.service_name }}
service endpoints expires on {{ $value | humanizeTimestamp }},
less than 30 days are left.
{{$labels.service_name}} RabbitMQ Exporter Prometheus target is
down.
Description
Prometheus fails to scrape metrics from the
{{ $labels.pod }} Pod of the
{{ $labels.namespace }}/{{ $labels.service_name }}
on the {{ $labels.node }} node.
RabbitMQ file descriptors usage is high for the last 10 minutes.
Description
The {{$labels.node}} server of the {{$labels.cluster}}
RabbitMQ cluster in the {{$labels.namespace}} namespace has high
file descriptor usage of {{$value}}%.
DNS probe failure for {{ $labels.target_name }}{{ $labels.target_type }}
Description
The DNS probe failed at least 3 times for the DNS {{ $labels.target_type }}{{ $labels.target_name }} using the {{ $labels.protocol }} protocol
in the last 20 minutes.
DNS probe target experienced outage for {{ $labels.target_name }}{{ $labels.target_type }}
Description
Prometheus failed to probe the DNS {{ $labels.target_type }}{{ $labels.target_name }}
3 times using the {{ $labels.protocol }} protocol in the last 20 minutes.
High DNS query duration for {{ $labels.target_name }}{{ $labels.target_type }}
Description
The DNS query duration for the DNS {{ $labels.target_type }}{{ $labels.target_name }} using the {{ $labels.protocol }} protocol
exceeded 3 seconds at least 3 times in the last 20 minutes.
The {{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in
the {{ $labels.cassandra_cluster }} cluster reports an increased
number of authentication failures.
The average hit rate for the {{ $labels.cache }} cache in the
{{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in the
{{ $labels.cassandra_cluster }} cluster is below 85%.
The {{ $labels.namespace }}/{{ $labels.pod}} Cassandra Pod in
the {{ $labels.cassandra_cluster }} cluster reports an increased
number of {{ $labels.operation }} operation failures. A failure is a
non-timeout exception.
Cassandra client {{ $labels.operation }} request is unavailable.
Description
The {{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in
the {{ labels.cassandra_cluster }} cluster reports an increased
number of {{ $labels.operation }} operations ending with
UnavailableException. There are not enough replicas alive to perform
the {{ $labels.operation }} query with the requested consistency
level.
The {{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in
the {{ labels.cassandra_cluster }} cluster reports that
{{ $value }} compaction executor tasks are blocked.
The pending compaction tasks in the
{{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in the
{{ labels.cassandra_cluster }} cluster reached the threshold of 100
on average as measured over 30 minutes. This may occur due to a too low
cluster I/O capacity.
The {{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in
the {{ $labels.cassandra_cluster }} cluster reports an increased
number of connection timeouts between nodes.
The {{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in
the {{ $labels.cassandra_cluster }} cluster reports that
{{ $value } flush writer tasks are blocked.
The {{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in
the {{ $labels.cassandra_cluster }} cluster reports an increased
number of hints. Replica nodes are not available to accept mutation due
to a failure or maintenance.
The {{ $labels.namespace}}/{{ $labels.pod }} Cassandra Pod in
the {{ $labels.cassandra_cluster }} cluster reports that
{{ $value }} repair tasks are blocked.
The {{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in
the {{ $labels.cassandra_cluster }} cluster reports an increased
number of storage exceptions.
The {{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in
the {{ $labels.cassandra_cluster }} cluster scanned {{ $value }}
tombstones in 99% of read queries.
The {{$labels.namespace}}/{{$labels.pod}} Cassandra Pod in the
{{$labels.cassandra_cluster}} cluster scanned {{$value}}
tombstones in 99% of read queries.
The {{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in
the {{ $labels.cassandra_cluster }} cluster scanned {{ $value }}
tombstones in 99% of read queries.
The {{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in
the {{ $labels.cassandra_cluster }} cluster scanned {{ $value }}
tombstones in 99% of read queries.
The {{ $labels.namespace }}/{{ $labels.pod }} Cassandra Pod in
the {{ $labels.cassandra_cluster }} cluster reports over 1-second
view/write latency for 99% of requests.
Unclean Kafka broker was elected as cluster leader.
Description
A Kafka broker that has not finished the replication state has been
elected as leader in {{ $labels.cluster }} within the
{{ $labels.namespace }} namespace.
The {{ $labels.cluster }} Redis cluster in the
{{ $labels.namespace }} namespace is not replicating to all
replicas. Consider verifying the Redis replication status.
Using alert inhibition rules, Alertmanager decreases alert noise by suppressing
dependent alerts notifications to provide a clearer view on the cloud status
and simplify troubleshooting. Alert inhibition rules are enabled by default.
The following table describes the dependency between the OpenStack-related
alerts. For other alerts that can contain information about both OpenStack and
MOSK clusters, see
Mirantis Container Cloud Operations Guide: Alert dependencies.
Once an alert from the Alert column raises, the alert from the
Inhibits and rules column will be suppressed with the
Inhibited status in the Alertmanager web UI.
The Inhibits and rules column lists the labels and conditions, if
any, for the inhibition to apply.
Alert
Inhibits and rules
CassandraTombstonesTooManyCritical
CassandraTombstonesTooManyMajor with the same cassandra_cluster,
namespace, and pod labels
CassandraTombstonesTooManyMajor
CassandraTombstonesTooManyWarning with the same
cassandra_cluster, namespace, and pod labels
This section describes how to configure StackLight in your Mirantis OpenStack
on Kubernetes deployment and includes the description of OpenStack-related
StackLight parameters and their verification. For other available configuration
keys and their configuration verification, see
Mirantis Container Cloud Operations Guide: Manage StackLight.
Specifies the interval of metrics gathering from the OpenStack API. Set
to 1m by default.
1m, 3m
openstack.telegraf.insecure (bool)
Enables or disables the server certificate chain and host name
verification. Set to true by default.
true or false
openstack.telegraf.skipPublicEndpoints (bool)
Enables or disables HTTP probes for public endpoints from the OpenStack
service catalog. Set to false by default, meaning that Telegraf
verifies all endpoints from the OpenStack service catalog, including
the public, admin, and internal endpoints.
External FQDN used to communicate with OpenStack services for
certificates monitoring. The option is deprecated, use
openstack.externalFQDNs.enabled instead.
https://os.ssl.mirantis.net/
openstack.externalFQDNs.enabled (bool)
External FQDN used to communicate with OpenStack services. Used for
certificates monitoring. Set to false by default.
true or false
openstack.insecure (string)
Defines whether to verify the trust chain of the OpenStack endpoint SSL
certificates during monitoring.
Available since MOSK 23.3. Defines the timeout of
the tungstenfabric-exporter client requests. Set to 5s by default.
tungstenFabricMonitoring:exportersTimeout:"5s"
tungstenFabricMonitoring.analyticsEnabled (bool)
Available since MOSK 24.1. Enables or disables
monitoring of the Tungsten Fabric analytics services.
In MOSK 24.1, defaults to true.
Since MOSK 24.2, the default value is set
automatically based on the real state of the Tungsten Fabric analytics
services (enabled or disabled) in the Tungsten Fabric cluster.
In the Grafana web UI, verify that the OpenStack dashboards are
present and not empty.
In the Prometheus web UI, click Alerts and verify that
the OpenStack alerts are present in the list of alerts.
openstack.gnocchi.enabled
In the Grafana web UI, verify that the Gnocchi dashboard
is present and not empty. Alternatively, verify that the Gnocchi
dashboard ConfigMap is present:
The Tungsten Fabric cluster update is performed during the
MOSK cluster release update.
The control plane update is performed automatically. To complete
the data plane update, you will need to manually remove the vRouter pods.
See Cluster update for details.
MOSK enables you to perform the automatic TF
data backup using the tf-dbbackup-job cron job. Also, you can configure
a remote NFS storage for TF data backups. For configuration details,
refer to the Tungsten Fabric database section in Reference Architecture.
This section provides instructions on how to back up the TF data manually
if needed.
This section describes how to restore the Cassandra and ZooKeeper databases
from the backups created either automatically or manually as described in
Back up TF databases.
Caution
The data backup must be consistent across all systems
because the state of the Tungsten Fabric databases is associated with
other system databases, such as OpenStack databases.
When restoring the data, MOSK stops the
Tungsten Fabric services and recreates the database backends that
include Cassandra, Kafka, and ZooKeeper.
Note
The automated restoration process relies on automated database
backups configured by the Tungsten Fabric Operator. The Tungsten Fabric
data is restored from the backup type specified in the tf-dbBackup
section of the Tungsten Fabric Operator custom resource, or the default
pvc type if not specified. For the configuration details, refer to
Periodic Tungsten Fabric database backups.
Optional. Specify the name of the backup to be used for the
dbDumpName parameter. By default, the latest db-dump is used.
...
Status:
Health: Ready
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal TfDaemonSetsDeleted 18m (x4 over 18m) tf-dbrestore TF DaemonSets were deleted
Normal zookeeperOperatorScaledDown 18m tf-dbrestore zookeeper operator scaled to 0
Normal zookeeperStsScaledDown 18m tf-dbrestore tf-zookeeper statefulset scaled to 0
Normal cassandraOperatorScaledDown 17m tf-dbrestore cassandra operator scaled to 0
Normal cassandraStsScaledDown 17m tf-dbrestore tf-cassandra-config-dc1-rack1 statefulset scaled to 0
Normal cassandraStsPodsDeleted 16m tf-dbrestore tf-cassandra-config-dc1-rack1 statefulset pods deleted
Normal cassandraPVCDeleted 16m tf-dbrestore tf-cassandra-config-dc1-rack1 PVC deleted
Normal zookeeperStsPodsDeleted 16m tf-dbrestore tf-zookeeper statefulset pods deleted
Normal zookeeperPVCDeleted 16m tf-dbrestore tf-zookeeper PVC deleted
Normal kafkaOperatorScaledDown 16m tf-dbrestore kafka operator scaled to 0
Normal kafkaStsScaledDown 16m tf-dbrestore tf-kafka statefulset scaled to 0
Normal kafkaStsPodsDeleted 16m tf-dbrestore tf-kafka statefulset pods deleted
Normal AllOperatorsStopped 16m tf-dbrestore All 3rd party operator's stopped
Normal CassandraOperatorScaledUP 16m tf-dbrestore CassandraOperator scaled to 1
Normal CassandraStsScaledUP 16m tf-dbrestore Cassandra statefulset scaled to 3
Normal CassandraPodsActive 12m tf-dbrestore Cassandra pods active
Normal ZookeeperOperatorScaledUP 12m tf-dbrestore Zookeeper Operator scaled to 1
Normal ZookeeperStsScaledUP 12m tf-dbrestore Zookeeper Operator scaled to 3
Normal ZookeeperPodsActive 12m tf-dbrestore Zookeeper pods active
Normal DBRestoreFinished 12m tf-dbrestore TF db restore finished
Normal TFRestoreDisabled 12m tf-dbrestore TF Restore disabled
Note
If the restoration was completed several hours ago, events may not be
shown with kubectl describe. If so, verify the Status
field and get events using the following command:
After the job completes, it can take around 15 minutes to stabilize
tf-control services. If some pods are still in the CrashLoopBackOff
status, restart these pods manually one by one:
List the tf-control pods:
kubectl-ntfgetpods-lapp=tf-control
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only the tf-control
pod that will be restarted.
Restart the tf-control pods sequentially:
kubectl-ntfdeletepodtf-control-<hash>
When the restoration completes, MOSK automatically sets
dbRestoreMode to false in the Tungsten Fabric Operator custom
resource.
Delete the tfdbrestore object from the cluster to be able to perform
the next restoration:
Terminate the configuration and analytics services and stop the database
changes associated with northbound APIs on all systems.
Note
The Tungsten Fabric Operator watches related resources and keeps
them updated and healthy. If any resource is deleted or changed, the
Tungsten Fabric Operator automatically runs reconciling to create
a resource or change the configuration back to the required state.
Therefore, the Tungsten Fabric Operator must not be running during
the data restoration.
Scale the tungstenfabric-operator deployment to 0 replicas:
Do not use the Tungsten Fabric API container used for the backup
file creation. In this case, a session with the Cassandra and ZooKeeper
databases is created once the Tungsten Fabric API service starts but
the Tungsten Fabric configuration services are stopped. The tools for
the data backup and restore are available only in the Tungsten Fabric
configuration API container. Using the steps below, start a blind
container based on the config-api image.
Deploy a pod using the configuration API image obtained in the first
step:
Note
Since MOSK 24.1, if your deployment uses the
cql Cassandra driver, update the value of the
CONFIGDB_CASSANDRA_DRIVER environment variable to cql.
To avoid network downtime, do not restart all pods
simultaneously.
List the tf-control pods
kubectl-ntfgetpods-lapp=tf-control
Restart the tf-control pods one by one.
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
kubectl-ntfdeletepodtf-control-<hash>
Convert v1alpha1 TFOperator custom resource to v2¶
Available since MOSK 24.2
In 24.1, MOSK introduces the API v2 for Tungsten Fabric.
Since 24.2, Tungsten Fabric API v2 becomes default for new deployments and
includes the ability to convert the existing v1alpha1 TFOperator to v2.
During the update to the 24.3 series, the old Tungsten Fabric cluster
configuration API v1alpha1 is automatically converted and replaced
with the v2 version.
During cluster update to MOSK 24.3, the automatic
conversion of the TFOperator v1alpha1 to the v2 version takes place.
Therefore, there is no need to perform any manual conversion.
Warning
Since MOSK 24.3, start using the v2
TFOperator custom resource for any updates.
The v1alpha1 TFOperator custom resource remains in the cluster
but is no longer reconciled and will be automatically removed with
the next major cluster update.
MOSK 24.2
Caution
Conversion of TFOperator causes recreation of the Tungsten
Fabric service pods. Therefore, Mirantis recommends performing
the conversion during a maintenance window.
Update the tungstenfabric-operator Helm release values in
the corresponding ClusterRelease resource:
When the chart changes apply, the tungstenfabric-operator-convert-to-v2
job performs the following:
Saves the existing v1alpha1 TFOperator specification to the
tfoperator-v1alpha1-copy ConfigMap
Creates the v2 TFOperator custom resource
Removes the redundant v1alpha1 TFOperator custom resource
While the conversion is being performed, monitor the recreation of the
Tungsten Fabric service pods. Verify that TFOperator v2 has been
created successfully:
kubectl-ntfdescribetf.mirantis.comopenstack-tf
Reverse the conversion of v1alpha1 TFOperator to v2¶
MOSK 24.3
Caution
During the conversion reverse, the Tungsten Fabric service
pods will get updated. Therefore, Mirantis recommends performing
the procedure during the maintenance window.
Update Helm release values in the corresponding ClusterRelease
resource:
values:operator:convertToV2:false
When the controller starts, it should use the v1alpha1 TFOperator
custom resources for reconcilation.
MOSK 24.2
Caution
During the conversion reverse, the Tungsten Fabric service
pods will get recreated. Therefore, Mirantis recommends performing
the conversion during the maintenance window.
Update the TFOperator HelmBundle:
values:operator:convertToV2:false
Manually, delete the v2 TFOperator custom resource:
kubectl-ntfdeletetf.mirantis.comopenstack-tf
Manually, create the v1alpha1 TFOperator custom resource using data from
the tfoperator-v1alpha1-copy ConfigMap.
If one of the Tungsten Fabric (TF) controller nodes has failed, follow this
procedure to replace it with a new node.
To replace a TF controller node:
Note
Pods that belong to the failed node can stay in the Terminating
state.
If a failed node has tfconfigdb=enabled or tfanalyticsdb=enabled,
or both labels assigned to it, get and note down the IP addresses of
the Cassandra pods that run on the node to be replaced:
curl-s-H"X-Auth-Token: $(openstacktokenissue|awk'/ id / {print $4}')"http://tf-config-api.tf.svc:8082/config-nodes|jq
Remove the failed config node:
curl-s-H"X-Auth-Token: $(openstacktokenissue|awk'/ id / {print $4}')"-X"DELETE"<LINK_FROM_HREF_WITH_NODE_UUID>
Obtain the list of config-database and control nodes:
curl-s-H"X-Auth-Token: $(openstacktokenissue|awk'/ id / {print $4}')"http://tf-config-api.tf.svc:8082/config-database-nodes|jq
curl-s-H"X-Auth-Token: $(openstacktokenissue|awk'/ id / {print $4}')"http://tf-config-api.tf.svc:8082/control-nodes|jq
Identify the config-database and control nodes to be deleted
using the href field from the system output from the previous step.
Delete the nodes as required:
curl-s-H"X-Auth-Token: $(openstacktokenissue|awk'/ id / {print $4}')"-X"DELETE"<LINK_FROM_HREF_WITH_NODE_UUID>
Hosts the TF control plane services such as database,
messaging, api, svc, config.
tfconfig=enabled
tfcontrol=enabled
tfwebui=enabled
tfconfigdb=enabled
3
TF analytics
Hosts the TF analytics services.
tfanalytics=enabled
tfanalyticsdb=enabled
3
TF vRouter
Hosts the TF vRouter module and vRouter Agent.
tfvrouter=enabled
Varies
TF vRouter DPDK Technical Preview
Hosts the TF vRouter Agent in DPDK mode.
tfvrouter-dpdk=enabled
Varies
Note
TF supports only Kubernetes OpenStack workloads.
Therefore, you should label OpenStack compute nodes with
the tfvrouter=enabled label.
Note
Do not specify the openstack-gateway=enabled
and openvswitch=enabled labels for the OpenStack deployments with TF
as a networking backend.
Once you label the new Kubernetes node, new pods start scheduling on the
node. Though, pods that use Persistent Volume Claims are stuck in the
Pending state as their volume claims stay bounded to the local volumes
from the deleted node. To resolve the issue:
Delete the PersistentVolumeClaim (PVC) bounded to the local volume
from the failed node:
Clustered services that use PVC, such as Cassandra, Kafka,
and ZooKeeper, start the replication process when new pods move
to the Ready state.
Check the PersistenceVolumes (PVs) claimed by the deleted PVCs.
If a PV is stuck in the Released state, delete it manually:
kubectl-ntfdeletepv<PV>
Delete the pod that is using the removed PVC:
kubectl-ntfdeletepod<POD-NAME>
Verify that the pods have successfully started on the replaced controller
node and stay in the Ready state.
If the failed controller node had tfconfigdb=enabled or
tfanalyticsdb=enabled, or both labels assigned to it, remove old
Cassandra hosts from the config and analytics cluster configuration:
Get the host ID of the removed Cassandra host using the pod IP addresses
saved during Step 1:
Tungsten Fabric vRouter collocates with the OpenStack compute node. Therefore,
to delete the vRouter node from your cluster, follow the node deletion
procedure in Delete a compute node.
Additionally, you need to remove the vhost0 OpenStack port and
the Node object of the deleted node from the Tungsten Fabric database:
Log in to the keystone-client pod in the openstack namespace through
the command line.
Obtain the OpenStack token required to authenticate with the Tungsten Fabric
API service:
TOKEN=$(openstacktokenissue|awk'/ id / {print $4}')
Obtain the list of vRouter nodes to retrieve the link for the deleted node:
This section explains how to use the tungsten-pytest test set to
verify your Tungsten Fabric (TF) deployment. The tungsten-pytest test
set is part of the TF operator and allows for prompt verification of the
Kubernetes objects related to TF and basic verification of the TF services.
To verify the TF deployment using tungsten-pytest:
Enable the tf-test controller in the TF Operator resource for the
Operator to start the pod with the test set:
This section describes a simple load balancing configuration. As an example, we
use a topology for balancing the traffic between two HTTP servers listening on
port 80. The example topology includes the following parameters:
Backend servers 10.10.0.4 and 10.10.0.3 in the private-subnet
subnet run an HTTP application that listens on the TCP port 80.
The public-subnet subnet is a shared external subnet created by the cloud
operator and accessible from the Internet.
The created load balancer is accessible through an IP address from the public
subnet that will distribute web requests between the backend servers.
By default, MOSK uses the Octavia Tungsten
Fabric load balancing. Since 23.1, you can explicitly specify amphorav2
as a provider when creating a load balancer using the provider
argument:
openstackloadbalancercreate--provideramphorav2
Octavia Amphora load balancing is available as a Technology Preview
feature. For details, refer to Octavia Amphora load balancing.
The contrail-tools container provides a centralized location for all
available Tungsten Fabric tools and CLI commands. The container includes such
utilities as vif, flow, nh, and other tools
to debug network issues. MOSK deploys contrail-tools
using the Tungsten Fabric Operator through the TFOperator custom resource.
To enable the Tungsten Fabric contrail-tools Deployment:
Enable the tools Deployment in the TFOperator resource for the
operator to start the Pods with utilities to debug Tungsten Fabric on
nodes with the tfvrouter:enabled label:
Use the labels section to specify target nodes for
the contrail-tools Deployment. If the labels section
is not specified, the tf-tool-ctools-<xxxxx> Pods
will be scheduled to all available nodes in current Deployment.
Wait until the tf-tool-ctools-<xxxxx> Pods are ready in the tf
namespace.
Note
The <xxxxx> string in a Pod name consists of random
alpha-numeric symbols generated by Kubernetes to differentiate the
tf-tool-ctools Pods.
Use interactive shell in the tf-tool-ctools-<xxxxx> Pod to debug
current Deployment or run commands through kubectl, for example:
The tf-api-cli container provides access to the Tungsten Fabric
API through the command-line interface (CLI). See the
contrail-api-cli documentation
for details.
Note
The tf-api-cli tool was initially called contrail-api-cli.
To enable the Tungsten Fabric API CLI Deployment:
Enable the tf-cli Deployment in the TFOperator custom resource
to start the Pod with utilities to access the Tungsten Fabric API CLI:
This section describes how to replace a failed manager node in your
MOSK deployment. The procedure applies to the manager
nodes that are, for example, permanently failed due to a hardware failure and
remain in the NotReady state.
Modify network configuration on an existing machine¶
TechPreview
Note
Mirantis does not recommend modifying L2 templates in use
to prevent accidental cluster failures due to unsafe changes.
The list of risks posed by modifying L2 templates includes:
Services running on hosts cannot reconfigure automatically to switch to
the new IP addresses and/or interfaces.
Connections between services are interrupted unexpectedly, which can cause
data loss.
Incorrect configurations on hosts can lead to irrevocable loss of
connectivity between services and unexpected cluster partition or
disassembly.
To modify network configuration of an existing machine, you need to
create a new L2 template and change the assignment of the template for that
particular machine.
Warning
When a new network configuration is being applied on nodes,
sequential draining of corresponding nodes and re-running of LCM on them
occurs the same way as it is done during cluster update.
Duplicate the existing L2Template object associated with the machine
to be configured, ensuring that the duplicated L2Template:
Does not contain the ipam/DefaultForCluster label
Since MOSK 23.3, refers to the cluster using
the cluster.sigs.k8s.io/cluster-name label
Before MOSK 23.3, refers to the cluster using
Spec.clusterRef:<cluster-name>
Assign a new L2 template to an existing machine by editing the ipamhost
object associated with the required machine. Add the following fields to
the spec section:
Note
The IpamHost object is automatically created with the same
name as the related Machine object and is located in the same
namespace.
The following fields of the ipamHost status are renamed since
MOSK 23.1 in the scope of the L2Template and IpamHost objects
refactoring:
netconfigV2 to netconfigCandidate
netconfigV2state to netconfigCandidateState
netconfigFilesState to netconfigFilesStates (per file)
No user actions are required after renaming.
The format of netconfigFilesState changed after renaming. The
netconfigFilesStates field contains a dictionary of statuses of network
configuration files stored in netconfigFiles. The dictionary contains
the keys that are file paths and values that have the same meaning for each
file that netconfigFilesState had:
For a successfully rendered configuration file:
OK:<timestamp><sha256-hash-of-rendered-file>, where a timestamp
is in the RFC 3339 format.
For a failed rendering: ERR:<error-message>.
If the configuration is valid:
The netconfigCandidate field contains the Netplan configuration
file candidate rendered using the modified objects
The netconfigCandidateState and netconfigFilesStates fields
have the OK status
The netconfigFilesStates field contains the old date and checksum
meaning that the effective Netplan configuration is still based on the
previous versions of the modified objects
The messages field may contain some warnings but no errors
If the L2 template rendering fails, the candidate for Netplan
configuration is empty and its netconfigCandidateState status contains
an error message. A broken candidate for Netplan configuration cannot be
approved and become the effective Netplan configuration.
Warning
Do not proceed to the next step until you make sure that the
netconfigCandidate field contains the valid configuration and this
configuration meets your expectations.
Approve the new network configuration for the related IpamHost objects:
Once applied, the new configuration is copied to the netconfigFiles
field of the effective Netplan configuration, then copied to the
corresponding LCMMachine objects.
Verify the statuses of the updated IpamHost objects:
The following fields of the ipamHost status are renamed since
MOSK 23.1 in the scope of the L2Template and IpamHost objects
refactoring:
netconfigV2 to netconfigCandidate
netconfigV2state to netconfigCandidateState
netconfigFilesState to netconfigFilesStates (per file)
No user actions are required after renaming.
The format of netconfigFilesState changed after renaming. The
netconfigFilesStates field contains a dictionary of statuses of network
configuration files stored in netconfigFiles. The dictionary contains
the keys that are file paths and values that have the same meaning for each
file that netconfigFilesState had:
For a successfully rendered configuration file:
OK:<timestamp><sha256-hash-of-rendered-file>, where a timestamp
is in the RFC 3339 format.
For a failed rendering: ERR:<error-message>.
The new configuration is copied to the effective Netplan configuration and
both configurations are valid when:
The netconfigCandidateState and netconfigFilesStates fields have
the OK status and the same checksum
In the output of the above command, hash sums contained in the
bm_ipam_netconfig_files values must match those in the
IpamHost.status.netconfigFilesStates output. If so, the new
configuration is copied to LCMMachine objects.
Create Subnet objects for the following networks: LCM, workload,
tenant, and Ceph (where applicable).
Create a new L2 template that nodes in a new rack will use.
In this template, configure the external network to be either stretched
between racks or connected to the first rack only.
Caution
API/LCM network is the first rack LCM network in our example,
since a single-rack MOSK cluster was deployed first.
Therefore, only the first rack can contain Kubernetes master nodes that
provide access to Kubernetes API.
In the L2 template for the first rack, add IP routes pointing to
the networks in the new rack.
The following examples contain:
The modified L2 template for the first rack. Routes added to the second rack
are highlighted.
The new L2 template for the second rack with external network that is
stretched between racks. The IP gateway in the external network is used
as the default route on the nodes of the second rack.
Example of a modified L2 template for the first rack with routes
to the second rack
l3Layout:-subnetName:kaas-mgmtscope:globallabelSelector:kaas.mirantis.com/provider:baremetalkaas-mgmt-subnet:""-subnetName:k8s-lcmscope:namespace-subnetName:k8s-ext-ipamscope:namespace-subnetName:tenantscope:namespace-subnetName:k8s-podsscope:namespace-subnetName:ceph-frontscope:namespace-subnetName:ceph-backscope:namespace-subnetName:k8s-lcm-rack2scope:namespace-subnetName:tenant-rack2scope:namespace-subnetName:k8s-pods-rack2scope:namespace-subnetName:ceph-front-rack2scope:namespace-subnetName:ceph-back-rack2scope:namespacenpTemplate:|-version: 2ethernets:{{nic 0}}:dhcp4: falsedhcp6: falsematch:macaddress: {{mac 0}}set-name: {{nic 0}}mtu: 1500{{nic 1}}:dhcp4: falsedhcp6: falsematch:macaddress: {{mac 1}}set-name: {{nic 1}}mtu: 1500{{nic 2}}:dhcp4: falsedhcp6: falsematch:macaddress: {{mac 2}}set-name: {{nic 2}}mtu: 9050{{nic 3}}:dhcp4: falsedhcp6: falsematch:macaddress: {{mac 3}}set-name: {{nic 3}}mtu: 9050bonds:bond0:interfaces:- {{nic 0}}- {{nic 1}}parameters:mode: 802.3adtransmit-hash-policy: layer3+4mtu: 1500bond1:interfaces:- {{nic 2}}- {{nic 3}}parameters:mode: 802.3adtransmit-hash-policy: layer3+4mtu: 9050vlans:k8s-lcm-v:id: 738link: bond0k8s-pod-v:id: 731link: bond1mtu: 9000k8s-ext-v:id: 736link: bond1mtu: 9000tenant-vlan:id: 732link: bond1addresses:- {{ip "tenant-vlan:tenant"}}routes:# to 2nd rack of MOSK cluster- to: {{cidr_from_subnet "tenant-rack2"}}via: {{gateway_from_subnet "tenant"}}mtu: 9050ceph-front-v:id: 733link: bond1addresses:- {{ip "ceph-front-v:ceph-front"}}routes:# to 2nd rack of MOSK cluster- to: {{cidr_from_subnet "ceph-front-rack2"}}via: {{gateway_from_subnet "ceph-front"}}mtu: 9000ceph-back-v:id: 734link: bond1addresses:- {{ip "ceph-back-v:ceph-back"}}routes:# to 2nd rack of MOSK cluster- to: {{cidr_from_subnet "ceph-back-rack2"}}via: {{gateway_from_subnet "ceph-back"}}mtu: 9000bridges:k8s-lcm:interfaces: [k8s-lcm-v]addresses:- {{ip "k8s-lcm:k8s-lcm"}}nameservers:addresses: {{nameservers_from_subnet "k8s-lcm"}}routes:# to management network of Container Cloud cluster- to: {{cidr_from_subnet "kaas-mgmt"}}via: {{gateway_from_subnet "k8s-lcm"}}table: 101# fips network- to: 10.159.156.0/22via: {{gateway_from_subnet "k8s-lcm"}}table: 101# to 2nd rack of MOSK cluster- to: {{cidr_from_subnet "k8s-lcm-rack2"}}via: {{gateway_from_subnet "k8s-lcm"}}table: 101routing-policy:- from: {{cidr_from_subnet "k8s-lcm"}}table: 101k8s-pods:interfaces: [k8s-pod-v]addresses:- {{ip "k8s-pods:k8s-pods"}}routes:# to 2nd rack of MOSK cluster- to: {{cidr_from_subnet "k8s-pods-rack2"}}via: {{gateway_from_subnet "k8s-pods"}}mtu: 9000k8s-ext:interfaces: [k8s-ext-v]addresses:- {{ip "k8s-ext:k8s-ext-ipam"}}gateway4: {{gateway_from_subnet "k8s-ext-ipam"}}nameservers:addresses: {{nameservers_from_subnet "k8s-ext-ipam"}}mtu: 9000## FIP Bridgebr-fip:interfaces: [bond1]mtu: 9050
Example of a new L2 template for the second rack with external
network
l3Layout:-subnetName:kaas-mgmtscope:globallabelSelector:kaas.mirantis.com/provider:baremetalkaas-mgmt-subnet:""-subnetName:k8s-lcmscope:namespace-subnetName:k8s-ext-ipamscope:namespace-subnetName:tenantscope:namespace-subnetName:k8s-podsscope:namespace-subnetName:ceph-frontscope:namespace-subnetName:ceph-backscope:namespace-subnetName:k8s-lcm-rack2scope:namespace-subnetName:tenant-rack2scope:namespace-subnetName:k8s-pods-rack2scope:namespace-subnetName:ceph-front-rack2scope:namespace-subnetName:ceph-back-rack2scope:namespacenpTemplate:|-version: 2ethernets:{{nic 0}}:dhcp4: falsedhcp6: falsematch:macaddress: {{mac 0}}set-name: {{nic 0}}mtu: 1500{{nic 1}}:dhcp4: falsedhcp6: falsematch:macaddress: {{mac 1}}set-name: {{nic 1}}mtu: 1500{{nic 2}}:dhcp4: falsedhcp6: falsematch:macaddress: {{mac 2}}set-name: {{nic 2}}mtu: 9050{{nic 3}}:dhcp4: falsedhcp6: falsematch:macaddress: {{mac 3}}set-name: {{nic 3}}mtu: 9050bonds:bond0:interfaces:- {{nic 0}}- {{nic 1}}parameters:mode: 802.3adtransmit-hash-policy: layer3+4mtu: 1500bond1:interfaces:- {{nic 2}}- {{nic 3}}parameters:mode: 802.3adtransmit-hash-policy: layer3+4mtu: 9050vlans:k8s-lcm-v:id: 738link: bond0k8s-pod-v:id: 731link: bond1mtu: 9000k8s-ext-v:id: 736link: bond1mtu: 9000tenant-vlan:id: 732link: bond1addresses:- {{ip "tenant-vlan:tenant-rack2"}}routes:# to 2nd rack of MOSK cluster- to: {{cidr_from_subnet "tenant"}}via: {{gateway_from_subnet "tenant-rack2"}}mtu: 9050ceph-front-v:id: 733link: bond1addresses:- {{ip "ceph-front-v:ceph-front-rack2"}}routes:# to 1st rack of MOSK cluster- to: {{cidr_from_subnet "ceph-front"}}via: {{gateway_from_subnet "ceph-front-rack2"}}mtu: 9000ceph-back-v:id: 734link: bond1addresses:- {{ip "ceph-back-v:ceph-back-rack2"}}routes:# to 2nd rack of MOSK cluster- to: {{cidr_from_subnet "ceph-back"}}via: {{gateway_from_subnet "ceph-back-rack2"}}mtu: 9000bridges:k8s-lcm:interfaces: [k8s-lcm-v]addresses:- {{ip "k8s-lcm:k8s-lcm-rack2"}}nameservers:addresses: {{nameservers_from_subnet "k8s-lcm-rack2"}}routes:# to management network of Container Cloud cluster- to: {{cidr_from_subnet "kaas-mgmt"}}via: {{gateway_from_subnet "k8s-lcm-rack2"}}table: 101# fips network- to: 10.159.156.0/22via: {{gateway_from_subnet "k8s-lcm-rack2"}}table: 101# to API/LCM network of MOSK cluster- to: {{cidr_from_subnet "k8s-lcm"}}via: {{gateway_from_subnet "k8s-lcm-rack2"}}table: 101routing-policy:- from: {{cidr_from_subnet "k8s-lcm-rack2"}}table: 101k8s-pods:interfaces: [k8s-pod-v]addresses:- {{ip "k8s-pods:k8s-pods-rack2"}}routes:# to 2nd rack of MOSK cluster- to: {{cidr_from_subnet "k8s-pods"}}via: {{gateway_from_subnet "k8s-pods-rack2"}}mtu: 9000k8s-ext:interfaces: [k8s-ext-v]addresses:- {{ip "k8s-ext:k8s-ext-ipam"}}gateway4: {{gateway_from_subnet "k8s-ext-ipam"}}nameservers:addresses: {{nameservers_from_subnet "k8s-ext-ipam"}}mtu: 9000## FIP Bridgebr-fip:interfaces: [bond1]mtu: 9050
Expand IP addresses capacity in an existing cluster¶
If the subnet capacity on your existing cluster is not enough to add new
machines, use the l2TemplateSelector feature to expand the IP addresses
capacity:
Create new Subnet object(s) to define additional address ranges for new
machines.
Set up routing between the existing and new subnets.
Create new L2 template(s) with the new subnet(s) being used in l3Layout.
Set up l2TemplateSelector in the Machine objects for new machines.
To expand IP addresses capacity for an existing cluster:
Verify the capacity of the subnet(s) currently associated with
the L2 template(s) used for cluster deployment:
If labelSelector is not used for the given subnet, use the
namespace value of the L2 template and the subnetName value
from the l3Layout section:
kubectlgetsubnet-n<namespace><subnetName>
If labelSelector is used for the given subnet, use the namespace
value of the L2 template and comma-separated key-value pairs from the
labelSelector section for the given subnet in the l3Layout
section:
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Note
Before MOSK 23.3, an L2 template requires
clusterRef:<clusterName> in the spec section. Since MOSK 23.3,
this parameter is deprecated and automatically migrated to the
cluster.sigs.k8s.io/cluster-name:<clusterName> label.
Create new objects:
Subnet with the user-defined/purpose:lcm-additional label.
L2Template with the alternative-template:“1” label.
The L2 template should reference the new Subnet object using the
user-defined/purpose:lcm-additional label in the labelSelector
field.
Note
The label name user-defined/purpose is used for illustration
purposes. Use any custom label name that differs from system names.
Use of a unique prefix such as user-defined/ is recommended.
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
Note
Before MOSK 23.3, an L2 template requires
clusterRef:<clusterName> in the spec section. Since MOSK 23.3,
this parameter is deprecated and automatically migrated to the
cluster.sigs.k8s.io/cluster-name:<clusterName> label.
You can also reference the new Subnet object by using its name
in the l3Layout section of the alternative-template L2 template.
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
After creation, the new machine will use the alternative
L2 template that uses the new-lcm-network subnet linked by L3Layout.
Deprecated since MOSK 24.2. Define additional address
ranges for MetalLB. For details, see the optional step for the MetalLB
service in Create subnets.
You can create one or several Subnet objects to extend the MetalLB
address pool with additional ranges. When the MetalLB traffic is routed
through the default gateway, you can add the MetalLB address ranges that
belong to different CIDR subnet addresses.
The kaas.mirantis.com/region label is removed from all
Container Cloud and MOSK objects in 24.1.
Therefore, do not add the label starting with these releases. On existing
clusters updated to these releases, or if added manually, Container Cloud
ignores this label.
You can use the Container Cloud API to restart a bare metal host in
Mirantis OpenStack for Kubernetes clusters. The workflow of the host restart
is as follows:
Setting the maintenance mode on the cluster that contains the target node.
Setting the maintenance mode on the target node for OpenStack and Container
Cloud to drain it from workloads. No new workloads will be provisioned to a
host in the maintenance mode.
Using the BareMetalHost object to initiate a hard reboot of the bare
metal server that hosts the node.
To restart a bare metal host:
Using kubeconfig of the Container Cloud management cluster, access the
Container Cloud API and open the Cluster object for editing:
kubectl-n<project-name>editcluster<cluster-name>
Add the following field to the spec section to set the maintenance mode
on the cluster:
spec:providerSpec:value:maintenance:true
Verify that the Cluster object status for Maintenance is
ready:true:
MOSK provides cloud operators with a unified tool to perform
automatic self-diagnostic checks on their clusters. This capability allows for
easier troubleshooting and preventing potential issues. For instance,
self-diagnostic checks can notify you of deprecated features that, if left
unresolved, may block upgrades to subsequent versions.
Examples of self-diagnostic checks include:
An SSL/TLS certificate is not set explicitly as plain text
Deprecated OpenStackDeploymentSecret does not exist
The section covers the limitations of Mirantis OpenStack for Kubernetes
(MOSK).
[3544] Due to a community issue,
Kubernetes pods may occasionally not be rescheduled on the nodes that are in
the NotReady state. As a workaround, manually reschedule the pods from
the node in the NotReady state using the
kubectl drain --ignore-daemonsets --force <node-uuid> command.
Mirantis OpenStack for Kubernetes (MOSK) provides a cloud operator
with a declarative interface to describe the desired configuration of
the cloud.
The program modules responsible for life cycle management of
MOSK components
extend the API of the underlying Kubernetes cluster with Custom Resources
(CRs).
These data structures define the services the cloud will provide and
specifics of its behavior.
CRs used in MOSK contain dozens of tunable parameters,
and the number is constantly growing with every new release as new capabilities
get added to the product. Also, each parameter value must be in a specific
format and within a range of valid values.
The purpose of the reference documents below is to provide cloud operators
with an up-to-date and comprehensive definition of the language they need
to use to communicate with MOSK:
This guide provides the usage instructions for a Mirantis OpenStack for Kubernetes
(MOSK) environment and is intended for the
cloud end user to successfully perform the OpenStack lifecycle management.
The section provides instructions on how to verify whether the Masakari service
has been correctly configured by the cloud operator and will recover an
instance from the process and compute node failures.
Depending on the Masakari service configuration,
you may need to mark instances with the HA_Enabled tag.
For more information about service configuration, refer to
Configure high availability with Masakari.
Depending on the Masakari service configuration,
you may need to mark instances with the HA_Enabled tag.
For more information about service configuration, refer to
Configure high availability with Masakari.
Application credentials is a mechanism in the MOSK
Identity service (Keystone) that enables application automation tools, such as
shell scripts, Terraform modules, Python programs, and others, to securely
perform various actions in the cloud API in order to deploy and manage
application components.
Historically, dedicated technical user accounts were created to be used by
application automation tools. The application credentials mechanism has
significant advantages over the legacy approach in terms of the following.
Self-service
Cloud users manage application credential objects completely on their
own, without having to reach out to cloud operators
Note
Application credentials are owned by the cloud user who created
them, not the project, domain, or system that they have access to.
Non-admin users only have access to application credentials that they
have created themselves.
Security
Cloud users creating application credentials have control over the actions
that automation tools will be allowed to perform on their behalf by the
following:
Specifying the cloud API endpoints the tool may access
Delegating to the tool just a subset of the owner’s roles
Restricting the tool from creating new application credential objects or
trusts
Defining the validity period for a credential
Simplicity
In case a credential is compromised, the automation tools using it can be
easily switched to a new object
For security reasons, a cloud user who logs in to the cloud through the
Mirantis Container Cloud IAM or an external identity provider cannot
use the application credentials mechanism by default. To enable the
functionality, contact your cloud operator.
MOSK Object Storage service does not support application
credentials authentication to access S3 API. To authenticate in S3 API, use
the EC2 credentials mechanism.
MOSK Object Storage service has limited support for
application credentials when accessing Swift API. The service does not
accept application credentials with restrictions to allowed API endpoints.
You can create an application credential using OpenStack CLI or Horizon.
To create an application credential using CLI, use the
openstack application credential create command.
If you do not provide the application credential secret, one will be generated
automatically.
Warning
The application credential secret displays only once upon creation.
It cannot be recovered from the Identity service. Therefore, capture the
secret string from the command output and keep it in a safe place for future
usage.
When creating application credentials, you can limit their capabilities
depending on the security requirements of your deployment:
Define expiration time.
Limit the roles of an application credential to only a subset of roles that
the user creating the credential has.
Pass a list of allowed API paths and actions, aka access rules, that the
application credential will have access to. For the comprehensive list of
possible options when creating credentials, consult the upstream OpenStack
documentation.
Restrict an application credential from creating another application
credential or a trust.
Note
This is the default behavior, but depending on what the
application credential is used for, you may need to loosen this restriction.
An application credential will be created with access to the scope of your
current session. For example, if your current credential is scoped to a
specific project, domain, or system, the created application credential will
have access to the same scope.
To authenticate in a MOSK cloud using an application
credential, you need to know the ID and secret of the application credential.
When using the human-readable name of an application credential instead of its
ID, you also have to supply the user ID or the user name with the user domain
ID or name. These details are required for the Identity service (Keystone) to
resolve your application credential, since different users may have
application credentials with the same name.
The following example illustrates a snippet from an RC file with required
environment variables using the application credential name:
The token is located in the x-subject-token header of the response, and
the response body contains information about the user, scope, effective roles,
and the service catalog.
In case an application credential becomes invalid due to the expiry or the
owner-user leaving the team, or compromised if its secret gets exposed,
Mirantis recommends rotating the credential immediately as follows:
Create a new application credential with the same permissions.
Adjust the automation tooling configuration to use the new object.
Delete the old object. This can be performed by the owner-user or cloud
operator.
Authenticate in OpenStack API as a federated OIDC user¶
This section offers an example workflow of federated user authentication in
OpenStack using an external identity provider and OpenID Connect (OIDC)
protocol. The example illustrates a typical HTTP-based interchange of
authentication data happening underneath between the client software,
identity provider, and MOSK Identity service (OpenStack
Keystone) when a cloud user logs in to a cloud using their corporate or
social ID, depending on cloud configuration.
The instructions below can be handy for cloud operators who want to delve
into how federated authentication operates in OpenStack and troubleshoot any
related issues, as well as advanced cloud users keen on crafting their own
basic automation tools for cloud interactions.
The instructions are provided for educational purposes. Mirantis encourages
the majority of cloud users to rely on existing mature tools and libraries,
such as openstacksdk, keystoneauth, python-openstackclient,
or gophercloud to communicate with OpenStack APIs in a programmable
manner.
Warning
Mirantis advises cloud users not to rely on federated
authentication when managing their cloud resources using command line and
cloud automation tool. Instead, consider using OpenStack built-in
application credentials mechanism to ensure secure and reliable access
to OpenStack APIs of your MOSK cloud.
See Manage application credentials for details.
Verify cloud configuration with the cloud administrator¶
For cloud users to be able to log in to an OpenStack cloud using their
federated identity, the cloud administrator should configure the cloud
to integrate with an external OIDC-compatible identity provider, such as
Mirantis Container Cloud IAM (Keycloak) with all the necessary resources
pre-created in the OpenStack Keystone API.
To authenticate in OpenStack using your federated identity, an
OIDC-compatible identity provider protocol, and the v3oidcpassword
authentication method, get yourself acquainted with the authentication
parameters listed below. You can extract the required information from the
OpenStack RC file that is available for download from OpenStack Dashboard
(Horizon) once you log in to it with your federated identity, or the
clouds.yaml file.
The URL pointing to the OIDC discovery document served by the identity provider,
usually ends with .well-known/openid-configuration.
OS_CLIENT_ID
The identifier of the OIDC client to use.
OS_CLIENT_SECRET
The secret for the OIDC client. Many OIDC providers require this
parameter. Some providers, including Mirantis Container Cloud IAM
(Keycloak), allow so-called public clients, where secrets are not used
and can be any string.
OS_OPENID_SCOPE
The scope requested when using OIDC authentication. This is at least
openid, but your identity provider may allow to return additional
scopes.
OS_IDENTITY_PROVIDER
The name of the corresponding identity provider object as created in
the Keystone API.
OS_PROTOCOL
The name of the protocol object as created in the Keystone API.
OS_USERNAME
Your user name.
OS_PASSWORD
Your password in the identity provider, such as Mirantis Container Cloud
IAM (Keycloak).
Note
Additionally, to obtain a scoped token, you need information about
the target scope, such as, OS_PROJECT_DOMAIN_NAME and
OS_PROJECT_NAME.
Below is an example of RC file to set environment variables used in the further
code examples for the project scope authentication:
Obtain the access token from the identity provider by sending the POST
request to the token endpoint that will return the access token in exchange
to the login credentials:
As per OpenID Connect RFC,
the request to the endpoint must use the Form serialization.
Now, you can exchange the OIDC access token for an unscoped token from
OpenStack Keystone.
Obtain the unscoped token from OpenStack Keystone¶
The Keystone token is included in the response header. However, the response
body in the JSON format often contains additional data that may prove useful
for certain applications. The following example excludes the body by using
the -I flag:
The tr-d'\r' line trims the carriage return characters from
grep and awk outputs so that the extracted data
can be properly inserted into the JSON authentication request later.
Now, you can generate a scoped token from OpenStack Keystone using the unscoped
token and specifying the project scope.
In case you do not know beforehand the OpenStack authorization scope you want
to log in to, use the unscoped token to get a list of the available scopes:
Replace https://glance.it.just.works with the endpoint of the
MOSK Image service (OpenStack Glance) that you can obtain
from the Access & Security dashboard of OpenStack Horizon.
Deploy your first cloud application using automation¶
This section aims to help you build your first cloud application and onboard
it to a MOSK cloud. It will guide you through the process of
deploying and managing a sample application using automation, and showcase the
powerful capabilities of OpenStack.
The sample application offered by Mirantis is a typical web-based application
consisting of a front end that provides a RESTful API situated behind
the cloud load balancer (OpenStack Octavia) and a backend database that
stores data in the cloud block storage (OpenStack Cinder volumes).
Mirantis RefApp
You can extend the sample application to make use of advanced features offered
by MOSK, for example:
An HTTPS-terminating load balancer that stores its certificate in the Key
Manager service (OpenStack Barbican)
A public endpoint accessible by the domain name with the help of the DNS
service (OpenStack Designate)
The sample application intends to showcase how deployment automation
can enable the DevOps engineers to streamline the process of installing,
updating, and managing their workloads in the cloud providing an efficient
and scalable approach to building and running cloud-based applications.
The sample application offers example templates for the most common tools
that include:
OpenStack Heat, an OpenStack service used to orchestrate composite cloud
applications with a declarative template format through the
OpenStack-native REST API
Terraform, an Infrastructure-as-code tool from HashiCorp, designed to build,
change, and version cloud and on-prem resources using a declarative
configuration language
You can easily customize and extend the templates for similar workloads.
Note
The sample source code and automation templates reside in the
OpenStack RefApp GitHub
repository.
Environment
The sample cloud application deployment has been verified in the following
environment:
OpenStack command-line client v5.8.1
Terraform v1.3.x
OpenStack Yoga
Ubuntu 18.04 LTS (Bionic Beaver) as guest operating system
Navigate to the project where you want to deploy the application.
Use the top-right user menu to download the OpenStackRCFile
to your local machine.
Note
As an example, you will be using your own user credential
to deploy the sample application. However, in the future, Mirantis
strongly recommends creating dedicated application credentials
for your workloads.
Verify the default deployment configuration in the top.yaml template.
Modify parameters as required. For example, you may want to change the
image, flavor, or network parameters.
Create the stack using the provided template with the public key generated
above:
Run the curl tool against the URL of the application public end
point to make sure that all components of the application have been
deployed correctly and it is responding to user requests:
$curlhttp://<APP_URL>/
{"host":"host name of API instance that replied","app":"openstack-refapp"}
The sample application provides a RESTful API, which you can use for advanced
database queries.
Deploy your first cloud application using cloud web UI¶
This section aims to help you build your first cloud application and onboard
it to a MOSK cloud. It will guide you through the process of
deploying a simple application using the cloud web UI (OpenStack Horizon).
The section will also introduce you into the fundamental OpenStack primitives
that are commonly used to create virtual infrastructures for cloud
applications.
The sample application in the context of this tutorial is a typical web-based
application consisting of Wordpress, a popular
web content management system, and a database that stores Wordpress data in the
cloud block storage (OpenStack Cinder volume).
Mirantis-refapp-simple.html
You can extend the sample application to make use of advanced features offered
by MOSK, for example:
Add an HTTPS-terminating load balancer that stores its certificate in the Key
Manager service (OpenStack Barbican)
Make the public endpoint accessible by the domain name with the help of the
DNS service (OpenStack Designate)
You can run the sample application on any OpenStack cloud. It can be a
private MOSK cluster of your company, a public OpenStack
cloud, or even your own tiny TryMOSK instance spinned up in an AWS tenant
as described in the Try Mirantis OpenStack for Kubernetes on AWS
article.
To deploy the sample application, you need:
Access to your cloud web UI with the credentails obtained from your cloud
administator:
The URL of the cloud web UI (OpenStack Horizon)
The login, password, and, optionally, authentication method that
you need to use to log in to the MOSK cloud
The name of the OpenStack project with enough resources available
Connectivity from the MOSK cluster to the Internet
to be able to download the components of the sample application.
If needed, consult with your cloud administrator.
A local machine with the SSH client installed and connectivity to the
cloud public address (floating IP) space.
Environment
The sample cloud application deployment has been verified in the following
environment:
OpenStack Yoga
Ubuntu 18.04 LTS (Bionic Beaver) as guest operating system
Open your favorite web browser and navigate to the URL of the cloud
web UI.
Use the access credentials to log in.
Select the appropriate project from the drop-down menu at the top left.
Create a dedicated private network for your application:
Note
Virtual networks in OpenStack are used for isolated communication
between instances (virtual machines) within the cloud. Instances get
plugged into networks to communicate with any virtual networking
entities, such as virtual routers and load balancers as well as
the outside world.
Navigate to Network > Networks.
Click Create Network. The Create Network dialog
box opens.
In the Network tab, specify a name for the new network.
Select the Enable Admin State and Create Subnet
check boxes.
In the Subnet tab, specify a name for the
subnet and network address, for example, 192.168.1.0/24.
In the Subnet Details tab, keep the preset
configuration.
Click Create.
Create and connect a network router.
Note
A virtual router, just like its physical counterpart, is used
to pass the layer 3 network traffic between two or more networks.
Also, a router performs the network address translation (NAT) for
instances to be able to communicate with the outside world through
the external networks.
To create the network router:
Navigate to Network > Routers.
Click Create Router. The Create Router dialog
box opens.
Specify a meaningful name for the new router and select the external
network it needs to be plugged in. If you do not know which external
network to select, consult your cloud administator.
Now, when the router is up and running, you need to plug it into the
application private network, so it can forward the packets between your
local machine and the instance, which you will create later.
To connect the network router:
Navigate to Network > Routers.
Find the router you have just created and click on its name.
Open the Interfaces tab and click Add Interface.
The Add Interface dialog box opens.
Select the subnetwork that you provided in the first step.
Click Add Interface.
Create an instance:
Note
A virtual machine, or an instance in the OpenStack terminology,
is the machine where your application processes will be effectively
running.
Navigate to Compute > Instances.
Click Launch Instance. The Launch Instance dialog
box opens.
In the Details tab, specify a meaningful name for the new
instance, so that you can easily identify it among others later.
In the Source tab, select the Image boot source.
MOSK comes with a few prebuilt images, we will be
using the one with the Ubuntu Bionic Server image for the sample
application.
In the Flavor tab, pick the m1.small size for
the instance, which provides just enough resources for the application
to run.
In the Networks tab, select the previously created private
network to plug the instance into.
In the Security Groups tab, verify that the default security
group is selected and it allows the ingress HTTP, HTTPs, and SSH traffic.
In the Key Pair tab, create or import a new key pair
to be able to log in to the instance securily through the SSH protocol.
Make sure to have a copy of the private key on your local machine to pass
to the SSH client.
Now all the needed settings have been made, click
Launch Instance.
Wait for the new instance to get shown in the Active state in
the Instances dashboard.
Attach a volume to the instance.
Note
Volumes in OpenStack provide persistent storage for applications,
allowing the data, which is placed on them, to exist independently from
the instances, as opposed to the data written to ephemeral storage,
which automatically gets terminated together with its instance.
To create the volume:
Navigate to Volumes > Volumes.
Click Create Volume.
The Create Volume dialog box opens.
Specify a meaningful name for the new volume.
Leave all fields with the default values. A 1 GiB volume
will be enough for the sample application.
Once the volume is allocated, it shows up in the same Volumes
dashboard. Now, you can attach the new volume to your running instance:
In the Volumes dashboard, select the volume to add to
the instance.
Click Manage Attachments.
The Manage Volume Attachments dialog box opens.
Select the required instance.
Click Attach Volume.
Now, the Attached To column in the Volumes
dashboard will display your volume device name as the volume
attached to your instance. Also, you can view the status of a volume
that can be either Available or In-Use.
Expose the instance outside:
Note
A floating IP address in OpenStack is an abstraction over
a publicly routable IP address that allows an instance to be accessed
from outside the cloud. Floating IPv4 addresses are typically scarce
and expensive resources and, so they need to be explicitly allocated
and assigned to selected instances.
Navigate to Compute > Instances.
From the Actions drop-down list next to your instance,
select Associate Floating IP.
The Manage Floating IP Associations dialog box opens.
Allocate a new floating IP address using the + button.
The Port to be associated should be already filled in
with the instance private port.
Click Associate.
The Compute > Instances dashboard will display the instance
floating IP address along with the private one. Write down the floating IP
address as you will need it in the next step.
Access the instance through SSH.
On your local machine use the SSH client to log in to the instance by its
floating IP address. Ensure the 0600 permission on the private key file.
We will run the application components as Docker containers to simplify
their provisioning and configuration and isolate them from each other.
The common Ubuntu cloud image does not have Docker engine preinstalled, so
you need to install it manually:
sudoapt-getupdate&&sudoapt-getinstall-ydocker.io
Our sample application consists of two Docker containers:
MySQL database server
Wordpress instance
First, we create a new Docker network so that both containers can
communicate with each other:
dockernetworkcreatesamplenet
Now, let’s spin up the MySQL database. We will place all its data in
a separate directory on the mounted volume. You can find more information
about the parameters of MySQL image on its DockerHub page.
Use the web browser on you local machine to navigate to the application
endpoint http://<instance-floating-IP-address>. If you have followed
all the steps accurately, your browser should now display the Wordpress
Getting Started dialog.
Feel free to provide the necessary parameters and proceed with the
initialization. Once it finishes, you proceed with building your own
cloud-hosted website and start serving the users. Congratulations!
Use Heat to create and manage Tungsten Fabric objects¶
Utilizing OpenStack Heat templates is a common practice to orchestrate Tungsten
Fabric resources. Heat allows for the definition of templates, which can depict
the relationships between resources such as networks, and enforce policies
accordingly. Through these templates, OpenStack REST APIs are
invoked to create the necessary infrastructure in the correct order required to
launch applications.
Managing Tungsten Fabric resources through OpenStack Heat represents
a structured and automated approach as compared to using of Tungsten Fabric UI
or API directly. The Heat templates provide a declarative mechanism to define
and manage infrastructure, ensuring repeatability and consistency across
deployments. This contrasts with the manual and potentially error-prone process
of managing resources through the Tungsten Fabric UI and API.
To orchestrate Tungsten Fabric objects through a Heat template:
Define the template with the Tungsten Fabric objects as required.
Note
You can view the full list of Heat resources available in
your environment from either OpenStack Horizon dashboard, the
Project > Orchestration > Resource Types page,
or the OpenStack CLI:
openstackorchestrationresourcetypelist
Also, you can obtain the specification of the Tungsten Fabric
configuration API by accessing
http://TF_API_ADDRESS:8082/documentation/contrail_openapi.html
on your environment.
Below is an example template showcasing a Heat topology that illustrates
the creation sequence of the following Tungsten Fabric resources: instance,
port, network, router, and external network.
Example Heat topology with Tungsten Fabric resources
heat_template_version:2015-04-30description:HOT template to create a Instance connected to external networkparameters:stack_prefix:type:stringdescription:Prefix name for stack resources.default:"net-logical-router"project:type:stringdescription:project for the Serverpublic_network_id:type:stringfloating_ip_pool:type:stringsubnet_ip_prefix:type:stringdefault:'192.168.96.0'subnet_ip_prefix_len:type:stringdefault:'24'server_image:type:stringdescription:Name of image to use for server.default:'Cirros-6.0'availability_zone:type:stringdefault:'nova'resources:ipam:type:OS::ContrailV2::NetworkIpamproperties:name:{ list_join:['_',[get_param:stack_prefix,"ipam"]]}project:{ get_param:project}private_network:type:OS::ContrailV2::VirtualNetworkproperties:name:{ list_join:['_',[get_param:stack_prefix,"network"]]}project:{ get_param:project}network_ipam_refs:[{ get_resource:ipam}]network_ipam_refs_data:[{ network_ipam_refs_data_ipam_subnets:[{ network_ipam_refs_data_ipam_subnets_subnet_name:{ list_join:['_',[get_param:stack_prefix,"subnet"]]}, network_ipam_refs_data_ipam_subnets_subnet:{ network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:'192.168.96.0', network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:'24',}, network_ipam_refs_data_ipam_subnets_allocation_pools:[{ network_ipam_refs_data_ipam_subnets_allocation_pools_start:'192.168.96.10', network_ipam_refs_data_ipam_subnets_allocation_pools_end:'192.168.96.100'}], network_ipam_refs_data_ipam_subnets_default_gateway:'192.168.96.1', network_ipam_refs_data_ipam_subnets_enable_dhcp:'true',}]}]private_network_interface:type:OS::ContrailV2::VirtualMachineInterfaceproperties:name:{ list_join:['_',[get_param:stack_prefix,"interface"]]}project:{ get_param:project}virtual_machine_interface_device_owner:'network:router_interface'virtual_machine_interface_bindings:{ virtual_machine_interface_bindings_key_value_pair:[{ virtual_machine_interface_bindings_key_value_pair_key:'vnic_type', virtual_machine_interface_bindings_key_value_pair_value:'normal'}]}virtual_network_refs:[{ get_resource:private_network}]instance_ip:type:OS::ContrailV2::InstanceIpproperties:name:{ list_join:['_',[get_param:stack_prefix,"instance_ip"]]}fq_name:{ list_join:['_',["fq_name",get_param:stack_prefix]]}virtual_network_refs:[{ get_resource:private_network}]virtual_machine_interface_refs:[{ get_resource:private_network_interface}]router:type:OS::ContrailV2::LogicalRouterproperties:name:{ list_join:['_',[get_param:stack_prefix,"router"]]}project:{ get_param:project}virtual_machine_interface_refs:[{ get_resource:private_network_interface}]virtual_network_refs:[{ get_param:public_network_id}]virtual_network_refs_data:[{ virtual_network_refs_data_logical_router_virtual_network_type:'ExternalGateway'},]security_group:type:OS::ContrailV2::SecurityGroupproperties:# description: SG with allowed ssh/icmp trafficname:{ list_join:['_',[get_param:stack_prefix,"sg"]]}project:{ get_param:project}security_group_entries:{ security_group_entries_policy_rule:[{ security_group_entries_policy_rule_direction:'>', security_group_entries_policy_rule_protocol:'any', security_group_entries_policy_rule_ethertype:'IPv4', security_group_entries_policy_rule_src_addresses:[{ security_group_entries_policy_rule_src_addresses_security_group:'local',}], security_group_entries_policy_rule_dst_addresses:[{ security_group_entries_policy_rule_dst_addresses_subnet:{ security_group_entries_policy_rule_dst_addresses_subnet_ip_prefix:'0.0.0.0', security_group_entries_policy_rule_dst_addresses_subnet_ip_prefix_len:'0',},}]},{ security_group_entries_policy_rule_direction:'>', security_group_entries_policy_rule_protocol:'any', security_group_entries_policy_rule_ethertype:'IPv6', security_group_entries_policy_rule_src_addresses:[{ security_group_entries_policy_rule_src_addresses_security_group:'local',}], security_group_entries_policy_rule_dst_addresses:[{ security_group_entries_policy_rule_dst_addresses_subnet:{ security_group_entries_policy_rule_dst_addresses_subnet_ip_prefix:'::', security_group_entries_policy_rule_dst_addresses_subnet_ip_prefix_len:'0',},}]},{ security_group_entries_policy_rule_direction:'>', security_group_entries_policy_rule_protocol:'icmp', security_group_entries_policy_rule_ethertype:'IPv4', security_group_entries_policy_rule_src_addresses:[{ security_group_entries_policy_rule_src_addresses_subnet:{ security_group_entries_policy_rule_src_addresses_subnet_ip_prefix:'0.0.0.0', security_group_entries_policy_rule_src_addresses_subnet_ip_prefix_len:'0',},}], security_group_entries_policy_rule_dst_addresses:[{ security_group_entries_policy_rule_dst_addresses_security_group:'local',}]},{ security_group_entries_policy_rule_direction:'>', security_group_entries_policy_rule_protocol:'tcp', security_group_entries_policy_rule_ethertype:'IPv4', security_group_entries_policy_rule_src_addresses:[{ security_group_entries_policy_rule_src_addresses_subnet:{ security_group_entries_policy_rule_src_addresses_subnet_ip_prefix:'0.0.0.0', security_group_entries_policy_rule_src_addresses_subnet_ip_prefix_len:'0',}}], security_group_entries_policy_rule_dst_addresses:[{ security_group_entries_policy_rule_dst_addresses_security_group:'local',}], security_group_entries_policy_rule_dst_ports:[{ security_group_entries_policy_rule_dst_ports_start_port:'22', security_group_entries_policy_rule_dst_ports_end_port:'22',}]}]}flavor:type:OS::Nova::Flavorproperties:disk:3name:{ list_join:['_',[get_param:stack_prefix,"flavor"]]}ram:1024vcpus:2server_port:type:OS::Neutron::Portproperties:network_id:{ get_resource:private_network}binding:vnic_type:'normal'security_groups:[{ get_resource:security_group}]server:type:OS::Nova::Serverproperties:name:{ list_join:['_',[get_param:stack_prefix,"server"]]}image:{ get_param:server_image}flavor:{ get_resource:flavor}availability_zone:{ get_param:availability_zone}networks:-port:{ get_resource:server_port}server_fip:type:OS::ContrailV2::FloatingIpproperties:floating_ip_pool:{ get_param:floating_ip_pool}virtual_machine_interface_refs:[{ get_resource:server_port}]outputs:server_fip:description:Floating IP address of server in public networkvalue:{ get_attr:[server_fip,floating_ip_address]}
Create an environment file to define values to put in the variables
in the template file:
Before you start using the S3 API, ensure you have the necessary prerequisites
in place. This includes having access to an OpenStack deployment with the
Object Storage service enabled and authenticated credentials.
Verify the presence of the object-store service within the OpenStack
Identity service catalog. If the service is present, the following command
returns endpoints related to the object-store service:
openstackcatalogshowobject-store
If the object-store service is not present in the OpenStack Identity
service catalog, consult your cloud operator to confirm that the Object
Store service is enabled in the kind:OpenStackDeployment resource
controlling your OpenStack installation. The following element must be
present in the configuration:
The S3 API utilizes the AWS authorization protocol, which is not directly
compatible with the OpenStack Identity service, aka Keystone, by default.
To access the MOSK Object Storage service using the S3
API, you should create EC2 credentials within the OpenStack Identity service:
When accessing the Object Storage service through the S3 API, take note of the
access and secret fields. These values serve as respective equivalents
for the access_key and secret_access_key options, or similarly named
parameters, within the S3-specific tools.
To interact seamlessly with OpenStack Object Storage through the S3 API,
familiarize yourself with essential S3-specific tools, such as
s3cmd, the AWS Command Line Interface (CLI), and Boto3 SDK for
Python.
This section provides concise yet comprehensive configuration examples for
utilizing these S3-specific tools allowing users to interact with the
Amazon S3 and other cloud storage providers employing the S3 protocol.
S3cmd is a free command-line client
designed for uploading, retrieving, and managing data across various cloud
storage service providers that utilize the S3 protocol, including Amazon S3.
Example of a minimal s3cfg configuration:
[default]# use 'access' value from "openstack ec2 credentials create"access_key=a354a74e0fa3434e8039d0425f7a0b59# use 'secret' value from "openstack ec2 credentials create"secret_key=d7c2ca9488dd4c8ab3cff2f1aad1c683# use hostname of the "openstack-store" service, without protocolhost_base=openstack-store.it.just.works# important, leave emptyhost_bucket=
When configured, you can use s3cmd as usual:
s3cmd-cs3cfgls# list buckets
s3cmd-cs3cfgmbs3://my-bucket# create a bucket
s3cmd-cs3cfgputmyfile.txts3://my-bucket# upload file to bucket
s3cmd-cs3cfggets3://my-bucket/myfile.txtmyfile2.txt# download file
s3cmd-cs3cfgrms3://my-bucket/myfile.txt# delete file from bucket
s3cmd-cs3cfgrbs3://my-bucket# delete bucket
The AWS CLI stands as the
official and powerful command-line interface provided by Amazon Web Services
(AWS). It serves as a versatile tool that enables users to interact with
AWS services directly from the command line. Offering a wide range of
functionalities, the AWS CLI facilitates diverse operations, including but
not limited to resource provisioning, configuration management, deployment,
and monitoring across various AWS services.
To start using the AWS CLI:
Set the authorization values as shell variables:
# use "access" field from created ec2 credentialsexportAWS_ACCESS_KEY_ID=a354a74e0fa3434e8039d0425f7a0b59
# use "secret" field from created ec2 credentialsexportAWS_SECRET_ACCESS_KEY=a354a74e0fa3434e8039d0425f7a0b59
Explicitly provide the --endpoint-url set to the endpoint
of the openstack-store service to every aws CLI command:
Boto3
is the official Python3 SDK (Software Development Kit) specifically designed
for Amazon Web Services (AWS), providing comprehensive support for various
AWS services, including the S3 API for object storage. It offers extensive
functionality and tools for developers to interact programmatically with
AWS services, facilitating tasks such as managing, accessing, and manipulating
data stored in Amazon S3 buckets.
Presuming that you have configured the environment with the same environment
variables as in the example for AWS CLI, you can create an S3 client
in Python as follows:
importboto3,os# high level "resource" interfaces3=boto3.resources("s3",endpoint_url=os.getenv("S3_API_URL"))forbucketins3.buckets.all():# returns rich objectsprint(bucket.name)# low level "client" interfaces3=boto3.client("s3",endpoint_url=os.getenv("S3_API_URL"))buckets=s3.list_buckets()# returns raw JSON-like dictionaries
MOSK enables users to configure and run Windows guests
on OpenStack, which allows for optimization of cloud infrastructure for
diverse workloads. This section delves into the nuances of achieving seamless
integration between the Windows operating system and MOSK
clouds.
Also, you have the option to set up Windows guests in a way that supports
UEFI Secure Boot and includes an emulated virtual Trusted Platform Module
(TPM). This configuration enhances security features for your Windows
virtual machines within the OpenStack environment.
Note
Windows 11 imposes a security system requirement, necessitating
the activation of UEFI Secure Boot and ensuring that TPM version 2.0
is enabled.
Configuration example for the image with Windows 11:
You can configure the UEFI Secure Boot support through flavor extra specs or
image metadata properties. For x86_64 hosts, enabling secure boot also
necessitates configuring the use of the Q35 machine type.
MOSK enables you to configure this on a per-guest basis
using the hw_machine_type image metadata property.
Configuration example for the image that meets both requirements:
A vTPM can be requested for a server through either flavor extra specs or
image metadata properties. There are two supported TPM versions: 1.2 and 2.0,
along with two models: TPM Interface Specification (TIS) and Command-Response
Buffer (CRB). Notably, the CRB model is only supported with version 2.0.
The Dynamic Resource Balancer (DRB) service automatically moves OpenStack
instances around to achieve more optimal resource usage in a
MOSK cluster.
Consult your cloud administrator to determine if this service is enabled
in your cloud and which mode is used. The DRB service relies on the OpenStack
live migration mechanism to ensure that instances can be seamlessly moved
to another hypervisor of its choice.
Note
The live migration mode supports local block storage. The live
migration mechanism automatically determines whether Nova should
migrate using a local block storage or a shared storage.
Depending on the nature of your workload and configuration of the
MOSK cluster, you can explicitly configure the
DRB service in two ways:
Opt out of automatic instance migration if your instances are sensitive
to live migration. For example, if the instances rely on special local
resources such as SR-IOV-based virtual NICs or cannot tolerate CPU
throttling.
Opt in to optimize your instance placement at any time. In this case,
if the DRB service is configured not to move instances by default,
this allows your applications to relocate away from noisy neighbors
that are consuming excessive shared resources on a hypervisor.
If the DRB service in your MOSK cluster is configured to
auto-migrate all instances by default, you, as the owner of the instance,
can opt out of such automated migrations.
To achieve this, tag your instances with lcm.mirantis.com:no-drb.
For example, using the openstack CLI:
Successfull execution of the command above produces no output. To revert to
the default behavior, use the openstack server unset command in
a similar way.
Note
OpenStack instance tags are distinct from metadata (key-value pairs).
Therefore, use instance tagging explicitly for this purpose.
If the DRB service in your {{ product_name_abbr}} cloud is configured to
move only specific instances, in order for the placement of your instances
to get automatically optimized, you need to explicitly tag each instance with
lcm.mirantis.com:drb. For example, using the openstack CLI:
Successfull execution of the command above produces no output. To revert
to the default behavior, use the openstack server unset command in
a similar way.
Note
OpenStack instance tags are distinct from metadata (key-value pairs).
Therefore, use instance tagging explicitly for this purpose.
MOSK provides the capability to perform instance migrations
for the non-administrative users of the OpenStack cloud.
Consult your cloud administrator to ensure this functionality is available
to you. If it is, you may have access to cold migration, live migration,
or both. Refer to Instance migration to learn more about these migration
types in MOSK.
If migration is available to you as a non-administrative user, it is,
by default, a completely scheduler-controlled type of migration. As a user,
you do not have the option to select the target host for your instance.
Instead, the Compute service scheduler automatically selects the best-suited
target host, if one is available.
To perform migrations, you can use any preferred method, including direct
API interactions, CLI tools (the openstack client), or
the OpenStack Dashboard service.
This guide provides recommendations on how to effectively use product
capabilities to harden the security of a Mirantis OpenStack for Kubernetes
(MOSK) deployment.
Note
The guide is being under development and will be updated
with new sections in future releases of the product documentation.
MOSK services can emit notifications in the Cloud Auditing
Data Federation (CADF) format, which is
a standardized format for event data. The information contained in such
notifications describes every action users perform in the cloud and is
commonly used by organizations to perform security audits and intrusion
detection.
Currently, the following MOSK services support the emission
of CADF notifications:
Compute service (OpenStack Nova)
Block Storage service (OpenStack Cinder)
Images service (OpenStack Glance)
Networking service (OpenStack Neutron)
Orchestration service (OpenStack Heat)
DNS service (OpenStack Designate)
Bare Metal service (OpenStack Ironic)
Load Balancing service (OpenStack Octavia)
CADF notifications are enabled in the features:logging:cadf section of
the OpenStackDeployment custom resource. For example:
spec:features:logging:cadf:enabled:true
The way the notification messages get delivered to the consumers is
controlled by the notification driver setting. The following options are
supported:
messagingv2 - Default
Messages get posted to the notifications.info queue in
the MOSK message bus, which is RabbitMQ
log
Messages get posted to a standard log output and then collected
by Mirantis StackLight
MOSK generates all credentials used internally, including
two types of credentials generated during the OpenStack deployment:
Credentials for admin users provide unlimited access and enable the
initial configuration of cloud entities. Three sets of such credentials
are generated for accessing the following services:
OpenStack database
OpenStack APIs (OpenStack admin identity account)
OpenStack messaging
Credentials for OpenStack service users are generated for each deployed
OpenStack service. To operate successfully, OpenStack services require
three sets of credentials for accessing the following services:
OpenStack database
OpenStack APIs (OpenStack service identity account)
OpenStack messaging
To enhance the information security level, Mirantis recommends changing
the passwords of internally used credentials periodically. We suggest
changing the credentials every month. MOSK
includes an automated routine for changing credentials, which must
be triggered manually.
Restarting OpenStack services is necessary to apply new credentials.
Therefore, it is crucial to have a smooth transition period to minimize
the downtime for the OpenStack control plane. To achieve this, perform
the credential rotation as described in Rotate OpenStack credentials.
Ceph monitors use their node host networks to interact with Ceph daemons.
Ceph daemons communicate with each other over a specified cluster network
and provide endpoints over the public network.
The messenger V2 (msgr2) or earlier V1 (msgr) protocols are used for
communication between Ceph daemons.
Ceph daemon
Network
Protocol
Port
Description
Consumers
Manager (mgr)
Cluster network
msgr/msgr2
6800,
9283
Listens on the first available port of the 6800-7300 range.
Uses 9283 port for exporting metrics.
csi-rbdplugin,
csi-rbdprovisioner,
rook-ceph-mon
Metadata server (mds)
Cluster network
msgr/msgr2
6800
Listens on the first available port of the 6800-7300 range
csi-cephfsplugin,
csi-cephfsprovisioner
Monitor (mon)
LCM host network
msgr/msgr2
msgr:3300,
msgr2:6789
Monitor has separate ports for msgr and msgr2
Ceph clients
rook-ceph-osd,
rook-ceph-rgw
Ceph OSD (osd)
Cluster network
msgr/msgr2
6800-7300
Binds to the first available port from the 6800-7300 range
Ceph Controller uses the NetworkPolicy objects for each Ceph daemon.
Each NetworkPolicy is applied to a pod with defined labels in the
rook-ceph namespace. It only allows the use of the ports specified in the
NetworkPolicyspec. Any other port is prohibited.
Ceph daemon
Pod label
Allowed ports
Manager (mgr)
app=rook-ceph-mgr
6800-7300,
9283
Monitor (mon)
app=rook-ceph-mon
3300,
6789
Ceph OSD (osd)
app=rook-ceph-osd
6800-7300
Metadata server (mds)
app=rook-ceph-mds
6800-7300
Ceph Object Storage (rgw)
app=rook-ceph-rgw
Value from spec.cephClusterSpec.objectStorage.rgw.gateway.port,
Value from spec.cephClusterSpec.objectStorage.rgw.gateway.securePort
Communications between Mirantis OpenStack for Kubernetes (MOSK)
components are provided by the Calico networking. All internal communications
occur through the Calico tunnel through the VXLAN or WireGuard protocols.
Caution
These ports are only used for in-cluster communications. Open
them only to a trusted network and never at a perimeter firewall.
Component
Protocol
Port
Description
Calico VXLAN
UDP
4792
Calico networking with VXLAN enabled
Calico WireGuard
UPD
51820
Calico networking with IPv4 Wireguard enabled
In-cluster communications between MetalLB speaker components are done using
the LCM network. MetalLB components also provide metrics to be collected
by StackLight.
Caution
These ports are only used for in-cluster communications. Open
them only to a trusted network and never at a perimeter firewall.
OpenStack provides operators with fine-grained control over access
to API endpoints and actions through access policies. These policies
allow cloud administrators to restrict or grant access based on roles
and the current request context, such as the project, domain, or system.
OpenStack services come with a set of default policy rules that are
generally sufficient for most users. However, for specific use cases,
these policies may need to be modified.
MOSK enables you to define custom policies through
the OpenStackDeployment custom resource. For configuration details,
refer to features:policies.
OpenStack Victoria and Yoga have two sets of default policies for each
of its services:
Legacy default policies
With these policies, the role of administrator in any context grants the
user global admin access to the given service. Any other role in the
project grants the user normal access, enabling the user to create
resources as well.
New default policies
These policies are written based on the possibilities of the updated
version of OpenStack Keystone. They take into account the hierarchical
default roles, such as reader, member, and admin, and the system scope.
Warning
Mirantis does not recommend using the new default policies
at the moment. Our testing results indicate that this set of policies
is not consistently reliable across all services. Moreover, as of the
OpenStack Yoga release, the new default policies have not undergone
extensive testing in the upstream development.
Enforcing or utilizing these new default policies may result in
unexpected consequences for the functionality of your
MOSK deployment affecting its LCM operations,
such as running Tempest tests or automatic live migrating of
instances during node maintenance.
MOSK deploys OpenStack with some policies already
customized. The list of such policies includes:
[Barbican] The global-secret-decoder role
A user with this role can decode any Barbican secret in any project.
This role is specifically granted to the service user that performs
automatic instance live migrations during
node maintenance.
This role enables the service user to live migrate instances that
use encrypted volumes. By upstream defaults, only the user who
created the secret or the admin of the corresponding project
can decode a secret.
MOSK offers various mechanisms to ensure data integrity
and confidentiality. This section provides an overview of the data protection
capabilities available in MOSK.
This section provides an overview of the data protection capabilities
available in MOSK, focusing primarily on data
encryption. You will gain insights into different data encryption
features of MOSK, understand the type of data they
protect, where encryption occurs concerning cloud boundaries, and
whether these mechanisms are available by default or require explicit
enablement by the cloud operator or cloud user.
Live migration enables the seamless movement of a running instance to another
node within the cluster, ensuring uninterrupted access to the virtual workload.
In MOSK, the native TLS encryption feature is available
for QEMU and libvirt, securing all data transports, including disks not on
shared storage. Additionally, the libvirt daemon exclusively listens to
TLS connections.
To establish a TLS environment, encompassing CA, server, and client
certificates, the relevant compute nodes automatically generate these
components. By default, these certificates are encrypted with a 2048-bit
RSA private key and are valid for 3650 days.
You can easily enable live migration over TLS by configuring the
features:nova:libvirt:tls parameter in the OpenStackDeployment custom
resource. For reference, see Configuring live migration.
Caution
Instances started before enabling secure live migration will not
support live migration.
The issue arises due to the SSL certificates for live migration with QEMU
native TLS being generated during the service update. Thus, these
certificates do not exist in the libvirt container when existing instances
were started. Consequently, QEMU processes of those instances lack
the required SSL certificate information, leading to migration failures
with an internal error:
internal error:unable to execute QEMU command ‘object-add’: Unable to access credentials /etc/pki/qemu/ca-cert.pem: No such file or directory
As a workaround, stop and then start the instances that failed to live
migrate. This process will create new QEMU processes within the libvirt
container, ensuring the availability of TLS certificate details.
In a cloud infrastructure, the components comprising the cloud control plane
exchange messages that may contain sensitive information, such as cloud
configuration details, application and cloud user credentials, and other
essential data that an attacker can use to highjack the cloud.
Encrypting the control plane traffic is crucial for data confidentiality
and overall security of the cloud.
MOSK offers the ability to encrypt its control plane
communication by means of encapsulating the in-cluster traffic of the
underlying Kubernetes into a WireGuard mesh network built across its nodes.
When an attacker is able to intercept the traffic between the nodes of
a MOSK cluster but does not have access to the nodes
themselves, WireGuard ensures the following:
Data confidentiality
Any intercepted traffic remains unreadable, especially the traffic of those
components of the MOSK control plane that do not enable
SSL/TLS encryption on the application level and rather rely on the
underlying networking layer.
Data integrity
Alterations in traffic are detectable, ensuring that no tampering has
occurred during transit.
Authentication
Only machines with valid cryptographic credentials can join the network
and exchange data.
The following control plane components can have their communications protected
with the WireGuard encryption:
OpenStack database (MariaDB)
OpenStack message bus (RabbitMQ)
OpenStack internal API
OpenStack services interacting with auxiliary components, such as memcached,
RedisDB, and PowerDNS
Interaction between StackLight internal components, including collection
of metrics from OpenStack, Ceph, and other subsystems
Tungsten Fabric auxiliary components that include ZooKeeper, Kafka, Cassandra
database, Redis database, and RabbitMQ
Communications not protected by WireGuard encryption¶
All components of the cloud control plane that require explicit firewall rules
configuration as per MOSK firewall configuration guide utilize the Kubernetes host network mode for their pods,
and, therefore, cannot be protected by WireGuard.
By default, the WireGuard encryption of the control plane
communications is not enabled in MOSK. However, it is
possible to enable the encryption upon initial deployment or later.
When enabling WireGuard, make sure to configure the Calico MTU size correctly.
It must be at least 60 bytes smaller than the interface MTU size of the
workload network.
WireGuard uses public-private ECDH key pairs for secure handshake between
the nodes of the cluster. Each node obtains its unique pair, with the
public key shared across other nodes. A key pair persists indefinitely
unless the node is reprovisioned and re-added to the cluster.
The handshake procedure establishes symmetric keys used for traffic
encryption and automatically re-occurs every few minutes to ensure
data security.
While WireGuard is designed for efficiency, enabling encryption introduces
some overhead.
Caution
The impact can vary depending on the cloud scale and usage
profile.
You may experience the following:
A slight increase in CPU utilization on the MOSK
cluster nodes.
Less than 30% loss of network throughput, which, given the cluster is
designed according to Mirantis recommendations, does not impact control
plane communications of an average cloud.
This section provides insights into the standards and regulatory requirements
that MOSK adheres to, ensuring a secure and compliant
environment that you can trust.
Federal Information Processing Standard Publication (FIPS), outlines security
requirements for cryptographic modules used by the US government and
its contractors to protect sensitive and valuable information. It categorizes
the level of security provided by these modules, ranging from level 1 to level
4, with each level having progressively stringent security measures.
The FIPS mode within OpenStack verifies that its cryptographic algorithms and
modules strictly conform to approved standards. This is crucial for several
reasons:
Regulatory compliance
Many government agencies and industries dealing with sensitive data,
such as finance and healthcare, require FIPS-140 compliance as a regulatory
mandate. Ensuring compliance enables organizations to operate within legal
boundaries and meet industry standards.
Data security
FIPS-140 compliance ensures a higher level of security for cryptographic
functions, protecting sensitive information from unauthorized access and
manipulation. FIPS-compliant environments have a high level of security
for data encryption, digital signatures, and the integrity of communication
channels.
Interoperability
FIPS-140 compliance can enhance interoperability by ensuring that systems
and cryptographic modules across different platforms or vendors meet
a standard set of security requirements. This is essential, especially
in multi-cloud or interconnected environments.
MOSK ensures that the user-to-cloud communications are
always protected in compliance with FIPS 140-2. The capability is implemented
as an SSL/TLS proxy injected into MOSK underlying Kubernetes
ingress networking and performs the data encryption using a FIPS-validated
cryptographic module.
Container Cloud uses policy-controller for signature validation of
pod images. It verifies that images used by the Container Cloud and
Mirantis OpenStack for Kubernetes (MOSK) controllers are signed by a
trusted authority. The policy-controller inspects defined image policies
that list image registries and authorities for signature validation.
The policy-controller validates only pods with image references from
the Container Cloud content delivery network (CDN). Other registries are
ignored by the controller.
The policy-controller supports two modes of image policy validation for
Container Cloud and MOSK images:
warn
Default. Allows controllers to use untrusted images, but a warning message
is logged in the policy-controller logs and sent as an admission
response.
enforce
Experimental. Blocks pod creating and updating operations if a pod image
does not have a valid Mirantis signature. If a pod creation or update is
blocked in the enforce mode, send the untrusted artifact to
Mirantis support for further
inspection. To unblock pod operations, switch to the warn mode.
Warning
The enforce mode is still under development and is available
as an experimental option. Mirantis does not recommend enabling this option
for production deployments. The full support for this option will be
announced separately in one of the following Container Cloud releases.
In case of unstable connections from the policy-controller to Container
Cloud CDN that disrupt pod creation and update operations, you can disable
the controller by setting enabled:false in the configuration.
The policy-controller configuration is located in the Cluster object:
This section provides answers to common questions about
MOSK, and it is designed to help you quickly find
the information you need. We have included answers to the most common
questions and uncertainties that our users encounter, along with helpful
tips and references to step-by-step instructions where required.
The questions with answers in this section are organized by topic.
If you cannot find the information you are looking for in this section,
search in the whole documentation set. Also, do not hesitate to contact us
through the Feedback button. We are always available to answer
your questions and provide you with the assistance you need to use our product
effectively.
What is the difference between patch and major release versions?¶
Both major and patch release versions incorporate solutions for security
vulnerabilities and known product issues. The primary distinction between
these two release types lies in the fact that major release versions
introduce new functionalities, whereas patch release versions predominantly
offer minor product enhancements.
Patch releases strive to considerably reduce the timeframe for delivering
CVE resolutions in images to your deployments, aiding in the mitigation
of cyber threats and data breaches.
Content
Major release
Patch release
Version update and upgrade of the major product components including
but not limited to OpenStack, Tungsten Fabric, Kubernetes, Ceph, and
Stacklight 0
Container runtime changes including Mirantis Container Runtime and
containerd updates
Changes in public API
Changes in the Container Cloud and MOSK lifecycle management including
but not limited to machines, clusters, Ceph OSDs
Host machine changes including host operating system and kernel updates
Patch version bumps of MKE and Kubernetes
Fixes for Common Vulnerabilities and Exposures (CVE) in images
A product release series is a series of consecutive releases that starts with
a major release and includes a number of patch releases built on top of
the major release.
For example, the 23.1 series includes the 23.1 major release and 23.1.1,
23.1.2, 23.1.3, and 23.1.4 patch releases.
What is the difference between the new and old update schemes¶
Apply patch updates only if you want to receive security fixes as soon as they
become available and you are prepared to update your cluster often,
approximately once in three weeks.
Otherwise, you can skip patch releases and update only between major releases.
Each subsequent major release includes patch release updates of the previous
major release.
When planning the update path for your cluster, take into account the release
support status included in Release Compatibility Matrix.
Can I skip patch releases within a single series since 24.1 series?¶
Yes.
Can I skip patch releases within a single series before 24.1 series?¶
Yes.
Additonally, before MOSK 24.1 series, it is technically
not possible to update to any intermediate release version if the newer patch
version has been released. You can update only to the latest available patch
version in the series, which contains the updates from all the preceding
versions. For example, if your cluster is running MOSK
23.1 and the latest available patch version is MOSK 23.1.2,
you must update to 23.1.2 receiving the product updates from 23.1.1 and 23.1.2
at one go.
Moreover, if between the two major releases you apply at
least one patch version belonging to the N series, you have to obtain
the last patch release in the series to be able to update to the N+1
major release version.
How do I update to a patch version within the same series?¶
When updating between the patches of the same series, follow the
Update to a patch version procedure.
When updating between the series, follow the Cluster update procedure.
How do I update to the next major version
if I started receiving patches of the previous series?¶
Caution
This answer applies only to MOSK 24.1 series.
Starting from MOSK 24.1.5, Mirantis introduces a new
update scheme allowing for the update path flexibility.
Firstly, if you started receiving patch updates from the previous release
series, update your cluster to the latest patch release in that series as
described the Update to a patch version procedure.
After, follow the Cluster update procedure to update from the latest
patch release in the series to the next major release. It is technically
impossible to receive a major release while on any patch release in the
previous series other than the last one.
The primary distinction between major and patch product versions lies in
the fact that major release versions introduce new functionalities,
whereas patch release versions predominantly offer minor product
enhancements, mostly CVE resolutions for your clusters.
Depending on your deployment needs, you can either update only between
major releases or apply patch updates between major releases. Choosing
the latter option, which includes patch updates, ensures you receive
security fixes as soon as they become available. Though, be prepared
to update your cluster frequently, approximately once every three weeks.
Refer to the following documentation for the details about the release
content, update schemes, and so on:
Instance migration for non-administrative OpenStack users
Technical preview for external OIDC identity providers for OpenStack
Technical preview for custom volume backend for Cinder
Graceful instance shutdown
Shared Filesystems as a Service
Technical preview for cluster self-diagnostics
Etcd as a backend for TaskFlow
vRouter Provisioner moved to separate DaemonSet
Automatic conversion to Tungsten Fabric Operator API v2
Monitoring of Nova orphaned allocations
PowerDNS health monitoring
Major and patch versions update path
The primary distinction between major and patch product versions lies in
the fact that major release versions introduce new functionalities,
whereas patch release versions predominantly offer minor product
enhancements, mostly CVE resolutions for your clusters.
Depending on your deployment needs, you can either update only between
major releases or apply patch updates between major releases. Choosing
the latter option, which includes patch updates, ensures you receive
security fixes as soon as they become available. Though, be prepared
to update your cluster frequently, approximately once every three weeks.
Refer to the following documentation for the details about the release
content, update schemes, and so on:
Implemented full support for OpenStack Caracal with Open vSwitch and Tungsten
Fabric networking backends for greenfield deployments and for an upgrade from
OpenStack Antelope. To upgrade an existing cloud from OpenStack Antelope
to Caracal, follow the Upgrade OpenStack procedure.
Highlights from upstream OpenStack supported by
MOSK deployed on Caracal
Horizon:
Horizon added TOTP authentication support, allowing users to enhance their
security by authenticating with Time-based One-Time Passwords.
Manila:
Manila shares and access rules can now be locked against deletion.
A generic resource locks framework has been introduced to facilitate this.
Users can also hide sensitive fields of access rules with this feature.
Neutron:
Limit the rate at which instances can query the metadata service in order
to protect the OpenStack deployment from DoS or misbehaved instances.
New API which allows to define a set of security group rules to be used
automatically in every new default and/or custom security group created
for any project.
Nova:
It is now possible to define different authorization policies for
migration with and without a target host.
Since the OpenStack Caracal release, the Tungsten Fabric Horizon plugin
has been deprecated and removed. This change impacts the
Networking panel in OpenStack Horizon, which previously
allowed for managing Network IPAMs and Network policies. With the removal
of this plugin, Horizon no longer supports these features.
As a result, cloud operators may encounter Tungsten Fabric service networks
with snat-si in their names. These networks will be visible in
the network tabs and during the creation of ports or instances. Mirantis
advises cloud operators not to interact with these networks, as doing so
may cause system malfunctions.
Implemented full support for Ubuntu 22.04 LTS (Jammy Jellyfish) as the default
host operating system in MOSK clusters, including greenfield
deployments and update from Ubuntu 20.04 to 22.04 on existing clusters.
Ubuntu 20.04 is unsupported for greenfield deployments and is considered
deprecated during the MOSK 24.3 release cycle for existing
clusters.
Note
Since Container Cloud 2.27.0 (Cluster release 16.2.0), existing
MOSK management clusters were automatically updated to
Ubuntu 22.04 during cluster upgrade. Greenfield deployments of management
clusters are also based on Ubuntu 22.04.
Instance migration for non-administrative OpenStack users¶
Implemented the capability for non-administrative OpenStack users to migrate
instances, including both live and cold migrations. This functionality is
useful when performing different maintenance tasks including cloud updates,
handling noisy neighbors, and other operational needs.
Implemented the capability to connect external OpenID Connect (OIDC)
identity providers to MOSK Identity service (OpenStack
Keystone) directly through the OpenStackDeployment custom resource.
Introduced the ability to configure custom volume backends for
MOSK Block Storage service (OpenStack Cinder), enhancing
flexibility in storage management. Users can now define and deploy their own
backend configurations through the OpenStackDeployment custom resource.
Implemented the capability to automatically power off the guest instances
during the compute node shutdown or reboot through the ACPI power event.
This ensures the integrity of disk filesystems and prevents damage to running
applications during cluster updates.
Introduced general availability support for the MOSK
Shared Filesystems service (OpenStack Manila), allowing cloud users
to create and manage virtual file shares. This enables applications
to store data using common network file-sharing protocols such as CIFS,
NFS, and more.
Implemented the Diagnostic Controller that performs cluster self-diagnostics
to help the operator to easily understand, troubleshoot, and resolve potential
issues against the major cluster components, including OpenStack, Tungsten
Fabric, Ceph, and StackLight.
Running self-diagnostics is essential to ensure the overall health and optimal
performance of a cluster. Mirantis recommends running self-diagnostics
before cluster update, node replacement, or any other significant changes
in the cluster to prevent potential issues and optimize the maintenance window.
Implemented etcd as a backend for TaskFlow within Octavia, offering a scalable,
consistent, and fault-tolerant solution for persisting and managing task
states. This ensures that Octavia reliably handles distributed load balancing
tasks in a Kubernetes cluster.
Separated the vRouter provisioner from other Tungsten Fabric components.
Now, the vRouter provisioner is deployed as a separate DaemonSet
tf-vrouter-provisioner to allow for better control over
the vRouter components.
Automatic conversion to Tungsten Fabric Operator API v2¶
Implemented the automatic conversion of the Tungsten Fabric cluster
configuration API (TFOperator) v1alpha1 to the v2 version during update
to MOSK 24.3.
Since MOSK 24.3, the v2 TFOperator custom resource
should be used for any updates. The v1alpha1 TFOperator custom resource
will remain in the cluster but will no longer be reconciled and will be
automatically removed with the next cluster update.
Implemented monitoring of orphaned allocations in the MOSK
Compute service (OpenStack Nova). This feature simplifies the detection and
troubleshooting of orphaned resource allocations, ensuring that resources
are correctly assigned and utilized within the cloud infrastructure.
Implemented health monitoring of the PowerDNS backend for
MOSK DNS service (OpenStack Designate) using StackLight that
allows detecting and preventing PowerDNS issues. Started scraping a set of
metrics to monitor PowerDNS networking and detect server errors, failures, and
outages. Based on these metrics, added the dedicated
OpenStack PowerDNS Grafana dashboard and several alerts to notify
the operator of any detected issues.
Mirantis has tested MOSK against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOSK components with the exact versions against which
testing has been performed.
This section describes the MOSK known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
OpenStack¶[31186,34132] Pods get stuck during MariaDB operations¶
During MariaDB operations on a management cluster, Pods may get stuck
in continuous restarts with the following example error:
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
[40032] tf-rabbitmq fails to start after rolling reboot¶
Occasionally, RabbitMQ instances in tf-rabbitmq pods fail to enable
the tracking_records_in_ets during the initialization process.
To work around the problem, restart the affected pods manually.
Update known issues¶[42449] Rolling reboot failure on a Tungsten Fabric cluster¶
During cluster update, the rolling reboot fails on the Tungsten Fabric cluster.
To work around the issue, restart the RabbitMQ pods in the Tungsten
Fabric cluster.
[46671] Cluster update fails with the tf-config pods crashed¶
When updating to the MOSK 24.3 series, tf-config pods from the Tungsten
Fabric namespace may enter the CrashLoopBackOff state. For example:
To troubleshoot the issue, check the logs inside the tf-config API
container and the tf-cassandra pods. The following example logs
indicate that Cassandra services failed to peer with each other and
are operating independently:
Logs from the tf-config API container:
NoHostAvailable: ('Unable to complete the operation against any hosts', {<Host: 192.168.200.23:9042 dc1>: Unavailable('Error from server: code=1000 [Unavailable exception] message="Cannot achieve consistency level QUORUM" info={\'required_replicas\': 2, \'alive_replicas\': 1, \'consistency\': \'QUORUM\'}',)})
Logs from the tf-cassandra pods:
INFO [OptionalTasks:1] 2024-09-09 08:59:36,231 CassandraRoleManager.java:419 - Setup task failed with error, reschedulingWARN [OptionalTasks:1] 2024-09-09 08:59:46,231 CassandraRoleManager.java:379 - CassandraRoleManager skipped default role setup:some nodes were not ready
To work around the issue, restart the Cassandra services in the Tungsten
Fabric namespace by deleting the affected pods sequentially to establish
the connection between them:
The designate-zone-setup Kubernetes job in the openstack namespace
fails during update to MOSK 24.3 with the following error present in the
logs of the job pod:
The issue occurs when the DNS service (OpenStack Designate) has any TLDs
created, but test is not among them. Since DNS service monitoring
was added to MOSK 24.3, it attempts to create a test zone test-zone.test
in the Designate service, which fails if the test TLD is missing.
To work around the issue, verify that there are created TLDs present
in the DNS service:
openstacktldlist-fvalue-cname
If there are TLDs present and test is not one of them, create it:
Warning
Do not create the test TLD if no TLDs were present
in the DNS service initially. In this case, the issue is caused by
a different factor, and creating the test TLD when none existed
before may disrupt users of both the DNS and Networking services.
The following issues have been addressed in the MOSK
24.3 release:
[43966][Antelope] Improved parallel image downloading when Glance
is configured with Cinder backend.
[44813][Antelope] Resolved the issue that caused disruption
on trunk ports.
[40900][Tungsten Fabric] Resolved the issue that caused
Cassandra database to enter an infinite table creation or changing
state.
[46220][Tungsten Fabric] Resolved the issue that caused
subsequent cluster maintenance requests to get stuck on clusters running
Tungsten Fabric with API v2, after updating from MOSK 24.2 to 24.2.1.
This section describes the specific actions you as a Cloud Operator need to
complete to accurately plan and successfully perform your
Mirantis OpenStack for Kubernetes (MOSK) cluster update to the
version 24.3. Consider this information as a supplement to the generic
update procedure published in Operations Guide: Update a
MOSK cluster.
According to the new cluster update schema introduced in the product in the
MOSK 24.2 series, you can update to the 24.3 version from
the following cluster versions:
Host operating system needs to be rebooted for the kernel update
to be applied. Configure live-migration of workloads to avoid the impact on the instances running
on a host.
To properly plan the update maintenance window, use the following
documentation:
Before updating the cluster, be sure to review the potential issues that
may arise during the process and the recommended solutions to address
them, as outlined in Known issues.
MOSK 24.3 release series is the last one to support
Ubuntu 20.04 as the host operating system. Ubuntu 20.04 reaches
end-of-life in April 2025. Therefore, Mirantis encourages all
MOSK users to upgrade their clusters to Ubuntu 22.04 as soon
as possible after getting to MOSK 24.3.
Update of management or MOSK clusters running
Ubuntu 20.04 will not be possible in the following major product version.
Caution
Usage of third-party software, which is not part of
Mirantis-supported configurations, for example, the use of custom DPDK
modules, may block upgrade of an operating system distribution. Users are
fully responsible for ensuring the compatibility of such custom components
with the latest supported Ubuntu version.
Start using new API for Tungsten Fabric configuration (TFOperator v2)¶
Since MOSK 24.3, the v2 TFOperator custom resource
becomes the default and the only way to manage the configuration of
Tungsten Fabric cluster. During update to MOSK 24.3,
the old v1alpha1 TFOperator custom resource will get automatically
converted to version v2.
Note
The v1alpha1 TFOperator custom resource remains in the cluster
but is no longer reconciled and will be automatically removed with
the next major cluster update.
In total, since MOSK 24.2 major release, in 24.3,
1071 Common Vulnerabilities and Exposures (CVE) have been fixed:
79 of critical and 992 of high severity.
The table below includes the total number of addressed unique and common
CVEs by MOSK-specific component since
MOSK 24.2.2 patch. The common CVEs are issues addressed
across several images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.28.0: Security notes.
Technical preview for Open Virtual Networking (OVN)
Ceph Reef
Other component version updates
OpenStackDeploymentSecret custom resource removal
RAW local images for root/ephemeral storage
Technical preview for the tool to measure availability of network ports (Portprober)
Technical preview for Mirantis Dynamic Resource Balancer (DRB) service
Tungsten Fabric Operator API v2
Technical preview for the SR-IOV Spoof Check control for Tungsten Fabric
CQL to connect with Cassandra clusters
Availability zones for Tungsten Fabric
24.2.2 17.2.4+24.2.2latest patch
Update of minor kernel version to 5.15.0-118-generic
Security fixes for CVEs in images
24.2.1 17.2.3+24.2.1
Support for MKE 3.7.12
Update of minor kernel version to 5.15.0-117-generic
Security fixes for CVEs in images
Resolved product issues
Major and patch versions update path
The primary distinction between major and patch product versions lies in
the fact that major release versions introduce new functionalities,
whereas patch release versions predominantly offer minor product
enhancements, mostly CVE resolutions for your clusters.
Depending on your deployment needs, you can either update only between
major releases or apply patch updates between major releases. Choosing
the latter option, which includes patch updates, ensures you receive
security fixes as soon as they become available. Though, be prepared
to update your cluster frequently, approximately once every three weeks.
Refer to the following documentation for the details about the release
content, update schemes, and so on:
Implemented the technical preview support for OpenStack Caracal for
greenfield deployments.
To start experimenting with the new functionality, set openstack_version to
caracal in the OpenStackDeployment custom resource during the cloud
deployment.
Completely removed the OpenStackDeploymentSecret custom resource, which was
previously used to aggregate cloud confidential settings.
Sensitive information within the OpenStackDeployment object can be hidden
using the value_from directive. This enhancement was introduced in
MOSK 23.1 and allows for better management of confidential
data without the need for a separate custom resource.
Implemented the possibility to specify the raw option for the image storage
backend through the spec.features section of the OpenStackDeployment
custom resource.
Network port availability monitoring (Portprober)¶
TechPreview
Added support for the network port availability monitoring service
(Portprober). The service is implemented as an extension to the
OpenStack Neutron service and gets enabled automatically together with
the floating IP address availability monitoring service (Cloudprober).
Portprober is available for the MOSK clusters
running OpenStack Antelope or newer version and using the Neutron
OVS backend for networking.
Implemented the technical preview support for Dynamic Resource Balancer
(DRB) service that enables cloud operators to continuously ensure optimal
placement of their workloads.
Introduced full support for Tungsten Fabric Operator API v2. All greenfield
deployments now deploy v2 by default. After updating, all existing deployments
include the ability to convert existing v1alpha1 TFOperator to v2.
This new API version aligns with the OpenStack Controller API and provides
better interface for advanced configurations. The configuration documentation
for Tungsten Fabric provides configuration examples for both API v1alpha1 and
API v2.
Implemented the capability to disable spoof checking on the SR-IOV enabled
ports of some virtual network functions. This enhancement streamlines
the control over SR-IOV spoof check within Tungsten Fabric, offering
cloud operators a more seamless experience.
Implemented the capability to specify the target nodes for hosting Tungsten
Fabric SNAT and load balancer namespaces. This feature helps preserve
resources on compute nodes running highly sensitive workloads.
Upgraded Ceph major version from Quincy 17.2.7 to Reef 18.2.3 with an automatic
upgrade of Ceph components during the Cluster version update.
Ceph Reef delivers new version of RocksDB which provides better IO performance.
Also, this version supports RGW multisite re-sharding and contains overall
security improvements.
Mirantis has tested MOSK against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOSK components with the exact versions against which
testing has been performed.
This section describes the MOSK known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
Ocassionally, after the credential rotation, OpenStack Controller Exporter
fails to scrub the metrics. To work around the issue, restart the pod
with openstack-controller-exporter.
[43058] [Antelope] Cronjob for MariaDB is not created¶
Sometimes, after changing the OpenStackDeployment custom resource,
it does not transition to the APPLYING state as expected.
To work around the issue, restart the openstack-controller pod in
the osh-system namespace.
[44813] [Antelope] Traffic disruption observed on trunk ports¶
After upgrading to OpenStack Antelope, clusters with configured trunk ports
experience traffic flow disruptions that block the cluster updates.
To work around the issue, pin the MOSK Networking service
(OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
After upgrade to OpenStack Antelope, the virtual machines experience
connectivity disruptions when sending data over the virtual networks.
Network packets with full MTU are dropped.
The issue affects the MOSK clusters with Open vSwitch as the networking
backend and with the following specific MTU settings:
The MTU configured on the tunnel interface of compute nodes is equal
to the value of the
spec:services:networking:neutron:values:conf:neutron:DEFAULT:global_physnet_mtu
parameter of the OpenStackDeployment custom resource (if not specified,
default is 1500 bytes).
If the MTU of the tunnel interface is higher by at least 4 bytes, the cluster
is not affected by the issue.
The cluster contains virtual machines that have the MTU of the network
interfaces of the guest operating system larger than the MTU of the value of
the global_physnet_mtu parameter above minus 50 bytes.
To work around the issue, pin the MOSK Networking
service (OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
During initial deployment of a Tungsten Fabric cluster, there is a known issue
where the Cassandra database may enter an infinite table creation or changing
state. This results in the Tungsten Fabric configuration pods failing to reach
the Ready state.
The root cause of this issue is a schema mismatch within Cassandra.
To verify whether the cluster is affected:
The symptoms of this issue can be observed by verifying the Tungsten Fabric
configuration pods:
The events above indicate that the configuration services remain in the
initializing state after deployment due to inability to connect to
the database. As a result, liveness and readiness probes fail, and
the pods continuously restart.
Additionally, each node of Cassandra configuration database logs similar
errors:
After the pod is restarted, monitor the status of other Tungsten Fabric pods.
If they become Ready within two minutes, the issue is resolved. Otherwise,
inspect the latest Cassandra logs in other pods and restart any other pods
exhibiting the same pattern of errors:
This section lists the update known issues with workarounds for the
MOSK release 24.2.
[42449] Rolling reboot failure on a Tungsten Fabric cluster¶
During cluster update, the rolling reboot fails on the Tungsten Fabric cluster.
To work around the issue, restart the RabbitMQ pods in the Tungsten
Fabric cluster.
[46671] Cluster update fails with the tf-config pods crashed¶
When updating to the MOSK 24.3 series, tf-config pods from the Tungsten
Fabric namespace may enter the CrashLoopBackOff state. For example:
To troubleshoot the issue, check the logs inside the tf-config API
container and the tf-cassandra pods. The following example logs
indicate that Cassandra services failed to peer with each other and
are operating independently:
Logs from the tf-config API container:
NoHostAvailable: ('Unable to complete the operation against any hosts', {<Host: 192.168.200.23:9042 dc1>: Unavailable('Error from server: code=1000 [Unavailable exception] message="Cannot achieve consistency level QUORUM" info={\'required_replicas\': 2, \'alive_replicas\': 1, \'consistency\': \'QUORUM\'}',)})
Logs from the tf-cassandra pods:
INFO [OptionalTasks:1] 2024-09-09 08:59:36,231 CassandraRoleManager.java:419 - Setup task failed with error, reschedulingWARN [OptionalTasks:1] 2024-09-09 08:59:46,231 CassandraRoleManager.java:379 - CassandraRoleManager skipped default role setup:some nodes were not ready
To work around the issue, restart the Cassandra services in the Tungsten
Fabric namespace by deleting the affected pods sequentially to establish
the connection between them:
The following issues have been addressed in the MOSK
24.2 release:
[OpenStack][36524] Resolved the issue causing etcd to enter
a panic state after replacement of the controller node.
[OpenStack][39768] Resolved the issue that caused the OpenStack
controller exporter to fail to initialize within the default timeout on
large (500+ compute nodes) clusters.
[OpenStack][42390] Resolved the issue that caused the absence of
caching for PowerDNS.
[Ceph][42903] Resolved the issue that prevented ceph-controller
from correct handling of missing pools.
[Update][41810] Resolved the cluster update issue caused by the
OpenStack controller flooding.
This section describes the specific actions you as a Cloud Operator need to
complete to accurately plan and successfully perform your
Mirantis OpenStack for Kubernetes (MOSK) cluster update to the
version 24.2.
Consider this information as a supplement to the generic update procedure
published in Operations Guide: Update a MOSK cluster.
Host operating system needs to be rebooted for the kernel update
to be applied. Configure live-migration of workloads to avoid the impact on the instances running
on a host.
To properly plan the update maintenance window, use the following
documentation:
Before updating the cluster, be sure to review the potential issues that
may arise during the process and the recommended solutions to address
them, as outlined in Known issues.
Pre-update actions¶Verify that OpenStackDeploymentSecret is not in use¶
MOSK 24.2 includes the updated patch version of
the Cassandra database. With the cluster update, Cassandra is updated
from 3.11.10 to 3.11.17.
Additionally, the connectivity method between the Tungsten Fabric
services and Cassandra database clusters changes from Thrift to
Cassandra Query Language (CQL) protocol.
Therefore, Mirantis highly recommends backing up your Cassandra database
before updating a MOSK cluster with Tungsten Fabric
to 24.2. For the procedure, refer to Back up TF databases.
Post-update actions¶Convert v1alpha1 TFOperator custom resource to v2¶
In MOSK 24.2, the Tungsten Fabric API v2 becomes default
for new deployments and includes the ability to convert existing v1alpha1
TFOperator to v2.
Conversion of TFOperator causes recreation of the Tungsten Fabric service
pods. Therefore, Mirantis recommends performing the conversion within a
maintenance window during or after the update. The conversion is optional
in MOSK 24.2.
If your cluster runs Tungsten Fabric analytics services and you want to obtain
a more lightweight setup, you can disable these services through the custom
resource of the Tungsten Fabric Operator. For the details, refer to the
Tungsten Fabric analytics services deprecation notice.
With the MOSK 24.2 series, the OpenStack Yoga version
is being deprecated. Therefore, Mirantis encourages you to upgrade
to Antelope to start benefitting from the enhanced functionality and
new features of the newer OpenStack release.
MOSK allows for direct upgrade from Yoga to
Antelope, without the need to upgrade to the intermediate Zed release.
To upgrade the cloud, complete the Upgrade OpenStack procedure.
Important
There are several known issue affecting MOSK clusters running
OpenStack Antelope that can disrupt the network connectivity of the cloud
workloads.
If your cluster is still running OpenStack Yoga, update to the MOSK 24.2.1
patch release first and only then upgrade to OpenStack Antelope. If you
have not been applying patch releases previously and would prefer to switch
back to major releases-only mode, you will be able to do this when MOSK 24.3
is released.
If you have updated your cluster to OpenStack Antelope, apply the
workarounds described in Release notes: OpenStack known issues for the following issues:
[45879] [Antelope] Incorrect packet handling between instance and
its gateway
[44813] Traffic disruption observed on trunk ports
In total, since MOSK 24.1 major release, in 24.2,
771 Common Vulnerabilities and Exposures (CVE) have been fixed:
39 of critical and 732 of high severity.
The table below includes the total number of addressed unique and common
CVEs by MOSK-specific component since
MOSK 24.1.5 patch. The common CVEs are issues addressed
across several images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.27.0: Security notes.
The patch release notes contain the description of product enhancements,
the list of updated artifacts and Common Vulnerabilities and Exposures
(CVE) fixes as well as description of the addressed product issues
for the MOSK 24.2.1 patch:
The table below contains the total number of addressed unique and common
CVEs by MOSK-specific component compared to the previous
patch release version. The common CVEs are issues addressed across several
images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.27.3: Security notes.
Create a backup of the /var/lib/mysql directory on the
mariadb-server Pod.
Verify that other replicas are up and ready.
Remove the galera.cache file for the affected mariadb-server Pod.
Remove the affected mariadb-server Pod or wait until it is automatically
restarted.
After Kubernetes restarts the Pod, the Pod clones the database in 1-2 minutes
and restores the quorum.
[43058] [Antelope] Cronjob for MariaDB is not created¶
Sometimes, after changing the OpenStackDeployment custom resource,
it does not transition to the APPLYING state as expected.
To work around the issue, restart the openstack-controller pod in
the osh-system namespace.
Tungsten Fabric¶[40032] tf-rabbitmq fails to start after rolling reboot¶
Occasionally, RabbitMQ instances in tf-rabbitmq pods fail to enable
the tracking_records_in_ets during the initialization process.
To work around the problem, restart the affected pods manually.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
On clusters running Tungsten Fabric with API v2, after updating from MOSK 24.2
to 24.2.1, subsequent cluster maintenance requests may stuck. The root cause
of the issue is a version mismatch within the internal structures of
the Tungsten Fabric Operator.
The output similar to the one below, indicates that the Tungsten Fabric
ClusterWorkloadLock remains in the active state indefinitely preventing
further LCM operations with other components:
apiVersion:lcm.mirantis.com/v1alpha1kind:ClusterWorkloadLockmetadata:creationTimestamp:"2024-08-30T13:50:33Z"generation:1name:tf-openstack-tfresourceVersion:"4414649"uid:582fc558-c343-4e96-a445-a2d1818dcdb2spec:controllerName:tungstenfabricstatus:errorMessage:cluster is not in ready staterelease:17.2.4+24.2.2state:active
Additionally, the LCM controller logs may contain errors similar to:
{"level":"info","ts":"2024-09-02T16:22:16Z","logger":"entrypoint.lcmcluster-controller.req:5520","caller":"lcmcluster/maintenance.go:178","msg":"ClusterWorkloadLock is inactive cwl {{ClusterWorkloadLock lcm.mirantis.com/v1alpha1} {ceph-clusterworkloadlock a45eca91-cd7b-4d68-9a8e-4d656b4308af 3383288 1 2024-08-30 13:15:14 +0000 UTC <nil> <nil> map[] map[miraceph-ready:true] [{v1 Namespace ceph-lcm-mirantis 43853f67-9058-44ed-8287-f650dbeac5d7 <nil> <nil>}][] [{ceph-controller Update lcm.mirantis.com/v1alpha1 2024-08-30 13:25:53 +0000 UTC FieldsV1 {\"f:metadata\":{\"f:annotations\":{\".\":{},\"f:miraceph-ready\":{}},\"f:ownerReferences\":{\".\":{},\"k:{\\\"uid\\\":\\\"43853f67-9058-44ed-8287-f650dbeac5d7\\\"}\":{}}},\"f:spec\":{\".\":{},\"f:controllerName\":{}}} } {ceph-controller Update lcm.mirantis.com/v1alpha1 2024-09-02 10:48:27 +0000 UTC FieldsV1 {\"f:status\":{\".\":{},\"f:release\":{},\"f:state\":{}}} status}]} {ceph} {inactive 17.2.4+24.2.2}}","ns":"child-ns-tf","name":"child-cl"}{"level":"info","ts":"2024-09-02T16:22:16Z","logger":"entrypoint.lcmcluster-controller.req:5520","caller":"lcmcluster/maintenance.go:178","msg":"ClusterWorkloadLock is inactive cwl {{ClusterWorkloadLock lcm.mirantis.com/v1alpha1} {openstack-osh-dev 7de2b86f-d247-4cee-be8d-dcbcf5e1e11b 3382535 1 2024-08-30 13:50:54 +0000 UTC <nil> <nil> map[] map[] [] [] [{pykube-ng Update lcm.mirantis.com/v1alpha1 2024-08-30 13:50:54 +0000 UTC FieldsV1 {\"f:spec\":{\".\":{},\"f:controllerName\":{}}} } {pykube-ng Update lcm.mirantis.com/v1alpha1 2024-09-02 10:47:29 +0000 UTC FieldsV1 {\"f:status\":{\".\":{},\"f:release\":{},\"f:state\":{}}} status}]} {openstack} {inactive 17.2.4+24.2.2}}","ns":"child-ns-tf","name":"child-cl"}{"level":"info","ts":"2024-09-02T16:22:16Z","logger":"entrypoint.lcmcluster-controller.req:5520","caller":"lcmcluster/maintenance.go:173","msg":"ClusterWorkloadLock is still active cwl {{ClusterWorkloadLock lcm.mirantis.com/v1alpha1} {tf-openstack-tf 582fc558-c343-4e96-a445-a2d1818dcdb2 3382495 1 2024-08-30 13:50:33 +0000 UTC <nil> <nil> map[] map[] [] [] [{maintenance-ctl Update lcm.mirantis.com/v1alpha1 2024-08-30 13:50:33 +0000 UTC FieldsV1 {\"f:spec\":{\".\":{},\"f:controllerName\":{}}} } {maintenance-ctl Update lcm.mirantis.com/v1alpha1 2024-09-02 10:47:25 +0000 UTC FieldsV1 {\"f:status\":{\".\":{},\"f:errorMessage\":{},\"f:release\":{},\"f:state\":{}}} status}]} {tungstenfabric} {active cluster is not in ready state 17.2.4+24.2.2}}","ns":"child-ns-tf","name":"child-cl"}{"level":"error","ts":"2024-09-02T16:22:16Z","logger":"entrypoint.lcmcluster-controller.req:5520","caller":"lcmcluster/lcmcluster_controller.go:388","msg":"","ns":"child-ns-tf","name":"child-cl","error":"following ClusterWorkloadLocks in cluster child-ns-tf/child-cl are still active - tf-openstack-tf: InProgress not all ClusterWorkloadLocks are inactive yet","stacktrace":"sigs.k8s.io/cluster-api-provider-openstack/pkg/lcm/controller/lcmcluster.(*ReconcileLCMCluster).updateCluster\n\t/go/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/lcm/controller/lcmcluster/lcmcluster_controller.go:388\nsigs.k8s.io/cluster-api-provider-openstack/pkg/lcm/controller/lcmcluster.(*ReconcileLCMCluster).Reconcile\n\t/go/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/lcm/controller/lcmcluster/lcmcluster_controller.go:223\nsigs.k8s.io/cluster-api-provider-openstack/pkg/service.(*reconcilePanicCatcher).Reconcile\n\t/go/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/service/reconcile.go:98\nsigs.k8s.io/cluster-api-provider-openstack/pkg/service.(*reconcileContextEnricher).Reconcile\n\t/go/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/service/reconcile.go:78\nsigs.k8s.io/cluster-api-provider-openstack/pkg/service.(*reconcileMetrics).Reconcile\n\t/go/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/service/reconcile.go:136\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.3/pkg/internal/controller/controller.go:118\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.3/pkg/internal/controller/controller.go:31:
To work around the issue, set the actual version of
Tungsten Fabric Operator in the TFOperator custom resource:
Update known issues¶[42449] Rolling reboot failure on a Tungsten Fabric cluster¶
During cluster update, the rolling reboot fails on the Tungsten Fabric cluster.
To work around the issue, restart the RabbitMQ pods in the Tungsten
Fabric cluster.
To improve user update experience and make the update path more flexible,
MOSK is introducing a new scheme of updating between
cluster releases. For the details and possible update paths, refer to
24.1.5 update notes: Cluster update scheme.
You can update to 24.2.1 either from 24.1.7 (major update) or 24.2 (patch
update).
Update from 24.1.7 version is a major update between the series.
Therefore, the expected impact and maintenance window for the major update
to 24.2 series applies. For details, refer to 24.2 update notes
Expected impact when updating within the 24.2 series¶
The following table provides details on the impact of a MOSK
cluster update to a patch release within the 24.2 series.
You can bypass updating components of the cloud data plane to avoid
the network downtime during Update to a patch version. By using
this technique, you accept the risk that some security fixes may
not be applied.
The patch release notes contain the description of product enhancements,
the list of updated artifacts and Common Vulnerabilities and Exposures
(CVE) fixes as well as description of the addressed product issues
for the MOSK 24.2.2 patch.
The table below contains the total number of addressed unique and common
CVEs by MOSK-specific component compared to the previous
patch release version. The common CVEs are issues addressed across several
images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.27.4: Security notes.
Create a backup of the /var/lib/mysql directory on the
mariadb-server Pod.
Verify that other replicas are up and ready.
Remove the galera.cache file for the affected mariadb-server Pod.
Remove the affected mariadb-server Pod or wait until it is automatically
restarted.
After Kubernetes restarts the Pod, the Pod clones the database in 1-2 minutes
and restores the quorum.
[43058] [Antelope] Cronjob for MariaDB is not created¶
Sometimes, after changing the OpenStackDeployment custom resource,
it does not transition to the APPLYING state as expected.
To work around the issue, restart the openstack-controller pod in
the osh-system namespace.
Tungsten Fabric¶[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
On clusters running Tungsten Fabric with API v2, after updating from MOSK 24.2
to 24.2.1, subsequent cluster maintenance requests may stuck. The root cause
of the issue is a version mismatch within the internal structures of
the Tungsten Fabric Operator.
The output similar to the one below, indicates that the Tungsten Fabric
ClusterWorkloadLock remains in the active state indefinitely preventing
further LCM operations with other components:
apiVersion:lcm.mirantis.com/v1alpha1kind:ClusterWorkloadLockmetadata:creationTimestamp:"2024-08-30T13:50:33Z"generation:1name:tf-openstack-tfresourceVersion:"4414649"uid:582fc558-c343-4e96-a445-a2d1818dcdb2spec:controllerName:tungstenfabricstatus:errorMessage:cluster is not in ready staterelease:17.2.4+24.2.2state:active
Additionally, the LCM controller logs may contain errors similar to:
{"level":"info","ts":"2024-09-02T16:22:16Z","logger":"entrypoint.lcmcluster-controller.req:5520","caller":"lcmcluster/maintenance.go:178","msg":"ClusterWorkloadLock is inactive cwl {{ClusterWorkloadLock lcm.mirantis.com/v1alpha1} {ceph-clusterworkloadlock a45eca91-cd7b-4d68-9a8e-4d656b4308af 3383288 1 2024-08-30 13:15:14 +0000 UTC <nil> <nil> map[] map[miraceph-ready:true] [{v1 Namespace ceph-lcm-mirantis 43853f67-9058-44ed-8287-f650dbeac5d7 <nil> <nil>}][] [{ceph-controller Update lcm.mirantis.com/v1alpha1 2024-08-30 13:25:53 +0000 UTC FieldsV1 {\"f:metadata\":{\"f:annotations\":{\".\":{},\"f:miraceph-ready\":{}},\"f:ownerReferences\":{\".\":{},\"k:{\\\"uid\\\":\\\"43853f67-9058-44ed-8287-f650dbeac5d7\\\"}\":{}}},\"f:spec\":{\".\":{},\"f:controllerName\":{}}} } {ceph-controller Update lcm.mirantis.com/v1alpha1 2024-09-02 10:48:27 +0000 UTC FieldsV1 {\"f:status\":{\".\":{},\"f:release\":{},\"f:state\":{}}} status}]} {ceph} {inactive 17.2.4+24.2.2}}","ns":"child-ns-tf","name":"child-cl"}{"level":"info","ts":"2024-09-02T16:22:16Z","logger":"entrypoint.lcmcluster-controller.req:5520","caller":"lcmcluster/maintenance.go:178","msg":"ClusterWorkloadLock is inactive cwl {{ClusterWorkloadLock lcm.mirantis.com/v1alpha1} {openstack-osh-dev 7de2b86f-d247-4cee-be8d-dcbcf5e1e11b 3382535 1 2024-08-30 13:50:54 +0000 UTC <nil> <nil> map[] map[] [] [] [{pykube-ng Update lcm.mirantis.com/v1alpha1 2024-08-30 13:50:54 +0000 UTC FieldsV1 {\"f:spec\":{\".\":{},\"f:controllerName\":{}}} } {pykube-ng Update lcm.mirantis.com/v1alpha1 2024-09-02 10:47:29 +0000 UTC FieldsV1 {\"f:status\":{\".\":{},\"f:release\":{},\"f:state\":{}}} status}]} {openstack} {inactive 17.2.4+24.2.2}}","ns":"child-ns-tf","name":"child-cl"}{"level":"info","ts":"2024-09-02T16:22:16Z","logger":"entrypoint.lcmcluster-controller.req:5520","caller":"lcmcluster/maintenance.go:173","msg":"ClusterWorkloadLock is still active cwl {{ClusterWorkloadLock lcm.mirantis.com/v1alpha1} {tf-openstack-tf 582fc558-c343-4e96-a445-a2d1818dcdb2 3382495 1 2024-08-30 13:50:33 +0000 UTC <nil> <nil> map[] map[] [] [] [{maintenance-ctl Update lcm.mirantis.com/v1alpha1 2024-08-30 13:50:33 +0000 UTC FieldsV1 {\"f:spec\":{\".\":{},\"f:controllerName\":{}}} } {maintenance-ctl Update lcm.mirantis.com/v1alpha1 2024-09-02 10:47:25 +0000 UTC FieldsV1 {\"f:status\":{\".\":{},\"f:errorMessage\":{},\"f:release\":{},\"f:state\":{}}} status}]} {tungstenfabric} {active cluster is not in ready state 17.2.4+24.2.2}}","ns":"child-ns-tf","name":"child-cl"}{"level":"error","ts":"2024-09-02T16:22:16Z","logger":"entrypoint.lcmcluster-controller.req:5520","caller":"lcmcluster/lcmcluster_controller.go:388","msg":"","ns":"child-ns-tf","name":"child-cl","error":"following ClusterWorkloadLocks in cluster child-ns-tf/child-cl are still active - tf-openstack-tf: InProgress not all ClusterWorkloadLocks are inactive yet","stacktrace":"sigs.k8s.io/cluster-api-provider-openstack/pkg/lcm/controller/lcmcluster.(*ReconcileLCMCluster).updateCluster\n\t/go/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/lcm/controller/lcmcluster/lcmcluster_controller.go:388\nsigs.k8s.io/cluster-api-provider-openstack/pkg/lcm/controller/lcmcluster.(*ReconcileLCMCluster).Reconcile\n\t/go/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/lcm/controller/lcmcluster/lcmcluster_controller.go:223\nsigs.k8s.io/cluster-api-provider-openstack/pkg/service.(*reconcilePanicCatcher).Reconcile\n\t/go/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/service/reconcile.go:98\nsigs.k8s.io/cluster-api-provider-openstack/pkg/service.(*reconcileContextEnricher).Reconcile\n\t/go/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/service/reconcile.go:78\nsigs.k8s.io/cluster-api-provider-openstack/pkg/service.(*reconcileMetrics).Reconcile\n\t/go/src/sigs.k8s.io/cluster-api-provider-openstack/pkg/service/reconcile.go:136\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.3/pkg/internal/controller/controller.go:118\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.3/pkg/internal/controller/controller.go:31:
To work around the issue, set the actual version of
Tungsten Fabric Operator in the TFOperator custom resource:
Update known issues¶[42449] Rolling reboot failure on a Tungsten Fabric cluster¶
During cluster update, the rolling reboot fails on the Tungsten Fabric cluster.
To work around the issue, restart the RabbitMQ pods in the Tungsten
Fabric cluster.
[46671] Cluster update fails with the tf-config pods crashed¶
When updating to the MOSK 24.3 series, tf-config pods from the Tungsten
Fabric namespace may enter the CrashLoopBackOff state. For example:
To troubleshoot the issue, check the logs inside the tf-config API
container and the tf-cassandra pods. The following example logs
indicate that Cassandra services failed to peer with each other and
are operating independently:
Logs from the tf-config API container:
NoHostAvailable: ('Unable to complete the operation against any hosts', {<Host: 192.168.200.23:9042 dc1>: Unavailable('Error from server: code=1000 [Unavailable exception] message="Cannot achieve consistency level QUORUM" info={\'required_replicas\': 2, \'alive_replicas\': 1, \'consistency\': \'QUORUM\'}',)})
Logs from the tf-cassandra pods:
INFO [OptionalTasks:1] 2024-09-09 08:59:36,231 CassandraRoleManager.java:419 - Setup task failed with error, reschedulingWARN [OptionalTasks:1] 2024-09-09 08:59:46,231 CassandraRoleManager.java:379 - CassandraRoleManager skipped default role setup:some nodes were not ready
To work around the issue, restart the Cassandra services in the Tungsten
Fabric namespace by deleting the affected pods sequentially to establish
the connection between them:
To improve user update experience and make the update path more flexible,
MOSK is introducing a new scheme of updating between
cluster releases. For the details and possible update paths, refer to
24.1.5 update notes: Cluster update scheme.
Expected impact when updating within the 24.2 series¶
The following table provides details on the impact of a MOSK
cluster update to a patch release within the 24.2 series.
You can bypass updating components of the cloud data plane to avoid
the network downtime during Update to a patch version. By using
this technique, you accept the risk that some security fixes may
not be applied.
The primary distinction between major and patch product versions lies in
the fact that major release versions introduce new functionalities,
whereas patch release versions predominantly offer minor product
enhancements, mostly CVE resolutions for your clusters.
Depending on your deployment needs, you can either update only between
major releases or apply patch updates between major releases. Choosing
the latter option, which includes patch updates, ensures you receive
security fixes as soon as they become available. Though, be prepared
to update your cluster frequently, approximately once every three weeks.
Refer to the following documentation for the details about the release
content, update schemes, and so on:
Pre-update inspection of pinned product artifacts in a Cluster object¶
To ensure that Container Cloud clusters remain consistently updated with the
latest security fixes and product improvements, the Admission Controller
has been enhanced. Now, it actively prevents the utilization of pinned
custom artifacts for Container Cloud components. Specifically, it blocks
a management or managed cluster release update, or any cluster configuration
update, for example, adding public keys or proxy, if a Cluster object
contains any custom Container Cloud artifacts with global or image-related
values overwritten in the helm-releases section, until these values are
removed.
Normally, the Container Cloud clusters do not contain pinned artifacts,
which eliminates the need for any pre-update actions in most deployments.
However, if the update of your cluster is blocked with the
invalidHelmReleasesconfiguration error, refer to
Update notes: Pre-update actions for details.
Note
In rare cases, if the image-related or global values should be
changed, you can use the ClusterRelease or KaaSRelease objects
instead. But make sure to update these values manually after every major
and patch update.
Note
The pre-update inspection applies only to images delivered by
Container Cloud that are overwritten. Any custom images unrelated to the
product components are not verified and do not block cluster update.
Added full support for OpenStack Antelope with Open vSwitch and Tungsten Fabric
21.4 networking backends.
Starting from 24.1, MOSK deploys all new clouds with
OpenStack Antelope by default. To upgrade an existing cloud from OpenStack Yoga
to Antelope, follow the Upgrade OpenStack procedure.
Highlights from upstream OpenStack supported by
MOSK deployed on Antelope
Designate:
Ability to share Designate zones across multiple projects. This not only
allows two or more projects to manage recordsets in the zone but also
enables “Classless IN-ADDR.ARPA delegation” (RFC 2317) in Designate.
“Classless IN-ADDR.ARPA delegation” permits IP address DNS PTR record
assignment in smaller blocks without creating a DNS zone for each address.
Manila:
Feature parity between the native client and OSC.
Capability for users to specify metadata when creating their share
snapshots. The behavior should be similar to Manila shares, allowing
users to query snapshots filtering them by metadata, and update or delete
the metadata of the given resources.
Neutron:
Capability for managing network traffic based on packet rate by
implementing the QoS (Quality of Service) rule type “packet per second”
(pps).
Nova:
Improved behavior for Windows guests by adding new Hyper-V enlightments on
all libvirt guests by default.
Ability to unshelve an instance to a specific host (admin only).
With microversion 2.92, the capability to only import a public key and not
generate a keypair. Also, the capability to use an extended name pattern.
Octavia:
Support for notifications about major events of the life cycle of a load
balancer. Only loadbalancer.[create|update|delete].end events are
emitted.
Implemented the capability to enable SPICE remote console through the
OpenStackDeployment custom resource as a method to interact with
OpenStack virtual machines through the CLI and desktop client as well
as MOSK Dashboard (OpenStack Horizon).
The usage of the SPICE remote console is an alternative to using the
noVNC-based VNC remote console.
Implemented the capability to configure and run Windows guests on OpenStack,
which allows for optimization of cloud infrastructure for diverse workloads.
Introduced support for the Virtual Graphics Processing Unit (vGPU) feature
that allows for leveraging the power of virtualized GPU resources to enhance
performance and scalability of cloud deployments.
Introduced the technical preview support for the API v2 for the Tungsten
Fabric Operator. This API version aligns with the OpenStack Controller
API and provides better interface for advanced configurations.
In MOSK 24.1, the API v2 is available only for the
greenfield product deployments with Tungsten Fabric. The Tungsten Fabric
configuration documentation provides configuration examples for both
API v1alpha1 and API v2.
Removed from support Tungsten Fabric analytics services, primarily designed
for collecting various metrics from the Tungsten Fabric services.
Despite its initial implementation, user demand for this feature has been
minimal. As a result, Tungsten Fabric analytics services become unsupported
in the product.
All greenfield deployments starting from MOSK 24.1
do not include Tungsten Fabric analytics services using StackLight capabilities
instead by default. The existing deployments updated to 24.1 and newer versions
will include Tungsten Fabric analytics services as well as the ability to
disable them.
Removal of the StackLight telegraf-openstack plugin¶
Removed StackLight telegraf-openstack plugin and replaced it with
osdpl-exporter.
All valuable Telegraf metrics used by StackLight components have been
reimplemented in osdpl-exporter and all dependent StackLight alerts
and dashboards started using new metrics.
Implemented more restrictive network policies for Kubernetes pods running
OpenStack services.
As part of the enhancement, added NetworkPolicy objects for all types of
Ceph daemons. These policies allow only specified ports to be used by the
corresponding Ceph daemon pods.
Mirantis has tested MOSK against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOSK components with the exact versions against which
testing has been performed.
This section describes the MOSK known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
After provisioning the controller node, the etcd pod initiates before the
Kubernetes networking is fully operational. As a result, the pod encounters
difficulties resolving DNS and establishing connections with other members,
ultimately leading to a panic state for the etcd service.
Workaround:
Delete the PVC related to the replaced controller node:
kubectl-nopenstackdeletepvc<PVC-NAME>
Delete pods related to the crashing etcd service on the replaced controller
node:
kubectl-nopenstackdeletepods<ETCD-POD-NAME>
[39768] OpenStack controller exporter fails to start¶
After upgrading to OpenStack Antelope, clusters with configured trunk ports
experience traffic flow disruptions that block the cluster updates.
To work around the issue, pin the MOSK Networking service
(OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
After upgrade to OpenStack Antelope, the virtual machines experience
connectivity disruptions when sending data over the virtual networks.
Network packets with full MTU are dropped.
The issue affects the MOSK clusters with Open vSwitch as the networking
backend and with the following specific MTU settings:
The MTU configured on the tunnel interface of compute nodes is equal
to the value of the
spec:services:networking:neutron:values:conf:neutron:DEFAULT:global_physnet_mtu
parameter of the OpenStackDeployment custom resource (if not specified,
default is 1500 bytes).
If the MTU of the tunnel interface is higher by at least 4 bytes, the cluster
is not affected by the issue.
The cluster contains virtual machines that have the MTU of the network
interfaces of the guest operating system larger than the MTU of the value of
the global_physnet_mtu parameter above minus 50 bytes.
To work around the issue, pin the MOSK Networking
service (OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
This section lists the Tungsten Fabric (TF) known issues with
workarounds for the Mirantis OpenStack for Kubernetes release
24.1. For TF limitations, see Tungsten Fabric known limitations.
[40032] tf-rabbitmq fails to start after rolling reboot¶
Occasionally, RabbitMQ instances in tf-rabbitmq pods fail to enable
the tracking_records_in_ets during the initialization process.
To work around the problem, restart the affected pods manually.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
The following issues have been addressed in the MOSK
24.1 release:
[OpenStack][Antelope][37678] Resolved the issue that
prevented instance live-migration due to CPU incompatibility.
[OpenStack][38629] Optimized resource allocation to enable
designate-api to scale up its operation.
[OpenStack][38792] Resolved the issue that prevented
MOSK from creating instances and volumes from
images stored in Pure Storage.
[OpenStack][39069] Resolved the issue that caused the
logging of false alerts about 401 responses from OpenStack endpoints.
[StackLight][36211] Resolved the issue that caused the
deprecated dashboards NGINX Ingress controller and
Ceph Nodes to be displayed in Grafana. These dashboards are
now removed. Therefore, Mirantis recommends switching to the following
dashboards:
OpenStack Ingress controller instead of
NGINX Ingress controller
For Ceph:
Ceph Cluster dashboard for Ceph stats
System dashboard for resource utilization, which includes
filtering by Ceph node labels, such as ceph_role_osd,
ceph_role_mon, and ceph_role_mgr
This section describes the specific actions you as a Cloud Operator need to
complete to accurately plan and successfully perform your
Mirantis OpenStack for Kubernetes (MOSK) cluster update to the
version 24.1.
Consider this information as a supplement to the generic update procedure
published in Operations Guide: Update a MOSK cluster.
Host operating system needs to be rebooted for the kernel update
to be applied. Configure live-migration of workloads to avoid the impact on the instances running
on a host.
To properly plan the update maintenance window, use the following
documentation:
Before updating the cluster, be sure to review the potential issues that
may arise during the process and the recommended solutions to address
them, as outlined in Update known issues.
Pre-update actions¶Unblock cluster update by removing any pinned product artifacts¶
If any pinned product artifacts are present in the Cluster object of a
management or managed cluster, the update will be blocked by the Admission
Controller with the invalidHelmReleasesconfiguration error until such
artifacts are removed. The update process does not start and any changes in
the Cluster object are blocked by the Admission Controller except the
removal of fields with pinned product artifacts.
Therefore, verify that the following sections of the Cluster objects
do not contain any image-related (tag, name, pullPolicy,
repository) and global values inside Helm releases:
The custom pinned product artifacts are inspected and blocked by the
Admission Controller to ensure that Container Cloud clusters remain
consistently updated with the latest security fixes and product improvements
Note
The pre-update inspection applies only to images delivered by
Container Cloud that are overwritten. Any custom images unrelated to the
product components are not verified and do not block cluster update.
Post-update actions¶Upgrade OpenStack to Antelope¶
With 24.1, MOSK is rolling out OpenStack Antelope support
for both Open vSwitch and Tungsten Fabric-based deployments.
Mirantis encourages you to upgrade to Antelope to start benefitting from the
enhanced functionality and new features of this OpenStack release.
MOSK allows for direct upgrade from Yoga to
Antelope, without the need to upgrade to the intermediate Zed release.
To upgrade the cloud, complete the Upgrade OpenStack procedure.
Important
There are several known issue affecting MOSK clusters running
OpenStack Antelope that can disrupt the network connectivity of the cloud
workloads.
If your cluster is still running OpenStack Yoga, update to the MOSK 24.2.1
patch release first and only then upgrade to OpenStack Antelope. If you
have not been applying patch releases previously and would prefer to switch
back to major releases-only mode, you will be able to do this when MOSK 24.3
is released.
If you have updated your cluster to OpenStack Antelope, apply the
workarounds described in Release notes: OpenStack known issues for the following issues:
[45879] [Antelope] Incorrect packet handling between instance and
its gateway
[44813] Traffic disruption observed on trunk ports
If your cluster runs Tungsten Fabric analytics services and you want to obtain
a more lightweight setup, you can disable these services through the custom
resource of the Tungsten Fabric Operator. For the details, refer to the
Tungsten Fabric analytics services deprecation notice.
In total, since MOSK 23.3 major release, in 24.1,
327 Common Vulnerabilities and Exposures (CVE) have been fixed:
15 of critical and 312 of high severity.
The table below includes the total number of addressed unique and common
CVEs by MOSK-specific component since
MOSK 23.3.4. The common CVEs are issues addressed
across several images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.26.0: Security notes.
The patch release notes contain the description of product enhancements,
the list of updated artifacts and Common Vulnerabilities and Exposures
(CVE) fixes as well as description of the addressed product issues
for the MOSK 24.1.1 patch.
For the list of enhancements and bug fixes that relate to Mirantis Container
Cloud, refer to the Mirantis Container Cloud Release notes.
Introduced the ability to update Ubuntu packages including kernel minor
version update, when available in a product release, to address CVE issues
on a host operating system.
On management clusters, the update of Ubuntu mirror along with the update
of minor kernel version occurs automatically with cordon-drain and reboot
of machines.
On MOSK clusters, the update of Ubuntu mirror along with the update of
minor kernel version applies during a manual cluster update without automatic
cordon-drain and reboot of machines. After a managed cluster update, all
cluster machines have the rebootisrequired notification.
The kernel update is not obligatory on MOSK clusters.
Though, if you prefer obtaining the latest CVE fixes for Ubuntu, update the
kernel by manually rebooting machines during a convenient maintenance window
using GracefulRebootRequest.
In MOSK 24.1.1, the kernel version has been updated to
5.15.0-97-generic.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.26.1: Security notes.
The following issues have been addressed in the MOSK
24.1.1 release:
[40036] Resolved the issue causing nodes to remain in the Kubernetes
cluster when the corresponding machine is marked as disabled during cluster
update.
After provisioning the controller node, the etcd pod initiates before the
Kubernetes networking is fully operational. As a result, the pod encounters
difficulties resolving DNS and establishing connections with other members,
ultimately leading to a panic state for the etcd service.
Workaround:
Delete the PVC related to the replaced controller node:
kubectl-nopenstackdeletepvc<PVC-NAME>
Delete pods related to the crashing etcd service on the replaced controller
node:
kubectl-nopenstackdeletepods<ETCD-POD-NAME>
[39768] OpenStack controller exporter fails to start¶
After upgrading to OpenStack Antelope, clusters with configured trunk ports
experience traffic flow disruptions that block the cluster updates.
To work around the issue, pin the MOSK Networking service
(OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
After upgrade to OpenStack Antelope, the virtual machines experience
connectivity disruptions when sending data over the virtual networks.
Network packets with full MTU are dropped.
The issue affects the MOSK clusters with Open vSwitch as the networking
backend and with the following specific MTU settings:
The MTU configured on the tunnel interface of compute nodes is equal
to the value of the
spec:services:networking:neutron:values:conf:neutron:DEFAULT:global_physnet_mtu
parameter of the OpenStackDeployment custom resource (if not specified,
default is 1500 bytes).
If the MTU of the tunnel interface is higher by at least 4 bytes, the cluster
is not affected by the issue.
The cluster contains virtual machines that have the MTU of the network
interfaces of the guest operating system larger than the MTU of the value of
the global_physnet_mtu parameter above minus 50 bytes.
To work around the issue, pin the MOSK Networking
service (OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
Remove the pinning after updating to MOSK 24.2.1 or
later patch or major release.
Tungsten Fabric¶[40032] tf-rabbitmq fails to start after rolling reboot¶
Occasionally, RabbitMQ instances in tf-rabbitmq pods fail to enable
the tracking_records_in_ets during the initialization process.
To work around the problem, restart the affected pods manually.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
You can bypass updating components of the cloud data plane to avoid
the network downtime during Update to a patch version. By using
this technique, you accept the risk that some security fixes may
not be applied.
The patch release notes contain the description of product enhancements,
the list of updated artifacts and Common Vulnerabilities and Exposures
(CVE) fixes as well as description of the addressed product issues
for the MOSK 24.1.2 patch.
The table below includes the total number of addressed unique and common
CVEs by MOSK-specific component since
MOSK 24.1.1. The common CVEs are issues addressed
across several images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.26.2: Security notes.
The following issues have been addressed in the MOSK
24.1.2 release:
[39663] Resolved the issue in OpenStack notifications for the Keystone
component where the "event_type":"identity.user.deleted" field lacked
the ID of the request initiator (req_initiator) in the CADF payload.
[39768] Resolved the issue that caused the OpenStack controller exporter
to fail to initialize within the default timeout on large (500+ compute
nodes) clusters.
[40712] Resolved the issue that caused nova-manageimage_property
to show traces.
[40740] Resolved the issue that caused the OpenStack sos report logs
collection failure.
After provisioning the controller node, the etcd pod initiates before the
Kubernetes networking is fully operational. As a result, the pod encounters
difficulties resolving DNS and establishing connections with other members,
ultimately leading to a panic state for the etcd service.
Workaround:
Delete the PVC related to the replaced controller node:
kubectl-nopenstackdeletepvc<PVC-NAME>
Delete pods related to the crashing etcd service on the replaced controller
node:
kubectl-nopenstackdeletepods<ETCD-POD-NAME>
[41810] Cluster update is stuck due to the OpenStack controller flooding¶
After upgrading to OpenStack Antelope, clusters with configured trunk ports
experience traffic flow disruptions that block the cluster updates.
To work around the issue, pin the MOSK Networking service
(OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
After upgrade to OpenStack Antelope, the virtual machines experience
connectivity disruptions when sending data over the virtual networks.
Network packets with full MTU are dropped.
The issue affects the MOSK clusters with Open vSwitch as the networking
backend and with the following specific MTU settings:
The MTU configured on the tunnel interface of compute nodes is equal
to the value of the
spec:services:networking:neutron:values:conf:neutron:DEFAULT:global_physnet_mtu
parameter of the OpenStackDeployment custom resource (if not specified,
default is 1500 bytes).
If the MTU of the tunnel interface is higher by at least 4 bytes, the cluster
is not affected by the issue.
The cluster contains virtual machines that have the MTU of the network
interfaces of the guest operating system larger than the MTU of the value of
the global_physnet_mtu parameter above minus 50 bytes.
To work around the issue, pin the MOSK Networking
service (OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
Remove the pinning after updating to MOSK 24.2.1 or
later patch or major release.
Tungsten Fabric¶[40032] tf-rabbitmq fails to start after rolling reboot¶
Occasionally, RabbitMQ instances in tf-rabbitmq pods fail to enable
the tracking_records_in_ets during the initialization process.
To work around the problem, restart the affected pods manually.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
You can bypass updating components of the cloud data plane to avoid
the network downtime during Update to a patch version. By using
this technique, you accept the risk that some security fixes may
not be applied.
For the list of enhancements and bug fixes that relate to Mirantis Container
Cloud, refer to the Mirantis Container Cloud Release notes.
The patch release notes contain the description of product enhancements,
the list of updated artifacts and Common Vulnerabilities and Exposures
(CVE) fixes as well as description of the addressed product issues
for the MOSK 24.1.3 patch.
The table below includes the total number of addressed unique and common
CVEs by MOSK-specific component since
MOSK 24.1.2. The common CVEs are issues addressed
across several images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.26.3: Security notes.
After provisioning the controller node, the etcd pod initiates before the
Kubernetes networking is fully operational. As a result, the pod encounters
difficulties resolving DNS and establishing connections with other members,
ultimately leading to a panic state for the etcd service.
Workaround:
Delete the PVC related to the replaced controller node:
kubectl-nopenstackdeletepvc<PVC-NAME>
Delete pods related to the crashing etcd service on the replaced controller
node:
kubectl-nopenstackdeletepods<ETCD-POD-NAME>
[43058] [Antelope] Cronjob for MariaDB is not created¶
Sometimes, after changing the OpenStackDeployment custom resource,
it does not transition to the APPLYING state as expected.
To work around the issue, restart the openstack-controller pod in
the osh-system namespace.
[44813] [Antelope] Traffic disruption observed on trunk ports¶
After upgrading to OpenStack Antelope, clusters with configured trunk ports
experience traffic flow disruptions that block the cluster updates.
To work around the issue, pin the MOSK Networking service
(OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
After upgrade to OpenStack Antelope, the virtual machines experience
connectivity disruptions when sending data over the virtual networks.
Network packets with full MTU are dropped.
The issue affects the MOSK clusters with Open vSwitch as the networking
backend and with the following specific MTU settings:
The MTU configured on the tunnel interface of compute nodes is equal
to the value of the
spec:services:networking:neutron:values:conf:neutron:DEFAULT:global_physnet_mtu
parameter of the OpenStackDeployment custom resource (if not specified,
default is 1500 bytes).
If the MTU of the tunnel interface is higher by at least 4 bytes, the cluster
is not affected by the issue.
The cluster contains virtual machines that have the MTU of the network
interfaces of the guest operating system larger than the MTU of the value of
the global_physnet_mtu parameter above minus 50 bytes.
To work around the issue, pin the MOSK Networking
service (OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
Remove the pinning after updating to MOSK 24.2.1 or
later patch or major release.
Tungsten Fabric¶[40032] tf-rabbitmq fails to start after rolling reboot¶
Occasionally, RabbitMQ instances in tf-rabbitmq pods fail to enable
the tracking_records_in_ets during the initialization process.
To work around the problem, restart the affected pods manually.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
You can bypass updating components of the cloud data plane to avoid
the network downtime during Update to a patch version. By using
this technique, you accept the risk that some security fixes may
not be applied.
For the list of enhancements and bug fixes that relate to Mirantis Container
Cloud, refer to the Mirantis Container Cloud Release notes.
The patch release notes contain the description of product enhancements,
the list of updated artifacts and Common Vulnerabilities and Exposures
(CVE) fixes as well as description of the addressed product issues
for the MOSK 24.1.4 patch.
The table below includes the total number of addressed unique and common
CVEs by MOSK-specific component compared to the previous
patch release version. The common CVEs are issues addressed across several
images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.26.4: Security notes.
The following issues have been addressed in the MOSK
24.1.4 release:
[40897][Tungsten Fabric]
Resolved the issue caused by absence of check for error 500
while checking the Tungsten Fabric services.
[41613][Tungsten Fabric]
Resolved the issue caused by incosistencies in the Database
Management Tool (the db_manage.py script) that checks, heals, and
cleans up inconsistent database entries.
[41784][OpenStack]
Resolved the issue caused by the missing dependency between
FIP association and router interface addition to the subnet with a server.
After provisioning the controller node, the etcd pod initiates before the
Kubernetes networking is fully operational. As a result, the pod encounters
difficulties resolving DNS and establishing connections with other members,
ultimately leading to a panic state for the etcd service.
Workaround:
Delete the PVC related to the replaced controller node:
kubectl-nopenstackdeletepvc<PVC-NAME>
Delete pods related to the crashing etcd service on the replaced controller
node:
kubectl-nopenstackdeletepods<ETCD-POD-NAME>
[43058] [Antelope] Cronjob for MariaDB is not created¶
Sometimes, after changing the OpenStackDeployment custom resource,
it does not transition to the APPLYING state as expected.
To work around the issue, restart the openstack-controller pod in
the osh-system namespace.
[44813] [Antelope] Traffic disruption observed on trunk ports¶
After upgrading to OpenStack Antelope, clusters with configured trunk ports
experience traffic flow disruptions that block the cluster updates.
To work around the issue, pin the MOSK Networking service
(OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
After upgrade to OpenStack Antelope, the virtual machines experience
connectivity disruptions when sending data over the virtual networks.
Network packets with full MTU are dropped.
The issue affects the MOSK clusters with Open vSwitch as the networking
backend and with the following specific MTU settings:
The MTU configured on the tunnel interface of compute nodes is equal
to the value of the
spec:services:networking:neutron:values:conf:neutron:DEFAULT:global_physnet_mtu
parameter of the OpenStackDeployment custom resource (if not specified,
default is 1500 bytes).
If the MTU of the tunnel interface is higher by at least 4 bytes, the cluster
is not affected by the issue.
The cluster contains virtual machines that have the MTU of the network
interfaces of the guest operating system larger than the MTU of the value of
the global_physnet_mtu parameter above minus 50 bytes.
To work around the issue, pin the MOSK Networking
service (OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
Remove the pinning after updating to MOSK 24.2.1 or
later patch or major release.
Tungsten Fabric¶[40032] tf-rabbitmq fails to start after rolling reboot¶
Occasionally, RabbitMQ instances in tf-rabbitmq pods fail to enable
the tracking_records_in_ets during the initialization process.
To work around the problem, restart the affected pods manually.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
You can bypass updating components of the cloud data plane to avoid
the network downtime during Update to a patch version. By using
this technique, you accept the risk that some security fixes may
not be applied.
The MOSK 24.1.4 patch provides the following updates:
Support for MKE 3.7.8
Update of minor kernel version from 5.15.0-102-generic to
5.15.0-105-generic
Security fixes for CVEs in images
Resolved product issues
For the list of enhancements and bug fixes that relate to Mirantis Container
Cloud, refer to the Mirantis Container Cloud Release notes.
The patch release notes contain the description of product enhancements,
the list of updated artifacts and Common Vulnerabilities and Exposures
(CVE) fixes as well as description of the addressed product issues
for the MOSK 24.1.5 patch:
The table below includes the total number of addressed unique and common
CVEs by MOSK-specific component compared to the previous
patch release version. The common CVEs are issues addressed across several
images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.26.5: Security notes.
The following issues have been addressed in the MOSK
24.1.5 release:
[42375][OpenStack] Resolved the issue with the OpenStack Controller
releasing more NodeWorkloadLock objects than allowed during creation of
concurrent NodeMaintenanceRequest objects.
After provisioning the controller node, the etcd pod initiates before the
Kubernetes networking is fully operational. As a result, the pod encounters
difficulties resolving DNS and establishing connections with other members,
ultimately leading to a panic state for the etcd service.
Workaround:
Delete the PVC related to the replaced controller node:
kubectl-nopenstackdeletepvc<PVC-NAME>
Delete pods related to the crashing etcd service on the replaced controller
node:
kubectl-nopenstackdeletepods<ETCD-POD-NAME>
[43058] [Antelope] Cronjob for MariaDB is not created¶
Sometimes, after changing the OpenStackDeployment custom resource,
it does not transition to the APPLYING state as expected.
To work around the issue, restart the openstack-controller pod in
the osh-system namespace.
[44813] [Antelope] Traffic disruption observed on trunk ports¶
After upgrading to OpenStack Antelope, clusters with configured trunk ports
experience traffic flow disruptions that block the cluster updates.
To work around the issue, pin the MOSK Networking service
(OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
After upgrade to OpenStack Antelope, the virtual machines experience
connectivity disruptions when sending data over the virtual networks.
Network packets with full MTU are dropped.
The issue affects the MOSK clusters with Open vSwitch as the networking
backend and with the following specific MTU settings:
The MTU configured on the tunnel interface of compute nodes is equal
to the value of the
spec:services:networking:neutron:values:conf:neutron:DEFAULT:global_physnet_mtu
parameter of the OpenStackDeployment custom resource (if not specified,
default is 1500 bytes).
If the MTU of the tunnel interface is higher by at least 4 bytes, the cluster
is not affected by the issue.
The cluster contains virtual machines that have the MTU of the network
interfaces of the guest operating system larger than the MTU of the value of
the global_physnet_mtu parameter above minus 50 bytes.
To work around the issue, pin the MOSK Networking
service (OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
Remove the pinning after updating to MOSK 24.2.1 or
later patch or major release.
Tungsten Fabric¶[40032] tf-rabbitmq fails to start after rolling reboot¶
Occasionally, RabbitMQ instances in tf-rabbitmq pods fail to enable
the tracking_records_in_ets during the initialization process.
To work around the problem, restart the affected pods manually.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
In rare cases, when ceph-controller cannot confirm the existence of
MOSK pools, instead of denying action and raising errors,
it proceeds to recreate the Cinder Ceph client. Such behavior may
potentially cause issues with OpenStack workloads.
Workaround::
In spec.cephClusterSpec of the KaaSCephCluster custom resource,
remove the external section.
Wait for the Not all mgrs are running: 1/2 message to disappear from the
KaaSCephClusterstatus.
Verify that the nova Ceph client that is integrated to
MOSK has the same keyring as in the Ceph cluster.
Keyring verification for the Ceph nova client
Compare the keyring used in the nova-compute and libvirt pods
with the one from the Ceph cluster:
If the keyring differs, change the one stored in Ceph cluster with
the key from the OpenStack pods:
kubectl-nrook-cephexec-itdeploy/rook-ceph-tools--bash
cephauthgetclient.nova-o/tmp/nova.key
vi/tmp/nova.key
# in the editor, change "key" value to the key obtained from the OpenStack pods# then save and exit editing
cephauthimport-i/tmp/nova.key
Verify that the client.nova keyring of the Ceph cluster matches the
one obtained from the OpenStack pods:
If the keyring differs, change the one stored in Ceph cluster with
the key from the OpenStack pods:
kubectl-nrook-cephexec-itdeploy/rook-ceph-tools--bash
cephauthgetclient.cinder-o/tmp/cinder.key
vi/tmp/cinder.key
# in the editor, change "key" value to the key obtained from the OpenStack pods# then save and exit editing
cephauthimport-i/tmp/cinder.key
Verify that the client.cinder keyring of the Ceph cluster matches
the one obtained from the OpenStack pods:
If the keyring differs, change the one stored in Ceph cluster with
the key from the OpenStack pods:
kubectl-nrook-cephexec-itdeploy/rook-ceph-tools--bash
cephauthgetclient.glance-o/tmp/glance.key
vi/tmp/glance.key
# in the editor, change "key" value to the key obtained from the OpenStack pods# then save and exit editing
cephauthimport-i/tmp/glance.key
Verify that the client.glance keyring of the Ceph cluster matches
the one obtained from the OpenStack pods:
You can bypass updating components of the cloud data plane to avoid
the network downtime during Update to a patch version. By using
this technique, you accept the risk that some security fixes may
not be applied.
To improve user update experience and make the update path more flexible,
MOSK is introducing a new scheme of updating between
cluster releases. More specifically, MOSK intends to
ultimately provide a possibility to update to any newer patch version within
single series at any point of time. The patch version downgrade is not
supported.
Though, in some cases, Mirantis may request to update to some specific
patch version in the series to be able to update to the next major series.
This may be necessary due to the specifics of technical content already
released or planned for the release.
Note
The management cluster update scheme remains the same.
A management cluster obtains the new product version automatically
after release.
The patch release notes contain the description of product enhancements,
the list of updated artifacts and Common Vulnerabilities and Exposures
(CVE) fixes as well as description of the addressed product issues
for the MOSK 24.1.6 patch:
The table below includes the total number of addressed unique and common
CVEs by MOSK-specific component compared to the previous
patch release version. The common CVEs are issues addressed across several
images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.27.1: Security notes.
After provisioning the controller node, the etcd pod initiates before the
Kubernetes networking is fully operational. As a result, the pod encounters
difficulties resolving DNS and establishing connections with other members,
ultimately leading to a panic state for the etcd service.
Workaround:
Delete the PVC related to the replaced controller node:
kubectl-nopenstackdeletepvc<PVC-NAME>
Delete pods related to the crashing etcd service on the replaced controller
node:
kubectl-nopenstackdeletepods<ETCD-POD-NAME>
[43058] [Antelope] Cronjob for MariaDB is not created¶
Sometimes, after changing the OpenStackDeployment custom resource,
it does not transition to the APPLYING state as expected.
To work around the issue, restart the openstack-controller pod in
the osh-system namespace.
[44813] [Antelope] Traffic disruption observed on trunk ports¶
After upgrading to OpenStack Antelope, clusters with configured trunk ports
experience traffic flow disruptions that block the cluster updates.
To work around the issue, pin the MOSK Networking service
(OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
After upgrade to OpenStack Antelope, the virtual machines experience
connectivity disruptions when sending data over the virtual networks.
Network packets with full MTU are dropped.
The issue affects the MOSK clusters with Open vSwitch as the networking
backend and with the following specific MTU settings:
The MTU configured on the tunnel interface of compute nodes is equal
to the value of the
spec:services:networking:neutron:values:conf:neutron:DEFAULT:global_physnet_mtu
parameter of the OpenStackDeployment custom resource (if not specified,
default is 1500 bytes).
If the MTU of the tunnel interface is higher by at least 4 bytes, the cluster
is not affected by the issue.
The cluster contains virtual machines that have the MTU of the network
interfaces of the guest operating system larger than the MTU of the value of
the global_physnet_mtu parameter above minus 50 bytes.
To work around the issue, pin the MOSK Networking
service (OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
Remove the pinning after updating to MOSK 24.2.1 or
later patch or major release.
Tungsten Fabric¶[40032] tf-rabbitmq fails to start after rolling reboot¶
Occasionally, RabbitMQ instances in tf-rabbitmq pods fail to enable
the tracking_records_in_ets during the initialization process.
To work around the problem, restart the affected pods manually.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
In rare cases, when ceph-controller cannot confirm the existence of
MOSK pools, instead of denying action and raising errors,
it proceeds to recreate the Cinder Ceph client. Such behavior may
potentially cause issues with OpenStack workloads.
Workaround::
In spec.cephClusterSpec of the KaaSCephCluster custom resource,
remove the external section.
Wait for the Not all mgrs are running: 1/2 message to disappear from the
KaaSCephClusterstatus.
Verify that the nova Ceph client that is integrated to
MOSK has the same keyring as in the Ceph cluster.
Keyring verification for the Ceph nova client
Compare the keyring used in the nova-compute and libvirt pods
with the one from the Ceph cluster:
If the keyring differs, change the one stored in Ceph cluster with
the key from the OpenStack pods:
kubectl-nrook-cephexec-itdeploy/rook-ceph-tools--bash
cephauthgetclient.nova-o/tmp/nova.key
vi/tmp/nova.key
# in the editor, change "key" value to the key obtained from the OpenStack pods# then save and exit editing
cephauthimport-i/tmp/nova.key
Verify that the client.nova keyring of the Ceph cluster matches the
one obtained from the OpenStack pods:
If the keyring differs, change the one stored in Ceph cluster with
the key from the OpenStack pods:
kubectl-nrook-cephexec-itdeploy/rook-ceph-tools--bash
cephauthgetclient.cinder-o/tmp/cinder.key
vi/tmp/cinder.key
# in the editor, change "key" value to the key obtained from the OpenStack pods# then save and exit editing
cephauthimport-i/tmp/cinder.key
Verify that the client.cinder keyring of the Ceph cluster matches
the one obtained from the OpenStack pods:
If the keyring differs, change the one stored in Ceph cluster with
the key from the OpenStack pods:
kubectl-nrook-cephexec-itdeploy/rook-ceph-tools--bash
cephauthgetclient.glance-o/tmp/glance.key
vi/tmp/glance.key
# in the editor, change "key" value to the key obtained from the OpenStack pods# then save and exit editing
cephauthimport-i/tmp/glance.key
Verify that the client.glance keyring of the Ceph cluster matches
the one obtained from the OpenStack pods:
To improve user update experience and make the update path more flexible,
MOSK is introducing a new scheme of updating between
cluster releases. More specifically, MOSK intends to
ultimately provide a possibility to update to any newer patch version within
single series at any point of time. The patch version downgrade is not
supported.
Though, in some cases, Mirantis may request to update to some specific
patch version in the series to be able to update to the next major series.
This may be necessary due to the specifics of technical content already
released or planned for the release.
Note
The management cluster update scheme remains the same.
A management cluster obtains the new product version automatically
after release.
You can bypass updating components of the cloud data plane to avoid
the network downtime during Update to a patch version. By using
this technique, you accept the risk that some security fixes may
not be applied.
The patch release notes contain the description of product enhancements,
the list of updated artifacts and Common Vulnerabilities and Exposures
(CVE) fixes as well as description of the addressed product issues
for the MOSK 24.1.7 patch:
The table below includes the total number of addressed unique and common
CVEs by MOSK-specific component compared to the previous
patch release version. The common CVEs are issues addressed across several
images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.27.2: Security notes.
After provisioning the controller node, the etcd pod initiates before the
Kubernetes networking is fully operational. As a result, the pod encounters
difficulties resolving DNS and establishing connections with other members,
ultimately leading to a panic state for the etcd service.
Workaround:
Delete the PVC related to the replaced controller node:
kubectl-nopenstackdeletepvc<PVC-NAME>
Delete pods related to the crashing etcd service on the replaced controller
node:
kubectl-nopenstackdeletepods<ETCD-POD-NAME>
[43058] [Antelope] Cronjob for MariaDB is not created¶
Sometimes, after changing the OpenStackDeployment custom resource,
it does not transition to the APPLYING state as expected.
To work around the issue, restart the openstack-controller pod in
the osh-system namespace.
[44813] [Antelope] Traffic disruption observed on trunk ports¶
After upgrading to OpenStack Antelope, clusters with configured trunk ports
experience traffic flow disruptions that block the cluster updates.
To work around the issue, pin the MOSK Networking service
(OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
After upgrade to OpenStack Antelope, the virtual machines experience
connectivity disruptions when sending data over the virtual networks.
Network packets with full MTU are dropped.
The issue affects the MOSK clusters with Open vSwitch as the networking
backend and with the following specific MTU settings:
The MTU configured on the tunnel interface of compute nodes is equal
to the value of the
spec:services:networking:neutron:values:conf:neutron:DEFAULT:global_physnet_mtu
parameter of the OpenStackDeployment custom resource (if not specified,
default is 1500 bytes).
If the MTU of the tunnel interface is higher by at least 4 bytes, the cluster
is not affected by the issue.
The cluster contains virtual machines that have the MTU of the network
interfaces of the guest operating system larger than the MTU of the value of
the global_physnet_mtu parameter above minus 50 bytes.
To work around the issue, pin the MOSK Networking
service (OpenStack Neutron) container image by adding the following content
to the OpenStackDeployment custom resource:
Remove the pinning after updating to MOSK 24.2.1 or
later patch or major release.
Tungsten Fabric¶[40032] tf-rabbitmq fails to start after rolling reboot¶
Occasionally, RabbitMQ instances in tf-rabbitmq pods fail to enable
the tracking_records_in_ets during the initialization process.
To work around the problem, restart the affected pods manually.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
In rare cases, when ceph-controller cannot confirm the existence of
MOSK pools, instead of denying action and raising errors,
it proceeds to recreate the Cinder Ceph client. Such behavior may
potentially cause issues with OpenStack workloads.
Workaround::
In spec.cephClusterSpec of the KaaSCephCluster custom resource,
remove the external section.
Wait for the Not all mgrs are running: 1/2 message to disappear from the
KaaSCephClusterstatus.
Verify that the nova Ceph client that is integrated to
MOSK has the same keyring as in the Ceph cluster.
Keyring verification for the Ceph nova client
Compare the keyring used in the nova-compute and libvirt pods
with the one from the Ceph cluster:
If the keyring differs, change the one stored in Ceph cluster with
the key from the OpenStack pods:
kubectl-nrook-cephexec-itdeploy/rook-ceph-tools--bash
cephauthgetclient.nova-o/tmp/nova.key
vi/tmp/nova.key
# in the editor, change "key" value to the key obtained from the OpenStack pods# then save and exit editing
cephauthimport-i/tmp/nova.key
Verify that the client.nova keyring of the Ceph cluster matches the
one obtained from the OpenStack pods:
If the keyring differs, change the one stored in Ceph cluster with
the key from the OpenStack pods:
kubectl-nrook-cephexec-itdeploy/rook-ceph-tools--bash
cephauthgetclient.cinder-o/tmp/cinder.key
vi/tmp/cinder.key
# in the editor, change "key" value to the key obtained from the OpenStack pods# then save and exit editing
cephauthimport-i/tmp/cinder.key
Verify that the client.cinder keyring of the Ceph cluster matches
the one obtained from the OpenStack pods:
If the keyring differs, change the one stored in Ceph cluster with
the key from the OpenStack pods:
kubectl-nrook-cephexec-itdeploy/rook-ceph-tools--bash
cephauthgetclient.glance-o/tmp/glance.key
vi/tmp/glance.key
# in the editor, change "key" value to the key obtained from the OpenStack pods# then save and exit editing
cephauthimport-i/tmp/glance.key
Verify that the client.glance keyring of the Ceph cluster matches
the one obtained from the OpenStack pods:
To improve user update experience and make the update path more flexible,
MOSK is introducing a new scheme of updating between
cluster releases. For the details and possible update paths, refer to
24.1.5 update notes: Cluster update scheme.
You can bypass updating components of the cloud data plane to avoid
the network downtime during Update to a patch version. By using
this technique, you accept the risk that some security fixes may
not be applied.
The primary distinction between major and patch product versions lies in
the fact that major release versions introduce new functionalities,
whereas patch release versions predominantly offer minor product
enhancements, mostly CVE resolutions for your clusters.
Depending on your deployment needs, you can either update only between
major releases or apply patch updates between major releases. Choosing
the latter option, which includes patch updates, ensures you receive
security fixes as soon as they become available. Though, be prepared
to update your cluster frequently, approximately once every three weeks.
Refer to the following documentation for the details about the release
content, update schemes, and so on:
Provided the technical preview support for OpenStack Antelope with Neutron OVS
and Tungsten Fabric 21.4 for greenfield deployments.
To start experimenting with the new functionality, set openstack_version to
antelope in the OpenStackDeployment custom resource during the cloud
deployment.
Implemented the capability to automatically collect logs and generate support
dumps that provide valuable insights for troubleshooting OpenStack-related
problems through the osctl sos report tool present within
the openstack-controller image.
Introduced FIPS-compatible encryption into the API of all
MOSK cloud services, ensuring data security and regulatory
compliance with the FIPS 140-2 standard.
Introduced support for Mirantis Kubernetes Engine (MKE) 3.7 with Kubernetes
1.27. MOSK clusters are updated to the latest supported
MKE version during the cluster update.
Implemented the OpenStack Usage Efficiency dashboard for Grafana
that provides information about requested (allocated) CPU and memory usage
efficiency on a per-project and per-flavor basis.
This dashboard aims to identify flavors that specific projects are not
effectively using, with allocations significantly exceeding actual usage.
Also, it evaluates per-instance underuse for specific projects.
Implemented the following monitoring improvements for Ceph:
Optimized the following Ceph dashboards in Grafana: Ceph Cluster,
Ceph Pools, Ceph OSDs.
Removed the redundant Ceph Nodes Grafana dashboard. You can view
its content using the following dashboards:
Ceph stats through the Ceph Cluster dashboard.
Resource utilization through the System dashboard, which now
includes filtering by Ceph node labels, such as ceph_role_osd,
ceph_role_mon, and ceph_role_mgr.
Removed the rook_cluster alert label.
Removed the redundant CephOSDDown alert.
Renamed the CephNodeDown alert to CephOSDNodeDown.
Implemented an online calculator for quick calculation of the approximate
time required to update your MOSK cluster that uses Open
vSwitch as a networking backend.
Published a procedure that instructs on how to orchestrate Tungsten Fabric
objects through Heat templates to ensure repeatability and consistency
across deployments.
Mirantis has tested MOSK against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOSK components with the exact versions against which
testing has been performed.
This section describes the MOSK known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
This section lists the OpenStack known issues with workarounds for the
Mirantis OpenStack for Kubernetes release 23.3.
[31186,34132] Pods get stuck during MariaDB operations¶
Due to the upstream MariaDB issue,
during MariaDB operations on a management cluster, Pods may get stuck
in continuous restarts with the following example error:
This section lists the Tungsten Fabric (TF) known issues with
workarounds for the Mirantis OpenStack for Kubernetes release
23.3. For TF limitations, see Tungsten Fabric known limitations.
The Cassandra containers of the tf-cassandra-analytics service are
experiencing high CPU and memory utilization. This is happening because
Cassandra Analytics is running out of memory, causing restarts of both
Cassandra and the Tungsten Fabric control plane services.
To work around the issue, use the custom images from the Mirantis public
repository:
Specify the image for config-api in the TFOperator custom resource:
To apply the changes, restart the vRouters manually.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
During update, the ingress pods that have not been updated yet adopt
the configuration meant for the updated pods, causing disruptions.
This occurs as ingress pods are sequentially updated, leading to potential
inaccessibility to the cloud public API for unpredictable durations until
all ingress pods are updated.
To mitigate this issue, Mirantis recommends updating ingress pods in larger
batches, preferably half of all pods at a time. This approach minimizes
downtime for the public API.
Workaround:
Before you start updating to MOSK 23.3:
Increase maxUnavailable for the ingress DaemonSet to 50% of replicas
by patching directly the DaemonSet:
In certain scenarios, the change may trigger an immediate restart of half
of the ingress pods. Therefore, after patching the ingress, wait until
all ingress pods become ready, taking into account that there might be
occasional failures in public API calls.
To verify that the patch has been applied successfully:
The following issues have been addressed in the MOSK
23.3 release:
[OpenStack][34897] Resolved the issue that caused the unavailability
of machines from the nodes with DPDK after update of OpenStack from Victoria
to Wallaby.
[OpenStack][34411] Resolved the issue with an incorrect port value
for RabbitMQ after update.
[OpenStack][25124] Improved performance while sending data between
instances affected by the Multiprotocol Label Switching over Generic Routing
Encapsulation (MPLSoGRE) throughput limitation.
[TF][30738] Fixed the issue that caused the tf-vrouter-agent
readiness probe failure (No Configuration for self).
[Update][35111] Resolved the issue that caused the
openstack-operator-ensure-resources job getting stuck
in CrashLoopBackOff.
[WireGuard][35147] Resolved the issue that prevented the WireGuard
interface from having the IPv4 address assigned.
[Bare metal][34342] Resolved the issue that caused a failure of the
etcd pods due to the simultaneous deployment of several pods on a single
node. To ensure that etcd pods are always placed on different nodes,
MOSK now deploys etcd with
the requiredDuringSchedulingIgnoredDuringExecution policy.
[StackLight][35738] Resolved the issue with ucp-node-exporter.
It was unable to bind port 9100, causing the ucp-node-exporter start
failure. This issue was due to a conflict with the StackLight
node-exporter, which was also binding the same port.
The resolution of the issue involves an automatic change of the port for the
StackLight node-exporter from 9100 to 19100. No manual port update is
required.
If your cluster uses a firewall, add an additional firewall rule that
grants the same permissions to port 19100 as those currently assigned
to port 9100 on all cluster nodes.
This section describes the specific actions you as a Cloud Operator need to
complete to accurately plan and successfully perform your
Mirantis OpenStack for Kubernetes (MOSK) cluster update to the
version 23.3.
Consider this information as a supplement to the generic update procedure
published in Operations Guide: Update a MOSK cluster.
Before updating the cluster, be sure to review the potential issues that
may arise during the process and the recommended solutions to address
them, as outlined in Update known issues.
In the 23.3 release series, MOSK stops supporting
Ubuntu 18.04. Therefore, upgrade the operating system on your cluster
machines to Ubuntu 20.04 before you update to MOSK
23.3. Otherwise, the Cluster release update for the cluster running
on Ubuntu 18.04 becomes impossible.
It is not mandatory to upgrade all machines at once. You can upgrade them
one by one or in small batches, for example, if the maintenance window is
limited in time.
MOSK supports the OpenStack Victoria version until
September, 2023. MOSK 23.2 was the last release version
where OpenStack Victoria packages were updated.
If you have not already upgraded your OpenStack version to Yoga, perform the
upgrade before cluster update.
While updating your cluster, the Instance High Availability service
(OpenStack Masakari) may not work as expected. Therefore, temporarily
disable the service by removing instance-ha from the service list
in the OpenStackDeployment custom resource.
Ensure running one etcd pod per OpenStack controller node¶
During the update, you may encounter the issue that causes a failure of the
etcd pods due to the simultaneous deployment of several pods on a single
node.
Therefore, before starting the update, ensure that each OpenStack controller
node runs only one etcd pod.
In total, since MOSK 23.2 major release, in 23.3, 466
Common Vulnerabilities and Exposures (CVE) have been fixed:
24 of critical and 442 of high severity.
The table below includes the total numbers of addressed unique and common
CVEs by MOSK-specific component since
MOSK 23.2.3. The common CVEs are issues addressed
across several images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.25.0: Security notes.
The patch release notes contain the list of updated artifacts
and Common Vulnerabilities and Exposures (CVE) fixes in images
as well as description of the addressed product issues for the
MOSK 23.3.1 patch.
For the list of enhancements and bug fixes that relate to Mirantis Container
Cloud, refer to the Mirantis Container Cloud Release notes.
In total, since MOSK 23.3 release, in 23.3.1, 157
Common Vulnerabilities and Exposures (CVE) have been fixed:
5 of critical and 152 of high severity.
The table below includes the total numbers of addressed unique and common
CVEs by MOSK-specific component since
MOSK 23.2.3. The common CVEs are issues addressed
across several images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.25.1: Security notes.
The following issues have been addressed in the MOSK
23.3.1 release:
[37012] Resolved the issue that caused the cluster update failure due
to instances evacuation when they were not supposed to be evacuated.
[37083] Resolved the issue that caused Cloudprober to produce warnings
about large amount of targets.
[37185] Resolved the issue that caused the OpenStack Controller to fail
while applying the Manila Helm charts during the attempt to enable Manila
through the OpenStackDeployment custom resource.
The patch release notes contain the list of updated artifacts
and Common Vulnerabilities and Exposures (CVE) fixes in images
for the MOSK 23.3.2 patch.
For the list of enhancements and bug fixes that relate to Mirantis Container
Cloud, refer to the Mirantis Container Cloud Release notes.
The table below includes the total number of addressed unique and common
CVEs by MOSK-specific component since
MOSK 23.3.1. The common CVEs are issues addressed
across several images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.25.2: Security notes.
The patch release notes contain the lists of updated artifacts and
addressed product issues, as well as the details on Common
Vulnerabilities and Exposures (CVE) fixes in images for the
MOSK 23.3.3 patch.
For the list of enhancements and bug fixes that relate to Mirantis Container
Cloud, refer to the Mirantis Container Cloud Release notes.
The table below includes the total number of addressed unique and common
CVEs by MOSK-specific component since
MOSK 23.3.2. The common CVEs are issues addressed
across several images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.25.3: Security notes.
The patch release notes contain the lists of updated artifacts and
addressed product issues, as well as the details on Common
Vulnerabilities and Exposures (CVE) fixes in images for the
MOSK 23.3.4 patch.
For the list of enhancements and bug fixes that relate to Mirantis Container
Cloud, refer to the Mirantis Container Cloud Release notes.
The table below includes the total number of addressed unique and common
CVEs by MOSK-specific component since
MOSK 23.3.3. The common CVEs are issues addressed
across several images.
For the detailed list of fixed and present CVEs across the Mirantis
Container Cloud and MOSK products, refer to
Mirantis Security Portal.
Mirantis Container Cloud CVEs
For the number of fixed CVEs in the Mirantis Container Cloud-related
components including kaas core, bare metal, Ceph, and StackLight, refer to
Container Cloud 2.25.4: Security notes.
The primary distinction between major and patch product versions lies in
the fact that major release versions introduce new functionalities,
whereas patch release versions predominantly offer minor product
enhancements, mostly CVE resolutions for your clusters.
Depending on your deployment needs, you can either update only between
major releases or apply patch updates between major releases. Choosing
the latter option, which includes patch updates, ensures you receive
security fixes as soon as they become available. Though, be prepared
to update your cluster frequently, approximately once every three weeks.
Refer to the following documentation for the details about the release
content, update schemes, and so on:
Implemented the capability to parallelize OpenStack, Ceph, and Tungsten Fabric
node update operations, significantly improving the efficiency of
MOSK deployments. The parallel node update feature applies
to any operation that utilizes the Node Maintenance API, such as cluster
updates or graceful node reboots.
Implemented the OpenStack workload monitoring feature through
the Cloudprober exporter.
After enablement and proper configuration, the exporter allows for
monitoring the availability of instance floating IP addresses
per OpenStack compute node and project, as well as viewing
the probe statistics for individual instance floating IP addresses
through the Openstack Instances Availability dashboard
in Grafana.
Introduced the Technology Preview support for the BGP dynamic routing
extension to the Networking service (OpenStack Neutron) that will be
particularly useful for the MOSK clouds where private
networks managed by cloud users need to be transparently integrated into the
networking of the data center.
Implemented the TLS encryption feature for QEMU and libvirt to secure all data
transports during live migration, including disks not on shared storage.
Tungsten Fabric graceful restart and long-lived graceful restart¶
Available since MOSK 23.2
for Tungsten Fabric 21.4 onlyTechPreview
Added support for graceful restart and long-lived graceful restart
allowing for a more efficient and robust routing experience for
Tungsten Fabric. These features enhance the speed at which routing
tables converge, specifically when dealing with BGP router restarts or
failures.
Introduced support for Mirantis Kubernetes Engine (MKE) 3.6 with Kubernetes
1.24. MOSK clusters are updated to the latest supported
MKE version during the cluster update.
Added initial Technology Preview support for custom host names of cluster
machines. When enabled, any machine host name in a particular region matches
the related Machine object name.
Added initial Technology Preview support for the Linux Audit daemon
auditd to monitor activity of cluster processes that allow for
detection of potential malicious activity.
Added a tutorial to help you build your first cloud application and onboard
it to a MOSK cloud. It will guide you through the process of
deploying a simple application using the cloud web UI (OpenStack Horizon).
Mirantis has tested MOSK against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOSK components with the exact versions against which
testing has been performed.
This section describes the MOSK known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
Multiprotocol Label Switching over Generic Routing Encapsulation (MPLSoGRE)
provides limited throughput while sending data between VMs up to 38 Mbps, as
per Mirantis tests.
As a workaround, switch the encapsulation type to VXLAN in the
OpenStackDeployment custom resource:
[31186,34132] Pods get stuck during MariaDB operations¶
Due to the upstream MariaDB issue,
during MariaDB operations on a management cluster, Pods may get stuck
in continuous restarts with the following example error:
This section lists the Tungsten Fabric (TF) known issues with
workarounds for the Mirantis OpenStack for Kubernetes release
23.2. For TF limitations, see Tungsten Fabric known limitations.
The Cassandra containers of the tf-cassandra-analytics service are
experiencing high CPU and memory utilization. This is happening because
Cassandra Analytics is running out of memory, causing restarts of both
Cassandra and the Tungsten Fabric control plane services.
To work around the issue, use the custom images from the Mirantis public
repository:
Specify the image for config-api in the TFOperator custom resource:
Execution of the TF Heat Tempest test test_template_global_vrouter_config
can result in lost vRouter configuration. This causes the tf-vrouter pod
readiness probe to fail with the following error message:
"Readiness probe failed:vRouter is PRESENT contrail-vrouter-agent: initializing (No Configuration for self)"
As a result, vRouters may have an incomplete routing table making some
services, such as metadata, become unavailable.
Workaround:
Add the tf_heat_tempest_plugin tests with global configuration to the
exclude list in the OpenStackDeployment custom resource:
If you ran test_template_global_vrouter_config and tf-vrouter-agent
pods moved to the error state with the above error, re-create these pods
through deletion:
kubectl-ntfdeletepodtf-vrouter-agent-*
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
Due to the upstream Calico
issue, on clusters
with Wireguard enabled, the Wireguard interface on a node may not have
the IPv4 address assigned. This leads to broken inter-Pod communication
between the affected node and other cluster nodes.
The node is affected if the IP address is missing on the Wireguard interface:
During MOSK update to either 23.2 major release or
any patch release of the 23.2 release series, the
openstack-operator-ensure-resources job may get stuck in
the CrashLoopBackOff state with the following error:
Traceback (most recent call last):File "/usr/local/bin/osctl-ensure-shared-resources", line 8, in <module>sys.exit(main())File "/usr/local/lib/python3.8/dist-packages/openstack_controller/cli/ensure_shared_resources.py", line 61, in mainobj.update()File "/usr/local/lib/python3.8/dist-packages/pykube/objects.py", line 165, in updateself.patch(self.obj, subresource=subresource)File "/usr/local/lib/python3.8/dist-packages/pykube/objects.py", line 157, in patchself.api.raise_for_status(r)File "/usr/local/lib/python3.8/dist-packages/pykube/http.py", line 444, in raise_for_statusraise HTTPError(resp.status_code, payload["message"])pykube.exceptions.HTTPError:CustomResourceDefinition.apiextensions.k8s.io "redisfailovers.databases.spotahome.com" is invalid: spec.preserveUnknownFields: Invalid value: true:must be false in order to use defaults in the schema
As a workaround, delete the redisfailovers.databases.spotahome.com
CRD from your cluster:
The following issues have been addressed in the MOSK
23.2 release:
[OpenStack][33006] Fixed the issue that prevented communication
between virtual machines on the same network.
[OpenStack][34208] Prevented the Masakari API pods from constant
restart.
[TF][32723] Fixed the issue that prevented a compiled vRouter
kmod from automatic refreshing with the new kernel.
[TF][32326] Fixed the issue that allowed for unathorized access
to the Tungsten Fabric API.
[Ceph][30635] Fixed the issue with irrelevant error message
displaying in the osd-prepare Pod during the deployment of Ceph OSDs on
removable devices on AMD nodes. Now, the error message clearly states that
removable devices with hotplug enabled are not supported for deploying
Ceph OSDs.
[Ceph][31630] Fixed the issue that caused the Ceph cluster upgrade
to Pacific to be stuck with Rook connection failure.
[Ceph][31555] Fixed the issue with Ceph finding only 1 out of 2
mgr after update.
[Ceph][23292] Fixed the issue that caused the failure of the Ceph
rook-operator with FIPS kernel.
[Update][27797] Fixed the issue that stopped cluster kubeconfig
from working during the MKE minor version update.
[Update][32311] Fixed the issue with the tf-rabbit-exporter
ReplicaSet blocking the cluster update.
[StackLight][30867] Fixed the Instance Info panel
for RabbitMQ in Grafana.
This section describes the specific actions you as a Cloud Operator need to
complete to accurately plan and successfully perform your
Mirantis OpenStack for Kubernetes (MOSK) cluster update to the
version 23.2.
Consider this information as a supplement to the generic update procedure
published in Operations Guide: Update a MOSK cluster.
The update to MOSK 23.2 does not include any
version-specific impact on the cluster. To start planning a maintenance window,
use the Operations Guide: Update a MOSK cluster standard procedure.
Before updating the cluster, be sure to review the potential issues that
may arise during the process and the recommended solutions to address
them, as outlined in Cluster update known issues.
Pre-update actions¶Disable the Instance High Availability service¶
While updating your cluster, the Instance High Availability service
(OpenStack Masakari) may not work as expected. Therefore, temporarily
disable the service by removing instance-ha from the service list
in the OpenStackDeployment custom resource.
In the next release series, MOSK will stop supporting
Ubuntu 18.04. Therefore, Mirantis highly recommends upgrading an operating
system on your cluster machines to Ubuntu 20.04 during the course of the
MOSK 23.2 series by rebooting cluster nodes.
It is not mandatory to reboot all machines at once. You can reboot them
one by one or in small batches, for example, if the maintenance window is
limited in time.
Otherwise, the Cluster release update for the cluster running on Ubuntu 18.04
will become impossible.
MOSK supports the OpenStack Victoria version until
September, 2023. MOSK 23.2 is the last release version
where OpenStack Victoria packages are updated.
If you have not already upgraded your OpenStack version to Yoga, Mirantis
highly recommends doing this during the course of the MOSK
23.2 series.
Make the OpenStack notifications available in StackLight¶
After the update, the notifications from OpenStack become unavailable in
StackLight. On an attempt to establish a TCP connection to the RabbitMQ
server, the connection is refused with the following error:
In total, since MOSK 23.1 major release, in 23.2, 1611
Common Vulnerabilities and Exposures (CVE) have been fixed:
65 of critical and 1546 of high severity.
Among them, 689 CVEs that are listed in
Addressed CVEs - detailed have been fixed since 23.1.4 patch release:
29 of critical and 660 of high severity. The fixes for the rest of CVEs
were released with the patch releases of the MOSK 23.1
series.
The full list of the CVEs present in the current Mirantis OpenStack for
Kubernetes (MOSK) release is available at the Mirantis Security Portal.
The Addressed CVEs - summary table includes the total number of
unique CVEs along with the total number of issues fixed across images.
Duplicate CVEs for packages in
the Addressed CVEs - detailed table can mean that they were
discovered in container images with the same names but different tags,
for example, openstack/barbican for Openstack Victoria and Yoga
versions.
The patch release notes contain the list of artifacts and Common
Vulnerabilities and Exposures (CVE) fixes for the MOSK
23.2.1 patch released on August 29, 2023.
For the list of enhancements and bug fixes that relate to Mirantis Container
Cloud, refer to the Mirantis Container Cloud Release notes.
This section lists the cluster update known issues with workarounds for the
Mirantis OpenStack for Kubernetes release 23.2.1.
[35111] openstack-operator-ensure-resources job stuck in CrashLoopBackOff¶
During MOSK update to either 23.2 major release or
any patch release of the 23.2 release series, the
openstack-operator-ensure-resources job may get stuck in
the CrashLoopBackOff state with the following error:
Traceback (most recent call last):File "/usr/local/bin/osctl-ensure-shared-resources", line 8, in <module>sys.exit(main())File "/usr/local/lib/python3.8/dist-packages/openstack_controller/cli/ensure_shared_resources.py", line 61, in mainobj.update()File "/usr/local/lib/python3.8/dist-packages/pykube/objects.py", line 165, in updateself.patch(self.obj, subresource=subresource)File "/usr/local/lib/python3.8/dist-packages/pykube/objects.py", line 157, in patchself.api.raise_for_status(r)File "/usr/local/lib/python3.8/dist-packages/pykube/http.py", line 444, in raise_for_statusraise HTTPError(resp.status_code, payload["message"])pykube.exceptions.HTTPError:CustomResourceDefinition.apiextensions.k8s.io "redisfailovers.databases.spotahome.com" is invalid: spec.preserveUnknownFields: Invalid value: true:must be false in order to use defaults in the schema
As a workaround, delete the redisfailovers.databases.spotahome.com
CRD from your cluster:
The patch release notes contain the list of artifacts and Common
Vulnerabilities and Exposures (CVE) fixes for the MOSK
23.2.2 patch released on September 14, 2023.
For the list of enhancements and bug fixes that relate to Mirantis Container
Cloud, refer to the Mirantis Container Cloud Release notes.
The following issues have been addressed in the MOSK
23.2.2 release:
[34342] Resolved the issue that caused a failure of the etcd pods due
to the simultaneous deployment of several pods on a single node. To ensure
that etcd pods are always placed on different nodes, MOSK
now deploys etcd with the requiredDuringSchedulingIgnoredDuringExecution
policy.
[34276] Resolved the issue that caused the presence of stale namespaces
if the agent responsible for hosting the network was modified while
the agent was offline.
During the update, you may encounter the issue that causes a failure of the
etcd pods due to the simultaneous deployment of several pods on a single
node.
The workaround is to remove the PVC for one etcd pod.
[35111] openstack-operator-ensure-resources job stuck in CrashLoopBackOff¶
During MOSK update to either 23.2 major release or
any patch release of the 23.2 release series, the
openstack-operator-ensure-resources job may get stuck in
the CrashLoopBackOff state with the following error:
Traceback (most recent call last):File "/usr/local/bin/osctl-ensure-shared-resources", line 8, in <module>sys.exit(main())File "/usr/local/lib/python3.8/dist-packages/openstack_controller/cli/ensure_shared_resources.py", line 61, in mainobj.update()File "/usr/local/lib/python3.8/dist-packages/pykube/objects.py", line 165, in updateself.patch(self.obj, subresource=subresource)File "/usr/local/lib/python3.8/dist-packages/pykube/objects.py", line 157, in patchself.api.raise_for_status(r)File "/usr/local/lib/python3.8/dist-packages/pykube/http.py", line 444, in raise_for_statusraise HTTPError(resp.status_code, payload["message"])pykube.exceptions.HTTPError:CustomResourceDefinition.apiextensions.k8s.io "redisfailovers.databases.spotahome.com" is invalid: spec.preserveUnknownFields: Invalid value: true:must be false in order to use defaults in the schema
As a workaround, delete the redisfailovers.databases.spotahome.com
CRD from your cluster:
The patch release notes contain the list of artifacts and Common
Vulnerabilities and Exposures (CVE) fixes as well as description of the fixed
product issues for the MOSK 23.2.3 patch released on
September 26, 2023.
For the list of enhancements and bug fixes that relate to Mirantis Container
Cloud, refer to the Mirantis Container Cloud Release notes.
During the update, you may encounter the issue that causes a failure of the
etcd pods due to the simultaneous deployment of several pods on a single
node.
The workaround is to remove the PVC for one etcd pod.
[35111] openstack-operator-ensure-resources job stuck in CrashLoopBackOff¶
During MOSK update to either 23.2 major release or
any patch release of the 23.2 release series, the
openstack-operator-ensure-resources job may get stuck in
the CrashLoopBackOff state with the following error:
Traceback (most recent call last):File "/usr/local/bin/osctl-ensure-shared-resources", line 8, in <module>sys.exit(main())File "/usr/local/lib/python3.8/dist-packages/openstack_controller/cli/ensure_shared_resources.py", line 61, in mainobj.update()File "/usr/local/lib/python3.8/dist-packages/pykube/objects.py", line 165, in updateself.patch(self.obj, subresource=subresource)File "/usr/local/lib/python3.8/dist-packages/pykube/objects.py", line 157, in patchself.api.raise_for_status(r)File "/usr/local/lib/python3.8/dist-packages/pykube/http.py", line 444, in raise_for_statusraise HTTPError(resp.status_code, payload["message"])pykube.exceptions.HTTPError:CustomResourceDefinition.apiextensions.k8s.io "redisfailovers.databases.spotahome.com" is invalid: spec.preserveUnknownFields: Invalid value: true:must be false in order to use defaults in the schema
As a workaround, delete the redisfailovers.databases.spotahome.com
CRD from your cluster:
The primary distinction between major and patch product versions lies in
the fact that major release versions introduce new functionalities,
whereas patch release versions predominantly offer minor product
enhancements, mostly CVE resolutions for your clusters.
Depending on your deployment needs, you can either update only between
major releases or apply patch updates between major releases. Choosing
the latter option, which includes patch updates, ensures you receive
security fixes as soon as they become available. Though, be prepared
to update your cluster frequently, approximately once every three weeks.
Refer to the following documentation for the details about the release
content, update schemes, and so on:
Dynamic configuration of resource oversubscription¶
Introduced a new default way to configure the resource oversubscription
in the cloud that enables the cloud operator to dynamically control the
oversubscription through the Compute service (OpenStack Nova) placement API.
The initial configuration is performed through the OpenStackDeployment
custom resource. By default, the following values are applied:
Starting from 23.1, MOSK deploys all new clouds using
Tungsten Fabric 21.4 by default. The existing OpenStack deployments using
Tungsten Fabric as a networking backend will obtain this new version
automatically during the cluster update to MOSK 23.1.
One of the key highlights of the Tungsten Fabric 21.4 release is the support
for configuring Maximum Transmission Unit for virtual networks. This
capability enables you to set the maximum packet size for your virtual
networks, ensuring that your network traffic is optimized for performance and
efficiency.
Enhanced load balancing as a service for Tungsten Fabric -enabled
MOSK clouds by adding support for Amphora instances
on top of the Tungsten Fabric networks.
Compared to the old implementation, which relied on the
Tungsten Fabric-controlled HAproxy, the new approach offers:
Implemented the new panels in the Grafana dashboards for OpenSearch
and Prometheus that provide details on the storage usage and allow
calculating the possible retention time based on provisioned storage and
average usage.
Added the capability to forward logs to external Elasticsearch and OpenSearch
servers as the fluentd-logs output. This enhancement also expands
existing configuration options for log forwarding to syslog.
Implemented the capability to hide sensitive fields from the
OpenStackDeployment object by adding reference to a secret
to this object using the value_from structure.
Implemented the functionality that enables cloud operators to periodically
rotate credentials of OpenStack admin and service users with minimized
impact on service availability and workload downtime.
Ensured better security for the noVNC client by allowing encryption of data
transfer between the instances and the noVNC proxy server using VeNCrypt
authentication scheme. You can enable this feature by defining
features:nova:console:novnc:tls:enabled in the OpenStackDeployment
custom resource.
Technology Preview. Reworked the default MOSK access
policies to restrict the permissions of a project administrator role
exclusively to the scope of their project.
Implemented the capability to reboot several cluster nodes in one go by using
the Graceful reboot mechanism
provided by Mirantis Container Cloud. The mechanism restarts the selected
nodes one by one, honoring the instance migration policies.
Implemented the capability to identify the nodes requiring reboot through
both the Mirantis Container Cloud API and web UI:
API: reboot.required.true in
status:providerStatus of a Machine object
Web UI: the One or more machines require a reboot
notification on the Clusters and Machines pages
Published the tutorial to help you build your first cloud application and
onboard it to a MOSK cloud. The dedicated section
in the User Guide will guide you through the process of deploying and
managing a sample application using automation, and showcase the powerful
capabilities of OpenStack.
Published the instructions on how you can customize the functionality of
MOSK OpenStack services by installing custom system
or Python packages into their container images.
Mirantis has tested MOSK against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOSK components with the exact versions against which
testing has been performed.
This section describes the MOSK known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
This section lists the OpenStack known issues with workarounds for the
Mirantis OpenStack for Kubernetes release 23.1.
[25124] MPLSoGRE encapsulation has limited throughput¶
Multiprotocol Label Switching over Generic Routing Encapsulation (MPLSoGRE)
provides limited throughput while sending data between VMs up to 38 Mbps, as
per Mirantis tests.
As a workaround, switch the encapsulation type to VXLAN in the
OpenStackDeployment custom resource:
This section lists the Tungsten Fabric (TF) known issues with
workarounds for the Mirantis OpenStack for Kubernetes release
23.1. For TF limitations, see Tungsten Fabric known limitations.
Execution of the TF Heat Tempest test test_template_global_vrouter_config
can result in lost vRouter configuration. This causes the tf-vrouter pod
readiness probe to fail with the following error message:
"Readiness probe failed:vRouter is PRESENT contrail-vrouter-agent: initializing (No Configuration for self)"
As a result, vRouters may have an incomplete routing table making some
services, such as metadata, become unavailable.
Workaround:
Add the tf_heat_tempest_plugin tests with global configuration to the
exclude list in the OpenStackDeployment custom resource:
If you ran test_template_global_vrouter_config and tf-vrouter-agent
pods moved to the error state with the above error, re-create these pods
through deletion:
kubectl-ntfdeletepodtf-vrouter-agent-*
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
The vRouter kernel module remains at
/usr/src/vrouter-<TF-VROUTER-IMAGE-VERSION>, even
if it was initially compiled for an older kernel version. This leads
to the reuse of compiled artifacts without recompilation. Consequently,
after upgrading to Mirantis OpenStack for Kubernetes 23.1, an outdated module gets
loaded onto the new kernel. This mismatch results in a failure that
triggers the CrashLoop state for the vRouter on the affected node.
Workaround:
On the affected node, move the old vRouter kernel module to another
directory. For example:
The deployment of Ceph OSDs fails with the following messages in the status
section of the KaaSCephCluster custom resource:
shortClusterInfo:messages:-Not all osds are deployed-Not all osds are in-Not all osds are up
To find out if your cluster is affected, verify if the devices on
the AMD hosts you use for the Ceph OSDs deployment are removable.
For example, if the sdb device name is specified in
spec.cephClusterSpec.nodes.storageDevices of the KaaSCephCluster
custom resource for the affected host, run:
# cat /sys/block/sdb/removable1
The system output shows that the reason of the above messages in status
is the enabled hotplug functionality on the AMD nodes, which marks all drives
as removable. And the hotplug functionality is not supported by Ceph in
MOSK.
As a workaround, disable the hotplug functionality in the BIOS settings
for disks that are configured to be used as Ceph OSD data devices.
[31630] Ceph cluster upgrade to Pacific is stuck with Rook connection failure¶
The KaaSCephCluster custom resource contains the following configuration
option in the rookConfig section:
spec:cephClusterSpec:rookConfig:ms_crc_data:"false"# or 'ms crc data: "false"'
As a workaround, remove ms_crc_data (or mscrcdata) configuration
key from the KaaSCephCluster custom resource and wait for the
rook-ceph-mon pods to restart on the MOSK cluster:
kubectl-nrook-cephgetpod-lapp=rook-ceph-mon-w
[31555] Ceph can find only 1 out of 2 ‘mgr’ after update to MOSK 23.1¶
Fixed in 23.2
After update to MOSK 23.1, the status section of the KaaSCephCluster
custom resource can contain the following message:
shortClusterInfo:messages:-Not all mgrs are running:1/2
To verify whether the cluster is affected:
If the KaaSCephCluster spec contains the external section, the cluster
is affected:
spec:cephClusterSpec:external:enable:false
Workaround::
In spec.cephClusterSpec of the KaaSCephCluster custom resource,
remove the external section.
Wait for the Not all mgrs are running: 1/2 message to disappear from the
KaaSCephClusterstatus.
Verify that the nova Ceph client that is integrated to
MOSK has the same keyring as in the Ceph cluster.
Keyring verification for the Ceph nova client
Compare the keyring used in the nova-compute and libvirt pods
with the one from the Ceph cluster:
If the keyring differs, change the one stored in Ceph cluster with
the key from the OpenStack pods:
kubectl-nrook-cephexec-itdeploy/rook-ceph-tools--bash
cephauthgetclient.nova-o/tmp/nova.key
vi/tmp/nova.key
# in the editor, change "key" value to the key obtained from the OpenStack pods# then save and exit editing
cephauthimport-i/tmp/nova.key
Verify that the client.nova keyring of the Ceph cluster matches the
one obtained from the OpenStack pods:
If the keyring differs, change the one stored in Ceph cluster with
the key from the OpenStack pods:
kubectl-nrook-cephexec-itdeploy/rook-ceph-tools--bash
cephauthgetclient.cinder-o/tmp/cinder.key
vi/tmp/cinder.key
# in the editor, change "key" value to the key obtained from the OpenStack pods# then save and exit editing
cephauthimport-i/tmp/cinder.key
Verify that the client.cinder keyring of the Ceph cluster matches
the one obtained from the OpenStack pods:
If the keyring differs, change the one stored in Ceph cluster with
the key from the OpenStack pods:
kubectl-nrook-cephexec-itdeploy/rook-ceph-tools--bash
cephauthgetclient.glance-o/tmp/glance.key
vi/tmp/glance.key
# in the editor, change "key" value to the key obtained from the OpenStack pods# then save and exit editing
cephauthimport-i/tmp/glance.key
Verify that the client.glance keyring of the Ceph cluster matches
the one obtained from the OpenStack pods:
During update of a Container Cloud management cluster, if the MKE minor
version is updated from 3.4.x to 3.5.x, access to the cluster using the
existing kubeconfig fails with the You must be logged in to the server
(Unauthorized) error due to OIDC settings being reconfigured.
As a workaround, during the Container Cloud cluster update, use the
adminkubeconfig instead of the existing one. Once the update
completes, you can use the existing cluster kubeconfig again.
On a cluster with Tungsten Fabric enabled, the cluster update is stuck with
the tf-rabbit-exporter deployment having a number of pods in the
Terminating state.
To verify whether your cluster is affected:
kubectl-ntfgetpods|greptf-rabbit-exporter
Example of system response on the affected cluster:
The following issues have been addressed in the MOSK
23.1 release:
[OpenStack][30450] Fixed the issue causing high CPU load of MariaDB.
[OpenStack][29501] Fixed the issue when Cinder periodic database
cleanup resets the state of volumes.
[OpenStack][27168] Fixed the issue that made
openvswitch-openvswitch-vswitchd-default and
neutron-ovs-agent-default pods stuck in the NotReady status
after restart.
[OpenStack][29539] Fixed the issue with missing network traffic for
a trunked port in OpenStack Yoga.
[TF][10096] Fixed the issue that prevented tf-control from
refreshing IP addresses of Cassandra pods.
[TF][28728] Fixed the issue when
tungstenFabricMonitoring.enabled was not enabled by default during
Tungsten Fabric deployment.
[TF][30449] Fixed the issue that resulted in losing connectivity
after the primary TF Controller node reboot.
[Ceph][28142] Added the ability to specify node affinity for
rook-discover pods through the ceph-operator Helm release.
[Ceph][26820] Fixed the issue when the status section in the
KaaSCephCluster.status custom resource did not reflect issues
during the process of a Ceph cluster deletion.
[StackLight][28372] Fixed the issue causing false-positive liveness
probe failures for fluentd-notifications.
[StackLight][29330] Fixed the issue that prevented tf-rabbitmq
from being monitored.
[Updates][29438] Fixed the issue that caused the cluster update
being stuck during the Tungsten Fabric Operator update.
This section describes the specific actions you as a Cloud Operator need to
complete to accurately plan and successfully perform your
Mirantis OpenStack for Kubernetes (MOSK) cluster update to the
version 23.1.
Consider this information as a supplement to the generic update procedure
published in Operations Guide: Update a MOSK cluster.
As part of the update to MOSK 23.1, Tungsten Fabric will
automatically get updated from version 2011 to version 21.4.
Note
For the compatibility matrix of the most recent MOSK
releases and their major components in conjunction with Container Cloud and
Cluster releases, refer to Release Compatibility Matrix.
The update to MOSK 23.1 does not include any
version-specific impact on the cluster. To start planning a maintenance window,
use the Operations Guide: Update a MOSK cluster standard procedure.
Before updating the cluster, be sure to review the potential issues that
may arise during the process and the recommended solutions to address
them, as outlined in Cluster update known issues.
Pre-update actions¶Update the baremetal-provider image to 1.37.18¶
If your Container Cloud management cluster has updated to 2.24.1, to avoid
the issue with waiting for the lcm-agent to update
the currentDistribution field during the cluster update to
MOSK 23.1, replace the baremetal-provider image
1.37.15 tag with 1.37.18:
Open the kaasrelease object for editing:
kubectleditkaasreleasekaas-2-24-1
Replace the 1.37.15 tag with 1.37.18 for the baremetal-provider
image:
Explicitly define the OIDCClaimDelimiter parameter¶
MOSK 23.1 introduces a new default value for the
OIDCClaimDelimiter parameter, which defines the delimiter to use when
setting multi-valued claims in the HTTP headers. See the MOSK 23.1 OpenStack
API Reference
for details.
Previously, the value of the OIDCClaimDelimiter parameter defaulted to
",". This value misaligned with the behavior expected by Keystone.
As a result, when creating federation mappings for Keystone, the cloud operator
was forced to write more complex rules. Therefore, in MOSK
22.4, Mirantis announced the change of the default value for the
OIDCClaimDelimiter parameter.
If your deployment is affected and you have not explicitly defined the
OIDCClaimDelimiter parameter, as Mirantis advised, after update to
MOSK 22.4 or 22.5, now would be a good time to do it.
Otherwise, you may encounter unforeseen consequences after the update to
MOSK 23.1.
Affected deployments
Proceed with the instruction below only if the following conditions are
true:
Keystone is set to use federation through the OpenID Connect protocol,
with Mirantis Container Cloud Keycloak in particular. The following
configuration is present in your OpenStackDeployment custom resource:
The new default value for the OIDCClaimDelimiter parameter
is ";". To find out whether your Keystone mappings will need
adjustment after changing the default value, set the parameter to
";" on your staging environment and verify the rules.
Verify that the KaaSCephCluster custom resource does not contain the
following entries. If they exist, remove them.
In the spec.cephClusterSpec section, the external section.
Caution
If the external section exists in the KaaSCephCluster
spec during upgrade to MOSK 23.1, it will cause Ceph
outage that leads to corruption of the Cinder volumes file system and
requires a lot of routine work to fix sectors with Cinder volumes
one-by-one after fixing Ceph outage.
Therefore, make sure that the external section is removed from the
KaaSCephCluster spec right before starting cluster upgrade.
In the spec.cephClusterSpec.rookConfig section, the ms_crc_data or
mscrcdata configuration key. After you remove the key, wait for
rook-ceph-mon pods to restart on the MOSK
cluster.
Caution
If the ms_crc_data key exists in the rookConfig section
of KaaSCephCluster during upgrade to MOSK 23.1,
it causes missing connection between Rook Operator and Ceph Monitors
during Ceph version upgrade leading to a stuck upgrade and requires
that you manually disable the ms_crc_data key for all Ceph Monitors.
Therefore, make sure that the ms_crc_data key is removed from the
KaaSCephCluster spec right before starting cluster upgrade.
To prevent issues during graceful reboot of the OpenStack controller nodes,
temporarily remove Tempest from the OpenStackDeployment object:
spec:features:services:-tempest
Post-update actions¶Remove sensitive information from cluster configuration¶
The OpenStackDeploymentSecret custom resource has been deprecated in
MOSK 23.1. The fields that store confidential settings
in OpenStackDeploymentSecret and OpenStackDeployment custom resources
need to be migrated to the Kubernetes secrets.
Note
For the functionality deprecation and deletion schedule, refer to
osdplsecret-deprecation-note.
To ensure stability for production workloads, MOSK 23.1
changes the default value of RAM oversubscription on compute nodes to 1.0,
which is no oversubscription. In MOSK 22.5 and earlier,
the effective default value of RAM allocation ratio is 1.1.
This change will be applied only to the compute nodes added to the cloud
after update to MOSK 23.1. The effective RAM
oversubscription value for existing compute nodes will not automatically
change after updating to MOSK 23.1.
Use dynamic configuration for resource oversubscription¶
Since MOSK 23.1, the Compute service (OpenStack Nova)
enables you to control the resource oversubscription dynamically through
the placement API.
However, if your cloud already makes use of custom allocation ratios, the new
functionality will not become immediately available after update. Any compute
node configured with explicit values for the cpu_allocation_ratio,
disk_allocation_ratio, and ram_allocation_ratio configuration options
will continue to enforce those values in the placement service. Therefore, any
changes made through the placement API will be overridden by the values set in
those configuration options in the Compute service. To modify oversubscription,
you should adjust the values of these configuration options in the
OpenStackDeployment custom resource. This procedure should be performed
with caution as modifying these values may result in compute service restarts
and potential disruptions in the instance builds.
To enable the use of the new functionality, Mirantis recommends removing
explicit values for the cpu_allocation_ratio, disk_allocation_ratio,
and ram_allocation_ratio options from the OpenStackDeployment custom
resource. Instead, use the new configuration options as described in
Configuring initial resource oversubscription. Also, keep in mind that
the changes will only impact newly added compute nodes and will not be applied
to the existing ones.
The patch release notes contain the list of artifacts and Common
Vulnerabilities and Exposures (CVE) fixes for the MOSK
23.1.1 patch released on April 20, 2023.
The OpenStack upgrade to Yoga fails due to the delay in the Cinder start.
Workaround:
Follow the openstack-controller logs from the OpenStackDeployment
container. When the controller is stuck on checking health for any OpenStack
component, verify the Helm releases statuses:
The following issues have been addressed in the MOSK
23.1.4 release:
[27031] Fixed the removal of objects marked as Deleted from the
Barbican database during the database cleanup.
[30224] Decreased the default weight for
build_failure_weight_multiplier to 2 to normalize instance spreading
across compute nodes.
[30673] Fixed the issue with duplicate tasks responses from the
ironic-python agent on the ironic-conductor side.
[30888] Adjusted the caching time for PowerDNS to fit Designate
timeouts.
[31021] Fixed the race in openstack-controller that could lead
to setting the default user names and passwords in configuration files
during initial deployment.
[31358] Configured the warning message about the world readable
directory with fernet keys to be logged only once during the startup.
[31711] Started to pass the autogenerated memcache_secret_key
to avoid its regeneration every time the Manila Helm chart gets updated.
This section describes the patch-related known issues with available
workarounds.
[32761] Bare-metal nodes stuck in the cleaning state¶
During the initial deployment of Mirantis Container Cloud, some nodes may
get stuck in the cleaning state. The workaround is to wipe disks manually
before initializing the Mirantis Container Cloud bootstrap.
Added full support for OpenStack Yoga with Open vSwitch and Tungsten Fabric
2011 networking backends.
Starting from 22.5, MOSK deploys all new clouds using
OpenStack Yoga by default. To upgrade an existing cloud from OpenStack Victoria
to Yoga, follow the Upgrade OpenStack procedure.
Highlights from upstream supported by Mirantis OpenStack
deployed on Yoga
[Cinder] Removed the deprecated Block Storage API version 2.0. Instead,
use the Block Storage API version 3.0 that is fully compatible with the
previous version.
[Cinder] Removed the requirement for the request URLs to contain a project
ID in the Block Storage API making it more consistent with other
OpenStack APIs. For backward compatibility, legacy URLs containing
a project ID continue to be recognized.
[Designate] Added support for the CERT resource record type enabling
new use cases such as secure email and publication of certificate
revocation list through DNS.
[Horizon] Added support for the Network QoS Policy creation.
[Glance] Implemented /v2/images/<image-id>/tasks to get tasks
associated with an image.
[Ironic] Changed the default deployment boot mode from legacy BIOS to
UEFI.
[Masakari] Added support for disabling and enabling failover segments.
Now, cloud operators can put whole segments into the maintenance
mode.
[Neutron] Implemented the address-groups resource that can be used to
add groups of IP addresses to security group rules.
[Nova] Added support for the API microversion 2.90. It enables the users
to configure the host name exposed through the Nova metadata service
during instances creating or rebuilding.
[Octavia] Increased the performance and scalability of load balancers
that use the amphora provider when using amphora images built with
version 2.x of the HAProxy load balancing engine.
[Octavia] Improved the observability of load balancers by adding the
PROMETHEUS listeners that expose a Prometheus exporter endpoint.
The Octavia amphora provider exposes over 150 unique metrics.
Implemented the capability to securely expose part of a
MOSK cluster message bus (RabbitMQ) to the outside world.
This enables external consumers to subscribe to notification messages
emitted by the cluster services and can be helpful in several use cases:
Analysis of notification history for retrospective security audit
Real-time aggregation of notification messages to collect
statistics of cloud resource consumption for capacity planning or
charge-back
The external notification endpoint can be easily enabled and configured through
the OpenStackDeployment custom resource.
Added MOSK support for the Shared Filesystems service
(OpenStack Manila), which enables cloud users to create and manage virtual
file shares, so that applications can store their data using common network
file sharing protocols, such as CIFS, NFS, and so on.
Implemented the ability to enable the BGP load-balancing mode for
MOSK underlying Kubernetes to allow distribution
of services providing OpenStack APIs across multiple independent
racks that have no L2 segments in common.
Automated configuration of public FQDN for the Object Storage endpoint¶
The fully qualified domain name (FQDN) for the Object Storage service
(Ceph Object gateway) public endpoint is now configurable through just
a single parameter in the KaaSCephCluster custom resource, which is
spec.cephClusterSpec.ingress.publicDomain. Previously, you had to perform
a set of manual steps to define a custom name. If the parameter is not set,
the FQDN settings from the OpenStackDeployment custom resource apply
by default.
The new parameter simplifies configuration of Transport Layer Security of
user-facing endpoints of the Object Storage service.
Implemented the following enhancements for etcd monitoring:
Introduced etcd monitoring for OpenStack by implementing the Etcd
Grafana dashboard and by adding OpenStack to the set of existing alerts for
etcd that were used for MKE clusters only in previous releases.
Improved etcd monitoring for MKE on MOSK clusters by
implementing the Etcd dashboard and etcdDbSizeCritical and
etcdDbSizeMajor alerts that inform about the size of the etcd database.
Setting of a custom value for a node label using web UI¶
Implemented the ability to set a custom value for a predefined node label using
the Container Cloud web UI. The list of available node labels is
obtained from allowedNodeLabels of your current Cluster release.
If the value field is not defined in allowedNodeLabels, select the
check box of the required label and define an appropriate custom value for
this label to be set to the node.
Mirantis has tested MOSK against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOSK components with the exact versions against which
testing has been performed.
This section describes the MOSK known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
One of the most common symptoms of the high CPU load of MariaDB is slow API
responses. To troubleshoot the issue, verify the CPU consumption of MariaDB
using the General > Kubernetes Pods Grafana dashboard or through
the CLI as follows:
Obtain the resource consumption details for the MariaDB server:
If you are observing a huge difference between the filtered and
r_filtered columns for the query, as in the example of system
response above, analyze the performance of tables by running the
ANALYZE TABLE <TABLE_NAME>; and
ANALYZE TABLE <TABLE_NAME> PERSISTENT FOR ALL; commands:
Due to an issue in the database auto-cleanup job for the Block Storage service
(OpenStack Cinder), the state of volumes that are attached to instances gets
reset every time the job runs. The instances can still write and read block
storage data, however, volume objects appear in the OpenStack API as
notattached causing confusion.
The workaround is to temporarily disable the job until the issue is
fixed and execute the script below to restore the affected instances.
To disable the job, update the OpenStackDeployment custom resource as
follows:
The provided script does not fix the Cinder database clean-up job
and is only intended to restore the functionality of the affected
instances. Therefore, leave the job disabled.
[25124] MPLSoGRE encapsulation has limited throughput¶
Multiprotocol Label Switching over Generic Routing Encapsulation (MPLSoGRE)
provides limited throughput while sending data between VMs up to 38 Mbps, as
per Mirantis tests.
As a workaround, switch the encapsulation type to VXLAN in the
OpenStackDeployment custom resource:
It is not possible to create an instance that uses a security group shared
through role-based access control (RBAC) with only specifying the network ID
when calling Nova. In such case, before creating a port in the given network,
Nova verifies if the given security group exists in Neutron. However, Nova asks
only for the security groups filtered by project_id. Therefore, it will not
get the shared security group back from the Neutron API. For details, see the
OpenStack known issue
#1942615.
Note
The bug affects only OpenStack Victoria and is fixed for OpenStack
Yoga in MOSK 22.5.
This section lists the Tungsten Fabric known issues with
workarounds for the Mirantis OpenStack for Kubernetes release
22.5. For Tungsten Fabric limitations, see Tungsten Fabric known limitations.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
kubectl-ntfdeletepodtf-control-<hash>
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
If the tungstenfabric-operator-metrics service was present on the cluster
in MOSK 22.4, the update to 22.5 can stuck due to absence
of correct labels for this service. As a workaround, delete the service
manually:
[27797] Cluster ‘kubeconfig’ stops working during MKE minor version update¶
During update of a Container Cloud management cluster, if the MKE minor
version is updated from 3.4.x to 3.5.x, access to the cluster using the
existing kubeconfig fails with the You must be logged in to the server
(Unauthorized) error due to OIDC settings being reconfigured.
As a workaround, during the Container Cloud cluster update, use the
adminkubeconfig instead of the existing one. Once the update
completes, you can use the existing cluster kubeconfig again.
If a cluster does not currently have any ongoing operations that comprise
OpenStack notifications, the fluentd containers in the
fluentd-notifications Pods are frequently restarted due to false-positive
failures of liveness probe and trigger alerts.
Ignore such failures and alerts if the Pods are in the Running state.
To verify the fluentd-notifications Pods:
The following issues have been addressed in the MOSK
22.5 release:
[26773] Fixed the issue with VM autoscaling failure when using the
CPU-related metrics in Telemetry.
[26534] Fixed the issue with the ironic-conductor Pod getting stuck in
the CrashLoopBackOff state after the Container Cloud management cluster
upgrade from 2.19.0 to 2.20.0. The issue occurred due to the race condition
between the ironic-conductor and ironic-conductor-http containers
of the ironic-conductor Pod that tried to use ca-bundle.pem
simultaneously but from different users.
[25594][Yoga] Fixed the issue with security groups shared through RBAC not
being filtered and used by Nova to create instances due to the OpenStack
known issue #1942615.
Note
The bug still affects OpenStack Victoria and is fixed for
OpenStack Yoga.
[24435] Fixed the issue with MetalLB speaker failing to announce the LB IP
for the Ingress service after the MOSK cluster update.
For existing clusters, you can set externalTrafficPolicy back from
Cluster to Local after updating to 22.5. For details, see
Post-upgrade actions.
This section describes the specific actions you as a Cloud Operator need to
complete to accurately plan and successfully perform your
Mirantis OpenStack for Kubernetes (MOSK) cluster update to the
version 22.5.
Consider this information as a supplement to the generic update procedure
published in Operations Guide: Update a MOSK cluster.
Additionally, read through the Cluster update known issues for the problems
that are known to occur during update with recommended workarounds.
The update to MOSK 22.5 does not include any
version-specific impact on the cluster. To start planning a maintenance window,
use the Operations Guide: Update a MOSK cluster standard procedure.
Before you proceed with updating the cluster, make sure that you perform the
following pre-update actions if applicable:
Due to the [29438] Cluster update gets stuck during the Tungsten Fabric operator update known issue, the MOSK cluster
update from 22.4 to 22.5 can get stuck. Your cluster is affected if it has
been updated from MOSK 22.3 to 22.4, regardless of the
SDN backend in use (Open vSwitch or Tungsten Fabric). The newly deployed
MOSK 22.4 clusters are not affected.
To avoid the issue, manually delete the tungstenfabric-operator-metrics
service from the cluster before update:
Due to the known issue in the database auto-cleanup job for the Block Storage
service (OpenStack Cinder), the state of volumes that are attached to
instances gets reset every time the job runs. The workaround is to
temporarily disable the job until the issue is fixed. For details,
refer to [29501] Cinder periodic database cleanup resets the state of volumes.
Explicitly define the OIDCClaimDelimiter parameter¶
The OIDCClaimDelimiter parameter defines the delimiter to use when setting
multi-valued claims in the HTTP headers. See the MOSK 22.5 OpenStack API
Reference
for details.
The current default value of the OIDCClaimDelimiter parameter is ",".
This value misaligns with the behavior expected by Keystone. As a result, when
creating federation mappings for Keystone, the cloud operator may be forced
to write more complex rules. Therefore, in early 2023, Mirantis will change
the default value for the OIDCClaimDelimiter parameter.
Affected deployments
Proceed with the instruction below only if the following conditions are
true:
Keystone is set to use federation through the OpenID Connect protocol,
with Mirantis Container Cloud Keycloak in particular. The following
configuration is present in your OpenStackDeployment custom resource:
The new default value for the OIDCClaimDelimiter parameter
will be ";". To find out whether your Keystone mappings will need
adjustment after changing the default value, set the parameter to
";" on your staging environment and verify the rules.
Optional. Set externalTrafficPolicy=Local for the OpenStack Ingress service¶
In MOSK 22.4 and older versions, the OpenStack Ingress
service was not accessible through its LB IP address on the environments
having the external network restricted to a few nodes in the
MOSK cluster. For such use cases, Mirantis recommended
setting the externalTrafficPolicy parameter to Cluster as a workaround.
The issue #24435 has been fixed in
MOSK 22.5. Therefore, if the monitoring of source IPs of
the requests to OpenStack services is required, you can set the
externalTrafficPolicy parameter back to Local.
Affected deployments
You are affected if your deployment configuration matches the following
conditions:
The external network is restricted to a few nodes in the
MOSK cluster. In this case, only a limited set of
nodes have IPs in the external network where MetalLB announces LB IPs.
The workaround was applied by setting externalTrafficPolicy=Cluster
for the Ingress service.
To set externalTrafficPolicy back from Cluster to Local:
On the MOSK cluster, add the node selector to the
L2Advertisement MetalLB object so that it matches the nodes in the
MOSK cluster having IPs in the external network,
or a subset of those nodes.
The openstack-control-plane:enabled label selector defines nodes in
the MOSK cluster having IPs in the external network.
In the MOSK Cluster object located on the management
cluster, remove or edit node selectors and affinity for MetalLB speaker
in the MetalLB chart values, if required.
Example of the helmReleases section in Cluster.spec after editing
the nodeSelector parameter:
The OpenStack Panko service has been removed from the product since
MOSK 22.2 in OpenStack Victoria without the user
being involved. See Deprecation Notes: The OpenStack Panko service for details.
Though, in MOSK 22.5, before upgrading to OpenStack Yoga,
verify that you remove the Panko service from the cloud by removing the
event entry from the spec:features:services structure in the
OpenStackDeployment resource as described in Operations Guide:
Remove an OpenStack service.
Provided the technical preview support for OpenStack Yoga with Neutron OVS and
Tungsten Fabric 21.4.
To start experimenting with the new functionality, set openstack_version to
yoga in the OpenStackDeployment custom resource during the cloud
deployment.
Provided the technical preview support for Tungsten Fabric 21.4.
The new version of the Tungsten Fabric networking enables support for the EVPN
type 2 routes for graceful restart and long-lived graceful restart features in
MOSK.
Note
Implementation of the Red Hat Universal Base Image 8 (UBI 8) support
for the Tungsten Fabric container images is being under development and will
be released in one of the upcoming product versions.
To start experimenting with the new functionality, set tfVersion to
21.4 in the TFOperator custom resource during the cloud deployment.
Enabled the application credentials mechanism in the Identity service
for application automation tools to securely authenticate against the
cloud’s API.
Enabled the capability of the OpenStack services to emit notifications in
the Cloud Auditing Data Federation (CADF) format. The CADF notifications
configuration is available through the features:logging:cadf section of
the OpenStackDeployment custom resource.
Implemented the capability to store the OpenStack database backup data
externally. Instead of the default Ceph volume, the cloud operator can
now easily configure the NFS storage backend through the
OpenStackDeployment CR.
Implemented the post-update restart of the TF vRouter pods. Previously,
the cloud operator had to manually restart the vRouter pods after updating
the deployment to a newer MOSK version. The update
procedure has been amended accordingly.
Mirantis has tested MOSK against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOSK components with the exact versions against which
testing has been performed.
This section describes the MOSK known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
One of the most common symptoms of the high CPU load of MariaDB is slow API
responses. To troubleshoot the issue, verify the CPU consumption of MariaDB
using the General > Kubernetes Pods Grafana dashboard or through
the CLI as follows:
Obtain the resource consumption details for the MariaDB server:
If you are observing a huge difference between the filtered and
r_filtered columns for the query, as in the example of system
response above, analyze the performance of tables by running the
ANALYZE TABLE <TABLE_NAME>; and
ANALYZE TABLE <TABLE_NAME> PERSISTENT FOR ALL; commands:
It is not possible to create an instance that uses a security group shared
through role-based access control (RBAC) with only specifying the network ID
when calling Nova. In such case, before creating a port in the given network,
Nova verifies if the given security group exists in Neutron. However, Nova asks
only for the security groups filtered by project_id. Therefore, it will not
get the shared security group back from the Neutron API. For details, see the
OpenStack known issue
#1942615.
If security groups shared through RBAC are used, apply them to ports
only, not to instances directly.
[25124] MPLSoGRE encapsulation has limited throughput¶
Multiprotocol Label Switching over Generic Routing Encapsulation (MPLSoGRE)
provides limited throughput while sending data between VMs up to 38 Mbps, as
per Mirantis tests.
As a workaround, switch the encapsulation type to VXLAN in the
OpenStackDeployment custom resource:
This section lists the Tungsten Fabric known issues with
workarounds for the Mirantis OpenStack for Kubernetes release
22.4. For Tungsten Fabric limitations, see Tungsten Fabric known limitations.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
kubectl-ntfdeletepodtf-control-<hash>
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
After the Container Cloud management cluster upgrade from 2.19.0 to 2.20.0,
the ironic-conductor Pod gets stuck in the CrashLoopBackOff state. The
issue occurs due to the race condition between the ironic-conductor and
ironic-conductor-http containers of the ironic-conductor Pod that try
to use ca-bundle.pem simultaneously but from different users.
After updating the MOSK cluster, MetalLB speaker may
fail to announce the Load Balancer (LB) IP address for the OpenStack Ingress
service. As a result, the OpenStack Ingress service is not accessible using
its LB IP address.
The issue may occur if the MetalLB speaker nodeSelector selects not all
the nodes selected by nodeSelector of the OpenStack Ingress service.
The issue may arise and disappear when a new MetalLB speaker is being selected
by the MetalLB Controller to announce the LB IP address.
The issue occurs since MOSK 22.2 after
externalTrafficPolicy was set to local for the OpenStack Ingress
service.
Workaround:
Select from the following options:
Set externalTrafficPolicy to cluster for the OpenStack Ingress
service.
This option is preferable in the following cases:
If not all cluster nodes have connection to the external network
If the connection to the external network cannot be established
If network configuration changes are not desired
If network configuration is allowed and if you require the
externalTrafficPolicy:local option:
Wire the external network to all cluster nodes where the OpenStack Ingress
service Pods are running.
Configure IP addresses in the external network on the nodes and change the
default routes on the nodes.
Change nodeSelector of MetalLB speaker to match nodeSelector
of the OpenStack Ingress service.
[28372] False-positive liveness probe failures for ‘fluentd-notifications’¶
If a cluster does not currently have any ongoing operations that comprise
OpenStack notifications, the fluentd containers in the
fluentd-notifications Pods are frequently restarted due to false-positive
failures of liveness probe and trigger alerts.
Ignore such failures and alerts if the Pods are in the Running state.
To verify the fluentd-notifications Pods:
The following issues have been addressed in the MOSK
22.4 release:
[25349][Update] Fixed the issue causing MOSK cluster
update failure after an OpenStack controller node replacement.
[26278][OpenStack] Fixed the issue with l3-agent being stuck in the
Notready state and routers not being initialized properly during
Neutron restart.
[25447][OpenStack] Fixed the issue that caused a Masakari instance evacuation
to fail if an encrypted volume was attached to a node.
[25448][OpenStack] Fixed the issue that caused some Masakari instances to get
stuck in the Rebuild or Error state when being migrated to a new
OpenStack compute node during host evacuation. The issue occurred on
OpenStack compute nodes with a large number of instances.
[22930][OpenStack] Fixed the issue wherein Octavia load balancers
provisioning, and, occasionally, the listeners or pools associated with these
load balancers got stuck in the ERROR, PENDING_UPDATE,
PENDING_CREATE, or PENDING_DELETE state.
[25450][OpenStack] Implemented the capability to enable trusted mode for
SR-IOV ports.
[25316][StackLight] Introduced projects filtering by a domain name for the
default domain to fix the issue wherein a wrong project was chosen by
name in case of multiple projects with the same names.
[24376][Ceph] Implemented the capability to parametrize the RADOS Block
Device (RBD) device map to avoid Ceph volumes being unresponsive due to a
disabled cyclic redundancy check (CRC) mode. Now you can use the
rbdDeviceMapOptions field in the Ceph pool parameters of the
KaaSCephCluster CR to specify custom RBD map options to use with
StorageClass of a corresponding Ceph pool. For details, see
Container Cloud documentation: Ceph pool parameters.
[28783] [Ceph] Fixed the issue causing Ceph conditon stuck in absence of
the Ceph cluster secrets information. If you applied the
workaround to your MOSK 22.3 cluster
before the update, remove the version parameter definition from
KaaSCephCluster after the managed cluster update because the Ceph cluster
version in MOSK 22.4 updates to 15.2.17.
This section describes the specific actions you as a Cloud Operator need to
complete to accurately plan and successfully perform your
Mirantis OpenStack for Kubernetes (MOSK) cluster to the version 22.4.
Consider this information as a supplement to the generic update procedure
published in Operations Guide: Update a MOSK cluster.
Additionally, read through the Cluster update known issues for the problems
that are known to occur during update with recommended workarounds.
When updating to MOSK 22.4, the Cloud Operator can easily
determine if a node needs to be rebooted by checking for the
restartRequired flag in the machine status. For details,
see Determine if the node needs to be rebooted.
Explicitly define the OIDCClaimDelimiter parameter¶
The OIDCClaimDelimiter parameter defines the delimiter to use when setting
multi-valued claims in the HTTP headers. See the MOSK 22.4 OpenStack API
Reference
for details.
The current default value of the OIDCClaimDelimiter parameter is ",".
This value misaligns with the behavior expected by Keystone. As a result, when
creating federation mappings for Keystone, the cloud operator may be forced
to write more complex rules. Therefore, in early 2023, Mirantis will change
the default value for the OIDCClaimDelimiter parameter.
Affected deployments
Proceed with the instruction below only if the following conditions are
true:
Keystone is set to use federation through the OpenID Connect protocol,
with Mirantis Container Cloud Keycloak in particular. The following
configuration is present in your OpenStackDeployment custom resource:
The new default value for the OIDCClaimDelimiter parameter
will be ";". To find out whether your Keystone mappings will need
adjustment after changing the default value, set the parameter to
";" on your staging environment and verify the rules.
Update for the MOS GA release introducing the following key features:
Tungsten Fabric 2011 as default
Periodic automatic cleanup of OpenStack databases
Validation of the TF Operator custom resource
Technical preview of image signature verification capability
Technical preview of the multi-rack architecture with Tungsten Fabric
Improvements to StackLight alerting
Technical preview of Vault connectivity configuration
MOS 21.5 6.19.0+21.5
Update for the MOS GA release introducing the following key features:
Tungsten Fabric 2011 LTS
Upgrade path for Tungsten Fabric from 5.1 to 2011
Machine-readable status for OpenStack
Technical preview of Tungsten Fabric multiple workers of Contrail API
Technical preview of Cinder volume encryption
MOS 21.4 6.18.0+21.4
Update for the MOS GA release introducing the following key features:
Full support for OpenStack Victoria with OVS or Tungsten Fabric 5.1
with the verified Ussuri to Victoria upgrade path
Technical preview of SR-IOV and DPDK for Tungsten Fabric 2011
Technical preview of Masakari instance evacuation
MOS 21.3 6.16.0+21.3
Update for the MOS GA release introducing support for Hyperconverged
OpenStack compute nodes, SR-IOV and control interface specification for
Tungsten Fabric, and the following Technology Preview features:
LVM block storage
East-west traffic encryption
Tungsten Fabric 2011
MOS 21.2 6.14.0+21.2
Update for the MOS GA release introducing proxy support and
the following Technology Preview features:
Instances High Availability service
LVM ephemeral storage and encryption
SR-IOV for Tungsten Fabric vRouter
Custom Tungsten Fabric vRouter settings
MOS 21.1 6.12.0+21.1
Update for the MOS GA release introducing support for the PCI
passthrough feature and Tungsten Fabric monitoring, as well as
the following Technology Preview features:
OpenStack Victoria support with OVS and Tungsten Fabric 5.1
SR-IOV for OpenStack
Components collocation (OpenStack compute and Ceph nodes)
MOS Ussuri Update 6.10.0
The first update to MOS Ussuri release introducing support for object
storage and a Telco deployment profile, which includes implementation
of baseline Enhanced Platform Awareness (NUMA awareness, huge pages,
CPU pinning) capabilities, and Technology Preview of packet processing
acceleration (Data Plane Development Kit-enabled Tungsten Fabric).
MOS Ussuri 6.8.1
General availability of the product with OpenStack Ussuri and choice of
Neutron/OVS or Tungsten Fabric 5.1 for networking. Runs on top of a bare
metal Kubernetes cluster managed by Container Cloud.
Ubuntu 20.04 on OpenStack with OVS and Tungsten Fabric greenfield deployments¶
Implemented full support for Ubuntu 20.04 LTS (Focal Fossa) as the default host
operating system on OpenStack with OVS and OpenStack with Tungsten Fabric
greenfield deployments.
MOSK is now confirmed to be able to run up to 10,000 virtual
machines under a single control plane.
Depending on the cloud workload profile and the number of OpenStack objects in
use, the control plane needs to be extended with additional hardware.
Specifically, for the MOSK clouds that use Open vSwitch as
a backend for the Networking service (OpenStack Neutron) and run more than
12,000 network ports, Mirantis recommends deploying extra tenant gateways.
The maximum size of a MOSK cluster is limited to 500 nodes
in total, regardless of their roles.
Introduced the OpenStackDeploymentSecret custom resource to aggregate
the cloud’s confidential settings such as SSL/TLS certificates, access
credentials for external systems, and other secrets. Previously, the secrets
were stored together with the rest of configuration in the
OpenStackDeployment custom resource.
The following fields have been moved out of the OpenStackDeployment
custom resource:
Switched all OpenStack services to use the built-in policies, aka in-code
policies, to control user access to cloud functions. MOSK
keeps the built-in policies up-to-date with the OpenStack development ensuring
safe by default behavior as well as allowing you to override only those access
rules that you actually need through the features:policies structure in
the OpenStackDeployment custom resource.
Sticking to the default policy set as much as possible simplifies the future
enablement of advanced authentication and access control functionality, such
as scoped tokens and scoped access policies.
Added capability to precache containers’ images on Kubernetes nodes
to minimize possible downtime on the components update. The feature is
enabled by default and can be disabled through the TFOperator custom
resource if required.
Implemented support for custom Docker registries configuration. Using the
ContainerRegistry custom resource, you can configure CA certificates on
machines to access private Docker registries.
Mirantis has tested MOSK against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOSK components with the exact versions against which
testing has been performed.
This section describes the MOSK known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
During l3-agent restart, routers may not be initialized properly due to
erroneous logic in Neutron code causing l3-agent to get stuck in the
Notready state. The readiness probe states that one of routers is not
ready with the keepalived process not started.
Example output of the
kubectl -n openstack describe pod <neutron-l3 agent pod name>
command:
It is not possible to create an instance that uses a security group shared
through role-based access control (RBAC) with only specifying the network ID
when calling Nova. In such case, before creating a port in the given network,
Nova verifies if the given security group exists in Neutron. However, Nova asks
only for the security groups filtered by project_id. Therefore, it will not
get the shared security group back from the Neutron API. For details, see the
OpenStack known issue
#1942615.
Octavia load balancers provisioning_status may get stuck in the
ERROR, PENDING_UPDATE, PENDING_CREATE, or PENDING_DELETE state.
Occasionally, the listeners or pools associated with these load balancers may
also get stuck in the same state.
Workaround:
For administrative users that have access to the
keystone-client pod:
For non-administrative users, access the Octavia API directly and delete the
affected load balancer using the "force":true argument in the delete
request:
This section lists the Tungsten Fabric known issues with
workarounds for the Mirantis OpenStack for Kubernetes release
22.3. For Tungsten Fabric limitations, see Tungsten Fabric known limitations.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
kubectl-ntfdeletepodtf-control-<hash>
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
Ceph conditon gets stuck in absence of the Ceph cluster secrets information.
The observed behaviour can be found on the MOSK clusters
that have automatically updated their management cluster to Container Cloud
2.21 but are still running the MOSK 22.3 version.
The list of the symptoms includes:
The Cluster object contains the following condition:
Substitute <managedClusterProject> with the corresponding
managed cluster namespace.
Define the version parameter in the KaaSCephCluster spec:
spec:cephClusterSpec:version:15.2.13
Note
Starting from MOSK 22.4, the Ceph cluster
version updates to 15.2.17. Therefore, remove the version parameter
definition from KaaSCephCluster after the managed cluster update.
Save the updated KaaSCephCluster spec.
Find the MiraCeph Custom Resource on a managed cluster and copy all
annotations starting with meta.helm.sh:
Substitute <managedClusterKubeconfig> with a corresponding managed
cluster kubeconfig.
Example of a system output:
apiVersion:apiextensions.k8s.io/v1kind:CustomResourceDefinitionmetadata:annotations:controller-gen.kubebuilder.io/version:v0.6.0# save all annotations with "meta.helm.sh" somewheremeta.helm.sh/release-name:ceph-controllermeta.helm.sh/release-namespace:ceph...
Create the miracephsecretscrd.yaml file and fill it with the following
template:
apiVersion:apiextensions.k8s.io/v1kind:CustomResourceDefinitionmetadata:annotations:controller-gen.kubebuilder.io/version:v0.6.0<insert all "meta.helm.sh" annotations here>labels:app.kubernetes.io/managed-by:Helmname:miracephsecrets.lcm.mirantis.comspec:conversion:strategy:Nonegroup:lcm.mirantis.comnames:kind:MiraCephSecretlistKind:MiraCephSecretListplural:miracephsecretssingular:miracephsecretscope:Namespacedversions:-name:v1alpha1schema:openAPIV3Schema:description:MiraCephSecret aggregates secrets created by Cephproperties:apiVersion:type:stringkind:type:stringmetadata:type:objectstatus:properties:lastSecretCheck:type:stringlastSecretUpdate:type:stringmessages:items:type:stringtype:arraystate:type:stringtype:objecttype:objectserved:truestorage:true
Insert the copied meta.helm.sh annotations to the
metadata.annotations section of the template.
Apply miracephsecretscrd.yaml on the managed cluster:
After the Container Cloud management cluster upgrade from 2.19.0 to 2.20.0,
the ironic-conductor Pod gets stuck in the CrashLoopBackOff state. The
issue occurs due to the race condition between the ironic-conductor and
ironic-conductor-http containers of the ironic-conductor Pod that try
to use ca-bundle.pem simultaneously but from different users.
After an OpenStack controller node replacement, the
octavia-create-resources job does not restart and the Octavia Health
Manager Pod on the new node cannot find its port in the Kubernetes secret. As a
result, MOSK cluster update may fail.
Workaround:
After adding the new OpenStack controller node but before the update process
starts, manually restart the octavia-create-resources job:
After updating the MOSK cluster, MetalLB speaker may
fail to announce the Load Balancer (LB) IP address for the OpenStack Ingress
service. As a result, the OpenStack Ingress service is not accessible using
its LB IP address.
The issue may occur if the MetalLB speaker nodeSelector selects not all
the nodes selected by nodeSelector of the OpenStack Ingress service.
The issue may arise and disappear when a new MetalLB speaker is being selected
by the MetalLB Controller to announce the LB IP address.
The issue occurs since MOSK 22.2 after
externalTrafficPolicy was set to local for the OpenStack Ingress
service.
Workaround:
Select from the following options:
Set externalTrafficPolicy to cluster for the OpenStack Ingress
service.
This option is preferable in the following cases:
If not all cluster nodes have connection to the external network
If the connection to the external network cannot be established
If network configuration changes are not desired
If network configuration is allowed and if you require the
externalTrafficPolicy:local option:
Wire the external network to all cluster nodes where the OpenStack Ingress
service Pods are running.
Configure IP addresses in the external network on the nodes and change the
default routes on the nodes.
Change nodeSelector of MetalLB speaker to match nodeSelector
of the OpenStack Ingress service.
[23154] Ceph health is in ‘HEALTH_WARN’ state after managed cluster update¶
After updating the MOSK cluster, Ceph health is in
the HEALTH_WARN state with the SLOW_OPS health message.
The workaround is to restart the affected Ceph Monitors.
The following issues have been addressed in the MOSK
22.3 release:
[23771][Update] Fixed the issue that caused connectivity loss due to a wrong
update order of Neutron services.
[23131][Update] Fixed the issue that caused live migration to fail during an
update of a cluster with encrypted storage. Now, you can perform live
migrations using the following command:
[21790][Update] Fixed the issue wherein the Ceph cluster failed to update on
a managed cluster with the Daemonset csi-rbdplugin is not found error
message.
[23985][OpenStack] Fixed the issue that caused the federated authorization
failure on the Keycloak URL update.
[23484][OpenStack] To prevent from ovsdb session disconnection causing
port processing operations being blocked, configured the default timeouts for
ovsdb.
[23297][OpenStack] Fixed the issue that caused VMs to be unaccessible through
floating IP due to missing IPtables rules for floating IPs on the OpenStack
compute DVR router.
[23043][OpenStack] Updated Neutron Open vSwitch to version 2.13 to fix the
issue that caused broken communication between VMs in the same network.
[19065][OpenStack] Fixed the issue that caused Octavia load balancers to lose
Amphora VMs after failover.
[23338][Tungsten Fabric] Fixed the issue wherein the Tungsten Fabric (TF)
tools from the contrail-tools container did not work on DPDK nodes.
[22273][Tungsten Fabric] To avoid issues with CassandraCacheHitRateTooLow
StackLight alerts raising for the tf-cassandra-analytics Pods,
implemented the capability to configure file_cache_size_in_mb for the
tf-cassandra-analytics or tf-cassandra-config Cassandra deployment.
By default, this parameter is set to 512. For details, see
Cassandra configuration.
This section describes the specific actions you as a cloud operator need to
complete to accurately plan and successfully perform your
Mirantis OpenStack for Kubernetes (MOSK) cluster to the version 22.3.
Consider this information as a supplement to the generic update procedure
published in Operations Guide: Update a MOSK cluster.
Additionally, read through the Cluster update known issues for the problems
that are known to occur during update with recommended workarounds.
Features¶Migrating secrets from OpenStackDeployment to OpenStackDeploymentSecret CR¶
The OpenStackDeploymentSecret custom resource replaced the fields in
OpenStackDeployment customer resource that used to keep the cloud’s
confidential settings. These include:
After the update, migrate the fields mentioned above from OpenStackDeployment
to OpenStackDeploymentSecret custom resource as follows:
Create an OpenStackDeploymentSecret object with the same name as
the OpenStackDeployment object.
Set the fields in the OpenStackDeploymentSecret custom resource as
required.
Remove the related fields from the OpenStackDeployment custom resource.
Switching to built-in policies for OpenStack services¶
Switched all OpenStack components to built-in policies by default. If you have
any custom policies defined through the features:policies structure in
the OpenStackDeployment custom resource, some API calls may not work as
usual. Therefore, after completing the update, revalidate all the custom
access rules configured for your cloud.
Post-update actions¶Validation of custom OpenStack policies¶
Revalidate all the custom OpenStack access rules configured through the
features:policies structure in the OpenStackDeployment custom
resource.
To complete the update of a cluster with Tungsten Fabric as a backend for
networking, manually restart Tungsten Fabric vRouter agent Pods on all
compute nodes.
Restart of a vRouter agent on a compute node will cause up to 30-60
seconds of networking downtime per instance hosted there. If downtime is
unacceptable for some workloads, we recommend that you migrate them before
restarting the vRouter Pods.
Warning
Under certain rare circumstances, the reload of the vRouter kernel
module triggered by the restart of a vRouter agent can hang due to
the inability to complete the drop_caches operation. Watch the status
and logs of the vRouter agent being restarted and trigger the reboot of
the node, if necessary.
To restart the vRouter Pods:
Remove the vRouter pods one by one manually.
Note
Manual removal is required because vRouter pods use the
OnDelete update strategy. vRouter pod restart causes networking
downtime for workloads on the affected node. If it is not applicable for
some workloads, migrate them before restarting the vRouter pods.
kubectl-ntfdeletepod<VROUTER-POD-NAME>
Verify that all tf-vrouter-* pods have been updated:
kubectl-ntfgetds|greptf-vrouter
The UP-TO-DATE and CURRENT fields must have the same values.
Exposed the IP addresses of the cloud users that consume API of a cloud to all
user-facing cloud services, such as OpenStack, Ceph, and others. Now, the IP
addresses get recoded in the corresponding logs allowing for easy
troubleshooting and security auditing of the cloud.
Implemented the capability to configure CPU isolation using the cpusets
mechanism in Linux kernel. Configuring CPU isolation using the isolcpus
configuration parameter for Linux kernel is considered deprecated.
Validated MOSK against the upstream
OpenStack Security Checklist.
The default configuration of MOSK services that include
Identity, Dashboard, Compute, Block Storage, and Networking services is
compliant with the security recommendations from the OpenStack community.
Encryption of all the internal communications for MOSK
services will become available in one of the nearest product releases.
Implemented the capability to configure the LoadBalancer type for PowerDNS
through the spec:features:designate definition in the
OpenStackDeployment CR, for example, to expose the TCP protocol instead of
the default UDP, or both.
Added the tf-control-dns-external service to the list of the Tungsten
Fabric configuration options. The service is created by default to expose TF
controldns. You can disable creation of this service using the
enableDNSExternal parameter in the TFOperator CR.
Implemented the initial Technology Preview support for MOSK
deployment on local software-based mdadm Redundant Array of Independent Disks
(RAID) devices of level 10 (raid10) to withstand failure of one device
at a time.
The raid10 RAID type requires at least four and in total an even number
of storage devices available on your servers.
To create and configure RAID, use the softRaidDevices field in
BaremetalHostProfile.
Also, added the capability to create LVM volume groups on top of mdadm-based
RAID devices.
Mirantis has tested MOSK against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOSK components with the exact versions against which
testing has been performed.
This section describes the MOSK known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
This section lists the Tungsten Fabric known issues with
workarounds for the Mirantis OpenStack for Kubernetes release
22.2. For Tungsten Fabric limitations, see Tungsten Fabric known limitations.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
kubectl-ntfdeletepodtf-control-<hash>
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
During l3-agent restart, routers may not be initialized properly due to
erroneous logic in Neutron code causing l3-agent to get stuck in the
Notready state. The readiness probe states that one of routers is not
ready with the keepalived process not started.
Example output of the
kubectl -n openstack describe pod <neutron-l3 agent pod name>
command:
It is not possible to create an instance that uses a security group shared
through role-based access control (RBAC) with only specifying the network ID
when calling Nova. In such case, before creating a port in the given network,
Nova verifies if the given security group exists in Neutron. However, Nova asks
only for the security groups filtered by project_id. Therefore, it will not
get the shared security group back from the Neutron API. For details, see the
OpenStack known issue
#1942615.
After updating the Keycloak URL in the OpenStackDeployment resource
through the spec.features.keystone.keycloak.url or
spec.features.keystone.keycloak.oidc.OIDCProviderMetadataURL fields,
authentication to Keystone through federated OpenID Connect through Keycloak
stops working returning HTTP 403 Unauthorized on authentication attempt.
The failure occurs because such change is not automatically propagated to the
corresponding Keycloak identity provider, which was automatically created in
Keystone during the initial deployment.
The workaround is to manually update the identity provider’s remote_ids
attribute:
Compare the Keycloak URL set in the OpenStackDeployment resource
with the one set in Keystone identity provider:
kubectl -n openstack get osdpl -ojsonpath='{.items[].spec.features.keystone.keycloak}# vsopenstack identity provider show keycloak -f value -c remote_ids
If the URLs do not coincide, update the identity provider in OpenStack with
the correct URL keeping the auth/realms/iam part as shown below.
Otherwise, the problem is caused by something else, and you need to proceed
with the debugging.
Octavia load balancers provisioning_status may get stuck in the
ERROR, PENDING_UPDATE, PENDING_CREATE, or PENDING_DELETE state.
Occasionally, the listeners or pools associated with these load balancers may
also get stuck in the same state.
Workaround:
For administrative users that have access to the
keystone-client pod:
For non-administrative users, access the Octavia API directly and delete the
affected load balancer using the "force":true argument in the delete
request:
If an Amphora VM does not respond or responds too long to heartbeat requests,
the Octavia load balancer automatically initiates a failover process after 60
seconds of unsuccessful attempts. Long responses of an Amphora VM may be caused
by various events, such as a high load on the OpenStack compute node that hosts
the Amphora VM, network issues, system service updates, and so on. After a
failover, the Amphora VMs may be missing in the completed Octavia load
balancer.
Workaround:
If your deployment is already affected, manually restore the work of the load
balancer by recreating the Amphora VM:
To avoid an automatic failover start that may cause the issue, set the
heartbeat_timeout parameter in the OpenStackDeployment CR to a large
value in seconds. The default is 60 seconds. For example:
[6912] Octavia load balancers may not work properly with DVR¶
Limitation
When Neutron is deployed in the DVR mode, Octavia load balancers may not
work correctly. The symptoms include both failure to properly balance
traffic and failure to perform an amphora failover. For details, see
DVR incompatibility with ARP announcements and VRRP.
[23154] Ceph health is in ‘HEALTH_WARN’ state after managed cluster update¶
After updating the MOSK cluster, Ceph health is in
the HEALTH_WARN state with the SLOW_OPS health message.
The workaround is to restart the affected Ceph Monitors.
[23771] Connectivity loss due to wrong update order of Neutron services¶
After updating the cluster, simultaneous unordered restart of Neutron L2
and L3, DHCP, and Metadata services leads to the state when ports on
br-int are tagged with valid VLAN tags but with trunks:[4095].
After updating the MOSK cluster, MetalLB speaker may
fail to announce the Load Balancer (LB) IP address for the OpenStack Ingress
service. As a result, the OpenStack Ingress service is not accessible using
its LB IP address.
The issue may occur if the MetalLB speaker nodeSelector selects not all
the nodes selected by nodeSelector of the OpenStack Ingress service.
The issue may arise and disappear when a new MetalLB speaker is being selected
by the MetalLB Controller to announce the LB IP address.
The issue occurs since MOSK 22.2 after
externalTrafficPolicy was set to local for the OpenStack Ingress
service.
Workaround:
Select from the following options:
Set externalTrafficPolicy to cluster for the OpenStack Ingress
service.
This option is preferable in the following cases:
If not all cluster nodes have connection to the external network
If the connection to the external network cannot be established
If network configuration changes are not desired
If network configuration is allowed and if you require the
externalTrafficPolicy:local option:
Wire the external network to all cluster nodes where the OpenStack Ingress
service Pods are running.
Configure IP addresses in the external network on the nodes and change the
default routes on the nodes.
Change nodeSelector of MetalLB speaker to match nodeSelector
of the OpenStack Ingress service.
The following issues have been addressed in the MOSK 22.2
release:
[22725][Update] Fixed the issue raising upon managed cluster update and
causing live migration to fail for instances with deleted images.
[18871][Update] Fixed the issue causing MySQL to crash during a managed
cluster update or instances live migration.
[16987][Update] Fixed the issue that caused update of a
MOSK cluster to fail with the ceph csi-driver is
not evacuated yet, waiting… error during the Ceph CSI pod eviction.
[22321][OpenStack] Fixed the issue wherein the Neutron backend option in
OsDpl inadvertently changed from ml2 to tungstenfabric upon
managed cluster update.
[21998][OpenStack] Fixed the issue wherein the OpenStack Controller got
stuck during the managed cluster update.
[21838][OpenStack] Fixed the issue wherein the Designate API failed to log
requests.
[21376][OpenStack] Fixed the issue that caused inability to create
non-encrypted volumes from a large image.
[15354][OpenStack] Implemented coordination between instances of the Masakari
API service to prevent creation of multiple evacuation flows for instances.
[1659][OpenStack] Fixed the issue wherein the Neutron Open vSwitch agent did
not clean tunnels upon changes of the tunnel_ip option.
[20192][StackLight] To avoid issues causing false-positive
CassandraTombstonesTooManyMajor StackLight alerts, adjusted the
thresholds for the CassandraTombstonesTooManyMajor and
CassandraTombstonesTooManyWarning alerts and added a new
CassandraTombstonesTooManyCritical alert.
[21064][Ceph] Fixed the issue causing the MOSK managed
cluster to fail with the Error updating release ceph/ceph-controller error
and enabled Helm v3 for Ceph Controller.
This section describes the specific actions you as a cloud operator need to
complete to accurately plan and successfully perform your
Mirantis OpenStack for Kubernetes (MOSK) cluster to the version 22.2.
Consider this information as a supplement to the generic update procedure
published in Operations Guide: Update a MOSK cluster.
Additionally, read through the Cluster update known issues for the problems
that are known to occur during update with recommended workarounds.
Your MOSK cluster will obtain the newly implemented
capabilities automatically with no significant impact on the update procedure.
Update impact and maintenance windows planning¶Up to 1 minute of downtime for TF data plane¶
During the Kubernetes master nodes update, there is a downtime on Kubernetes
cluster’s internal DNS service. Thus, Tungsten Fabric vRouter pods lose
connection with the control plane resulting in up to 1 minute of downtime
for the Tungsten Fabric data plane nodes and impact on the tenant networking.
Post-update actions¶Manual restart of TF vRouter Agent pods¶
To complete the update of the cluster with Tungsten Fabric, manually restart
Tungsten Fabric vRouter Agent pods on all compute nodes. The restart of a
vRouter Agent on a compute node will cause up to 30-60 seconds of networking
downtime per instance hosted there. If downtime is unacceptable for some
workloads, we recommend that you migrate them before restarting the vRouter
pods.
Warning
Under certain rare circumstances, the reload of the vRouter kernel
module triggered by the restart of a vRouter Agent can hang due to
the inability to complete the drop_caches operation. Watch the status
and logs of the vRouter Agent being restarted and trigger the reboot of
the node, if necessary.
The list of the major changes in the component versions includes:
Host OS kernel v5.4
RabbitMQ 3.9
Mirantis Kubernetes Engine (MKE) 3.4.6 with Kubernetes 1.20
All the relevant changes are applied to the MOSK cluster
automatically during the cluster update procedure. The host machine’s kernel
update implies node reboot. See the links below for details.
Implemented the capability to configure the CPU model through the
spec:features:nova:vcpu_type definition of the OpenStackDeployment CR.
The default CPU model is now host-model, which replaces the previous
default kvm64 CPU model.
For deployments with CPU model customized through spec:services, remove
this customization after upgrading your managed cluster.
Automatic backup and restoration of Tungsten Fabric data¶
Implemented the capability to automatically back up and restore the Tungsten
Fabric data stored in Cassandra and ZooKeeper.
The user can perform the automatic data backup by enabling the
tf-dbBackup controller through the Tungsten Fabric Operator CR.
By default, the job is scheduled for weekly execution, allocating PVC
with 5Gi size for storing backups, and keeping 5 previous backups.
Also, MOSK allows for automatic data restoration with
the ability to restore from the exact backup if required.
Implemented the Border Gateway Protocol (BGP) and encapsulation settings in the
Tungsten Fabric Operator custom resource. This feature provides persistency of
the BGP and encapsulation parameters.
Also, added technical preview of the VxLAN encapsulation feature.
Implemented object storage encryption integrated with
the OpenStack Key Manager service (Barbican). The feature is enabled by
default in MOSK deployments with Barbican.
Mirantis has tested MOSK against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOSK components with the exact versions against which
testing has been performed.
This section describes the MOSK known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
Tungsten Fabric does not provide the following functionality:
Automatic generation of network port records in DNSaaS
(Designate) as Neutron with Tungsten Fabric as a backend
is not integrated with DNSaaS. As a workaround, you can use
the Tungsten Fabric built-in DNS service that enables virtual
machines to resolve each other names.
Secret management (Barbican). You cannot use the certificates
stored in Barbican to terminate HTTPs in a load balancer.
Role Based Access Control (RBAC) for Neutron objects.
[10096] tf-control does not refresh IP addresses of Cassandra pods¶
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
kubectl-ntfdeletepodtf-control-<hash>
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
[15684] Pods fail when rolling Tungsten Fabric 2011 back to 5.1¶
Some tf-control and tf-analytics pods may fail during the Tungsten
Fabric rollback from version 2011 to 5.1. In this case, the control
container from the tf-control pod and/or the collector container from
the tf-analytics pod contain SYS_WARN messages such as
… AMQP_QUEUE_DELETE_METHOD caused: PRECONDITION_FAILED - queue
‘<contrail-control/contrail-collector>.<nodename>’ in vhost ‘/’ not empty
….
The workaround is to manually delete the queue that fails to be deleted by
AMQP_QUEUE_DELETE_METHOD:
It is not possible to create an instance that uses a security group shared
through role-based access control (RBAC) with only specifying the network ID
when calling Nova. In such case, before creating a port in the given network,
Nova verifies if the given security group exists in Neutron. However, Nova asks
only for the security groups filtered by project_id. Therefore, it will not
get the shared security group back from the Neutron API. For details, see the
OpenStack known issue
#1942615.
After updating the Keycloak URL in the OpenStackDeployment resource
through the spec.features.keystone.keycloak.url or
spec.features.keystone.keycloak.oidc.OIDCProviderMetadataURL fields,
authentication to Keystone through federated OpenID Connect through Keycloak
stops working returning HTTP 403 Unauthorized on authentication attempt.
The failure occurs because such change is not automatically propagated to the
corresponding Keycloak identity provider, which was automatically created in
Keystone during the initial deployment.
The workaround is to manually update the identity provider’s remote_ids
attribute:
Compare the Keycloak URL set in the OpenStackDeployment resource
with the one set in Keystone identity provider:
kubectl -n openstack get osdpl -ojsonpath='{.items[].spec.features.keystone.keycloak}# vsopenstack identity provider show keycloak -f value -c remote_ids
If the URLs do not coincide, update the identity provider in OpenStack with
the correct URL keeping the auth/realms/iam part as shown below.
Otherwise, the problem is caused by something else, and you need to proceed
with the debugging.
[6912] Octavia load balancers may not work properly with DVR¶
Limitation
When Neutron is deployed in the DVR mode, Octavia load balancers may not
work correctly. The symptoms include both failure to properly balance
traffic and failure to perform an amphora failover. For details, see
DVR incompatibility with ARP announcements and VRRP.
[19065] Octavia load balancers lose Amphora VMs after failover¶
If an Amphora VM does not respond or responds too long to heartbeat requests,
the Octavia load balancer automatically initiates a failover process after 60
seconds of unsuccessful attempts. Long responses of an Amphora VM may be caused
by various events, such as a high load on the OpenStack compute node that hosts
the Amphora VM, network issues, system service updates, and so on. After a
failover, the Amphora VMs may be missing in the completed Octavia load
balancer.
Workaround:
If your deployment is already affected, manually restore the work of the load
balancer by recreating the Amphora VM:
To avoid an automatic failover start that may cause the issue, set the
heartbeat_timeout parameter in the OpenStackDeployment CR to a large
value in seconds. The default is 60 seconds. For example:
During the update of a MOSK cluster to 22.1, live
migration may fail for instances if their images were previously deleted. In
this case, the nova-compute pod contains an error message similar to the
following one:
2022-03-2223:55:24.46811816ERRORnova.compute.manager[instance:128cf508-f7f7-4a40-b742-392c8c80fc7d]Command:scp-C-rkaas-node-03ab613d-cf79-4830-ac70-ed735453481a:/var/l
ib/nova/instances/_base/e2b6c1622d45071ec8a88a41d07ef785e4dfdfe8/var/lib/nova/instances/_base/e2b6c1622d45071ec8a88a41d07ef785e4dfdfe8
2022-03-2223:55:24.46811816ERRORnova.compute.manager[instance:128cf508-f7f7-4a40-b742-392c8c80fc7d]Exitcode:12022-03-2223:55:24.46811816ERRORnova.compute.manager[instance:128cf508-f7f7-4a40-b742-392c8c80fc7d]Stdout:''2022-03-2223:55:24.46811816ERRORnova.compute.manager[instance:128cf508-f7f7-4a40-b742-392c8c80fc7d]Stderr:'ssh: Could not resolve hostname kaas-node-03ab613d-cf79-4830-ac70-ed735453481a: Name or service not known\r\n'
Workaround:
If you have not yet started the managed cluster update, change the
nova-compute image by setting the following metadata in the
OpenStackDeployment CR:
If you have already started the managed cluster update, manually update the
nova-compute container image in the nova-compute DaemonSet to
mirantis.azurecr.io/openstack/nova:victoria-bionic-20220324125700.
[16987] Cluster update fails at Ceph CSI pod eviction¶
An update of a MOSK cluster may fail with the
ceph csi-driver is not evacuated yet, waiting… error during the Ceph
CSI pod eviction.
Workaround:
Scale the affected StatefulSet of the pod that fails to init down to
0 replicas. If it is the DaemonSet such as nova-compute, it must
not be scheduled on the affected node.
On every csi-rbdplugin pod, search for stuck csi-vol:
Scale the affected StatefulSet back to the original number of replicas
or until its state is Running. If it is a DaemonSet, run the pod on
the affected node again.
[18871] MySQL crashes during managed cluster update or instances live migration¶
MySQL may crash when performing instances live migration or during a managed
cluster update. After the crash, MariaDB cannot connect to the cluster and gets
stuck in the CrashLoopBackOff state.
Workaround:
Verify that other MariaDB replicas are up and running and have joined the
cluster:
Verify that at least 2 pods are running and operational
(2/2 and Running):
kubectl-nopenstackgetpods|grepmaria
Example of system response where the pods mariadb-server-0 and
mariadb-server-2 are operational:
In the openstack-controller logs, retries are exhausted:
2022-02-17 18:41:43,317 [ERROR] kopf._core.engines.peering: Request attempt#8 failed; will retry: PATCH https://10.232.0.1:443/apis/zalando.org/v1/namespaces/openstack/kopfpeerings/openstack-controller.nodemaintenancerequest -> APIServerError('Internal error occurred: unable to unmarshal response in forceLegacy: json: cannot unmarshal number into Go value of type bool', {'kind': 'Status', 'apiVersion': 'v1', 'metadata': {}, 'status': 'Failure', 'message': 'Internal error occurred: unable to unmarshal response in forceLegacy: json: cannot unmarshal number into Go value of type bool', 'reason': 'InternalError', 'details': {'causes': [{'message': 'unable to unmarshal response in forceLegacy: json: cannot unmarshal number into Go value of type bool'}]}, 'code': 500})2022-02-17 18:42:50,834 [INFO] kopf.objects: Timer 'heartbeat' succeeded.2022-02-17 18:47:50,848 [INFO] kopf.objects: Timer 'heartbeat' succeeded.2022-02-17 18:52:50,853 [INFO] kopf.objects: Timer 'heartbeat' succeeded.2022-02-17 18:57:50,858 [INFO] kopf.objects: Timer 'heartbeat' succeeded.2022-02-17 19:02:50,862 [INFO] kopf.objects: Timer 'heartbeat' succeeded.
Notification about a successful finish does not exist:
[22321] Neutron backend may change from TF to ML2¶
An update of the MOSK cluster with Tungsten Fabric
may hang due to the changed Neutron backend with the following symptoms:
The libvirt and nova-compute pods fail to start:
Entrypoint WARNING:2022/03/03 08:49:45 entrypoint.go:72:Resolving dependency Pod on same host with labelsmap[application:neutron component:neutron-ovs-agent] in namespace openstack failed:Found no pods matching labels:map[application:neutron component:neutron-ovs-agent] .
In the OSDPL network section, the ml2 backend is specified instead
of tungstenfabric:
spec:features:neutron:backend:ml2
As a workaround, change the backend option from ml2 to
tungstenfabric:
The following issues have been addressed in the MOSK 22.1
release:
[16495][OpenStack] Fixed the issue with Kubernetes not rescheduling OpenStack
deployment pods after a node recovery.
[18713][OpenStack] Fixed the issue causing inability to remove a Glance image
after an unsuccessful instance spawn attempt when image signature
verification was enabled but the signature on the image was incorrect.
[19274][OpenStack] Fixed the issue causing inability to create a Heat stack
by specifying the Heat template as a URL link due to Horizon container
missing proxy variables.
[19791][OpenStack] Fixed the issue with the DEFAULT volume type being
automatically created, as well as listed as a volume type in Horizon, for
database migration even if default_volume_type was set in
cinder.conf.
[18829][StackLight] Fixed the issue causing the Prometheus exporter for the
Tungsten Fabric Controller pod to fail to start upon the StackLight log level
change.
[18879][Ceph] Fixed the issue with the RADOS Gateway (RGW) pod overriding the
global CA bundle located at /etc/pki/tls/certs with an incorrect
self-signed CA bundle during deployment of a Ceph cluster.
[19195][Tungsten Fabric] Fixed the issue causing the managed cluster status
to flap between the Ready/NotReady states in the Container Cloud
web UI.
This section describes the specific actions you as a cloud operator need to
complete to accurately plan and successfully perform your
Mirantis OpenStack for Kubernetes (MOSK) cluster to the version 22.1.
Consider this information as a supplement to the generic update procedure
published in Operations Guide: Update a MOSK cluster.
Additionally, read through the Cluster update known issues for the problems
that are known to occur during update with recommended workarounds.
Starting from MOSK 22.1, the virtual CPU mode is set to
host-model by default, which replaces the previous default kvm64
CPU model.
The new default option provides performance and workload portability, namely
reliable live and cold migration of instances between hosts, and ability
to run modern guest operating systems, such as Windows Server.
For the deployments the virtual CPU mode settings customized through
spec:services, remove this customization in favor of the defaults
after the update.
Update impact and maintenance windows planning¶Host OS kernel version upgrade to v5.4¶
MOSK 22.1 includes the updated version of the host
machine’s kernel that is v5.4. All nodes in the cluster will get restarted
to apply the relevant changes.
Node group
Sequential restart
Impact on end users and workloads
Kubernetes master nodes
Yes
No
Control plane nodes
Yes
No
Storage nodes
Yes
No
Compute nodes
Yes
15-20 minutes of downtime for workloads hosted on a compute node
depending on the hardware specifications of the node
During the Kubernetes master nodes update, there is a downtime on Kubernetes
cluster’s internal DNS service. Thus, Tungsten Fabric vRouter pods lose
connection with the control plane resulting in up to 1 minute of downtime
for the Tungsten Fabric data plane nodes and impact on the tenant networking.
Post-update actions¶Manual restart of TF vRouter Agent pods¶
To complete the update of the cluster with Tungsten Fabric, manually restart
Tungsten Fabric vRouter Agent pods on all compute nodes. The restart of a
vRouter Agent on a compute node will cause up to 30-60 seconds of networking
downtime per instance hosted there. If downtime is unacceptable for some
workloads, we recommend that you migrate them before restarting the vRouter
pods.
Warning
Under certain rare circumstances, the reload of the vRouter kernel
module triggered by the restart of a vRouter Agent is known to hang due to
the inability to complete the drop_caches operation. Watch the status
and logs of the vRouter Agent being restarted and trigger the reboot of
the node if necessary.
Periodic automatic cleanup of OpenStack databases¶
Implemented an automatic cleanup of deleted entries from the databases of
OpenStack services. By default, the deleted rows older than 30 days are sanely
and safely purged from the Barbican, Cinder, Glance, Heat, Masakari, and Nova
databases for all relevant tables.
Implemented the capability to perform image signature verification when
booting an OpenStack instance, uploading a Glance image with signature
metadata fields set, and creating a volume from an image.
Implemented the ability to set the kv_mountpoint and namespace
in spec:features:barbican to specify the mountpoint of a Key-Value
store and the Vault namespace to be used for all requests to Vault
respectively.
Implemented the capability for the Tungsten Fabric Operator to use
ValidatingAdmissionWebhook to validate environment variables set to
Tungsten Fabric components upon the TFOperator object creation or update.
Tungsten Fabric 2011 is now set as the default version for deployment.
Tungsten Fabric 5.1 is considered deprecated and will be declared unsupported
in one of the upcoming releases. Therefore, Mirantis highly recommends
upgrading from Tungsten Fabric 5.1 to 2011.
Implemented the capability to deploy a MOS with
Tungsten Fabric cluster with a multi-rack architecture to allow for native
integration with the Layer 3-centric networking topologies.
Mirantis has tested MOS against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOS components with the exact versions against which
testing has been performed.
This section describes the MOS known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
Tungsten Fabric does not provide the following functionality:
Automatic generation of network port records in DNSaaS
(Designate) as Neutron with Tungsten Fabric as a backend
is not integrated with DNSaaS. As a workaround, you can use
the Tungsten Fabric built-in DNS service that enables virtual
machines to resolve each other names.
Secret management (Barbican). You cannot use the certificates
stored in Barbican to terminate HTTPs in a load balancer.
Role Based Access Control (RBAC) for Neutron objects.
Modification of custom vRouter DaemonSets based on the SR-IOV definition in
the OsDpl CR.
[10096] tf-control does not refresh IP addresses of Cassandra pods¶
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
kubectl-ntfdeletepodtf-control-<hash>
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
[15684] Pods fail when rolling Tungsten Fabric 2011 back to 5.1¶
Some tf-control and tf-analytics pods may fail during the Tungsten
Fabric rollback from version 2011 to 5.1. In this case, the control
container from the tf-control pod and/or the collector container from
the tf-analytics pod contain SYS_WARN messages such as
… AMQP_QUEUE_DELETE_METHOD caused: PRECONDITION_FAILED - queue
‘<contrail-control/contrail-collector>.<nodename>’ in vhost ‘/’ not empty
….
The workaround is to manually delete the queue that fails to be deleted by
AMQP_QUEUE_DELETE_METHOD:
During LCM operations such as Tungsten Fabric update or upgrade, the following
parameters defined by the cluster administrator are reset to the following
defaults upon the tf-config pod restart:
BGP_ASN to 64512
ENCAP_PRIORITY to MPLSoUDP,MPLSoGRE,VXLAN
VXLAN_VN_ID_MODE to automatic
As a workaround, manually set up values for the required parameters if they
differ from the defaults:
The status of a managed cluster may be flapping between the Ready and
NotReady states in the Container Cloud web UI. In this case, if the
cluster Status field includes a message about not ready
tf/tf-tool-status-aggregator and/or tf-tool-status-party deployments
with 1/1 replicas, the status flapping may be caused by frequent updates of
these deployments by the Tungsten Fabric Operator.
Workaround:
Verify whether the tf/tf-tool-status-aggregator and
tf-tool-status-party deployments are up and running:
kubectl-ntfgetdeployments
Safely disable the tf/tf-tool-status-aggregator and
tf-tool-status-party deployments through the TFOperator CR:
It is not possible to create an instance that uses a security group shared
through role-based access control (RBAC) with only specifying the network ID
when calling Nova. In such case, before creating a port in the given network,
Nova verifies if the given security group exists in Neutron. However, Nova asks
only for the security groups filtered by project_id. Therefore, it will not
get the shared security group back from the Neutron API. For details, see the
OpenStack known issue
#1942615.
After updating the Keycloak URL in the OpenStackDeployment resource
through the spec.features.keystone.keycloak.url or
spec.features.keystone.keycloak.oidc.OIDCProviderMetadataURL fields,
authentication to Keystone through federated OpenID Connect through Keycloak
stops working returning HTTP 403 Unauthorized on authentication attempt.
The failure occurs because such change is not automatically propagated to the
corresponding Keycloak identity provider, which was automatically created in
Keystone during the initial deployment.
The workaround is to manually update the identity provider’s remote_ids
attribute:
Compare the Keycloak URL set in the OpenStackDeployment resource
with the one set in Keystone identity provider:
kubectl -n openstack get osdpl -ojsonpath='{.items[].spec.features.keystone.keycloak}# vsopenstack identity provider show keycloak -f value -c remote_ids
If the URLs do not coincide, update the identity provider in OpenStack with
the correct URL keeping the auth/realms/iam part as shown below.
Otherwise, the problem is caused by something else, and you need to proceed
with the debugging.
[6912] Octavia load balancers may not work properly with DVR¶
Limitation
When Neutron is deployed in the DVR mode, Octavia load balancers may not work
correctly. The symptoms include both failure to properly balance traffic and
failure to perform an amphora failover. For details, see DVR incompatibility with ARP announcements and VRRP.
[16495] Failure to reschedule OpenStack deployment pods after a node recovery¶
When image signature verification is enabled and the signature is incorrect on
the image, it is impossible to remove a Glance image right after an
unsuccessful instance spawn attempt. As a workaround, wait for at least one
minute before trying to remove the image.
Horizon container is missing proxy variables. As a result, it is not possible
to create a Heat stack by specifying the Heat template as a URL link. As a
workaround, use a different upload method and specify the file from a local
folder.
[19065] Octavia load balancers lose Amphora VMs after failover¶
If an Amphora VM does not respond or responds too long to heartbeat requests,
the Octavia load balancer automatically initiates a failover process after 60
seconds of unsuccessful attempts. Long responses of an Amphora VM may be caused
by various events, such as a high load on the OpenStack compute node that hosts
the Amphora VM, network issues, system service updates, and so on. After a
failover, the Amphora VMs may be missing in the completed Octavia load
balancer.
Workaround:
If your deployment is already affected, manually restore the work of the load
balancer by recreating the Amphora VM:
To avoid an automatic failover start that may cause the issue, set the
heartbeat_timeout parameter in the OpenStackDeployment CR to a large
value in seconds. The default is 60 seconds. For example:
An update of a MOS cluster may fail with the
ceph csi-driver is not evacuated yet, waiting… error during the Ceph
CSI pod eviction.
Workaround:
Scale the affected StatefulSet of the pod that fails to init down to
0 replicas. If it is the DaemonSet such as nova-compute, it must
not be scheduled on the affected node.
On every csi-rbdplugin pod, search for stuck csi-vol:
Scale the affected StatefulSet back to the original number of replicas
or until its state is Running. If it is a DaemonSet, run the pod on
the affected node again.
[18871] MySQL crashes during managed cluster update or instances live migration¶
MySQL may crash when performing instances live migration or during an update of
a managed cluster running MOS from version 6.19.0 to 6.20.0. After the crash,
MariaDB cannot connect to the cluster and gets stuck in the
CrashLoopBackOff state.
Workaround:
Verify that other MariaDB replicas are up and running and have joined the
cluster:
Verify that at least 2 pods are running and operational
(2/2 and Running):
kubectl-nopenstackgetpods|grepmaria
Example of system response where the pods mariadb-server-0 and
mariadb-server-2 are operational:
During deployment of a Ceph cluster, the RADOS Gateway (RGW) pod overrides
the global CA bundle located at /etc/pki/tls/certs with an incorrect
self-signed CA bundle. The issue affects only clusters with public
certificates.
Workaround:
Open the KaasCephCluster CR of a managed cluster for editing:
Substitute <managedClusterProjectName> with a corresponding value.
Note
If the public CA certificates also apply to the OsDpl CR,
edit this resource as well.
Select from the following options:
If you are using the GoDaddy certificates, in the
cephClusterSpec.objectStorage.rgw section, replace the
cacert parameters with your public CA certificate that already
contains both the root CA certificate and intermediate CA certificate:
The following issues have been addressed in the Mirantis OpenStack for
Kubernetes 21.6 release:
[16452][OpenStack] Fixed the issue causing failure to update the Octavia
policy after policies removal from the OsDpl CR. The issue affected OpenStack
Victoria.
[16103][OpenStack] Fixed the issue causing Glance client to return the
HTTPInternalServerError while operating with volume when Glance was
configured with the Cinder backend TechPreview.
[17321][OpenStack] Fixed the issue causing RPC errors in the logs of the
designate-central pods during liveness probes.
[17927][OpenStack] Fixed the issue causing inability to delete volume backups
created from encrypted volumes.
[18029][OpenStack] Fixed the issue with live migration of instances with
SR-IOV macvtap ports occasionally requiring the same virtual functions
(VF) number to be free on the destination compute nodes.
[18744][OpenStack] Fixed the issue with the application_credential
authentication method being disabled in Keystone in case of an enabled
Keycloak integration.
[17246][StackLight] Deprecated the redundant openstack.externalFQDN
(string) parameter and added the new externalFQDNs.enabled (bool)
parameter.
Implemented a machine-readable status for OpenStack deployments. Now, you can
use the OpenStackDeploymentStatus (OsDplSt) custom resource as a single
data structure that describes the OpenStackDeployment (OsDpl) status at a
particular moment.
Implemented the capability to enable Cinder volume encryption through the
OpenStackDeployment CR using Barbican that will store the encryption keys
and Linux Unified Key Setup (LUKS) that will create encrypted Cinder volumes
including bootable ones. If an encrypted volume is bootable, Nova will get a
symmetric encryption key from Barbican.
Implemented full support for Tungsten Fabric 2011. Though, Tungsten Fabric 5.1
is deployed by default in MOS 21.5, you can use the
tfVersion parameter to define the 2011 version for deployment.
Implemented support for multiple workers of the contrail-api in Tungsten
Fabric. Starting from the MOS 21.5 release, six workers
of the contrail-api
service are used by default. In the previous MOS releases,
only one worker of this service was used.
Short names for Kubernetes nodes in Grafana dashboards¶
Enhanced the Grafana dashboards to display user-friendly short names for
Kubernetes nodes, for example, master-0, instead of long name labels
such as kaas-node-f736fc1c-3baa-11eb-8262-0242ac110002.
This feature provides for consistency with Kubernetes nodes naming in the
Mirantis Container Cloud web UI.
All Grafana dashboards that present node data now have an additional
Node identifier drop-down menu. By default, it is set to
machine to display short names for Kubernetes nodes. To display
Kubernetes node name labels as previously, change this option to
node.
Implemented the following improvements to StackLight alerting:
Added the OpenstackServiceInternalApiOutage and
OpenstackServicePublicApiOutage alerts that raise in case of an OpenStack
service internal or public API outage.
Enhanced the alert inhibition rules.
Reworked a number of alerts to improve alerting efficiency and reduce alert
flooding.
Removed the inefficient OpenstackServiceApiDown and
OpenstackServiceApiOutage alerts.
Published MOS Release Compatibility Matrix that describes
the cloud configurations that have been supported by the product over the
course of its lifetime and the path a MOS cloud can
take to move from an older configuration to a newer one.
Published the OpenStack Ussuri to Victoria upgrade procedure and Tungsten
Fabric 5.1 to 2011 upgrade procedure that instruct cloud operators on how
to prepare for the upgrade, use the MOS life cycle
management API to perform the upgrade, and verify the cloud operability
after the upgrade.
Mirantis has tested MOS against a very specific
configuration and can guarantee a predictable behavior of the product onlyin
the exact same environments. The table below includes the major
MOS components with the exact versions against which
testing has been performed.
This section describes the MOS known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
Tungsten Fabric does not provide the following functionality:
Automatic generation of network port records in DNSaaS
(Designate) as Neutron with Tungsten Fabric as a backend
is not integrated with DNSaaS. As a workaround, you can use
the Tungsten Fabric built-in DNS service that enables virtual
machines to resolve each other names.
Secret management (Barbican). You cannot use the certificates
stored in Barbican to terminate HTTPs in a load balancer.
Role Based Access Control (RBAC) for Neutron objects.
Modification of custom vRouter DaemonSets based on the SR-IOV definition in
the OsDpl CR.
[10096] tf-control does not refresh IP addresses of Cassandra pods¶
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
kubectl-ntfdeletepodtf-control-<hash>
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
[15684] Pods fail when rolling Tungsten Fabric 2011 back to 5.1¶
Some tf-control and tf-analytics pods may fail during the Tungsten
Fabric rollback from version 2011 to 5.1. In this case, the control
container from the tf-control pod and/or the collector container from
the tf-analytics pod contain SYS_WARN messages such as
… AMQP_QUEUE_DELETE_METHOD caused: PRECONDITION_FAILED - queue
‘<contrail-control/contrail-collector>.<nodename>’ in vhost ‘/’ not empty ….
The workaround is to manually delete the queue that fails to be deleted by
AMQP_QUEUE_DELETE_METHOD:
During LCM operations such as Tungsten Fabric update or upgrade, the following
parameters defined by the cluster administrator are reset to the following
defaults upon the tf-config pod restart:
BGP_ASN to 64512
ENCAP_PRIORITY to MPLSoUDP,MPLSoGRE,VXLAN
VXLAN_VN_ID_MODE to automatic
As a workaround, manually set up values for the required parameters if they
differ from the defaults:
[6912] Octavia load balancers may not work properly with DVR¶
Limitation
When Neutron is deployed in the DVR mode, Octavia load balancers may not work
correctly. The symptoms include both failure to properly balance traffic and
failure to perform an amphora failover. For details, see DVR incompatibility with ARP announcements and VRRP.
[16495] Failure to reschedule OpenStack deployment pods after a node recovery¶
Kubernetes does not reschedule OpenStack deployment pods after a node
recovery.
As a workaround, delete all pods of the deployment:
When Glance is configured with the Cinder backend TechPreview, the
Glance client may return the HTTPInternalServerError error while operating
with volume. In this case, repeat the action again until it succeeds.
[19065] Octavia load balancers lose Amphora VMs after failover¶
If an Amphora VM does not respond or responds too long to heartbeat requests,
the Octavia load balancer automatically initiates a failover process after 60
seconds of unsuccessful attempts. Long responses of an Amphora VM may be caused
by various events, such as a high load on the OpenStack compute node that hosts
the Amphora VM, network issues, system service updates, and so on. After a
failover, the Amphora VMs may be missing in the completed Octavia load
balancer.
Workaround:
If your deployment is already affected, manually restore the work of the load
balancer by recreating the Amphora VM:
To avoid an automatic failover start that may cause the issue, set the
heartbeat_timeout parameter in the OpenStackDeployment CR to a large
value in seconds. The default is 60 seconds. For example:
An update of a MOS cluster may fail with
the ceph csi-driver is not evacuated yet, waiting… error during the
Ceph CSI pod eviction.
Workaround:
Scale the affected StatefulSet of the pod that fails to init down to
0 replicas. If it is the DaemonSet such as nova-compute, it must
not be scheduled on the affected node.
On every csi-rbdplugin pod, search for stuck csi-vol:
Scale the affected StatefulSet back to the original number of replicas
or until its state is Running. If it is a DaemonSet, run the pod on
the affected node again.
[18879] The RGW pod overrides the global CA bundle with an incorrect mount¶
During deployment of a Ceph cluster, the RADOS Gateway (RGW) pod overrides
the global CA bundle located at /etc/pki/tls/certs with an incorrect
self-signed CA bundle. The issue affects only clusters with public
certificates.
Workaround:
Open the KaasCephCluster CR of a managed cluster for editing:
Substitute <managedClusterProjectName> with a corresponding value.
Note
If the public CA certificates also apply to the OsDpl CR,
edit this resource as well.
Select from the following options:
If you are using the GoDaddy certificates, in the
cephClusterSpec.objectStorage.rgw section, replace the
cacert parameters with your public CA certificate that already
contains both the root CA certificate and intermediate CA certificate:
The following issues have been addressed in the Mirantis OpenStack for
Kubernetes 21.5 release:
[17115][Update] Fixed the issue with the
status.providerStatus.releaseRefs.previous.name field in the Cluster
object for Ceph not changing during the MOS
cluster update. If you have previously applied the workaround as described in
[17115] Cluster update does not change releaseRefs in Cluster object for Ceph, manually add the subresources section back to the
clusterworkloadlock CRD:
kubectl edit crd clusterworkloadlocks.lcm.mirantis.com# add here 'subresources' section:spec:versions:-name:v1alpha1subresources:status:{}
[17477][Update] Fixed the issue with StackLight in HA mode placed on
controller nodes being not deployed or cluster update being blocked. Once you
update your MOS cluster from the Cluster release
6.18.0 to 6.19.0, roll back the workaround applied as described in
[17477] StackLight in HA mode is not deployed or cluster update is blocked:
Remove stacklight labels from worker nodes. Wait for the labels to be
removed.
Remove the custom nodeSelector section from the cluster spec.
[16103][OpenStack] Fixed the issue with the Glance client returning the
HTTPInternalServerError error while operating with a volume if Glance
was configured with the Cinder backend TechPreview.
[14678][OpenStack] Fixed the issue with instance being inaccessible through
floating IP upon floating IP quick reuse when using a small floating network.
[16963][OpenStack] Fixed the issue with Ironic failing to provide nodes on
deployments with OpenStack Victoria.
[16241][Tungsten Fabric] Fixed the issue causing failure to update a port, or
security group assigned to the port, through the Horizon web UI.
[17045][StackLight] Fixed the issue causing the fluentd-notifications pod
failing to track the RabbitMQ credentials updates in the Secret object.
[17573][StackLight] Fixed the issue with OpenStack notifications missing in
Elasticsearch and the Kibana notification-* index being empty.
Implemented full support for OpenStack Victoria with OVS or Tungsten Fabric
5.1. However, for new OpenStack Victoria with Tungsten Fabric deployments,
Mirantis recommends that you install Tungsten Fabric 2011, which is shipped as
TechPreview in this release.
Verified the upgrade path from Ussuri with OVS or Tungsten Fabric 5.1 to
Victoria with OVS or Tungsten Fabric 5.1.
OpenStack Ussuri is considered deprecated and will be declared unsupported
in one of the upcoming releases. Therefore, start planning your Ussuri to
Victoria cloud upgrade.
Default policies override for core OpenStack services¶
Implemented the mechanism to define additional policy rules for the core
OpenStack services through the OpenStackDeployment Custom Resource.
Implemented support for Masakari instance evacuation. Now, Masakari host
monitor is deployed by default with Instances High Availability Service for
OpenStack to provide automatic instance evacuation from failed instances.
Implemented the usage of direct Helm 3 communication by the OpenStack operator.
The usage of HelmBundles is dropped and automatic transition from Helm 2 to
Helm 3 is performed during the MOS 21.3 to
MOS 21.4 release update.
Implemented the capability to configure Cinder backend for images through
the OpenStackDeployment Custom Resource. The usage of Cinder backend
for Glance enables the OpenStack clouds relying on third-party appliances
for block storage to have images in one place.
Compact control plane for small Open vSwitch-based clouds¶
TechPreview
Added the capability to collocate the OpenStack control plane with the managed
cluster master nodes through the OpenStackDeployment Custom Resource.
Note
If the StackLight cluster is configured to run in the HA mode
on the same nodes with the control plane services, additional manual
steps are required for an upgrade to MOS 21.4 or for a greenfield
deployment. For details, see known issue 17477.
Added support for large-scale deployments that number up to 200 nodes
out of the box. The use case has been verified for core OpenStack services
with OVS and non-DVR Neutron configuration on a dedicated hardware scale lab.
For a successful deployment, we recommend sticking to the optimal limit for
the number of ports on gateway nodes that is 1500 ports per gateway node.
This recommendation was confirmed during the testing and should be taken
into account when planning large environments.
Implemented the capability to enable the BGP VPN service to allow for
connection of OpenStack Virtual Private Networks with external VPN
sites through either BGP/MPLS IP VPNs or E-VPN.
Published MOS API Reference to provide cloud operators
with an up-to-date and comprehensive definition of the language they need
to use to communicate with MOS OpenStack and Tungsten
Fabric.
Enhanced StackLight to send all OpenStack notifications to the notification
index. Now, to view the previously called audit notifications, see the
cadfLogger in the Kibana Notifications
dashboard.
Mirantis has tested MOS against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOS components with the exact versions against which
testing has been performed.
This section describes the MOS known issues with available
workarounds. For the known issues in the related version of
Mirantis Container Cloud, refer to Mirantis Container Cloud: Release Notes.
Tungsten Fabric does not provide the following functionality:
Automatic generation of network port records in DNSaaS
(Designate) as Neutron with Tungsten Fabric as a backend
is not integrated with DNSaaS. As a workaround, you can use
the Tungsten Fabric built-in DNS service that enables virtual
machines to resolve each other names.
Secret management (Barbican). You cannot use the certificates
stored in Barbican to terminate HTTPs in a load balancer.
Role Based Access Control (RBAC) for Neutron objects.
Modification of custom vRouter DaemonSets based on the SR-IOV definition in
the OsDpl CR.
[10096] tf-control does not refresh IP addresses of Cassandra pods¶
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
kubectl-ntfdeletepodtf-control-<hash>
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
[6912] Octavia load balancers may not work properly with DVR¶
Limitation
When Neutron is deployed in the DVR mode, Octavia load balancers may not work
correctly. The symptoms include both failure to properly balance traffic and
failure to perform an amphora failover. For details, see DVR incompatibility with ARP announcements and VRRP.
[14678] Instance inaccessible through floating IP upon floating IP quick reuse¶
Fixed in MOS 21.5
When using a small floating network and the floating IP that was previously
allocated to an instance and re-associated with another instance in a short
period of time, the instance may be inaccessible. The Address Resolution
Protocol (ARP) cache timeout on the infrastructure layer is typically set to 5
minutes.
As a workaround, set a shorter ARP cache timeout on the infrastructure
side.
When Glance is configured with the Cinder backend TechPreview, the
Glance client may return the HTTPInternalServerError error while operating
with volume. In this case, repeat the action again until it succeeds.
[17045] fluentd-notifications does not track RabbitMQ credentials updates¶
Fixed in MOS 21.5
The fluentd-notifications pod fails to track the RabbitMQ credentials
updates in the Secret object. In this case, the fluentd-notifications pods
in the StackLight namespace are being restarted too often with the following
error message present in logs:
Authentication with RabbitMQ failed. Please check your connection settings.
Workaround:
Delete the affected fluentd-notifications pod. For example:
[17573] OpenStack notifications missing in Elasticsearch and Kibana¶
Fixed in MOS 21.5
OpenStack notifications may be missing in Elasticsearch and the Kibana
notification-* index may be empty. In this case, error messages
similar to the following one may be present in the
fluentd-notifications logs:
On the affected managed cluster, obtain the proper user name and password
from the rabbitmq-creds Secret in the openstack-lma-shared namespace
(strip b' prefix and ' suffix):
[17477] StackLight in HA mode is not deployed or cluster update is blocked¶
Fixed in MOS 21.5
The deployment of new managed clusters using the Cluster release 6.18.0
with StackLight enabled in the HA mode on control plane nodes does not have
StackLight deployed. The update of existing clusters with such StackLight
configuration that were created using the Cluster release 6.16.0 is blocked
with the following error message:
If you faced the issue during a managed cluster deployment, skip
this step.
If you faced the issue during a managed cluster update, wait until all
StackLight components resources are recreated on the target nodes
with updated node selectors.
In the Container Cloud web UI, add a fake StackLight label to any 3 worker
nodes to satisfy the deployment requirement as described in
Mirantis Container Cloud Operations Guide: Create a machine using web UI.
Eventually, StackLight will be still placed on the
target nodes with the forcedRole:stacklight label.
Once done, the StackLight deployment or update proceeds
[17305] Cluster update fails with the ‘Not ready releases: descheduler’ error¶
Affects only MOS 21.4
An update of a MOS cluster from the Cluster release
6.16.0 to 6.18.0 may fail with the following exemplary error message:
Clusterdatastatus:conditions:
-message:'Helm charts are not installed(upgraded) yet. Not ready releases: descheduler.'ready:falsetype:Helm
The issue may affect the descheduler and metrics-server Helm releases.
As a workaround, run helm uninstall descheduler or
helm uninstall metrics-server and wait for Helm Controller
to recreate the affected release.
[16987] Cluster update fails at Ceph CSI pod eviction¶
Fixed in MOS 22.2
An update of a MOS cluster may fail with the
ceph csi-driver is not evacuated yet, waiting… error during the Ceph
CSI pod eviction.
Workaround:
Scale the affected StatefulSet of the pod that fails to init down to
0 replicas. If it is the DaemonSet such as nova-compute, it must
not be scheduled on the affected node.
On every csi-rbdplugin pod, search for stuck csi-vol:
Scale the affected StatefulSet back to the original number of replicas
or until its state is Running. If it is a DaemonSet, run the pod on
the affected node again.
[17115] Cluster update does not change releaseRefs in Cluster object for Ceph¶
Fixed in MOS 21.5
During an update of a MOS cluster from the Cluster release 6.16.0 to 6.18.0,
the status.providerStatus.releaseRefs.previous.name field in the Cluster
object does not change.
Workaround:
In the clusterworkloadlock CRD, remove the subresources section:
Create a ceph-cwl.yaml file with Ceph ClusterWorkloadLock:
apiVersion:lcm.mirantis.com/v1alpha1kind:ClusterWorkloadLockmetadata:name:ceph-clusterworkloadlockspec:controllerName:cephstatus:state:inactiverelease:<clusterRelease># from the previous step
Substitute <clusterRelease> with clusterRelease obtained in the
previous step.
[17038] Cluster update may fail with TimeoutError¶
Affects only MOS 21.4
A MOS cluster update from the Cluster version
6.16.0 to 6.18.0 may fail with the Timeout waiting for pods statuses
timeout error. The error means that pods containers will be not ready
and will often restart with OOMKilled as a restart reason. For example:
The following issues have been addressed in the Mirantis OpenStack for
Kubernetes 21.4 release:
[13273][OpenStack] Fixed the issue with Octavia amphora getting stuck after
the MOS cluster update.
[16849][OpenStack] Fixed the issue causing inability to delete a load
balancer with a number higher than the maximum limit in API.
[16180][Tungsten Fabric] Fixed the issue with inability to schedule
vRouter DPDK on a node with DPDK and 1 GB huge pages enabled. Enhanced
Tungsten Fabric Operator to support 1 GB huge pages for a DPDK-based vRouter.
[16033][Ceph] Fixed the issue with inability to access RADOS Gateway through
using S3 authentication. Added rgws3authusekeystone=true to the
default RADOS Gateway options.
[16604][StackLight] To avoid issues with defunct processes on the
OpenStack controller nodes, temporarily disabled instances downtime
monitoring and removed the KPI - Downtime Grafana dashboard.
Update for the MOS GA release introducing support
for Hyperconverged
OpenStack compute nodes, SR-IOV and control interface specification for
Tungsten Fabric, and the following Technology Preview features:
Implemented full support for colocation of a cluster services on the same host,
for example, Ceph OSD and OpenStack compute.
To avoid nodes overloading, limit the hardware resources consumption by the
OpenStack compute services as described in Deployment Guide: Limit HW
resources for hyperconverged OpenStack compute nodes.
Implemented the capability to encrypt the east-west tenant traffic between the
OpenStack compute nodes and gateways using strongSwan Internet Protocol
Security (IPsec) solution.
Implemented full support for SR-IOV in Tungsten Fabric.
After the OpenStackDeployment CR modification, the TF Operator
now generates a separate vRouter DaemonSet with specified settings.
After the SR-IOV enablement, the tf-vrouter-agent pods
are automatically restarted on the corresponding nodes causing
the network services interruption on virtual machines running on these hosts.
Therefore, plan this procedure accordingly.
Implemented the targetSizeRatio parameter for the replicated
MOS Ceph pools. The targetSizeRatio value specifies
the default ratio for each Ceph pool type to define the expected consumption
of the Ceph cluster capacity.
Added the customIngress parameter to implement the capability to specify
a custom Ingress Controller when configuring the Ceph RGW TLS.
Caution
Starting from MOS 21.3, external Ceph RGW
service is not supported and will be deleted during update. If your
system already uses endpoints of an external RGW service, reconfigure
them to the ingress endpoints.
Mirantis has tested MOS against a very specific
configuration and can guarantee a predictable behavior of the product
only in the exact same environments. The table below includes the major
MOS components with the exact versions against which
testing has been performed.
Tungsten Fabric does not provide the following functionality:
Automatic generation of network port records in DNSaaS
(Designate) as Neutron with Tungsten Fabric as a backend
is not integrated with DNSaaS. As a workaround, you can use
the Tungsten Fabric built-in DNS service that enables virtual
machines to resolve each other names.
Secret management (Barbican). You cannot use the certificates
stored in Barbican to terminate HTTPs in a load balancer.
Role Based Access Control (RBAC) for Neutron objects.
Modification of custom vRouter DaemonSets based on the SR-IOV definition in
the OsDpl CR.
[10096] tf-control does not refresh IP addresses of Cassandra pods¶
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
kubectl-ntfdeletepodtf-control-<hash>
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes, maintenance, or
other circumstances that cause the Cassandra pods to start simultaneously may
cause a broken Cassandra TFConfig and/or TFAnalytics cluster.
In this case, Cassandra nodes do not join the ring and do not update the IPs of
the neighbor nodes. As a result, the TF services cannot operate Cassandra
cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
[15525] HelmBundle Controller gets stuck during cluster update¶
Affects only MOS 21.3
The HelmBundle Controller that handles OpenStack releases gets stuck during
cluster update and does not apply HelmBundle changes. The issue is caused
by an unlimited releases history that increases the amount of RAM consumed by
Tiller. The workaround is to manually limit the releases number history to 3.
[13273] Octavia amphora may get stuck after cluster update¶
Fixed in MOS 21.4
After the MOS cluster update, Octavia amphora
may get stuck with the
WARNING octavia.amphorae.drivers.haproxy.rest_api_driver [-] Could not
connect to instance. Retrying. error message present in the Octavia worker
logs. The workaround is to manually switch the Octavia amphorae driver from
V2 to V1.
Workaround:
In the OsDpl CR, specify the following configuration:
[6912] Octavia load balancers may not work properly with DVR¶
Limitation
When Neutron is deployed in the DVR mode, Octavia load balancers may not work
correctly. The symptoms include both failure to properly balance traffic and
failure to perform an amphora failover. For details, see DVR incompatibility with ARP announcements and VRRP.
Copy last certificate in the chain and save it to the temp file, for
example, tmp-cacert.crt.
Encode the certificate from tmp-cacert.crt with base64 encoding in one
line:
cattmp-cacert.crt|base64-w0
Create a new cacert key in the rook-ceph/rgw-ssl-certificate secret
and copy the base64-encoded cacert to its value. The following is an
example of the resulting secret data:
The following issues have been addressed in the Mirantis OpenStack for
Kubernetes 21.3 release:
[13422][OpenStack] Fixed the issue with some Redis pods remaining in
Pending state and causing failure to update the Cluster release.
[12511][OpenStack] Fixed the issue with Kubernetes nodes getting stuck in the
Prepare state during the MOS cluster update.
[13233][StackLight] Fixed the issue with low memory limits for StackLight
Helm Controller causing update failure.
[12917][StackLight] Fixed the issue with prometheus-tf-vrouter-exporter
pods failing to start on Tungsten Fabric nodes with DPDK. To remove the
nodeSelector definition specified when applying the
workaround:
Remove the nodeSelector.component.tfVrouterExporter definition from
the stackLighthelmRelease
(.spec.providerSpec.value.helmReleases) values of the Cluster
resource.
Remove the label using the following command. Do not remove the last dash
sign.
kubectllabelnode<node_name>tfvrouter-fix-
[11961][Tungsten Fabric] Fixed the issue with members failing to join the
RabbitMQ cluster after the tf-control nodes reboot.
Implemented the cache and proxy support for MOS managed
clusters.
By default, during a MOS cluster deployment and
update the Mirantis artifacts are downloaded through a cache running
on a management or regional cluster. If you have an external application
that requires Internet access, you can now use proxy with required parameters
specified for that application.
Implemented the capability to enable Masakari, the OpenStack service that
ensures high availability of instances running on a host. The feature is
disabled by default.
Implemented the capability to specify custom settings for the Tungsten Fabric
vRouter nodes using the customSpecs parameter, such as to change the name
of the tunnel network interface or enable debug level logging.
Improved user experience by moving the rgw.ingress parameters of the
KaasCephCluster CR to a common cephClusterSpec.ingress section. The
rgw section is deprecated. However, if you continue using rgw.ingress,
it will be automatically translated into cephClusterSpec.ingress during
the MOS cluster release update.
Mirantis has tested MOS against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOS components with the exact versions against which
testing has been performed.
Tungsten Fabric does not provide the following functionality:
Automatic generation of network port records in DNSaaS
(Designate) as Neutron with Tungsten Fabric as a backend
is not integrated with DNSaaS. As a workaround, you can use
the Tungsten Fabric built-in DNS service that enables virtual
machines to resolve each other names.
Secret management (Barbican). You cannot use the certificates
stored in Barbican to terminate HTTPs in a load balancer.
Role Based Access Control (RBAC) for Neutron objects.
Modification of custom vRouter DaemonSets based on the SR-IOV definition in
the OsDpl CR.
[10096] tf-control does not refresh IP addresses of Cassandra pods¶
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
kubectl-ntfdeletepodtf-control-<hash>
[13755] TF pods switch to CrashLoopBackOff after a simultaneous reboot¶
Rebooting all Cassandra cluster TFConfig or TFAnalytics nodes,
maintenance, or other circumstances that cause the Cassandra pods to
start simultaneously may cause a broken Cassandra TFConfig and/or
TFAnalytics cluster. In this case, Cassandra nodes do not join the
ring and do not update the IPs of the neighbor nodes. As a result, the
TF services cannot operate Cassandra cluster(s).
To verify that a Cassandra cluster is affected:
Run the nodetool status command specifying the config or
analytics cluster and the replica number:
During the MOS cluster update to Cluster release
6.14.0, Kubernetes nodes may get stuck in the Prepare state. At the same
time, the LCM Controller logs may contain the following errors:
After the MOS cluster update, Octavia amphora may
get stuck with the
WARNING octavia.amphorae.drivers.haproxy.rest_api_driver [-] Could not connect
to instance. Retrying. error message present in the Octavia worker logs. The
workaround is to manually switch the Octavia amphorae driver from V2 to V1.
Workaround:
In the OsDpl CR, specify the following configuration:
[6912] Octavia load balancers may not work properly with DVR¶
Limitation
When Neutron is deployed in the DVR mode, Octavia load balancers may not work
correctly. The symptoms include both failure to properly balance traffic and
failure to perform an amphora failover. For details, see DVR incompatibility with ARP announcements and VRRP.
During the MOS cluster update to Cluster release
6.14.0, StackLight Helm Controller containers (controller and/or
tiller) may get OOMKilled and cause failure to update.
As a workaround, manually increase the default resource requests and limits
for stacklightHelmControllerController and
stacklightHelmControllerTiller in the StackLight Helm chart values of the
Cluster release resource:
StackLight deploys the prometheus-tf-vrouter-exporter exporter based on the
node selector matching the tfvrouter:enabled node label. The Tungsten
Fabric nodes with DPDK have the tfvrouter-dpdk:enabled label set instead.
Therefore, the prometheus-tf-vrouter-exporter exporter fails to start on
these nodes.
Workaround:
Add the tfvrouter-fix:enabled label to every node that contains either
the tfvrouter:enabled or the tfvrouter-dpdk:enabled node label.
kubectllabelnode<node_name>tfvrouter-fix=enabled
In the Cluster release resource, specify the following nodeSelector
definition in the StackLight Helm chart values:
The following issues have been addressed in the Mirantis OpenStack for
Kubernetes 21.2 release:
[7725][Tungsten Fabric] Fixed the issue with the Neturon service failing to
create a network through Horizon and OpenStack CLI throwing the
Anunknownexceptionoccurred error.
Update for the MOS GA release introducing support
for the PCI passthrough feature and Tungsten Fabric monitoring,
as well as the following Technology Preview features:
OpenStack Victoria support with OVS and Tungsten Fabric 5.1
SR-IOV for OpenStack
Components collocation (OpenStack compute and Ceph nodes)
Added support for the Peripheral Component Interconnect (PCI) passthrough
feature in OpenStack to use, mainly, as a part of the SR-IOV network traffic
acceleration technique. Now, MOS enables the user to
configure Nova on a per-node basis to allow PCI devices to be passed through
from hosts to virtual machines.
Enhanced StackLight to monitor Tungsten Fabric and its components, including
Casandra, Kafka, Redis, and ZooKeeper. Implemented the Tungsten Fabric alerts
and Grafana dashboards. The feature is disabled by default. You can enable it
manually during or after the Tungsten Fabric deployment.
Implemented alert inhibition rules to provide a clearer view on the cloud
status and simplify troubleshooting. Using alert inhibition rules, Alertmanager
decreases alert noise by suppressing dependent alerts notifications. The
feature is enabled by default. For details, see
Operations Guide: Alert dependencies.
Implemented integration between Grafana and Kibana by adding a
View logs in Kibana link to most Grafana dashboards, which allows
you to immediately view contextually relevant logs through the Kibana web UI.
Added the capability to configure the Transport Layer Security (TLS) protocol
for a Ceph RGW public endpoint using MOS TLS if enabled,
or using a custom ingress specified in the KaaSCephCluster custom
resource.
Mirantis has tested MOS against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOS components with the exact versions against which
testing has been performed.
[6912] Octavia load balancers may not work properly with DVR¶
Limitation
When Neutron is deployed in the DVR mode, Octavia load balancers may not work
correctly. The symptoms include both failure to properly balance traffic and
failure to perform an amphora failover. For details, see DVR incompatibility with ARP announcements and VRRP.
Tungsten Fabric does not provide the following functionality:
Automatic generation of network port records in DNSaaS
(Designate) as Neutron with Tungsten Fabric as a backend
is not integrated with DNSaaS. As a workaround, you can use
the Tungsten Fabric built-in DNS service that enables virtual
machines to resolve each other names.
Secret management (Barbican). You cannot use the certificates
stored in Barbican to terminate HTTPs in a load balancer.
Role Based Access Control (RBAC) for Neutron objects.
The Neturon service fails to create a network through Horizon and
OpenStack CLI throwing the Anunknownexceptionoccurred error.
The workaround is to restart the tf-config pods:
Obtain the list of the tf-config pods:
kubectl-ntfgetpod-lapp=tf-config
Delete the tf-config-* pods. For example:
kubectl-ntfdeletepodtf-config-2whbb
Verify that the pods have been recreated:
kubectl-ntfgetpod-lapp=tf-config
[10096] tf-control does not refresh IP addresses of Cassandra pods¶
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
The following issues have been addressed in the Mirantis OpenStack for
Kubernetes 21.1 release:
[9809] [Kubernetes] Fixed the issue with the pods getting stuck in
the Pending state during update of a MOSK
cluster by increasing the default kubelet_max_pods setting to 150.
[9589][StackLight] Fixed the issue with the Patroni pod crashing when
scheduled to an OpenStack compute node with huge pages.
[8573] [OpenStack] Fixed the issue with the external authentication
to Horizon failing to log in a different user.
The first update to MOS Ussuri release introducing
support for object storage and a Telco deployment profile, which
includes implementation of baseline Enhanced Platform Awareness
(NUMA awareness, huge pages, CPU pinning) capabilities, and a
technical preview of packet processing acceleration (Data Plane
Development Kit-enabled Tungsten Fabric).
Implemented the capability to easily perform the node-specific configuration
through the OpenStack Controller. More specifically, the node-specific
overrides allow you to:
Implemented the capability to customize the look and feel of Horizon through
the OpenStackDeployment custom resource. Cloud operator is now able
to specify the origin of the theme bundle to be applied to OpenStack Horizon
in features:horizon:themes.
Implemented the capability to disable HTTP probes for public endpoints from the
OpenStack service catalog. In this case, Telegraf performs HTTP checks only
for the admin and internal OpenStack endpoints. By default, Telegraf verifies
all endpoints from the OpenStack service catalog.
Implemented the capability to verify the status of Tungsten Fabric services,
including the third-party services such as Cassandra, ZooKeeper, Kafka, Redis,
and RabbitMQ using the Tungsten Fabric Operator tf-status tool.
Mirantis has tested MOS against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOS components with the exact versions against which
testing has been performed.
Due to limitations in the Octavia and MOS integration,
the clusters where Neutron is deployed in the Distributed Virtual Router
(DVR) mode are not stable. Therefore, Mirantis does not recommend such
configuration for production deployments.
[9809] The default max_pods setting does not allow upgrading a cluster¶
Fixed in MOS 21.1
During update of a MOS cluster, the pods may get
stuck in the Pending state with the following example warning:
Warning FailedScheduling <unknown> default-scheduler 0/9 nodes are available:1 node(s) were unschedulable, 2 Too many pods, 6 node(s) didn't match node selector.
[6912] Octavia load balancers may not work properly with DVR¶
Limitation
When Neutron is deployed in the DVR mode, Octavia load balancers may not work
correctly. The symptoms include both failure to properly balance traffic and
failure to perform an amphora failover. For details, see DVR incompatibility with ARP announcements and VRRP.
[8573] External authentication to Horizon fails to log in a different user¶
Fixed in MOS 21.1
Horizon retains the user’s credentials following their initial login using
External Authentication Service, and does not allow to log in with another
user credentials.
Workaround:
Clear cookies in your browser.
Select External Authentication Service on the Horizon login
page.
Click Sign In. The Keycloak login page opens.
If the following error occurs, refresh the page and try again:
CSRF token missing or incorrect. Cookies may be turned off.Make sure cookies are enabled and try again.
Tungsten Fabric does not provide the following functionality:
Automatic generation of network port records in DNSaaS
(Designate) as Neutron with Tungsten Fabric as a backend
is not integrated with DNSaaS. As a workaround, you can use
the Tungsten Fabric built-in DNS service that enables virtual
machines to resolve each other names.
Secret management (Barbican). You cannot use the certificates
stored in Barbican to terminate HTTPs in a load balancer.
Role Based Access Control (RBAC) for Neutron objects.
[10096] tf-control service does not refresh IP addresses of Cassandra pods¶
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
General availability of the product with OpenStack Ussuri and choice of
Neutron/OVS or Tungsten Fabric 5.1 for networking. Runs on top of a bare
metal Kubernetes cluster managed by Container Cloud.
Mirantis OpenStack for Kubernetes (MOS) represents a frictionless
cloud infrastructure on-premise. MOS Ussuri is integrated
with Container Cloud bare metal with Ceph and StackLight onboard and,
optionally, supports Tugsten Fabric 5.1 as a backend for the OpenStack
networking. In terms of updates, MOS Ussuri fully relies
on the Container Cloud update delivery mechanism.
Mirantis has tested MOS against a very specific
configuration and can guarantee a predictable behavior of the product only
in the exact same environments. The table below includes the major
MOS components with the exact versions against which
testing has been performed.
Due to limitations in the Octavia and MOS integration,
the clusters where Neutron is deployed in the Distributed Virtual Router
(DVR) mode are not stable. Therefore, Mirantis does not recommend such
configuration for production deployments.
[6912] Octavia load balancers may not work properly with DVR¶
Limitation
When Neutron is deployed in the DVR mode, Octavia load balancers may not work
correctly. The symptoms include both failure to properly balance traffic and
failure to perform an amphora failover. For details, see DVR incompatibility with ARP announcements and VRRP.
[8573] External authentication to Horizon fails to log in a different user¶
Target fix version: next MOS update
Horizon retains the user’s credentials following their initial login using
External Authentication Service, and does not allow to log in with another
user credentials.
Workaround:
Clear cookies in your browser.
Select External Authentication Service on the Horizon login
page.
Click Sign In. The Keycloak login page opens.
If the following error occurs, refresh the page and try again:
CSRF token missing or incorrect. Cookies may be turned off.Make sure cookies are enabled and try again.
Tungsten Fabric does not provide the following functionality:
Automatic generation of network port records in DNSaaS
(Designate) as Neutron with Tungsten Fabric as a backend
is not integrated with DNSaaS. As a workaround, you can use
the Tungsten Fabric built-in DNS service that enables virtual
machines to resolve each other names.
Secret management (Barbican). You cannot use the certificates
stored in Barbican to terminate HTTPs in a load balancer.
Role Based Access Control (RBAC) for Neutron objects.
The HAProxy service, which is used as a backend for load balancers in
Tungsten Fabric, uses non-existing socket files from the log collection
service. This error in the configuration causes the logging of error
messages on attempts to use loggers in contrail-lbaas-haproxy-stdout.log.
The issue does not affect the service operability.
[10096] tf-control service does not refresh IP addresses of Cassandra pods¶
The tf-control service resolves the DNS names of Cassandra pods at startup
and does not update them if Cassandra pods got new IP addresses, for example,
in case of a restart. As a workaround, to refresh the IP addresses of
Cassandra pods, restart the tf-control pods one by one:
Caution
Before restarting the tf-control pods:
Verify that the new pods are successfully spawned.
Verify that no vRouters are connected to only one tf-control
pod that will be restarted.
Considering continuous reorganization and enhancement of Mirantis OpenStack
for Kubernetes (MOSK), certain components are deprecated
and eventually removed from the product. This section provides the following
details about the deprecated and removed functionality that may potentially
impact existing MOSK deployments:
The MOSK release version in which deprecation is announced
The final MOSK release version in which a deprecated
component is present
The MOSK release version in which a deprecated component
is removed
Instead of v1alpha1, MOSK introduces support for the
API v2 for the Tungsten Fabric Operator. The new version of the Tungsten
Fabric Operator API aligns with the OpenStack Controller API and
provides better interface for advanced configurations.
In MOSK 24.1, the API v2 is available only for the
new product deployments with Tungsten Fabric.
Since 24.2, MOSK API v2 becomes default for new product
deployments and includes the ability to convert existing v1alpha1
TFOperator to v2 during update. For details, refer to
Convert v1alpha1 TFOperator custom resource to v2.
During the update to the 24.3 series, the old Tungsten Fabric cluster
configuration API v1alpha1 is automatically converted and replaced
with the v2 version.
Deprecated the SubnetPool object along with automated subnet creation
using SubnetPool.
Existing configurations that use the SubnetPool object in L2Template
will be automatically migrated to Subnet objects during cluster update
to MOSK 24.2. As a result of migration, existing
Subnet objects will be referenced in L2Template objects
instead of SubnetPool.
If you still require this feature, contact Mirantis support for further
information.
Tungsten Fabric analytics services, primarily designed for collecting
various metrics from the Tungsten Fabric services, is being deprecated.
Despite its initial implementation, user demand for this feature has
been minimal. As a result, Tungsten Fabric analytics services will
become unsupported in the product.
All greenfield deployments starting from MOSK 24.1
do not include Tungsten Fabric analytics services. The existing
deployments updated to 24.1 and newer versions will include Tungsten
Fabric analytics services as well as the ability to disable them as
described in Disable Tungsten Fabric analytics services.
The StackLight telegraf-openstack plugin is going to be replaced
by osdpl-exporter. As a result, all valuable Telegraf metrics that
are used by StackLight components will be reimplemented in
osdpl-exporter and all dependent StackLight alerts and dashboards
will start using new metrics.
Therefore, if you use any telegraf-openstack metrics in any cluster
customizations, consider reimplementing them with new metrics.
To obtain the list of metrics that are removed and replaced with new
ones, contact Mirantis support.
Disabled creation of the default L2 template for a namespace.
On existing clusters, clusterRef:default is removed during the
migration process. Subsequently, this parameter is not substituted with
the cluster.sigs.k8s.io/cluster-name label, ensuring the application
of the L2 template across the entire Kubernetes namespace. Therefore,
you can continue using existing default L2 templates for
namespaces.
A number of fields intended to store confidential settings in the
OpenStackDeployment custom resource has been deprecated in favor
of osdplsecret-cr.
The latter is a dedicated data structure to aggregate
such secrets as SSL/TLS certificates, external systems
access credentials, and others.
The list of deprecated parameters includes features:ssl,
features:barbican:backends:vault:approle_role_id, and
features:barbican:backends:vault:approle_secret_id.
The tf-status service duplicated the health-check information about
the Tungsten Fabric services that you can also obtain from the
liveness and readiness probes on the Tungsten Fabric pods.
Additionally, MOSK 21.5 introduces an overall
health status in the Tungsten Fabric Operator CR status with health
status for every module of Tungsten Fabric. To get the overall cluster
status, verify the output of
kubectl-ntfdescribetfoperators<TFOPERATOR-CR-NAME>.
The status element in the OpenStackDeployment (OsDpl) custom
resource has been removed from the product in favor of the
OpenStackDeploymentStatus (OsDplSt) custom resource, a single data
structure that provides a machine-readable status of an OpenStack
deployment at a certain point in time.
Configuring CPU isolation through the isolcpus configuration
parameter for Linux kernel is considered deprecated.
MOSK 21.5 introduces the capability to configure CPU
isolation using the cpusets mechanism in Linux kernel. For details,
see CPU isolation using cpusets.
Mirantis aims to release Mirantis OpenStack for Kubernetes (MOSK)
software regularly and often.
MOSK software includes OpenStack, Tungsten Fabric,
life-cycle management tooling, other supporting software, and dependencies.
Mirantis’s goal is to ensure that such updates are easy to install in
zero-touch and zero-downtime fashion.
MOSK release cadence consists of major, for example,
MOSK 24.1, and patch, for example, MOSK
24.1.1 or 24.1.2, releases. The major release with the patch releases based
on it are called a release series, for example, MOSK 24.1
series.
Both major and patch release versions incorporate solutions for security
vulnerabilities and known product issues. The primary distinction between
these two release types lies in the fact that major release versions
introduce new functionalities, whereas patch release versions predominantly
offer minor product enhancements.
Patch releases strive to considerably reduce the timeframe for delivering
CVE resolutions in images to your deployments, aiding in the mitigation
of cyber threats and data breaches.
Content
Major release
Patch release
Version update and upgrade of the major product components including
but not limited to OpenStack, Tungsten Fabric, Kubernetes, Ceph, and
Stacklight 0
Container runtime changes including Mirantis Container Runtime and
containerd updates
Changes in public API
Changes in the Container Cloud and MOSK lifecycle management including
but not limited to machines, clusters, Ceph OSDs
Host machine changes including host operating system and kernel updates
Patch version bumps of MKE and Kubernetes
Fixes for Common Vulnerabilities and Exposures (CVE) in images
StackLight subcomponents may be updated during patch releases
Most patch release versions involve minor changes that only require restarting
containers on the cluster during updates. However, the product can also deliver
CVE fixes on Ubuntu, which includes updating the minor version of the Ubuntu
kernel. This kernel update is not mandatory, but if you prioritize getting
the latest CVE fixes for Ubuntu, you can manually reboot machines during
a convenient maintenance window to update the kernel.
Each subsequent major release includes patch release updates of the previous
major release.
You may decide to update between only major releases without updating to patch
releases. In this case, you will perform updates from an N to N+1 major
release. However, Mirantis recommends applying security fixes using patch
releases as soon as they become available.
Starting from MOSK 24.1.5, Mirantis introduces a new
update scheme allowing for the update path flexibility.
The user cannot update to the intermediate patch version in the series
if a newer patch version has been released.
The user can update to any patch version in the series even if a newer
patch version has been released already.
If the cluster starts receiving patch releases, the user must apply the
latest patch version in the series to be able to update to the following
major release.
The user can always update to the newer major version from the latest
patch version of the previous series. Additionally, there will be
another possibility of major update during the course of the patch
series from the patch version released immediately before the target
major version. Refer to Update path for 24.1, 24.2, and 24.3 series for the update
possibility illustration.
Mirantis provides Long Term Support (LTS) for specific versions of OpenStack.
LTS includes scheduled updates with new functionality, bug and security fixes.
Mirantis intends to introduce support for new OpenStack version once a year.
The LTS duration of an OpenStack version is two years.
The diagram below illustrates the current LTS support cycle for OpenStack.
The upstream versions not mentioned in the diagram are not supported in the
product as well as the upgrade paths from or to such versions.
Important
MOSK supports the OpenStack Victoria version until
September, 2023. MOSK 23.2 is the last release version
where OpenStack Victoria packages are updated.
If you have not already upgraded your OpenStack version to Yoga, Mirantis
highly recommends doing this during the course of the MOSK
23.2 series.
Untitled Diagram
Versions of Tungsten Fabric, underlying Kubernetes, Ceph, StackLight, and other
supporting software and dependencies may change at Mirantis discretion. Follow
Release Compatibility Matrix and product Release Notes for any changes in
product component versions.
A Technology Preview feature provides early access to upcoming product
innovations, allowing customers to experiment with the functionality and
provide feedback.
Technology Preview features may be privately or publicly available but
neither are intended for production use. While Mirantis will provide
assistance with such features through official channels, normal Service
Level Agreements do not apply.
As Mirantis considers making future iterations of Technology Preview features
generally available, we will do our best to resolve any issues that customers
experience when using these features.
During the development of a Technology Preview feature, additional components
may become available to the public for evaluation. Mirantis cannot guarantee
the stability of such features. As a result, if you are using Technology
Preview features, you may not be able to seamlessly update to subsequent
product releases, as well as upgrade or migrate to the functionality that
has not been announced as full support yet.
Mirantis makes no guarantees that Technology Preview features will graduate
to generally available features.
The Release Compatibility Matrix describes the cloud configurations that have
been supported by the product over the course of its lifetime and the path a
MOSK cloud can take to move from an older configuration
to a newer one.
For each MOSK release, the document outlines the versions
of the product major components, the valid combinations of these versions,
and the way every component must be updated or upgraded.
For a more comprehensive list of the product subcomponents and their
respective versions included in each MOSK release, refer to
Release Notes, or use the Releases section in the Container
Cloud UI or API.
The following table outlines the compatibility matrix of the most recent
MOSK releases and their major components in conjunction
with Container Cloud and Cluster releases.
The product support status reflects the freshness of
a MOSK cluster and should be considered when planning
the cluster update path:
Supported
Latest supported product release version to use for a greenfield
cluster deployment and to update to.
Deprecated
Product release version that you should update to the latest supported
product release. You cannot update between two deprecated release
versions.
The deprecated product release version becomes unsupported when newer
product versions are released. Therefore, when planning the update path
for the cluster, consider the dates of the upcoming product releases.
Greenfield deployments based on a deprecated product release are not
supported. Use the latest supported release version for initial
deployments instead.
Unsupported
Product release that blocks automatic upgrade of a management cluster
and must be updated immediately to resume receiving newest product
features and enhancements.
Mirantis Container Cloud will update itself automatically as long as
the release of each managed cluster has either supported or
deprecated status in the new version of Container Cloud.
A deprecated cluster release becomes unsupported in one of
the following Container Cloud releases. Therefore, we strongly
recommend that you update your deprecated MOSK
clusters to the latest supported version as described in
Cluster components update paths.
The kernel version of the host operating system validated by Mirantis
and confirmed to be working for the supported use cases. Usage of
custom kernel versions or third-party vendor-provided kernels, such
as FIPS-enabled, assume full responsibility for validating the
compatibility of components in such environments.
Management cluster update is performed automatically as long as
the release of each managed cluster has either supported or
deprecated status in the new version of Container Cloud.
In case, any of the clusters managed by Container Cloud is about
to get an unsupported status as a result of an update, the Container
Cloud updates will get blocked till the cluster gets to a later release.
Major cluster update is initiated by a cloud operator through the Container
Cloud UI. The update procedure is automated and covers all the life cycle
management modules of the cluster that include OpenStack, Tungsten Fabric,
Ceph, and StackLight. See Cluster update for details.
Version-specific considerations
Before the MOSK 24.1 series, if between the major
releases you apply at least one patch release belonging to the N series,
you should obtain the last patch release in the series to be able
to update to the N+1 major release version.
Patch cluster update is initiated by a cloud operator through the Container
Cloud UI. The update procedure is automated and covers all the life cycle
management modules of the cluster that include OpenStack, Tungsten Fabric,
Ceph, and StackLight. See Update to a patch version for details.