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

Add some documentation on how podman machine is updated #11680

Closed
afbjorklund opened this issue Sep 21, 2021 · 5 comments · Fixed by #12119
Closed

Add some documentation on how podman machine is updated #11680

afbjorklund opened this issue Sep 21, 2021 · 5 comments · Fixed by #12119
Labels
documentation Issue or fix is in project documentation In Progress This issue is actively being worked by the assignee, please do not work on this at this time. kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. machine

Comments

@afbjorklund
Copy link
Contributor

afbjorklund commented Sep 21, 2021

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind feature

Description

It would be nice with documentation on how podman machine keeps the OS updated.

Some summary lines and then links over to Fedora CoreOS for details would be just fine...

Steps to reproduce the issue:

  1. podman machine init

  2. podman machine start

  3. Wonder how the OS is updated ?

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

The upgrades happened just fine, as per documentation:

  1. A new OS upgrade comes out every 14 days, and is detected automatically.

  2. The Zincati service detects the new version, and stages it with rpm-ostree.

Then the podman machine is rebooted, with the new OS.

The count-down starts at 10 minutes:

Connecting to vm podman-machine-default. To close connection, use `~.` or `exit`
Could not create directory '/root/.ssh'.
Warning: Permanently added '[localhost]:38901' (ECDSA) to the list of known hosts.
Fedora CoreOS 34.20210808.1.0
Tracker: https://github.com/coreos/fedora-coreos-tracker
Discuss: https://discussion.fedoraproject.org/c/server/coreos/

[core@localhost ~]$ 
New update 34.20210904.1.0 is available and has been deployed.
If permitted by the update strategy, Zincati will reboot into this update when all
interactive users have logged out, or in 10 minutes, whichever comes earlier.
Please log out of all active sessions in order to let the auto-update process continue.

And then it proceeds automatically:

New update 34.20210904.1.0 is available and has been deployed.
If permitted by the update strategy, Zincati will reboot into this update when all
interactive users have logged out, or in 1 minute, whichever comes earlier.
Please log out of all active sessions in order to let the auto-update process continue.

[core@localhost ~]$ Connection to localhost closed by remote host.
Connection to localhost closed.
Error: exit status 255

Output of podman version:

podman version 4.0.0-dev

Output of podman info --debug:

(paste your output here)

Package info (e.g. output of rpm -q podman or apt list podman):

(paste your output here)

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)

Yes/No

Additional environment details (AWS, VirtualBox, physical, etc.):

Ubuntu

@openshift-ci openshift-ci bot added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 21, 2021
@mheon
Copy link
Member

mheon commented Sep 21, 2021

@baude @ashley-cui PTAL

@baude
Copy link
Member

baude commented Sep 22, 2021

@afbjorklund at this point you know more than me ... would you consider writing something up and i'll review it?

@afbjorklund
Copy link
Contributor Author

afbjorklund commented Sep 22, 2021

Will do, maybe we could get some assistance from Fedora CoreOS when it comes to suitable "starting point" (for linking)

But this documentation link seems to be adequate: https://docs.fedoraproject.org/en-US/fedora-coreos/auto-updates/

@Luap99 Luap99 added the machine label Sep 23, 2021
@afbjorklund
Copy link
Contributor Author

afbjorklund commented Sep 26, 2021

It seems like the perfect storm, the image is automatically upgraded to the latest and greatest (and also rather untested)

It's not obvious how to downgrade a broken upgrade, such as podman-plugins-3.3.1-1.fc34.x86_64 with custom network

See #11413 (comment)

Error: error preparing container b03291bde6dac3e70e0d29aa30854319eed726cf2f4ead2b699ab74f241f28d3 for attach: error configuring network namespace for container b03291bde6dac3e70e0d29aa30854319eed726cf2f4ead2b699ab74f241f28d3: error adding pod fervent_ramanujan_fervent_ramanujan to CNI network "podman": unexpected end of JSON input

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@ashley-cui ashley-cui added documentation Issue or fix is in project documentation In Progress This issue is actively being worked by the assignee, please do not work on this at this time. and removed stale-issue labels Oct 27, 2021
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Issue or fix is in project documentation In Progress This issue is actively being worked by the assignee, please do not work on this at this time. kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. machine
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants