__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=b7b6347728be77f85771f9dae7ab131254606533bf10affb8058e49abe5ac8d0 init=/etc/init.d/router-wgpay-egress-local init_sha256=20e0d75d573e71df5438d4f25c4b5fdf0fc67250cc5fba1a1798ad7f47be644e conf=/etc/router-wgpay-egress-local.conf conf_sha256=c2785bb4e5c2438c8723232ac8905db03757856bd3e0a44b1df4df764f0c25c8 selector_backup=/root/step046s2-selector-20260710-115918.backup rollback=/root/rollback-step046s2-periodic-commit-config-20260710-115918.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 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 conf_mode_commit_sha256=6ad8b73dbb026065065ddcb0126086db3a6d331205be277f98b69904cc4e95bb enable_rc=0 commit_start_rc=0 commit_start_stderr= __AFTER_COMMIT_WINDOW__ service_running_commit_window=true loop_pid_commit_window=3579 segment_loop_begin_count=1 segment_commit_mode_count=5 segment_commit_json_count=4 segment_action_count=1 segment_selector_update_count=1 segment_selector_apply_count=1 segment_state_write_count=2 segment_run_rc0_count=4 selector_sha_after_commit=2064ac77e088941f205d50c388f7dab462e9b2c55047ae12ed0f560cd2326c5e line_10_after_commit=10.253.1.10 cs2 canary_vpn4 line_11_after_commit=10.253.1.11 cs1 canary_vpn3 class_cs1_after_commit=1 class_cs2_after_commit=1 peer_count_after_commit=5 allowed_ip_count_after_commit=5 state_exists_after_commit=true state_sha_after_commit=2288a15d8da11a4b3c0e85b253bc580bc931d3543d09abc5e5873ed3891b7af8 state_action_count_after_commit=action_count=1 state_action_ip_after_commit=action_ip=10.253.1.10 state_action_to_class_after_commit=action_to_class=cs2 __COMMIT_SEGMENT_TAIL_BEGIN__ __ROUTER_WGPAY_EGRESS_LOCAL_LOOP_BEGIN__ pid=3579 conf=/etc/router-wgpay-egress-local.conf mode=--commit interval=10 started_at=2026-07-10T11:59:20+00:00 __ROUTER_WGPAY_EGRESS_LOCAL_RUN_BEGIN__ run_started_at=2026-07-10T11:59:20+00:00 conf=/etc/router-wgpay-egress-local.conf mode=--commit KEYMASK-wgpay-egress-local.sh { "schema": "router-wgpay-egress-local-v6", "mode": "--commit", "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": true, "selector_update_rc": "0", "selector_apply_performed": true, "selector_apply_rc": "0", "selector_new_sha256": "KEYMASK", "state_file_write_performed": true, "state_file_write_rc": "0", "apply_log_sanitized": "applied_vm100_wgpay_selector_rules=5|" }, "state_preview": { "state_file": "/var/lib/router-wgpay-egress/state.kv", "would_write_state_file": true, "state_file_write_performed": true, "state_file_write_rc": "0", "state_preview_sha256": "KEYMASK", "format": "key_value_v1" }, "transaction_preview": { "would_update_selector_rows": 1, "would_run_selector_apply": true, "would_write_state_file": true }, "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": true, "selector_apply_would_run": true, "state_file_would_write": true } } run_rc=0 run_finished_at=2026-07-10T11:59:21+00:00 __ROUTER_WGPAY_EGRESS_LOCAL_RUN_END__ __ROUTER_WGPAY_EGRESS_LOCAL_RUN_BEGIN__ run_started_at=2026-07-10T11:59:31+00:00 conf=/etc/router-wgpay-egress-local.conf mode=--commit KEYMASK-wgpay-egress-local.sh { "schema": "router-wgpay-egress-local-v6", "mode": "--commit", "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":"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.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": [ ], "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:59:31+00:00 __ROUTER_WGPAY_EGRESS_LOCAL_RUN_END__ __ROUTER_WGPAY_EGRESS_LOCAL_RUN_BEGIN__ run_started_at=2026-07-10T11:59:41+00:00 conf=/etc/router-wgpay-egress-local.conf mode=--commit KEYMASK-wgpay-egress-local.sh { "schema": "router-wgpay-egress-local-v6", "mode": "--commit", "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":"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.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": [ ], "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:59:41+00:00 __ROUTER_WGPAY_EGRESS_LOCAL_RUN_END__ __ROUTER_WGPAY_EGRESS_LOCAL_RUN_BEGIN__ run_started_at=2026-07-10T11:59:51+00:00 conf=/etc/router-wgpay-egress-local.conf mode=--commit KEYMASK-wgpay-egress-local.sh { "schema": "router-wgpay-egress-local-v6", "mode": "--commit", "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":"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.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": [ ], "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:59:51+00:00 __ROUTER_WGPAY_EGRESS_LOCAL_RUN_END__ __COMMIT_SEGMENT_TAIL_END__ service_running_after_commit_stop=false selector_restore_copy_rc=0 restore_apply_rc=0 restore_apply_stderr= state_restore_rc=0 conf_mode_final_sha256=579dfd4d2c88f2d0b3d61380ada22b8d59ab9e48e96077c9c4341ae4e86b36fa conf_mode_final=MODE=--dry-run conf_interval_final=INTERVAL=30 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