Bug 1753786

Summary: Unable to install udisk2 in Fedora IoT 31
Product: [Fedora] Fedora Reporter: nicolasoliver03
Component: udisks2Assignee: Tomáš Bžatek <tbzatek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: dustymabe, gnome-sig, jonathan, miabbott, philip.wyett, rfairley, tbzatek, vtrefny, walters
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: udisks2-2.8.4-3.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-08 00:26:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
output of journalctl -t 'rpm-ostree(udisks2.post)' none

Description nicolasoliver03 2019-09-19 20:50:38 UTC
Description of problem:

Unable to install udisks2 in Fedora IoT 31

Version-Release number of selected component (if applicable):

Latest version provided by Fedora IoT packages

How reproducible:

rpm-ostree install udisks2

Steps to Reproduce:
1. rpm-ostree install udisks2

Actual results:
error: Running %post for udisks2: Executing bwrap(/bin/sh): Child process killed by signal 1; run `journalctl -t 'rpm-ostree(udisks2.post)'` for more information

Expected results:
udisk2 is installed after a systemctl reboot

Additional info:

Works in Fedora Workstation and Server, only reproducible in IoT

[root@fedora-iot-1 ~]# rpm-ostree install udisks2
Checking out tree 09f333e... done
Enabled rpm-md repositories: fedora-modular updates-testing fedora updates-testing-modular updates-modular updates
rpm-md repo 'fedora-modular' (cached); generated: 2019-09-17T21:34:28Z
Updating metadata for 'updates-testing'... done
rpm-md repo 'updates-testing'; generated: 2019-09-19T01:38:55Z
rpm-md repo 'fedora' (cached); generated: 2019-09-18T09:10:08Z
Updating metadata for 'updates-testing-modular'... done
rpm-md repo 'updates-testing-modular'; generated: 2019-09-19T04:01:22Z
Updating metadata for 'updates-modular'... done
rpm-md repo 'updates-modular'; generated: 2018-02-20T19:18:14Z
Updating metadata for 'updates'... done
rpm-md repo 'updates'; generated: 2018-02-20T19:18:14Z
Importing rpm-md... done
Resolving dependencies... done
Will download: 49 packages (20.7 MB)
Downloading from 'updates-testing'... done
Downloading from 'updates-testing-modular'... done
Downloading from 'fedora'... done
Importing packages... done
Checking out packages... done
Running pre scripts... done
Running post scripts... done
error: Running %post for udisks2: Executing bwrap(/bin/sh): Child process killed by signal 1; run `journalctl -t 'rpm-ostree(udisks2.post)'` for more information

Comment 1 nicolasoliver03 2019-09-20 17:54:21 UTC
Created attachment 1617282 [details]
output of journalctl -t 'rpm-ostree(udisks2.post)'

Comment 2 Tomáš Bžatek 2019-09-26 09:52:04 UTC
We trigger udev to reload newly installed udev rules. According to the attached log file the environment looks too limited and udev might not work properly itself. 

Probably caused by ostree, reassigning. Running storage management tools inside of containers (or limited environments some other way) is a very bad idea generally. The only thing we can do is to ignore return codes from udevadm calls, but the problem with udev still stands.

Comment 3 Jonathan Lebon 2019-10-01 14:26:52 UTC
rpm-ostree performs offline updates, which means that scriptlets are not run directly on the live host. See more info on this in https://bugzilla.redhat.com/show_bug.cgi?id=1352154 (esp. https://bugzilla.redhat.com/show_bug.cgi?id=1352154#c6).

I've opened a patch which gets this working: https://src.fedoraproject.org/rpms/udisks2/pull-request/3

Going to re-assign this to udisks2; we can re-assign it to rpm-ostree if needed following discussions.

Comment 4 Fedora Update System 2019-10-03 13:43:17 UTC
FEDORA-2019-febb2b29ae has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-febb2b29ae

Comment 5 Fedora Update System 2019-10-04 22:50:21 UTC
udisks2-2.8.4-3.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-febb2b29ae

Comment 6 Fedora Update System 2019-10-08 00:26:57 UTC
udisks2-2.8.4-3.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.