signalk-container 1.28.1 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -0
- package/dist/containers.d.ts +10 -1
- package/dist/containers.d.ts.map +1 -1
- package/dist/containers.js +121 -12
- package/dist/containers.js.map +1 -1
- package/dist/devices.d.ts +152 -0
- package/dist/devices.d.ts.map +1 -1
- package/dist/devices.js +335 -0
- package/dist/devices.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +103 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +87 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/updates/service.d.ts +16 -0
- package/dist/updates/service.d.ts.map +1 -1
- package/dist/updates/service.js +100 -13
- package/dist/updates/service.js.map +1 -1
- package/doc/plugin-developer-guide.md +49 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ Instead of each plugin implementing its own container orchestration, they delega
|
|
|
24
24
|
- **Host timezone propagation** -- managed containers and one-shot jobs get `TZ=<host zone>` injected automatically, so time-based logic inside them (cron-style Node-RED flows, Grafana/QuestDB time rendering, log timestamps) agrees with the host clock instead of defaulting to UTC. Consumer plugins that set `env.TZ` themselves keep full control; shell-level tools inside minimal images may additionally need the image's `tzdata` package to interpret the zone name. See the [developer guide](doc/plugin-developer-guide.md#host-timezone).
|
|
25
25
|
- **SELinux support** -- `:Z` volume flags for Podman bind mounts on Fedora/RHEL; named volumes are handled correctly (`:Z` is not applied)
|
|
26
26
|
- **Host device access** -- `ContainerConfig.devices` exposes host device nodes or whole device directories (`/dev/snd`, `/dev/input`, …) to a managed container — directory bindings are hot-plug-safe, so a USB replug keeps working without a recreate (individual nodes are attached statically and need one) — and `ContainerConfig.groupAdd` resolves host group names to the GIDs that own those nodes. Works across docker and rootless Podman (on rootless the access comes from the Podman caller's own host groups, so that user must be in the device-owning group); a missing device never blocks container start. See [Exposing host devices](#exposing-host-devices-devices-groupadd).
|
|
27
|
+
- **Read-only volumes** -- `{ source, readOnly: true }` binds a volume `:ro`, for sharing a directory another component owns (charts published by a chart provider, say) without granting write access to it. 1.30.0+.
|
|
27
28
|
- **Per-volume host-source policy** -- volumes accept `{ source, ifMissing: "skip" | "abort" }` for user-managed (USB drives, NFS) or deployment-required (TLS certs) mounts. Plugins subscribe to `onVolumeIssue` events for `'skipped'`, `'aborted'`, and `'recovered'` actions; signalk-container auto-recreates the container when a previously-missing source reappears. See the [developer guide](doc/plugin-developer-guide.md#optional-and-required-volumes).
|
|
28
29
|
- **Container log streaming** -- click **Logs** on any managed-container card to open a live-streaming popup of the container's stdout+stderr (combined, the same shape `podman logs <name>` produces). Plugin authors can also wire `onContainerLog` in `ensureRunning` options to forward the same stream into their plugin's `app.debug` channel — visible in the Signal K server log when debug is enabled. Multiple subscribers share a single underlying log stream. See the [developer guide](doc/plugin-developer-guide.md#streaming-container-logs-into-your-plugins-debug-channel).
|
|
29
30
|
- **Host-UID ownership alignment** -- managed containers run by default under the Signal K host user's UID/GID (via `--user host:host` on Docker/rootful Podman, `--userns=keep-id` on rootless Podman). Files created on bind mounts are owned by the same identity that runs Signal K, with no `chmod` sweeps. Override per container via `ContainerConfig.user` for images with a non-root `USER` directive, or `user: false` to opt out. See the [developer guide](doc/plugin-developer-guide.md#host-uid-ownership).
|
|
@@ -901,6 +902,7 @@ See [doc/plugin-developer-guide.md](doc/plugin-developer-guide.md) for the full
|
|
|
901
902
|
| `updateResources(name, limits)` | Apply new resource limits live, fall back to recreate |
|
|
902
903
|
| `getResources(name)` | Currently effective limits (plugin defaults ⊕ user override) |
|
|
903
904
|
| `resolveSignalkDataMount()` | Resolve the volume name or host path that backs `app.getDataDirPath()` in the current deployment; returns `null` if the runtime is not yet initialised |
|
|
905
|
+
| `probeHostDevice(path)` | Ask whether a device path exists **on the host** and which groups own its nodes — a plugin cannot `stat()` this itself once SignalK is containerized. Returns `null` for "unknown", which is not the same as `{exists:false}`. 1.30.0+ |
|
|
904
906
|
| `resolveHostPath(absPath)` | Translate an arbitrary absolute path into the `{ source, subPath }` pair the runtime needs to mount it; handles bare-metal, bind, and named-volume topologies |
|
|
905
907
|
| `resolveContainerAddress(name, port)` | Return the `host:port` string to reach `port` on a managed container from the SignalK process; call after `ensureRunning()` with `signalkAccessiblePorts` set |
|
|
906
908
|
| `doctor.imageRunsAsUser(image, user?)` | Probe whether `image` runs cleanly under the host-UID mapping signalk-container will emit (1.8.0+). Never throws — returns `{ ok, output, error? }` |
|
|
@@ -947,6 +949,47 @@ All mounted at `/plugins/signalk-container/api/`:
|
|
|
947
949
|
| Disable user-namespace remap | `false` | Suppress rootless-Podman `--userns=keep-id` on filesystems that cannot be id-mapped (ZFS, some encrypted FS). Secondary escape hatch only — the recommended primary fix is host-side `fuse-overlayfs` storage (see [ZFS host notes](#zfs-and-other-idmap-incompatible-filesystems)). |
|
|
948
950
|
| Container overrides | `{}` | Per-container resource limits (CPU, memory, PIDs). Field-level merged on top of consumer plugin defaults. See dev guide. |
|
|
949
951
|
|
|
952
|
+
### Detecting host devices
|
|
953
|
+
|
|
954
|
+
`probeHostDevice(path)` answers "does this machine have a GPU" — or any other
|
|
955
|
+
device you might pass through — from a plugin that cannot see the host:
|
|
956
|
+
|
|
957
|
+
```js
|
|
958
|
+
const gpu = await containers.probeHostDevice?.('/dev/dri')
|
|
959
|
+
if (gpu?.exists) {
|
|
960
|
+
config.devices = ['/dev/dri']
|
|
961
|
+
config.groupAdd = gpu.groups // names, resolved per host
|
|
962
|
+
}
|
|
963
|
+
```
|
|
964
|
+
|
|
965
|
+
A plugin cannot do this itself. `stat('/dev/dri')` reports on the plugin's own
|
|
966
|
+
filesystem, which is the SignalK container whenever SignalK is containerized —
|
|
967
|
+
and that container has no `/dev/dri` even on a machine with a GPU. The result
|
|
968
|
+
is a silent false negative.
|
|
969
|
+
|
|
970
|
+
`groups` are **names**, not gids, because that is what `groupAdd` needs: the
|
|
971
|
+
gid of `render` or `video` differs per distro and per install, so a hardcoded
|
|
972
|
+
number loses access on someone else's machine.
|
|
973
|
+
|
|
974
|
+
Three results, and the difference matters:
|
|
975
|
+
|
|
976
|
+
| Result | Meaning |
|
|
977
|
+
| ------------------------------- | ------------------------------------------------------ |
|
|
978
|
+
| `{exists: true, nodes, groups}` | Device is there; pass `groups` to `groupAdd` |
|
|
979
|
+
| `{exists: false, …}` | Definitely absent |
|
|
980
|
+
| `null` | **Unknown** — no runtime, the path could not be read (a permission error, say), or the nodes are there but their owning group could not be determined |
|
|
981
|
+
|
|
982
|
+
Treat `null` as "assume no device, but do not report it as absent".
|
|
983
|
+
|
|
984
|
+
**Runtime differences.** Docker reads the host's numeric gids and maps them to
|
|
985
|
+
names. Rootless podman cannot — its user namespace does not map them — so the
|
|
986
|
+
probe falls back to the DRM naming convention (`card*` → `video`,
|
|
987
|
+
`renderD*` → `render`) and keeps the name only when the host's `/etc/group`
|
|
988
|
+
defines it. GPU nodes therefore resolve identically on both. Anything without
|
|
989
|
+
that convention (`/dev/snd`, `/dev/input`) returns `null` on rootless podman
|
|
990
|
+
rather than a guess, since a device passed through without the group that
|
|
991
|
+
opens it fails silently at runtime.
|
|
992
|
+
|
|
950
993
|
### Container namespace (multiple Signal K servers on one host)
|
|
951
994
|
|
|
952
995
|
Every container and one-shot job this plugin creates is named with a **namespace prefix** — `sk-` by default (so `sk-questdb`, `sk-grafana`, `sk-job-<id>`). The prefix keeps two Signal K servers that share the same container runtime from stepping on each other: without it, a second server would see the first server's `sk-questdb`, treat it as its own, and could recreate or reap it.
|
package/dist/containers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type Docker from "dockerode";
|
|
2
|
-
import { ContainerConfig, ContainerInfo, ContainerRuntimeInfo, ContainerState, DeviceIssue, EnsureRunningOptions, LocalImageSummary, ManagedImageRef, NofileLimits, PruneResult, ResourceClamp, UlimitClamp, VolumeIssue, VolumeSpec } from "./types.js";
|
|
2
|
+
import { ContainerConfig, ContainerInfo, ContainerRuntimeInfo, ContainerState, DeviceIssue, EnsureRunningOptions, LocalImageSummary, ManagedImageRef, NofileLimits, PruneResult, ContainerWedged, ResourceClamp, UlimitClamp, VolumeIssue, VolumeSpec } from "./types.js";
|
|
3
3
|
import { StreamingProcessHandle } from "./runtime.js";
|
|
4
4
|
import { type ContainerClient } from "./client.js";
|
|
5
5
|
import { type ErrorKind } from "./errors.js";
|
|
@@ -173,6 +173,13 @@ export declare function safeInvokeUlimitClamped(handler: ((event: UlimitClamp) =
|
|
|
173
173
|
* shapes routed to `reportError`.
|
|
174
174
|
*/
|
|
175
175
|
export declare function safeInvokeResourceClamped(handler: ((event: ResourceClamp) => void | Promise<void>) | undefined, event: ResourceClamp, reportError: (err: unknown) => void): void;
|
|
176
|
+
/**
|
|
177
|
+
* Invoke an `onContainerWedged` callback safely. A container wedged
|
|
178
|
+
* unkillable is an operator-recoverable condition, not a lifecycle error:
|
|
179
|
+
* isolate a throwing/rejecting handler so it can never re-enter the
|
|
180
|
+
* reconcile path.
|
|
181
|
+
*/
|
|
182
|
+
export declare function safeInvokeContainerWedged(handler: ((event: ContainerWedged) => void | Promise<void>) | undefined, event: ContainerWedged, reportError: (err: unknown) => void): void;
|
|
176
183
|
/**
|
|
177
184
|
* Invoke an `onUnhealthy` callback safely. Same shape and rationale as
|
|
178
185
|
* `safeInvokeVolumeIssue` (isolate a throwing/rejecting handler so it can
|
|
@@ -434,6 +441,7 @@ export interface LiveContainerConfig {
|
|
|
434
441
|
binds: Array<{
|
|
435
442
|
host: string;
|
|
436
443
|
container: string;
|
|
444
|
+
readOnly?: boolean;
|
|
437
445
|
}>;
|
|
438
446
|
portBindings: Map<string, PortBinding[]>;
|
|
439
447
|
extraHosts: Map<string, string>;
|
|
@@ -572,6 +580,7 @@ export declare function _setNofileCeilingForTesting(fn: ((runtime: ContainerRunt
|
|
|
572
580
|
*/
|
|
573
581
|
export declare function readContainerNofile(name: string, client?: ContainerClient): Promise<NofileLimits | null>;
|
|
574
582
|
export declare function _clearNofileRegrantAttemptsForTesting(): void;
|
|
583
|
+
export declare function _clearAnnouncedWedgedForTesting(): void;
|
|
575
584
|
/**
|
|
576
585
|
* Translate `ContainerConfig.ulimits` into the dockerode
|
|
577
586
|
* `HostConfig.Ulimits` array (`{ Name, Soft, Hard }`). A bare number sets
|
package/dist/containers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containers.d.ts","sourceRoot":"","sources":["../src/containers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAGpC,OAAO,EACL,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,oBAAoB,EAEpB,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,WAAW,EACX,aAAa,EACb,WAAW,EACX,WAAW,EACX,UAAU,EACX,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,sBAAsB,EAIvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAML,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,EASL,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAOtB,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGjD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CACvB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,GAAE,OAAe,GACxB,MAAM,CAOR;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAE7E;AAcD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,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AC,YAAY,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAEvE;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,oBAAoB,EAC7B,KAAK,GAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAe,EACvC,MAAM,GAAE,eAA6B,GACpC,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CA8C1B;AAED,wBAAsB,YAAY,CAChC,GAAG,EAAE,MAAM,EACX,SAAS,GAAE,MAAc,EACzB,UAAU,GAAE,MAAY,GACvB,OAAO,CAAC,IAAI,CAAC,CAYf"}
|
package/dist/containers.js
CHANGED
|
@@ -314,6 +314,22 @@ export function safeInvokeResourceClamped(handler, event, reportError) {
|
|
|
314
314
|
reportError(err);
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
+
/**
|
|
318
|
+
* Invoke an `onContainerWedged` callback safely. A container wedged
|
|
319
|
+
* unkillable is an operator-recoverable condition, not a lifecycle error:
|
|
320
|
+
* isolate a throwing/rejecting handler so it can never re-enter the
|
|
321
|
+
* reconcile path.
|
|
322
|
+
*/
|
|
323
|
+
export function safeInvokeContainerWedged(handler, event, reportError) {
|
|
324
|
+
if (!handler)
|
|
325
|
+
return;
|
|
326
|
+
try {
|
|
327
|
+
void Promise.resolve(handler(event)).catch(reportError);
|
|
328
|
+
}
|
|
329
|
+
catch (err) {
|
|
330
|
+
reportError(err);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
317
333
|
/**
|
|
318
334
|
* Invoke an `onUnhealthy` callback safely. Same shape and rationale as
|
|
319
335
|
* `safeInvokeVolumeIssue` (isolate a throwing/rejecting handler so it can
|
|
@@ -1024,16 +1040,21 @@ export async function getLiveContainerConfig(runtime, name, client = getClient()
|
|
|
1024
1040
|
continue;
|
|
1025
1041
|
// Walk backward: keep stripping trailing segments that look like
|
|
1026
1042
|
// option flags (Z, z, ro, rw, etc.) until we have exactly host:container.
|
|
1043
|
+
// `ro` is remembered rather than merely discarded — read-only is a
|
|
1044
|
+
// semantic difference, so flipping it has to count as drift and
|
|
1045
|
+
// recreate, not silently keep a writable mount.
|
|
1027
1046
|
const FLAG_RE = /^[a-zA-Z,]+$/;
|
|
1047
|
+
let readOnly = false;
|
|
1028
1048
|
while (segments.length > 2 &&
|
|
1029
1049
|
FLAG_RE.test(segments[segments.length - 1])) {
|
|
1030
|
-
segments.pop();
|
|
1050
|
+
const flags = segments.pop().split(",");
|
|
1051
|
+
// `rro` is the recursive form; both mean the mount is not writable.
|
|
1052
|
+
if (flags.includes("ro") || flags.includes("rro"))
|
|
1053
|
+
readOnly = true;
|
|
1031
1054
|
}
|
|
1032
|
-
if (segments.length < 2)
|
|
1033
|
-
continue;
|
|
1034
1055
|
const container = segments.pop();
|
|
1035
1056
|
const host = segments.join(":");
|
|
1036
|
-
binds.push({ host, container });
|
|
1057
|
+
binds.push({ host, container, readOnly });
|
|
1037
1058
|
}
|
|
1038
1059
|
}
|
|
1039
1060
|
const env = new Map();
|
|
@@ -1338,26 +1359,39 @@ export function diffContainerConfig(requested, live, runtime, prior) {
|
|
|
1338
1359
|
const unresolvedDevices = parseUnresolvedDevicesLabel(live.labels[DEVICES_UNRESOLVED_LABEL]);
|
|
1339
1360
|
const requestedDevices = resolveDeviceRequests(filterUnresolvedDeviceEntries(requested.devices ?? [], unresolvedDevices), runtime);
|
|
1340
1361
|
// Volumes: build canonical Map<containerPath, hostPath> for each side.
|
|
1362
|
+
// Keyed by container path; the value pairs host path with access mode.
|
|
1363
|
+
// Kept as separate fields rather than a `host:ro` string, which would make a
|
|
1364
|
+
// read-write mount of `/data:ro` indistinguishable from a read-only `/data`.
|
|
1341
1365
|
const requestedVolumes = new Map();
|
|
1342
1366
|
if (requested.volumes) {
|
|
1343
1367
|
for (const [containerPath, raw] of Object.entries(requested.volumes)) {
|
|
1344
|
-
requestedVolumes.set(stripTrailingSlash(containerPath),
|
|
1368
|
+
requestedVolumes.set(stripTrailingSlash(containerPath), {
|
|
1369
|
+
host: stripTrailingSlash(volumeSource(raw)),
|
|
1370
|
+
readOnly: typeof raw === "string" ? false : (raw.readOnly ?? false),
|
|
1371
|
+
});
|
|
1345
1372
|
}
|
|
1346
1373
|
}
|
|
1347
1374
|
// Hot-plug device directories are emitted as binds, so the live Binds
|
|
1348
1375
|
// include them; mirror them into the requested side or every reconcile
|
|
1349
1376
|
// of a directory-device config would flag volumes drift.
|
|
1350
1377
|
for (const bind of requestedDevices.directoryBinds) {
|
|
1351
|
-
requestedVolumes.set(stripTrailingSlash(bind.pathInContainer),
|
|
1378
|
+
requestedVolumes.set(stripTrailingSlash(bind.pathInContainer), {
|
|
1379
|
+
host: stripTrailingSlash(bind.pathOnHost),
|
|
1380
|
+
readOnly: false,
|
|
1381
|
+
});
|
|
1352
1382
|
}
|
|
1353
1383
|
const liveVolumes = new Map();
|
|
1354
|
-
for (const { host, container } of live.binds) {
|
|
1355
|
-
liveVolumes.set(stripTrailingSlash(container),
|
|
1384
|
+
for (const { host, container, readOnly } of live.binds) {
|
|
1385
|
+
liveVolumes.set(stripTrailingSlash(container), {
|
|
1386
|
+
host: stripTrailingSlash(host),
|
|
1387
|
+
readOnly: readOnly === true,
|
|
1388
|
+
});
|
|
1356
1389
|
}
|
|
1357
1390
|
let volumesDrift = requestedVolumes.size !== liveVolumes.size;
|
|
1358
1391
|
if (!volumesDrift) {
|
|
1359
|
-
for (const [container,
|
|
1360
|
-
|
|
1392
|
+
for (const [container, want] of requestedVolumes) {
|
|
1393
|
+
const have = liveVolumes.get(container);
|
|
1394
|
+
if (!have || have.host !== want.host || have.readOnly !== want.readOnly) {
|
|
1361
1395
|
volumesDrift = true;
|
|
1362
1396
|
break;
|
|
1363
1397
|
}
|
|
@@ -1712,6 +1746,18 @@ const nofileRegrantAttempts = new Map();
|
|
|
1712
1746
|
export function _clearNofileRegrantAttemptsForTesting() {
|
|
1713
1747
|
nofileRegrantAttempts.clear();
|
|
1714
1748
|
}
|
|
1749
|
+
// Names announced as wedged (drift recreate deferred because the container
|
|
1750
|
+
// is unkillable — orphaned rootless userns). Fired once per wedge so the
|
|
1751
|
+
// operator gets one actionable error instead of a per-reconcile drift loop;
|
|
1752
|
+
// self-clears when the container is recovered: a reconcile that finds no
|
|
1753
|
+
// drift, a successful in-process recreate, or the container going missing
|
|
1754
|
+
// (e.g. the operator ran `<runtime> rm -f`) each delete the name (see the
|
|
1755
|
+
// three `announcedWedged.delete` sites). In-memory by design — a fresh
|
|
1756
|
+
// Signal K process re-announces once.
|
|
1757
|
+
const announcedWedged = new Set();
|
|
1758
|
+
export function _clearAnnouncedWedgedForTesting() {
|
|
1759
|
+
announcedWedged.clear();
|
|
1760
|
+
}
|
|
1715
1761
|
/**
|
|
1716
1762
|
* Translate `ContainerConfig.ulimits` into the dockerode
|
|
1717
1763
|
* `HostConfig.Ulimits` array (`{ Name, Soft, Hard }`). A bare number sets
|
|
@@ -1822,7 +1868,7 @@ function buildCreateOptions(name, config, runtime, healthcheck, debug = () => {
|
|
|
1822
1868
|
if (config.volumes) {
|
|
1823
1869
|
hostConfig.Binds = [];
|
|
1824
1870
|
for (const [containerPath, raw] of Object.entries(config.volumes)) {
|
|
1825
|
-
hostConfig.Binds.push(volumeArg(volumeSource(raw), containerPath, runtime));
|
|
1871
|
+
hostConfig.Binds.push(volumeArg(volumeSource(raw), containerPath, runtime, typeof raw === "string" ? false : (raw.readOnly ?? false)));
|
|
1826
1872
|
}
|
|
1827
1873
|
}
|
|
1828
1874
|
// Host devices. Node entries land in HostConfig.Devices; directory
|
|
@@ -2033,8 +2079,13 @@ prior, _postRecreate = false, _pull = pullImage) {
|
|
|
2033
2079
|
}
|
|
2034
2080
|
}
|
|
2035
2081
|
const { drifted } = diffContainerConfig(config, live, runtime, prior);
|
|
2036
|
-
if (drifted.length === 0)
|
|
2082
|
+
if (drifted.length === 0) {
|
|
2083
|
+
// No drift to apply: if this container was previously announced as
|
|
2084
|
+
// wedged, it has recovered on its own (e.g. the operator ran
|
|
2085
|
+
// `<runtime> system migrate`), so re-arm the one-shot advisory.
|
|
2086
|
+
announcedWedged.delete(name);
|
|
2037
2087
|
return false;
|
|
2088
|
+
}
|
|
2038
2089
|
debug(`Container ${fullName} config drift detected (${drifted.join(", ")}); recreating`);
|
|
2039
2090
|
return recreateUnlessWedged(drifted.join(", "));
|
|
2040
2091
|
};
|
|
@@ -2055,11 +2106,62 @@ prior, _postRecreate = false, _pull = pullImage) {
|
|
|
2055
2106
|
debug(`Container ${fullName} could not be removed to apply drift ` +
|
|
2056
2107
|
`(${driftDesc}) — it is still running; keeping it and deferring ` +
|
|
2057
2108
|
`the recreate. ${err.message}`);
|
|
2109
|
+
// Announce the wedge once. This is not the ordinary "still shutting
|
|
2110
|
+
// down, try next reconcile" case — the runtime refused to stop or
|
|
2111
|
+
// remove a still-running container. `kind === "permission"` covers
|
|
2112
|
+
// "operation not permitted" (EPERM) and "permission denied" (EACCES),
|
|
2113
|
+
// and the orphaned-user-namespace diagnosis is specific to rootless
|
|
2114
|
+
// Podman — on Docker or rootful Podman an EPERM on remove is not a
|
|
2115
|
+
// pause-session wedge and `podman system migrate` would not apply. So
|
|
2116
|
+
// give the userns remedy only for a rootless-Podman EPERM; otherwise a
|
|
2117
|
+
// generic permission remedy that echoes the runtime's own message.
|
|
2118
|
+
// Either way it needs operator action no API call can perform, so
|
|
2119
|
+
// announce once instead of looping the drift log silently.
|
|
2120
|
+
if (!announcedWedged.has(name)) {
|
|
2121
|
+
announcedWedged.add(name);
|
|
2122
|
+
const raw = err.message.toLowerCase();
|
|
2123
|
+
const isUsernsWedge = runtime.runtime === "podman" &&
|
|
2124
|
+
runtime.isRootless === true &&
|
|
2125
|
+
(raw.includes("operation not permitted") || raw.includes("eperm"));
|
|
2126
|
+
// Data-safety reassurance only when it is actually true: a force-
|
|
2127
|
+
// remove + recreate keeps host bind mounts (and named volumes), but
|
|
2128
|
+
// NOT the container's writable layer. Add the note only when this
|
|
2129
|
+
// container has at least one host-path mount (source starts with
|
|
2130
|
+
// "/"), which the managed database containers that wedge in practice
|
|
2131
|
+
// always do.
|
|
2132
|
+
const hasBindMount = Object.values(config.volumes ?? {}).some((v) => {
|
|
2133
|
+
const source = typeof v === "string" ? v : v.source;
|
|
2134
|
+
// A host path (absolute or explicitly relative) is a bind mount; a
|
|
2135
|
+
// bare name is a named volume. Both survive a recreate, but only a
|
|
2136
|
+
// bind mount is what the managed database containers use.
|
|
2137
|
+
return source.startsWith("/") || source.startsWith(".");
|
|
2138
|
+
});
|
|
2139
|
+
const dataNote = hasBindMount
|
|
2140
|
+
? ` Recorded data is safe — it lives in a host bind mount, which removing and recreating the container does not touch.`
|
|
2141
|
+
: ``;
|
|
2142
|
+
const reason = isUsernsWedge
|
|
2143
|
+
? `Container ${fullName} is wedged: the ${runtime.runtime} runtime ` +
|
|
2144
|
+
`cannot stop or remove it (operation not permitted), so the ` +
|
|
2145
|
+
`${driftDesc} change cannot be applied. This is usually an orphaned ` +
|
|
2146
|
+
`rootless user namespace after a ${runtime.runtime} service restart. ` +
|
|
2147
|
+
`Recover with '${runtime.runtime} system migrate' (or kill the ` +
|
|
2148
|
+
`container's conmon and child processes, then '${runtime.runtime} ` +
|
|
2149
|
+
`rm -f ${fullName}'), then restart the plugin.${dataNote}`
|
|
2150
|
+
: `Container ${fullName} could not be stopped or removed to apply the ` +
|
|
2151
|
+
`${driftDesc} change (${err.message}). A mount the removal touches — ` +
|
|
2152
|
+
`or the ${runtime.runtime} API socket — is not writable by this user. ` +
|
|
2153
|
+
`Fix the permissions, then remove the container ` +
|
|
2154
|
+
`('${runtime.runtime} rm -f ${fullName}') and restart the plugin.${dataNote}`;
|
|
2155
|
+
safeInvokeContainerWedged(options?.onContainerWedged, { name, drift: driftDesc, reason }, (cbErr) => debug(`ensureRunning(${name}): onContainerWedged handler threw: ${cbErr instanceof Error ? cbErr.message : String(cbErr)}`));
|
|
2156
|
+
}
|
|
2058
2157
|
return false;
|
|
2059
2158
|
}
|
|
2060
2159
|
throw err;
|
|
2061
2160
|
}
|
|
2062
2161
|
await ensureRunning(runtime, name, config, debug, options, client, prior, true, _pull);
|
|
2162
|
+
// Recreate succeeded — the wedge (if any) is cleared, so re-arm the
|
|
2163
|
+
// one-shot advisory for a future one.
|
|
2164
|
+
announcedWedged.delete(name);
|
|
2063
2165
|
return true;
|
|
2064
2166
|
};
|
|
2065
2167
|
// Floating-tag digest drift: pull the tag, compare the registry-fresh
|
|
@@ -2227,6 +2329,13 @@ prior, _postRecreate = false, _pull = pullImage) {
|
|
|
2227
2329
|
return;
|
|
2228
2330
|
}
|
|
2229
2331
|
case "missing": {
|
|
2332
|
+
// A missing container cannot be wedged. If a prior wedge was announced
|
|
2333
|
+
// for this name and the operator recovered it the way the advisory
|
|
2334
|
+
// recommends (`<runtime> rm -f <name>`), the container is now gone and
|
|
2335
|
+
// about to be recreated fresh — re-arm so a future wedge on the reused
|
|
2336
|
+
// name is announced again. (The in-process recreate and no-drift paths
|
|
2337
|
+
// clear it too; this covers the externally-removed path.)
|
|
2338
|
+
announcedWedged.delete(name);
|
|
2230
2339
|
const hasImage = await imageExists(runtime, imageRef, client);
|
|
2231
2340
|
if (!hasImage) {
|
|
2232
2341
|
debug(`Pulling ${imageRef}...`);
|