Bug 747639 - deltacloud-core should use systemd unit file instead of SysVinit init script
Summary: deltacloud-core should use systemd unit file instead of SysVinit init script
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: deltacloud-core
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Fojtik
QA Contact: Ronelle Landy
URL:
Whiteboard:
Depends On:
Blocks: SysVtoSystemd
TreeView+ depends on / blocked
 
Reported: 2011-10-20 15:14 UTC by Vít Ondruch
Modified: 2013-04-05 14:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-05 14:35:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vít Ondruch 2011-10-20 15:14:27 UTC
Please see [1, 2] for more information.

[1] http://fedoraproject.org/wiki/Features/SysVtoSystemd
[2] http://fedoraproject.org/wiki/Systemd

Comment 1 Ronelle Landy 2012-03-06 14:48:22 UTC
Adding chat comments re: addressing this BZ:

<vondruch> mfojtik, but once the Fedora was released you are not supposed to change it
<vondruch> mfojtik, so it should be F17+

Comment 2 Ronelle Landy 2012-06-26 23:05:49 UTC
Installed deltacloud-core-1.0.0-4.fc17 and tested the service start/stop/restart. Test output is copied below:

[root@ivanova workspace]# which deltacloudd
/bin/deltacloudd

rpms tested:

>>  rpm -qa |grep deltacloud
deltacloud-core-1.0.0-4.fc17.noarch
deltacloud-core-opennebula-1.0.0-4.fc17.noarch
deltacloud-core-fgcp-1.0.0-4.fc17.noarch
deltacloud-core-all-1.0.0-4.fc17.noarch
deltacloud-core-openstack-1.0.0-4.fc17.noarch
deltacloud-core-gogrid-1.0.0-4.fc17.noarch
deltacloud-core-rimuhosting-1.0.0-4.fc17.noarch
deltacloud-core-doc-1.0.0-4.fc17.noarch
deltacloud-core-ec2-1.0.0-4.fc17.noarch
deltacloud-core-google-1.0.0-4.fc17.noarch
deltacloud-core-sbc-1.0.0-4.fc17.noarch
deltacloud-core-eucalyptus-1.0.0-4.fc17.noarch
deltacloud-core-vsphere-1.0.0-4.fc17.noarch
deltacloud-core-rackspace-1.0.0-4.fc17.noarch
deltacloud-core-rhevm-1.0.0-4.fc17.noarch

[root@ivanova workspace]# service deltacloud-core status
Redirecting to /bin/systemctl  status deltacloud-core.service
deltacloud-core.service - Deltacloud Core Daemon
	  Loaded: loaded (/usr/lib/systemd/system/deltacloud-core.service; enabled)
	  Active: inactive (dead)
	  CGroup: name=systemd:/system/deltacloud-core.service

==== start ======

[root@ivanova workspace]# service deltacloud-core start
Redirecting to /bin/systemctl  start deltacloud-core.service

[root@ivanova workspace]# service deltacloud-core status
Redirecting to /bin/systemctl  status deltacloud-core.service
deltacloud-core.service - Deltacloud Core Daemon
	  Loaded: loaded (/usr/lib/systemd/system/deltacloud-core.service; enabled)
	  Active: active (running) since Tue, 26 Jun 2012 18:55:32 -0400; 4s ago
	Main PID: 30605 (deltacloudd)
	  CGroup: name=systemd:/system/deltacloud-core.service
		  └ 30605 /usr/bin/ruby /usr/bin/deltacloudd -i mock -e production --port...


======== stop ==========


[root@ivanova workspace]# service deltacloud-core stop
Redirecting to /bin/systemctl  stop deltacloud-core.service

[root@ivanova workspace]# service deltacloud-core status
Redirecting to /bin/systemctl  status deltacloud-core.service
deltacloud-core.service - Deltacloud Core Daemon
	  Loaded: loaded (/usr/lib/systemd/system/deltacloud-core.service; enabled)
	  Active: inactive (dead) since Tue, 26 Jun 2012 18:55:41 -0400; 2s ago
	 Process: 30605 ExecStart=/usr/bin/deltacloudd -i $DRIVER -e $API_ENV --port $PORT --host $HOST -u $DELTACLOUD_USER -g $DELTACLOUD_GROUP (code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/system/deltacloud-core.service

Jun 26 18:55:41 ivanova.idm.lab.bos.redhat.com deltacloudd[30605]: Starting Deltacloud API...
Jun 26 18:55:41 ivanova.idm.lab.bos.redhat.com deltacloudd[30605]: >> Thin web server (v1....
Jun 26 18:55:41 ivanova.idm.lab.bos.redhat.com deltacloudd[30605]: >> Debugging ON
Jun 26 18:55:41 ivanova.idm.lab.bos.redhat.com deltacloudd[30605]: >> Maximum connections ...
Jun 26 18:55:41 ivanova.idm.lab.bos.redhat.com deltacloudd[30605]: >> Listening on localho...


======= restart =========

[root@ivanova workspace]# service deltacloud-core restart
Redirecting to /bin/systemctl  restart deltacloud-core.service

[root@ivanova workspace]# service deltacloud-core status
Redirecting to /bin/systemctl  status deltacloud-core.service
deltacloud-core.service - Deltacloud Core Daemon
	  Loaded: loaded (/usr/lib/systemd/system/deltacloud-core.service; enabled)
	  Active: active (running) since Tue, 26 Jun 2012 18:55:52 -0400; 2s ago
	Main PID: 30642 (deltacloudd)
	  CGroup: name=systemd:/system/deltacloud-core.service
		  └ 30642 /usr/bin/ruby /usr/bin/deltacloudd -i mock -e production --port...

[root@ivanova workspace]#

Comment 5 Vít Ondruch 2012-06-28 09:30:07 UTC
Hi, I have a few notes from packagers point of view:

* This is not show stopper, just a hint: The service file should be probably directly in git, not in look-aside cache. The key is the file size. "fedpkg import deltacloud-core.srpm" would did the decision for you (or may be you did that? Dunno :).

* The service file should not be in F17. There was some policy regarding this, although I can't find it now. Unfortunately it seems it is too late, since you gave it karma and pushed stable :/

Otherwise I am fine with that change (although I did not tested it, I believe you it works ;)

Comment 7 Fedora End Of Life 2013-04-03 16:14:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 8 Ronelle Landy 2013-04-05 14:35:13 UTC
This BZ was attached to an advisory, it wasn't automatically closed.  The fix was implemented in F17/F18 timeframe. These versions have already shipped.

Closing this BZ ... CLOSED CURRENTRELEASE (F18)


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