fix: add compute nodes to /etc/hosts, otherwise slurm becomes very unhappy!

This commit is contained in:
Administrator
2025-11-18 12:24:18 +01:00
parent 26f2b16bf9
commit 2634f392ca
4 changed files with 33 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
''
10.255.241.210 slurm-accounting
''

View File

@@ -73,7 +73,7 @@ let
matchConfig.Name = host.iface;
address = [ "${host.address}/24" ];
networkConfig = {
DNSDefaultRoute = true;
# DNSDefaultRoute = true;
};
routes = [
{ Gateway = "172.16.239.1"; }

View File

@@ -50,6 +50,7 @@ let
extraConfig = ''
DNSStubListener=no # conflicts with dnsmasq and kubernetes dns
MulticastDNS=no
LLMNR=no
'';
};
@@ -109,7 +110,7 @@ let
"172.16.239.221"
];
search = [ "rossby.vtn.obx" ];
extraHosts = import ../hosts.nix;
extraHosts = import ./hosts.nix;
firewall.extraCommands = ''
iptables -I INPUT -s 172.16.239.0/24 -j ACCEPT
iptables -I INPUT -s 10.16.239.0/24 -j ACCEPT
@@ -149,11 +150,10 @@ let
enable = true;
client = true;
clusterName = "rossby";
controlMachine = "rossby-manage(172.16.239.221)";
slurmctldHosts = [
"rossby-manage(172.16.239.221)"
];
dbdHost = "slurm-accounting";
# dbdExtraConfig = ''
# DbdAddr=rossby-manage.rossby.vtn.obx
# '';
mungeKey = ../munge.key;
jwtKey = ../jwt_hs256.key;
# slurmKey = ../slurm.key;
@@ -208,8 +208,6 @@ let
fileserver = "rossby-login";
charts = {
acme_email = "acme@oceanbox.io";
# grafana_smtp_user = "utvikling";
# grafana_smtp_password = "S0m3rp0m@de#21!";
};
};
};

27
rossby/hosts.nix Normal file
View File

@@ -0,0 +1,27 @@
''
10.255.241.210 slurmdbd
10.255.241.210 slurm-accounting
172.16.239.221 rossby-manage
172.16.239.222 rossby
172.16.239.111 c0-1
172.16.239.112 c0-2
172.16.239.113 c0-3
172.16.239.114 c0-4
172.16.239.115 c0-5
172.16.239.116 c0-6
172.16.239.117 c0-7
172.16.239.118 c0-8
172.16.239.119 c0-9
172.16.239.120 c0-10
172.16.239.121 c0-11
172.16.239.122 c0-12
172.16.239.123 c0-13
172.16.239.124 c0-14
172.16.239.125 c0-15
172.16.239.126 c0-16
172.16.239.127 c0-17
172.16.239.128 c0-18
172.16.239.129 c0-19
172.16.239.130 c0-20
''