From aa5e622b47ed04cfc6ac0561f151f61e0accac44 Mon Sep 17 00:00:00 2001 From: jinyuanliu Date: Sat, 27 Feb 2021 09:29:37 +0800 Subject: [PATCH] BUG for deploying multiple compute nodes When Deployment of compute nodes is not on all nodes (e.g.Total 5 nodes,but 3 compute nodes),The original method counts all nodes instead of compute nodes,This can result in less than 100% and the process will get stuck,this is a bug! Change-Id: I39c5d2014146925afe7fd896123a705c19005ff9 --- nova/Chart.yaml | 2 +- nova/values.yaml | 2 +- releasenotes/notes/nova.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nova/Chart.yaml b/nova/Chart.yaml index a1c970ebce..92e8fa9136 100644 --- a/nova/Chart.yaml +++ b/nova/Chart.yaml @@ -14,7 +14,7 @@ apiVersion: v1 appVersion: v1.0.0 description: OpenStack-Helm Nova name: nova -version: 0.1.13 +version: 0.1.14 home: https://docs.openstack.org/nova/latest/ icon: https://www.openstack.org/themes/openstack/images/project-mascots/Nova/OpenStack_Project_Nova_vertical.png sources: diff --git a/nova/values.yaml b/nova/values.yaml index 692d38155f..63d6394f60 100644 --- a/nova/values.yaml +++ b/nova/values.yaml @@ -161,7 +161,7 @@ bootstrap: scripts: init_script: | # This runs in a bootstrap init container. It counts the number of compute nodes. - COMPUTE_NODES=$(kubectl get nodes -o custom-columns=NAME:.metadata.name --no-headers | sort) + COMPUTE_NODES=$(kubectl get nodes -o custom-columns=NAME:.metadata.name -l openstack-compute-node=enabled --no-headers | sort) /bin/echo $COMPUTE_NODES > /tmp/compute_nodes.txt wait_script: | # This script runs in the main bootstrap container just before the diff --git a/releasenotes/notes/nova.yaml b/releasenotes/notes/nova.yaml index 3cc921c24c..fce9b38c93 100644 --- a/releasenotes/notes/nova.yaml +++ b/releasenotes/notes/nova.yaml @@ -14,3 +14,4 @@ nova: - 0.1.11 Secure libvirt connection from using 127.0.0.1 to use unix socket - 0.1.12 Update RBAC apiVersion from /v1beta1 to /v1 - 0.1.13 Change Issuer to ClusterIssuer + - 0.1.14 BUG for deploying multiple compute nodes