Skip to content

Instantly share code, notes, and snippets.

View mweinelt's full-sized avatar

Martin Weinelt mweinelt

View GitHub Profile
@mweinelt
mweinelt / network.nix
Last active August 30, 2023 17:31
NixOS 22.11 Router on VDSL with IPv6 Prefix Delegation, ULA addressing, VLANs on top of Bonding.
{ lib, ... }:
{
# Enable forwarding between all interfaces, restrictions between
# individual links are enforced by firewalling.
boot.kernel.sysctl = {
"net.ipv6.conf.all.forwarding" = lib.mkForce 1;
"net.ipv4.forward" = lib.mkForce 1;
};
systemd.network.config = {
This file has been truncated, but you can view the full file.
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
pecan> ____________ TestJsonifySQLAlchemyGenericEncoder.test_result_proxy _____________
pecan>
pecan> self = <pecan.tests.test_jsonify.TestJsonifySQLAlchemyGenericEncoder testMethod=test_result_proxy>
pecan>
pecan> def setUp(self):
pecan> super(TestJsonifySQLAlchemyGenericEncoder, self).setUp()
pecan> if not create_engine:
pecan> self.create_fake_proxies()
pecan> else:
pecan> > self.create_sa_proxies()
umap-learn> ============================= test session starts ==============================
umap-learn> platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0
umap-learn> rootdir: /build/source
umap-learn> collecting ... 2023-01-28 22:09:52.880147: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE3 SSE4.1 SSE4.2 AVX
umap-learn> To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
umap-learn> collected 199 items / 4 deselected / 195 selected
umap-learn>
umap-learn> umap/tests/test_aligned_umap.py ... [ 1%]
umap-learn> umap/tests/test_chunked_parallel_spatial_metric.py sssssssssssssssssssss [ 12%]
umap-learn> sssssssssssssssssssss [ 23%]
Machine state will be reset. To keep it, pass --keep-vm-state
start all VLans
start vlan
running vlan (pid 5; ctl /build/vde1.ctl)
(finished: start all VLans, in 0.00 seconds)
run the VM test script
additionally exposed symbols:
acme, client, dnsserver, webserver,
vlan1,
start_all, test_script, machines, vlans, driver, log, os, create_machine, subtest, run_tests, join_all, retry, serial_stdout_off, serial_stdout_on, polling_condition, Machine
pynndescent> ============================= test session starts ==============================
pynndescent> platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0
pynndescent> rootdir: /build/pynndescent-0.5.8
pynndescent> collected 143 items / 4 deselected / 139 selected
pynndescent>
pynndescent> pynndescent/tests/test_distances.py ..................FFFFFFFFF......... [ 25%]
pynndescent> ......... [ 32%]
pynndescent> pynndescent/tests/test_pynndescent_.py ................................. [ 56%]
pynndescent> ........................ [ 73%]
pynndescent> pynndescent/tests/test_rank.py ..................................... [100%]
2022-12-07 15:23:48,037 p=3957495 u=hexa n=ansible | PLAY [Depoly the system configuration section to JunOS devices] *****************************************************************************************************************************
2022-12-07 15:23:48,055 p=3957495 u=hexa n=ansible | TASK [Get JunOS facts] **********************************************************************************************************************************************************************
2022-12-07 15:23:48,055 p=3957495 u=hexa n=ansible | Mittwoch 07 Dezember 2022 15:23:48 +0100 (0:00:00.019) 0:00:00.019 *****
2022-12-07 15:23:48,510 p=3957529 u=hexa n=ansible | jsonrpc request: b'{"jsonrpc": "2.0", "method": "pop_messages", "id": "df7a7670-7a57-4cd1-9901-91ab411b6ee4", "params": [[], {}]}'
2022-12-07 15:23:48,510 p=3957529 u=hexa n=ansible | jsonrpc response: {"jsonrpc": "2.0", "id": "df7a7670-7a57-4cd1-9901-91ab411b6ee4", "result_type": "pickle", "result": "(lp0\n(Vvvvv\np1\nVloaded netconf plugin ansible_
vm-test-run-systemd-networkd-ipv6-prefix-delegation> router: waiting for unit network-online.target
vm-test-run-systemd-networkd-ipv6-prefix-delegation> isp # [ 7.755453] kea-dhcp6[606]: 2022-10-09 22:41:12.803 DEBUG [kea-dhcp6.dhcp6/606.140684764022656] DHCP6_START_INFO pid: 606, server port: 547, client port: 0, verbose: yes
vm-test-run-systemd-networkd-ipv6-prefix-delegation> isp # [ 7.757878] kea-dhcp6[606]: 2022-10-09 22:41:12.806 INFO [kea-dhcp6.dhcp6/606.140684764022656] DHCP6_STARTING Kea DHCPv6 server version 2.2.0 (stable) starting
vm-test-run-systemd-networkd-ipv6-prefix-delegation> isp # [ 7.758922] kea-dhcp6[606]: 2022-10-09 22:41:12.807 DEBUG [kea-dhcp6.dhcp6/606.140684764022656] DHCP6_OPEN_SOCKET opening service sockets on port 547
vm-test-run-systemd-networkd-ipv6-prefix-delegation> isp # [ 7.761051] kea-dhcp6[606]: 2022-10-09 22:41:12.809 DEBUG [kea-dhcp6.commands/606.140684764022656] COMMAND_REGISTERED Command list-commands registered
vm-test-run-systemd-networkd-ipv6-prefix-del
copying path '/nix/store/gn1wh1daww309az7fx3mca7103z4a0j9-gnu-config-2021-01-25' from 'https://cache.nixos.org'...
copying path '/nix/store/6xxvyxvg15c985g5gggx8j8y956fb3zr-expand-response-params' from 'https://cache.nixos.org'...
copying path '/nix/store/i5hwxh7w24y2famcilg4s3q8kfhwrsbk-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/l0imvlh4pnk785a2w02nhb3x88k4yr1g-bootstrap-stage3-gcc-wrapper-' from 'https://cache.nixos.org'...
copying path '/nix/store/l8glfv69j4v9i3hhii9z2mx7d05qmi3l-bootstrap-stage3-stdenv-linux' from 'https://cache.nixos.org'...
unpacking sources
unpacking source archive /nix/store/pvpl24gpvid20mqzps1h1misjd09n3ly-libxcrypt-4.4.28.tar.xz
source root is libxcrypt-4.4.28
setting SOURCE_DATE_EPOCH to timestamp 1643754749 of file libxcrypt-4.4.28/build-aux/m4-autogen/test-driver
patching sources
@mweinelt
mweinelt / run-aarch64.sh
Last active October 1, 2022 01:52
NixOS Installer Testing via QEMU aarch64 emulation
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p qemu_full virt-viewer
# shellcheck shell=bash
set -euo pipefail
BASEDIR=$(dirname "$0")
VMNAME=nixos-aarch64
ISO="${BASEDIR}/$1"