Bug 1906633 - dracut-install inside a container does not work correctly
Summary: dracut-install inside a container does not work correctly
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: dracut-maint-list
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-11 01:27 UTC by Brian Lane
Modified: 2023-05-25 15:55 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-05-25 15:55:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Brian Lane 2020-12-11 01:27:01 UTC
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?

Comment 1 Martin Pitt 2020-12-11 05:32:29 UTC
Many thanks Brian for further investigating this! Subscribing here to follow the progress. I suppose we can close bug 1906364 then?

Comment 2 Ben Cotton 2021-02-09 15:33:17 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 3 Ben Cotton 2022-05-12 15:04:50 UTC
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.

Comment 4 Ben Cotton 2022-06-07 20:44:22 UTC
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.

Comment 5 Martin Pitt 2022-06-08 04:36:43 UTC
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.

Comment 6 Ben Cotton 2023-04-25 16:41:21 UTC
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.

Comment 7 Brian Lane 2023-04-25 21:09:25 UTC
Still failing, but given the last of response on this we may as well let it close :/

Comment 8 Martin Pitt 2023-04-26 04:18:30 UTC
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.

Comment 9 Brian Lane 2023-04-27 18:11:27 UTC
(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 :)

Comment 10 Ludek Smid 2023-05-25 15:55:47 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.