Commit Graph
1176 Commits
Author SHA1 Message Date
Pasha Sviderski 45cf87a0cb feat(caddy): order local machine upstreams first in generated Caddyfile 2026-04-23 19:42:33 +10:00
Pasha Sviderski 9ce624facd fix(logs): print logs with zero timestamps immediately to prevent indefinite stalling 2026-04-23 18:04:39 +10:00
Pasha Sviderski c38d916dbb chore: hide STORE column in 'uc images' output if all machines use containerd image store 2026-04-23 17:52:45 +10:00
Pasha Sviderski 50057c42e0 fix: machine logs timestamp parsing and streaming for systemd <v255 2026-04-23 17:31:31 +10:00
Pasha Sviderski f379bf4c14 docs: update screenshot of demo website deployment with new plan in README 2026-04-23 15:47:59 +10:00
Pasha Sviderski dd3d809c6e chore: use a non-registry image format for website 2026-04-23 15:19:14 +10:00
Pasha Sviderski 44897f351f docs: update the length of the rerecorded demo app deploment video 2026-04-23 14:27:40 +10:00
Pasha Sviderski c888e0a76f fix: probe for checking TCP forwarding over SSH (fixes #321) 2026-04-22 20:49:51 +10:00
Pasha Sviderski 7b554cd703 chore: style the machine reset prompt in red and fix the padding for [y/N] 2026-04-22 19:00:38 +10:00
Pasha Sviderski d340659370 chore: enrich image push errors with errors from proxy to unregistry 2026-04-22 19:00:38 +10:00
Miek GiebenandGitHub 6fb68c22c5 fix: correctly wait for journalctl processes to not leave zombies when streaming machine logs (#325)
* fix: call cmd.Wait()

Even though the context is cancelled we still need to call cmd.Wait()
after a cmd.Start() to clean up the child (reap) process. Not doing so
results in a zombie journalctl.

I have manually tested this, as I'm still not sure how to e2e test for
this in a simple manner.

Before:

```
root@uncloud2:~# ps aux|grep jou
root         313  0.0  1.2  42272 23352 ?        S<s  Apr20   0:10 /usr/lib/systemd/systemd-journald
root       15751  0.0  0.0      0     0 pts/0    Z+   07:02   0:00 [journalctl] <defunct>
root       15754  0.0  0.0      0     0 pts/0    Z+   07:02   0:00 [journalctl] <defunct>
```

After:

```
root         313  0.0  1.2  42272 23592 ?        S<s  Apr20   0:10 /usr/lib/systemd/systemd-journald
```

* follow() doesnt need wait

We can keep the wait function more contraint, as follow does not need it

Signed-off-by: Miek Gieben <miek@miek.nl>

---------

Signed-off-by: Miek Gieben <miek@miek.nl>
2026-04-22 19:00:15 +10:00
Pasha Sviderski b1897ce719 fix(nightly): inject correct semver 0.<next-minor>.0-nightly-abc1234 for nightly builds 2026-04-22 15:41:55 +10:00
Pasha Sviderski 47199c36ce fix: containerd socket detection and unregistry startup on machine reboot 2026-04-22 15:31:18 +10:00
Pasha Sviderski d812cf8f6e docs: minor rewrite of warning in install.sh 2026-04-22 14:01:31 +10:00
Pasha Sviderski 39690eed72 docs: regenerate CLI reference 2026-04-22 14:00:50 +10:00
Pasha Sviderski 56a54ab3fd feat(logs): include hook information in log entry formatting 2026-04-22 13:55:42 +10:00
Pasha Sviderski 303c8e4506 feat(deploy): print last logs from new container when fails to become healthy 2026-04-22 13:45:09 +10:00
Pasha Sviderski 8afe52367f feat(deploy): print last logs from failed pre-deploy hook 2026-04-22 12:43:19 +10:00
Pasha Sviderski 5b5cd44d68 refactor(logs): encapsulate printing errors in PrintEntry 2026-04-22 11:32:23 +10:00
Pasha Sviderski 19c13f6cd2 refactor: move internal logs pkg from cmd to internal/cli 2026-04-22 11:27:30 +10:00
Pasha Sviderski 0f5f8727a3 test(logs): add unit tests for ParseServiceArgs function 2026-04-22 11:24:13 +10:00
Pasha Sviderski 2045819735 feat(logs): update 'uc logs' command to support filtering by service/container 2026-04-22 11:23:21 +10:00
Pasha Sviderski cb72f67560 docs: add buildx/BuildKit prerequisites for e2e tests to HACKING.md 2026-04-22 08:14:34 +10:00
Pasha Sviderski b852d34068 refactor(logs): update log formatting for systemd services and handle merging in the client 2026-04-21 22:00:38 +10:00
Miek GiebenandGitHub 7e1b91c372 feat: ucind: implement cluster list command (#316)
* ucind: implement cluster list

I keep forgetting my ucind clusters, that add the missing list command:
```
% ./ucind cluster list
NAME    MACHINES
miek1   machine-1
```

Just the name would have been enough, but to actually make use of the
tui table a machines list is handy as well.
(There isn't much bubbletea in ucind, but I thought lets start now).

Signed-off-by: Miek Gieben <miek@miek.nl>

* Filter directly when listing

Filter on ucind managed while listing clusters

Signed-off-by: Miek Gieben <miek@miek.nl>

---------

Signed-off-by: Miek Gieben <miek@miek.nl>
2026-04-21 19:43:04 +10:00
Miek GiebenandGitHub 6409a47c71 feat: add uc ctx show command to print the current cluster context (#317)
* feat: add uc ctx show

This only shows the current context and nothing more. On error nothing
is printed (also no error). This is useful to include in your prompt.

See: #314

Signed-off-by: Miek Gieben <miek@miek.nl>

* docs

Signed-off-by: Miek Gieben <miek@miek.nl>

---------

Signed-off-by: Miek Gieben <miek@miek.nl>
2026-04-21 18:22:02 +10:00
Miek GiebenandGitHub f44ada06b9 feat(logs): 'uc machine logs' to view logs from systemd services on machines (#283)
* logging: client side

Create internal/logs and put abstracted way service and machine logging in there
This adds the bits to do machine logging of the services.

See #273 and discussion in #158

Signed-off-by: Miek Gieben <miek@miek.nl>

* go mod tidy

Signed-off-by: Miek Gieben <miek@miek.nl>

* fix typo

Signed-off-by: Miek Gieben <miek@miek.nl>

* Hook it up further

Signed-off-by: Miek Gieben <miek@miek.nl>

* Check unit validity server side

Signed-off-by: Miek Gieben <miek@miek.nl>

* Make cli-docs

Signed-off-by: Miek Gieben <miek@miek.nl>

* Add newline to logs

Signed-off-by: Miek Gieben <miek@miek.nl>

* docs

Signed-off-by: Miek Gieben <miek@miek.nl>

* Polish a bit

Signed-off-by: Miek Gieben <miek@miek.nl>

* comment fix

Signed-off-by: Miek Gieben <miek@miek.nl>

* There is no groupid

Signed-off-by: Miek Gieben <miek@miek.nl>

---------

Signed-off-by: Miek Gieben <miek@miek.nl>
2026-04-21 17:27:39 +10:00
Pasha Sviderski 3a79aeffcc fix: SSH control socket path in WSL2 when runtime dir doesn't exist (fixes #319) 2026-04-20 14:36:26 +10:00
Pasha Sviderski 84990ad692 refactor(rtt): use proto Duration, add tests 2026-04-20 11:36:44 +10:00
Justin BradfordandGitHub 8d023f5c53 feat(rtt): 'machine rtt' command to show round-trip time between macines usign using gossip data (#226)
* Add corrosion admin client function to get RTT to other machines in the cluster

* Add `uc machine rtt` showing all pair-wise RTT stats from corrosion

* Add long description to machine rtt command

* Include machine peer RTTs in InspectMachine instead of adding new gRPC API for it

* Add nil check on InspectMachine's Rtt field to protect from a potential edge case

* Generate docs for machine rtt command

* Handle m.Message being nil when a node is down or unavailble

* Update cli-docs

* Use tui Table instead of tabwriter

* Change reported RTT to the median rather than mean. Still calculate include stddev, as it might be a useful indication of network jitter.

* Show RTT to peers in `wg show` output

* Update cli docs
2026-04-20 08:01:20 +10:00
Miek GiebenandGitHub 1c0d48cb46 feat: ucind: allow overriding the config.yaml via env var (#315)
Use same logic as in uc to allow overriding the uncloud config location
via env var UNCLOUD_CONFIG. And remove the TODO.

Signed-off-by: Miek Gieben <miek@miek.nl>
2026-04-17 16:17:10 +10:00
Pasha Sviderski 4d5ca42a9d chore: add more info about cluster connections in error for 'machine rm' 2026-04-16 18:13:13 +10:00
Pasha Sviderski fdbffbf020 fix: close stale ControlMaster ssh connection for machine init/add 2026-04-16 17:28:05 +10:00
Pasha Sviderski 102421df19 fix: tests after DinD update 2026-04-15 21:00:12 +10:00
Pasha Sviderski f8234916cb fix: another attempt to fix flaky e2e tests: bump dind and get rid of incomplete cgroups fix, pre-allocate ucind machine port, allow ucind container retarts 2026-04-15 20:40:24 +10:00
Pasha Sviderski 208a561003 chore: trigger container sync on ActionHealthStatusRunning Docker event as well 2026-04-15 17:34:24 +10:00
Pasha Sviderski 6e9acefbe6 fix: Caddy config regeneration due to non-deterministic container serialisation (fixes #111) 2026-04-15 16:49:01 +10:00
Pasha Sviderski 39181708dd chore: set x-context for website deploy 2026-04-15 14:28:43 +10:00
Miek GiebenandGitHub e8111a419f feat: auto-accept only new SSH host keys using "-o StrictHostKeyChecking: accept-new" (#303)
* feat: add "StrictHostKeyChecking no" to ssh

Disable host key checking to prevent interaction with ssh.

Fixes: #297

Signed-off-by: Miek Gieben <miek@miek.nl>

* use accept-new instead of no

Signed-off-by: Miek Gieben <miek@miek.nl>

* fix tests

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix tests here as well

Signed-off-by: Miek Gieben <miek@miek.nl>

---------

Signed-off-by: Miek Gieben <miek@miek.nl>
2026-04-14 18:00:59 +10:00
Anton Ovchinnikov 9cfcf49d28 ci: Update cache key for nightly builds 2026-04-13 23:25:29 +02:00
Anton Ovchinnikov 60ff088971 ci: Add go build/module caching 2026-04-13 23:08:32 +02:00
Anton Ovchinnikov 3eda6cdc22 docs: Add info about nightly release 2026-04-13 22:19:32 +02:00
Anton Ovchinnikov b1be80adf2 ci: Run nightly builds on macos runners 2026-04-13 19:58:00 +02:00
Anton OvchinnikovandGitHub 02a318cd2e ci: Build and publish latest (nightly) binaries (#308)
* ci: Build and publish latest binaries

* Use goreleaser, rename to nightly

* Use exact target
2026-04-13 19:34:12 +02:00
Pasha Sviderski f41590157f chore: make experiments a separate Go module, remove unnecessary dependencies from root module 2026-04-13 16:48:49 +10:00
Miek GiebenandGitHub dd989a281e feat: check automatically if uc can connect via Unix socket when running on cluster machine (#296)
* Check autom if we can connect via Unix socket

When there is no config, but a unix socket does exist, connect via the
unix socket. Prohibit saving the config if this is the case.

Fixes: #148

Use the new CutPrefix to shorten some code.

Signed-off-by: Miek Gieben <miek@miek.nl>

* remove error checking; it can not be hit

Signed-off-by: Miek Gieben <miek@miek.nl>

* Extra error text when logged in locally

Signed-off-by: Miek Gieben <miek@miek.nl>

---------

Signed-off-by: Miek Gieben <miek@miek.nl>
2026-04-13 16:37:48 +10:00
Pasha Sviderski f60a9ff293 chore: check SSH TCP forwarding for dial operations and return a friendlier error 2026-04-13 13:54:36 +10:00
Pasha Sviderski 07e380b95f chore(pre-deploy): warn about depends_on: service_completed_successfully to use pre-deploy hook instead v0.18.0 2026-04-10 17:08:38 +10:00
Pasha Sviderski 4e060914ec docs: add themed diagram to Pre-deploy hooks doc 2026-04-10 15:10:07 +10:00
Pasha Sviderski f317dde168 docs: move Compose extensions to a separate reference page 2026-04-09 20:24:48 +10:00