Skip to content

Commit fe3c83c

Browse files
committed
Add nova_compute_init container
Signed-off-by: Brendan Shephard <[email protected]>
1 parent 9d30da2 commit fe3c83c

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

bootc/embedded-services/quadlets/nova_compute/nova_compute.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,40 @@ metadata:
88
app: novacompute
99
name: novacompute
1010
spec:
11+
initContainers:
12+
- args:
13+
- bash
14+
- -c
15+
- $*
16+
- --
17+
- eval
18+
- python3
19+
- /sbin/nova_statedir_ownership.py
20+
- '|'
21+
- logger
22+
- -t
23+
- nova_compute_init
24+
env:
25+
- name: NOVA_STATEDIR_OWNERSHIP_SKIP
26+
value: /var/lib/nova/compute_id
27+
- name: __OS_DEBUG
28+
value: "False"
29+
image: quay.io/podified-antelope-centos9/openstack-nova-compute:current-podified
30+
name: novacomputeinit
31+
securityContext:
32+
runAsGroup: 0
33+
runAsUser: 0
34+
seLinuxOptions:
35+
type: spc_t
36+
volumeMounts:
37+
- mountPath: /var/lib/_nova_secontext
38+
name: var-lib-_nova_secontext-host-0
39+
- mountPath: /sbin/nova_statedir_ownership.py
40+
name: var-lib-openstack-config-nova-nova_statedir_ownership.py-host-1
41+
- mountPath: /dev/log
42+
name: dev-log-host-2
43+
- mountPath: /var/lib/nova
44+
name: var-lib-nova-host-3
1145
containers:
1246
- args:
1347
- kolla_start
@@ -62,6 +96,14 @@ spec:
6296
readOnly: true
6397
hostNetwork: true
6498
volumes:
99+
- hostPath:
100+
path: /var/lib/_nova_secontext
101+
type: Directory
102+
name: var-lib-_nova_secontext-host-0
103+
- hostPath:
104+
path: /var/lib/openstack/config/nova/nova_statedir_ownership.py
105+
type: File
106+
name: var-lib-openstack-config-nova-nova_statedir_ownership.py-host-1
65107
- hostPath:
66108
path: /var/lib/iscsi
67109
type: Directory
@@ -126,3 +168,11 @@ spec:
126168
path: /var/lib/openstack/config/ceph
127169
type: Directory
128170
name: var-lib-openstack-config-ceph-host-15
171+
- hostPath:
172+
path: /dev/log
173+
type: File
174+
name: dev-log-host-2
175+
- hostPath:
176+
path: /var/lib/nova
177+
type: Directory
178+
name: var-lib-nova-host-3

0 commit comments

Comments
 (0)