Skip to content

Commit a14b89c

Browse files
committed
controller: start and configure serial proxy
In order to have support for `openstack console url show <vm> --serial` we have to enable the serial proxy. On-behalf-of: SAP stefan.kober@sap.com
1 parent 780f14a commit a14b89c

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

modules/controller/nova.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ let
5050
username = nova
5151
password = nova
5252
53+
[serial_console]
54+
enabled = true
55+
5356
[vnc]
5457
enabled = true
5558
server_listen = $my_ip
@@ -299,5 +302,30 @@ in
299302
TimeoutStopSec = 15;
300303
};
301304
};
305+
306+
systemd.services.nova-serialproxy = {
307+
description = "OpenStack Nova serial proxy";
308+
after = [
309+
"nova.service"
310+
"mysql.service"
311+
"keystone.service"
312+
"rabbitmq.service"
313+
"network-online.target"
314+
];
315+
wants = [ "network-online.target" ];
316+
wantedBy = [ "multi-user.target" ];
317+
path = [ cfg.novaPackage ];
318+
serviceConfig = {
319+
User = "nova";
320+
Group = "nova";
321+
Type = "simple";
322+
ExecStart = pkgs.writeShellScript "nova-serialproxy.sh" ''
323+
nova-serialproxy --config-file ${cfg.config}
324+
'';
325+
Restart = "on-failure";
326+
LimitNOFILE = 65535;
327+
TimeoutStopSec = 15;
328+
};
329+
};
302330
};
303331
}

0 commit comments

Comments
 (0)