os: Console container not updated after upgrade

BurmillaOS Version: (ros os version) v1.9.6

Where are you running BurmillaOS? (docker-machine, AWS, GCE, baremetal, etc.) HyperV VM

Which processor architecture you are using? amd64

After Upgrading from v1.9.5 to v1.9.6 I noticed that the console container is not upgraded and still running version v1.9.5:

$ sudo ros os version
v1.9.6

$ sudo system-docker container ls --filter name=console
CONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS              PORTS               NAMES
70f34c0f6968        burmilla/os-console:v1.9.5   "/usr/bin/ros entr..."   3 months ago        Up 9 minutes                            console

Is this the intended behavior that I have to manually update the console container with:

$ sudo ros console switch default

$ sudo system-docker container ls --filter name=console
CONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS              PORTS               NAMES
68caeb726815        burmilla/os-console:v1.9.6   "/usr/bin/ros entr..."   43 seconds ago      Up 42 seconds                           console

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (7 by maintainers)

Commits related to this issue

Most upvoted comments

WDYT, should we change console to non-persistent by default in 2.0.0 release version (or RC2 if we release that)?

After all it is very simple one line change to this https://github.com/burmilla/os/blob/615b3d4f7c4710580ba689e515082baa132548ea/os-config.tpl.yml#L245 but challenge is that it might be confusing for those who have used to current behavior.

As recap for those who have not followed whole story. In RancherOS, default console was non-persistent but others was persistent and because in #9 we decided to switch to Debian console it did came as persistent.

Let vote. Leave give 👍 if you support changing console to non-persistent and 👎 if you prefer to keep it console persistent by default.

Should we be instructing users to use ros console enable default after an upgrade instead?

Probably because it is not bug but feature which comes from https://github.com/burmilla/os/blob/v1.9.6/os-config.tpl.yml#L246

In additionally we can instruct users to update that setting to always which should make console non-persistent.

I submitted a PR here: https://github.com/burmilla/burmilla.github.io/pull/21

Unfortunately ros console enable does not force a recreate of the container, so ros console switch is required to recreate/update the os-console container so that’s what I included.

But this is only mentioned under “Upgrade RancherOS to BurmillaOS”. Maybe there should be a mention also under https://burmillaos.org/docs/installation/upgrading/#upgrading-1, that if you want to use the latest console container you must run sudo ros console switch default.

Agreed - it was not immediately clear to me that every upgrade would need sudo ros console switch default to get the latest. As a user my expectation would be that all system containers are upgraded during ros upgrade.

A Y/N switch to include console during ros upgrade or a note at the end of the upgrade command prior to reboot (with a link to console persistence doc) would be the most helpful IMO.

Sample message:

os-console is not upgraded by default - to upgrade after reboot, run sudo ros console switch default. Any files stored outside of persistent directories will be permanently deleted. See https://burmillaos.org/docs/installation/custom-builds/custom-console/#console-persistence

Is this the intended behavior that I have to manually update the console container with:

Yes, that why it is also mentioned in documentation https://burmillaos.org/docs/installation/upgrading/#upgrade-rancheros-to-burmillaos

That is because some users like to store some files to console which will disappear on console upgrade.