Skip to content

test-integration: support cgroup2#41065

Merged
thaJeztah merged 1 commit intomoby:masterfrom
AkihiroSuda:cgroup2-ci
Jul 16, 2020
Merged

test-integration: support cgroup2#41065
thaJeztah merged 1 commit intomoby:masterfrom
AkihiroSuda:cgroup2-ci

Conversation

@AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented Jun 3, 2020

- What I did

added cgroup2 support for make integration.

We don't have actual CI instances yet. (Can we use Fedora 32 Vagrant on either GH actions as in containerd or on Travis as in runc? )

- How I did it

  • Modified hack/dind to initialize nested controllers.
  • Updated integration tests to refer cgroup v2 paths.

- How to verify it
Tests are passing on Ubuntu 20.04 with:
DOCKER_BUILD_ARGS="--build-arg CONTAINERD_COMMIT=bf672cccee2a0baf4720ec534a738f6003c0e5a7 --build-arg RUNC_COMMIT=0fa097fc37c5d89e4cea4fda4663d1239e12a6fe" DOCKER_EXPERIMENTAL=1 TEST_SKIP_INTEGRATION_CLI=1 make test-integration

Depends on containerd master (v1.4) and runc master (v1.0.0-rc91).

Currently TEST_SKIP_INTEGRATION_CLI=1 must be specified.

- A picture of a cute animal (not mandatory but encouraged)

🐧

@AkihiroSuda AkihiroSuda requested a review from tianon as a code owner June 3, 2020 16:53
@AkihiroSuda AkihiroSuda mentioned this pull request Jun 3, 2020
8 tasks
@AkihiroSuda AkihiroSuda added this to the 20.03.0 milestone Jun 3, 2020
@AkihiroSuda
Copy link
Member Author

cc @kolyshkin

@tiborvass
Copy link
Contributor

Also why must DOCKER_SYSTEMD=1 not be specified?

@tiborvass
Copy link
Contributor

I can work on your PR to run a one-time Jenkins CI for cgroups v2 and once it's green and we're happy we could bring in those containerd / runc commits.

@AkihiroSuda
Copy link
Member Author

AkihiroSuda commented Jun 4, 2020

systemd mode is just untested yet, will try later

Jenkins

Thanks, but this might be complicated because the host need to be bootstrapped with master binaries. I prepared binaries in
https://github.com/AkihiroSuda/moby-snapshot .

Also, the host needs to be very recent distro. Fedora 32 or Ubuntu 20.04 is preferred. Ubuntu still needs the GRUB configuration.

@AkihiroSuda
Copy link
Member Author

Do Jenkins hosts support running nested VM with Vagrant?

@tiborvass
Copy link
Contributor

Thanks for the bootstrapping. I know about the requirements for recent hosts, currently we have 19.10 with the right grub config, I'm trying to get 20.04 instead.
I don't want to do nested VM if possible. If we can provision the right host with your bootstrapped docker do you see any other issue?

@AkihiroSuda
Copy link
Member Author

If we can provision the right host with your bootstrapped docker do you see any other issue?

no

@AkihiroSuda
Copy link
Member Author

Confirmed, DOCKER_SYSTEMD=1 passes the tests as well.

@AkihiroSuda AkihiroSuda marked this pull request as draft June 17, 2020 10:31
Usage: DOCKER_BUILD_ARGS="--build-arg CONTAINERD_COMMIT=master --build-arg RUNC_COMMIT=master" DOCKER_EXPERIMENTAL=1 TEST_SKIP_INTEGRATION_CLI=1 make test-integration

Depends on containerd master (v1.4) and runc master (v1.0.0-rc91).

Currently `TEST_SKIP_INTEGRATION_CLI=1` must be specified.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda
Copy link
Member Author

@tiborvass Let me know how I can help moving this forward.

@AkihiroSuda AkihiroSuda marked this pull request as ready for review June 30, 2020 04:18
@AkihiroSuda
Copy link
Member Author

Maybe we can merge this as-is and update Jenkinsfile in a follow-up PR?

@AkihiroSuda
Copy link
Member Author

ping @tiborvass @thaJeztah

Copy link
Contributor

@tiborvass tiborvass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine, let's do Jenkinsfile changes in a followup.

@tiborvass tiborvass mentioned this pull request Jul 16, 2020
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

#41218 was opened to track the follow-up

@thaJeztah thaJeztah merged commit 06832a7 into moby:master Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants