feature: zone aware control plane unit placement

Bug #2028257 reported by Aymen Frikha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Snap
Triaged
Wishlist
Unassigned

Bug Description

It seems that AZ awareness is not supported at the moment. Here is some output for trying to make it happen:

- Via juju, we are not able to put an openstack service on a specific node. There is a key word that we can use called "placement", but it should be set in a k8s bundle: https://juju.is/docs/sdk/kubernetes-vs-non-kubernetes-bundles#heading--kubernetes-bundles

- I was able to place service units in different nodes based on their zones following those steps:

1. Add an antiaffinity rule in the statefulset of the service: https://paste.ubuntu.com/p/xqx5fk73Vq/
2. add a zone label for each worker in microk8s: sudo kubectl label nodes node09 zone=3
3. The problem is if I remove a zone from a worker, ipods still always get assigned to that worker.

Revision history for this message
James Page (james-page) wrote :

I think there are a few pieces that need to fall into place to enable this as an automatic feature.

a) we need to add support for MAAS, which can model the zones in the DC
b) the new microk8s charm needs to be made zone aware so that it can consume this information
c) really Juju + K8S needs to model unit anti{-affinity} otherwise we're always going to be patching K8S service definitions (which from our patching of ClusterIP->LoadBalancer we know is error prone).

I think zone aware placement of units is a useful feature; we're just a way off it yet.

summary: - Openstack control plane service placement
+ feature: zone aware control plane unit placement
Changed in snap-openstack:
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.