Merge lp:~markwash/nova/ubuntu into lp:~openstack-ubuntu-packagers/nova/ubuntu

Proposed by Mark Washenberger
Status: Merged
Merged at revision: 194
Proposed branch: lp:~markwash/nova/ubuntu
Merge into: lp:~openstack-ubuntu-packagers/nova/ubuntu
Diff against target: 193 lines (+142/-0)
8 files modified
debian/changelog (+3/-0)
debian/control (+22/-0)
debian/mans/nova-console.8 (+20/-0)
debian/nova-console.init (+71/-0)
debian/nova-console.install (+1/-0)
debian/nova-console.logrotate (+5/-0)
debian/nova-console.manpages (+1/-0)
debian/nova-console.upstart.in (+19/-0)
To merge this branch: bzr merge lp:~markwash/nova/ubuntu
Reviewer Review Type Date Requested Status
Chuck Short (community) Approve
Review via email: mp+80257@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Chuck Short (zulcss) wrote :

+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-10-13 15:57:33 +0000
3+++ debian/changelog 2011-10-24 19:43:23 +0000
4@@ -20,6 +20,9 @@
5 - debian/nova-common.postinst: Create 'nova' group, add user to it.
6 - debian/nova-common.postinst: Restrict permissions of /var/log/nova
7
8+ [ Mark Washenberger ]
9+ * Add support for nova-console package.
10+
11 -- Monty Taylor <mordred@inaugust.com> Fri, 30 Sep 2011 09:33:16 -0700
12
13 nova (2011.3~rc~20110916.r1173-0ubuntu1) oneiric; urgency=low
14
15=== modified file 'debian/control'
16--- debian/control 2011-10-13 15:57:33 +0000
17+++ debian/control 2011-10-24 19:43:23 +0000
18@@ -399,6 +399,28 @@
19 This is the package contains a very simple S3-like object store.
20 For production use, you should use OpenStack Storage, aka. Swift.
21
22+Package: nova-console
23+Architecture: all
24+Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
25+Description: OpenStack Compute - Console
26+ OpenStack is a reliable cloud infrastructure. Its mission is to produce
27+ the ubiquitous cloud computing platform that will meet the needs of public
28+ and private cloud providers regardless of size, by being simple to implement
29+ and massively scalable.
30+ .
31+ OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
32+ addition to its "native" API (the OpenStack API), it also supports the Amazon
33+ EC2 API.
34+ .
35+ Nova is intended to be modular and easy to extend and adapt. It supports many
36+ different hypervisors (KVM and Xen to name a few), different database backends
37+ (SQLite, MySQL, and PostgreSQL, for instance), different types of user
38+ databases (LDAP or SQL), etc.
39+ .
40+ This package provides the console server. This enables the use of consoles
41+ to be used along with XVP and XenServer. It is a publically reachable
42+ component which proxies access to VNCs running on compute nodes.
43+
44 Package: nova-doc
45 Architecture: all
46 Section: doc
47
48=== added file 'debian/mans/nova-console.8'
49--- debian/mans/nova-console.8 1970-01-01 00:00:00 +0000
50+++ debian/mans/nova-console.8 2011-10-24 19:43:23 +0000
51@@ -0,0 +1,20 @@
52+.TH nova\-console 8
53+.SH NAME
54+nova\-console \- nova VNC console proxy
55+
56+.SH SYNOPSIS
57+.B nova\-console
58+.B \-\-flagfile=<flagfilepath>
59+
60+.SH DESCRIPTION
61+.B nova\-console
62+
63+This man page is a stub. Please contribute.
64+
65+.SH PARAMETERS
66+
67+.LP
68+.B \-\-flagfile=<flagfilepath>
69+.IP
70+
71+Path to the file containing options.
72
73=== added file 'debian/nova-console.init'
74--- debian/nova-console.init 1970-01-01 00:00:00 +0000
75+++ debian/nova-console.init 2011-10-24 19:43:23 +0000
76@@ -0,0 +1,71 @@
77+#! /bin/sh
78+### BEGIN INIT INFO
79+# Provides: nova-console
80+# Required-Start: $remote_fs $syslog
81+# Required-Stop: $remote_fs $syslog
82+# Default-Start: 2 3 4 5
83+# Default-Stop: 0 1 6
84+# Short-Description: nova-console
85+# Description: Nova Console for XenServer and XVP
86+### END INIT INFO
87+
88+
89+set -e
90+
91+DAEMON=/usr/bin/nova-console
92+DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
93+PIDFILE=/var/run/nova/nova-console.pid
94+
95+ENABLED=true
96+
97+if test -f /etc/default/nova-console; then
98+ . /etc/default/nova-console
99+fi
100+
101+mkdir -p /var/run/nova
102+chown nova:root /var/run/nova
103+
104+mkdir -p /var/lock/nova
105+chown nova:root /var/lock/nova
106+
107+uid="$(getent passwd nova | cut -f3 -d:)"
108+gid="$(getent passwd nova | cut -f4 -d:)"
109+
110+. /lib/lsb/init-functions
111+
112+export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
113+
114+if ! [ -x ${DAEMON} ] ; then
115+ exit 0
116+fi
117+
118+case "$1" in
119+ start)
120+ test "$ENABLED" = "true" || exit 0
121+ log_daemon_msg "Starting nova console" "nova-console"
122+ start-stop-daemon --start --chdir /var/run --chuid ${uid}:${gid} -b -m --pidfile ${PIDFILE} --exec ${DAEMON} -- ${DAEMON_ARGS}
123+ log_end_msg $?
124+ ;;
125+ stop)
126+ test "$ENABLED" = "true" || exit 0
127+ log_daemon_msg "Stopping nova console" "nova-console"
128+ start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}
129+ log_end_msg $?
130+ ;;
131+ restart|force-reload)
132+ test "$ENABLED" = "true" || exit 1
133+ $0 stop
134+ sleep 1
135+ $0 start
136+ ;;
137+ status)
138+ test "$ENABLED" = "true" || exit 0
139+ status_of_proc -p $PIDFILE $DAEMON nova-console && exit 0 || exit $?
140+ ;;
141+ *)
142+ log_action_msg "Usage: /etc/init.d/nova-console {start|stop|restart|force-reload|status}"
143+ exit 1
144+ ;;
145+esac
146+
147+exit 0
148
149=== added file 'debian/nova-console.install'
150--- debian/nova-console.install 1970-01-01 00:00:00 +0000
151+++ debian/nova-console.install 2011-10-24 19:43:23 +0000
152@@ -0,0 +1,1 @@
153+usr/bin/nova-console
154
155=== added file 'debian/nova-console.logrotate'
156--- debian/nova-console.logrotate 1970-01-01 00:00:00 +0000
157+++ debian/nova-console.logrotate 2011-10-24 19:43:23 +0000
158@@ -0,0 +1,5 @@
159+/var/log/nova/nova-console.log {
160+ daily
161+ copytruncate
162+ missingok
163+}
164
165=== added file 'debian/nova-console.manpages'
166--- debian/nova-console.manpages 1970-01-01 00:00:00 +0000
167+++ debian/nova-console.manpages 2011-10-24 19:43:23 +0000
168@@ -0,0 +1,1 @@
169+debian/mans/nova-console.8
170
171=== added file 'debian/nova-console.upstart.in'
172--- debian/nova-console.upstart.in 1970-01-01 00:00:00 +0000
173+++ debian/nova-console.upstart.in 2011-10-24 19:43:23 +0000
174@@ -0,0 +1,19 @@
175+description "Nova Console"
176+author "Vishvananda Ishaya <vishvananda@gmail.com>"
177+
178+start on (filesystem and net-device-up IFACE!=lo)
179+stop on runlevel [016]
180+
181+respawn
182+
183+chdir /var/run
184+
185+pre-start script
186+ mkdir -p /var/run/nova
187+ chown nova:root /var/run/nova
188+
189+ mkdir -p /var/lock/nova
190+ chown nova:root /var/lock/nova
191+end script
192+
193+exec su -c "nova-console --flagfile=/etc/nova/nova.conf" nova

Subscribers

People subscribed via source and target branches