Test uc20-create-partitions-reinstall is flaky
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Sometimes the spread test google:
Error: 2022-01-13 16:22:50 Error executing google:
-----
++ cat loop.txt
+ LOOP=/dev/loop2
+ grep ID_FS_TYPE
+ udevadm info --query=property /dev/loop2p2
ID_FS_TYPE=vfat
+ echo 'Run the snap-bootstrap tool in auto-detect mode'
Run the snap-bootstrap tool in auto-detect mode
+ go get ../../lib/
go: finding github.
go: finding github.
go: finding github.
go: finding github.
go: finding github.
go: finding github.
go: finding github.
go: finding go.mozilla.
go: finding maze.io/x/crypto v0.0.0-
+ kerneldir=
+ uc20-create-
install.go:76: installing a new system
install.go:77: gadget data from: ./gadget-dir
install.go:78: encryption:
partition.go:52: DEBUG: create partitions on /dev/loop2: /dev/loop2p3 : start= 2461696, size= 1536000, type=0FC63DAF-
/dev/loop2p4 : start= 3997696, size= 32768, type=0FC63DAF-
/dev/loop2p5 : start= 4030464, size= 35032003, type=0FC63DAF-
install.go:158: created new partition /dev/loop2p3 for structure #3 ("ubuntu-boot") (size 750 MiB) role system-boot
content.go:47: DEBUG: create ext4 filesystem on /dev/loop2p3 with label "ubuntu-boot"
install.go:158: created new partition /dev/loop2p4 for structure #4 ("ubuntu-save") (size 16 MiB) role system-save
content.go:47: DEBUG: create ext4 filesystem on /dev/loop2p4 with label "ubuntu-save"
install.go:158: created new partition /dev/loop2p5 for structure #5 ("ubuntu-data") (size 16.70 GiB) role system-data
content.go:47: DEBUG: create ext4 filesystem on /dev/loop2p5 with label "ubuntu-data"
+ echo 'And check that the partitions are created'
And check that the partitions are created
+ MATCH '750M Linux filesystem'
+ sfdisk -l /dev/loop2
+ MATCH '16\.7G Linux filesystem'
+ sfdisk -l /dev/loop2
+ MATCH 'ext4 filesystem data,.* volume name "ubuntu-boot"'
+ file -s /dev/loop2p3
+ MATCH 'ext4 filesystem data,.* volume name "ubuntu-save"'
+ file -s /dev/loop2p4
+ MATCH 'ext4 filesystem data,.* volume name "ubuntu-data"'
+ file -s /dev/loop2p5
+ echo 'Create canary files on the ubuntu-
Create canary files on the ubuntu-
+ mkdir ./ubuntu-seed ./ubuntu-boot ./ubuntu-save ./ubuntu-data
+ mount /dev/loop2p2 ./ubuntu-seed
+ mount /dev/loop2p3 ./ubuntu-boot
+ mount /dev/loop2p4 ./ubuntu-save
+ mount /dev/loop2p5 ./ubuntu-data
+ for label in ubuntu-seed ubuntu-boot ubuntu-save ubuntu-data
+ echo ubuntu-seed
+ umount ./ubuntu-seed
+ for label in ubuntu-seed ubuntu-boot ubuntu-save ubuntu-data
+ echo ubuntu-boot
+ umount ./ubuntu-boot
+ for label in ubuntu-seed ubuntu-boot ubuntu-save ubuntu-data
+ echo ubuntu-save
+ umount ./ubuntu-save
+ for label in ubuntu-seed ubuntu-boot ubuntu-save ubuntu-data
+ echo ubuntu-data
+ umount ./ubuntu-data
+ echo 'Run the snap-bootstrap again'
Run the snap-bootstrap again
+ uc20-create-
install.go:76: installing a new system
install.go:77: gadget data from: ./gadget-dir
install.go:78: encryption:
partition.go:193: partition /dev/loop2p3 was created during previous install
partition.go:193: partition /dev/loop2p4 was created during previous install
partition.go:193: partition /dev/loop2p5 was created during previous install
partition.go:203: DEBUG: delete disk partitions [3 4 5]
-----
.
2022-01-13 16:22:50 Error debugging google:
2022-01-13 16:22:50 Discarding google:
The output from running uc20-create-
summary: |
- test is flaky + Test uc20-create-partitions-reinstall is flaky |
Changed in snapd: | |
status: | New → Fix Released |
importance: | Undecided → Medium |
Ran the test against 228aa864f305bf6 c89d1543b96dc00 befe260861 about 20 times and couldn't reproduce