From 04d600c5b0f6f46e85c2a9b05f514a141f56fb31 Mon Sep 17 00:00:00 2001 From: okozachenko Date: Thu, 18 Feb 2021 05:12:03 +0200 Subject: [PATCH] Mount /dev/pts in nova-compute container Nova will check if pty device exist or not under /dev/pts when get console log. If it does not exist, cannot get console log. ref: https://review.opendev.org/c/starlingx/config/+/660268 Change-Id: I2793d1f51c18e81a4271b8b0c50bfe1a2dab8a09 --- nova/Chart.yaml | 2 +- nova/templates/daemonset-compute.yaml | 6 +++++- releasenotes/notes/nova.yaml | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/nova/Chart.yaml b/nova/Chart.yaml index 92e8fa9136..209d3d54dd 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.14 +version: 0.1.15 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/templates/daemonset-compute.yaml b/nova/templates/daemonset-compute.yaml index b9346789d5..fca4e823e2 100644 --- a/nova/templates/daemonset-compute.yaml +++ b/nova/templates/daemonset-compute.yaml @@ -274,6 +274,8 @@ spec: - /tmp/nova-compute.sh terminationMessagePath: /var/log/termination-log volumeMounts: + - name: dev-pts + mountPath: /dev/pts - name: pod-tmp mountPath: /tmp - name: nova-bin @@ -446,7 +448,6 @@ spec: secret: secretName: {{ $configMapName }} defaultMode: 0444 - {{- if .Values.network.ssh.enabled }} - name: nova-ssh secret: @@ -467,6 +468,9 @@ spec: secretName: {{ .Values.ceph_client.user_secret_name }} {{ end }} {{ end }} + - name: dev-pts + hostPath: + path: /dev/pts - name: libmodules hostPath: path: /lib/modules diff --git a/releasenotes/notes/nova.yaml b/releasenotes/notes/nova.yaml index fce9b38c93..3a4dba5dfa 100644 --- a/releasenotes/notes/nova.yaml +++ b/releasenotes/notes/nova.yaml @@ -15,3 +15,4 @@ nova: - 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 + - 0.1.15 Mount /dev/pts in Nova compute container