Merge lp:~gandelman-a/nova/lp839796_and_856530 into lp:~ubuntu-server-dev/nova/diablo

Proposed by Adam Gandelman
Status: Merged
Merged at revision: 206
Proposed branch: lp:~gandelman-a/nova/lp839796_and_856530
Merge into: lp:~ubuntu-server-dev/nova/diablo
Diff against target: 68 lines (+17/-9)
4 files modified
debian/changelog (+6/-0)
debian/nova-common.postinst (+10/-7)
debian/nova-compute.upstart.in (+1/-1)
debian/nova.conf (+0/-1)
To merge this branch: bzr merge lp:~gandelman-a/nova/lp839796_and_856530
Reviewer Review Type Date Requested Status
Chuck Short (community) Approve
Review via email: mp+77078@code.launchpad.net

Description of the change

* debian/nova-common.postinst: Create 'nova' group, add user to it
 (LP: #856530)
* debian/nova.conf, debian/nova-compute.upstart.in: Move reference of
  nova-compute.conf from nova.conf to nova-compute's argv. (LP: #839796)

To post a comment you must log in.
Revision history for this message
Chuck Short (zulcss) wrote :

lgtm

review: Approve
Revision history for this message
Scott Moser (smoser) wrote :

did you/could you propose this same merge to lp:~openstack-ubuntu-packagers/nova/ubuntu ?

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Scott-- Applied to upstream packaging branch and proposed via lp:~gandelman-a/nova/openstack-ubuntu-packagers

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2011-09-26 20:08:15 +0000
+++ debian/changelog 2011-09-27 01:54:17 +0000
@@ -1,5 +1,11 @@
1nova (2011.3-0ubuntu3) UNRELEASED; urgency=low1nova (2011.3-0ubuntu3) UNRELEASED; urgency=low
22
3 [Adam Gandelman]
4 * debian/nova-common.postinst: Create 'nova' group, add user to it
5 (LP: #856530)
6 * debian/nova.conf, debian/nova-compute.upstart.in: Move reference of
7 nova-compute.conf from nova.conf to nova-compute's argv. (LP: #839796)
8
3 [Chuck Short]9 [Chuck Short]
4 * debian/patches/backport-recreate-gateway-using-dhcp.patch:10 * debian/patches/backport-recreate-gateway-using-dhcp.patch:
5 Makes sure to recreate gateway for moved ip. (LP: #859587)11 Makes sure to recreate gateway for moved ip. (LP: #859587)
612
=== modified file 'debian/nova-common.postinst'
--- debian/nova-common.postinst 2011-08-11 11:27:36 +0000
+++ debian/nova-common.postinst 2011-09-27 01:54:17 +0000
@@ -1,16 +1,19 @@
1#!/bin/sh -e1#!/bin/sh -e
22
3if [ "$1" = "configure" ]; then3if [ "$1" = "configure" ]; then
4 if ! getent group nova > /dev/null 2>&1; then
5 addgroup --system nova >/dev/null
6 fi
4 if ! getent passwd nova > /dev/null 2>&1; then7 if ! getent passwd nova > /dev/null 2>&1; then
5 adduser --system --home /var/lib/nova --no-create-home --shell /bin/bash nova8 adduser --system --home /var/lib/nova --ingroup nova --no-create-home --shell /bin/bash nova
6 fi9 fi
7 chown -R nova:root /var/lib/nova/ /var/log/nova/ /etc/nova/nova.conf10 chown -R nova:nova /var/lib/nova/ /var/log/nova/ /etc/nova/nova.conf
8 chmod 600 /etc/nova/nova.conf11 chmod 600 /etc/nova/nova.conf
9 chmod 0440 /etc/sudoers.d/nova_sudoers12 chmod 0440 /etc/sudoers.d/nova_sudoers
10 if ! grep -q sql_connection /etc/nova/nova.conf13 if ! grep -q sql_connection /etc/nova/nova.conf
11 then14 then
12 su -c 'nova-manage db sync' nova15 su -c 'nova-manage db sync' nova
13 fi16 fi
14fi17fi
1518
16#DEBHELPER#19#DEBHELPER#
1720
=== modified file 'debian/nova-compute.upstart.in'
--- debian/nova-compute.upstart.in 2011-08-11 13:29:06 +0000
+++ debian/nova-compute.upstart.in 2011-09-27 01:54:17 +0000
@@ -17,4 +17,4 @@
17 modprobe nbd17 modprobe nbd
18end script18end script
1919
20exec su -c "nova-compute --flagfile=/etc/nova/nova.conf" nova20exec su -c "nova-compute --flagfile=/etc/nova/nova.conf --flagfile=/etc/nova/nova-compute.conf" nova
2121
=== modified file 'debian/nova.conf'
--- debian/nova.conf 2011-09-23 15:44:49 +0000
+++ debian/nova.conf 2011-09-27 01:54:17 +0000
@@ -3,7 +3,6 @@
3--logdir=/var/log/nova3--logdir=/var/log/nova
4--state_path=/var/lib/nova4--state_path=/var/lib/nova
5--lock_path=/var/lock/nova5--lock_path=/var/lock/nova
6--flagfile=/etc/nova/nova-compute.conf
7--force_dhcp_release=True6--force_dhcp_release=True
8--use_deprecated_auth7--use_deprecated_auth
9--iscsi_helper=tgtadm8--iscsi_helper=tgtadm

Subscribers

People subscribed via source and target branches