Skip to content

Commit ebb3940

Browse files
committed
add nova-novncproxy to controller
1 parent 98c0180 commit ebb3940

File tree

6 files changed

+26
-5
lines changed

6 files changed

+26
-5
lines changed

src/core-switch/scripts/openstack/yoga/down.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ do
2121
sudo systemctl stop ${SERVICE}
2222
done
2323

24-
sudo systemctl stop nova-scheduler nova-conductor
24+
sudo systemctl stop nova-scheduler nova-conductor nova-novncproxy

src/core-switch/scripts/openstack/yoga/nodes/controller/dependencies/compute.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
set -euo pipefail
44

5-
apt-get -y install libvirt-dev
5+
apt-get -y install \
6+
libvirt-dev \
7+
novnc

src/core-switch/scripts/openstack/yoga/nodes/controller/deploy/compute.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,5 +287,22 @@ WorkingDirectory=/var/lib/nova
287287
WantedBy=multi-user.target
288288
EOF
289289

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+
290307
sudo systemctl daemon-reload
291-
sudo systemctl restart nova-scheduler nova-conductor
308+
sudo systemctl restart nova-scheduler nova-conductor nova-novncproxy

src/core-switch/scripts/openstack/yoga/nodes/controller/reset/compute.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ set -euo pipefail
44

55
sudo systemctl stop nova-scheduler || true
66
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
89
sudo systemctl daemon-reload
910

1011
sudo systemctl stop os-fwd-${SERVICE} nginx-ctrl uwsgi-${SERVICE} || true

src/core-switch/scripts/openstack/yoga/up.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ else
77
set -euo pipefail
88
fi
99

10-
sudo systemctl restart nova-scheduler nova-conductor
10+
sudo systemctl restart nova-scheduler nova-conductor nova-novncproxy
1111
for SERVICE_PATH in /lib/systemd/system/uwsgi-*
1212
do
1313
SERVICE=$(basename ${SERVICE_PATH})

src/core-switch/scripts/status.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ sudo systemctl status \
2020
uwsgi-nova \
2121
nova-scheduler \
2222
nova-conductor \
23+
nova-novncproxy \
2324
memcached \
2425
rabbitmq-server \
2526
zookeeper \

0 commit comments

Comments
 (0)