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

host-ctr: dep updates & go mod tidy #1938

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

etungsten
Copy link
Contributor

@etungsten etungsten commented Feb 2, 2022

Updates containerd client from v1.5.8 to v1.5.9
along with other associated dependencies

Issue number:
N/A

Description of changes:

Author: Erikson Tung <[email protected]>
Date:   Wed Feb 2 15:24:45 2022 -0800

    host-ctr: dep updates & go mod tidy
    
    Updates containerd client from v1.5.8 to v1.5.9
    along with other associated dependencies

Testing done:
Built x86_64 aws-k8s-1.21 variant, launched instance. Can connect via admin controller:
Verified both host-containers are running just fine:

bash-5.0# systemctl status host-containers@admin
● [email protected] - Host container: admin
     Loaded: loaded (/x86_64-bottlerocket-linux-gnu/sys-root/usr/lib/systemd/system/[email protected]; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2022-02-03 00:12:30 UTC; 1min 20s ago
   Main PID: 2883 (host-ctr)
      Tasks: 13 (limit: 73527)
     Memory: 30.3M
     CGroup: /system.slice/system-host\x2dcontainers.slice/[email protected]
             └─2883 /usr/bin/host-ctr run --container-id=admin --source=328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-admin:v0.7.3 --superpowered=true --registry-config=/etc/host-containers/host-ctr.toml

Feb 03 00:12:30 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2883]: time="2022-02-03T00:12:30Z" level=info msg="pulling with Amazon ECR Resolver" ref="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-admin:v0.7.3"
Feb 03 00:12:32 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2883]: time="2022-02-03T00:12:32Z" level=info msg="pulled image successfully" img="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-admin:v0.7.3"
Feb 03 00:12:32 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2883]: time="2022-02-03T00:12:32Z" level=info msg="unpacking image..." img="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-admin:v0.7.3"
Feb 03 00:12:41 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2883]: time="2022-02-03T00:12:41Z" level=info msg="tagging image" img="328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-admin:v0.7.3"
Feb 03 00:12:41 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2883]: time="2022-02-03T00:12:41Z" level=info msg="Container does not exist, proceeding to create it" ctr-id=admin
Feb 03 00:12:45 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2883]: time="2022-02-03T00:12:45Z" level=info msg="container task does not exist, proceeding to create it" container-id=admin
Feb 03 00:12:45 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2883]: time="2022-02-03T00:12:45Z" level=info msg="successfully started container task"
Feb 03 00:12:45 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2883]: Server listening on 0.0.0.0 port 22.
Feb 03 00:12:45 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2883]: Server listening on :: port 22.


● [email protected] - Host container: control
     Loaded: loaded (/x86_64-bottlerocket-linux-gnu/sys-root/usr/lib/systemd/system/[email protected]; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2022-02-03 00:12:30 UTC; 1min 25s ago
   Main PID: 2889 (host-ctr)
      Tasks: 13 (limit: 73527)
     Memory: 29.8M
     CGroup: /system.slice/system-host\x2dcontainers.slice/[email protected]
             └─2889 /usr/bin/host-ctr run --container-id=control --source=328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-control:v0.5.4 --superpowered=false --registry-config=/etc/host-containers/host-ctr.toml

Feb 03 00:12:46 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2889]: 2022-02-03 00:12:45 INFO Agent will take identity from EC2
Feb 03 00:12:46 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2889]: 2022-02-03 00:12:45 INFO [amazon-ssm-agent] using named pipe channel for IPC
Feb 03 00:12:46 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2889]: 2022-02-03 00:12:45 INFO [amazon-ssm-agent] using named pipe channel for IPC
Feb 03 00:12:46 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2889]: 2022-02-03 00:12:45 INFO [amazon-ssm-agent] using named pipe channel for IPC
Feb 03 00:12:46 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2889]: 2022-02-03 00:12:45 INFO [amazon-ssm-agent] amazon-ssm-agent - v3.1.501.0
Feb 03 00:12:46 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2889]: 2022-02-03 00:12:45 INFO [amazon-ssm-agent] OS: linux, Arch: amd64
Feb 03 00:12:46 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2889]: 2022-02-03 00:12:45 INFO [CredentialRefresher] Identity does not require credential refresher
Feb 03 00:12:46 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2889]: 2022-02-03 00:12:46 INFO [amazon-ssm-agent] [LongRunningWorkerContainer] [WorkerProvider] Worker ssm-agent-worker is not running, starting worker process
Feb 03 00:12:46 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2889]: 2022-02-03 00:12:46 INFO [amazon-ssm-agent] [LongRunningWorkerContainer] [WorkerProvider] Worker ssm-agent-worker (pid:17) started
Feb 03 00:12:46 ip-192-168-12-61.us-west-2.compute.internal host-ctr[2889]: 2022-02-03 00:12:46 INFO [amazon-ssm-agent] [LongRunningWorkerContainer] Monitor long running worker health every 60 seconds

I can disable and enable host containers and they behave as expected

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Updates containerd client from v1.5.8 to v1.5.9
along with other associated dependencies
zmrow
zmrow approved these changes Feb 3, 2022
@etungsten etungsten merged commit cd1b8e9 into bottlerocket-os:develop Feb 3, 2022
@etungsten etungsten deleted the host-ctr-dep-update branch February 3, 2022 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants