Skip to content

v0.9.2

Choose a tag to compare

@github-actions github-actions released this 06 Sep 09:52
· 1387 commits to main since this release
v0.9.2

A one-service compose stack had no network at all

For the whole 0.9 line, a docker-compose.yml with one service came up with no egress. The auto-pod was gated on two services or more, on the reasoning that a pod exists to let services find each other and one service has nobody to find; but the pod is also the only thing that attaches pasta, so a lone service got no pod, no NAT and no /etc/resolv.conf.

It does not present as a missing network, which is why it survived: the image ships its own resolv.conf and looks healthy, so the failure surfaces as Could not resolve host and every diagnosis goes after DNS. curl http://1.1.1.1 from inside the box failed in 0 ms. There was no route.

Every compose test in this repo ran three services, which is how it shipped. The acceptance matrix now has a one-service case, red on the v0.9.1 binary and green here.

Also in this release

  • kern pod ls reported double the members. It counted lines in the pod's shared hosts file, and a compose member writes two of them. On v0.9.1: 1, 2 and 3 services read 2, 4 and 6 while kern ps read 1, 2 and 3. Both now read what kern ps reads.
  • compose up never said whether the stack had egress, so a stack with internet and one without printed the same sentence. It now names the state.
  • has_outbound answered from resolv.conf alone, so killing pasta left the predicate reporting egress for a pod with no route. It now also requires a live pasta.
  • restart: in a pod does not survive a reboot, and up now says so instead of trading it in silence.
  • kern killall --help, down --help and logout --help printed the whole 184-line reference.

Full detail in CHANGELOG.md.