RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1261136 - Start of *-ask-password-*.path units fails without Message= field in existing ini file
Summary: Start of *-ask-password-*.path units fails without Message= field in existing...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.2
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 1289485 1313485
TreeView+ depends on / blocked
 
Reported: 2015-09-08 16:45 UTC by Stanislav Zidek
Modified: 2016-11-04 00:42 UTC (History)
4 users (show)

Fixed In Version: systemd-219-20.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 00:42:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2216 0 normal SHIPPED_LIVE systemd bug fix and enhancement update 2016-11-03 13:24:51 UTC

Description Stanislav Zidek 2015-09-08 16:45:18 UTC
Description of problem:
If I run some ask-password path unit, e.g.:

# systemctl start systemd-ask-password-console.path

and there is a file without Message= present in /run/systemd/ask-password/, e.g.

# cat /run/systemd/ask-password/ask.foo
[Ask]
Id=cryptsetup:xxx
Socket=/tmp/foo
NotAfter=0

then the start fails with:

# systemctl start systemd-ask-password-console.path
Assertion 'message' failed at src/shared/ask-password-api.c:73, function ask_password_tty(). Aborting.

(Note: file /tmp/foo must really exist)

Version-Release number of selected component (if applicable):
systemd-219-11.el7

How reproducible:
always

Steps to Reproduce:
1. touch /tmp/foo
2. cp ask.foo /run/systemd/ask-password/
3. systemctl (re)start systemd-ask-password-console.path

Actual results:
Assertion 'message' failed at src/shared/ask-password-api.c:73, function ask_password_tty(). Aborting.

Expected results:
Not aborting, starts normally.

Comment 1 Lukáš Nykrýn 2016-01-28 15:21:39 UTC
pushed to staging https://github.com/lnykryn/systemd-rhel/commit/2737fab0dba5ed238b4e0e927139e46e4911e1b4 -> post

Comment 4 Branislav Blaškovič 2016-08-17 14:45:17 UTC
Testing with TC /CoreOS/systemd/Regression/ask-password-path-units-fails-without-Message-field-in-existing-ini-file

NEW VERSION:
:: [ 10:39:43 ] :: Package versions:
:: [ 10:39:43 ] ::   systemd-219-26.el7.x86_64
:: [  BEGIN   ] :: Running 'touch /tmp/foo'
:: [   PASS   ] :: Command 'touch /tmp/foo' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'cp ask.foo /run/systemd/ask-password/'
:: [   PASS   ] :: Command 'cp ask.foo /run/systemd/ask-password/' (Expected 0, got 0)

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [  BEGIN   ] :: Running 'timeout 3s systemctl start systemd-ask-password-console.path'
Password:
:: [   PASS   ] :: Command 'timeout 3s systemctl start systemd-ask-password-console.path' (Expected 124, got 124)


OLD VERSION:
:: [ 10:39:41 ] :: Package versions:
:: [ 10:39:41 ] ::   systemd-219-19.el7.x86_64
:: [  BEGIN   ] :: Running 'touch /tmp/foo'
:: [   PASS   ] :: Command 'touch /tmp/foo' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'cp ask.foo /run/systemd/ask-password/'
:: [   PASS   ] :: Command 'cp ask.foo /run/systemd/ask-password/' (Expected 0, got 0)

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [  BEGIN   ] :: Running 'timeout 3s systemctl start systemd-ask-password-console.path'
Assertion 'message' failed at src/shared/ask-password-api.c:73, function ask_password_tty(). Aborting.
:: [   FAIL   ] :: Command 'timeout 3s systemctl start systemd-ask-password-console.path' (Expected 124, got 0)
:: [   PASS   ] :: File '/var/tmp/tmp.BPtRUgx5z5' should not contain 'Assertion 'message' failed at'

Comment 6 errata-xmlrpc 2016-11-04 00:42:59 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-2016-2216.html


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