65 Commits

Author SHA1 Message Date
utam0k
808d58c3ce ws-daemon: Plant some traces around the hooks 2022-12-28 23:23:37 +01:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
utam0k
2658f1ffe2 IWS: Don't record the error log from getResourceInfo when the workspace has gone. 2022-10-27 16:04:41 +02:00
Thomas Schubart
d31eb808f1 [nsinsider] Make setup helpers for nsinsider reusable 2022-08-24 14:14:40 +02:00
utam0k
056816165d ws-daemon: Returns no limit if cpu.max does not exist.
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-08-24 13:22:40 +02:00
Pavel Tumik @ GitPod
c8c906e278 replace os.IsNotExist with errors.Is(err, fs.ErrNotExist) 2022-08-24 03:35:40 +02:00
Andrew Farries
c4363513a5 Run gofmt
gofmt -w .

From the repository root.
2022-08-08 10:54:52 -03:00
Thomas Schubart
2ec4178e28 Detach dangling base mounts 2022-08-02 16:27:49 -03:00
Manuel Alejandro de Brito Fontes
d4f55a17b4 [ws-daemon] Remove WorkspaceInfo noisy log 2022-07-07 22:56:54 +05:30
utam0k
f4dee111c2 ws-damon: reduce error griping 2022-07-05 05:33:52 +05:30
Thomas Schubart
38c8b23435 [ws-daemon] Implement workspace info endpoint 2022-06-28 22:45:37 +05:30
Pavel Tumik
301190db53 Add persistent volume support for workspaces
fix
2022-05-04 03:08:19 +05:30
Thomas Schubart
d1ca55d699 Evacuate cgroup with both shift methods 2022-04-20 02:54:32 +05:30
utam0k
d027ab96df ws-daemon: align to decide if cgroup v2. 2022-04-20 02:54:32 +05:30
Christian Weichel
94e147b90e [ws-daemon] Enable workspace IP forwarding
to make the new nftables setup work
2022-04-13 03:45:25 +05:30
Christian Weichel
274a435f11 [ws-daemon] Enable workspace IP forwarding
to make the new nftables setup work
2022-04-13 01:57:25 +05:30
utam0k
f046782319 ws-dameon: implement the SetupPairVeths function. 2022-04-11 16:07:24 +05:30
Anton Kosyakov
b3ea6db43e Revert "ws-dameon: implement the SetupPairVeths function."
This reverts commit a960121dce48a80c3e5919f4fe7f056781ef9504.
2022-04-08 18:19:21 +05:30
utam0k
a960121dce ws-dameon: implement the SetupPairVeths function. 2022-04-08 13:41:21 +05:30
utam0k
fe6438991b ws-daemon: update the docs for cgroup v2. 2022-03-07 13:07:14 +05:30
Christian Weichel
5702a9c74c [iws] Prepare cgroup when prearing for user NS 2022-03-04 04:08:11 +05:30
Christian Weichel
b6a851ebda [ws-daemon] Add EvacuateCGroup support to IWS 2022-03-04 04:08:11 +05:30
Thomas Schubart
155e88ca60 Log correct fs 2022-01-26 20:11:18 +01:00
Christian Weichel
5a566b9c7f [ws-daemon] Umount dangling mask mounts 2021-11-19 11:28:16 +01:00
Christian Weichel
cc38b8caff [workspacekit] Support workspace-wide netns 2021-10-26 20:42:04 +02:00
Prince Rachit Sinha
27a6a66dd0 Use OWI object to get all relevant fields 2021-10-08 06:51:55 -03:00
Prince Rachit Sinha
dd287053d3 Add instance id in the logs of iws.go 2021-10-08 06:51:55 -03:00
Manuel Alejandro de Brito Fontes
88e4f7b5e5 [ws-daemon] Increase messages log level 2021-09-22 07:09:47 -03:00
Manuel Alejandro de Brito Fontes
82df304e12 [ws-daemon] Remove not useful log 2021-09-16 05:39:41 -03:00
Manuel Alejandro de Brito Fontes
4f18f95b5d [common-go] Do not log EOF errors decoding JSON 2021-09-15 20:27:40 +05:30
Manuel Alejandro de Brito Fontes
60d5ce3521 [nsinsider] Refactoring to use upstream runc 2021-09-13 16:16:38 +05:30
Manuel Alejandro de Brito Fontes
347ad95d80 Switch from fmt.Errorf to xerrors.Errorf 2021-08-30 02:47:28 -03:00
Christian Weichel
8f867ae621 [workspacekit] Don't bogously filter proc mount targets 2021-08-11 21:08:10 +02:00
Simon Emms
76a1e7b957 [ws-daemon] Collect logs from runc command and log nsinsider properly 2021-08-11 17:48:10 +02:00
Christian Weichel
3d313d29af [ws-daemon] Serve IWS on restart 2021-08-10 12:11:09 +02:00
Christian Weichel
55274105ea [ws-daemon] Support sysfs mount using IWS 2021-08-02 10:16:01 +02:00
Christian Weichel
b81f00b91f [ws-daemon] Log instance ID with all nsinsider ops 2021-07-13 12:32:24 +02:00
Christian Weichel
f70c7420af [ws-daemon] Properly chown /dev/fuse 2021-06-25 11:02:23 +02:00
Manuel Alejandro de Brito Fontes
b6eaadbf18 [ws-manager] Revert #4338 and fix /dev/net/tun permissions 2021-06-23 17:57:46 -04:00
Christian Weichel
2dbb3915de Revert "[ws-manager] mknod /dev/net/tun"
This reverts commit 44a47ef48e5edd0d4b239138fb6ff9fb949c67bd.
2021-05-28 17:49:44 +02:00
Christian Weichel
1646d5cc2a [ws-daemon] Force fuse fsshift for FWB 2021-05-26 13:10:54 +02:00
Manuel Alejandro de Brito Fontes
9d4f213d24 Bind mounting /workspace in ring1 only if not running FWB 2021-05-26 13:10:54 +02:00
Manuel Alejandro de Brito Fontes
001fde1661 [ws-daemon] Refactor full workspace backup 2021-05-26 13:10:54 +02:00
Manuel Alejandro de Brito Fontes
154960b52d Enable fuse-overlayfs 2021-05-18 09:12:14 -04:00
Christian Weichel
44a47ef48e [ws-manager] mknod /dev/net/tun 2021-05-07 17:50:44 +02:00
Manuel Alejandro de Brito Fontes
745dfbc5bb
[ws-daemon] Closing grpc server and daemon socket (#3824) 2021-04-07 22:22:30 +02:00
Manuel Alejandro de Brito Fontes
dfda855db9 Embed the Unimplemented implementation 2021-04-07 07:39:04 -04:00
Manuel Alejandro de Brito Fontes
9e6635dbd3
[user-namespaces] Support FUSE FS shift (#3384)
[user-namespaces] Support FUSE FS shift
2021-03-25 08:13:30 -03:00
Manuel Alejandro de Brito Fontes
326b3227be Enable user_namespace feature 2021-03-22 08:22:01 -03:00
Manuel Alejandro de Brito Fontes
76a04a0824 [ws-daemon] Lint code and cleanup protobuf 2021-03-16 07:35:57 -03:00