Merge lp:~soren/nova/split-by-hypervisor into lp:~openstack-ubuntu-packagers/nova/ubuntu

Proposed by Soren Hansen
Status: Merged
Merged at revision: 169
Proposed branch: lp:~soren/nova/split-by-hypervisor
Merge into: lp:~openstack-ubuntu-packagers/nova/ubuntu
Diff against target: 217 lines (+112/-6)
11 files modified
debian/changelog (+3/-0)
debian/control (+95/-2)
debian/debian_control_vars (+1/-0)
debian/nova-compute-kvm.conf (+1/-0)
debian/nova-compute-lxc.conf (+1/-0)
debian/nova-compute-uml.conf (+1/-0)
debian/nova-compute-xen.conf (+1/-0)
debian/nova-compute.init (+4/-4)
debian/nova.conf (+1/-0)
debian/rules (+3/-0)
debian/ubuntu_control_vars (+1/-0)
To merge this branch: bzr merge lp:~soren/nova/split-by-hypervisor
Reviewer Review Type Date Requested Status
OpenStack Ubuntu packagers Pending
Review via email: mp+71165@code.launchpad.net

Description of the change

Create nova-compute-{kvm,lxc,xen,uml} with the relevant dependencies. Put a /etc/nova/nova-compute.conf in each of them and make /etc/nova/nova.conf include /etc/nova/nova-compute.conf.

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

