You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.match(lxcHelper,/cleanup_incomplete_create[\s\S]*rm-rf--"\$LXC_PATH\/\$name"[\s\S]*created=1[\s\S]*lxc-create/,"a failed create removes only its validated partial container directory");
202
202
assert.match(lxcHelper,/wait_for_guest_network[\s\S]*10\\\.0\\\.3\\\.[\s\S]*via10\\\.0\\\.3\\\.1deveth0/,"fresh LXC provisioning waits for its DHCP address and default route");
203
-
assert.match(lxcHelper,/archive\.ubuntu\.com[\s\S]*security\.ubuntu\.com/,"fresh LXC provisioning proves DNS before package bootstrap");
204
-
assert.match(lxcHelper,/start"\$name"[\s\S]*wait_for_guest_network"\$name"[\s\S]*apt-getupdate-oAPT::Update::Error-Mode=any/,"package bootstrap begins only after bounded guest-network readiness");
203
+
assert.match(lxcHelper,/archive\.ubuntu\.com[\s\S]*security\.ubuntu\.com[\s\S]*curl-4[\s\S]*InRelease/,"fresh LXC provisioning proves DNS and outbound IPv4 HTTP before package bootstrap");
204
+
assert.match(lxcHelper,/start"\$name"[\s\S]*wait_for_guest_network"\$name"[\s\S]*apt-getupdate-oAcquire::ForceIPv4=true-oAPT::Update::Error-Mode=any/,"package bootstrap begins only after bounded guest-network readiness");
205
205
assert.match(lxcHelper,/cpuset\.cpus\.effective/,"LXC CPU limits are selected from the service's actually delegated host CPUs");
206
206
assert.match(lxcHelper,/cpu_count/,"LXC inspection counts noncontiguous delegated CPU lists correctly");
207
207
assert.match(lxcNetwork,/1helm-lxc-net-owned/,"the bridge wrapper stops only a bridge it started");
assert.match(lxcNetwork,/1helm-lxc-net-rules-owned[\s\S]*ONEHELM_LXC_INPUT[\s\S]*ONEHELM_LXC_FORWARD[\s\S]*iptables-w-IINPUT1[\s\S]*iptables-w-IFORWARD1[\s\S]*tableiponehelm_lxc[\s\S]*masquerade/,"an adopted bridge receives owned filter jumps ahead of host drop policies plus removable outbound NAT");
209
209
assert.match(lxcNetwork,/DNSMASQ_LEASE="\$DNSMASQ_STATE\/misc\/dnsmasq\.lxcbr0\.leases"[\s\S]*lease_state_writable[\s\S]*mktemp[\s\S]*bridge_dns_healthy/,"runtime health proves the exact private dnsmasq lease tree is writable from its current mount namespace");
210
210
assert.match(lxcNetwork,/start_bridge_dns[\s\S]*dnsmasq[\s\S]*--dhcp-leasefile="\$DNSMASQ_LEASE"/,"1Helm starts its private DHCP server directly instead of inheriting the distro helper's system-wide lease path");
211
211
assert.match(lxcNetwork,/--dhcp-range[\s\S]*10\.0\.3\.2,10\.0\.3\.254[\s\S]*--dhcp-lease-max=253[\s\S]*--dhcp-authoritative[\s\S]*--dhcp-leasefile=\$DNSMASQ_LEASE/,"runtime health verifies the exact DHCP and private lease-file process contract");
212
-
assert.match(lxcNetwork,/rules_healthy[\s\S]*nftlistchaininetonehelm_lxcinput[\s\S]*nftlistchaininetonehelm_lxcforward[\s\S]*nftlistchainiponehelm_lxcpostrouting[\s\S]*10\\\.0\\\.3\\\.0\/24[\s\S]*masquerade/,"runtime health verifies the exact DNS, DHCP, forwarding, and outbound NAT rules instead of accepting table names alone");
212
+
assert.match(lxcNetwork,/rules_healthy[\s\S]*iptables-SINPUT[\s\S]*iptables-SFORWARD[\s\S]*nftlistchainiponehelm_lxcpostrouting[\s\S]*10\\\.0\\\.3\\\.0\/24[\s\S]*masquerade/,"runtime health verifies first-position host filter jumps and exact outbound NAT instead of accepting an ineffective parallel base chain");
213
+
assert.match(lxcNetwork,/FORWARD_CHAIN="ONEHELM_LXC_FORWARD"[\s\S]*-A"\$FORWARD_CHAIN"-i"\$BRIDGE"-jACCEPT[\s\S]*-A"\$FORWARD_CHAIN"-o"\$BRIDGE"/,"the owned forwarding chain accepts guest egress and only established return traffic");
213
214
assert.match(lxcNetwork,/BRIDGE_CIDR="10\.0\.3\.1\/24"[\s\S]*bridge_dns_healthy[\s\S]*stateUP[\s\S]*DNSMASQ_PID[\s\S]*--interface=lxcbr0[\s\S]*network_healthy/,"runtime health requires an up/addressed bridge and its exact dnsmasq process");
214
215
assert.match(lxcNetwork,/bridge_dns_healthy[\s\S]*ensure_rules[\s\S]*network_healthy/,"a healthy bridge can restore only its owned firewall rules without disrupting containers");
215
216
assert.match(lxcNetwork,/"\$LXC_NET"stopforce[\s\S]*start_bridge_dns[\s\S]*network_healthy/,"a dead private bridge/DNS stack is rebuilt with 1Helm-owned DHCP state and reverified instead of adopted by interface name");
0 commit comments