In bug #1906364 Martin Pitt is trying to run lorax in a podman container. The initrd that is created is missing some files. He has worked around the problem by running it with `--storage-driver=vfs --root /tmp/podman-vfs` but I'm trying to narrow down what's going wrong. The logs are full of errors like: 2020-12-10 23:03:15,535 INFO: cp: setting attributes for '/var/tmp/dracut.rKbFRJ/initramfs/usr/lib/python3.9/site-packages/six.py': Operation not supported 2020-12-10 23:03:15,535 INFO: dracut-install: ERROR: installing '/usr/lib/python3.9/site-packages/urllib3/packages/six.py' and the symlink from .../urllib3/packages/six.py isn't installed, even though the target is. I've narrowed it down to a reproducer like this: /usr/lib/dracut/dracut-install --debug -D /var/tmp/bcl-root/ usr/lib/python3.9/site-packages/urllib3/packages/six.py Which results in: dracut-install: Program arguments: dracut-install: /usr/lib/dracut/dracut-install dracut-install: --debug dracut-install: -D dracut-install: /var/tmp/bcl-root/ dracut-install: usr/lib/python3.9/site-packages/urllib3/packages/six.py dracut-install: PATH=/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin dracut-install: LDD=ldd dracut-install: Handle 'usr/lib/python3.9/site-packages/urllib3/packages/six.py' dracut-install: dracut_install('usr/lib/python3.9/site-packages/urllib3/packages/six.py', 'usr/lib/python3.9/site-packages/urllib3/packages/six.py', 0, 0, 1) dracut-install: dest dir '/var/tmp/bcl-root/usr/lib/python3.9/site-packages/urllib3/packages' does not exist dracut-install: dracut_install('usr/lib/python3.9/site-packages/urllib3/packages', 'usr/lib/python3.9/site-packages/urllib3/packages', 1, 0, 1) dracut-install: dest dir '/var/tmp/bcl-root/usr/lib/python3.9/site-packages/urllib3' does not exist dracut-install: dracut_install('usr/lib/python3.9/site-packages/urllib3', 'usr/lib/python3.9/site-packages/urllib3', 1, 0, 1) dracut-install: dest dir '/var/tmp/bcl-root/usr/lib/python3.9/site-packages' does not exist dracut-install: dracut_install('usr/lib/python3.9/site-packages', 'usr/lib/python3.9/site-packages', 1, 0, 1) dracut-install: dest dir '/var/tmp/bcl-root/usr/lib/python3.9' does not exist dracut-install: dracut_install('usr/lib/python3.9', 'usr/lib/python3.9', 1, 0, 1) dracut-install: dest dir '/var/tmp/bcl-root/usr/lib' does not exist dracut-install: dracut_install('usr/lib', 'usr/lib', 1, 0, 1) dracut-install: dest dir '/var/tmp/bcl-root/usr' does not exist dracut-install: dracut_install('usr', 'usr', 1, 0, 1) dracut-install: mkdir '/var/tmp/bcl-root/usr' dracut-install: mkdir '/var/tmp/bcl-root/usr/lib' dracut-install: mkdir '/var/tmp/bcl-root/usr/lib/python3.9' dracut-install: mkdir '/var/tmp/bcl-root/usr/lib/python3.9/site-packages' dracut-install: mkdir '/var/tmp/bcl-root/usr/lib/python3.9/site-packages/urllib3' dracut-install: mkdir '/var/tmp/bcl-root/usr/lib/python3.9/site-packages/urllib3/packages' dracut-install: get_real_file('usr/lib/python3.9/site-packages/urllib3/packages/six.py') dracut-install: get_real_file: readlink('usr/lib/python3.9/site-packages/urllib3/packages/six.py') returns '/usr/lib/python3.9/site-packages/six.py' dracut-install: get_real_file('usr/lib/python3.9/site-packages/urllib3/packages/six.py') => '/usr/lib/python3.9/site-packages/six.py' dracut-install: dracut_install('/usr/lib/python3.9/site-packages/six.py', '/usr/lib/python3.9/site-packages/six.py', 0, 0, 1) dracut-install: dracut_install ret = 0 dracut-install: cp '/usr/lib/python3.9/site-packages/six.py' '/var/tmp/bcl-root/usr/lib/python3.9/site-packages/six.py' cp: setting attributes for '/var/tmp/bcl-root/usr/lib/python3.9/site-packages/six.py': Operation not supported dracut-install: cp ret = 256 dracut-install: dracut_install ret = 256 dracut-install: '/usr/lib/python3.9/site-packages/six.py' install error dracut-install: ERROR: installing 'usr/lib/python3.9/site-packages/urllib3/packages/six.py' This is happening both on rawhide, with podman-3.0.0-0.33.dev.gite2f9120.fc34.x86_64 + dracut-050-61.git20200529.fc33.2.x86_64 and on F32 with podman-2.1.1-7.fc32.x86_64 + dracut-050-61.git20200529.fc32.x86_64 podman is being run like this: sudo podman run -it --rm --privileged --security-opt label=disable registry.fedoraproject.org/fedora:rawhide bash (I've tried it with and without --security-opt with the same results). Do you have any ideas about what could be going on here?
Many thanks Brian for further investigating this! Subscribing here to follow the progress. I suppose we can close bug 1906364 then?
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle. Changing version to 34.
This message is a reminder that Fedora Linux 34 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '34'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 34 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07. Fedora Linux 34 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. Thank you for reporting this bug and we are sorry it could not be fixed.
I checked this on current Fedora 36: sudo podman run -it --rm --privileged --security-opt label=disable registry.fedoraproject.org/fedora:rawhide bash and inside: dnf install -y dracut mkdir /var/tmp/d /usr/lib/dracut/dracut-install --debug -D /var/tmp/d usr/lib/python3.10/site-packages/urllib3/packages/six.py This still fails in the same way.
This message is a reminder that Fedora Linux 36 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '36'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 36 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Still failing, but given the last of response on this we may as well let it close :/
Updated reproducer for F38: sudo podman run -it --rm --privileged --security-opt label=disable registry.fedoraproject.org/fedora:rawhide bash and inside: dnf install -y dracut python3-urllib3 mkdir /var/tmp/d /usr/lib/dracut/dracut-install --debug -D /var/tmp/d usr/lib/python3.11/site-packages/urllib3/packages/six.py This actually works now! So it seems the hack in lorax can be removed? So indeed we can let this bz time out for F36.
(In reply to Martin Pitt from comment #8) > Updated reproducer for F38: > > sudo podman run -it --rm --privileged --security-opt label=disable > registry.fedoraproject.org/fedora:rawhide bash > > and inside: > > dnf install -y dracut python3-urllib3 > mkdir /var/tmp/d > /usr/lib/dracut/dracut-install --debug -D /var/tmp/d > usr/lib/python3.11/site-packages/urllib3/packages/six.py > > This actually works now! So it seems the hack in lorax can be removed? So > indeed we can let this bz time out for F36. Odd, it's still failing for me with dracut-059-5.fc39.x86_64 running in podman-4.5.0-1.fc37.x86_64 dracut-install: cp '/usr/lib/python3.11/site-packages/six.py' '/var/tmp/d/usr/lib/python3.11/site-packages/six.py' cp: setting attributes for '/var/tmp/d/usr/lib/python3.11/site-packages/six.py': Operation not supported dracut-install: ERROR: 'cp --reflink=auto --sparse=auto --preserve=mode,xattr,timestamps,ownership -fL /usr/lib/python3.11/site-packages/six.py /var/tmp/d/usr/lib/python3.11/site-packages/six.py' failed with 1 dracut-install: cp ret = 1 dracut-install: dracut_install ret = 1 dracut-install: '/usr/lib/python3.11/site-packages/six.py' install error dracut-install: ERROR: installing 'usr/lib/python3.11/site-packages/urllib3/packages/six.py' I also don't remember (and can't find) any workarounds that I may have added to lorax for this :)
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16. Fedora Linux 36 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed.