Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump containerd to v1.2.0-13-g8afcade1 #38062

Closed

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Oct 18, 2018

Follow-up to #37932

Update runc binary: removed this bump, as it was updated already in #38128

Update containerd; changes since v1.2.0 (#37932)

@thaJeztah
Copy link
Member Author

Marked it "wip", because 1.2.0 hasn't been tagged yet

@codecov
Copy link

codecov bot commented Oct 19, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@a5e2dd2). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #38062   +/-   ##
=========================================
  Coverage          ?   36.22%           
=========================================
  Files             ?      610           
  Lines             ?    45475           
  Branches          ?        0           
=========================================
  Hits              ?    16475           
  Misses            ?    26750           
  Partials          ?     2250

@AkihiroSuda
Copy link
Member

weird

https://jenkins.dockerproject.org/job/Docker-PRs-experimental/42645/console

13:48:24 PASS: docker_cli_pull_test.go:184: DockerHubPullSuite.TestPullScratchNotAllowed	0.022s
13:48:24 OK: 1475 passed, 52 skipped
13:48:24 PASS
13:48:24 ---> Making bundle: .integration-daemon-stop (in bundles/test-integration)
13:48:26 /go/src/github.com/docker/docker/hack/make/.integration-daemon-stop: line 10: wait: pid 29687 is not a child of this shell
13:48:26 warning: PID 29687 from bundles/test-integration/dfb5d22ec8645/docker.pid had a nonzero exit code
13:48:26 Clearing AppArmor profiles cache:.
13:48:26 All profile caches have been cleared, but no profiles have been unloaded.
13:48:26 Unloading profiles will leave already running processes permanently
13:48:26 unconfined, which can lead to unexpected situations.
13:48:26 
13:48:26 To set a process to complain mode, use the command line tool
13:48:26 'aa-complain'. To really tear down all profiles, run the init script
13:48:26 with the 'teardown' option."
13:48:26 Removing test suite binaries
14:50:12 Build timed out (after 180 minutes). Marking the build as failed.
14:50:12 Build timed out (after 180 minutes). Marking the build as aborted.

@tonistiigi
Copy link
Member

CI seems to be hanging because of leaked containerd-shim processes created while docker-py ran.

Logs and processes in: https://gist.github.com/tonistiigi/a5739d2c0f82442c0317bea044cc56e2

From the logs. The test ran a DELETE request for that failed with

time="2018-10-23T19:03:57.531600098Z" level=error msg="fc42a122b164349bced9e08588f6782f65de38e823b5649467533cd07d359464 cleanup: failed to delete container from containerd: cannot delete running task fc42a122b164349bced9e08588f6782f65de38e823b5649467533cd07d359464: failed precondition"

and leaked the shim process.

@thaJeztah thaJeztah force-pushed the bump_containerd_client_v1.2.0 branch from c6d439d to 441e936 Compare October 25, 2018 11:33
@thaJeztah thaJeztah changed the title [wip] bump containerd client to v1.2.0 (ish) [wip] bump containerd client to v1.2.0 Oct 25, 2018
@thaJeztah thaJeztah changed the title [wip] bump containerd client to v1.2.0 bump containerd client to v1.2.0 and runc binary Oct 25, 2018
@AkihiroSuda
Copy link
Member

Does the failure relate to containerd/containerd#2748 ?

@thaJeztah
Copy link
Member Author

I added a commit to see if that fixes the issue, thanks!

Diff in that commit; containerd/containerd@c444666...8afcade

relevant changes;

@AkihiroSuda
Copy link
Member

Weird, even without this PR, docker-py fails and hangs on my laptop (b8e87cf)

$ make test-docker-py
...
 generated xml file: /go/src/github.com/docker/docker/bundles/test-docker-py/results.xml
=========================== short test summary info ============================
XFAIL ../../../../../docker-py/tests/integration/api_container_test.py::CreateContainerTest::test_create_with_cpu_rt_options
  CONFIG_RT_GROUP_SCHED isn't enabled
XFAIL ../../../../../docker-py/tests/integration/api_container_test.py::CreateContainerTest::test_create_with_init_path
  init-path removed in 17.05.0
XFAIL ../../../../../docker-py/tests/integration/api_container_test.py::CreateContainerTest::test_create_with_storage_opt
  Not supported on most drivers
XFAIL ../../../../../docker-py/tests/integration/api_swarm_test.py::SwarmTest::test_init_swarm_with_log_driver
  This doesn't seem to be taken into account by the engine
SKIP [1] tests/integration/api_image_test.py:289: Doesn't work inside a container - FIXME
SKIP [1] /docker-py/tests/integration/api_swarm_test.py:31: Test stalls the engine on 1.12.0
=================================== FAILURES ===================================
____________________ BuildTest.test_build_invalid_platform _____________________
/docker-py/tests/helpers.py:70: in wrapped
    return f(self, *args, **kwargs)
/docker-py/tests/integration/api_build_test.py:388: in test_build_invalid_platform
    assert excinfo.value.status_code == 400
E   AssertionError: assert 500 == 400
E    +  where 500 = APIError(HTTPError(u'500 Server Error: Internal Server Error for url: http+doc...ld?q=False&pull=False&nocache=False&forcerm=False&rm=False&platform=foobar',),).status_code
E    +    where APIError(HTTPError(u'500 Server Error: Internal Server Error for url: http+doc...ld?q=False&pull=False&nocache=False&forcerm=False&rm=False&platform=foobar',),) = <ExceptionInfo APIError tblen=5>.value
___________________ PullImageTest.test_pull_invalid_platform ___________________
/docker-py/tests/helpers.py:70: in wrapped
    return f(self, *args, **kwargs)
/docker-py/tests/integration/api_image_test.py:73: in test_pull_invalid_platform
    assert 'invalid platform' in excinfo.exconly()
E   AssertionError: assert 'invalid platform' in 'APIError: 500 Server Error: Internal Server Error (""foobar": unknown operating system or architecture: invalid argument")'
E    +  where 'APIError: 500 Server Error: Internal Server Error (""foobar": unknown operating system or architecture: invalid argument")' = <bound method ExceptionInfo.exconly of <ExceptionInfo APIError tblen=4>>()
E    +    where <bound method ExceptionInfo.exconly of <ExceptionInfo APIError tblen=4>> = <ExceptionInfo APIError tblen=4>.exconly
=== 2 failed, 329 passed, 2 skipped, 4 xfailed, 1 xpassed in 497.40 seconds ====
(hangs up)

@thaJeztah thaJeztah changed the title bump containerd client to v1.2.0 and runc binary bump containerd to v1.2.0-13-g8afcade1, and update runc binary Nov 6, 2018
@thaJeztah
Copy link
Member Author

thaJeztah commented Nov 6, 2018

Interesting; https://jenkins.dockerproject.org/job/Docker-PRs/51642/console

18:59:40 Build timed out (after 200 minutes). Marking the build as failed.
18:59:40 Build timed out (after 200 minutes). Marking the build as aborted.

let me restart

edit: never mind, was confusing this for another PR 😅

release notes: https://github.com/containerd/containerd/releases/tag/v1.2.0

- New V2 Runtime with a stable gRPC interface for managing containers through
  external shims.
- Updated CRI Plugin, validated against Kubernetes v1.11 and v1.12, but it is
  also compatible with Kubernetes v1.10.
- Support for Kubernetes Runtime Class, introduced in Kubernetes 1.12
- A new proxy plugin configuration has been added to allow external
  snapshotters be connected to containerd using gRPC.-
- A new Install method on the containerd client allows users to publish host
  level binaries using standard container build tooling and container
  distribution tooling to download containerd related binaries on their systems.
- Add support for cleaning up leases and content ingests to garbage collections.
- Improved multi-arch image support using more precise matching and ranking
- Added a runtime `options` field for shim v2 runtime. Use the `options` field to
  config runtime specific options, e.g. `NoPivotRoot` and `SystemdCgroup` for
  runtime type `io.containerd.runc.v1`.
- Some Minor API additions
  - Add `ListStream` method to containers API. This allows listing a larger
    number of containers without hitting message size limts.
  - Add `Sync` flag to `Delete` in leases API. Setting this option will ensure
    a garbage collection completes before the removal call is returned. This can
    be used to guarantee unreferenced objects are removed from disk after a lease.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah changed the title bump containerd to v1.2.0-13-g8afcade1, and update runc binary bump containerd to v1.2.0-13-g8afcade1 Nov 12, 2018
@thaJeztah
Copy link
Member Author

Rebased; removed the runc-bump as it was updated already in #38128

@thaJeztah
Copy link
Member Author

closing this one, as this was included in #38168

@thaJeztah thaJeztah closed this Nov 20, 2018
@thaJeztah thaJeztah deleted the bump_containerd_client_v1.2.0 branch November 20, 2018 17:00
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.

None yet

7 participants