Bug 1213288 - [pki] pki-pkcs12-extract.sh fails with /dev/fd is not mounted
Summary: [pki] pki-pkcs12-extract.sh fails with /dev/fd is not mounted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-setup
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.5.3
Assignee: Yedidyah Bar David
QA Contact: Jiri Belka
URL:
Whiteboard: integration
Depends On: 1209281
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-20 09:23 UTC by rhev-integ
Modified: 2019-07-16 12:00 UTC (History)
13 users (show)

Fixed In Version: org.ovirt.engine-root-3.5.3-2
Doc Type: Bug Fix
Doc Text:
Previously, the pki-pkcs12-extract.sh script relied on the existence of the /dev/fd directory. In Linux, this is normally symbolically linked to the /proc/self/fd directory, allowing processes to access its STDIN, STDOUT, etc as named files. If the /dev/fd directory did not exist, the script failed. An example scenario is trying to run engine-setup during installation from a kickstart file. With this update, the script was updated to use the /proc/self/fd directly. Now the script only requires that the /proc direcory is mounted, and does not fail if the /dev/fd directory does not exist.
Clone Of: 1209281
Environment:
Last Closed: 2015-06-15 13:27:52 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:
ylavi: Triaged+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1095 0 normal SHIPPED_LIVE Red Hat Enterprise Virtualization Manager 3.5.3 update 2015-06-15 17:26:37 UTC
oVirt gerrit 39870 0 master MERGED pki: do not use /dev/fd Never
oVirt gerrit 40042 0 ovirt-engine-3.5 MERGED pki: do not use /dev/fd Never
oVirt gerrit 40043 0 ovirt-engine-3.5 MERGED pki: fix typo Never
oVirt gerrit 40089 0 ovirt-engine-3.5 MERGED pki: backup only if file is not '-' Never

Comment 1 Yedidyah Bar David 2015-04-20 13:13:24 UTC
Note to QE - to reproduce/verify:

1. /bin/rm /dev/fd
2. engine-setup

If you already set up, (2.) can be replaced with:

/usr/share/ovirt-engine/bin/pki-pkcs12-extract.sh --name=engine --passin=mypass --cert=-

It seems to me that (1.) will only be fixed by next reboot, or by:

MAKEDEV fd

(Wow! Didn't know that MAKEDEV still exists, after so many years of devfs and udev)

Comment 2 Yedidyah Bar David 2015-04-21 13:17:05 UTC
https://gerrit.ovirt.org/40089 is needed for the (unlikely) case that there is a file named '/-'.

Comment 3 Jiri Belka 2015-05-20 12:16:41 UTC
ok, rhevm-backend-3.5.3-0.2.el6ev.noarch

followed steps described in #1.

Comment 4 Eyal Edri 2015-05-26 09:18:36 UTC
added_manually_to_errata

Comment 6 errata-xmlrpc 2015-06-15 13:27:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1095.html


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