Skip to content

Unit test failure "reaper must be started" #747

@dimaqq

Description

@dimaqq

Happened once in GHA, but I can't reproduce locally (yet).
First seen after merging the UDP syslog from master into the fips branch.

panic: internal error: reaper must be started

goroutine 232 [running]:
github.com/canonical/pebble/internals/reaper.StartCommand(0xc0001afc80)
	/home/runner/work/pebble/pebble/internals/reaper/reaper.go:169 +0x3b2
github.com/canonical/pebble/internals/overlord/checkstate.(*execChecker).check(0xc0004e2310, {0xd5d328, 0xc0001ff6c0})
	/home/runner/work/pebble/pebble/internals/overlord/checkstate/checkers.go:192 +0xd5f
github.com/canonical/pebble/internals/overlord/checkstate.runCheck({0xd5d2b8, 0xc0000e6870}, {0xd584c0, 0xc0004e2310}, 0x5f5e100)
	/home/runner/work/pebble/pebble/internals/overlord/checkstate/handlers.go:137 +0xb9
github.com/canonical/pebble/internals/overlord/checkstate.(*CheckManager).doRecoverCheck.func1()
	/home/runner/work/pebble/pebble/internals/overlord/checkstate/handlers.go:167 +0xe5
github.com/canonical/pebble/internals/overlord/checkstate.(*CheckManager).doRecoverCheck(0xc000023a00, 0xc0001cab40, 0xc0001bc3c0)
	/home/runner/work/pebble/pebble/internals/overlord/checkstate/handlers.go:211 +0xae2
github.com/canonical/pebble/internals/overlord/state.(*TaskRunner).run.func1()
	/home/runner/work/pebble/pebble/internals/overlord/state/taskrunner.go:220 +0xa3
gopkg.in/tomb%2ev2.(*Tomb).run(0xc0001bc3c0, 0xc000193d70)
	/home/runner/go/pkg/mod/gopkg.in/tomb.v2@v2.0.0-20161208151619-d5d1b5820637/tomb.go:163 +0x3c
created by gopkg.in/tomb%2ev2.(*Tomb).Go in goroutine 182
	/home/runner/go/pkg/mod/gopkg.in/tomb.v2@v2.0.0-20161208151619-d5d1b5820637/tomb.go:159 +0x197
FAIL	github.com/canonical/pebble/internals/overlord/servstate	8.239s
?   	github.com/canonical/pebble/internals/overlord/servstate/servstatetest	[no test files]
ok  	github.com/canonical/pebble/internals/overlord/standby	1.125s
ok  	github.com/canonical/pebble/internals/overlord/state	27.535s
ok  	github.com/canonical/pebble/internals/plan	1.168s
ok  	github.com/canonical/pebble/internals/progress	1.952s
?   	github.com/canonical/pebble/internals/progress/progresstest	[no test files]
?   	github.com/canonical/pebble/internals/ptyutil	[no test files]
?   	github.com/canonical/pebble/internals/reaper	[no test files]
ok  	github.com/canonical/pebble/internals/servicelog	2.202s
ok  	github.com/canonical/pebble/internals/systemd	1.096s
ok  	github.com/canonical/pebble/internals/testutil	1.049s
ok  	github.com/canonical/pebble/internals/timeutil	1.031s
ok  	github.com/canonical/pebble/internals/timing	1.019s
ok  	github.com/canonical/pebble/internals/workloads	1.022s
?   	github.com/canonical/pebble/internals/wsutil	[no test files]
FAIL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions