test ubuntu-21.10-64:tests/main/services-install-hook-can-run-svcs:enableflag is flaky
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The test sometimes fails because the snapctl command hangs when the install hook tries to start the service:
+ /home/gopath/
error: cannot perform the following tasks:
- Run install hook of "test-snapd-
-----
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: set_effective_
DEBUG: set_effective_
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: set_effective_
DEBUG: set_effective_
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: set_effective_
DEBUG: set_effective_
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: pivot_root /tmp/snap.
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: rmdir /var/lib/
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: set_effective_
DEBUG: set_effective_
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: performing operation: (disabled) use debug build to see details
DEBUG: set_effective_
DEBUG: calling snapd tool snap-update-ns
DEBUG: waiting for snapd tool snap-update-ns to terminate
DEBUG: changing apparmor hat to mount-namespace
DEBUG: helper process waiting for command
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: requesting changing of apparmor profile on next exec to snap-update-
common.go:60: DEBUG: locking mount namespace of snap "test-snapd-
common.go:81: DEBUG: freezing processes of snap "test-snapd-
freezer.go:197: DEBUG: freeze, skipping own group /sys/fs/
common.go:89: DEBUG: unlocking mount namespace of snap "test-snapd-
common.go:91: DEBUG: thawing processes of snap "test-snapd-
DEBUG: snap-update-ns finished successfully
DEBUG: set_effective_
DEBUG: saved mount namespace meta-data to /run/snapd/
DEBUG: sending command 1 to helper process (pid: 145086)
DEBUG: waiting for response from helper
DEBUG: sanity timeout reset and disabled
DEBUG: helper process received command 1
DEBUG: capturing per-snap mount namespace
DEBUG: mount namespace of process 145076 preserved as test-snapd-
DEBUG: helper process waiting for command
DEBUG: sanity timeout initialized and set for 30 seconds
DEBUG: releasing lock 8
DEBUG: sending command 0 to helper process (pid: 145086)
DEBUG: waiting for response from helper
DEBUG: sanity timeout reset and disabled
DEBUG: helper process received command 0
DEBUG: helper process exiting
DEBUG: waiting for the helper process to exit
DEBUG: helper process exited normally
DEBUG: resetting PATH to values in sync with core snap
DEBUG: set_effective_
DEBUG: creating user data directory: /root/snap/
DEBUG: requesting changing of apparmor profile on next exec to snap.test-
DEBUG: ruid: 0, euid: 0, suid: 0
DEBUG: loading bpf program for security tag snap.test-
DEBUG: read 6128 bytes from /var/lib/
DEBUG: read 152 bytes from /var/lib/
DEBUG: execv(/
DEBUG: argv[1] = --hook=install
DEBUG: argv[2] = test-snapd-
DEBUG: umask restored to 022
DEBUG: working directory re-interpreted to /
error: error running snapctl: start command is taking too long
-----)
Full log at https:/
Changed in snapd: | |
status: | New → Fix Released |
importance: | Undecided → Medium |