Skip to content

Commit adf504a

Browse files
Zbus Debug test in Zinit services (#2667)
* feat: added zbusdebug as a test for zbus services * feat: added zbusdebug as a test for storaged, containerd * fix: added the test to contd not containerd
1 parent 99f951b commit adf504a

8 files changed

Lines changed: 8 additions & 1 deletion

File tree

etc/zinit/contd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
exec: contd --broker unix:///var/run/redis.sock --root /var/cache/modules/contd
2+
test: zbusdebug --module container
23
after:
34
- containerd
45
- boot

etc/zinit/flistd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
exec: flistd --broker unix:///var/run/redis.sock --root /var/cache/modules/flistd
2+
test: zbusdebug --module flist
23
after:
34
- boot
45
# identityd is added to make sure all binaries are up to date

etc/zinit/gateway.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
exec: gateway --broker unix:///var/run/redis.sock --root /var/cache/modules/gateway
2+
test: zbusdebug --module gateway
23
after:
34
- boot
45
- networkd

etc/zinit/noded.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
exec: ip netns exec ndmz noded --broker unix:///var/run/redis.sock
2+
test: zbusdebug --module node
23
after:
34
- boot
45
- networkd

etc/zinit/provisiond.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# provisind runs inside ndmz. the ndmz has rules to accept connection to
22
# provisiond address :2021
33
exec: provisiond --broker unix:///var/run/redis.sock --root /var/cache/modules/provisiond
4+
test: zbusdebug --module provision
45
after:
56
- boot
67
- flistd

etc/zinit/qsfsd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
exec: qsfsd --broker unix:///var/run/redis.sock --root /var/cache/modules/qsfsd
2+
test: zbusdebug --module qsfsd
23
after:
34
- boot
45
- contd

etc/zinit/storaged.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
exec: storaged --broker unix:///var/run/redis.sock
22
# we only consider the storaged is running only if the /var/cache is mounted
3-
test: mountpoint /var/cache
3+
test: sh -c "mountpoint /var/cache && zbusdebug --module storage"
44
after:
55
- node-ready

etc/zinit/vmd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
exec: vmd --broker unix:///var/run/redis.sock
2+
test: zbusdebug --module vmd
23
after:
34
- boot
45
- networkd

0 commit comments

Comments
 (0)