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
=== modified file 'debian/changelog'
--- debian/changelog 2011-10-13 15:57:33 +0000
+++ debian/changelog 2011-10-24 19:43:23 +0000
@@ -20,6 +20,9 @@
20 - debian/nova-common.postinst: Create 'nova' group, add user to it.20 - debian/nova-common.postinst: Create 'nova' group, add user to it.
21 - debian/nova-common.postinst: Restrict permissions of /var/log/nova21 - debian/nova-common.postinst: Restrict permissions of /var/log/nova
2222
23 [ Mark Washenberger ]
24 * Add support for nova-console package.
25
23 -- Monty Taylor <mordred@inaugust.com> Fri, 30 Sep 2011 09:33:16 -070026 -- Monty Taylor <mordred@inaugust.com> Fri, 30 Sep 2011 09:33:16 -0700
2427
25nova (2011.3~rc~20110916.r1173-0ubuntu1) oneiric; urgency=low28nova (2011.3~rc~20110916.r1173-0ubuntu1) oneiric; urgency=low
2629
=== modified file 'debian/control'
--- debian/control 2011-10-13 15:57:33 +0000
+++ debian/control 2011-10-24 19:43:23 +0000
@@ -399,6 +399,28 @@
399 This is the package contains a very simple S3-like object store.399 This is the package contains a very simple S3-like object store.
400 For production use, you should use OpenStack Storage, aka. Swift.400 For production use, you should use OpenStack Storage, aka. Swift.
401401
402Package: nova-console
403Architecture: all
404Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
405Description: OpenStack Compute - Console
406 OpenStack is a reliable cloud infrastructure. Its mission is to produce
407 the ubiquitous cloud computing platform that will meet the needs of public
408 and private cloud providers regardless of size, by being simple to implement
409 and massively scalable.
410 .
411 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
412 addition to its "native" API (the OpenStack API), it also supports the Amazon
413 EC2 API.
414 .
415 Nova is intended to be modular and easy to extend and adapt. It supports many
416 different hypervisors (KVM and Xen to name a few), different database backends
417 (SQLite, MySQL, and PostgreSQL, for instance), different types of user
418 databases (LDAP or SQL), etc.
419 .
420 This package provides the console server. This enables the use of consoles
421 to be used along with XVP and XenServer. It is a publically reachable
422 component which proxies access to VNCs running on compute nodes.
423
402Package: nova-doc424Package: nova-doc
403Architecture: all425Architecture: all
404Section: doc426Section: doc
405427
=== added file 'debian/mans/nova-console.8'
--- debian/mans/nova-console.8 1970-01-01 00:00:00 +0000
+++ debian/mans/nova-console.8 2011-10-24 19:43:23 +0000
@@ -0,0 +1,20 @@
1.TH nova\-console 8
2.SH NAME
3nova\-console \- nova VNC console proxy
4
5.SH SYNOPSIS
6.B nova\-console
7.B \-\-flagfile=<flagfilepath>
8
9.SH DESCRIPTION
10.B nova\-console
11
12This man page is a stub. Please contribute.
13
14.SH PARAMETERS
15
16.LP
17.B \-\-flagfile=<flagfilepath>
18.IP
19
20Path to the file containing options.
021
=== added file 'debian/nova-console.init'
--- debian/nova-console.init 1970-01-01 00:00:00 +0000
+++ debian/nova-console.init 2011-10-24 19:43:23 +0000
@@ -0,0 +1,71 @@
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides: nova-console
4# Required-Start: $remote_fs $syslog
5# Required-Stop: $remote_fs $syslog
6# Default-Start: 2 3 4 5
7# Default-Stop: 0 1 6
8# Short-Description: nova-console
9# Description: Nova Console for XenServer and XVP
10### END INIT INFO
11
12
13set -e
14
15DAEMON=/usr/bin/nova-console
16DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
17PIDFILE=/var/run/nova/nova-console.pid
18
19ENABLED=true
20
21if test -f /etc/default/nova-console; then
22 . /etc/default/nova-console
23fi
24
25mkdir -p /var/run/nova
26chown nova:root /var/run/nova
27
28mkdir -p /var/lock/nova
29chown nova:root /var/lock/nova
30
31uid="$(getent passwd nova | cut -f3 -d:)"
32gid="$(getent passwd nova | cut -f4 -d:)"
33
34. /lib/lsb/init-functions
35
36export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
37
38if ! [ -x ${DAEMON} ] ; then
39 exit 0
40fi
41
42case "$1" in
43 start)
44 test "$ENABLED" = "true" || exit 0
45 log_daemon_msg "Starting nova console" "nova-console"
46 start-stop-daemon --start --chdir /var/run --chuid ${uid}:${gid} -b -m --pidfile ${PIDFILE} --exec ${DAEMON} -- ${DAEMON_ARGS}
47 log_end_msg $?
48 ;;
49 stop)
50 test "$ENABLED" = "true" || exit 0
51 log_daemon_msg "Stopping nova console" "nova-console"
52 start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}
53 log_end_msg $?
54 ;;
55 restart|force-reload)
56 test "$ENABLED" = "true" || exit 1
57 $0 stop
58 sleep 1
59 $0 start
60 ;;
61 status)
62 test "$ENABLED" = "true" || exit 0
63 status_of_proc -p $PIDFILE $DAEMON nova-console && exit 0 || exit $?
64 ;;
65 *)
66 log_action_msg "Usage: /etc/init.d/nova-console {start|stop|restart|force-reload|status}"
67 exit 1
68 ;;
69esac
70
71exit 0
072
=== added file 'debian/nova-console.install'
--- debian/nova-console.install 1970-01-01 00:00:00 +0000
+++ debian/nova-console.install 2011-10-24 19:43:23 +0000
@@ -0,0 +1,1 @@
1usr/bin/nova-console
02
=== added file 'debian/nova-console.logrotate'
--- debian/nova-console.logrotate 1970-01-01 00:00:00 +0000
+++ debian/nova-console.logrotate 2011-10-24 19:43:23 +0000
@@ -0,0 +1,5 @@
1/var/log/nova/nova-console.log {
2 daily
3 copytruncate
4 missingok
5}
06
=== added file 'debian/nova-console.manpages'
--- debian/nova-console.manpages 1970-01-01 00:00:00 +0000
+++ debian/nova-console.manpages 2011-10-24 19:43:23 +0000
@@ -0,0 +1,1 @@
1debian/mans/nova-console.8
02
=== added file 'debian/nova-console.upstart.in'
--- debian/nova-console.upstart.in 1970-01-01 00:00:00 +0000
+++ debian/nova-console.upstart.in 2011-10-24 19:43:23 +0000
@@ -0,0 +1,19 @@
1description "Nova Console"
2author "Vishvananda Ishaya <vishvananda@gmail.com>"
3
4start on (filesystem and net-device-up IFACE!=lo)
5stop on runlevel [016]
6
7respawn
8
9chdir /var/run
10
11pre-start script
12 mkdir -p /var/run/nova
13 chown nova:root /var/run/nova
14
15 mkdir -p /var/lock/nova
16 chown nova:root /var/lock/nova
17end script
18
19exec su -c "nova-console --flagfile=/etc/nova/nova.conf" nova

Subscribers

People subscribed via source and target branches