lgtm

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-09 03:08:01 +0000
3+++ debian/changelog 2011-08-11 09:06:19 +0000
4@@ -12,6 +12,9 @@
5 bug #800465 which caused the test suite to fail.
6 * Remove nova-instancemonitor package (dropped upstream).
7 * Remove twisted dependency (dropped upstream).
8+ * Create nova-compute-{kvm,lxc,uml,xen} packages that pull in the
9+ right packages and configures nova to use the hypervisor in
10+ question.
11
12 [ Thierry Carrez (ttx) ]
13 * Added python-xattr to build deps, apprently this is now needed
14
15=== modified file 'debian/control'
16--- debian/control 2011-08-09 03:08:01 +0000
17+++ debian/control 2011-08-11 09:06:19 +0000
18@@ -120,8 +120,9 @@
19
20 Package: nova-compute
21 Architecture: all
22-Depends: ${ostack-lsb-base}, ${nova-compute-deps}, nova-common (= ${binary:Version}), kpartx, kvm | xen-linux-system, python-libvirt, curl, parted,
23- ebtables, gawk, iptables, open-iscsi, ${python:Depends}, ${misc:Depends}
24+Depends: ${ostack-lsb-base}, ${nova-compute-deps}, nova-common (= ${binary:Version}), kpartx, curl, parted,
25+ ebtables, gawk, iptables, open-iscsi, ${nova-compute-default-hypervisor} | nova-compute-hypervisor,
26+ ${python:Depends}, ${misc:Depends}
27 Recommends: ajaxterm
28 Description: OpenStack Compute - compute node
29 OpenStack is a reliable cloud infrastructure. Its mission is to produce
30@@ -141,6 +142,98 @@
31 This is the package you will install on the nodes that will run your
32 virtual machines.
33
34+Package: nova-compute-lxc
35+Architecture: all
36+Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, ${misc:Depends}
37+Provides: nova-compute-hypervisor
38+Replaces: nova-compute-hypervisor
39+Conflicts: nova-compute-hypervisor
40+Description: OpenStack Compute - compute node (LXC)
41+ OpenStack is a reliable cloud infrastructure. Its mission is to produce
42+ the ubiquitous cloud computing platform that will meet the needs of public
43+ and private cloud providers regardless of size, by being simple to implement
44+ and massively scalable.
45+ .
46+ OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
47+ addition to its "native" API (the OpenStack API), it also supports the Amazon
48+ EC2 API.
49+ .
50+ Nova is intended to be modular and easy to extend and adapt. It supports many
51+ different hypervisors (KVM and Xen to name a few), different database backends
52+ (SQLite, MySQL, and PostgreSQL, for instance), different types of user
53+ databases (LDAP or SQL), etc.
54+ .
55+ Install this package on your compute nodes if you're using LXC.
56+
57+Package: nova-compute-uml
58+Architecture: all
59+Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, user-mode-linux, ${misc:Depends}
60+Provides: nova-compute-hypervisor
61+Replaces: nova-compute-hypervisor
62+Conflicts: nova-compute-hypervisor
63+Description: OpenStack Compute - compute node (UserModeLinux)
64+ OpenStack is a reliable cloud infrastructure. Its mission is to produce
65+ the ubiquitous cloud computing platform that will meet the needs of public
66+ and private cloud providers regardless of size, by being simple to implement
67+ and massively scalable.
68+ .
69+ OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
70+ addition to its "native" API (the OpenStack API), it also supports the Amazon
71+ EC2 API.
72+ .
73+ Nova is intended to be modular and easy to extend and adapt. It supports many
74+ different hypervisors (KVM and Xen to name a few), different database backends
75+ (SQLite, MySQL, and PostgreSQL, for instance), different types of user
76+ databases (LDAP or SQL), etc.
77+ .
78+ Install this package on your compute nodes if you're using UserModeLinux.
79+
80+Package: nova-compute-xen
81+Architecture: all
82+Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, xen-linux-system, ${misc:Depends}
83+Provides: nova-compute-hypervisor
84+Replaces: nova-compute-hypervisor
85+Conflicts: nova-compute-hypervisor
86+Description: OpenStack Compute - compute node (Xen)
87+ OpenStack is a reliable cloud infrastructure. Its mission is to produce
88+ the ubiquitous cloud computing platform that will meet the needs of public
89+ and private cloud providers regardless of size, by being simple to implement
90+ and massively scalable.
91+ .
92+ OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
93+ addition to its "native" API (the OpenStack API), it also supports the Amazon
94+ EC2 API.
95+ .
96+ Nova is intended to be modular and easy to extend and adapt. It supports many
97+ different hypervisors (KVM and Xen to name a few), different database backends
98+ (SQLite, MySQL, and PostgreSQL, for instance), different types of user
99+ databases (LDAP or SQL), etc.
100+ .
101+ Install this package on your compute nodes if you're using Xen.
102+
103+Package: nova-compute-kvm
104+Architecture: all
105+Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, kvm, ${misc:Depends}
106+Provides: nova-compute-hypervisor
107+Replaces: nova-compute-hypervisor
108+Conflicts: nova-compute-hypervisor
109+Description: OpenStack Compute - compute node (KVM)
110+ OpenStack is a reliable cloud infrastructure. Its mission is to produce
111+ the ubiquitous cloud computing platform that will meet the needs of public
112+ and private cloud providers regardless of size, by being simple to implement
113+ and massively scalable.
114+ .
115+ OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
116+ addition to its "native" API (the OpenStack API), it also supports the Amazon
117+ EC2 API.
118+ .
119+ Nova is intended to be modular and easy to extend and adapt. It supports many
120+ different hypervisors (KVM and Xen to name a few), different database backends
121+ (SQLite, MySQL, and PostgreSQL, for instance), different types of user
122+ databases (LDAP or SQL), etc.
123+ .
124+ Install this package on your compute nodes if you're using kvm.
125+
126 Package: nova-scheduler
127 Architecture: all
128 Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
129
130=== modified file 'debian/debian_control_vars'
131--- debian/debian_control_vars 2011-04-24 08:42:40 +0000
132+++ debian/debian_control_vars 2011-08-11 09:06:19 +0000
133@@ -1,2 +1,3 @@
134 nova-compute-deps= lsb-base, qemu-utils, adduser, libvirt-bin (>= 0.9.0)
135 ostack-lsb-base= lsb-base
136+nova-compute-default-hypervisor=nova-compute-kvm
137
138=== added file 'debian/nova-compute-kvm.conf'
139--- debian/nova-compute-kvm.conf 1970-01-01 00:00:00 +0000
140+++ debian/nova-compute-kvm.conf 2011-08-11 09:06:19 +0000
141@@ -0,0 +1,1 @@
142+--libvirt_type=kvm
143
144=== added file 'debian/nova-compute-lxc.conf'
145--- debian/nova-compute-lxc.conf 1970-01-01 00:00:00 +0000
146+++ debian/nova-compute-lxc.conf 2011-08-11 09:06:19 +0000
147@@ -0,0 +1,1 @@
148+--libvirt_type=lxc
149
150=== added file 'debian/nova-compute-uml.conf'
151--- debian/nova-compute-uml.conf 1970-01-01 00:00:00 +0000
152+++ debian/nova-compute-uml.conf 2011-08-11 09:06:19 +0000
153@@ -0,0 +1,1 @@
154+--libvirt_type=uml
155
156=== added file 'debian/nova-compute-xen.conf'
157--- debian/nova-compute-xen.conf 1970-01-01 00:00:00 +0000
158+++ debian/nova-compute-xen.conf 2011-08-11 09:06:19 +0000
159@@ -0,0 +1,1 @@
160+--libvirt_type=xen
161
162=== modified file 'debian/nova-compute.init'
163--- debian/nova-compute.init 2011-04-27 05:30:15 +0000
164+++ debian/nova-compute.init 2011-08-11 09:06:19 +0000
165@@ -19,6 +19,10 @@
166 DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
167 PIDFILE=/var/run/nova/nova-compute.pid
168
169+if ! [ -x ${DAEMON} ] ; then
170+ exit 0
171+fi
172+
173 ENABLED=true
174
175 if test -f /etc/default/nova-compute; then
176@@ -39,10 +43,6 @@
177 export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
178 export TMPDIR=/var/lib/nova/tmp
179
180-if ! [ -x ${DAEMON} ] ; then
181- exit 0
182-fi
183-
184 case "$1" in
185 start)
186 test "$ENABLED" = "true" || exit 0
187
188=== modified file 'debian/nova.conf'
189--- debian/nova.conf 2011-03-10 13:51:59 +0000
190+++ debian/nova.conf 2011-08-11 09:06:19 +0000
191@@ -3,4 +3,5 @@
192 --logdir=/var/log/nova
193 --state_path=/var/lib/nova
194 --lock_path=/var/lock/nova
195+--flagfile=/etc/nova/nova-compute.conf
196 --verbose
197
198=== modified file 'debian/rules'
199--- debian/rules 2011-05-19 22:26:04 +0000
200+++ debian/rules 2011-08-11 09:06:19 +0000
201@@ -43,6 +43,9 @@
202 dh_install
203 chmod 440 $(CURDIR)/debian/nova-common/etc/sudoers.d/nova_sudoers
204 install -D -m 0664 $(CURDIR)/debian/nova-volume.default $(CURDIR)/debian/nova-volume/etc/default/nova-volume
205+ for hypervisor in kvm xen uml lxc; do \
206+ install -D -m 0600 $(CURDIR)/debian/nova-compute-$${hypervisor}.conf $(CURDIR)/debian/nova-compute-$${hypervisor}/etc/nova/nova-compute.conf; \
207+ done
208
209 override_dh_fixperms:
210 dh_fixperms -Xnova_sudoers
211
212=== modified file 'debian/ubuntu_control_vars'
213--- debian/ubuntu_control_vars 2011-05-05 14:35:33 +0000
214+++ debian/ubuntu_control_vars 2011-08-11 09:06:19 +0000
215@@ -1,1 +1,2 @@
216 nova-compute-deps= adduser, libvirt-bin (>= 0.8.8)
217+nova-compute-default-hypervisor=nova-compute-kvm

Subscribers

People subscribed via source and target branches