Skip to content

Commit

Permalink
Merge pull request #438 from flatcar/krnowak/move-docker-packages
Browse files Browse the repository at this point in the history
kola/tests/systemd: Try also different category for docker package
  • Loading branch information
krnowak authored Jun 5, 2023
2 parents 01c37c4 + eb75c6a commit 09cf13a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Change

- Some tests dealing with OEM partition were duplicated or adapted for the OEM partition mountpoint move. The older versions of Flatcar will run tests for the old mountpoint location, the new enough versions - for both mountpoint locations. ([#423](https://github.com/flatcar/mantle/pull/423))
- The `systemd.sysext.custom-docker` test now tries to figure out the distributed Docker version by searching for both `app-emulation/docker` and `app-containers/docker` package information. The older versions of Flatcar use the former, the new versions will use the latter ([#438](https://github.com/flatcar/mantle/pull/438))

### Removed

Expand Down
2 changes: 1 addition & 1 deletion kola/tests/systemd/sysext.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func checkSysextCustomDocker(c cluster.TestCluster) {
// We should now be able to use Docker
_ = c.MustSSH(c.Machines()[0], cmdWorking)
// The next test is with a recent Docker version, here the one from the Flatcar image to couple it to something that doesn't change under our feet
version := string(c.MustSSH(c.Machines()[0], `bzcat /usr/share/licenses/licenses.json.bz2 | grep -m 1 -o 'app-emulation/docker[^:]*' | cut -d - -f 3`))
version := string(c.MustSSH(c.Machines()[0], `bzcat /usr/share/licenses/licenses.json.bz2 | grep -m 1 -o 'app-\(containers\|emulation\)/docker-[0-9][^:]*' | cut -d - -f 3`))
_ = c.MustSSH(c.Machines()[0], fmt.Sprintf(`ONLY_DOCKER=1 FORMAT=ext4 ARCH=%[2]s sysext-bakery/create_docker_sysext.sh %[1]s docker && ONLY_CONTAINERD=1 FORMAT=ext4 ARCH=%[2]s sysext-bakery/create_docker_sysext.sh %[1]s containerd && sudo mv docker.raw containerd.raw /etc/extensions/`, version, arch))
_ = c.MustSSH(c.Machines()[0], `sudo systemctl restart systemd-sysext && sudo systemctl restart docker containerd`)
// We should now still be able to use Docker
Expand Down

0 comments on commit 09cf13a

Please sign in to comment.