To fix bugs and ensure the security of a Yaook environment we need to update the environment regularly. Updates come in 2 variants:
Software/Package updates to fix issues and vulnerabilities
OpenStack and Kubernetes upgrades to stay on top of new and supported releases
Software Updates for the OS / Kubernetes
System packages, Kernels and Kubernetes minor versions are baked directly into the base OS image that is deployed on each node. When an update for the base image is available, we rebuild each node of the Kubernetes cluster one at a time. To do this without downtime we rely on live-migration and Kubernetes native failovers.
The following update process is orchestrated by the !TBD! Controller:
mark the node as required for evacuation
live-migrate any existing VMs away from this node (if applicable)
migrate any l3 and dhcp agents away from this node (if applicable)
possibly migrate ceph data away from this node (if applicable)
drain the node using k8s native methods
delete the node from k8s (at this point all ConfiguredDaemonSets will become updated to remove this node)
shutdown the server
run a normal deploy workflow for this server
Software Updates for Container images
Whenever a software or its dependency in a container image changes, a new container image is built. This causes an update to the spec of Deployments and ConfiguredDaemonSets which will restart the Pods according to the specified limitations.
Docker images are versioned using Semantic Versioning. The Operator is using a
yaook/assets/pinned_version.yml file in it’s root directory to determine the version of a image to use.
To generate this file (or if it’s not present) the Operator queries the Docker image repository to determine all availabile versions, sorts them and filters for specific requirements.
Afterwards the latest image is selected for usage.
To support multiple versions of openstack all openstack services have a
In this field you can specify the release of this openstack service you would like to use (e.g.
In order to upgrade to a new openstack release ensure that your service has rolled out successfully (so that it is in the
Afterwards you can change the
.spec.targetRelease of your service.
If the service is capable of non-disruptive upgrades this method will be used.
Otherwise the upgrade process might cause disruptions.
You can only upgrade a single version at a time. Jumping over releases is not supported.
The upgrade is finished once the service is again in the
If at any point you want to view the openstack version currently rolled out at the service you can check
This field will always point to the last release that has completed a full rollout.
So during normal operation it will be the same as
During upgrades it will show the version you are upgrading from.
For documentation on how the upgrade procedure is implemented please view Openstack Upgrades.