signal: exit code for an unavailable aux component (AuxSigner / tapd)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 22/100
Research direction
Start with signal/exit_codes.go for the existing exit-code constants, then read the health-check and shutdown path that already uses RequestShutdownWithCode and the healthcheck.* config, as referenced in #11304. The open questions are design decisions: whether this becomes a new health check or is reported by the aux provider, what counts as unavailable, and how tapd takes part. Settle those with the maintainers before writing code. Done means a distinct exit code is returned when a required aux component goes down.
Written by the indexing model from the issue text.
Description
Background
#11304 makes lnd exit with a distinct code for each health check that gives up (chain backend, disk space, TLS cert, tor, remote signer, leader status). Review discussion there (thread) raised one more case worth covering as a follow-up.
Problem
When lnd runs with aux components supplied by an external daemon (for example tapd providing AuxSigner, AuxLeafStore, AuxFundingController), that daemon can shut down on its own error. lnd then keeps running but cannot function properly, and nothing in the exit status or shutdown path identifies the aux component as the cause. Operators have hit this with tapd and had to work it out from logs.
Proposal
Add a dedicated exit code (for example ExitCodeAuxComponent in signal/exit_codes.go) and a path that reports it when a required aux component becomes unavailable.
Open questions, raised in the PR thread:
- Should this be a new
lndhealth check (so it picks up the existinghealthcheck.*config knobs andRequestShutdownWithCodeplumbing), or should the aux provider detect and report the condition itself? - What does "unavailable" mean for an aux component: a failed liveness probe, or an error returned from an aux call?
- How should
tapdparticipate, since it owns the components and the integrated-mode lifecycle?
cc @ViktorT-11 @GeorgeTsagk
- Dominant language
- Go
- Stars
- 8.2k
- Forks
- 2.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 103
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lightningnetwork/lnd
-
funding: failure logs print `<nil>` error and zero channel IDPossibly taken @litbot-9000 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
lightningnetwork/lnd#11676 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 85/100
lightningnetwork/lnd#11674 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lightningnetwork/lnd#11672 ·
Maintainers usually reply within 1 day
-
test flake
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
lightningnetwork/lnd#11663 · 1 comment ·
Maintainers usually reply within 1 day
-
[flake]: lnwallet/test/bitcoind.TestLightningWalletBitcoindRPCPolling/spend_unconfirmed_outputsOpentest flake
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
lightningnetwork/lnd#11642 · 1 comment ·
Maintainers usually reply within 1 day
All issues in lightningnetwork/lnd
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
containers/gvisor-tap-vsock#796 ·
Maintainers usually reply within 2 days
-
external needs:triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
celestiaorg/celestia-node#5448 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
[Bug]: Azure SAS signing uses local time instead of UTC, shifting validity window on non-UTC hostsPossibly taken @huanghaoyuanhhy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zilliztech/milvus-backup#1418 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
projectdiscovery/nuclei#8423 ·
Maintainers usually reply within 1 day