towerops/lib/towerops
Graham McIntire 64ad63d3e3
fix: handle etcd watcher creation errors gracefully
The pods were crashing with a MatchError when the etcd watcher failed
to initialize. The code was pattern matching on {:ok, watcher} but
eetcd was returning {:error, :eetcd_conn_unavailable}.

Error:
  ** (MatchError) no match of right hand side value:
  {:error, :eetcd_conn_unavailable}

This was causing CrashLoopBackOff because the application couldn't
start the Monitoring.Supervisor due to EtcdCoordinator initialization
failure.

Fix:
  - Add case statement to handle both {:ok, watcher} and {:error, reason}
  - Log the specific error when watcher creation fails
  - Return proper error tuple to supervisor for clean shutdown
2026-01-24 15:02:46 -06:00
..
accounts use password for user regi 2026-01-21 09:13:08 -06:00
admin Add superuser system with user impersonation for admin support 2026-01-06 12:50:10 -06:00
agents remote agent/cloud improvements 2026-01-24 09:16:41 -06:00
alerts feat: add Meraki/FortiWLC vendors, remove AlertNotifier temporarily 2026-01-22 10:40:44 -06:00
api_tokens refactor: use API token auth for profile imports instead of session cookies 2026-01-18 09:30:21 -06:00
devices feat: add 5 new vendor modules and fix dialyzer issues 2026-01-22 09:34:50 -06:00
ecto_types improve profile import 2026-01-18 11:46:56 -06:00
mobile_sessions Fix datetime truncation for mobile session schemas 2026-01-15 16:17:05 -06:00
monitoring fix: handle etcd watcher creation errors gracefully 2026-01-24 15:02:46 -06:00
organizations moduledocs 2026-01-17 15:08:49 -06:00
profiles better discovery 2026-01-22 17:40:58 -06:00
proto Add ICMP monitoring support to Phoenix agent channel 2026-01-19 13:46:20 -06:00
settings remote agent/cloud improvements 2026-01-24 09:16:41 -06:00
sites moduledocs 2026-01-17 15:08:49 -06:00
snmp snmpkit overhaul and etcd 2026-01-23 16:23:57 -06:00
workers remote agent/cloud improvements 2026-01-24 09:16:41 -06:00
accounts.ex use password for user regi 2026-01-21 09:13:08 -06:00
admin.ex rename equipment to device 2026-01-17 14:48:46 -06:00
agents.ex remote agent/cloud improvements 2026-01-24 09:16:41 -06:00
alerts.ex feat: add APC, Arista, Calix, ADTRAN, Allied Telesis vendor modules 2026-01-22 11:00:21 -06:00
api_tokens.ex feat: add 5 new vendor modules and fix dialyzer issues 2026-01-22 09:34:50 -06:00
application.ex feat: add Redis password authentication support 2026-01-24 14:18:55 -06:00
devices.ex mikrotik improvements 2026-01-22 13:05:28 -06:00
etcd_lock.ex snmpkit overhaul and etcd 2026-01-23 16:23:57 -06:00
exq_supervisor.ex feat: add Redis password authentication support 2026-01-24 14:18:55 -06:00
honeybadger_filter.ex ignore more startup errors 2026-01-23 10:08:04 -06:00
log_filter.ex Add comprehensive Dialyzer type specifications 2026-01-17 10:52:02 -06:00
mailer.ex moduledocs 2026-01-17 15:08:49 -06:00
mobile_sessions.ex credo cleanup 2026-01-17 15:00:52 -06:00
monitoring.ex implement timescaledb improvements 2026-01-22 13:24:14 -06:00
organizations.ex rename equipment to device 2026-01-17 14:48:46 -06:00
profiles.ex add universoal import 2026-01-18 16:59:34 -06:00
redis_health_check.ex Add Redis health checks and improved error handling for Exq 2026-01-19 15:38:19 -06:00
release.ex fix dialyzer things 2026-01-03 12:56:40 -06:00
repo.ex moduledocs 2026-01-17 15:08:49 -06:00
settings.ex remote agent/cloud improvements 2026-01-24 09:16:41 -06:00
sites.ex rename equipment to device 2026-01-17 14:48:46 -06:00
snmp.ex mac discovery 2026-01-23 09:22:08 -06:00