Files
Daniel Farina fcb93202c3 Make setup-vm fail earlier
I saw a case of a nil-expansion of `dns_ipv4` causing this error in code that looks like this:

    r "ip -n #{q_vm} addr replace #{dns_ipv4} dev #{nic.tap}"

And has errors like:

    ---STDERR---
    RTNETLINK answers: Operation not supported
            from /home/rhizome/host/lib/vm_setup.rb:271:in `block in setup_taps_6'
            from /home/rhizome/host/lib/vm_setup.rb:268:in `each'
            from /home/rhizome/host/lib/vm_setup.rb:268:in `setup_taps_6'
            from /home/rhizome/host/lib/vm_setup.rb:96:in `setup_networking'
            from /home/rhizome/host/lib/vm_setup.rb:49:in `block in prep'
    /home/rhizome/common/lib/util.rb:29:in `r': command failed: ip -n vmg1x0hy addr replace  dev nc9g0we9s2 (CommandFail)

While this was probably caused by an old running code image, it seems
like we can check for the existence of obliged fields in `params.json`
as we do all the others, for some reason, a couple got square brackets
rather than `.fetch`.
2024-10-17 01:35:20 -07:00
..
2024-09-12 11:26:45 +02:00
2023-11-10 12:54:43 -08:00
2024-10-17 01:35:20 -07:00