File tree Expand file tree Collapse file tree 6 files changed +26
-5
lines changed Expand file tree Collapse file tree 6 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 21
21
sudo systemctl stop ${SERVICE}
22
22
done
23
23
24
- sudo systemctl stop nova-scheduler nova-conductor
24
+ sudo systemctl stop nova-scheduler nova-conductor nova-novncproxy
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
- apt-get -y install libvirt-dev
5
+ apt-get -y install \
6
+ libvirt-dev \
7
+ novnc
Original file line number Diff line number Diff line change @@ -287,5 +287,22 @@ WorkingDirectory=/var/lib/nova
287
287
WantedBy=multi-user.target
288
288
EOF
289
289
290
+ sudo tee /lib/systemd/system/nova-novncproxy.service << EOF
291
+ [Unit]
292
+ Description=Openstack Compute Controller No VNC Proxy
293
+ After=network.target
294
+
295
+ [Service]
296
+ Environment=REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
297
+ NetworkNamespacePath=/run/netns/os-ctrl
298
+ ExecStart=/var/lib/nova/venv/bin/nova-novncproxy
299
+ User=nova
300
+ Group=nova
301
+ WorkingDirectory=/var/lib/nova
302
+
303
+ [Install]
304
+ WantedBy=multi-user.target
305
+ EOF
306
+
290
307
sudo systemctl daemon-reload
291
- sudo systemctl restart nova-scheduler nova-conductor
308
+ sudo systemctl restart nova-scheduler nova-conductor nova-novncproxy
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ set -euo pipefail
4
4
5
5
sudo systemctl stop nova-scheduler || true
6
6
sudo systemctl stop nova-conductor || true
7
- sudo rm -f /lib/systemd/system/nova-scheduler.service /lib/systemd/system/nova-conductor.service
7
+ sudo systemctl stop nova-novncproxy || true
8
+ sudo rm -f /lib/systemd/system/nova-{scheduler,conductor,novncproxy}.service
8
9
sudo systemctl daemon-reload
9
10
10
11
sudo systemctl stop os-fwd-${SERVICE} nginx-ctrl uwsgi-${SERVICE} || true
Original file line number Diff line number Diff line change 7
7
set -euo pipefail
8
8
fi
9
9
10
- sudo systemctl restart nova-scheduler nova-conductor
10
+ sudo systemctl restart nova-scheduler nova-conductor nova-novncproxy
11
11
for SERVICE_PATH in /lib/systemd/system/uwsgi-*
12
12
do
13
13
SERVICE=$( basename ${SERVICE_PATH} )
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ sudo systemctl status \
20
20
uwsgi-nova \
21
21
nova-scheduler \
22
22
nova-conductor \
23
+ nova-novncproxy \
23
24
memcached \
24
25
rabbitmq-server \
25
26
zookeeper \
You can’t perform that action at this time.
0 commit comments