Bug 1267321 - rh-postgresql94-postgresql.service fails to start on RHEL7
Summary: rh-postgresql94-postgresql.service fails to start on RHEL7
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: rh-postgresql94
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: alpha
: 2.1
Assignee: Databases Maintanance List
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-29 15:52 UTC by Matthew Gyurgyik
Modified: 2015-09-29 17:01 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-29 17:01:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Matthew Gyurgyik 2015-09-29 15:52:20 UTC
Description of problem:

systemctl start rh-postgresql94-postgresql.service fails on RHEL7


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

rh-postgresql94-postgresql-9.4.4-1.el7.x86_64
redhat-release-server-7.1-1.el7.x86_64

How reproducible: Always


Actual results:
# systemctl start rh-postgresql94-postgresql.service
Failed to issue method call: Unit rh-postgresql94-postgresql.service failed to load: Invalid argument. See system logs and 'systemctl status rh-postgresql94-postgresql.service' for details.

# systemctl status rh-postgresql94-postgresql.service
rh-postgresql94-postgresql.service
   Loaded: error (Reason: Invalid argument)
   Active: inactive (dead)

Sep 29 11:15:52 puppetdb2.testbed.ccs.ornl.gov systemd[1]: rh-postgresql94-postgresql.service lacks ExecStart setting. Refusing.
Sep 29 11:16:47 puppetdb2.testbed.ccs.ornl.gov systemd[1]: rh-postgresql94-postgresql.service lacks ExecStart setting. Refusing.

# systemctl show rh-postgresql94-postgresql.service
Id=rh-postgresql94-postgresql.service
Names=rh-postgresql94-postgresql.service
Requires=basic.target
Conflicts=shutdown.target
Before=shutdown.target
After=systemd-journald.socket basic.target
Description=rh-postgresql94-postgresql.service
LoadState=error
ActiveState=inactive
SubState=dead
FragmentPath=/etc/systemd/system/rh-postgresql94-postgresql.service
UnitFileState=static
InactiveExitTimestampMonotonic=0
ActiveEnterTimestampMonotonic=0
ActiveExitTimestampMonotonic=0
InactiveEnterTimestampMonotonic=0
CanStart=yes
CanStop=yes
CanReload=no
CanIsolate=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=yes
OnFailureIsolate=no
IgnoreOnIsolate=no
IgnoreOnSnapshot=no
NeedDaemonReload=no
JobTimeoutUSec=0
ConditionTimestampMonotonic=0
ConditionResult=no
LoadError=org.freedesktop.DBus.Error.InvalidArgs "Invalid argument"
Transient=no
Slice=system.slice
Type=simple
Restart=no
NotifyAccess=none
RestartUSec=100ms
TimeoutStartUSec=1min 30s
TimeoutStopUSec=1min 30s
WatchdogUSec=0
WatchdogTimestampMonotonic=0
StartLimitInterval=10000000
StartLimitBurst=5
StartLimitAction=none
PermissionsStartOnly=no



Expected results:
$ systemctl start rh-postgresql94-postgresql
$

Additional info:

Patch:
--- /etc/systemd/system/rh-postgresql94-postgresql.service	2015-09-29 11:35:18.949217591 -0400
+++ /tmp/rh-postgresql94-postgresql.service.broken	2015-09-29 11:34:50.679971159 -0400
@@ -1,4 +1,4 @@
-.include /usr/lib/systemd/system/rh-postgresql94-postgresql.service
+.include /lib/systemd/system/postgresql-9.4.service
 [Service]
 Environment=PGPORT=5432
 Environment=PGDATA=/var/opt/rh/rh-postgresql94/lib/pgsql/data

Comment 1 Matthew Gyurgyik 2015-09-29 16:49:08 UTC
Foo bared the patch

$ diff -rNup /tmp/rh-postgresql94-postgresql.service.broken /etc/systemd/system/rh-postgresql94-postgresql.service
--- /tmp/rh-postgresql94-postgresql.service.broken	2015-09-29 11:34:50.679971159 -0400
+++ /etc/systemd/system/rh-postgresql94-postgresql.service	2015-09-29 12:48:26.774247290 -0400
@@ -1,4 +1,4 @@
-.include /lib/systemd/system/postgresql-9.4.service
+.include /lib/systemd/system/rh-postgresql94-postgresql.service
 [Service]
 Environment=PGPORT=5432
 Environment=PGDATA=/var/opt/rh/rh-postgresql94/lib/pgsql/data

Comment 2 Matthew Gyurgyik 2015-09-29 17:01:12 UTC
Sorry for the noise. This appears to have been caused due to an overbearing puppet module.


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