Open jkirkpatrick opened 9 months ago
Set rootless_storage_path for rootless users /usr/share/containers/storage.conf and /etc/containers/storage.conf really configure your containers for rootful mode.
# Storage path for rootless users
#
# rootless_storage_path = "$HOME/.local/share/containers/storage"
I didn't include it in the bug report (as I should) but the rootless_storage_path
parameter was also enabled set to the same value (/data/containers/storage
)
I ended up creating a new server and reinstalling podman to test.
There are additional issues with the upgrade from the distro 3.x version to the latest 4.x. Once the storage issue is resolved I will try to figure out what happened. Both servers were just instantiated; the first had apt-get install podman
and then had the upgrade according to instructions.
Did you actually get the rootless_storage_path to work? and you only had issues with upgrade?
A friendly reminder that this issue had no activity for 30 days.
I can confirm that the "nuke from orbit and start from nothing" approach works as expected.
On Sat, Oct 21, 2023 at 8:07 PM github-actions[bot] < @.***> wrote:
A friendly reminder that this issue had no activity for 30 days.
— Reply to this email directly, view it on GitHub https://github.com/containers/podman/issues/20068#issuecomment-1773950490, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIYUB7KDZN6YRSHAVLHRZTYARPTLAVCNFSM6AAAAAA5AOEP6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZTHE2TANBZGA . You are receiving this because you authored the thread.Message ID: @.***>
A friendly reminder that this issue had no activity for 30 days.
can confirm this issue arises on podman 5.0.1.
by experimentation I could fix it by deleting storage/db.sql
YMMV
My best guess is, that the contents of storage.conf get read and duplicated to the database. From @rhatdan 's answer this was never meant to happen ("rootless_storage_path" replaces "graph_root")
The same can be observed with runroot (where there is no "rootless_" replacement)
From where I sit, this seems to be an unintended consequence overall. Perhaps we should avoid configuring storage.conf altogether?
@mheon PTAL
one small adendum: https://github.com/containers/podman/blob/main/docs/tutorials/rootless_tutorial.md states:
In rootless Podman, certain fields in /etc/containers/storage.conf are ignored. These fields are: (...) graphroot & runroot (highlight is mine)
that part of the docs is either not correct, or OP an I are expirencing a bug.
This is our built-in path overriding. We do not allow changing critical paths on an existing installation as it is guaranteed to cause existing containers to fail. If you have no containers, podman system reset
will remove the database and reset the paths to the ones you want to use.
As for the second bug, graphroot and runroot not being ignored - that's definitely acting as the docs say (just handled a bug in the opposite direction) so likely to be an environment-related bug?
@mheon If a nuke and re-install fixes the problem, it can't be the enviro since the installer and day-to-day usage shouldn't modify the enviro. If the enviro is being modified by the installer ... there's no chance of podman ever being used for reproducible builds. And since podman is clearly able to create reproducible builds, I think the source of the bug is safely within podman config tooling, and not the enviro.
Issue Description
I do not want to store gigs of data in my user home directory on a server; a separate volume (/data) has been created with proper permissions, fstab, etc. and works fine.
The default settings ignore any changes in storage.conf for the correct graphroot path.
Steps to reproduce the issue
Describe the results you received
$ podman info
Describe the results you expected
$ podman info
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
AWS EC2 Ubuntu w/ latest updates (via apt) and latest upstream podman
AMI ID ami-053b0d53c279acc90
AMI name ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20230516
uname -a
Linux ip-#-#-#-# 6.2.0-1012-aws #12~22.04.1-Ubuntu SMP Thu Sep 7 14:01:24 UTC 2023 x86_64 x86_64 x86_64 GNU/Linuxlsb_release -a
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammyAdditional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting