Just for the record, I also did another run with:
https://storage.googleapis.com/snapd-spread-
tests/snaps/core18_20211102_amd64.snap and that also fails right away:

"""
$ git status
On branch tests-use-core18-from-gce
Your branch is up to date with 'sergiocazzolato/tests-use-core18-from-gce'.
$ git diff
[empty]
$ $GOPATH/bin/spread -repeat 100   
google:ubuntu-core-18-64:tests/main/services-disabled-kept-happy
...
2021-11-08 12:13:57 Error executing 
google:ubuntu-core-18-64:tests/main/services-disabled-kept-happy 
(nov081101-381415) : 
-----
+ . /home/gopath/src/github.com/snapcore/snapd/tests/lib/disabled-svcs.sh
++ SVC_MISSING_ERR_MSG='state.json is missing last-active-disabled-services in 
it:'
+ echo 'CASE 1'
CASE 1
+ echo 'Install the snap'
Install the snap
+ snap install --dangerous disabled-svcs-kept_1.0_all.snap
disabled-svcs-kept 1.0 installed
+ echo 'Check that state.json doesn'\''t contain last-active-disabled-services'
Check that state.json doesn't contain last-active-disabled-services
+ check_state_json_no_disabled_svcs
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state 
check-state '.data.snaps."disabled-svcs-kept" | 
."last-active-disabled-services"?' = null 'state.json has invalid 
last-active-disabled-services in it:'
+ echo 'CASE 2'
CASE 2
+ echo 'Disable a service in the snap'
Disable a service in the snap
+ snap stop --disable disabled-svcs-kept.svc
Stopped.
+ echo 'Check that it was actually disabled'
Check that it was actually disabled
+ retry -n 10 --wait 1 sh -c 'snap services disabled-svcs-kept | MATCH 
"disabled-svcs-kept\\.svc\\s+disabled\\s+inactive"'
+ echo 'Check that state.json still doesn'\''t contain 
last-active-disabled-services'
Check that state.json still doesn't contain last-active-disabled-services
+ check_state_json_no_disabled_svcs
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state 
check-state '.data.snaps."disabled-svcs-kept" | 
."last-active-disabled-services"?' = null 'state.json has invalid 
last-active-disabled-services in it:'
+ echo 'Disable the whole snap'
Disable the whole snap
+ snap disable disabled-svcs-kept
disabled-svcs-kept disabled
+ echo 'Check that state.json DOES contain last-active-disabled-services'
Check that state.json DOES contain last-active-disabled-services
+ check_state_json_yes_disabled_svcs
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state 
check-state '.data.snaps."disabled-svcs-kept" | 
."last-active-disabled-services"?' '!=' null 'state.json has invalid 
last-active-disabled-services in it:'
+ echo 'Enable the whole snap'
Enable the whole snap
+ snap enable disabled-svcs-kept
disabled-svcs-kept enabled
+ echo 'Check that the service is still disabled'
Check that the service is still disabled
+ MATCH 'disabled-svcs-kept\.svc\s+disabled\s+inactive'
+ snap services disabled-svcs-kept
+ echo 'Check that state.json still doesn'\''t contain 
last-active-disabled-services'
Check that state.json still doesn't contain last-active-disabled-services
+ check_state_json_no_disabled_svcs
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state 
check-state '.data.snaps."disabled-svcs-kept" | 
."last-active-disabled-services"?' = null 'state.json has invalid 
last-active-disabled-services in it:'
+ echo 'CASE 3'
CASE 3
+ echo 'Refresh the snap'
Refresh the snap
+ snap install --dangerous disabled-svcs-kept_1.0_all.snap
disabled-svcs-kept 1.0 installed
+ echo 'Check that the service is still disabled'
Check that the service is still disabled
+ MATCH 'disabled-svcs-kept\.svc\s+disabled\s+inactive'
+ snap services disabled-svcs-kept
+ echo 'Check that state.json still doesn'\''t contain 
last-active-disabled-services'
Check that state.json still doesn't contain last-active-disabled-services
+ check_state_json_no_disabled_svcs
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state 
check-state '.data.snaps."disabled-svcs-kept" | 
."last-active-disabled-services"?' = null 'state.json has invalid 
last-active-disabled-services in it:'
+ echo 'CASE 4'
CASE 4
+ echo 'Revert the snap'
Revert the snap
+ snap revert disabled-svcs-kept --revision=x1
disabled-svcs-kept reverted to 1.0
+ echo 'Check that the service is still disabled'
Check that the service is still disabled
+ MATCH 'disabled-svcs-kept\.svc\s+disabled\s+inactive'
+ snap services disabled-svcs-kept
+ echo 'Check that state.json still doesn'\''t contain 
last-active-disabled-services'
Check that state.json still doesn't contain last-active-disabled-services
+ check_state_json_no_disabled_svcs
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state 
check-state '.data.snaps."disabled-svcs-kept" | 
."last-active-disabled-services"?' = null 'state.json has invalid 
last-active-disabled-services in it:'
+ echo 'Refresh back to the new revision to unmark it as blacklisted'
Refresh back to the new revision to unmark it as blacklisted
+ snap refresh disabled-svcs-kept --revision=x2
disabled-svcs-kept 1.0 refreshed
+ echo 'CASE 5'
CASE 5
+ echo 'Refresh to a new revision with a snap service renamed'
Refresh to a new revision with a snap service renamed
+ snap install --dangerous disabled-svcs-kept_2.0_all.snap
disabled-svcs-kept 2.0 installed
+ echo 'Check that state.json has the old service saved'
Check that state.json has the old service saved
+ check_state_json_specific_disabled_svc svc
+ SVC=svc
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state 
check-state '.data.snaps."disabled-svcs-kept" | 
."last-active-disabled-services"? | .[]' = svc 'state.json is missing 
last-active-disabled-services in it:'
+ echo 'CASE 6'
CASE 6
+ echo 'Revert the snap to the old revision with a service disabled'
Revert the snap to the old revision with a service disabled
+ snap revert disabled-svcs-kept --revision=x2
disabled-svcs-kept reverted to 1.0
+ echo 'Check that the service is disabled again'
Check that the service is disabled again
+ MATCH 'disabled-svcs-kept\.svc\s+disabled\s+inactive'
+ snap services disabled-svcs-kept
+ echo 'Check that state.json no longer contains last-active-disabled-services'
Check that state.json no longer contains last-active-disabled-services
+ check_state_json_no_disabled_svcs
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state 
check-state '.data.snaps."disabled-svcs-kept" | 
."last-active-disabled-services"?' = null 'state.json has invalid 
last-active-disabled-services in it:'
+ echo 'CASE 7'
CASE 7
+ echo 'Re-refresh forward to new revision with renamed service not disabled'
Re-refresh forward to new revision with renamed service not disabled
+ snap refresh disabled-svcs-kept --revision=x3
disabled-svcs-kept 2.0 refreshed
+ echo 'Check that the new service was not disabled'
Check that the new service was not disabled
+ MATCH 'disabled-svcs-kept\.svc2\s+enabled\s+active'
+ snap services disabled-svcs-kept
+ echo 'Check that state.json now contains the old service in 
last-active-disabled-services'
Check that state.json now contains the old service in 
last-active-disabled-services
+ check_state_json_specific_disabled_svc svc
+ SVC=svc
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state 
check-state '.data.snaps."disabled-svcs-kept" | 
."last-active-disabled-services"? | .[]' = svc 'state.json is missing 
last-active-disabled-services in it:'
+ echo 'Disable the new service'
Disable the new service
+ snap stop --disable disabled-svcs-kept.svc2
Stopped.
+ echo 'Check that the new service IS NOW disabled'
Check that the new service IS NOW disabled
+ MATCH 'disabled-svcs-kept\.svc2\s+disabled\s+inactive'
+ snap services disabled-svcs-kept
+ echo 'CASE 8'
CASE 8
+ echo 'Revert the snap to the old revision with a service disabled'
Revert the snap to the old revision with a service disabled
+ snap revert disabled-svcs-kept --revision=x2
disabled-svcs-kept reverted to 1.0
+ echo 'Check that the old service is disabled again'
Check that the old service is disabled again
+ MATCH 'disabled-svcs-kept\.svc\s+disabled\s+inactive'
+ snap services disabled-svcs-kept
+ echo 'Check that state.json now contains the new service in 
last-active-disabled-services'
Check that state.json now contains the new service in 
last-active-disabled-services
+ check_state_json_specific_disabled_svc svc2
+ SVC=svc2
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state 
check-state '.data.snaps."disabled-svcs-kept" | 
."last-active-disabled-services"? | .[]' = svc2 'state.json is missing 
last-active-disabled-services in it:'
+ echo 'Re-refresh forward to new revision with renamed service disabled'
Re-refresh forward to new revision with renamed service disabled
+ snap refresh disabled-svcs-kept --revision=x3
disabled-svcs-kept 2.0 refreshed
+ echo 'Check that the new service IS NOW disabled'
Check that the new service IS NOW disabled
+ MATCH 'disabled-svcs-kept\.svc2\s+disabled\s+inactive'
+ snap services disabled-svcs-kept
+ echo 'Check that state.json now contains the old service in 
last-active-disabled-services'
Check that state.json now contains the old service in 
last-active-disabled-services
+ check_state_json_specific_disabled_svc svc
+ SVC=svc
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state 
check-state '.data.snaps."disabled-svcs-kept" | 
."last-active-disabled-services"? | .[]' = svc 'state.json is missing 
last-active-disabled-services in it:'
+ echo 'CASE 9'
CASE 9
+ echo 'Re-refresh to old revision to enable the old service to clear saved 
state'
Re-refresh to old revision to enable the old service to clear saved state
+ snap refresh disabled-svcs-kept --revision=x2
disabled-svcs-kept 1.0 refreshed
+ snap start --enable disabled-svcs-kept.svc
Started.
+ echo 'Check that the old service is now enabled'
Check that the old service is now enabled
+ MATCH 'disabled-svcs-kept\.svc\s+enabled\s+active'
+ snap services disabled-svcs-kept
+ echo 'Re-refresh to new revision'
Re-refresh to new revision
+ snap refresh disabled-svcs-kept --revision=x3
disabled-svcs-kept 2.0 refreshed
+ echo 'Check that state.json no longer contains last-active-disabled-services'
Check that state.json no longer contains last-active-disabled-services
+ check_state_json_no_disabled_svcs
+ /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state 
check-state '.data.snaps."disabled-svcs-kept" | 
."last-active-disabled-services"?' = null 'state.json has invalid 
last-active-disabled-services in it:'
+ echo 'Refresh to new revision with svc retyped as app'
Refresh to new revision with svc retyped as app
+ snap install --dangerous disabled-svcs-kept_3.0_all.snap
error: cannot perform the following tasks:
- Setup snap "disabled-svcs-kept" (unset) security profiles (cannot find 
installed snap "disabled-svcs-kept" at revision x4: missing file 
/snap/disabled-svcs-kept/x4/meta/snap.yaml)
-----
...
Nov 08 11:13:55 nov081101-381415 systemd[1]: Reloading.
Nov 08 11:13:56 nov081101-381415 systemd[1]: Unmounting Mount unit for 
disabled-svcs-kept, revision x4...
Nov 08 11:13:56 nov081101-381415 systemd-udevd[665]: Network interface 
NamePolicy= disabled on kernel command line, ignoring.
Nov 08 11:13:56 nov081101-381415 systemd[1]: Unmounted Mount unit for 
disabled-svcs-kept, revision x4.
Nov 08 11:13:56 nov081101-381415 systemd[1]: Reloading.
Nov 08 11:13:56 nov081101-381415 snapd[2818]: taskrunner.go:439: DEBUG: Running 
task 321 on Do: Copy snap "disabled-svcs-kept" data
Nov 08 11:13:56 nov081101-381415 snapd[2818]: snapmgr.go:303: cannot read snap 
info of snap "disabled-svcs-kept" at revision x4: cannot find installed snap 
"disabled-svcs-kept" at revision x4: missing file 
/snap/disabled-svcs-kept/x4/meta/snap.yaml
....
""""

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1949089

Title:
  systemd randomly fails to activate mount units in Ubuntu Core 18

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1949089/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to