File: pacemaker

package info (click to toggle)
pacemaker 3.0.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 68,576 kB
  • sloc: xml: 160,564; ansic: 143,744; python: 5,670; sh: 2,969; makefile: 2,427
file content (19 lines) | stat: -rwxr-xr-x 506 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

OUTPUT="${AUTOPKGTEST_ARTIFACTS:-.}/crm_mon.txt"

journalctl -u corosync | fgrep 'knet_handle_new failed: File name too long' && {
    journalctl -u corosync
    echo 'This is expected in unprivileged containers, skipping the test.'
    echo 'Avoid by sysctl -w net.core.{r,w}mem_max=8388608 (KNET_RING_RCVBUFF) before dropping privileges.'
    exit 77
}

# Wait more than dc-deadtime (20s by default)
sleep 25

crm_mon -1 >"$OUTPUT"
cat "$OUTPUT"
fgrep -q "Online: [ node1 ]" "$OUTPUT"