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

defaults, migrations: control container version bump to v0.4.2 #1344

Merged

Conversation

etungsten
Copy link
Contributor

@etungsten etungsten commented Feb 23, 2021

Issue number:
N/A

Description of changes:

Author: Erikson Tung <etung@amazon.com>
Date:   Tue Feb 23 10:00:58 2021 -0800

    migrations: control-container v0.4.2 default version migration
    
    Migrates default version of control container from v0.4.1 to v0.4.2
Author: Erikson Tung <etung@amazon.com>
Date:   Tue Feb 23 09:58:22 2021 -0800

    defaults: bump control container default version to v0.4.2
    
    Set default control container version to v0.4.2

Testing done:
Built image along with migrations, did upgrade/downgrade testing and the host comes up fine.
Saw settings.host-containers.control.source change appropriately between upgrade/downgrades.
Control container starts fine and can be reached after upgrade and downgrade.

bash-5.0# cat /etc/os-release 
NAME=Bottlerocket
ID=bottlerocket
PRETTY_NAME="Bottlerocket OS 1.0.6"
VARIANT_ID=aws-k8s-1.19
VERSION_ID=1.0.6
BUILD_ID=d55d224b-dirty
bash-5.0# cat /var/lib/bottlerocket/datastore/current/live/settings/host-containers/control/source
"328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-control:v0.4.2"
bash-5.0# signpost rollback-to-inactive
bash-5.0# reboot

....
$ ssh ec2-user@blah
Welcome to Bottlerocket's admin container!

This container provides access to the Bottlerocket host filesystems (see
/.bottlerocket/rootfs) and contains common tools for inspection and
troubleshooting.  It is based on Amazon Linux 2, and most things are in the
same places you would find them on an AL2 host.

To permit more intrusive troubleshooting, including actions that mutate the
running state of the Bottlerocket host, we provide a tool called "sheltie"
(`sudo sheltie`).  When run, this tool drops you into a root shell in the
Bottlerocket host's root filesystem.
[ec2-user@ip-192-168-14-64 ~]$ sudo sheltie
bash-5.0#  cat /var/lib/bottlerocket/datastore/current/live/settings/host-containers/control/source
"328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-control:v0.4.1"
bash-5.0# cat /etc/os-release 
NAME=Bottlerocket
ID=bottlerocket
PRETTY_NAME="Bottlerocket OS 1.0.5"
VARIANT_ID=aws-k8s-1.19
VERSION_ID=1.0.5
BUILD_ID=b6264978
bash-5.0# 

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.

Set default control container version to v0.4.2
Migrates default version of control container from v0.4.1 to v0.4.2
Copy link
Contributor

@zmrow zmrow left a comment

Choose a reason for hiding this comment

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

🌵

@etungsten etungsten merged commit a9e3782 into bottlerocket-os:develop Feb 23, 2021
@etungsten etungsten deleted the control-container-migrate-v0.4.1 branch February 23, 2021 20:18
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.

None yet

3 participants