Merge lp:~ttx/nova/lp820968 into lp:~openstack-ubuntu-packagers/nova/ubuntu

Proposed by Thierry Carrez
Status: Merged
Merged at revision: 175
Proposed branch: lp:~ttx/nova/lp820968
Merge into: lp:~openstack-ubuntu-packagers/nova/ubuntu
Diff against target: 28 lines (+7/-6)
2 files modified
debian/changelog (+6/-0)
debian/nova-objectstore.upstart.in (+1/-6)
To merge this branch: bzr merge lp:~ttx/nova/lp820968
Reviewer Review Type Date Requested Status
Dave Walker Approve
Review via email: mp+72418@code.launchpad.net

Description of the change

No longer run nova-objectstore as root (LP: #820968)

To post a comment you must log in.
lp:~ttx/nova/lp820968 updated
176. By Thierry Carrez

Missing quote, darnit

Revision history for this message
Dave Walker (davewalker) wrote :

Is --nodaemon required to let upstart supervise it correctly?

Is --logfile now handled from the conf?

Thanks.

review: Needs Information
Revision history for this message
Thierry Carrez (ttx) wrote :

--nodaemon and --logfile are ignored. It is now started as the other (eventlet-powered) daemons.

Revision history for this message
Dave Walker (davewalker) wrote :

Super, thanks. +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-08-12 07:13:18 +0000
3+++ debian/changelog 2011-08-23 13:05:28 +0000
4@@ -1,3 +1,9 @@
5+nova (2011.3~d4~20110812.1417-0ubuntu2) UNRELEASED; urgency=low
6+
7+ * No longer run nova-objectstore as root (LP: #820968)
8+
9+ -- Thierry Carrez (ttx) <thierry@openstack.org> Mon, 22 Aug 2011 14:43:38 +0200
10+
11 nova (2011.3~d4~20110812.1417-0ubuntu1) oneiric; urgency=low
12
13 [Chuck Short]
14
15=== modified file 'debian/nova-objectstore.upstart.in'
16--- debian/nova-objectstore.upstart.in 2011-08-11 11:27:36 +0000
17+++ debian/nova-objectstore.upstart.in 2011-08-23 13:05:28 +0000
18@@ -14,9 +14,4 @@
19 chown nova:root /var/lock/nova/
20 end script
21
22-script
23- PIDFILE=/var/run/nova/nova-objectstore.pid
24- uid="$(getent passwd nova | cut -f3 -d:)"
25- gid="$(getent passwd nova | cut -f4 -d:)"
26- nova-objectstore --uid $uid --gid $gid --pidfile $PIDFILE --flagfile=/etc/nova/nova.conf --nodaemon --logfile=/var/log/nova/nova-objectstore.log
27-end script
28+exec su -c "nova-objectstore --flagfile=/etc/nova/nova.conf" nova

Subscribers

People subscribed via source and target branches