clustervision / trinityX

TrinityX is the new generation of ClusterVision's open-source HPC, A/I and cloudbursting platform. It is designed from the ground up to provide all services required in a modern HPC and A/I system, and to allow full customization of the installation.
GNU General Public License v3.0
64 stars 37 forks source link

Network DNS setting #409

Closed msteggink closed 6 months ago

msteggink commented 6 months ago

a.b.c.d is not overriding 10.141.255.254 (defaults)

luna cluster
+---------------------------------------------------------------------------------+
|                               Cluster => mycluster                              |
+---------------------+-----------------------------------------------------------+
| nameserver_ip       | 10.141.255.254                                            |

Network:

 luna network show cluster
+------------------------------------+
|         Network => cluster         |
+--------------------+---------------+
| name               | cluster       |
| type               | ethernet      |
| zone               | internal      |
|                    |               |
| nameserver_ip      | a.b.c.d   |

RHEL9:

 cat  /etc/NetworkManager/system-connections/Connection_eth0.nmconnection
[connection]
id=Connection_eth0
type=ethernet
interface-name=eth0
autoconnect=true
zone=trusted

[proxy]

[ipv4]
dns=10.141.255.254

Ubu 24:

cat 99_config.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
[...]
      nameservers:
        # ns_ipv4_eth0
          search: [cluster,ib,ipmi]
          addresses: [10.141.255.254]
        # ns_ipv6_eth0
aphmschonewille commented 6 months ago

solved in template by trying interface dependent nameserver config first, then falling back to cluster nameserver:

for BOOTIF: config_dns "${LUNA_BOOTIF}" "{{ DOMAIN_SEARCH }}" "{{ LUNA_INTERFACES[interface]['nameserver_ip'] or NAME_SERVER }}"

will be made available in stable release for luna daemon within a few days.

aphmschonewille commented 5 months ago

Solved again in a slightly different way. this one also covers for defaults for BOOTIF when there is nothing configured. Failsafes.