__PRE__ script=/usr/local/sbin/router-wgpay-egress-local.sh script_sha256=24fd978af369fdcab9f7760553bd312b1f02bd41a2fcc1c3daa197572acdbc92 loop=/usr/local/sbin/router-wgpay-egress-local-loop.sh loop_sha256=301c5fe4931707bc768b510f80df2e705d5230e36b2fe2214994edf11c5d6896 init=/etc/init.d/router-wgpay-egress-local init_sha256=8f9ce8e0c9118b11bf65a449b4e181f44832034caf97bcc996da066891ebd386 selector_backup=/root/step046s-selector-20260710-115423.backup state_backup=/root/step046s-state-20260710-115423.backup rollback=/root/rollback-step046s-periodic-commit-20260710-115423.sh state_exists_pre=false state_sha_pre=none selector_sha_pre=2db1a0c46c1b93d9ede5f560d2d00db2dad3283adbc8f6ca6b0434ab695d8460 selector_rows_pre=5 line_10_pre=10.253.1.10 cs1 canary_vpn3 line_11_pre=10.253.1.11 cs2 canary_vpn4 line_12_pre=10.253.1.12 cs3 canary_vpn5 class_cs1_pre=1 class_cs2_pre=1 peer_count_pre=5 allowed_ip_count_pre=5 uci_peer_sections_pre=0 init_enabled_pre=true service_running_pre=true log_size_pre=43780 commit_count_pre=0 selector_apply_commit_count_pre=0 precheck_ok=true service_running_after_stop=false imbalance_rewrite_rc=0 imbalance_apply_rc=0 imbalance_apply_stderr= __IMBALANCED__ selector_sha_imbalanced=760b0841acb5ca9625a014e54f6c1304da846710e451a5e7b3352e81ae6ee969 line_10_imbalanced=10.253.1.10 cs1 canary_vpn3 line_11_imbalanced=10.253.1.11 cs1 canary_vpn3 class_cs1_imbalanced=2 class_cs2_imbalanced=0 peer_count_imbalanced=5 allowed_ip_count_imbalanced=5 log_size_before_commit=43780 commit_start_rc=0 commit_start_stderr= __AFTER_COMMIT_WINDOW__ service_running_commit_window=true loop_pid_commit_window=2137 log_size_after_commit_window=50188 commit_count_post=0 commit_action_count_post=2 commit_selector_update_count_post=0 commit_selector_apply_count_post=0 commit_state_write_count_post=0 run_rc0_count_post=16 selector_sha_after_commit=760b0841acb5ca9625a014e54f6c1304da846710e451a5e7b3352e81ae6ee969 line_10_after_commit=10.253.1.10 cs1 canary_vpn3 line_11_after_commit=10.253.1.11 cs1 canary_vpn3 class_cs1_after_commit=2 class_cs2_after_commit=0 peer_count_after_commit=5 allowed_ip_count_after_commit=5 state_exists_after_commit=false state_sha_after_commit=none state_action_count_after_commit= state_action_to_class_after_commit= __COMMIT_LOG_TAIL_BEGIN__ "selector_apply": "KEYMASK-wgpay-canary-apply.sh", "state_file": "/var/lib/router-wgpay-egress/state.kv", "synthetic_active_ips": "", "rows": [ {"tunnel_ip":"10.253.1.10","egress_class":"cs1","target_id":"canary_vpn3","expected_target_id":"canary_vpn3","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.11","egress_class":"cs2","target_id":"canary_vpn4","expected_target_id":"canary_vpn4","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.12","egress_class":"cs3","target_id":"canary_vpn5","expected_target_id":"canary_vpn5","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.13","egress_class":"cs4","target_id":"canary_vpn1","expected_target_id":"canary_vpn1","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.14","egress_class":"cs5","target_id":"canary_vpn2","expected_target_id":"canary_vpn2","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false} ], "actions": [ ], "commit": { "commit_rc": "0", "selector_update_performed": false, "selector_update_rc": "not_attempted", "selector_apply_performed": false, "selector_apply_rc": "not_attempted", "selector_new_sha256": "", "state_file_write_performed": false, "state_file_write_rc": "not_attempted", "apply_log_sanitized": "" }, "state_preview": { "state_file": "/var/lib/router-wgpay-egress/state.kv", "would_write_state_file": false, "state_file_write_performed": false, "state_file_write_rc": "not_attempted", "state_preview_sha256": "KEYMASK", "format": "key_value_v1" }, "transaction_preview": { "would_update_selector_rows": 0, "would_run_selector_apply": false, "would_write_state_file": false }, "summary": { "rows": 5, "active_count": 0, "idle_count": 5, "min_class": "cs1", "min_count": 1, "max_class": "cs1", "max_count": 1, "blocked": false, "block_reason": "", "action_count": 0, "noop": true, "action_reason": "already_balanced", "selector_file_would_change": false, "selector_apply_would_run": false, "state_file_would_write": false } } run_rc=0 run_finished_at=2026-07-10T11:53:20+00:00 __ROUTER_WGPAY_EGRESS_LOCAL_RUN_END__ __ROUTER_WGPAY_EGRESS_LOCAL_RUN_BEGIN__ run_started_at=2026-07-10T11:53:50+00:00 mode=--dry-run KEYMASK-wgpay-egress-local.sh { "schema": "router-wgpay-egress-local-v6", "mode": "--dry-run", "selector_file": "/etc/router-wgpay-selector.d/peers.conf", "selector_apply": "KEYMASK-wgpay-canary-apply.sh", "state_file": "/var/lib/router-wgpay-egress/state.kv", "synthetic_active_ips": "", "rows": [ {"tunnel_ip":"10.253.1.10","egress_class":"cs1","target_id":"canary_vpn3","expected_target_id":"canary_vpn3","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.11","egress_class":"cs2","target_id":"canary_vpn4","expected_target_id":"canary_vpn4","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.12","egress_class":"cs3","target_id":"canary_vpn5","expected_target_id":"canary_vpn5","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.13","egress_class":"cs4","target_id":"canary_vpn1","expected_target_id":"canary_vpn1","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.14","egress_class":"cs5","target_id":"canary_vpn2","expected_target_id":"canary_vpn2","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false} ], "actions": [ ], "commit": { "commit_rc": "0", "selector_update_performed": false, "selector_update_rc": "not_attempted", "selector_apply_performed": false, "selector_apply_rc": "not_attempted", "selector_new_sha256": "", "state_file_write_performed": false, "state_file_write_rc": "not_attempted", "apply_log_sanitized": "" }, "state_preview": { "state_file": "/var/lib/router-wgpay-egress/state.kv", "would_write_state_file": false, "state_file_write_performed": false, "state_file_write_rc": "not_attempted", "state_preview_sha256": "KEYMASK", "format": "key_value_v1" }, "transaction_preview": { "would_update_selector_rows": 0, "would_run_selector_apply": false, "would_write_state_file": false }, "summary": { "rows": 5, "active_count": 0, "idle_count": 5, "min_class": "cs1", "min_count": 1, "max_class": "cs1", "max_count": 1, "blocked": false, "block_reason": "", "action_count": 0, "noop": true, "action_reason": "already_balanced", "selector_file_would_change": false, "selector_apply_would_run": false, "state_file_would_write": false } } run_rc=0 run_finished_at=2026-07-10T11:53:50+00:00 __ROUTER_WGPAY_EGRESS_LOCAL_RUN_END__ __ROUTER_WGPAY_EGRESS_LOCAL_RUN_BEGIN__ run_started_at=2026-07-10T11:54:20+00:00 mode=--dry-run KEYMASK-wgpay-egress-local.sh { "schema": "router-wgpay-egress-local-v6", "mode": "--dry-run", "selector_file": "/etc/router-wgpay-selector.d/peers.conf", "selector_apply": "KEYMASK-wgpay-canary-apply.sh", "state_file": "/var/lib/router-wgpay-egress/state.kv", "synthetic_active_ips": "", "rows": [ {"tunnel_ip":"10.253.1.10","egress_class":"cs1","target_id":"canary_vpn3","expected_target_id":"canary_vpn3","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.11","egress_class":"cs2","target_id":"canary_vpn4","expected_target_id":"canary_vpn4","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.12","egress_class":"cs3","target_id":"canary_vpn5","expected_target_id":"canary_vpn5","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.13","egress_class":"cs4","target_id":"canary_vpn1","expected_target_id":"canary_vpn1","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.14","egress_class":"cs5","target_id":"canary_vpn2","expected_target_id":"canary_vpn2","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false} ], "actions": [ ], "commit": { "commit_rc": "0", "selector_update_performed": false, "selector_update_rc": "not_attempted", "selector_apply_performed": false, "selector_apply_rc": "not_attempted", "selector_new_sha256": "", "state_file_write_performed": false, "state_file_write_rc": "not_attempted", "apply_log_sanitized": "" }, "state_preview": { "state_file": "/var/lib/router-wgpay-egress/state.kv", "would_write_state_file": false, "state_file_write_performed": false, "state_file_write_rc": "not_attempted", "state_preview_sha256": "KEYMASK", "format": "key_value_v1" }, "transaction_preview": { "would_update_selector_rows": 0, "would_run_selector_apply": false, "would_write_state_file": false }, "summary": { "rows": 5, "active_count": 0, "idle_count": 5, "min_class": "cs1", "min_count": 1, "max_class": "cs1", "max_count": 1, "blocked": false, "block_reason": "", "action_count": 0, "noop": true, "action_reason": "already_balanced", "selector_file_would_change": false, "selector_apply_would_run": false, "state_file_would_write": false } } run_rc=0 run_finished_at=2026-07-10T11:54:20+00:00 __ROUTER_WGPAY_EGRESS_LOCAL_RUN_END__ __ROUTER_WGPAY_EGRESS_LOCAL_LOOP_BEGIN__ pid=2137 mode=--dry-run interval=30 started_at=2026-07-10T11:54:26+00:00 __ROUTER_WGPAY_EGRESS_LOCAL_RUN_BEGIN__ run_started_at=2026-07-10T11:54:26+00:00 mode=--dry-run KEYMASK-wgpay-egress-local.sh { "schema": "router-wgpay-egress-local-v6", "mode": "--dry-run", "selector_file": "/etc/router-wgpay-selector.d/peers.conf", "selector_apply": "KEYMASK-wgpay-canary-apply.sh", "state_file": "/var/lib/router-wgpay-egress/state.kv", "synthetic_active_ips": "", "rows": [ {"tunnel_ip":"10.253.1.10","egress_class":"cs1","target_id":"canary_vpn3","expected_target_id":"canary_vpn3","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.11","egress_class":"cs1","target_id":"canary_vpn3","expected_target_id":"canary_vpn3","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.12","egress_class":"cs3","target_id":"canary_vpn5","expected_target_id":"canary_vpn5","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.13","egress_class":"cs4","target_id":"canary_vpn1","expected_target_id":"canary_vpn1","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.14","egress_class":"cs5","target_id":"canary_vpn2","expected_target_id":"canary_vpn2","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false} ], "actions": [ {"tunnel_ip":"10.253.1.10","from_class":"cs1","from_target_id":"canary_vpn3","to_class":"cs2","to_target_id":"canary_vpn4","reason":"idle_rebalance_most_loaded_to_least_loaded"} ], "commit": { "commit_rc": "0", "selector_update_performed": false, "selector_update_rc": "not_attempted", "selector_apply_performed": false, "selector_apply_rc": "not_attempted", "selector_new_sha256": "", "state_file_write_performed": false, "state_file_write_rc": "not_attempted", "apply_log_sanitized": "" }, "state_preview": { "state_file": "/var/lib/router-wgpay-egress/state.kv", "would_write_state_file": false, "state_file_write_performed": false, "state_file_write_rc": "not_attempted", "state_preview_sha256": "KEYMASK", "format": "key_value_v1" }, "transaction_preview": { "would_update_selector_rows": 1, "would_run_selector_apply": false, "would_write_state_file": false }, "summary": { "rows": 5, "active_count": 0, "idle_count": 5, "min_class": "cs2", "min_count": 0, "max_class": "cs1", "max_count": 2, "blocked": false, "block_reason": "", "action_count": 1, "noop": false, "action_reason": "idle_rebalance_most_loaded_to_least_loaded", "selector_file_would_change": false, "selector_apply_would_run": false, "state_file_would_write": false } } run_rc=0 run_finished_at=2026-07-10T11:54:26+00:00 __ROUTER_WGPAY_EGRESS_LOCAL_RUN_END__ __ROUTER_WGPAY_EGRESS_LOCAL_RUN_BEGIN__ run_started_at=2026-07-10T11:54:56+00:00 mode=--dry-run KEYMASK-wgpay-egress-local.sh { "schema": "router-wgpay-egress-local-v6", "mode": "--dry-run", "selector_file": "/etc/router-wgpay-selector.d/peers.conf", "selector_apply": "KEYMASK-wgpay-canary-apply.sh", "state_file": "/var/lib/router-wgpay-egress/state.kv", "synthetic_active_ips": "", "rows": [ {"tunnel_ip":"10.253.1.10","egress_class":"cs1","target_id":"canary_vpn3","expected_target_id":"canary_vpn3","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.11","egress_class":"cs1","target_id":"canary_vpn3","expected_target_id":"canary_vpn3","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.12","egress_class":"cs3","target_id":"canary_vpn5","expected_target_id":"canary_vpn5","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.13","egress_class":"cs4","target_id":"canary_vpn1","expected_target_id":"canary_vpn1","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false}, {"tunnel_ip":"10.253.1.14","egress_class":"cs5","target_id":"canary_vpn2","expected_target_id":"canary_vpn2","selector_target_match":true,"out_packets":0,"in_packets":0,"total_packets":0,"total_bytes":0,"active_now":false} ], "actions": [ {"tunnel_ip":"10.253.1.10","from_class":"cs1","from_target_id":"canary_vpn3","to_class":"cs2","to_target_id":"canary_vpn4","reason":"idle_rebalance_most_loaded_to_least_loaded"} ], "commit": { "commit_rc": "0", "selector_update_performed": false, "selector_update_rc": "not_attempted", "selector_apply_performed": false, "selector_apply_rc": "not_attempted", "selector_new_sha256": "", "state_file_write_performed": false, "state_file_write_rc": "not_attempted", "apply_log_sanitized": "" }, "state_preview": { "state_file": "/var/lib/router-wgpay-egress/state.kv", "would_write_state_file": false, "state_file_write_performed": false, "state_file_write_rc": "not_attempted", "state_preview_sha256": "KEYMASK", "format": "key_value_v1" }, "transaction_preview": { "would_update_selector_rows": 1, "would_run_selector_apply": false, "would_write_state_file": false }, "summary": { "rows": 5, "active_count": 0, "idle_count": 5, "min_class": "cs2", "min_count": 0, "max_class": "cs1", "max_count": 2, "blocked": false, "block_reason": "", "action_count": 1, "noop": false, "action_reason": "idle_rebalance_most_loaded_to_least_loaded", "selector_file_would_change": false, "selector_apply_would_run": false, "state_file_would_write": false } } run_rc=0 run_finished_at=2026-07-10T11:54:56+00:00 __ROUTER_WGPAY_EGRESS_LOCAL_RUN_END__ __COMMIT_LOG_TAIL_END__ service_running_after_commit_stop=false selector_restore_copy_rc=0 restore_apply_rc=0 restore_apply_stderr= state_restore_rc=0 dry_enable_rc=0 dry_start_rc=0 __FINAL__ selector_sha_final=2db1a0c46c1b93d9ede5f560d2d00db2dad3283adbc8f6ca6b0434ab695d8460 selector_rows_final=5 line_10_final=10.253.1.10 cs1 canary_vpn3 line_11_final=10.253.1.11 cs2 canary_vpn4 line_12_final=10.253.1.12 cs3 canary_vpn5 class_cs1_final=1 class_cs2_final=1 peer_count_final=5 allowed_ip_count_final=5 uci_peer_sections_final=0 state_exists_final=false state_sha_final=none init_enabled_final=true service_running_final=true selector_changed=false wg_runtime_changed=false state_changed=false