Merge lp:~soren/nova/essex-stable-catchup into lp:~ubuntu-server-dev/nova/diablo

Proposed by Soren Hansen
Status: Rejected
Rejected by: Soren Hansen
Proposed branch: lp:~soren/nova/essex-stable-catchup
Merge into: lp:~ubuntu-server-dev/nova/diablo
Diff against target: 5406 lines (+3604/-748) (has conflicts)
126 files modified
debian/README.xcp_and_openstack (+243/-0)
debian/api-paste.ini (+0/-114)
debian/changelog (+544/-1)
debian/control (+253/-20)
debian/copyright (+10/-7)
debian/debian_control_vars (+0/-3)
debian/gbp.conf (+6/-0)
debian/mans/nova-api-ec2.8 (+20/-0)
debian/mans/nova-api-metadata.8 (+20/-0)
debian/mans/nova-api-os-compute.8 (+20/-0)
debian/mans/nova-api-os-volume.8 (+20/-0)
debian/mans/nova-cert.8 (+20/-0)
debian/mans/nova-console.8 (+20/-0)
debian/mans/nova-consoleauth.8 (+20/-0)
debian/mans/nova-rootwrap.8 (+20/-0)
debian/nova-ajax-console-proxy.init (+0/-73)
debian/nova-ajax-console-proxy.install (+0/-1)
debian/nova-ajax-console-proxy.logrotate (+0/-4)
debian/nova-ajax-console-proxy.manpages (+0/-1)
debian/nova-ajax-console-proxy.upstart.in (+0/-18)
debian/nova-api-ec2.init (+76/-0)
debian/nova-api-ec2.install (+1/-0)
debian/nova-api-ec2.logrotate (+4/-0)
debian/nova-api-ec2.manpages (+1/-0)
debian/nova-api-ec2.upstart.in (+18/-0)
debian/nova-api-metadata.init (+76/-0)
debian/nova-api-metadata.install (+1/-0)
debian/nova-api-metadata.logrotate (+4/-0)
debian/nova-api-metadata.manpages (+1/-0)
debian/nova-api-metadata.upstart.in (+18/-0)
debian/nova-api-os-compute.init (+76/-0)
debian/nova-api-os-compute.install (+1/-0)
debian/nova-api-os-compute.logrotate (+4/-0)
debian/nova-api-os-compute.manpages (+1/-0)
debian/nova-api-os-compute.upstart.in (+18/-0)
debian/nova-api-os-volume.init (+76/-0)
debian/nova-api-os-volume.install (+1/-0)
debian/nova-api-os-volume.logrotate (+4/-0)
debian/nova-api-os-volume.manpages (+1/-0)
debian/nova-api-os-volume.upstart.in (+18/-0)
debian/nova-api.init (+77/-56)
debian/nova-api.install (+0/-1)
debian/nova-api.upstart.in (+1/-1)
debian/nova-cert.init (+71/-0)
debian/nova-cert.install (+1/-0)
debian/nova-cert.logrotate (+4/-0)
debian/nova-cert.manpages (+1/-0)
debian/nova-cert.upstart.in (+18/-0)
debian/nova-common.install (+4/-0)
debian/nova-common.manpages (+2/-0)
debian/nova-common.manpages.in (+0/-1)
debian/nova-common.nova-manage.logrotate (+4/-0)
debian/nova-common.postinst (+42/-6)
debian/nova-compute-kvm.postinst (+8/-0)
debian/nova-compute-lxc.postinst (+8/-0)
debian/nova-compute-qemu.conf (+1/-0)
debian/nova-compute-qemu.postinst (+8/-0)
debian/nova-compute-uml.postinst (+8/-0)
debian/nova-compute-xen.postinst (+8/-0)
debian/nova-compute.init (+78/-53)
debian/nova-compute.pyinstall (+1/-0)
debian/nova-compute.upstart.in (+1/-1)
debian/nova-console.init (+97/-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)
debian/nova-consoleauth.init (+97/-0)
debian/nova-consoleauth.install (+1/-0)
debian/nova-consoleauth.logrotate (+5/-0)
debian/nova-consoleauth.manpages (+1/-0)
debian/nova-consoleauth.upstart.in (+19/-0)
debian/nova-doc.docs (+1/-1)
debian/nova-doc.links (+7/-0)
debian/nova-network.init (+77/-51)
debian/nova-network.nova-dhcpbridge.logrotate (+4/-0)
debian/nova-network.pyinstall (+1/-0)
debian/nova-network.upstart.in (+1/-1)
debian/nova-objectstore.init (+77/-51)
debian/nova-objectstore.logrotate (+1/-5)
debian/nova-objectstore.upstart.in (+1/-1)
debian/nova-scheduler.init (+76/-50)
debian/nova-scheduler.upstart.in (+1/-1)
debian/nova-vncproxy.install (+1/-1)
debian/nova-vncproxy.upstart.in (+1/-1)
debian/nova-volume.default (+2/-3)
debian/nova-volume.init (+91/-59)
debian/nova-volume.pyinstall (+1/-0)
debian/nova-volume.upstart.in (+4/-1)
debian/nova-xcp-network.init (+167/-0)
debian/nova-xcp-network.install (+6/-0)
debian/nova-xcp-plugins.docs (+1/-0)
debian/nova-xcp-plugins.install (+6/-0)
debian/nova-xcp-plugins.postinst (+13/-0)
debian/nova-xcp-plugins.postrm (+11/-0)
debian/nova-xvpvncproxy.init (+97/-0)
debian/nova-xvpvncproxy.install (+1/-0)
debian/nova-xvpvncproxy.logrotate (+4/-0)
debian/nova.conf (+5/-2)
debian/nova_sudoers (+3/-48)
debian/patches/0001-fix-useexisting-deprecation-warnings.patch (+52/-0)
debian/patches/backport-lxc-container-console-fix.patch (+0/-43)
debian/patches/fix-docs-build-without-network.patch (+15/-0)
debian/patches/fix-ubuntu-tests.patch (+15/-0)
debian/patches/kombu_tests_timeout.patch (+11/-0)
debian/patches/nova-console-monitor.patch (+138/-0)
debian/patches/nova-manage_flagfile_location.patch (+8/-9)
debian/patches/packaged-ajaxterm-calls.patch (+0/-19)
debian/patches/path-to-the-xenhost.conf-fixup.patch (+12/-0)
debian/patches/series (+10/-0)
debian/patches/upstream/0001-fix-bug-where-nova-ignores-glance-host-in-imageref.patch (+51/-0)
debian/patches/upstream/0002-Stop-libvirt-test-from-deleting-instances-dir.patch (+69/-0)
debian/patches/upstream/0003-Allow-unprivileged-RADOS-users-to-access-rbd-volumes.patch (+155/-0)
debian/patches/upstream/0004-Fixed-bug-962840-added-a-test-case.patch (+73/-0)
debian/patches/upstream/0005-Populate-image-properties-with-project_id-again.patch (+53/-0)
debian/patches/upstream/0006-Use-project_id-in-ec2.cloud._format_image.patch (+31/-0)
debian/pydist-overrides (+2/-0)
debian/python-nova.install (+0/-1)
debian/python-nova.postinst (+0/-12)
debian/python-nova.pyremove (+3/-0)
debian/pyversions (+0/-1)
debian/rules (+34/-22)
debian/source_nova.py (+1/-1)
debian/ubuntu_control_vars (+0/-2)
debian/watch (+1/-1)
debian/xen-openvswitch-nova.rules (+1/-0)
Text conflict in debian/changelog
Contents conflict in debian/patches/backport-libvirt-console-pipe.patch
Text conflict in debian/patches/series
To merge this branch: bzr merge lp:~soren/nova/essex-stable-catchup
Reviewer Review Type Date Requested Status
Soren Hansen (community) Disapprove
Review via email: mp+107356@code.launchpad.net

Description of the change

Update packaging to work with Essex stable branch.

Note: "work" == "can at least build a source package"

To post a comment you must log in.
Revision history for this message
Soren Hansen (soren) wrote :

What? No, I didn't want to merge this into the diablo branch at all.

review: Disapprove

Unmerged revisions

370. By Soren Hansen

* Snapshot of upstream stable/essex branch.
* Remove local copies of upstream patch set as upstream is nice
  enough to publish tarballs with everything included.

369. By Chuck Short

releasing version 2012.1-0ubuntu2

368. By Chuck Short

  - b1d11b8 Use project_id in ec2.cloud._format_image()
  - 6e988ed Fixes image publication using deprecated auth. (LP: #977765)

367. By Chuck Short

Refreshed rbd volumes patch

366. By Chuck Short

* debian/rules: Properly create empty doc/build/man dir for builds that
  skip doc building
* debian/control: Set 'Conflicts: nova-compute-hypervisor' for the various
  nova-compute-$type packages. (LP: #975616)
* debian/control: Set 'Breaks: nova-api' for the various nova-api-$service
  sub-packages. (LP: #966115)
* Resynchronize with stable/essex:
  - Fixes image publication using deprecated auth. (LP: #977765)
  - 6e988ed Populate image properties with project_id again
  - 3b14c74 Fixed bug 962840, added a test case.
  - d4e96fe Allow unprivileged RADOS users to access rbd volumes.
  - 4acfab6 Stop libvirt test from deleting instances dir
  - 155c7b2 fix bug where nova ignores glance host in imageref
* debian/nova.conf: Enabled ec2_private_dns_show_ip so that juju can
  connect to openstack instances.
* debian/patches/fix-docs-build-without-network.patch: Fix docs build
  when there is no network access.

365. By Chuck Short

releasing version 2012.1-0ubuntu1

364. By Chuck Short

releasing version 2012.1~rc4-0ubuntu1

363. By Chuck Short

* debian/patches/nova-console-monitor.patch: Disabled.
* debian/nova.conf: Removed console-monitor-patch

362. By Chuck Short

Prep for rc4 release.

361. By Chuck Short

debian/patches/nova-console-monitor.patch: Refreshed.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'debian/README.xcp_and_openstack'
--- debian/README.xcp_and_openstack 1970-01-01 00:00:00 +0000
+++ debian/README.xcp_and_openstack 2012-05-25 10:20:02 +0000
@@ -0,0 +1,243 @@
1This file intends to be a quick howto on how to setup openstack together with
2XCP. This should also apply to the commercial version of XCP: XenServer, but
3this hasn't been tested by the author of this file.
4
51/ Setting-up XCP
6-----------------
7Please follow the XCP README.Debian howto. Make sure that you can create,
8boot, shutdown and destroy virtual machines using the xe command line.
9
102/ Setting-up a domU to install openstack on it
11-----------------------------------------------
12Best way to setup Openstack with XCP is to set it up in a XCP domU. Again,
13follow the XCP README.debian located in /usr/share/doc/xcp-xapi once you have
14installed the XenAPI package (eg: apt-get install xcp-xapi).
15
16About 1GB of RAM should be enough for your first Openstack domU.
17
18With nova-compute-kvm, you would install nova-compute on each physical server.
19Not with nova-compute-xen. Here, you need only one instance of nova-compute,
20which will "talk" to XenAPI. XCP will then manage pooling of servers and
21storage.
22
233/ Preparing the server
24-----------------------
25You may want to lower the debconf priority to have all questions prompted to
26you when you install software:
27
28dpkg-reconfigure debconf
29
30Then make sure you select priority medium (by default on Debian systems, the
31priority is set to high, asking you less things).
32
33Because you're on a server environment, it's better not to install the
34packages that are in the Recommends: of each package:
35
36echo "APT { Install-Recommends \"false\"; }" >/etc/apt/apt.conf.d/20norecommends
37
38You might also want to receive mail for root, so installing postfix might be
39a good idea:
40
41apt-get install postfix
42
43then make sure that /etc/aliases has something like this (not needed if you
44have changed the debconf priority to medium):
45
46root: your-email@example.com
47
48and run "newaliases".
49
50You can check if sending mail to root forwards to your email address by
51installing the bsd-mailx package, watching the /var/log/mail.log and using the
52below command:
53
54Mailx root
55
564/ Getting all needed packages installed on your server
57-------------------------------------------------------
58You will need to install all nova packages, plus a bit more:
59apt-get install nova-network nova-compute-xen nova-compute nova-api \
60 nova-scheduler nova-console glance-api glance-registry python-glance glance \
61 keystone python-keystoneclient mysql-server rabbitmq-server dnsmasq \
62 python-software-properties python-mysqldb
63
64python-mysqldb is only needed if you wish to use MySQL as SQL server (eg:
65you could also use postgres if you like, in which case... I don't know!).
66
675. Setting-up the MySQL server and the nova and glance dbs
68----------------------------------------------------------
695.1 MySQL root password
70- - - - - - - - - - - -
71Make sure you have changed the default root password for mysql-server. If
72needed, do dpkg-reconfigure mysql-server-5.1 to set the password after the
73MySQL server is installed.
74
755.2 Listening on all IPs
76- - - - - - - - - - - -
77If you wish to setup nova components using a remote MySQL server (eg not on the
78domU where nova will run), then you should set your MySQL server to listen on
79the network. To do so, configure /etc/mysql/my.cnf so that it listen not just
80on 127.0.0.1 (which is the default in Debian):
81sed -i "s/127.0.0.1/0.0.0.0/" /etc/mysql/my.cnf
82
83Then restart MySQL:
84invoke-rc.d mysql start
85
865.3 Setting-up glance and nova dbs
87- - - - - - - - - - - - - - - - -
88Create the nova and glance dbs:
89
90mysql --defaults-file=/etc/mysql/debian.cnf -e \
91 "CREATE DATABASE nova; CREATE DATABASE glance;"
92
93then create the nova and glance users, give them passwords,
94and access to their respective databases:
95
96mysql --defaults-file=/etc/mysql/debian.cnf -e \
97 "CREATE USER 'nova'@'localhost' IDENTIFIED BY 'change-this-pass';"
98mysql --defaults-file=/etc/mysql/debian.cnf -e \
99 "GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' WITH GRANT OPTION;"
100mysql --defaults-file=/etc/mysql/debian.cnf -e \
101 "GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' WITH GRANT OPTION;"
102
103mysql --defaults-file=/etc/mysql/debian.cnf -e \
104 "CREATE USER 'glance'@'localhost' IDENTIFIED BY 'change-this-pass';"
105mysql --defaults-file=/etc/mysql/debian.cnf -e \
106 "GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost' WITH GRANT OPTION;
107mysql --defaults-file=/etc/mysql/debian.cnf -e \
108 "GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%' WITH GRANT OPTION;
109
110The above lines with "localhost" are to grant access only on the local network,
111the one with % for everything else (take your pick).
112
1136/ Configuring Openstack
114------------------------
1156.1 Configuration file for nova
116- - - - - - - - - - - - - - - -
117In /etc/nova/nova.conf, you will need a configuration file
118looking like this one:
119
120--sql_connection=mysql://nova:change-this-pass@127.0.0.1/nova
121--rabbit_host=127.0.0.1
122--network_manager=nova.network.manager.FlatManager
123--flat_network_bridge=xenbr0
124--connection_type=xenapi
125--xenapi_connection_url=https://<ip-of-your-xcp-dom0>
126--xenapi_connection_username=root
127--xenapi_connection_password=XXXXXXXXXXXX
128--reboot_timeout=600
129--rescue_timeout=86400
130--resize_confirm_window=86400
131--allow_admin_api
132--allow_resize_to_same_host
133--logdir=/var/log/nova
134--state_path=/var/lib/nova
135--lock_path=/var/lock/nova
136--force_dhcp_release
137--use_deprecated_auth
138--use_project_ca
139--verbose
140
141If you decide to install rabbitmq or MySQL on another server, of course, you
142should set the matching IP address above.
143
144Options for --network_manager are:
145nova.network.manager.FlatManager
146nova.network.manager.FlatDHCPManager
147nova.network.manager.VlanManager
148
149VLAN networking with DHCP (the 3rd one above) is the Default if no network
150manager is defined in nova.conf. In this mode, each projects will have its
151virtual machines isolated in a VLAN. If you don't know, just choose that one.
152
1536.2 Getting the dbs in sync with the latest nova and glance
154- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
155Make sure all tables and SQL schema are up-to-date with what Nova and
156glance are using:
157
158nova-manage db sync
159glance-manage db_sync
160
161Then restart all nova daemons.
162
1637/ Install the XCP nova plugin on the XCP dom0
164----------------------------------------------
165XCP has a plugin architecture, and nova implements it. So you need to install
166the nova plugin for XCP in your dom0 running XenAPI:
167apt-get install nova-xcp-pluggins
168
169XCP is supposed to report a PRODUCT_VERSION, but as of now, this isn't yet
170ready. So for the moment, you need to do:
171
172echo 6.0.0 >/etc/xcp/xapi_version_override
173
174and then restart xcp-xapi. (Do not worry too much about this.)
175
1768/ Restarting daemons
177---------------------
178Restart nova-compute, nova-api, nova-scheduler, nova-objectstore and
179nova-network and check that they really are started, then check the
180logs files in /var/log/nova to make sure no daemon crashed and did a
181python stack dump.
182
183Particularly, you should be seeing nova-compute polling XCP every X seconds
184and ouput something like this:
185
186<date> nova...vm_utils [uuid] (VM_UTILS) xenserver vm state -> |Halted|
187<date> nova...vm_utils [uuid] (VM_UTILS) xenapi power_state -> |4|
188<date> nova...vm_utils [uuid] (VM_UTILS) xenserver vm state -> |Running|
189<date> nova...vm_utils [uuid] (VM_UTILS) xenapi power_state -> |1|
190
191Note: I have reformated the log output (removed some of it) so that the log
192line can fit on 80 cols of this text file. This should match more or less what
193you see on the dom0 when you do "xe vm-list".
194
195That's it, you have a working nova installation! Now, let's play with our new
196cloud computing infrastructure by creating projects, users and VMs.
197
1989/ Create a nova user and project
199---------------------------------
200In Nova, each user owns projects, and in each projects, you can start virtual
201machines. So we need to first create a user, attach a project to it, and
202finally assign a private network to it. Everything is done using the
203nova-manage userland tool, where you've installed nova. The syntax is like
204this:
205nova-manage user create <user_name>
206nova-manage project create <project_name> <user_name>
207nova-manage network create <project-network> <num-of-networks-in-proj> \
208 <addresses-in-each-network>
209
210So, let's say I want to have a user "zigo" with project name "proj1",
211and a simple private network, it goes like this:
212
213nova-manage user create zigo
214nova-manage project create proj1 zigo
215nova-manage network create 192.168.0.0/24 1 256
216
217When you create the new user, you will see the EC2 keys printed on the
218screen. You don't need to write them down though, we will later on fetch all
219of these in a convenient .zip file:
220
221nova-manage project zipfile proj1 zigo
222
223This will save a nova.zip file for the proj1 of zigo. Unzip that file with:
224unzip nova.zip
225
226This will extract the below files:
227cacert.pem cert.pem novarc pk.pem
228
229novarc contains all the script variables needed for you to remote control nova
230as a user. The above .pem files contain the keys that are referenced by the
231novarc. Then everything is done with the "nova" command if you want to use the
232native "nova-client", or with euca-* if you wish to use the EC2 API (the novarc
233define variables for both).
234
23510/ Upload a VM image and start the VM to check everything is working
236
237
238
2396/ Generate the Openstack CA
240
241<FIX ME: insert here how to do that>
242
243 -- Thomas Goirand <zigo@debian.org> Wed, 28 Dec 2011 12:19:41 +0000
0244
=== removed file 'debian/api-paste.ini'
--- debian/api-paste.ini 2011-09-22 17:03:02 +0000
+++ debian/api-paste.ini 1970-01-01 00:00:00 +0000
@@ -1,114 +0,0 @@
1#######
2# EC2 #
3#######
4
5[composite:ec2]
6use = egg:Paste#urlmap
7/: ec2versions
8/services/Cloud: ec2cloud
9/services/Admin: ec2admin
10/latest: ec2metadata
11/2007-01-19: ec2metadata
12/2007-03-01: ec2metadata
13/2007-08-29: ec2metadata
14/2007-10-10: ec2metadata
15/2007-12-15: ec2metadata
16/2008-02-01: ec2metadata
17/2008-09-01: ec2metadata
18/2009-04-04: ec2metadata
19/1.0: ec2metadata
20
21[pipeline:ec2cloud]
22# pipeline = logrequest ec2noauth cloudrequest authorizer ec2executor
23# NOTE(vish): use the following pipeline for deprecated auth
24pipeline = logrequest authenticate cloudrequest authorizer ec2executor
25
26[pipeline:ec2admin]
27# pipeline = logrequest ec2noauth adminrequest authorizer ec2executor
28# NOTE(vish): use the following pipeline for deprecated auth
29pipeline = logrequest authenticate adminrequest authorizer ec2executor
30
31[pipeline:ec2metadata]
32pipeline = logrequest ec2md
33
34[pipeline:ec2versions]
35pipeline = logrequest ec2ver
36
37[filter:logrequest]
38paste.filter_factory = nova.api.ec2:RequestLogging.factory
39
40[filter:ec2lockout]
41paste.filter_factory = nova.api.ec2:Lockout.factory
42
43[filter:ec2noauth]
44paste.filter_factory = nova.api.ec2:NoAuth.factory
45
46[filter:authenticate]
47paste.filter_factory = nova.api.ec2:Authenticate.factory
48
49[filter:cloudrequest]
50controller = nova.api.ec2.cloud.CloudController
51paste.filter_factory = nova.api.ec2:Requestify.factory
52
53[filter:adminrequest]
54controller = nova.api.ec2.admin.AdminController
55paste.filter_factory = nova.api.ec2:Requestify.factory
56
57[filter:authorizer]
58paste.filter_factory = nova.api.ec2:Authorizer.factory
59
60[app:ec2executor]
61paste.app_factory = nova.api.ec2:Executor.factory
62
63[app:ec2ver]
64paste.app_factory = nova.api.ec2:Versions.factory
65
66[app:ec2md]
67paste.app_factory = nova.api.ec2.metadatarequesthandler:MetadataRequestHandler.factory
68
69#############
70# Openstack #
71#############
72
73[composite:osapi]
74use = egg:Paste#urlmap
75/: osversions
76/v1.0: openstackapi10
77/v1.1: openstackapi11
78
79[pipeline:openstackapi10]
80# pipeline = faultwrap noauth ratelimit osapiapp10
81# NOTE(vish): use the following pipeline for deprecated auth
82pipeline = faultwrap auth ratelimit osapiapp10
83
84[pipeline:openstackapi11]
85# pipeline = faultwrap noauth ratelimit extensions osapiapp11
86# NOTE(vish): use the following pipeline for deprecated auth
87pipeline = faultwrap auth ratelimit extensions osapiapp11
88
89[filter:faultwrap]
90paste.filter_factory = nova.api.openstack:FaultWrapper.factory
91
92[filter:auth]
93paste.filter_factory = nova.api.openstack.auth:AuthMiddleware.factory
94
95[filter:noauth]
96paste.filter_factory = nova.api.openstack.auth:NoAuthMiddleware.factory
97
98[filter:ratelimit]
99paste.filter_factory = nova.api.openstack.limits:RateLimitingMiddleware.factory
100
101[filter:extensions]
102paste.filter_factory = nova.api.openstack.extensions:ExtensionMiddleware.factory
103
104[app:osapiapp10]
105paste.app_factory = nova.api.openstack:APIRouterV10.factory
106
107[app:osapiapp11]
108paste.app_factory = nova.api.openstack:APIRouterV11.factory
109
110[pipeline:osversions]
111pipeline = faultwrap osversionapp
112
113[app:osversionapp]
114paste.app_factory = nova.api.openstack.versions:Versions.factory
1150
=== modified file 'debian/changelog'
--- debian/changelog 2012-02-07 17:00:03 +0000
+++ debian/changelog 2012-05-25 10:20:02 +0000
@@ -1,3 +1,4 @@
1<<<<<<< TREE
1nova (2011.3.1-0ubuntu1) UNRELEASED; urgency=low2nova (2011.3.1-0ubuntu1) UNRELEASED; urgency=low
23
3 * New upstrem release:4 * New upstrem release:
@@ -107,6 +108,547 @@
107 - CVE-2011-XXXX108 - CVE-2011-XXXX
108109
109 -- Jamie Strandboge <jamie@ubuntu.com> Tue, 25 Oct 2011 08:57:02 -0500110 -- Jamie Strandboge <jamie@ubuntu.com> Tue, 25 Oct 2011 08:57:02 -0500
111=======
112nova (2012.1~20120518.13585-0ubuntu1) UNRELEASED; urgency=low
113
114 * Snapshot of upstream stable/essex branch.
115 * Remove local copies of upstream patch set as upstream is nice
116 enough to publish tarballs with everything included.
117
118 -- Soren Hansen <soren@ubuntu.com> Fri, 25 May 2012 11:56:44 +0200
119
120nova (2012.1-0ubuntu2) precise; urgency=low
121
122 [ Adam Gandelman ]
123 * debian/rules: Properly create empty doc/build/man dir for builds that
124 skip doc building
125 * debian/control: Set 'Conflicts: nova-compute-hypervisor' for the various
126 nova-compute-$type packages. (LP: #975616)
127 * debian/control: Set 'Breaks: nova-api' for the various nova-api-$service
128 sub-packages. (LP: #966115)
129
130 [ Chuck Short ]
131 * Resynchronize with stable/essex:
132 - b1d11b8 Use project_id in ec2.cloud._format_image()
133 - 6e988ed Fixes image publication using deprecated auth. (LP: #977765)
134 - 6e988ed Populate image properties with project_id again
135 - 3b14c74 Fixed bug 962840, added a test case.
136 - d4e96fe Allow unprivileged RADOS users to access rbd volumes.
137 - 4acfab6 Stop libvirt test from deleting instances dir
138 - 155c7b2 fix bug where nova ignores glance host in imageref
139 * debian/nova.conf: Enabled ec2_private_dns_show_ip so that juju can
140 connect to openstack instances.
141 * debian/patches/fix-docs-build-without-network.patch: Fix docs build
142 when there is no network access.
143
144 -- Chuck Short <zulcss@ubuntu.com> Thu, 12 Apr 2012 14:14:29 -0400
145
146nova (2012.1-0ubuntu1) precise; urgency=low
147
148 * New upstream release.
149
150 -- Chuck Short <zulcss@ubuntu.com> Thu, 05 Apr 2012 11:00:38 -0400
151
152nova (2012.1~rc4-0ubuntu1) precise; urgency=low
153
154 * New upstream release.
155 * debian/patches/nova-console-monitor.patch: Disabled.
156 * debian/nova.conf: Removed console-monitor option.
157
158 -- Chuck Short <zulcss@ubuntu.com> Wed, 04 Apr 2012 16:55:52 -0400
159
160nova (2012.1~rc3-0ubuntu1) precise; urgency=low
161
162 * New Upstream release.
163 * debian/control: Conflict nova-vncproxy with novnc.
164
165 -- Chuck Short <zulcss@ubuntu.com> Wed, 04 Apr 2012 09:25:14 -0400
166
167nova (2012.1~rc2-0ubuntu1) precise; urgency=low
168
169 [ Adam Gandelman ]
170 * debian/control: Remove unncessary nova-cert dependency from nova-api.
171 (LP: #965356)
172 * debian/nova-common.postinst: Clean up spacing, remove redundant chown,
173 set blanket 0700 nova.nova permissions on /etc/nova/
174 * debian/nova-compute-{kvm, lxc, uml, xen}.postinst: Set proper permissions
175 on /etc/nova/nova-compute.conf (LP: #861459)
176 * debian/nova-common.postinst: Ensure default nova.sqlite database is not
177 world-readable.
178 * debian/{rules, nova-common.{install, postinst}}: Install api-paste.ini 0600
179 with nova-common (in prepartion for proper nova-api-* package separation)
180 * debian/{nova-common.nova-manage.logrotate,
181 nova-network.nova-dhcpbridge.logrotate, rules}: Add lograte files,
182 override_dh_installlogrotate. (LP: #942646)
183 * Add manpage stubs for nova-api-ec2, nova-api-metadata,
184 nova-api-os-{volume, compute}, nova-rootwrap. Use sphinx built manpage
185 for nova-manage (nova-common.manpages)
186 * debian/nova-compute-{kvm, xen, uml, qemu}.postinst: Remove calls to
187 adduser since this is already handled from nova-compute.postsinst in a
188 vendor neutral way. Silences lintian errors regarding adduser dependency
189
190 [ Chuck Short ]
191 * New upstream version.
192 * debian/patches/libvirt-use-console-pipe.patch: Dropped.
193 * debian/patches/nova-console-monitor.patch: Add console-monitor
194 option.
195 * debian/nova.conf: Enable use_console_monitor
196 * debian/patches/fix-ubuntu-tests.patch: Fix nova testsuite.
197 * debian/rules: fail package build if testsuite fails.
198 * debian/patches/validate_server_name_length.patch: Dropped no longer
199 needed.
200 * debian/patches/fix-docs-build-without-network.patch: Some docs need
201 a network connection in order to build. Disable fetching docs from
202 the internet.
203 * debian/patches/0001-fix-useexisting-deprecation-warnings.patch:
204 Remove deprecated warnings with sqlalchemy.
205
206 [ Tyler Hicks ]
207 * SECURITY UPDATE: Denial of service via resource exhaustion in nova-api
208 (LP: #968411)
209 - debian/patches/validate_server_name_length.patch: Limit server names
210 to a maximum of 255 characters to prevent nova-api log files from
211 exhausting storage space. Based on upstream patch.
212 - CVE-2012-1585
213
214 -- Chuck Short <zulcss@ubuntu.com> Mon, 02 Apr 2012 11:17:33 -0400
215
216nova (2012.1~rc1-0ubuntu2) precise; urgency=low
217
218 * debian/control: Add Breaks/Replaces to nova-consoleauth, update
219 description, nova-console Recommends nova-consoleauth
220 * debian/nova-console.install: Remove nova-consoleauth
221
222 -- Adam Gandelman <adamg@canonical.com> Thu, 22 Mar 2012 11:31:35 -0700
223
224nova (2012.1~rc1-0ubuntu1) precise; urgency=low
225
226 [ Adam Gandelman ]
227 [Chuck Short]
228 * New upstream release.
229 * debian/patches/libvirt-use-console-pipe.patch: Refreshed
230
231 [Adam Gandelman]
232 * debian/patches/libvirt-console.patch: Refresh
233 * debian/control: Split nova-consoleauth from nova-console into its own pkg
234 (LP: #959289)
235 * debian/nova-console.upstart.in: Specify shell
236
237 -- Chuck Short <zulcss@ubuntu.com> Tue, 20 Mar 2012 11:06:11 -0400
238
239nova (2012.1~rc1~20120316.13416-0ubuntu1) precise; urgency=low
240
241 [Adam Gandelman]
242 * New upstream release.
243 * debian/patches/libvirt-conosle-patch: Refresh
244 * debian/control: Fix descriptions of nova-{doc, cert} (LP: #942541)
245
246 [Paul Belanger]
247 * debian/control: python-nova depends on openssh-client (LP: #956177)
248
249 -- Adam Gandelman <adamg@canonical.com> Mon, 12 Mar 2012 12:09:45 -0700
250
251nova (2012.1~rc1~20120309.13261-0ubuntu1) precise; urgency=low
252
253 [ Chuck Short ]
254 * New upstream release.
255 * Refreshed libvirt-console-patch again.
256
257 [ Adam Gandleman ]
258 * debian/patches/{ec2-fixes.patch, libvirt-console-pipe.patch}: Fix and
259 refresh. Add dep3 headers from original git commits.
260 * debian/patches/ec2-fixes.patch: Dropped. Merge upstream at 121537c3
261 * debain/{rules, nova-docs.doc}: Docs now built in doc/build/.
262 * debian/patches/libvirt-use-console-pipe.patch: Update use of
263 instance['name'] instead of instance_name
264
265 -- Chuck Short <zulcss@ubuntu.com> Fri, 09 Mar 2012 13:07:19 -0500
266
267nova (2012.1~e4-0ubuntu1) precise; urgency=low
268
269 [ Adam Gandleman ]
270 * debian/patches/libvirt-use-console-pipe.patch: Refreshed.
271 * debain/nova-volume.upstart.in: Ensure lock directory is created
272 (LP: #940780)
273 * debain/control: Fix nova-compute-$flavor Depends
274 * debian/control: Add python-iso8601 to python-nova Depends
275
276 [ Chuck Short ]
277 * debian/rules: Fix FTBFS.
278 * Merge Ubuntu/Debian packaging:
279 - Thanks to Julien Danjou, Ghe Rivero, and Thomas Goirand
280 - debian/copyright: Update copyright file.
281 - debian/nova-api.init, debian/nova-compute.init,
282 debian/nova-network.init, debian/nova-objectstore,
283 debian/nova-scheduler, debian/nova-volume.init:
284 Synchronize init scripts.
285 - nova-common.install, debian/rules: Install policy.json
286 - debian/rules, debian/nova-xcp-network.install,
287 debian/nova-xcp-plugins.install, nova-xcp-plugins.postrm,
288 debian/nova-xcp-plugins.doc, debian/nova-xcp-plugins.postinst,
289 debian/README.xcp_and_openstack, debian/control,
290 debian/ubuntu_xen-openvswitch-nova.rules,
291 debian/patches/path-to-the-xenhost.conf-fixup.patch:
292 Add Xen XCP support.
293 - debian/control,
294 debian/nova-compute-{kvm,lxc,qemu,xen,uml}.postinst: Make
295 nova-compute a virtual package.
296 - Dropped ubuntu_ubuntu_control_vars: We dont use it
297 * New upstream release.
298 * Dropped python-babel, it will be handled by langpacks.
299 * debian/patches/ec2-fixes.patch: Backport turnk fix for ec2
300 permissions.
301 * debian/patches/path-to-the-xenhost.conf-fixup.patch: Refreshed.
302
303 -- Chuck Short <zulcss@ubuntu.com> Fri, 02 Mar 2012 11:18:35 -0500
304
305nova (2012.1~e4~20120224.12913-0ubuntu1) precise; urgency=low
306
307 [ Monty Taylor ]
308 * Move files from nova/locale to /usr/share/locale
309
310 [ Chuck Short ]
311 * debian/rules: Fix FTBFS.
312 * debian/control: Add depends on python-babel.
313 * debian/control: Add depends on python-iso8601.
314 * debian/nova-api-os-volume.install: Fix FTBS.
315 * debian/patches/libvirt-use-console-pipe.patch: Refreshed and
316 Re-enabled. (LP: #879666)
317 * debian/control: Make sure we install nova-cert
318
319 [ Joseph Heck ]
320 * debian/nova-console.install: Add nova-consoleauth.
321 * Add nova-api-ec2, nova-api-os-compute, and nova-api-os-volume.
322
323 -- Chuck Short <zulcss@ubuntu.com> Fri, 24 Feb 2012 10:08:10 -0500
324
325nova (2012.1~e4~20120217.12709-0ubuntu1) precise; urgency=low
326
327 [ Dave Walker (Daviey) ]
328 * New upstream snapshot
329 * debian/patches/temp_fix_linux_net.patch:
330 - Dropped, applied upstream. LP: #929127
331 * debian/patches/libvirt-use-console-pipe.patch:
332 - Rebased against latest trunk
333
334 [ Chuck Short ]
335 * debian/nova.conf: Re-enable default iscsi_helper.
336 * debian/nova.conf: More fixups.
337 * debian/control: Dont depend and conflicts on nova-compute-
338 hypervisor. (LP: #923681)
339 * debian/patches/libvirt-us-console-pipe.patch: Refreshed.
340 * Temporarily disable console patch. (LP: #932787)
341 * New usptream version.
342
343 -- Chuck Short <zulcss@ubuntu.com> Fri, 17 Feb 2012 11:02:12 -0500
344
345nova (2012.1~e4~20120210.12574-0ubuntu1) precise; urgency=low
346
347 [Chuck Short]
348 * New upstream release.
349 * debian/patches/nova-manage_flagfile_location.patch:
350 Refreshed patch.
351 * debian/patches/libvirt-use-console-pipe.patch:
352 Re-add from oneiric.
353 * Dropped debian/patches/packaged-ajaxterm-calls.patch.
354 * debian/control:
355 - Dropped recommends on ajaxterm for nova-compute
356 - Dropped nova-ajaxterm package.
357
358 [Adam Gandleman]
359 * debian/patches/temp_fix_linux_net.patch: Temporary patch until LP:
360 929127 is resolved.
361
362 -- Chuck Short <zulcss@ubuntu.com> Fri, 10 Feb 2012 11:25:38 -0500
363
364nova (2012.1~e4~20120208.12523-0ubuntu1) UNRELEASED; urgency=low
365
366 [ Chuck Short ]
367 * debian/patches/fix-nova-rootwraper-env.patch: Dropped
368 no longer needed.
369 * debian/nova-compute-{kvm,xen,uml,lxc}.conf: Add the connection
370 type "--connection=libvirt" since libvirt is no longer the default.
371
372 [ Adam Gandelman ]
373 * debian/nova.conf: Define connection_type=libvirt in common nova.conf
374 instead of nova-compute-*.conf until Bug #921294 is addressed.
375
376 [ Vish Ishaya ]
377 * debian/mans/nova-cert.8, debian/nova-cert.init, debian/nova-cert.install,
378 debian/nova-cert.logrotate, debian/nova-cert.manpages,
379 debian/nova-cert.upstart.in, debian/control, debian/source_nova.py:
380 Add nova-cert.
381
382 [ Soren Hansen ]
383 * Refresh flagfile location patch.
384 * Enable builds on versions of Ubuntu that do not have dh_python2.
385 * Remove ajaxterm patch (upstream performed a ajaxtermectomy)
386 * Replace ajax console proxy package with an empty, transitional
387 package.
388 * Add a nova-compute-qemu package.
389
390 -- Soren Hansen <soren@ubuntu.com> Fri, 10 Feb 2012 17:41:50 +0100
391
392nova (2012.1~e4~20120203.12454-0ubuntu1) precise; urgency=low
393
394 [Chuck Short]
395 * New upstream version.
396 * debian/control: Replace m2crpto with python-crypto.
397 (LP: #917851)
398 * debian/*.upstart.in, debian/nova-common.postinst,
399 debian/nova_sudoers: Change default shell to /bin/false.
400 (LP: #890362)
401
402 [Adam Gandleman]
403 * debian/nova-common.{install, postinst}: Install policy.json on all
404 Nova nodes (LP: #923817)
405 * debian/rules: Remove installation of policy.json (moved to nova-common),
406 point to the correct upstream git repository.
407
408 -- Chuck Short <zulcss@ubuntu.com> Fri, 03 Feb 2012 09:03:12 -0500
409
410nova (2012.1~e3-0ubuntu1) precise; urgency=low
411
412 [Chuck short]
413 * New upstream release.
414 * debian/patches/fix-nova-rootwraper-env.patch: Dropped
415 no longer needed.
416 * debian/nova-compute-{kvm,xen,uml,lxc}.conf: Add the connection
417 type "--connection=libvirt" since libvirt is no longer the default.
418
419 [Adam Gandelman]
420 * debian/nova.conf: Define connection_type=libvirt in common nova.conf
421 instead of nova-compute-*.conf until Bug #921294 is addressed.
422
423 [Vish Ishaya]
424 * debian/mans/nova-cert.8, debian/nova-cert.init, debian/nova-cert.install,
425 debian/nova-cert.logrotate, debian/nova-cert.manpages,
426 debian/nova-cert.upstart.in, debian/control, debian/source_nova.py:
427 Add nova-cert.
428
429 -- Chuck Short <zulcss@ubuntu.com> Thu, 26 Jan 2012 10:29:13 -0500
430
431nova (2012.1~e3~20120120.12170-0ubuntu1) precise; urgency=low
432
433 [Chuck Short]
434 * New upstream version.
435 * debian/nova-vncproxy.install, debian/nova-vncproxy.upstart.in:
436 nova-vncproxy becomes nova-xvpvncproxy.
437 * debian/nova.conf: Really use the nova rootwrapper. (LP: #918179)
438 * debian/nova_sudoers: Fix typo in rootwrap usage.
439 * debian/patches/kombu_tests_timeout.patch: Skip
440 "test_iterconsume_errors_will_reconnect" test.
441
442 [Dan Prince]
443 * Add policy.json to packages.
444
445 [Thierry Carrez]
446 * debian/*.pyinstall: Ship filter files in each node... (LP: #919105)
447 * debian/python-nova.pyremove: ...and no longer in python-nova (LP: #919105)
448 * debian/patches/fix-nova-rootwraper-env.patch: Fix temporary issue with
449 nova-rootwrap and nova-compute.
450
451 -- Chuck Short <zulcss@ubuntu.com> Fri, 20 Jan 2012 11:54:15 -0500
452
453nova (2012.1~e3~20120113.12049-0ubuntu1) precise; urgency=low
454
455 [ Chuck Short ]
456 * New upstream version.
457 * debian/nova_sudoers, debian/nova-common.install,
458 Switch out to nova-rootwrap. (LP: #681774)
459 * Add "get-origsource-git" which allows developers to
460 generate a tarball from github, by doing:
461 fakeroot debian/rules get-orig-source-git
462 * debian/debian/nova-objectstore.logrotate: Dont determine
463 if we are running Debian or Ubuntu. (LP: #91379)
464
465 [ Adam Gandleman ]
466 * Removed python-nova.postinst, let dh_python2 generate instead since
467 python-support is not a dependency. (LP: #907543)
468
469 -- Chuck Short <zulcss@ubuntu.com> Fri, 13 Jan 2012 09:51:10 +0100
470
471nova (2012.1~e2-0ubuntu4) precise; urgency=low
472
473 * SECURITY UPDATE: fix tenant bypass by authenticated users via OpenStack
474 API (LP: #904072)
475 - CVE-2012-XXXX
476
477 -- Jamie Strandboge <jamie@ubuntu.com> Thu, 05 Jan 2012 08:58:46 -0600
478
479nova (2012.1~e2-0ubuntu2) precise; urgency=low
480
481 [ Chuck Short ]
482 * debian/nova.conf: Fix misconfiguration.
483
484 [ Dan Prince ]
485 * debian/nova_sudoers: Fix typo
486 * Add policy.json to packages.
487
488 -- Thierry Carrez (ttx) <thierry@openstack.org> Thu, 22 Dec 2011 16:15:22 +0100
489
490nova (2012.1~e2-0ubuntu1) precise; urgency=low
491
492 * New usptream release. Fixes the following bugs:
493 (LP: #871278, #848643, #859679, #83199)
494 * debian/nova-console.install: Fix empty package.
495 * debian/patches, debian/pydist-overrides: Cleaner way
496 of disabling unwanted python-dependencies.
497 * debian/control:
498 - Suggest python-keystone. (LP: #901881)
499 - Update build dependencies.
500 * debian/nova.conf: Use virtio networking by default.
501 (LP: #904480)
502 * debian/fix-traversal-via-image-register.patch: Dropped
503 fixed upstream.
504
505 -- Chuck Short <zulcss@ubuntu.com> Fri, 16 Dec 2011 13:03:55 -0500
506
507nova (2012.1~e2~20111208.11721-0ubuntu3) precise; urgency=low
508
509 * SECURITY UPDATE: fix directory traversal during image registration via
510 EC2 API and S3/RegisterImage
511 - fix-traversal-via-image-register.patch: adjust nova/image/s3.py to
512 use basename instead of absolute path
513 - CVE-2011-4596
514
515 -- Jamie Strandboge <jamie@ubuntu.com> Tue, 13 Dec 2011 08:39:13 -0600
516
517nova (2012.1~e2~20111208.11721-0ubuntu2) precise; urgency=low
518
519 * Disable python-coverage as well.
520
521 -- Chuck Short <zulcss@ubuntu.com> Mon, 12 Dec 2011 10:13:04 -0500
522
523nova (2012.1~e2~20111208.11721-0ubuntu1) precise; urgency=low
524
525 * New upstream release.
526 * debian/control:
527 + Add python-suds as a dependency.
528 * debian/patches: Temporarily disable python-nosexcover.
529
530 -- Chuck Short <zulcss@ubuntu.com> Fri, 09 Dec 2011 14:24:07 -0500
531
532nova (2012.1~e2~20111202.11641-0ubuntu2) precise; urgency=low
533
534 * debian/nova.conf: Remove parameter to --force_dhcp_release
535 (LP: #891227)
536
537 -- Adam Gandelman <adamg@canonical.com> Fri, 02 Dec 2011 11:31:34 -0800
538
539nova (2012.1~e2~20111202.11641-0ubuntu1) precise; urgency=low
540
541 * New upstream release.
542 * debian/nova_sudoers: Clean up to remove unused programs
543 needed by root. (LP: #989583)
544
545 -- Chuck Short <zulcss@ubuntu.com> Fri, 02 Dec 2011 10:56:30 -0500
546
547nova (2012.1~e2~20111125.11566-0ubuntu1) precise; urgency=low
548
549 * New upstream release.
550 * Refreshed debian/patches/packaged-ajaxterm-calls.patch.
551
552 -- Chuck Short <zulcss@ubuntu.com> Fri, 25 Nov 2011 14:02:18 -0500
553
554nova (2012.1~e2~20111116.11495-0ubuntu1) precise; urgency=low
555
556 * New upstream version.
557 * Refreshed debian/patches/packaged-ajaxterm-calls.patch.
558
559 -- Chuck Short <zulcss@ubuntu.com> Fri, 18 Nov 2011 09:40:58 -0500
560
561nova (2012.1~e1-0ubuntu3) precise; urgency=low
562
563 * debian/rules: Take the api-paste.ini from nova/etc.
564
565 -- Chuck Short <zulcss@ubuntu.com> Thu, 17 Nov 2011 14:10:03 -0500
566
567nova (2012.1~e1-0ubuntu2) precise; urgency=low
568
569 * Revert debian/nova-manage_flagfile_location.patch: It
570 was causing more problems then it should have. (LP: #891229)
571
572 -- Chuck Short <zulcss@ubuntu.com> Wed, 16 Nov 2011 21:12:34 -0500
573
574nova (2012.1~e1-0ubuntu1) precise; urgency=low
575
576 * New upstream release.
577 * debian/control: Dropped python-feedparser until MIR comes through.
578 * Synced with upstream bzr packaging.
579
580 -- Chuck Short <zulcss@ubuntu.com> Fri, 11 Nov 2011 09:25:25 -0500
581
582nova (2012.1~e1~20111020.11229-0ubuntu1) precise; urgency=low
583
584 * New upstream release.
585 * Dropped patches, already applied upstream:
586 - debian/patches/backport-iscsitarget-choice.patch
587 - debian/patches/backport-libvirt-console-pipe.patch
588 - debian/patches/backport-lxc-container-console-fix.patch
589 - debian/patches/backport-recreate-gateway-using-dhcp.patch
590 - debian/patches/backport-snapshot-cleanup.patch
591 - debian/patches/block-migration-needs-copy-backingfile.patch
592 - debian/patches/fix-iscsi-target-path.patch
593 - debian/patches/fix-lp838581-removed-db_pool-complexities.patch
594 - debian/patches/fix-lp863305-images-permission.patch
595 - debian/patches/fqdn-in-local-hostname-of-ec2-metadata.patch
596 - debian/patches/use-netcat-instead-of-socat.patc
597 * debian/control:
598 - Add python-feedparser as a build dependency.
599 - Bump standards version to 3.9.2
600 - Point to the essex branch.
601 * debian/patches/nova-manage_flagfile_location.patch:
602 Update patch to take in account of devstack (LP: #870405)
603
604 -- Chuck Short <zulcss@ubuntu.com> Fri, 21 Oct 2011 14:37:26 -0400
605
606nova (2012.1~e1~20110909.1546-0ubuntu0) UNRELEASED; urgency=low
607
608 [ Dan Prince ]
609 * Fix dnsmasq line in nova_sudoers.
610 * Update ajaxterm patch to work with latest nova code.
611
612 [ Monty Taylor ]
613 * Added python-feedparser to build-deps.
614 * Added branching logic to allow for building on lucid.
615 * Indicate depend on pastedeploy 1.5.0, since it's required.
616
617 [ Tushar Patil ]
618 * Added iputils-arping to Depends and arping to sudoers
619
620 [Chuck Short]
621 * Merged ubuntu packaging changes:
622 - debian/control: Drop socat in favor of netcat.
623 - debian/nova-compute.upstart.in, debian/nova.conf:
624 Move reference of nova-compute.conf from nova.conf to
625 nova-compute's argv.
626 - debian/nova-common.postinst: Create 'nova' group, add user to it.
627 - debian/nova-common.postinst: Restrict permissions of /var/log/nova
628 * Updated debian/patches/packaged-ajaxterm-calls.patch to fix FTBFS.
629 * Updated debian/patches/nova-manage_flagfile_location.patch
630 * debian/nova-api.install, debian/rules: Use etc/nova/api-paste.ini.
631 * debian/nova_sudoers: Clean up sudoers.
632 * debian/control: Add dependencies.
633
634 [ Mark Washenberger ]
635 * Add support for nova-console package.
636
637 -- Monty Taylor <mordred@inaugust.com> Fri, 30 Sep 2011 09:33:16 -0700
638
639nova (2011.3-0ubuntu6.1) oneiric-proposed; urgency=low
640
641 [Scott Moser]
642 * Removed db_pool complexities from nova.db.sqlalchemy.session (LP: #838581)
643
644 [Chuck Short]
645 * debian/patches/fix-iscsi-target-path.patch: Fix ISCSI target path patch.
646 (LP: #871278)
647 * debian/control: Either install xen-hypervisor-4.1-amd64 or
648 xen-hypervisor-4.1-i386 for nova-compute-xen. (LP: #873243)
649
650 -- Chuck Short <zulcss@ubuntu.com> Wed, 12 Oct 2011 14:33:25 -0400
651>>>>>>> MERGE-SOURCE
110652
111nova (2011.3-0ubuntu6) oneiric; urgency=low653nova (2011.3-0ubuntu6) oneiric; urgency=low
112654
@@ -243,8 +785,9 @@
243785
244 [ Monty Taylor ]786 [ Monty Taylor ]
245 * Add branching logic for building on lucid.787 * Add branching logic for building on lucid.
788 * Add vlan as a depend for nova-compute.
246789
247 -- Monty Taylor <mordred@inaugust.com> Mon, 19 Sep 2011 17:03:29 -0400790 -- Monty Taylor <mordred@inaugust.com> Wed, 21 Sep 2011 17:49:43 -0400
248791
249nova (2011.3~rc~20110909.r1155-0ubuntu1) oneiric; urgency=low792nova (2011.3~rc~20110909.r1155-0ubuntu1) oneiric; urgency=low
250793
251794
=== modified file 'debian/control'
--- debian/control 2012-02-07 17:00:03 +0000
+++ debian/control 2012-05-25 10:20:02 +0000
@@ -5,16 +5,16 @@
5XSBC-Original-Maintainer: Openstack Maintainers <openstack@lists.launchpad.net>5XSBC-Original-Maintainer: Openstack Maintainers <openstack@lists.launchpad.net>
6Uploaders: Soren Hansen <soren@ubuntu.com>, Thomas Goirand <zigo@debian.org>6Uploaders: Soren Hansen <soren@ubuntu.com>, Thomas Goirand <zigo@debian.org>
7Build-Depends: debhelper (>= 7.0.50),7Build-Depends: debhelper (>= 7.0.50),
8 python-m2crypto,
9 python-all (>= 2.6),8 python-all (>= 2.6),
10 python-all-dev (>= 2.6.6-3~),9 python-all-dev (>= 2.6.6-3~) | python-support,
11Build-Depends-Indep:10Build-Depends-Indep:
11 openssh-client,
12 openssl,
12 python-setuptools,13 python-setuptools,
13 python-sphinx (>> 1.0),14 python-sphinx (>> 1.0),
14 python-distutils-extra,15 python-distutils-extra,
15 python-gflags,16 python-gflags,
16 python-mox,17 python-mox,
17 openssl,
18 python-carrot,18 python-carrot,
19 python-kombu,19 python-kombu,
20 python-boto,20 python-boto,
@@ -27,7 +27,7 @@
27 python-cheetah,27 python-cheetah,
28 python-nose,28 python-nose,
29 python-paste,29 python-paste,
30 python-pastedeploy,30 python-pastedeploy (>= 1.5.0),
31 python-tempita,31 python-tempita,
32 python-migrate,32 python-migrate,
33 python-netaddr,33 python-netaddr,
@@ -38,18 +38,26 @@
38 python-simplejson,38 python-simplejson,
39 python-lxml,39 python-lxml,
40 python-unittest2,40 python-unittest2,
41 python-daemon,
42 python-suds,
43 python-xattr,
44 python-feedparser,
45 python-crypto,
46 python-iso8601,
41 pep847 pep8
42Build-Conflicts: python-cjson48Build-Conflicts: python-cjson
43Standards-Version: 3.9.149Standards-Version: 3.9.2
44Homepage: http://launchpad.net/nova50Homepage: http://launchpad.net/nova
45Vcs-Browser: http://bazaar.launchpad.net/~ubuntu-server-dev/nova/diablo/debian/files51Vcs-Browser: http://bazaar.launchpad.net/~ubuntu-server-dev/nova/essex/debian/files
46Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-server-dev/nova/diablo52Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-server-dev/nova/essex
4753
4854
49Package: python-nova55Package: python-nova
50Architecture: all56Architecture: all
51Section: python57Section: python
52Depends: ${python:Depends},58Depends: ${python:Depends},
59 openssh-client,
60 openssl,
53 python-boto,61 python-boto,
54 python-m2crypto,62 python-m2crypto,
55 python-pycurl,63 python-pycurl,
@@ -58,7 +66,6 @@
58 python-kombu,66 python-kombu,
59 python-lockfile,67 python-lockfile,
60 python-gflags,68 python-gflags,
61 openssl,
62 python-libxml2,69 python-libxml2,
63 python-ldap,70 python-ldap,
64 python-sqlalchemy-ext | python-sqlalchemy (<< 0.6.3-2),71 python-sqlalchemy-ext | python-sqlalchemy (<< 0.6.3-2),
@@ -76,6 +83,11 @@
76 python-novaclient,83 python-novaclient,
77 python-simplejson,84 python-simplejson,
78 python-lxml,85 python-lxml,
86 python-feedparser,
87 python-xattr,
88 python-daemon,
89 python-suds,
90 python-iso8601,
79 sudo,91 sudo,
80 ${misc:Depends}92 ${misc:Depends}
81Suggests: python-suds (>= 0.4.0),93Suggests: python-suds (>= 0.4.0),
@@ -104,6 +116,7 @@
104Architecture: all116Architecture: all
105Depends: python-amqplib, python-nova (= ${binary:Version}), ${python:Depends}, ${misc:Depends}, adduser117Depends: python-amqplib, python-nova (= ${binary:Version}), ${python:Depends}, ${misc:Depends}, adduser
106Provides: ${python:Provides}118Provides: ${python:Provides}
119Suggests: python-keystone
107Description: OpenStack Compute - common files120Description: OpenStack Compute - common files
108 OpenStack is a reliable cloud infrastructure. Its mission is to produce121 OpenStack is a reliable cloud infrastructure. Its mission is to produce
109 the ubiquitous cloud computing platform that will meet the needs of public122 the ubiquitous cloud computing platform that will meet the needs of public
@@ -123,9 +136,9 @@
123136
124Package: nova-compute137Package: nova-compute
125Architecture: all138Architecture: all
126Depends: ${ostack-lsb-base}, ${nova-compute-deps}, nova-common (= ${binary:Version}), kpartx, curl, parted, vlan, ebtables, gawk, iptables, open-iscsi, ${nova-compute-default-hypervisor} | nova-compute-hypervisor,139Depends: lsb-base (>= 3.0.6), nova-common (= ${binary:Version}), qemu-utils, kpartx, curl, parted, vlan,
140 ebtables, gawk, iptables, open-iscsi, nova-compute-kvm | nova-compute-hypervisor,
127 ${python:Depends}, ${misc:Depends}141 ${python:Depends}, ${misc:Depends}
128Recommends: ajaxterm
129Description: OpenStack Compute - compute node142Description: OpenStack Compute - compute node
130 OpenStack is a reliable cloud infrastructure. Its mission is to produce143 OpenStack is a reliable cloud infrastructure. Its mission is to produce
131 the ubiquitous cloud computing platform that will meet the needs of public144 the ubiquitous cloud computing platform that will meet the needs of public
@@ -148,7 +161,6 @@
148Architecture: all161Architecture: all
149Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, ${misc:Depends}162Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, ${misc:Depends}
150Provides: nova-compute-hypervisor163Provides: nova-compute-hypervisor
151Replaces: nova-compute-hypervisor
152Conflicts: nova-compute-hypervisor164Conflicts: nova-compute-hypervisor
153Description: OpenStack Compute - compute node (LXC)165Description: OpenStack Compute - compute node (LXC)
154 OpenStack is a reliable cloud infrastructure. Its mission is to produce166 OpenStack is a reliable cloud infrastructure. Its mission is to produce
@@ -171,7 +183,6 @@
171Architecture: all183Architecture: all
172Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, user-mode-linux, ${misc:Depends}184Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, user-mode-linux, ${misc:Depends}
173Provides: nova-compute-hypervisor185Provides: nova-compute-hypervisor
174Replaces: nova-compute-hypervisor
175Conflicts: nova-compute-hypervisor186Conflicts: nova-compute-hypervisor
176Description: OpenStack Compute - compute node (UserModeLinux)187Description: OpenStack Compute - compute node (UserModeLinux)
177 OpenStack is a reliable cloud infrastructure. Its mission is to produce188 OpenStack is a reliable cloud infrastructure. Its mission is to produce
@@ -194,7 +205,6 @@
194Architecture: all205Architecture: all
195Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, xen-hypervisor-4.1-amd64 | xen-hypervisor-4.1-i386,, ${misc:Depends}206Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, xen-hypervisor-4.1-amd64 | xen-hypervisor-4.1-i386,, ${misc:Depends}
196Provides: nova-compute-hypervisor207Provides: nova-compute-hypervisor
197Replaces: nova-compute-hypervisor
198Conflicts: nova-compute-hypervisor208Conflicts: nova-compute-hypervisor
199Description: OpenStack Compute - compute node (Xen)209Description: OpenStack Compute - compute node (Xen)
200 OpenStack is a reliable cloud infrastructure. Its mission is to produce210 OpenStack is a reliable cloud infrastructure. Its mission is to produce
@@ -213,11 +223,32 @@
213 .223 .
214 Install this package on your compute nodes if you're using Xen.224 Install this package on your compute nodes if you're using Xen.
215225
226Package: nova-compute-qemu
227Architecture: all
228Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, qemu, ${misc:Depends}
229Provides: nova-compute-hypervisor
230Conflicts: nova-compute-hypervisor
231Description: OpenStack Compute - compute node (QEmu)
232 OpenStack is a reliable cloud infrastructure. Its mission is to produce
233 the ubiquitous cloud computing platform that will meet the needs of public
234 and private cloud providers regardless of size, by being simple to implement
235 and massively scalable.
236 .
237 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
238 addition to its "native" API (the OpenStack API), it also supports the Amazon
239 EC2 API.
240 .
241 Nova is intended to be modular and easy to extend and adapt. It supports many
242 different hypervisors (KVM and Xen to name a few), different database backends
243 (SQLite, MySQL, and PostgreSQL, for instance), different types of user
244 databases (LDAP or SQL), etc.
245 .
246 Install this package on your compute nodes if you're using QEmu.
247
216Package: nova-compute-kvm248Package: nova-compute-kvm
217Architecture: all249Architecture: all
218Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, kvm, ${misc:Depends}250Depends: nova-compute (= ${binary:Version}), python-libvirt, libvirt-bin, kvm, ${misc:Depends}
219Provides: nova-compute-hypervisor251Provides: nova-compute-hypervisor
220Replaces: nova-compute-hypervisor
221Conflicts: nova-compute-hypervisor252Conflicts: nova-compute-hypervisor
222Description: OpenStack Compute - compute node (KVM)253Description: OpenStack Compute - compute node (KVM)
223 OpenStack is a reliable cloud infrastructure. Its mission is to produce254 OpenStack is a reliable cloud infrastructure. Its mission is to produce
@@ -236,6 +267,94 @@
236 .267 .
237 Install this package on your compute nodes if you're using kvm.268 Install this package on your compute nodes if you're using kvm.
238269
270Package: nova-compute-xcp
271Architecture: all
272Depends: nova-compute (= ${binary:Version}), python-xenapi, ${misc:Depends}
273Provides: nova-compute-hypervisor
274Conflicts: nova-compute-hypervisor
275Description: OpenStack Compute - compute node (XCP)
276 OpenStack is a reliable cloud infrastructure. Its mission is to produce
277 the ubiquitous cloud computing platform that will meet the needs of public
278 and private cloud providers regardless of size, by being simple to implement
279 and massively scalable.
280 .
281 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
282 addition to its "native" API (the OpenStack API), it also supports the Amazon
283 EC2 API.
284 .
285 Nova is intended to be modular and easy to extend and adapt. It supports many
286 different hypervisors (KVM and Xen to name a few), different database backends
287 (SQLite, MySQL, and PostgreSQL, for instance), different types of user
288 databases (LDAP or SQL), etc.
289 .
290 Install this package on your compute nodes if you're using xcp
291
292Package: nova-xcp-plugins
293Architecture: all
294Depends: xcp-xapi, ${python:Depends}, ${misc:Depends}
295Description: OpenStack Compute plugin for the Xen Cloud Platform
296 OpenStack is a reliable cloud infrastructure. Its mission is to produce
297 the ubiquitous cloud computing platform that will meet the needs of public
298 and private cloud providers regardless of size, by being simple to implement
299 and massively scalable.
300 .
301 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
302 addition to its "native" API (the OpenStack API), it also supports the Amazon
303 EC2 API.
304 .
305 Nova is intended to be modular and easy to extend and adapt. It supports many
306 different hypervisors (KVM and Xen to name a few), different database backends
307 (SQLite, MySQL, and PostgreSQL, for instance), different types of user
308 databases (LDAP or SQL), etc.
309 .
310 This package is to be installed on the server where you have installed your
311 master Xen API server (see the xcp-xapi package), so that nova-compute can
312 remotely control your XCP nodes and start VM instances.
313
314Package: nova-xcp-network
315Architecture: all
316Depends: xcp-xapi, lsb-base (>= 3.0.6), ${python:Depends}, ${misc:Depends}, nova-xcp-plugins (= ${binary:Version}),
317 openvswitch-switch, ebtables, arptables, iproute
318Description: OpenStack Compute network plugin for the Xen Cloud Platform
319 OpenStack is a reliable cloud infrastructure. Its mission is to produce
320 the ubiquitous cloud computing platform that will meet the needs of public
321 and private cloud providers regardless of size, by being simple to implement
322 and massively scalable.
323 .
324 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
325 addition to its "native" API (the OpenStack API), it also supports the Amazon
326 EC2 API.
327 .
328 Nova is intended to be modular and easy to extend and adapt. It supports many
329 different hypervisors (KVM and Xen to name a few), different database backends
330 (SQLite, MySQL, and PostgreSQL, for instance), different types of user
331 databases (LDAP or SQL), etc.
332 .
333 This package is to be installed on the server where you have installed your
334 master Xen API server (see the xcp-xapi package), so that nova can remotely
335 configure the network of your XCP servers.
336
337
338Package: nova-cert
339Architecture: all
340Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
341Description: OpenStack Compute - certificate management
342 OpenStack is a reliable cloud infrastructure. Its mission is to produce
343 the ubiquitous cloud computing platform that will meet the needs of public
344 and private cloud providers regardless of size, by being simple to implement
345 and massively scalable.
346 .
347 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
348 addition to its "native" API (the OpenStack API), it also supports the Amazon
349 EC2 API.
350 .
351 Nova is intended to be modular and easy to extend and adapt. It supports many
352 different hypervisors (KVM and Xen to name a few), different database backends
353 (SQLite, MySQL, and PostgreSQL, for instance), different types of user
354 databases (LDAP or SQL), etc.
355 .
356 This is the Nova certificate management component.
357
239Package: nova-scheduler358Package: nova-scheduler
240Architecture: all359Architecture: all
241Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}360Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
@@ -279,8 +398,7 @@
279398
280Package: nova-ajax-console-proxy399Package: nova-ajax-console-proxy
281Architecture: all400Architecture: all
282Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}401Description: OpenStack Compute - AJAX console proxy - transitional package
283Description: OpenStack Compute - AJAX console proxy
284 OpenStack is a reliable cloud infrastructure. Its mission is to produce402 OpenStack is a reliable cloud infrastructure. Its mission is to produce
285 the ubiquitous cloud computing platform that will meet the needs of public403 the ubiquitous cloud computing platform that will meet the needs of public
286 and private cloud providers regardless of size, by being simple to implement404 and private cloud providers regardless of size, by being simple to implement
@@ -295,13 +413,12 @@
295 (SQLite, MySQL, and PostgreSQL, for instance), different types of user413 (SQLite, MySQL, and PostgreSQL, for instance), different types of user
296 databases (LDAP or SQL), etc.414 databases (LDAP or SQL), etc.
297 .415 .
298 This package provides the AJAX proxy. It is a publically reachable416 This package used to provide the AJAX proxy, which is now gone.
299 component which proxies access to ajaxterm's running on compute
300 nodes.
301417
302Package: nova-vncproxy418Package: nova-vncproxy
303Architecture: all419Architecture: all
304Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}420Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
421Conflicts: novnc
305Description: OpenStack Compute - VNC proxy422Description: OpenStack Compute - VNC proxy
306 OpenStack is a reliable cloud infrastructure. Its mission is to produce423 OpenStack is a reliable cloud infrastructure. Its mission is to produce
307 the ubiquitous cloud computing platform that will meet the needs of public424 the ubiquitous cloud computing platform that will meet the needs of public
@@ -386,12 +503,59 @@
386 This is the package contains a very simple S3-like object store.503 This is the package contains a very simple S3-like object store.
387 For production use, you should use OpenStack Storage, aka. Swift.504 For production use, you should use OpenStack Storage, aka. Swift.
388505
506Package: nova-console
507Architecture: all
508Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
509Recommends: nova-consoleauth (>= 2012.1~rc1-0ubuntu2)
510Description: OpenStack Compute - Console
511 OpenStack is a reliable cloud infrastructure. Its mission is to produce
512 the ubiquitous cloud computing platform that will meet the needs of public
513 and private cloud providers regardless of size, by being simple to implement
514 and massively scalable.
515 .
516 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
517 addition to its "native" API (the OpenStack API), it also supports the Amazon
518 EC2 API.
519 .
520 Nova is intended to be modular and easy to extend and adapt. It supports many
521 different hypervisors (KVM and Xen to name a few), different database backends
522 (SQLite, MySQL, and PostgreSQL, for instance), different types of user
523 databases (LDAP or SQL), etc.
524 .
525 This package provides the console server. This enables the use of consoles
526 to be used along with XVP and XenServer. It is a publically reachable
527 component which proxies access to VNCs running on compute nodes.
528
529Package: nova-consoleauth
530Architecture: all
531Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
532Breaks: nova-console (<< 2012.1~rc1-0ubuntu2)
533Replaces: nova-console (<< 2012.1~rc1-0ubuntu2)
534Description: OpenStack Compute - Console Authenticator
535 OpenStack is a reliable cloud infrastructure. Its mission is to produce
536 the ubiquitous cloud computing platform that will meet the needs of public
537 and private cloud providers regardless of size, by being simple to implement
538 and massively scalable.
539 .
540 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
541 addition to its "native" API (the OpenStack API), it also supports the Amazon
542 EC2 API.
543 .
544 Nova is intended to be modular and easy to extend and adapt. It supports many
545 different hypervisors (KVM and Xen to name a few), different database backends
546 (SQLite, MySQL, and PostgreSQL, for instance), different types of user
547 databases (LDAP or SQL), etc.
548 .
549 This package provides the authentication service for nova-console. It grants
550 user requests for console access based on tokens in the identity service and
551 allows access to virtual consoles via a browser.
552
389Package: nova-doc553Package: nova-doc
390Architecture: all554Architecture: all
391Section: doc555Section: doc
392Depends: ${misc:Depends}556Depends: ${misc:Depends}
393Recommends: libjs-jquery557Recommends: libjs-jquery
394Description: OpenStack Compute - documetation558Description: OpenStack Compute - documentation
395 OpenStack is a reliable cloud infrastructure. Its mission is to produce559 OpenStack is a reliable cloud infrastructure. Its mission is to produce
396 the ubiquitous cloud computing platform that will meet the needs of public560 the ubiquitous cloud computing platform that will meet the needs of public
397 and private cloud providers regardless of size, by being simple to implement561 and private cloud providers regardless of size, by being simple to implement
@@ -407,3 +571,72 @@
407 databases (LDAP or SQL), etc.571 databases (LDAP or SQL), etc.
408 .572 .
409 This package contains the documentation for Nova.573 This package contains the documentation for Nova.
574
575Package: nova-api-metadata
576Architecture: all
577Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
578Breaks: nova-api
579Description: OpenStack Compute - metadata API frontend
580 OpenStack is a reliable cloud infrastructure. Its mission is to produce
581 the ubiquitous cloud computing platform that will meet the needs of public
582 and private cloud providers regardless of size, by being simple to implement
583 and massively scalable.
584 .
585 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
586 addition to its "native" API (the OpenStack API), it also supports the Amazon
587 EC2 API.
588 .
589 This package provides the metadata API backend for guest VMs.
590
591Package: nova-api-os-compute
592Architecture: all
593Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
594Breaks: nova-api
595Description: OpenStack Compute - OpenStack Compute API frontend
596 OpenStack is a reliable cloud infrastructure. Its mission is to produce
597 the ubiquitous cloud computing platform that will meet the needs of public
598 and private cloud providers regardless of size, by being simple to implement
599 and massively scalable.
600 .
601 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
602 addition to its "native" API (the OpenStack API), it also supports the Amazon
603 EC2 API.
604 .
605 This package provides the OpenStack Compute API frontend.
606
607Package: nova-api-os-volume
608Architecture: all
609Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
610Breaks: nova-api
611Description: OpenStack Compute - OpenStack Volume API frontend
612 OpenStack is a reliable cloud infrastructure. Its mission is to produce
613 the ubiquitous cloud computing platform that will meet the needs of public
614 and private cloud providers regardless of size, by being simple to implement
615 and massively scalable.
616 .
617 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
618 addition to its "native" API (the OpenStack API), it also supports the Amazon
619 EC2 API.
620 .
621 This package provides the OpenStack Volume API frontend.
622
623Package: nova-api-ec2
624Architecture: all
625Depends: ${ostack-lsb-base}, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
626Breaks: nova-api
627Description: OpenStack Compute - EC2 API frontend
628 OpenStack is a reliable cloud infrastructure. Its mission is to produce
629 the ubiquitous cloud computing platform that will meet the needs of public
630 and private cloud providers regardless of size, by being simple to implement
631 and massively scalable.
632 .
633 OpenStack Compute, codenamed Nova, is a cloud computing fabric controller. In
634 addition to its "native" API (the OpenStack API), it also supports the Amazon
635 EC2 API.
636 .
637 Nova is intended to be modular and easy to extend and adapt. It supports many
638 different hypervisors (KVM and Xen to name a few), different database backends
639 (SQLite, MySQL, and PostgreSQL, for instance), different types of user
640 databases (LDAP or SQL), etc.
641 .
642 This package provides the EC2 API.
410643
=== modified file 'debian/copyright'
--- debian/copyright 2011-06-08 18:09:33 +0000
+++ debian/copyright 2012-05-25 10:20:02 +0000
@@ -1,9 +1,11 @@
1Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=1351Format: http://dep.debian.net/deps/dep5-
2Name: nova2Upstream-Name: nova
3Source: https://code.launchpad.net/nova3Source: https://code.launchpad.net/nova
44
5Files: *5Files: *
6Copyright: 2010 United States Government as represented by the Administrator of the National Aeronautics and Space Administration.6Copyright: 2010 United States Government as represented
7 by the Administrator of the National Aeronautics
8 and Space Administration.
7Copyright: 2010 OpenStack LLC9Copyright: 2010 OpenStack LLC
8Copyright: Others (See individual files for more details)10Copyright: Others (See individual files for more details)
9License: Apache-211License: Apache-2
@@ -23,8 +25,8 @@
23 can be found in `/usr/share/common-licenses/Apache-2.0'.25 can be found in `/usr/share/common-licenses/Apache-2.0'.
2426
25Files: contrib/boto_v6/*27Files: contrib/boto_v6/*
26Copyright: (c) 2006-2010, Mitch Garnaat http://garnaat.org/28Copyright: 2006-2010, Mitch Garnaat http://garnaat.org/
27 (c) 2010, Eucalyptus Systems, Inc.29 2010, Eucalyptus Systems, Inc.
28License: BSD-Style30License: BSD-Style
2931
30 Permission is hereby granted, free of charge, to any person obtaining a32 Permission is hereby granted, free of charge, to any person obtaining a
@@ -34,10 +36,10 @@
34 distribute, sublicense, and/or sell copies of the Software, and to36 distribute, sublicense, and/or sell copies of the Software, and to
35 permit persons to whom the Software is furnished to do so, subject to37 permit persons to whom the Software is furnished to do so, subject to
36 the following conditions:38 the following conditions:
3739 .
38 The above copyright notice and this permission notice shall be included40 The above copyright notice and this permission notice shall be included
39 in all copies or substantial portions of the Software.41 in all copies or substantial portions of the Software.
4042 .
41 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS43 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
42 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF44 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
43 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.45 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
@@ -45,3 +47,4 @@
45 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING47 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER48 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
47 DEALINGS IN THE SOFTWARE.49 DEALINGS IN THE SOFTWARE.
50
4851
=== removed file 'debian/debian_control_vars'
--- debian/debian_control_vars 2011-08-09 16:08:33 +0000
+++ debian/debian_control_vars 1970-01-01 00:00:00 +0000
@@ -1,3 +0,0 @@
1nova-compute-deps= lsb-base, qemu-utils, adduser, libvirt-bin (>= 0.9.0)
2ostack-lsb-base= lsb-base
3nova-compute-default-hypervisor=nova-compute-kvm
40
=== added file 'debian/gbp.conf'
--- debian/gbp.conf 1970-01-01 00:00:00 +0000
+++ debian/gbp.conf 2012-05-25 10:20:02 +0000
@@ -0,0 +1,6 @@
1[DEFAULT]
2upstream-branch = master
3debian-branch = debian/unstable
4
5[git-buildpackage]
6export-dir = ../build-area/
07
=== added file 'debian/mans/nova-api-ec2.8'
--- debian/mans/nova-api-ec2.8 1970-01-01 00:00:00 +0000
+++ debian/mans/nova-api-ec2.8 2012-05-25 10:20:02 +0000
@@ -0,0 +1,20 @@
1.TH nova\-api\-ec2.8
2.SH NAME
3nova\-api\-ec2 \- frontend EC2 API server for Nova
4
5.SH SYNOPSIS
6.B nova\-api\-ec2
7.B \-\-flagfile=<flagfilepath>
8
9.SH DESCRIPTION
10.B nova\-api\-ec2
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/mans/nova-api-metadata.8'
--- debian/mans/nova-api-metadata.8 1970-01-01 00:00:00 +0000
+++ debian/mans/nova-api-metadata.8 2012-05-25 10:20:02 +0000
@@ -0,0 +1,20 @@
1.TH nova\-api\-metadata.8
2.SH NAME
3nova\-api\-metadata \- frontend metadata API server for Nova
4
5.SH SYNOPSIS
6.B nova\-api\-metadata
7.B \-\-flagfile=<flagfilepath>
8
9.SH DESCRIPTION
10.B nova\-api\-metadata
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/mans/nova-api-os-compute.8'
--- debian/mans/nova-api-os-compute.8 1970-01-01 00:00:00 +0000
+++ debian/mans/nova-api-os-compute.8 2012-05-25 10:20:02 +0000
@@ -0,0 +1,20 @@
1.TH nova\-api\-os\-compute 8
2.SH NAME
3nova\-api\-os\-compute \- frontend API server for Nova Compute
4
5.SH SYNOPSIS
6.B nova\-api\-os\-compute
7.B \-\-flagfile=<flagfilepath>
8
9.SH DESCRIPTION
10.B nova\-api\-os\-compute
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/mans/nova-api-os-volume.8'
--- debian/mans/nova-api-os-volume.8 1970-01-01 00:00:00 +0000
+++ debian/mans/nova-api-os-volume.8 2012-05-25 10:20:02 +0000
@@ -0,0 +1,20 @@
1.TH nova\-api\-os\-volume 8
2.SH NAME
3nova\-api\-os\-volume \- frontend API server for Nova Volume
4
5.SH SYNOPSIS
6.B nova\-api\-os\-volume
7.B \-\-flagfile=<flagfilepath>
8
9.SH DESCRIPTION
10.B nova\-api\-os\-volume
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/mans/nova-cert.8'
--- debian/mans/nova-cert.8 1970-01-01 00:00:00 +0000
+++ debian/mans/nova-cert.8 2012-05-25 10:20:02 +0000
@@ -0,0 +1,20 @@
1.TH nova\-cert 8
2.SH NAME
3nova\-cert \- Manages x509 certificates for Nova
4
5.SH SYNOPSIS
6.B nova\-cert
7.B \-\-flagfile=<flagfilepath>
8
9.SH DESCRIPTION
10.B nova\-cert
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/mans/nova-console.8'
--- debian/mans/nova-console.8 1970-01-01 00:00:00 +0000
+++ debian/mans/nova-console.8 2012-05-25 10:20:02 +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/mans/nova-consoleauth.8'
--- debian/mans/nova-consoleauth.8 1970-01-01 00:00:00 +0000
+++ debian/mans/nova-consoleauth.8 2012-05-25 10:20:02 +0000
@@ -0,0 +1,20 @@
1.TH nova\-consoleauth 8
2.SH NAME
3nova\-console \- nova VNC console authenticator
4
5.SH SYNOPSIS
6.B nova\-consoleauth
7.B \-\-flagfile=<flagfilepath>
8
9.SH DESCRIPTION
10.B nova\-consoleauth
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/mans/nova-rootwrap.8'
--- debian/mans/nova-rootwrap.8 1970-01-01 00:00:00 +0000
+++ debian/mans/nova-rootwrap.8 2012-05-25 10:20:02 +0000
@@ -0,0 +1,20 @@
1.TH nova\-rootwrap 8
2.SH NAME
3nova\-rootwrap \- Authorizes and executes sudo commands on Nova's behalf
4
5.SH SYNOPSIS
6.B nova\-rootwrap
7.B <command>
8
9.SH DESCRIPTION
10.B nova\-rootwrap
11
12This man page is a stub. Please contribute.
13
14.SH PARAMETERS
15
16.LP
17.B <command>
18.IP
19
20Command to be executed with sudo
021
=== removed file 'debian/nova-ajax-console-proxy.init'
--- debian/nova-ajax-console-proxy.init 2011-08-11 11:27:36 +0000
+++ debian/nova-ajax-console-proxy.init 1970-01-01 00:00:00 +0000
@@ -1,73 +0,0 @@
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides: nova-ajax-console-proxy
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 ajax console proxy
9# Description: nova ajax console proxy is a publically reachable
10# component which proxies access to ajaxterm's running
11# on compute nodes
12### END INIT INFO
13
14set -e
15
16DAEMON=/usr/bin/nova-ajax-console-proxy
17DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
18PIDFILE=/var/run/nova/nova-ajax-console-proxy.pid
19
20ENABLED=true
21
22if test -f /etc/default/nova-ajax-console-proxy; then
23 . /etc/default/nova-ajax-console-proxy
24fi
25
26mkdir -p /var/run/nova
27chown nova:root /var/run/nova/
28
29mkdir -p /var/lock/nova
30chown nova:root /var/lock/nova/
31
32uid="$(getent passwd nova | cut -f3 -d:)"
33gid="$(getent passwd nova | cut -f4 -d:)"
34
35. /lib/lsb/init-functions
36
37export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
38
39if ! [ -x ${DAEMON} ] ; then
40 exit 0
41fi
42
43case "$1" in
44 start)
45 test "$ENABLED" = "true" || exit 0
46 log_daemon_msg "Starting nova ajax console proxy" "nova-ajax-console-proxy"
47 start-stop-daemon --start --chdir /var/run --chuid ${uid}:${gid} -b -m --pidfile ${PIDFILE} --exec ${DAEMON} -- ${DAEMON_ARGS}
48 log_end_msg $?
49 ;;
50 stop)
51 test "$ENABLED" = "true" || exit 0
52 log_daemon_msg "Stopping nova ajax console proxy" "nova-ajax-console-proxy"
53 start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}
54 log_end_msg $?
55 ;;
56 restart|force-reload)
57 test "$ENABLED" = "true" || exit 1
58 $0 stop
59 sleep 1
60 $0 start
61 ;;
62 status)
63 test "$ENABLED" = "true" || exit 0
64 # This is to be fixed: it doesn't exist in Debian
65 status_of_proc -p $PIDFILE $DAEMON nova-ajax-console-proxy && exit 0 || exit $?
66 ;;
67 *)
68 log_action_msg "Usage: $0 {start|stop|restart|force-reload|status}"
69 exit 1
70 ;;
71esac
72
73exit 0
740
=== removed file 'debian/nova-ajax-console-proxy.install'
--- debian/nova-ajax-console-proxy.install 2011-03-30 11:32:43 +0000
+++ debian/nova-ajax-console-proxy.install 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1usr/bin/nova-ajax-console-proxy
20
=== removed file 'debian/nova-ajax-console-proxy.logrotate'
--- debian/nova-ajax-console-proxy.logrotate 2011-03-30 11:32:43 +0000
+++ debian/nova-ajax-console-proxy.logrotate 1970-01-01 00:00:00 +0000
@@ -1,4 +0,0 @@
1/var/log/nova/nova-ajax-console-proxy.log {
2 daily
3 missingok
4}
50
=== removed file 'debian/nova-ajax-console-proxy.manpages'
--- debian/nova-ajax-console-proxy.manpages 2011-04-15 14:57:18 +0000
+++ debian/nova-ajax-console-proxy.manpages 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1debian/mans/nova-ajax-console-proxy.8
20
=== removed file 'debian/nova-ajax-console-proxy.upstart.in'
--- debian/nova-ajax-console-proxy.upstart.in 2011-08-11 13:29:06 +0000
+++ debian/nova-ajax-console-proxy.upstart.in 1970-01-01 00:00:00 +0000
@@ -1,18 +0,0 @@
1description "Nova AJAX console proxy"
2author "Soren Hansen <soren@linux2go.dk>"
3
4start on (filesystem and net-device-up IFACE!=lo)
5stop on runlevel [016]
6
7
8chdir /var/run
9
10pre-start script
11 mkdir -p /var/run/nova
12 chown nova:root /var/run/nova/
13
14 mkdir -p /var/lock/nova
15 chown nova:root /var/lock/nova/
16end script
17
18exec su -c "nova-ajax-console-proxy --flagfile=/etc/nova/nova.conf" nova
190
=== added file 'debian/nova-api-ec2.init'
--- debian/nova-api-ec2.init 1970-01-01 00:00:00 +0000
+++ debian/nova-api-ec2.init 2012-05-25 10:20:02 +0000
@@ -0,0 +1,76 @@
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides: nova-api-ec2
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-api EC2 server
9# Description: frontend EC2 API server for Nova
10### END INIT INFO
11
12
13set -e
14
15DAEMON=/usr/bin/nova-api-ec2
16DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
17PIDFILE=/var/run/nova/nova-api-ec2.pid
18
19ENABLED=true
20
21if test -f /etc/default/nova-api-ec2; then
22 . /etc/default/nova-api-ec2
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 ec2 api" "nova-api-ec2"
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 ec2 api" "nova-api-ec2"
52 start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}
53 log_end_msg $?
54 ;;
55 # Could we implement a reload if the daemon traps the -HUP signal? This would be done with:
56 # reload)
57 # start-stop-daemon --stop --signal HUP --pidfile ${PID_FILE}
58 # ;;
59 restart|force-reload)
60 test "$ENABLED" = "true" || exit 1
61 $0 stop
62 sleep 1
63 $0 start
64 ;;
65 status)
66 test "$ENABLED" = "true" || exit 0
67 # This is to be fixed: it doesn't exist in Debian
68 status_of_proc -p $PIDFILE $DAEMON nova-api && exit 0 || exit $?
69 ;;
70 *)
71 log_action_msg "Usage: /etc/init.d/nova-api-ec2 {start|stop|restart|force-reload|status}"
72 exit 1
73 ;;
74esac
75
76exit 0
077
=== added file 'debian/nova-api-ec2.install'
--- debian/nova-api-ec2.install 1970-01-01 00:00:00 +0000
+++ debian/nova-api-ec2.install 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1usr/bin/nova-api-ec2
02
=== added file 'debian/nova-api-ec2.logrotate'
--- debian/nova-api-ec2.logrotate 1970-01-01 00:00:00 +0000
+++ debian/nova-api-ec2.logrotate 2012-05-25 10:20:02 +0000
@@ -0,0 +1,4 @@
1/var/log/nova/nova-api-ec2.log {
2 daily
3 missingok
4}
05
=== added file 'debian/nova-api-ec2.manpages'
--- debian/nova-api-ec2.manpages 1970-01-01 00:00:00 +0000
+++ debian/nova-api-ec2.manpages 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1debian/mans/nova-api-ec2.8
02
=== added file 'debian/nova-api-ec2.upstart.in'
--- debian/nova-api-ec2.upstart.in 1970-01-01 00:00:00 +0000
+++ debian/nova-api-ec2.upstart.in 2012-05-25 10:20:02 +0000
@@ -0,0 +1,18 @@
1description "Nova EC2 API server"
2author "Joe Heck <heckj@mac.com>"
3
4start on (filesystem and net-device-up IFACE!=lo)
5stop on runlevel [016]
6
7
8chdir /var/run
9
10pre-start script
11 mkdir -p /var/run/nova
12 chown nova:root /var/run/nova/
13
14 mkdir -p /var/lock/nova
15 chown nova:root /var/lock/nova/
16end script
17
18exec su -s /bin/sh -c "exec nova-api-ec2 --flagfile=/etc/nova/nova.conf" nova
019
=== added file 'debian/nova-api-metadata.init'
--- debian/nova-api-metadata.init 1970-01-01 00:00:00 +0000
+++ debian/nova-api-metadata.init 2012-05-25 10:20:02 +0000
@@ -0,0 +1,76 @@
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides: nova-api-metadata
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-api metadata server
9# Description: frontend Metadata API server for Nova
10### END INIT INFO
11
12
13set -e
14
15DAEMON=/usr/bin/nova-api-metadata
16DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
17PIDFILE=/var/run/nova/nova-api-metadata.pid
18
19ENABLED=true
20
21if test -f /etc/default/nova-api-metadata; then
22 . /etc/default/nova-api-metadata
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 metadata api" "nova-api-metadata"
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 metdata api" "nova-api-metadata"
52 start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}
53 log_end_msg $?
54 ;;
55 # Could we implement a reload if the daemon traps the -HUP signal? This would be done with:
56 # reload)
57 # start-stop-daemon --stop --signal HUP --pidfile ${PID_FILE}
58 # ;;
59 restart|force-reload)
60 test "$ENABLED" = "true" || exit 1
61 $0 stop
62 sleep 1
63 $0 start
64 ;;
65 status)
66 test "$ENABLED" = "true" || exit 0
67 # This is to be fixed: it doesn't exist in Debian
68 status_of_proc -p $PIDFILE $DAEMON nova-api && exit 0 || exit $?
69 ;;
70 *)
71 log_action_msg "Usage: /etc/init.d/nova-api-metadata {start|stop|restart|force-reload|status}"
72 exit 1
73 ;;
74esac
75
76exit 0
077
=== added file 'debian/nova-api-metadata.install'
--- debian/nova-api-metadata.install 1970-01-01 00:00:00 +0000
+++ debian/nova-api-metadata.install 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1usr/bin/nova-api-metadata
02
=== added file 'debian/nova-api-metadata.logrotate'
--- debian/nova-api-metadata.logrotate 1970-01-01 00:00:00 +0000
+++ debian/nova-api-metadata.logrotate 2012-05-25 10:20:02 +0000
@@ -0,0 +1,4 @@
1/var/log/nova/nova-api-metadata.log {
2 daily
3 missingok
4}
05
=== added file 'debian/nova-api-metadata.manpages'
--- debian/nova-api-metadata.manpages 1970-01-01 00:00:00 +0000
+++ debian/nova-api-metadata.manpages 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1debian/mans/nova-api-metadata.8
02
=== added file 'debian/nova-api-metadata.upstart.in'
--- debian/nova-api-metadata.upstart.in 1970-01-01 00:00:00 +0000
+++ debian/nova-api-metadata.upstart.in 2012-05-25 10:20:02 +0000
@@ -0,0 +1,18 @@
1description "Nova Metadata API server"
2author "Joe Heck <heckj@mac.com>"
3
4start on (filesystem and net-device-up IFACE!=lo)
5stop on runlevel [016]
6
7
8chdir /var/run
9
10pre-start script
11 mkdir -p /var/run/nova
12 chown nova:root /var/run/nova/
13
14 mkdir -p /var/lock/nova
15 chown nova:root /var/lock/nova/
16end script
17
18exec su -s /bin/sh -c "exec nova-api-metadata --flagfile=/etc/nova/nova.conf" nova
019
=== added file 'debian/nova-api-os-compute.init'
--- debian/nova-api-os-compute.init 1970-01-01 00:00:00 +0000
+++ debian/nova-api-os-compute.init 2012-05-25 10:20:02 +0000
@@ -0,0 +1,76 @@
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides: nova-api-os-compute
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-api compute openstack server
9# Description: frontend OpenStack Compute API server for Nova
10### END INIT INFO
11
12
13set -e
14
15DAEMON=/usr/bin/nova-api-os-compute
16DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
17PIDFILE=/var/run/nova/nova-api-os-compute.pid
18
19ENABLED=true
20
21if test -f /etc/default/nova-api-os-compute; then
22 . /etc/default/nova-api-os-compute
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 openstack compute api" "nova-api-os-compute"
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 openstack compute api" "nova-api-os-compute"
52 start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}
53 log_end_msg $?
54 ;;
55 # Could we implement a reload if the daemon traps the -HUP signal? This would be done with:
56 # reload)
57 # start-stop-daemon --stop --signal HUP --pidfile ${PID_FILE}
58 # ;;
59 restart|force-reload)
60 test "$ENABLED" = "true" || exit 1
61 $0 stop
62 sleep 1
63 $0 start
64 ;;
65 status)
66 test "$ENABLED" = "true" || exit 0
67 # This is to be fixed: it doesn't exist in Debian
68 status_of_proc -p $PIDFILE $DAEMON nova-api-os-compute && exit 0 || exit $?
69 ;;
70 *)
71 log_action_msg "Usage: /etc/init.d/nova-api-os-compute {start|stop|restart|force-reload|status}"
72 exit 1
73 ;;
74esac
75
76exit 0
077
=== added file 'debian/nova-api-os-compute.install'
--- debian/nova-api-os-compute.install 1970-01-01 00:00:00 +0000
+++ debian/nova-api-os-compute.install 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1usr/bin/nova-api-os-compute
02
=== added file 'debian/nova-api-os-compute.logrotate'
--- debian/nova-api-os-compute.logrotate 1970-01-01 00:00:00 +0000
+++ debian/nova-api-os-compute.logrotate 2012-05-25 10:20:02 +0000
@@ -0,0 +1,4 @@
1/var/log/nova/nova-api-os-compute.log {
2 daily
3 missingok
4}
05
=== added file 'debian/nova-api-os-compute.manpages'
--- debian/nova-api-os-compute.manpages 1970-01-01 00:00:00 +0000
+++ debian/nova-api-os-compute.manpages 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1debian/mans/nova-api-os-compute.8
02
=== added file 'debian/nova-api-os-compute.upstart.in'
--- debian/nova-api-os-compute.upstart.in 1970-01-01 00:00:00 +0000
+++ debian/nova-api-os-compute.upstart.in 2012-05-25 10:20:02 +0000
@@ -0,0 +1,18 @@
1description "Nova OpenStack Compute API server"
2author "Joe Heck <heckj@mac.com>"
3
4start on (filesystem and net-device-up IFACE!=lo)
5stop on runlevel [016]
6
7
8chdir /var/run
9
10pre-start script
11 mkdir -p /var/run/nova
12 chown nova:root /var/run/nova/
13
14 mkdir -p /var/lock/nova
15 chown nova:root /var/lock/nova/
16end script
17
18exec su -s /bin/sh -c "exec nova-api-os-compute --flagfile=/etc/nova/nova.conf" nova
019
=== added file 'debian/nova-api-os-volume.init'
--- debian/nova-api-os-volume.init 1970-01-01 00:00:00 +0000
+++ debian/nova-api-os-volume.init 2012-05-25 10:20:02 +0000
@@ -0,0 +1,76 @@
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides: nova-api-os-volume
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-api volume openstack server
9# Description: frontend OpenStack Volume API server for Nova
10### END INIT INFO
11
12
13set -e
14
15DAEMON=/usr/bin/nova-api-os-volume
16DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
17PIDFILE=/var/run/nova/nova-api-os-volume.pid
18
19ENABLED=true
20
21if test -f /etc/default/nova-api-os-volume; then
22 . /etc/default/nova-api-os-volume
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 openstack volume api" "nova-api-os-volume"
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 openstack volume api" "nova-api-os-volume"
52 start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}
53 log_end_msg $?
54 ;;
55 # Could we implement a reload if the daemon traps the -HUP signal? This would be done with:
56 # reload)
57 # start-stop-daemon --stop --signal HUP --pidfile ${PID_FILE}
58 # ;;
59 restart|force-reload)
60 test "$ENABLED" = "true" || exit 1
61 $0 stop
62 sleep 1
63 $0 start
64 ;;
65 status)
66 test "$ENABLED" = "true" || exit 0
67 # This is to be fixed: it doesn't exist in Debian
68 status_of_proc -p $PIDFILE $DAEMON nova-api-os-volume && exit 0 || exit $?
69 ;;
70 *)
71 log_action_msg "Usage: /etc/init.d/nova-api-os-volume {start|stop|restart|force-reload|status}"
72 exit 1
73 ;;
74esac
75
76exit 0
077
=== added file 'debian/nova-api-os-volume.install'
--- debian/nova-api-os-volume.install 1970-01-01 00:00:00 +0000
+++ debian/nova-api-os-volume.install 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1usr/bin/nova-api-os-volume
02
=== added file 'debian/nova-api-os-volume.logrotate'
--- debian/nova-api-os-volume.logrotate 1970-01-01 00:00:00 +0000
+++ debian/nova-api-os-volume.logrotate 2012-05-25 10:20:02 +0000
@@ -0,0 +1,4 @@
1/var/log/nova/nova-api-os-volume.log {
2 daily
3 missingok
4}
05
=== added file 'debian/nova-api-os-volume.manpages'
--- debian/nova-api-os-volume.manpages 1970-01-01 00:00:00 +0000
+++ debian/nova-api-os-volume.manpages 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1debian/mans/nova-api-os-volume.8
02
=== added file 'debian/nova-api-os-volume.upstart.in'
--- debian/nova-api-os-volume.upstart.in 1970-01-01 00:00:00 +0000
+++ debian/nova-api-os-volume.upstart.in 2012-05-25 10:20:02 +0000
@@ -0,0 +1,18 @@
1description "Nova OpenStack Volume API server"
2author "Joe Heck <heckj@mac.com>"
3
4start on (filesystem and net-device-up IFACE!=lo)
5stop on runlevel [016]
6
7
8chdir /var/run
9
10pre-start script
11 mkdir -p /var/run/nova
12 chown nova:root /var/run/nova/
13
14 mkdir -p /var/lock/nova
15 chown nova:root /var/lock/nova/
16end script
17
18exec su -s /bin/sh -c "exec nova-api-os-volume --flagfile=/etc/nova/nova.conf" nova
019
=== modified file 'debian/nova-api.init'
--- debian/nova-api.init 2011-08-11 11:27:36 +0000
+++ debian/nova-api.init 2012-05-25 10:20:02 +0000
@@ -1,76 +1,97 @@
1#! /bin/sh1#!/bin/sh
2### BEGIN INIT INFO2### BEGIN INIT INFO
3# Provides: nova-api3# Provides: nova-api
4# Required-Start: $remote_fs $syslog4# Required-Start: $network $local_fs $remote_fs $syslog
5# Required-Stop: $remote_fs $syslog5# Required-Stop: $remote_fs
6# Default-Start: 2 3 4 56# Default-Start: 2 3 4 5
7# Default-Stop: 0 1 67# Default-Stop: 0 1 6
8# Short-Description: nova-api server8# Short-Description: Nova API server
9# Description: frontend API server for Nova9# Description: Frontend Nova API server
10### END INIT INFO10### END INIT INFO
1111
1212# Author: Julien Danjou <acid@debian.org>
13set -e13
1414# PATH should only include /usr/* if it runs after the mountnfs.sh script
15PATH=/sbin:/usr/sbin:/bin:/usr/bin
16DESC="OpenStack Compute API"
17NAME=nova-api
15DAEMON=/usr/bin/nova-api18DAEMON=/usr/bin/nova-api
16DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"19DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
17PIDFILE=/var/run/nova/nova-api.pid20PIDFILE=/var/run/$NAME.pid
1821SCRIPTNAME=/etc/init.d/$NAME
19ENABLED=true22NOVA_USER=nova
2023LOCK_DIR=/var/lock/nova/
21if test -f /etc/default/nova-api; then24
22 . /etc/default/nova-api25# Exit if the package is not installed
23fi26[ -x $DAEMON ] || exit 0
2427
25mkdir -p /var/run/nova28mkdir -p ${LOCK_DIR}
26chown nova:root /var/run/nova/29chown ${NOVA_USER} ${LOCK_DIR}
2730
28mkdir -p /var/lock/nova31# Read configuration variable file if it is present
29chown nova:root /var/lock/nova/32[ -r /etc/default/$NAME ] && . /etc/default/$NAME
30
31uid="$(getent passwd nova | cut -f3 -d:)"
32gid="$(getent passwd nova | cut -f4 -d:)"
3333
34. /lib/lsb/init-functions34. /lib/lsb/init-functions
3535
36export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"36do_start()
37{
38 start-stop-daemon --start --background --quiet --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \
39 || return 1
40 start-stop-daemon --start --background --quiet --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \
41 $DAEMON_ARGS \
42 || return 2
43}
3744
38if ! [ -x ${DAEMON} ] ; then45do_stop()
39 exit 046{
40fi47 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
48 RETVAL="$?"
49 rm -f $PIDFILE
50 return "$RETVAL"
51}
4152
42case "$1" in53case "$1" in
43 start)54 start)
44 test "$ENABLED" = "true" || exit 055 log_daemon_msg "Starting $DESC " "$NAME"
45 log_daemon_msg "Starting nova api" "nova-api"56 do_start
46 start-stop-daemon --start --chdir /var/run --chuid ${uid}:${gid} -b -m --pidfile ${PIDFILE} --exec ${DAEMON} -- ${DAEMON_ARGS}57 case "$?" in
47 log_end_msg $?58 0|1) log_end_msg 0 ;;
48 ;;59 2) log_end_msg 1 ;;
60 esac
61 ;;
49 stop)62 stop)
50 test "$ENABLED" = "true" || exit 063 log_daemon_msg "Stopping $DESC" "$NAME"
51 log_daemon_msg "Stopping nova api" "nova-api"64 do_stop
52 start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}65 case "$?" in
53 log_end_msg $?66 0|1) log_end_msg 0 ;;
54 ;;67 2) log_end_msg 1 ;;
55 # Could we implement a reload if the daemon traps the -HUP signal? This would be done with:68 esac
56 # reload)69 ;;
57 # start-stop-daemon --stop --signal HUP --pidfile ${PID_FILE}70 status)
58 # ;;71 status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
72 ;;
59 restart|force-reload)73 restart|force-reload)
60 test "$ENABLED" = "true" || exit 174 log_daemon_msg "Restarting $DESC" "$NAME"
61 $0 stop75 do_stop
62 sleep 176 case "$?" in
63 $0 start77 0|1)
64 ;;78 do_start
65 status)79 case "$?" in
66 test "$ENABLED" = "true" || exit 080 0) log_end_msg 0 ;;
67 # This is to be fixed: it doesn't exist in Debian81 1) log_end_msg 1 ;; # Old process is still running
68 status_of_proc -p $PIDFILE $DAEMON nova-api && exit 0 || exit $?82 *) log_end_msg 1 ;; # Failed to start
69 ;;83 esac
84 ;;
85 *)
86 # Failed to stop
87 log_end_msg 1
88 ;;
89 esac
90 ;;
70 *)91 *)
71 log_action_msg "Usage: /etc/init.d/nova-api {start|stop|restart|force-reload|status}"92 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
72 exit 193 exit 3
73 ;;94 ;;
74esac95esac
7596
76exit 097:
7798
=== modified file 'debian/nova-api.install'
--- debian/nova-api.install 2011-09-22 17:03:02 +0000
+++ debian/nova-api.install 2012-05-25 10:20:02 +0000
@@ -1,2 +1,1 @@
1usr/bin/nova-api1usr/bin/nova-api
2debian/api-paste.ini etc/nova
32
=== modified file 'debian/nova-api.upstart.in'
--- debian/nova-api.upstart.in 2011-08-11 13:29:06 +0000
+++ debian/nova-api.upstart.in 2012-05-25 10:20:02 +0000
@@ -15,4 +15,4 @@
15 chown nova:root /var/lock/nova/15 chown nova:root /var/lock/nova/
16end script16end script
1717
18exec su -c "nova-api --flagfile=/etc/nova/nova.conf" nova18exec su -s /bin/sh -c "exec nova-api --flagfile=/etc/nova/nova.conf" nova
1919
=== added file 'debian/nova-cert.init'
--- debian/nova-cert.init 1970-01-01 00:00:00 +0000
+++ debian/nova-cert.init 2012-05-25 10:20:02 +0000
@@ -0,0 +1,71 @@
1#! /bin/sh
2### BEGIN INIT INFO
3# Provides: nova-cert
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-cert
9# Description: Schedules instances, volumes, etc. for Nova
10### END INIT INFO
11
12
13set -e
14
15DAEMON=/usr/bin/nova-cert
16DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
17PIDFILE=/var/run/nova/nova-cert.pid
18
19ENABLED=true
20
21if test -f /etc/default/nova-cert; then
22 . /etc/default/nova-cert
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 cert" "nova-cert"
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 cert" "nova-cert"
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-cert && exit 0 || exit $?
64 ;;
65 *)
66 log_action_msg "Usage: /etc/init.d/nova-cert {start|stop|restart|force-reload|status}"
67 exit 1
68 ;;
69esac
70
71exit 0
072
=== added file 'debian/nova-cert.install'
--- debian/nova-cert.install 1970-01-01 00:00:00 +0000
+++ debian/nova-cert.install 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1usr/bin/nova-cert
02
=== added file 'debian/nova-cert.logrotate'
--- debian/nova-cert.logrotate 1970-01-01 00:00:00 +0000
+++ debian/nova-cert.logrotate 2012-05-25 10:20:02 +0000
@@ -0,0 +1,4 @@
1/var/log/nova/nova-cert.log {
2 daily
3 missingok
4}
05
=== added file 'debian/nova-cert.manpages'
--- debian/nova-cert.manpages 1970-01-01 00:00:00 +0000
+++ debian/nova-cert.manpages 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1debian/mans/nova-cert.8
02
=== added file 'debian/nova-cert.upstart.in'
--- debian/nova-cert.upstart.in 1970-01-01 00:00:00 +0000
+++ debian/nova-cert.upstart.in 2012-05-25 10:20:02 +0000
@@ -0,0 +1,18 @@
1description "Nova cert"
2author "Soren Hansen <soren@linux2go.dk>"
3
4start on (filesystem and net-device-up IFACE!=lo)
5stop on runlevel [016]
6
7
8chdir /var/run
9
10pre-start script
11 mkdir -p /var/run/nova
12 chown nova:root /var/run/nova/
13
14 mkdir -p /var/lock/nova
15 chown nova:root /var/lock/nova/
16end script
17
18exec su -s /bin/sh -c "exec nova-cert --flagfile=/etc/nova/nova.conf" nova
019
=== modified file 'debian/nova-common.install'
--- debian/nova-common.install 2011-04-05 19:13:43 +0000
+++ debian/nova-common.install 2012-05-25 10:20:02 +0000
@@ -1,3 +1,7 @@
1usr/bin/nova-manage1usr/bin/nova-manage
2usr/bin/nova-rootwrap
3etc/nova/policy.json etc/nova
4etc/nova/api-paste.ini etc/nova
2debian/nova_sudoers etc/sudoers.d5debian/nova_sudoers etc/sudoers.d
3debian/nova.conf etc/nova6debian/nova.conf etc/nova
7etc/nova/policy.json etc/nova
48
=== added file 'debian/nova-common.manpages'
--- debian/nova-common.manpages 1970-01-01 00:00:00 +0000
+++ debian/nova-common.manpages 2012-05-25 10:20:02 +0000
@@ -0,0 +1,2 @@
1debian/mans/nova-rootwrap.8
2doc/build/man/nova-manage.1
03
=== removed file 'debian/nova-common.manpages.in'
--- debian/nova-common.manpages.in 2011-04-15 15:31:12 +0000
+++ debian/nova-common.manpages.in 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1doc/doc/build/man/nova-manage.1
20
=== added file 'debian/nova-common.nova-manage.logrotate'
--- debian/nova-common.nova-manage.logrotate 1970-01-01 00:00:00 +0000
+++ debian/nova-common.nova-manage.logrotate 2012-05-25 10:20:02 +0000
@@ -0,0 +1,4 @@
1/var/log/nova/nova-manage.log {
2 daily
3 missingok
4}
05
=== modified file 'debian/nova-common.postinst'
--- debian/nova-common.postinst 2011-10-03 10:49:08 +0000
+++ debian/nova-common.postinst 2012-05-25 10:20:02 +0000
@@ -4,13 +4,37 @@
4 if ! getent group nova > /dev/null 2>&1; then4 if ! getent group nova > /dev/null 2>&1; then
5 addgroup --system nova >/dev/null5 addgroup --system nova >/dev/null
6 fi6 fi
7
7 if ! getent passwd nova > /dev/null 2>&1; then8 if ! getent passwd nova > /dev/null 2>&1; then
8 adduser --system --home /var/lib/nova --ingroup nova --no-create-home --shell /bin/bash nova9 adduser --system --home /var/lib/nova --ingroup nova --no-create-home --shell /bin/false nova
9 fi10 fi
11
12 if [ "$(id -gn nova)" = "nogroup" ]; then
13 usermod -g nova nova
14 fi
15
16 if [ -z "$2" ]; then
17 # New install - blanket permissions
18 chown -R nova:nova /var/lib/nova/
19 elif dpkg --compare-versions "$2" lt "2011.3-0ubuntu4"; then
20 # make sure that LXC rootfs mount points are excleuded
21 # during upgrades from previous versions
22 find /var/lib/nova/ -name 'rootfs' -prune -o \
23 -group root -a -user nova -exec chown nova:nova {} \;
24 find /var/lib/nova/ -name 'rootfs' -prune -o \
25 -group nogroup -a -user nova -exec chown nova:nova {} \;
26 fi
27
10 if [ "$(id -gn nova)" = "nogroup" ]; then28 if [ "$(id -gn nova)" = "nogroup" ]; then
11 usermod -g nova nova29 usermod -g nova nova
12 fi30 fi
13 chown -R nova:nova /var/log/nova/ /etc/nova/nova.conf31
32 if dpkg --compare-versions "$2" lt "2012.1~e3-0ubuntu2"; then
33 usermod -s "/bin/false" nova
34 fi
35
36 chown -R nova:nova /var/log/nova/ /etc/nova/
37
14 if [ -z "$2" ]; then38 if [ -z "$2" ]; then
15 # New install - blanket permissions39 # New install - blanket permissions
16 chown -R nova:nova /var/lib/nova/40 chown -R nova:nova /var/lib/nova/
@@ -22,13 +46,25 @@
22 find /var/lib/nova/ -name 'rootfs' -prune -o \46 find /var/lib/nova/ -name 'rootfs' -prune -o \
23 -group nogroup -a -user nova -exec chown nova:nova {} \;47 -group nogroup -a -user nova -exec chown nova:nova {} \;
24 fi48 fi
25 chmod 600 /etc/nova/nova.conf49
50 chmod 0600 /etc/nova/nova.conf
51 chmod 0600 /etc/nova/policy.json
52 chmod 0600 /etc/nova/api-paste.ini
53 chmod 0700 /etc/nova
26 chmod 0440 /etc/sudoers.d/nova_sudoers54 chmod 0440 /etc/sudoers.d/nova_sudoers
27 chmod 0700 /var/log/nova55 chmod 0700 /var/log/nova
56
28 if ! grep -q sql_connection /etc/nova/nova.conf57 if ! grep -q sql_connection /etc/nova/nova.conf
29 then58 then
30 su -c 'nova-manage db sync' nova59 su -s /bin/sh -c 'nova-manage db sync' nova
31 fi60 fi
61
62 if [ -e /var/lib/nova/nova.sqlite ]
63 then
64 chown nova:nova /var/lib/nova/nova.sqlite
65 chmod 0600 /var/lib/nova/nova.sqlite
66 fi
67
32fi68fi
3369
34#DEBHELPER#70#DEBHELPER#
3571
=== added file 'debian/nova-compute-kvm.postinst'
--- debian/nova-compute-kvm.postinst 1970-01-01 00:00:00 +0000
+++ debian/nova-compute-kvm.postinst 2012-05-25 10:20:02 +0000
@@ -0,0 +1,8 @@
1#!/bin/sh -e
2
3if [ "$1" = "configure" ]; then
4 chown nova:nova /etc/nova/nova-compute.conf
5 chmod 0600 /etc/nova/nova-compute.conf
6fi
7
8#DEBHELPER#
09
=== added file 'debian/nova-compute-lxc.postinst'
--- debian/nova-compute-lxc.postinst 1970-01-01 00:00:00 +0000
+++ debian/nova-compute-lxc.postinst 2012-05-25 10:20:02 +0000
@@ -0,0 +1,8 @@
1#!/bin/sh -e
2
3if [ "$1" = "configure" ]; then
4 chown nova:nova /etc/nova/nova-compute.conf
5 chmod 0600 /etc/nova/nova-compute.conf
6fi
7
8#DEBHELPER#
09
=== added file 'debian/nova-compute-qemu.conf'
--- debian/nova-compute-qemu.conf 1970-01-01 00:00:00 +0000
+++ debian/nova-compute-qemu.conf 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1--libvirt_type=qemu
02
=== added file 'debian/nova-compute-qemu.postinst'
--- debian/nova-compute-qemu.postinst 1970-01-01 00:00:00 +0000
+++ debian/nova-compute-qemu.postinst 2012-05-25 10:20:02 +0000
@@ -0,0 +1,8 @@
1#!/bin/sh -e
2
3if [ "$1" = "configure" ]; then
4 chown nova:nova /etc/nova/nova-compute.conf
5 chmod 0600 /etc/nova/nova-compute.conf
6fi
7
8#DEBHELPER#
09
=== added file 'debian/nova-compute-uml.postinst'
--- debian/nova-compute-uml.postinst 1970-01-01 00:00:00 +0000
+++ debian/nova-compute-uml.postinst 2012-05-25 10:20:02 +0000
@@ -0,0 +1,8 @@
1#!/bin/sh -e
2
3if [ "$1" = "configure" ]; then
4 chown nova:nova /etc/nova/nova-compute.conf
5 chmod 0600 /etc/nova/nova-compute.conf
6fi
7
8#DEBHELPER#
09
=== added file 'debian/nova-compute-xen.postinst'
--- debian/nova-compute-xen.postinst 1970-01-01 00:00:00 +0000
+++ debian/nova-compute-xen.postinst 2012-05-25 10:20:02 +0000
@@ -0,0 +1,8 @@
1#!/bin/sh -e
2
3if [ "$1" = "configure" ]; then
4 chown nova:nova /etc/nova/nova-compute.conf
5 chmod 0600 /etc/nova/nova-compute.conf
6fi
7
8#DEBHELPER#
09
=== modified file 'debian/nova-compute.init'
--- debian/nova-compute.init 2011-08-11 13:29:06 +0000
+++ debian/nova-compute.init 2012-05-25 10:20:02 +0000
@@ -1,75 +1,100 @@
1#! /bin/sh1#!/bin/sh
2### BEGIN INIT INFO2### BEGIN INIT INFO
3# Provides: nova-compute3# Provides: nova-compute
4# Required-Start: $remote_fs $syslog4# Required-Start: $network $local_fs $remote_fs $syslog
5# Required-Stop: $remote_fs $syslog5# Required-Stop: $remote_fs
6# Should-Start: libvirt-bin6# Should-Start: libvirt-bin
7# Should-Stop: libvirt-bin7# Should-Stop: libvirt-bin
8# Default-Start: 2 3 4 58# Default-Start: 2 3 4 5
9# Default-Stop: 0 1 69# Default-Stop: 0 1 6
10# Short-Description: nova-compute server10# Short-Description: Nova Compute server
11# Description: Provides compute server resources for the openstack11# Description: Provides compute server resources for the
12# cloud computing system12# OpenStack cloud computing system
13### END INIT INFO13### END INIT INFO
1414
1515# Author: Julien Danjou <acid@debian.org>
16set -e16
1717# PATH should only include /usr/* if it runs after the mountnfs.sh script
18PATH=/sbin:/usr/sbin:/bin:/usr/bin
19DESC="OpenStack Compute"
20NAME=nova-compute
18DAEMON=/usr/bin/nova-compute21DAEMON=/usr/bin/nova-compute
19DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"22DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
20PIDFILE=/var/run/nova/nova-compute.pid23PIDFILE=/var/run/$NAME.pid
2124SCRIPTNAME=/etc/init.d/$NAME
22ENABLED=true25NOVA_USER=nova
2326LOCK_DIR=/var/lock/nova/
24if test -f /etc/default/nova-compute; then27
25 . /etc/default/nova-compute28# Exit if the package is not installed
26fi29[ -x $DAEMON ] || exit 0
2730
28mkdir -p /var/run/nova31mkdir -p ${LOCK_DIR}
29chown nova:root /var/run/nova/32chown ${NOVA_USER} ${LOCK_DIR}
3033
31mkdir -p /var/lock/nova34# Read configuration variable file if it is present
32chown nova:root /var/lock/nova/35[ -r /etc/default/$NAME ] && . /etc/default/$NAME
33
34uid="$(getent passwd nova | cut -f3 -d:)"
35gid="$(getent passwd nova | cut -f4 -d:)"
3636
37. /lib/lsb/init-functions37. /lib/lsb/init-functions
3838
39export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"39do_start()
40export TMPDIR=/var/lib/nova/tmp40{
41 start-stop-daemon --start --background --quiet --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \
42 || return 1
43 start-stop-daemon --start --background --quiet --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \
44 $DAEMON_ARGS \
45 || return 2
46}
4147
42if ! [ -x ${DAEMON} ] ; then48do_stop()
43 exit 049{
44fi50 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
51 RETVAL="$?"
52 rm -f $PIDFILE
53 return "$RETVAL"
54}
4555
46case "$1" in56case "$1" in
47 start)57 start)
48 test "$ENABLED" = "true" || exit 058 log_daemon_msg "Starting $DESC " "$NAME"
49 log_daemon_msg "Starting nova compute" "nova-compute"59 do_start
50 start-stop-daemon --start --chdir /var/run --chuid ${uid}:${gid} -b -m --pidfile $PIDFILE --exec ${DAEMON} -- ${DAEMON_ARGS}60 case "$?" in
51 log_end_msg $?61 0|1) log_end_msg 0 ;;
52 ;;62 2) log_end_msg 1 ;;
63 esac
64 ;;
53 stop)65 stop)
54 test "$ENABLED" = "true" || exit 066 log_daemon_msg "Stopping $DESC" "$NAME"
55 log_daemon_msg "Stopping nova compute" "nova-compute"67 do_stop
56 start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}68 case "$?" in
57 log_end_msg $?69 0|1) log_end_msg 0 ;;
58 ;;70 2) log_end_msg 1 ;;
71 esac
72 ;;
73 status)
74 status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
75 ;;
59 restart|force-reload)76 restart|force-reload)
60 test "$ENABLED" = "true" || exit 177 log_daemon_msg "Restarting $DESC" "$NAME"
61 $0 stop78 do_stop
62 sleep 179 case "$?" in
63 $0 start80 0|1)
64 ;;81 do_start
65 status)82 case "$?" in
66 test "$ENABLED" = "true" || exit 083 0) log_end_msg 0 ;;
67 status_of_proc -p $PIDFILE $DAEMON nova-compute && exit 0 || exit $?84 1) log_end_msg 1 ;; # Old process is still running
68 ;;85 *) log_end_msg 1 ;; # Failed to start
86 esac
87 ;;
88 *)
89 # Failed to stop
90 log_end_msg 1
91 ;;
92 esac
93 ;;
69 *)94 *)
70 log_action_msg "Usage: /etc/init.d/nova-compute {start|stop|restart|force-reload|status}"95 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
71 exit 196 exit 3
72 ;;97 ;;
73esac98esac
7499
75exit 0100:
76101
=== added file 'debian/nova-compute.pyinstall'
--- debian/nova-compute.pyinstall 1970-01-01 00:00:00 +0000
+++ debian/nova-compute.pyinstall 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1nova/rootwrap/compute.py
02
=== modified file 'debian/nova-compute.upstart.in'
--- debian/nova-compute.upstart.in 2011-09-27 01:29:58 +0000
+++ debian/nova-compute.upstart.in 2012-05-25 10:20:02 +0000
@@ -17,4 +17,4 @@
17 modprobe nbd17 modprobe nbd
18end script18end script
1919
20exec su -c "nova-compute --flagfile=/etc/nova/nova.conf --flagfile=/etc/nova/nova-compute.conf" nova20exec su -s /bin/sh -c "exec nova-compute --flagfile=/etc/nova/nova.conf --flagfile=/etc/nova/nova-compute.conf" nova
2121
=== added file 'debian/nova-console.init'
--- debian/nova-console.init 1970-01-01 00:00:00 +0000
+++ debian/nova-console.init 2012-05-25 10:20:02 +0000
@@ -0,0 +1,97 @@
1#!/bin/sh
2### BEGIN INIT INFO
3# Provides: nova-console
4# Required-Start: $network $local_fs $remote_fs $syslog
5# Required-Stop: $remote_fs
6# Default-Start: 2 3 4 5
7# Default-Stop: 0 1 6
8# Short-Description: Nova Console for XenServer and XVP
9# Description: Nova Console for XenServer and XVP
10### END INIT INFO
11
12# Author: Julien Danjou <acid@debian.org>
13
14# PATH should only include /usr/* if it runs after the mountnfs.sh script
15PATH=/sbin:/usr/sbin:/bin:/usr/bin
16DESC="OpenStack Compute Console"
17NAME=nova-console
18DAEMON=/usr/bin/nova-console
19DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
20PIDFILE=/var/run/$NAME.pid
21SCRIPTNAME=/etc/init.d/$NAME
22NOVA_USER=nova
23LOCK_DIR=/var/lock/nova/
24
25# Exit if the package is not installed
26[ -x $DAEMON ] || exit 0
27
28mkdir -p ${LOCK_DIR}
29chown ${NOVA_USER} ${LOCK_DIR}
30
31# Read configuration variable file if it is present
32[ -r /etc/default/$NAME ] && . /etc/default/$NAME
33
34. /lib/lsb/init-functions
35
36do_start()
37{
38 start-stop-daemon --start --background --quiet --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \
39 || return 1
40 start-stop-daemon --start --background --quiet --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \
41 $DAEMON_ARGS \
42 || return 2
43}
44
45do_stop()
46{
47 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
48 RETVAL="$?"
49 rm -f $PIDFILE
50 return "$RETVAL"
51}
52
53case "$1" in
54 start)
55 log_daemon_msg "Starting $DESC " "$NAME"
56 do_start
57 case "$?" in
58 0|1) log_end_msg 0 ;;
59 2) log_end_msg 1 ;;
60 esac
61 ;;
62 stop)
63 log_daemon_msg "Stopping $DESC" "$NAME"
64 do_stop
65 case "$?" in
66 0|1) log_end_msg 0 ;;
67 2) log_end_msg 1 ;;
68 esac
69 ;;
70 status)
71 status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
72 ;;
73 restart|force-reload)
74 log_daemon_msg "Restarting $DESC" "$NAME"
75 do_stop
76 case "$?" in
77 0|1)
78 do_start
79 case "$?" in
80 0) log_end_msg 0 ;;
81 1) log_end_msg 1 ;; # Old process is still running
82 *) log_end_msg 1 ;; # Failed to start
83 esac
84 ;;
85 *)
86 # Failed to stop
87 log_end_msg 1
88 ;;
89 esac
90 ;;
91 *)
92 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
93 exit 3
94 ;;
95esac
96
97:
098
=== added file 'debian/nova-console.install'
--- debian/nova-console.install 1970-01-01 00:00:00 +0000
+++ debian/nova-console.install 2012-05-25 10:20:02 +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 2012-05-25 10:20:02 +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 2012-05-25 10:20:02 +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 2012-05-25 10:20:02 +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 -s /bin/sh -c "exec nova-console --flagfile=/etc/nova/nova.conf" nova
020
=== added file 'debian/nova-consoleauth.init'
--- debian/nova-consoleauth.init 1970-01-01 00:00:00 +0000
+++ debian/nova-consoleauth.init 2012-05-25 10:20:02 +0000
@@ -0,0 +1,97 @@
1#!/bin/sh
2### BEGIN INIT INFO
3# Provides: nova-console
4# Required-Start: $network $local_fs $remote_fs $syslog
5# Required-Stop: $remote_fs
6# Default-Start: 2 3 4 5
7# Default-Stop: 0 1 6
8# Short-Description: Nova Console for XenServer and XVP
9# Description: Nova Console for XenServer and XVP
10### END INIT INFO
11
12# Author: Julien Danjou <acid@debian.org>
13
14# PATH should only include /usr/* if it runs after the mountnfs.sh script
15PATH=/sbin:/usr/sbin:/bin:/usr/bin
16DESC="OpenStack Compute Console"
17NAME=nova-consoleauth
18DAEMON=/usr/bin/nova-consoleauth
19DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
20PIDFILE=/var/run/$NAME.pid
21SCRIPTNAME=/etc/init.d/$NAME
22NOVA_USER=nova
23LOCK_DIR=/var/lock/nova/
24
25# Exit if the package is not installed
26[ -x $DAEMON ] || exit 0
27
28mkdir -p ${LOCK_DIR}
29chown ${NOVA_USER} ${LOCK_DIR}
30
31# Read configuration variable file if it is present
32[ -r /etc/default/$NAME ] && . /etc/default/$NAME
33
34. /lib/lsb/init-functions
35
36do_start()
37{
38 start-stop-daemon --start --background --quiet --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \
39 || return 1
40 start-stop-daemon --start --background --quiet --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \
41 $DAEMON_ARGS \
42 || return 2
43}
44
45do_stop()
46{
47 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
48 RETVAL="$?"
49 rm -f $PIDFILE
50 return "$RETVAL"
51}
52
53case "$1" in
54 start)
55 log_daemon_msg "Starting $DESC " "$NAME"
56 do_start
57 case "$?" in
58 0|1) log_end_msg 0 ;;
59 2) log_end_msg 1 ;;
60 esac
61 ;;
62 stop)
63 log_daemon_msg "Stopping $DESC" "$NAME"
64 do_stop
65 case "$?" in
66 0|1) log_end_msg 0 ;;
67 2) log_end_msg 1 ;;
68 esac
69 ;;
70 status)
71 status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
72 ;;
73 restart|force-reload)
74 log_daemon_msg "Restarting $DESC" "$NAME"
75 do_stop
76 case "$?" in
77 0|1)
78 do_start
79 case "$?" in
80 0) log_end_msg 0 ;;
81 1) log_end_msg 1 ;; # Old process is still running
82 *) log_end_msg 1 ;; # Failed to start
83 esac
84 ;;
85 *)
86 # Failed to stop
87 log_end_msg 1
88 ;;
89 esac
90 ;;
91 *)
92 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
93 exit 3
94 ;;
95esac
96
97:
098
=== added file 'debian/nova-consoleauth.install'
--- debian/nova-consoleauth.install 1970-01-01 00:00:00 +0000
+++ debian/nova-consoleauth.install 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1usr/bin/nova-consoleauth
02
=== added file 'debian/nova-consoleauth.logrotate'
--- debian/nova-consoleauth.logrotate 1970-01-01 00:00:00 +0000
+++ debian/nova-consoleauth.logrotate 2012-05-25 10:20:02 +0000
@@ -0,0 +1,5 @@
1/var/log/nova/nova-consoleauth.log {
2 daily
3 copytruncate
4 missingok
5}
06
=== added file 'debian/nova-consoleauth.manpages'
--- debian/nova-consoleauth.manpages 1970-01-01 00:00:00 +0000
+++ debian/nova-consoleauth.manpages 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1debian/mans/nova-consoleauth.8
02
=== added file 'debian/nova-consoleauth.upstart.in'
--- debian/nova-consoleauth.upstart.in 1970-01-01 00:00:00 +0000
+++ debian/nova-consoleauth.upstart.in 2012-05-25 10:20:02 +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 -s /bin/sh -c "exec nova-consoleauth --flagfile=/etc/nova/nova.conf" nova
020
=== modified file 'debian/nova-doc.docs'
--- debian/nova-doc.docs 2011-04-08 14:48:40 +0000
+++ debian/nova-doc.docs 2012-05-25 10:20:02 +0000
@@ -1,1 +1,1 @@
1doc/doc/build/html1doc/build/html
22
=== added file 'debian/nova-doc.links'
--- debian/nova-doc.links 1970-01-01 00:00:00 +0000
+++ debian/nova-doc.links 2012-05-25 10:20:02 +0000
@@ -0,0 +1,7 @@
1# Overwrite jquery.js from upstream tarball with a link to jquery.js
2# provided by jQuery Debian package
3/usr/share/javascript/jquery/jquery.js usr/share/doc/nova-doc/html/_static/jquery.js
4
5# Overwrite underscore.js from upstream tarball with a link to underscore.min.js
6# provided by Underscore Debian package
7/usr/share/javascript/underscore/underscore.min.js usr/share/doc/nova-doc/html/_static/underscore.js
08
=== modified file 'debian/nova-network.init'
--- debian/nova-network.init 2011-08-11 11:27:36 +0000
+++ debian/nova-network.init 2012-05-25 10:20:02 +0000
@@ -1,71 +1,97 @@
1#! /bin/sh1#!/bin/sh
2### BEGIN INIT INFO2### BEGIN INIT INFO
3# Provides: nova-network3# Provides: nova-network
4# Required-Start: $remote_fs $syslog4# Required-Start: $network $local_fs $remote_fs $syslog
5# Required-Stop: $remote_fs $syslog5# Required-Stop: $remote_fs
6# Default-Start: 2 3 4 56# Default-Start: 2 3 4 5
7# Default-Stop: 0 1 67# Default-Stop: 0 1 6
8# Short-Description: nova-network8# Short-Description: Nova Network
9# Description: Provides network ressources (connectivity and IP addresses)9# Description: Provides network resources
10### END INIT INFO10### END INIT INFO
1111
1212# Author: Julien Danjou <acid@debian.org>
13set -e13
1414# PATH should only include /usr/* if it runs after the mountnfs.sh script
15PATH=/sbin:/usr/sbin:/bin:/usr/bin
16DESC="OpenStack Compute Network"
17NAME=nova-network
15DAEMON=/usr/bin/nova-network18DAEMON=/usr/bin/nova-network
16DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"19DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
17PIDFILE=/var/run/nova/nova-network.pid20PIDFILE=/var/run/$NAME.pid
1821SCRIPTNAME=/etc/init.d/$NAME
19ENABLED=true22NOVA_USER=nova
2023LOCK_DIR=/var/lock/nova/
21if test -f /etc/default/nova-network; then24
22 . /etc/default/nova-network25# Exit if the package is not installed
23fi26[ -x $DAEMON ] || exit 0
2427
25mkdir -p /var/run/nova28mkdir -p ${LOCK_DIR}
26chown nova:root /var/run/nova/29chown ${NOVA_USER} ${LOCK_DIR}
2730
28mkdir -p /var/lock/nova31# Read configuration variable file if it is present
29chown nova:root /var/lock/nova/32[ -r /etc/default/$NAME ] && . /etc/default/$NAME
30
31uid="$(getent passwd nova | cut -f3 -d:)"
32gid="$(getent passwd nova | cut -f4 -d:)"
3333
34. /lib/lsb/init-functions34. /lib/lsb/init-functions
3535
36export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"36do_start()
37{
38 start-stop-daemon --start --quiet --background --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \
39 || return 1
40 start-stop-daemon --start --quiet --background --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \
41 $DAEMON_ARGS \
42 || return 2
43}
3744
38if ! [ -x ${DAEMON} ] ; then45do_stop()
39 exit 046{
40fi47 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
48 RETVAL="$?"
49 rm -f $PIDFILE
50 return "$RETVAL"
51}
4152
42case "$1" in53case "$1" in
43 start)54 start)
44 test "$ENABLED" = "true" || exit 055 log_daemon_msg "Starting $DESC " "$NAME"
45 log_daemon_msg "Starting nova network" "nova-network"56 do_start
46 start-stop-daemon --start --chdir /var/run --chuid ${uid}:${gid} --pidfile ${PIDFILE} -b -m --exec ${DAEMON} -- ${DAEMON_ARGS}57 case "$?" in
47 log_end_msg $?58 0|1) log_end_msg 0 ;;
48 ;;59 2) log_end_msg 1 ;;
60 esac
61 ;;
49 stop)62 stop)
50 test "$ENABLED" = "true" || exit 063 log_daemon_msg "Stopping $DESC" "$NAME"
51 log_daemon_msg "Stopping nova network" "nova-network"64 do_stop
52 start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}65 case "$?" in
53 log_end_msg $?66 0|1) log_end_msg 0 ;;
54 ;;67 2) log_end_msg 1 ;;
68 esac
69 ;;
70 status)
71 status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
72 ;;
55 restart|force-reload)73 restart|force-reload)
56 test "$ENABLED" = "true" || exit 174 log_daemon_msg "Restarting $DESC" "$NAME"
57 $0 stop75 do_stop
58 sleep 176 case "$?" in
59 $0 start77 0|1)
60 ;;78 do_start
61 status)79 case "$?" in
62 test "$ENABLED" = "true" || exit 080 0) log_end_msg 0 ;;
63 status_of_proc -p $PIDFILE $DAEMON nova-network && exit 0 || exit $?81 1) log_end_msg 1 ;; # Old process is still running
64 ;;82 *) log_end_msg 1 ;; # Failed to start
83 esac
84 ;;
85 *)
86 # Failed to stop
87 log_end_msg 1
88 ;;
89 esac
90 ;;
65 *)91 *)
66 log_action_msg "Usage: /etc/init.d/nova-network {start|stop|restart|force-reload|status}"92 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
67 exit 193 exit 3
68 ;;94 ;;
69esac95esac
7096
71exit 097:
7298
=== added file 'debian/nova-network.nova-dhcpbridge.logrotate'
--- debian/nova-network.nova-dhcpbridge.logrotate 1970-01-01 00:00:00 +0000
+++ debian/nova-network.nova-dhcpbridge.logrotate 2012-05-25 10:20:02 +0000
@@ -0,0 +1,4 @@
1/var/log/nova/nova-dhcpbridge.log {
2 daily
3 missingok
4}
05
=== added file 'debian/nova-network.pyinstall'
--- debian/nova-network.pyinstall 1970-01-01 00:00:00 +0000
+++ debian/nova-network.pyinstall 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1nova/rootwrap/network.py
02
=== modified file 'debian/nova-network.upstart.in'
--- debian/nova-network.upstart.in 2011-08-11 13:29:06 +0000
+++ debian/nova-network.upstart.in 2012-05-25 10:20:02 +0000
@@ -14,4 +14,4 @@
14 chown nova:root /var/lock/nova/14 chown nova:root /var/lock/nova/
15end script15end script
1616
17exec su -c "nova-network --flagfile=/etc/nova/nova.conf" nova17exec su -s /bin/sh -c "exec nova-network --flagfile=/etc/nova/nova.conf" nova
1818
=== modified file 'debian/nova-objectstore.init'
--- debian/nova-objectstore.init 2011-08-11 11:27:36 +0000
+++ debian/nova-objectstore.init 2012-05-25 10:20:02 +0000
@@ -1,71 +1,97 @@
1#! /bin/sh1#!/bin/sh
2### BEGIN INIT INFO2### BEGIN INIT INFO
3# Provides: nova-objectstore3# Provides: nova-objectstore
4# Required-Start: $remote_fs $syslog4# Required-Start: $network $local_fs $remote_fs $syslog
5# Required-Stop: $remote_fs $syslog5# Required-Stop: $remote_fs
6# Default-Start: 2 3 4 56# Default-Start: 2 3 4 5
7# Default-Stop: 0 1 67# Default-Stop: 0 1 6
8# Short-Description: nova-objectstore8# Short-Description: Nova Objectstore
9# Description: provides virtual machine storage functionalities9# Description: Provides virtual machine storage functionalities
10### END INIT INFO10### END INIT INFO
1111
1212# Author: Julien Danjou <acid@debian.org>
13set -e13
1414# PATH should only include /usr/* if it runs after the mountnfs.sh script
15PATH=/sbin:/usr/sbin:/bin:/usr/bin
16DESC="OpenStack Compute Objectstore"
17NAME=nova-objectstore
15DAEMON=/usr/bin/nova-objectstore18DAEMON=/usr/bin/nova-objectstore
16DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"19DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
17PIDFILE=/var/run/nova/nova-objectstore.pid20PIDFILE=/var/run/$NAME.pid
1821SCRIPTNAME=/etc/init.d/$NAME
19ENABLED=true22NOVA_USER=nova
2023LOCK_DIR=/var/lock/nova/
21if test -f /etc/default/nova-objectstore; then24
22 . /etc/default/nova-objectstore25# Exit if the package is not installed
23fi26[ -x $DAEMON ] || exit 0
2427
25mkdir -p /var/run/nova28mkdir -p ${LOCK_DIR}
26chown nova:root /var/run/nova/29chown ${NOVA_USER} ${LOCK_DIR}
2730
28mkdir -p /var/lock/nova31# Read configuration variable file if it is present
29chown nova:root /var/lock/nova/32[ -r /etc/default/$NAME ] && . /etc/default/$NAME
30
31uid="$(getent passwd nova | cut -f3 -d:)"
32gid="$(getent passwd nova | cut -f4 -d:)"
3333
34. /lib/lsb/init-functions34. /lib/lsb/init-functions
3535
36export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"36do_start()
37{
38 start-stop-daemon --start --quiet --background --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \
39 || return 1
40 start-stop-daemon --start --quiet --background --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \
41 $DAEMON_ARGS \
42 || return 2
43}
3744
38if ! [ -x ${DAEMON} ] ; then45do_stop()
39 exit 046{
40fi47 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
48 RETVAL="$?"
49 rm -f $PIDFILE
50 return "$RETVAL"
51}
4152
42case "$1" in53case "$1" in
43 start)54 start)
44 test "$ENABLED" = "true" || exit 055 log_daemon_msg "Starting $DESC " "$NAME"
45 log_daemon_msg "Starting nova objectstore" "nova-objectstore"56 do_start
46 start-stop-daemon --start --chdir /var/run --chuid ${uid}:${gid} -b -m --pidfile ${PIDFILE} --exec ${DAEMON} -- ${DAEMON_ARGS}57 case "$?" in
47 log_end_msg $?58 0|1) log_end_msg 0 ;;
48 ;;59 2) log_end_msg 1 ;;
60 esac
61 ;;
49 stop)62 stop)
50 test "$ENABLED" = "true" || exit 063 log_daemon_msg "Stopping $DESC" "$NAME"
51 log_daemon_msg "Stopping nova objectstore" "nova-objectstore"64 do_stop
52 start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}65 case "$?" in
53 log_end_msg $?66 0|1) log_end_msg 0 ;;
54 ;;67 2) log_end_msg 1 ;;
68 esac
69 ;;
70 status)
71 status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
72 ;;
55 restart|force-reload)73 restart|force-reload)
56 test "$ENABLED" = "true" || exit 174 log_daemon_msg "Restarting $DESC" "$NAME"
57 $0 stop75 do_stop
58 sleep 176 case "$?" in
59 $0 start77 0|1)
60 ;;78 do_start
61 status)79 case "$?" in
62 test "$ENABLED" = "true" || exit 080 0) log_end_msg 0 ;;
63 status_of_proc -p $PIDFILE $DAEMON nova-objectstore && exit 0 || exit $?81 1) log_end_msg 1 ;; # Old process is still running
64 ;;82 *) log_end_msg 1 ;; # Failed to start
83 esac
84 ;;
85 *)
86 # Failed to stop
87 log_end_msg 1
88 ;;
89 esac
90 ;;
65 *)91 *)
66 log_action_msg "Usage: /etc/init.d/nova-objectstore {start|stop|restart|force-reload|status}"92 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
67 exit 193 exit 3
68 ;;94 ;;
69esac95esac
7096
71exit 097:
7298
=== modified file 'debian/nova-objectstore.logrotate'
--- debian/nova-objectstore.logrotate 2011-04-29 18:29:55 +0000
+++ debian/nova-objectstore.logrotate 2012-05-25 10:20:02 +0000
@@ -2,10 +2,6 @@
2 daily2 daily
3 missingok3 missingok
4 postrotate4 postrotate
5 if dpkg-vendor --derives-from ubuntu ; then5 restart nova-objectstore
6 restart nova-objectstore
7 else
8 invoke-rc.d nova-objectstore restart 2>&1 >/dev/null
9 fi
10 endscript6 endscript
11}7}
128
=== modified file 'debian/nova-objectstore.upstart.in'
--- debian/nova-objectstore.upstart.in 2011-08-23 13:03:24 +0000
+++ debian/nova-objectstore.upstart.in 2012-05-25 10:20:02 +0000
@@ -14,4 +14,4 @@
14 chown nova:root /var/lock/nova/14 chown nova:root /var/lock/nova/
15end script15end script
1616
17exec su -c "nova-objectstore --flagfile=/etc/nova/nova.conf" nova17exec su -s /bin/sh -c "exec nova-objectstore --flagfile=/etc/nova/nova.conf" nova
1818
=== modified file 'debian/nova-scheduler.init'
--- debian/nova-scheduler.init 2011-08-11 11:27:36 +0000
+++ debian/nova-scheduler.init 2012-05-25 10:20:02 +0000
@@ -1,71 +1,97 @@
1#! /bin/sh1#!/bin/sh
2### BEGIN INIT INFO2### BEGIN INIT INFO
3# Provides: nova-scheduler3# Provides: nova-scheduler
4# Required-Start: $remote_fs $syslog4# Required-Start: $network $local_fs $remote_fs $syslog
5# Required-Stop: $remote_fs $syslog5# Required-Stop: $remote_fs
6# Default-Start: 2 3 4 56# Default-Start: 2 3 4 5
7# Default-Stop: 0 1 67# Default-Stop: 0 1 6
8# Short-Description: nova-scheduler8# Short-Description: Nova Scheduler
9# Description: Schedules instances, volumes, etc. for Nova9# Description: Schedules instances, volumes, etc. for Nova
10### END INIT INFO10### END INIT INFO
1111
1212# Author: Julien Danjou <acid@debian.org>
13set -e13
1414# PATH should only include /usr/* if it runs after the mountnfs.sh script
15PATH=/sbin:/usr/sbin:/bin:/usr/bin
16DESC="OpenStack Compute Scheduler"
17NAME=nova-scheduler
15DAEMON=/usr/bin/nova-scheduler18DAEMON=/usr/bin/nova-scheduler
16DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"19DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
17PIDFILE=/var/run/nova/nova-scheduler.pid20PIDFILE=/var/run/$NAME.pid
1821SCRIPTNAME=/etc/init.d/$NAME
19ENABLED=true22NOVA_USER=nova
2023LOCK_DIR=/var/lock/nova/
21if test -f /etc/default/nova-scheduler; then24
22 . /etc/default/nova-scheduler25# Exit if the package is not installed
23fi26[ -x $DAEMON ] || exit 0
2427
25mkdir -p /var/run/nova28mkdir -p ${LOCK_DIR}
26chown nova:root /var/run/nova/29chown ${NOVA_USER} ${LOCK_DIR}
2730
28mkdir -p /var/lock/nova31# Read configuration variable file if it is present
29chown nova:root /var/lock/nova/32[ -r /etc/default/$NAME ] && . /etc/default/$NAME
30
31uid="$(getent passwd nova | cut -f3 -d:)"
32gid="$(getent passwd nova | cut -f4 -d:)"
3333
34. /lib/lsb/init-functions34. /lib/lsb/init-functions
3535
36export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"36do_start()
37{
38 start-stop-daemon --start --quiet --background --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \
39 || return 1
40 start-stop-daemon --start --quiet --background --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \
41 $DAEMON_ARGS \
42 || return 2
43}
3744
38if ! [ -x ${DAEMON} ] ; then45do_stop()
39 exit 046{
40fi47 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
48 RETVAL="$?"
49 rm -f $PIDFILE
50 return "$RETVAL"
51}
4152
42case "$1" in53case "$1" in
43 start)54 start)
44 test "$ENABLED" = "true" || exit 055 log_daemon_msg "Starting $DESC " "$NAME"
45 log_daemon_msg "Starting nova scheduler" "nova-scheduler"56 do_start
46 start-stop-daemon --start --chdir /var/run --chuid ${uid}:${gid} -b -m --pidfile ${PIDFILE} --exec ${DAEMON} -- ${DAEMON_ARGS}57 case "$?" in
47 log_end_msg $?58 0|1) log_end_msg 0 ;;
48 ;;59 2) log_end_msg 1 ;;
60 esac
61 ;;
49 stop)62 stop)
50 test "$ENABLED" = "true" || exit 063 log_daemon_msg "Stopping $DESC" "$NAME"
51 log_daemon_msg "Stopping nova scheduler" "nova-scheduler"64 do_stop
52 start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}65 case "$?" in
53 log_end_msg $?66 0|1) log_end_msg 0 ;;
54 ;;67 2) log_end_msg 1 ;;
68 esac
69 ;;
70 status)
71 status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
72 ;;
55 restart|force-reload)73 restart|force-reload)
56 test "$ENABLED" = "true" || exit 174 log_daemon_msg "Restarting $DESC" "$NAME"
57 $0 stop75 do_stop
58 sleep 176 case "$?" in
59 $0 start77 0|1)
60 ;;78 do_start
61 status)79 case "$?" in
62 test "$ENABLED" = "true" || exit 080 0) log_end_msg 0 ;;
63 status_of_proc -p $PIDFILE $DAEMON nova-scheduler && exit 0 || exit $?81 1) log_end_msg 1 ;; # Old process is still running
64 ;;82 *) log_end_msg 1 ;; # Failed to start
83 esac
84 ;;
85 *)
86 # Failed to stop
87 log_end_msg 1
88 ;;
89 esac
90 ;;
65 *)91 *)
66 log_action_msg "Usage: /etc/init.d/nova-scheduler {start|stop|restart|force-reload|status}"92 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
67 exit 193 exit 3
68 ;;94 ;;
69esac95esac
7096
71exit 097:
7298
=== modified file 'debian/nova-scheduler.upstart.in'
--- debian/nova-scheduler.upstart.in 2011-08-11 13:29:06 +0000
+++ debian/nova-scheduler.upstart.in 2012-05-25 10:20:02 +0000
@@ -15,4 +15,4 @@
15 chown nova:root /var/lock/nova/15 chown nova:root /var/lock/nova/
16end script16end script
1717
18exec su -c "nova-scheduler --flagfile=/etc/nova/nova.conf" nova18exec su -s /bin/sh -c "exec nova-scheduler --flagfile=/etc/nova/nova.conf" nova
1919
=== modified file 'debian/nova-vncproxy.install'
--- debian/nova-vncproxy.install 2011-04-22 20:28:57 +0000
+++ debian/nova-vncproxy.install 2012-05-25 10:20:02 +0000
@@ -1,1 +1,1 @@
1usr/bin/nova-vncproxy1usr/bin/nova-xvpvncproxy
22
=== modified file 'debian/nova-vncproxy.upstart.in'
--- debian/nova-vncproxy.upstart.in 2011-08-11 13:29:06 +0000
+++ debian/nova-vncproxy.upstart.in 2012-05-25 10:20:02 +0000
@@ -15,4 +15,4 @@
15 chown nova:root /var/lock/nova/15 chown nova:root /var/lock/nova/
16end script16end script
1717
18exec su -c "nova-vncproxy --flagfile=/etc/nova/nova.conf" nova18exec su -s /bin/sh -c "exec nova-xvpvncproxy --flagfile=/etc/nova/nova.conf" nova
1919
=== modified file 'debian/nova-volume.default'
--- debian/nova-volume.default 2011-04-14 05:53:27 +0000
+++ debian/nova-volume.default 2012-05-25 10:20:02 +0000
@@ -1,5 +1,4 @@
1# nova-volume default vg to use.1# nova-volume default vg to use.
2# If nothing is set here, then nova-volume will pickup the2# If nothing is set here, then nova-volume will pickup the
3# first volume group it sees using the following command:3# first volume group it sees.
4# vgdisplay -c -A | tail -n 1 | cut -d":" -f1 | awk '{print $1}'4#nova_volume_group=
5#nova_volume_group=
6\ No newline at end of file5\ No newline at end of file
76
=== modified file 'debian/nova-volume.init'
--- debian/nova-volume.init 2011-08-11 11:27:36 +0000
+++ debian/nova-volume.init 2012-05-25 10:20:02 +0000
@@ -1,79 +1,111 @@
1#! /bin/sh1#!/bin/sh
2### BEGIN INIT INFO2### BEGIN INIT INFO
3# Provides: nova-volume3# Provides: nova-volume
4# Required-Start: $remote_fs $syslog4# Required-Start: $network $local_fs $remote_fs $syslog
5# Required-Stop: $remote_fs $syslog5# Required-Stop: $remote_fs
6# Default-Start: 2 3 4 56# Default-Start: 2 3 4 5
7# Default-Stop: 0 1 67# Default-Stop: 0 1 6
8# Short-Description: nova-volume8# Short-Description: Nova Volume
9# Description: provides EBS like storage for your virtual machine instances9# Description: Provides EBS like storage for your
10# virtual machine instances
10### END INIT INFO11### END INIT INFO
1112
12set -e13# Author: Julien Danjou <acid@debian.org>
1314
15# PATH should only include /usr/* if it runs after the mountnfs.sh script
16PATH=/sbin:/usr/sbin:/bin:/usr/bin
17DESC="OpenStack Compute Volume"
18NAME=nova-volume
14DAEMON=/usr/bin/nova-volume19DAEMON=/usr/bin/nova-volume
15DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"20DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
16PIDFILE=/var/run/nova/nova-volume.pid21PIDFILE=/var/run/$NAME.pid
1722SCRIPTNAME=/etc/init.d/$NAME
18ENABLED=true23NOVA_USER=nova
1924LOCK_DIR=/var/lock/nova/
20# Guess the VG by getting the first one we see in "vgdisplay -c -A"25
21# if nothing was set in the default file26# Exit if the package is not installed
22VGDISPLAY=/sbin/vgdisplay27[ -x $DAEMON ] || exit 0
23if [ -f /etc/default/nova-volume ] ; then28
24 . /etc/default/nova-volume29mkdir -p ${LOCK_DIR}
25fi30chown ${NOVA_USER} ${LOCK_DIR}
26if [ -x "${VGDISPLAY}" -a -z "${nova_volume_group}" ] ; then31
27 nova_volume_group=`vgdisplay -c -A | tail -n 1 | cut -d":" -f1 | awk '{print $1}'`32# Read configuration variable file if it is present
28fi33[ -r /etc/default/$NAME ] && . /etc/default/$NAME
29
30mkdir -p /var/run/nova
31chown nova:root /var/run/nova/
32
33mkdir -p /var/lock/nova
34chown nova:root /var/lock/nova/
35
36uid="$(getent passwd nova | cut -f3 -d:)"
37gid="$(getent passwd nova | cut -f4 -d:)"
38
39# Adds what has been configured in /etc/default/nova-volume
40if [ -n ${nova_volume_group} ] ; then
41 DAEMON_ARGS="${DAEMON_ARGS} --volume_group=${nova_volume_group}"
42fi
4334
44. /lib/lsb/init-functions35. /lib/lsb/init-functions
4536
46if ! [ -x ${DAEMON} ] ; then37do_start()
47 exit 038{
48fi39 # Guess the VG by getting the first one we see in "vgdisplay -c -A"
40 # if nothing was set in the default file
41 VGDISPLAY=/sbin/vgdisplay
42 if [ -z "${nova_volume_group}" -a -x "$VGDISPLAY" ]
43 then
44 nova_volume_group=`$VGDISPLAY -c -A | head -n 1 | cut -d":" -f1 | awk '{print $1}'`
45 fi
46
47 # Adds what has been configured in /etc/default/nova-volume
48 if [ -n ${nova_volume_group} ] ; then
49 DAEMON_ARGS="${DAEMON_ARGS} --volume_group=${nova_volume_group}"
50 fi
51
52 start-stop-daemon --start --quiet --background --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \
53 || return 1
54 start-stop-daemon --start --quiet --background --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \
55 $DAEMON_ARGS \
56 || return 2
57}
58
59do_stop()
60{
61 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
62 RETVAL="$?"
63 rm -f $PIDFILE
64 return "$RETVAL"
65}
4966
50case "$1" in67case "$1" in
51 start)68 start)
52 test "$ENABLED" = "true" || exit 069 log_daemon_msg "Starting $DESC " "$NAME"
53 log_daemon_msg "Starting nova volume" "nova-volume"70 do_start
54 start-stop-daemon --start --chdir /var/run --chuid ${uid}:${gid} -b -m --pidfile ${PIDFILE} --exec ${DAEMON} -- ${DAEMON_ARGS}71 case "$?" in
55 log_end_msg $?72 0|1) log_end_msg 0 ;;
56 ;;73 2) log_end_msg 1 ;;
74 esac
75 ;;
57 stop)76 stop)
58 test "$ENABLED" = "true" || exit 077 log_daemon_msg "Stopping $DESC" "$NAME"
59 log_daemon_msg "Stopping nova volume" "nova-volume"78 do_stop
60 start-stop-daemon --stop --oknodo --pidfile ${PIDFILE}79 case "$?" in
61 log_end_msg $?80 0|1) log_end_msg 0 ;;
62 ;;81 2) log_end_msg 1 ;;
82 esac
83 ;;
84 status)
85 status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
86 ;;
63 restart|force-reload)87 restart|force-reload)
64 test "$ENABLED" = "true" || exit 188 log_daemon_msg "Restarting $DESC" "$NAME"
65 $0 start89 do_stop
66 sleep 190 case "$?" in
67 $0 stop91 0|1)
68 ;;92 do_start
69 status)93 case "$?" in
70 test "$ENABLED" = "true" || exit 094 0) log_end_msg 0 ;;
71 status_of_proc -p $PIDFILE $DAEMON nova-volume && exit 0 || exit $?95 1) log_end_msg 1 ;; # Old process is still running
72 ;;96 *) log_end_msg 1 ;; # Failed to start
97 esac
98 ;;
99 *)
100 # Failed to stop
101 log_end_msg 1
102 ;;
103 esac
104 ;;
73 *)105 *)
74 log_action_msg "Usage: /etc/init.d/nova-volume {start|stop|restart|force-reload|status}"106 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
75 exit 1107 exit 3
76 ;;108 ;;
77esac109esac
78110
79exit 0111:
80112
=== added file 'debian/nova-volume.pyinstall'
--- debian/nova-volume.pyinstall 1970-01-01 00:00:00 +0000
+++ debian/nova-volume.pyinstall 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1nova/rootwrap/volume.py
02
=== modified file 'debian/nova-volume.upstart.in'
--- debian/nova-volume.upstart.in 2011-08-11 13:29:06 +0000
+++ debian/nova-volume.upstart.in 2012-05-25 10:20:02 +0000
@@ -10,6 +10,9 @@
10pre-start script10pre-start script
11 mkdir -p /var/run/nova11 mkdir -p /var/run/nova
12 chown nova:root /var/run/nova/12 chown nova:root /var/run/nova/
13
14 mkdir -p /var/lock/nova
15 chown nova:root /var/lock/nova/
13end script16end script
1417
15exec su -c "nova-volume --flagfile=/etc/nova/nova.conf" nova18exec su -s /bin/sh -c "exec nova-volume --flagfile=/etc/nova/nova.conf" nova
1619
=== added file 'debian/nova-xcp-network.init'
--- debian/nova-xcp-network.init 1970-01-01 00:00:00 +0000
+++ debian/nova-xcp-network.init 2012-05-25 10:20:02 +0000
@@ -0,0 +1,167 @@
1#!/bin/sh
2
3### BEGIN INIT INFO
4# Provides: nova-xcp-network
5# Required-Start: $remote_fs $syslog
6# Required-Stop: $remote_fs $syslog
7# Default-Start: 2 3 4 5
8# Default-Stop: 0 1 6
9# Short-Description: Apply initial OVS flows for Nova and network rules.
10# Description: Apply initial OVS flows for Nova, and setup networking
11# host rules for multi tenancy protections.
12### END INIT INFO
13
14# Written by Thomas Goirand <zigo@debian.org> using
15# plugins/xenserver/networking/etc/init.d/{openvswitch-nova,host-up}
16# as examples.
17#
18# Licensed under the Apache License, Version 2.0 (the "License"); you may
19# not use this file except in compliance with the License. You may obtain
20# a copy of the License at
21#
22# http://www.apache.org/licenses/LICENSE-2.0
23#
24# Unless required by applicable law or agreed to in writing, software
25# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
26# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
27# License for the specific language governing permissions and limitations
28# under the License.
29
30. /lib/init/vars.sh
31. /lib/lsb/init-functions
32
33DESC="XCP openvswitch networking rules"
34NAME="xcp-network"
35
36OVS_CONFIGURE_BASE_FLOWS=/usr/lib/xcp/plugins/ovs_configure_base_flows.py
37IPTABLES=/sbin/iptables
38EBTABLES=/sbin/ebtables
39ARPTABLES=/sbin/arptables
40
41# Quick check if everything is there...
42if ! [ -x ${OVS_CONFIGURE_BASE_FLOWS} ] ; then
43 exit 0
44fi
45if ! [ -x ${IPTABLES} -a -x ${EBTABLES} -a -x ${ARPTABLES} ] ; then
46 exit 0
47fi
48if ! [ -x /usr/bin/ovs-ofctl -a -x /usr/bin/ovs-vsctl -a -x /sbin/ip ] ; then
49 exit 0
50fi
51
52# Load the VERBOSE setting and other rcS variables
53[ -r /lib/init/vars.sh ] && . /lib/init/vars.sh
54
55# Get $INTERFACES from /etc/default/openvswitch-nova,
56# default to all what is available.
57if [ -r /etc/default/openvswitch-nova ] ; then
58 . /etc/default/openvswitch-nova
59fi
60if [ -z "${INTERFACES}" ] ; then
61 INTERFACES=$(cd /sys/class/net/; /bin/ls -d eth*)
62fi
63
64# Get $NETWORK_MODE from /etc/xcp/network.conf,
65# default to openvswitch
66if [ -e /etc/xcp/network.conf ] ; then
67 NETWORK_MODE=`cat /etc/xcp/network.conf`
68fi
69
70if [ -z "${NETWORK_MODE}" ] ; then
71 NETWORK_MODE=openvswitch
72fi
73
74# Check validity of $NETWORK_MODE
75case "${NETWORK_MODE}" in
76vswitch|openvswitch)
77 ;;
78bridge)
79 exit 0
80 ;;
81*)
82 echo "Open vSwitch disabled (/etc/xcp/network.conf is invalid)" >&2
83 exit 0
84 ;;
85esac
86
87run_ovs_conf_base_flows () {
88 my_action="${1}"
89 my_all_interfaces=$(cd /sys/class/net/; /bin/ls -d eth*)
90 for i in ${INTERFACES} ; do
91 /usr/bin/python $OVS_CONFIGURE_BASE_FLOWS $my_action $i
92 done
93}
94
95# Functions to configure the firewall to work with openvswitch, XCP and nova
96iptables_up () {
97 ${IPTABLES} -P FORWARD DROP
98 for i in ${INTERFACES} ; do
99 ${IPTABLES} -A FORWARD -m physdev --physdev-in ${i} -j ACCEPT
100 done
101}
102ebtables_up () {
103 ${EBTABLES} -P FORWARD DROP
104 for i in ${INTERFACES} ; do
105 ${EBTABLES} -A FORWARD -o ${i} -j ACCEPT
106 done
107}
108arptables_up () {
109 ${ARPTABLES} -P FORWARD DROP
110 for i in ${INTERFACES} ; do
111 ${ARPTABLES} -A FORWARD --opcode Request --in-interface ${i} -j ACCEPT
112 ${ARPTABLES} -A FORWARD --opcode Reply --in-interface ${i} -j ACCEPT
113 done
114}
115iptables_down () {
116 ${IPTABLES} -P FORWARD ACCEPT
117 for i in ${INTERFACES} ; do
118 ${IPTABLES} -D FORWARD -m physdev --physdev-in ${i} -j ACCEPT
119 done
120}
121ebtables_down () {
122 ${EBTABLES} -P FORWARD ACCEPT
123 for i in ${INTERFACES} ; do
124 ${EBTABLES} -D FORWARD -o ${i} -j ACCEPT
125 done
126}
127arptables_down () {
128 ${ARPTABLES} -P FORWARD ACCEPT
129 for i in ${INTERFACES} ; do
130 ${ARPTABLES} -D FORWARD --opcode Request --in-interface ${i} -j ACCEPT
131 ${ARPTABLES} -D FORWARD --opcode Reply --in-interface ${i} -j ACCEPT
132 done
133}
134
135case "${1}" in
136start)
137 [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
138 iptables_up
139 ebtables_up
140 arptables_up
141 run_ovs_conf_base_flows online
142 [ "$VERBOSE" != no ] && log_end_msg 0
143 ;;
144stop)
145 [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
146 run_ovs_conf_base_flows offline
147 iptables_down
148 ebtables_down
149 arptables_down
150 [ "$VERBOSE" != no ] && log_end_msg 0
151 ;;
152reload|force-reload)
153 [ "$VERBOSE" != no ] && log_daemon_msg "Restarting $DESC" "$NAME"
154 run_ovs_conf_base_flows reset
155 [ "$VERBOSE" != no ] && log_end_msg 0
156 ;;
157restart)
158 $0 start
159 sleep 1
160 $0 stop
161 ;;
162*)
163 echo "Usage: $0 {start|stop|status|restart|reload|force-reload}" >&2
164 ;;
165esac
166
167exit 0
0168
=== added file 'debian/nova-xcp-network.install'
--- debian/nova-xcp-network.install 1970-01-01 00:00:00 +0000
+++ debian/nova-xcp-network.install 2012-05-25 10:20:02 +0000
@@ -0,0 +1,6 @@
1plugins/xenserver/networking/etc/sysconfig/openvswitch-nova /etc/default
2debian/xen-openvswitch-nova.rules /lib/udev/rules.d
3plugins/xenserver/networking/etc/xensource/scripts/novalib.py /usr/lib/xcp/plugins
4plugins/xenserver/networking/etc/xensource/scripts/ovs_configure_base_flows.py /usr/lib/xcp/plugins
5plugins/xenserver/networking/etc/xensource/scripts/ovs_configure_vif_flows.py /usr/lib/xcp/plugins
6plugins/xenserver/networking/etc/xensource/scripts/vif_rules.py /usr/lib/xcp/plugins
07
=== added file 'debian/nova-xcp-plugins.docs'
--- debian/nova-xcp-plugins.docs 1970-01-01 00:00:00 +0000
+++ debian/nova-xcp-plugins.docs 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1debian/README.xcp_and_openstack
02
=== added file 'debian/nova-xcp-plugins.install'
--- debian/nova-xcp-plugins.install 1970-01-01 00:00:00 +0000
+++ debian/nova-xcp-plugins.install 2012-05-25 10:20:02 +0000
@@ -0,0 +1,6 @@
1plugins/xenserver/xenapi/etc/xapi.d/plugins/agent /usr/lib/xcp/plugins
2plugins/xenserver/xenapi/etc/xapi.d/plugins/glance /usr/lib/xcp/plugins
3plugins/xenserver/xenapi/etc/xapi.d/plugins/migration /usr/lib/xcp/plugins
4plugins/xenserver/xenapi/etc/xapi.d/plugins/pluginlib_nova.py /usr/lib/xcp/plugins
5plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost /usr/lib/xcp/plugins
6plugins/xenserver/xenapi/etc/xapi.d/plugins/xenstore.py /usr/lib/xcp/plugins
07
=== added file 'debian/nova-xcp-plugins.postinst'
--- debian/nova-xcp-plugins.postinst 1970-01-01 00:00:00 +0000
+++ debian/nova-xcp-plugins.postinst 2012-05-25 10:20:02 +0000
@@ -0,0 +1,13 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "configure" ] ; then
6 if ! [ -e /etc/xcp/xenhost.conf ] ; then
7 echo "{}" >/etc/xcp/xenhost.conf
8 fi
9fi
10
11#DEBHELPER#
12
13exit 0
014
=== added file 'debian/nova-xcp-plugins.postrm'
--- debian/nova-xcp-plugins.postrm 1970-01-01 00:00:00 +0000
+++ debian/nova-xcp-plugins.postrm 2012-05-25 10:20:02 +0000
@@ -0,0 +1,11 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "purge" ] ; then
6 rm -f /etc/xcp/xenhost.conf
7fi
8
9#DEBHELPER#
10
11exit 0
012
=== added file 'debian/nova-xvpvncproxy.init'
--- debian/nova-xvpvncproxy.init 1970-01-01 00:00:00 +0000
+++ debian/nova-xvpvncproxy.init 2012-05-25 10:20:02 +0000
@@ -0,0 +1,97 @@
1#!/bin/sh
2### BEGIN INIT INFO
3# Provides: nova-xvpvncproxy
4# Required-Start: $network $local_fs $remote_fs $syslog
5# Required-Stop: $remote_fs
6# Default-Start: 2 3 4 5
7# Default-Stop: 0 1 6
8# Short-Description: Nova XVP VNC proxy
9# Description: Nova XVP VNC proxy
10### END INIT INFO
11
12# Author: Julien Danjou <acid@debian.org>
13
14# PATH should only include /usr/* if it runs after the mountnfs.sh script
15PATH=/sbin:/usr/sbin:/bin:/usr/bin
16DESC="OpenStack XVP VNC proxy"
17NAME=nova-xvpvncproxy
18DAEMON=/usr/bin/nova-xvpvncproxy
19DAEMON_ARGS="--flagfile=/etc/nova/nova.conf"
20PIDFILE=/var/run/$NAME.pid
21SCRIPTNAME=/etc/init.d/$NAME
22NOVA_USER=nova
23LOCK_DIR=/var/lock/nova/
24
25# Exit if the package is not installed
26[ -x $DAEMON ] || exit 0
27
28mkdir -p ${LOCK_DIR}
29chown ${NOVA_USER} ${LOCK_DIR}
30
31# Read configuration variable file if it is present
32[ -r /etc/default/$NAME ] && . /etc/default/$NAME
33
34. /lib/lsb/init-functions
35
36do_start()
37{
38 start-stop-daemon --start --background --quiet --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \
39 || return 1
40 start-stop-daemon --start --background --quiet --chuid ${NOVA_USER}:nova --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \
41 $DAEMON_ARGS \
42 || return 2
43}
44
45do_stop()
46{
47 start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
48 RETVAL="$?"
49 rm -f $PIDFILE
50 return "$RETVAL"
51}
52
53case "$1" in
54 start)
55 log_daemon_msg "Starting $DESC " "$NAME"
56 do_start
57 case "$?" in
58 0|1) log_end_msg 0 ;;
59 2) log_end_msg 1 ;;
60 esac
61 ;;
62 stop)
63 log_daemon_msg "Stopping $DESC" "$NAME"
64 do_stop
65 case "$?" in
66 0|1) log_end_msg 0 ;;
67 2) log_end_msg 1 ;;
68 esac
69 ;;
70 status)
71 status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
72 ;;
73 restart|force-reload)
74 log_daemon_msg "Restarting $DESC" "$NAME"
75 do_stop
76 case "$?" in
77 0|1)
78 do_start
79 case "$?" in
80 0) log_end_msg 0 ;;
81 1) log_end_msg 1 ;; # Old process is still running
82 *) log_end_msg 1 ;; # Failed to start
83 esac
84 ;;
85 *)
86 # Failed to stop
87 log_end_msg 1
88 ;;
89 esac
90 ;;
91 *)
92 echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
93 exit 3
94 ;;
95esac
96
97:
098
=== added file 'debian/nova-xvpvncproxy.install'
--- debian/nova-xvpvncproxy.install 1970-01-01 00:00:00 +0000
+++ debian/nova-xvpvncproxy.install 2012-05-25 10:20:02 +0000
@@ -0,0 +1,1 @@
1usr/bin/nova-xvpvncproxy
02
=== added file 'debian/nova-xvpvncproxy.logrotate'
--- debian/nova-xvpvncproxy.logrotate 1970-01-01 00:00:00 +0000
+++ debian/nova-xvpvncproxy.logrotate 2012-05-25 10:20:02 +0000
@@ -0,0 +1,4 @@
1/var/log/nova/nova-vncproxy.log {
2 daily
3 missingok
4}
0\ No newline at end of file5\ No newline at end of file
16
=== modified file 'debian/nova.conf'
--- debian/nova.conf 2011-09-27 01:29:58 +0000
+++ debian/nova.conf 2012-05-25 10:20:02 +0000
@@ -3,7 +3,10 @@
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--force_dhcp_release=True6--force_dhcp_release
7--use_deprecated_auth
8--iscsi_helper=tgtadm7--iscsi_helper=tgtadm
8--libvirt_use_virtio_for_bridges
9--connection_type=libvirt
10--root_helper=sudo nova-rootwrap
9--verbose11--verbose
12--ec2_private_dns_show_ip
1013
=== modified file 'debian/nova_sudoers'
--- debian/nova_sudoers 2011-09-28 17:01:05 +0000
+++ debian/nova_sudoers 2012-05-25 10:20:02 +0000
@@ -1,48 +1,3 @@
1Cmnd_Alias NOVACMDS = /bin/chmod /var/lib/nova/tmp/*/root/.ssh, \1Defaults:nova !requiretty
2 /bin/chown /var/lib/nova/tmp/*/root/.ssh, \2
3 /bin/chown, \3nova ALL = (root) NOPASSWD: /usr/bin/nova-rootwrap
4 /bin/chmod, \
5 /bin/dd, \
6 /sbin/ifconfig, \
7 /sbin/ip, \
8 /sbin/route, \
9 /sbin/iptables, \
10 /sbin/iptables-save, \
11 /sbin/iptables-restore, \
12 /sbin/ip6tables-save, \
13 /sbin/ip6tables-restore, \
14 /sbin/kpartx, \
15 /sbin/losetup, \
16 /sbin/lvcreate, \
17 /sbin/lvdisplay, \
18 /sbin/lvremove, \
19 /bin/mkdir, \
20 /bin/mount, \
21 /sbin/pvcreate, \
22 /usr/bin/tee, \
23 /sbin/tune2fs, \
24 /bin/umount, \
25 /sbin/vgcreate, \
26 /usr/bin/virsh, \
27 /usr/bin/qemu-nbd, \
28 /usr/sbin/brctl, \
29 /sbin/brctl, \
30 /usr/sbin/radvd, \
31 /sbin/pvcreate, \
32 /sbin/aoe-discover, \
33 /sbin/vgcreate, \
34 /bin/aoe-stat, \
35 /bin/kill, \
36 /sbin/vconfig, \
37 /usr/sbin/tgtadm, \
38 /usr/sbin/ietadm, \
39 /sbin/vgs, \
40 /sbin/iscsiadm, \
41 /sbin/parted, \
42 /usr/sbin/dnsmasq, \
43 /usr/bin/arping, \
44 /bin/netcat, \
45 /usr/bin/dhcp_release
46
47nova ALL = (root) NOPASSWD: SETENV: NOVACMDS
48
494
=== added file 'debian/patches/0001-fix-useexisting-deprecation-warnings.patch'
--- debian/patches/0001-fix-useexisting-deprecation-warnings.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/0001-fix-useexisting-deprecation-warnings.patch 2012-05-25 10:20:02 +0000
@@ -0,0 +1,52 @@
1From 0d68f87ed726644f9387c47c862b7ee8cbcc77ad Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?P=C3=A1draig=20Brady?= <pbrady@redhat.com>
3Date: Thu, 8 Mar 2012 16:32:30 +0000
4Subject: [PATCH] fix useexisting deprecation warnings
5
6Fixes deprecation warnings when using sqlalchemy >= 0.7.0
7Fixes bug 941951
8
9Change-Id: Iaa57153f99c60c67a14c1dca849188937bdc5dee
10---
11 .../075_convert_bw_usage_to_store_network_id.py | 4 ++--
12 .../versions/081_drop_instance_id_bw_cache.py | 2 +-
13 2 files changed, 3 insertions(+), 3 deletions(-)
14
15diff --git a/nova/db/sqlalchemy/migrate_repo/versions/075_convert_bw_usage_to_store_network_id.py b/nova/db/sqlalchemy/migrate_repo/versions/075_convert_bw_usage_to_store_network_id.py
16index b275524..4ff3d99 100644
17--- a/nova/db/sqlalchemy/migrate_repo/versions/075_convert_bw_usage_to_store_network_id.py
18+++ b/nova/db/sqlalchemy/migrate_repo/versions/075_convert_bw_usage_to_store_network_id.py
19@@ -46,7 +46,7 @@ def upgrade(migrate_engine):
20 Column('last_refreshed', DateTime(timezone=False)),
21 Column('bw_in', BigInteger()),
22 Column('bw_out', BigInteger()),
23- useexisting=True)
24+ extend_existing=True)
25 mac_column = Column('mac', String(255))
26 bw_usage_cache.create_column(mac_column)
27
28@@ -81,7 +81,7 @@ def downgrade(migrate_engine):
29 Column('last_refreshed', DateTime(timezone=False)),
30 Column('bw_in', BigInteger()),
31 Column('bw_out', BigInteger()),
32- useexisting=True)
33+ extend_existing=True)
34
35 network_label_column = Column('network_label', String(255))
36 bw_usage_cache.create_column(network_label_column)
37diff --git a/nova/db/sqlalchemy/migrate_repo/versions/081_drop_instance_id_bw_cache.py b/nova/db/sqlalchemy/migrate_repo/versions/081_drop_instance_id_bw_cache.py
38index c6687ac..a607ed3 100644
39--- a/nova/db/sqlalchemy/migrate_repo/versions/081_drop_instance_id_bw_cache.py
40+++ b/nova/db/sqlalchemy/migrate_repo/versions/081_drop_instance_id_bw_cache.py
41@@ -37,7 +37,7 @@ def upgrade(migrate_engine):
42 Column('last_refreshed', DateTime(timezone=False)),
43 Column('bw_in', BigInteger()),
44 Column('bw_out', BigInteger()),
45- useexisting=True)
46+ extend_existing=True)
47
48 bw_usage_cache.drop_column('instance_id')
49
50--
511.7.9.1
52
053
=== renamed file 'debian/patches/backport-libvirt-console-pipe.patch' => 'debian/patches/backport-libvirt-console-pipe.patch.THIS'
=== removed file 'debian/patches/backport-lxc-container-console-fix.patch'
--- debian/patches/backport-lxc-container-console-fix.patch 2011-09-30 15:03:48 +0000
+++ debian/patches/backport-lxc-container-console-fix.patch 1970-01-01 00:00:00 +0000
@@ -1,43 +0,0 @@
1Description: Make LXC container console usuable.
2Author: Chuck Short <zulcss@ubuntu.com>
3Status: https://review.openstack.org/#change,728
4diff -Naurp nova-2011.3.orig//nova/virt/libvirt/connection.py nova-2011.3//nova/virt/libvirt/connection.py
5--- nova-2011.3.orig//nova/virt/libvirt/connection.py 2011-09-30 11:01:01.000000000 -0400
6+++ nova-2011.3//nova/virt/libvirt/connection.py 2011-09-30 11:01:21.939404556 -0400
7@@ -696,6 +696,26 @@ class LibvirtConnection(driver.ComputeDr
8 timer = utils.LoopingCall(_wait_for_boot)
9 return timer.start(interval=0.5, now=True)
10
11+ def _get_lxc_console(self, instance):
12+ """Get the LXC console for a running libvirt domain."""
13+ virt_dom = self._lookup_by_name(instance)
14+ xml = virt_dom.XMLDesc(0)
15+ dom = minidom.parseString(xml)
16+
17+ for console in dom.getElementsByTagName('console'):
18+ if console.getAttribute('type') == 'pty':
19+ source = console.getElementsByTagName('source')[0]
20+ pty_device = source.getAttribute('path')
21+
22+
23+ out,err = utils.execute('dd',
24+ 'if=%s' % pty_device,
25+ 'iflag=nonblock',
26+ run_as_root=True,
27+ check_exit_code=False)
28+
29+ return out
30+
31 def _flush_xen_console(self, virsh_output):
32 LOG.info(_('virsh said: %r'), virsh_output)
33 virsh_output = virsh_output[0].strip()
34@@ -738,7 +758,8 @@ class LibvirtConnection(driver.ComputeDr
35 self._append_to_file(data, console_fifo)
36 elif FLAGS.libvirt_type == 'lxc':
37 # LXC is also special
38- LOG.info(_("Unable to read LXC console"))
39+ data = self._get_lxc_console(instance['name'])
40+ self._append_to_file(data, console_fifo)
41
42 return self.console_loggers[instance['name']].peek()
43
440
=== added file 'debian/patches/fix-docs-build-without-network.patch'
--- debian/patches/fix-docs-build-without-network.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/fix-docs-build-without-network.patch 2012-05-25 10:20:02 +0000
@@ -0,0 +1,15 @@
1Description: Build docs without network access.
2Author: Chuck Short <zulcss@ubuntu.com>
3Forwarded: no
4diff -Naurp nova-2012.1.orig/doc/source/conf.py nova-2012.1/doc/source/conf.py
5--- nova-2012.1.orig/doc/source/conf.py 2012-03-20 07:05:42.000000000 -0400
6+++ nova-2012.1/doc/source/conf.py 2012-04-01 09:06:18.847194995 -0400
7@@ -25,7 +25,7 @@ sys.path.insert(0, os.path.abspath('./')
8 # Add any Sphinx extension module names here, as strings. They can be extensions
9 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
10
11-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'ext.nova_todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig','sphinx.ext.graphviz']
12+extensions = ['sphinx.ext.autodoc', 'ext.nova_todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig','sphinx.ext.graphviz']
13
14 # autodoc generation is a bit aggressive and a nuisance when doing heavy text edit cycles.
15 # execute "export SPHINX_DEBUG=1" in your terminal to disable
016
=== added file 'debian/patches/fix-ubuntu-tests.patch'
--- debian/patches/fix-ubuntu-tests.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/fix-ubuntu-tests.patch 2012-05-25 10:20:02 +0000
@@ -0,0 +1,15 @@
1Description: Fix tests in ubuntu.
2Author: Chuck Short <zulcss@ubuntu.com>
3Forwarded: no
4diff -Naurp nova-2012.1.orig/nova/tests/test_api.py nova-2012.1/nova/tests/test_api.py
5--- nova-2012.1.orig/nova/tests/test_api.py 2012-03-20 07:05:43.000000000 -0400
6+++ nova-2012.1/nova/tests/test_api.py 2012-03-28 10:23:20.074907910 -0400
7@@ -405,7 +405,7 @@ class ApiEc2TestCase(test.TestCase):
8 raise self.failureException, 'EC2ResponseError not raised'
9
10 # Invalid CIDR address
11- _assert('Invalid CIDR', 'tcp', 80, 81, '0.0.0.0/0444')
12+ #_assert('Invalid CIDR', 'tcp', 80, 81, '0.0.0.0/0444')
13 # Missing ports
14 _assert('Not enough parameters', 'tcp', '0.0.0.0/0')
15 # from port cannot be greater than to port
016
=== added file 'debian/patches/kombu_tests_timeout.patch'
--- debian/patches/kombu_tests_timeout.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/kombu_tests_timeout.patch 2012-05-25 10:20:02 +0000
@@ -0,0 +1,11 @@
1diff -Naurp nova-2012.1.orig/nova/tests/rpc/test_kombu.py nova-2012.1/nova/tests/rpc/test_kombu.py
2--- nova-2012.1.orig/nova/tests/rpc/test_kombu.py 2012-01-20 02:30:56.000000000 -0500
3+++ nova-2012.1/nova/tests/rpc/test_kombu.py 2012-01-20 12:40:25.373592963 -0500
4@@ -201,6 +201,7 @@ class RpcKombuTestCase(common._BaseRpcTe
5
6 self.assertEqual(info['called'], 2)
7
8+ @test.skip_test("This tests does not timeout on Ubuntu")
9 def test_iterconsume_errors_will_reconnect(self):
10 conn = self.rpc.Connection()
11 message = 'reconnect test message'
012
=== added file 'debian/patches/nova-console-monitor.patch'
--- debian/patches/nova-console-monitor.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/nova-console-monitor.patch 2012-05-25 10:20:02 +0000
@@ -0,0 +1,138 @@
1From 742e5512dbee26080f14490292d50278d59f10ac Mon Sep 17 00:00:00 2001
2From: Chuck Short <chuck.short@canonical.com>
3Date: Thu, 29 Mar 2012 13:10:22 -0400
4Subject: [PATCH] Monitor console.log for indefinite growth
5
6Using the libvirt serial console, everything
7that is dumped into a console.log file, this file can
8keep on growing depending on what the user is doing in the console.
9
10This patch adds add a new flag called "use_console_monitor",
11the console monitor will check the instance's console.log size.
12If it goes past a certain amount it will warn in the nova-compute.log
13file that it is growing and when was the file last modified.
14
15This bug does not entirely fix bug 832507, but it is a stop
16gap measure until we can resolve it properly in libvirt
17or qemu-kvm.
18
19Change-Id: I00ebc716dccbe9fb97e2b8a3cb5d5e496bc7719b
20Signed-off-by: Chuck Short <chuck.short@canonical.com>
21---
22 nova/compute/manager.py | 24 +++++++++++++++++++++++-
23 nova/tests/test_compute.py | 9 +++++++++
24 nova/virt/driver.py | 11 +++++++++++
25 nova/virt/libvirt/connection.py | 13 +++++++++++++
26 4 files changed, 56 insertions(+), 1 deletions(-)
27
28diff --git a/nova/compute/manager.py b/nova/compute/manager.py
29index 48e135b..c5a4bb3 100644
30--- a/nova/compute/manager.py
31+++ b/nova/compute/manager.py
32@@ -118,7 +118,13 @@ compute_opts = [
33 cfg.IntOpt("heal_instance_info_cache_interval",
34 default=60,
35 help="Number of seconds between instance info_cache self "
36- "healing updates")
37+ "healing updates"),
38+ cfg.BoolOpt("use_console_monitor",
39+ default=False,
40+ help="Use scheduler to monitor the console.log."),
41+ cfg.IntOpt("console_threshold_size",
42+ default=104857600,
43+ help="Max console.log size.")
44 ]
45
46 FLAGS = flags.FLAGS
47@@ -2393,6 +2399,22 @@ class ComputeManager(manager.SchedulerDependentManager):
48 self._delete_instance(context, instance)
49
50 @manager.periodic_task
51+ def run_console_monitor(self, context):
52+ """Monitor the console.log size for a given instance."""
53+ if not FLAGS.use_console_monitor:
54+ return
55+
56+ try:
57+ LOG.info(_('Running console monitor'))
58+ instances = self.db.instance_get_all_by_host(context, self.host)
59+ for instance in instances:
60+ drv_state = self._get_power_state(context, instance)
61+ if drv_state == power_state.RUNNING:
62+ self.driver.monitor_console_log(instance)
63+ except NotImplementedError:
64+ pass
65+
66+ @manager.periodic_task
67 def update_available_resource(self, context):
68 """See driver.update_available_resource()
69
70diff --git a/nova/tests/test_compute.py b/nova/tests/test_compute.py
71index 305282c..53dd08f 100644
72--- a/nova/tests/test_compute.py
73+++ b/nova/tests/test_compute.py
74@@ -744,6 +744,15 @@ class ComputeTestCase(BaseTestCase):
75 self.assertEqual(output, 'ANOTHER\nLAST LINE')
76 self.compute.terminate_instance(self.context, instance['uuid'])
77
78+ def test_console_monitor(self):
79+ """Make sure we can montior console from instance"""
80+ self.flags(use_console_monitor=True)
81+ context = self.context.elevated()
82+ instance = self._create_fake_instance()
83+ self.compute.run_instance(context, instance['uuid'])
84+ self.compute.run_console_monitor(context)
85+ self.compute.terminate_instance(self.context, instance['uuid'])
86+
87 def test_novnc_vnc_console(self):
88 """Make sure we can a vnc console for an instance."""
89 instance = self._create_fake_instance()
90diff --git a/nova/virt/driver.py b/nova/virt/driver.py
91index 9658273..e0a0ca1 100644
92--- a/nova/virt/driver.py
93+++ b/nova/virt/driver.py
94@@ -663,6 +663,17 @@ class ComputeDriver(object):
95 related to other calls into the driver. The prime example is to clean
96 the cache and remove images which are no longer of interest.
97 """
98+ pass
99+
100+ def monitor_console_log(self, instance):
101+ """
102+ Manage the drivers console.log
103+
104+ Some drives just dump the serial console to a file. This method
105+ monitors the console.log, so the console.log file can remain
106+ managable.
107+ """
108+ pass
109
110 def add_to_aggregate(self, context, aggregate, host, **kwargs):
111 """Add a compute host to an aggregate."""
112diff --git a/nova/virt/libvirt/connection.py b/nova/virt/libvirt/connection.py
113index 3c4bbb0..10e4cf1 100644
114--- a/nova/virt/libvirt/connection.py
115+++ b/nova/virt/libvirt/connection.py
116@@ -2434,6 +2434,19 @@ class LibvirtConnection(driver.ComputeDriver):
117 """Manage the local cache of images."""
118 self.image_cache_manager.verify_base_images(context)
119
120+ def monitor_console_log(self, instance):
121+ console_log_file = os.path.join(FLAGS.instances_path,
122+ instance['name'],
123+ 'console.log')
124+ if os.path.exists(console_log_file):
125+ stat = os.stat(console_log_file)
126+ if stat.st_size >= FLAGS.console_threshold_size:
127+ size = stat.st_size
128+ file_acess_time = stat.st_mtime
129+ LOG.warn(_('console.log size: %(size)s bytes, '
130+ 'last accessed: %(file_acess_time)s.')
131+ % locals(), instance=instance)
132+
133 @exception.wrap_exception()
134 def migrate_disk_and_power_off(self, context, instance, dest,
135 instance_type, network_info):
136--
1371.7.9.1
138
0139
=== modified file 'debian/patches/nova-manage_flagfile_location.patch'
--- debian/patches/nova-manage_flagfile_location.patch 2011-05-06 15:33:23 +0000
+++ debian/patches/nova-manage_flagfile_location.patch 2012-05-25 10:20:02 +0000
@@ -1,14 +1,13 @@
1=== modified file 'bin/nova-manage'1Index: nova-2012.1~e4~20120207.12506/bin/nova-manage
2Index: nova-2011.3~bzr1054/bin/nova-manage
3===================================================================2===================================================================
4--- nova-2011.3~bzr1054.orig/bin/nova-manage3--- nova-2012.1~e4~20120207.12506.orig/bin/nova-manage
5+++ nova-2011.3~bzr1054/bin/nova-manage4+++ nova-2012.1~e4~20120207.12506/bin/nova-manage
6@@ -1098,7 +1098,7 @@5@@ -2307,7 +2307,7 @@
7 6
8 def main():7 def main():
9 """Parse options and call the appropriate class/method."""8 """Parse options and call the appropriate class/method."""
10- utils.default_flagfile()9- flagfile = utils.default_flagfile()
11+ utils.default_flagfile('/etc/nova/nova.conf')10+ flagfile = utils.default_flagfile('/etc/nova/nova.conf')
12 argv = FLAGS(sys.argv)
13 logging.setup()
14 11
12 if flagfile and not os.access(flagfile, os.R_OK):
13 st = os.stat(flagfile)
1514
=== removed file 'debian/patches/packaged-ajaxterm-calls.patch'
--- debian/patches/packaged-ajaxterm-calls.patch 2011-08-10 13:36:43 +0000
+++ debian/patches/packaged-ajaxterm-calls.patch 1970-01-01 00:00:00 +0000
@@ -1,19 +0,0 @@
1Description: Fixes command line for ajaxterm
2Forwarded: not-needed
3Author: Soren Hansen <soren@ubuntu.com>
4Last-Update: 2011-04-15
5Index: nova-2011.3~bzr1113/nova/virt/libvirt/connection.py
6===================================================================
7--- nova-2011.3~bzr1113.orig/nova/virt/libvirt/connection.py
8+++ nova-2011.3~bzr1113/nova/virt/libvirt/connection.py
9@@ -681,8 +681,8 @@
10 ajaxterm_cmd = 'sudo socat - %s' \
11 % get_pty_for_instance(instance['name'])
12
13- cmd = ['%s/tools/ajaxterm/ajaxterm.py' % utils.novadir(),
14- '--command', ajaxterm_cmd, '-t', token, '-p', port]
15+ cmd = ['ajaxterm', '--command', ajaxterm_cmd, '-t', token,
16+ '-p', port, '-T', '300']
17
18 utils.execute(cmd)
19 return {'token': token, 'host': host, 'port': port}
200
=== added file 'debian/patches/path-to-the-xenhost.conf-fixup.patch'
--- debian/patches/path-to-the-xenhost.conf-fixup.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/path-to-the-xenhost.conf-fixup.patch 2012-05-25 10:20:02 +0000
@@ -0,0 +1,12 @@
1diff -Naurp nova-2012.1.orig/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost nova-2012.1/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost
2--- nova-2012.1.orig/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost 2012-03-01 12:45:52.000000000 -0500
3+++ nova-2012.1/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost 2012-03-02 11:02:03.078762386 -0500
4@@ -41,7 +41,7 @@ import pluginlib_nova as pluginlib
5 pluginlib.configure_logging("xenhost")
6
7 host_data_pattern = re.compile(r"\s*(\S+) \([^\)]+\) *: ?(.*)")
8-config_file_path = "/usr/etc/xenhost.conf"
9+config_file_path = "/etc/xcp/xenhost.conf"
10 DEFAULT_TRIES = 23
11 DEFAULT_SLEEP = 10
12
013
=== modified file 'debian/patches/series'
--- debian/patches/series 2012-02-07 16:57:58 +0000
+++ debian/patches/series 2012-05-25 10:20:02 +0000
@@ -1,5 +1,15 @@
1nova-manage_flagfile_location.patch1nova-manage_flagfile_location.patch
2<<<<<<< TREE
2packaged-ajaxterm-calls.patch3packaged-ajaxterm-calls.patch
3# Ubuntu changes below this line4# Ubuntu changes below this line
4backport-libvirt-console-pipe.patch5backport-libvirt-console-pipe.patch
5backport-lxc-container-console-fix.patch6backport-lxc-container-console-fix.patch
7=======
8# Ubuntu specific patches below here. Note these can be dropped eventually.
9kombu_tests_timeout.patch
10#nova-console-monitor.patch
11path-to-the-xenhost.conf-fixup.patch
12fix-ubuntu-tests.patch
13fix-docs-build-without-network.patch
140001-fix-useexisting-deprecation-warnings.patch
15>>>>>>> MERGE-SOURCE
616
=== added directory 'debian/patches/upstream'
=== added file 'debian/patches/upstream/0001-fix-bug-where-nova-ignores-glance-host-in-imageref.patch'
--- debian/patches/upstream/0001-fix-bug-where-nova-ignores-glance-host-in-imageref.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/upstream/0001-fix-bug-where-nova-ignores-glance-host-in-imageref.patch 2012-05-25 10:20:02 +0000
@@ -0,0 +1,51 @@
1From 155c7b2a8f05e75a9b08764bb4f9404c26036f99 Mon Sep 17 00:00:00 2001
2From: Mike Lundy <mike@pistoncloud.com>
3Date: Wed, 4 Apr 2012 11:38:54 -0700
4Subject: [PATCH 1/5] fix bug where nova ignores glance host in imageref
5
6This is related to bug 883328.
7
8Change-Id: Iadd1aec8d1bda3bd75bd0ab7f6797b643626db90
9---
10 nova/image/glance.py | 8 ++++----
11 nova/tests/image/test_glance.py | 3 ++-
12 2 files changed, 6 insertions(+), 5 deletions(-)
13
14diff --git a/nova/image/glance.py b/nova/image/glance.py
15index a5f9e68..97a60cb 100644
16--- a/nova/image/glance.py
17+++ b/nova/image/glance.py
18@@ -111,13 +111,13 @@ def get_glance_client(context, image_href):
19
20 else:
21 try:
22- (image_id, host, port) = _parse_image_ref(image_href)
23+ (image_id, glance_host, glance_port) = _parse_image_ref(image_href)
24+ glance_client = _create_glance_client(context,
25+ glance_host,
26+ glance_port)
27 except ValueError:
28 raise exception.InvalidImageRef(image_href=image_href)
29
30- glance_client = _create_glance_client(context,
31- glance_host,
32- glance_port)
33 return (glance_client, image_id)
34
35
36diff --git a/nova/tests/image/test_glance.py b/nova/tests/image/test_glance.py
37index bc5969a..8fa136a 100644
38--- a/nova/tests/image/test_glance.py
39+++ b/nova/tests/image/test_glance.py
40@@ -578,6 +578,7 @@ class TestGlanceImageService(test.TestCase):
41 def test_glance_client_image_ref(self):
42 fixture = self._make_fixture(name='test image')
43 image_id = self.service.create(self.context, fixture)['id']
44- image_url = 'http://foo/%s' % image_id
45+ image_url = 'http://something-less-likely/%s' % image_id
46 client, same_id = glance.get_glance_client(self.context, image_url)
47 self.assertEquals(same_id, image_id)
48+ self.assertEquals(client.host, 'something-less-likely')
49--
501.7.9.1
51
052
=== added file 'debian/patches/upstream/0002-Stop-libvirt-test-from-deleting-instances-dir.patch'
--- debian/patches/upstream/0002-Stop-libvirt-test-from-deleting-instances-dir.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/upstream/0002-Stop-libvirt-test-from-deleting-instances-dir.patch 2012-05-25 10:20:02 +0000
@@ -0,0 +1,69 @@
1From 4acfab6a7b368d34295afdace678563e1c3fa058 Mon Sep 17 00:00:00 2001
2From: Vishvananda Ishaya <vishvananda@gmail.com>
3Date: Thu, 5 Apr 2012 17:00:25 -0700
4Subject: [PATCH 2/5] Stop libvirt test from deleting instances dir
5
6 * fixes bug 974293
7
8Change-Id: Id41ab20193a70246ad2e3e1cc18edf47059d312d
9---
10 nova/tests/test_libvirt.py | 37 ++++++++++++-------------------------
11 1 files changed, 12 insertions(+), 25 deletions(-)
12
13diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py
14index 6b0f668..4ce91cb 100644
15--- a/nova/tests/test_libvirt.py
16+++ b/nova/tests/test_libvirt.py
17@@ -2148,25 +2148,8 @@ class LibvirtConnectionTestCase(test.TestCase):
18 """Test for nova.virt.libvirt.connection.LibvirtConnection."""
19 def setUp(self):
20 super(LibvirtConnectionTestCase, self).setUp()
21-
22 self.libvirtconnection = connection.LibvirtConnection(read_only=True)
23
24- self.temp_path = os.path.join(flags.FLAGS.instances_path,
25- 'instance-00000001/', '')
26- try:
27- os.makedirs(self.temp_path)
28- except Exception:
29- print 'testcase init error'
30- pass
31-
32- def tearDown(self):
33- super(LibvirtConnectionTestCase, self).tearDown()
34-
35- try:
36- shutil.rmtree(flags.FLAGS.instances_path)
37- except Exception:
38- pass
39-
40 def _create_instance(self, params=None):
41 """Create a test instance"""
42 if not params:
43@@ -2374,11 +2357,15 @@ class LibvirtConnectionTestCase(test.TestCase):
44 self.stubs.Set(self.libvirtconnection, '_create_new_domain',
45 fake_create_new_domain)
46
47- ins_ref = self._create_instance()
48- libvirt_xml_path = os.path.join(flags.FLAGS.instances_path,
49- ins_ref['name'], 'libvirt.xml')
50- f = open(libvirt_xml_path, 'w')
51- f.close()
52-
53- ref = self.libvirtconnection.finish_revert_migration(ins_ref, None)
54- self.assertTrue(isinstance(ref, eventlet.event.Event))
55+ with utils.tempdir() as tmpdir:
56+ self.flags(instances_path=tmpdir)
57+ ins_ref = self._create_instance()
58+ os.mkdir(os.path.join(tmpdir, ins_ref['name']))
59+ libvirt_xml_path = os.path.join(tmpdir,
60+ ins_ref['name'],
61+ 'libvirt.xml')
62+ f = open(libvirt_xml_path, 'w')
63+ f.close()
64+
65+ ref = self.libvirtconnection.finish_revert_migration(ins_ref, None)
66+ self.assertTrue(isinstance(ref, eventlet.event.Event))
67--
681.7.9.1
69
070
=== added file 'debian/patches/upstream/0003-Allow-unprivileged-RADOS-users-to-access-rbd-volumes.patch'
--- debian/patches/upstream/0003-Allow-unprivileged-RADOS-users-to-access-rbd-volumes.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/upstream/0003-Allow-unprivileged-RADOS-users-to-access-rbd-volumes.patch 2012-05-25 10:20:02 +0000
@@ -0,0 +1,155 @@
1From d4e96fe0294bd3d6e84a1d0a7e754662b23f8d13 Mon Sep 17 00:00:00 2001
2From: Josh Durgin <josh.durgin@dreamhost.com>
3Date: Wed, 4 Apr 2012 00:38:59 -0700
4Subject: [PATCH 3/5] Allow unprivileged RADOS users to access rbd volumes.
5
6This makes it possible to access rbd volumes with RADOS users with
7restricted privileges. Previously, the admin user was always used.
8
9This requires libvirt 0.9.8 or higher.
10
11This is a backport of commit 01f24caba86c987b0109f743979a4e99e8afed11
12from master.
13
14Fixes bug 975335.
15
16Change-Id: I3fbb2c03e5f63940c3a42f2d4f8d03ee16b30f7e
17diff -Naupr nova-2012.1.orig/Authors nova-2012.1/Authors
18--- nova-2012.1.orig/Authors 2012-04-04 14:29:56.000000000 -0400
19+++ nova-2012.1/Authors 2012-04-12 12:49:23.608123414 -0400
20@@ -98,7 +98,7 @@ Jonathan Bryce <jbryce@jbryce.com>
21 Jordan Rinke <jordan@openstack.org>
22 Joseph Suh <jsuh@isi.edu>
23 Joseph W. Breu <breu@breu.org>
24-Josh Durgin <joshd@hq.newdream.net>
25+Josh Durgin <josh.durgin@dreamhost.com>
26 Josh Kearney <josh@jk0.org>
27 Josh Kleinpeter <josh@kleinpeter.org>
28 Joshua Harlow <harlowja@yahoo-inc.com>
29diff -Naupr nova-2012.1.orig/nova/tests/test_libvirt.py nova-2012.1/nova/tests/test_libvirt.py
30--- nova-2012.1.orig/nova/tests/test_libvirt.py 2012-04-04 14:29:56.000000000 -0400
31+++ nova-2012.1/nova/tests/test_libvirt.py 2012-04-12 12:49:23.612123413 -0400
32@@ -240,6 +240,57 @@ class LibvirtVolumeTestCase(test.TestCas
33 self.assertEqual(tree.find('./source').get('protocol'), 'rbd')
34 rbd_name = '%s/%s' % (FLAGS.rbd_pool, name)
35 self.assertEqual(tree.find('./source').get('name'), rbd_name)
36+ self.assertEqual(tree.find('./source/auth'), None)
37+ libvirt_driver.disconnect_volume(connection_info, mount_device)
38+ connection_info = vol_driver.terminate_connection(vol, self.connr)
39+
40+ def test_libvirt_rbd_driver_auth_enabled(self):
41+ vol_driver = volume_driver.RBDDriver()
42+ libvirt_driver = volume.LibvirtNetVolumeDriver(self.fake_conn)
43+ name = 'volume-00000001'
44+ vol = {'id': 1, 'name': name}
45+ connection_info = vol_driver.initialize_connection(vol, self.connr)
46+ uuid = '875a8070-d0b9-4949-8b31-104d125c9a64'
47+ user = 'foo'
48+ secret_type = 'ceph'
49+ connection_info['data']['auth_enabled'] = True
50+ connection_info['data']['auth_username'] = user
51+ connection_info['data']['secret_type'] = secret_type
52+ connection_info['data']['secret_uuid'] = uuid
53+ mount_device = "vde"
54+ xml = libvirt_driver.connect_volume(connection_info, mount_device)
55+ tree = ElementTree.fromstring(xml)
56+ self.assertEqual(tree.get('type'), 'network')
57+ self.assertEqual(tree.find('./source').get('protocol'), 'rbd')
58+ rbd_name = '%s/%s' % (FLAGS.rbd_pool, name)
59+ self.assertEqual(tree.find('./source').get('name'), rbd_name)
60+ self.assertEqual(tree.find('./auth').get('username'), user)
61+ self.assertEqual(tree.find('./auth/secret').get('type'), secret_type)
62+ self.assertEqual(tree.find('./auth/secret').get('uuid'), uuid)
63+ libvirt_driver.disconnect_volume(connection_info, mount_device)
64+ connection_info = vol_driver.terminate_connection(vol, self.connr)
65+
66+ def test_libvirt_rbd_driver_auth_disabled(self):
67+ vol_driver = volume_driver.RBDDriver()
68+ libvirt_driver = volume.LibvirtNetVolumeDriver(self.fake_conn)
69+ name = 'volume-00000001'
70+ vol = {'id': 1, 'name': name}
71+ connection_info = vol_driver.initialize_connection(vol, self.connr)
72+ uuid = '875a8070-d0b9-4949-8b31-104d125c9a64'
73+ user = 'foo'
74+ secret_type = 'ceph'
75+ connection_info['data']['auth_enabled'] = False
76+ connection_info['data']['auth_username'] = user
77+ connection_info['data']['secret_type'] = secret_type
78+ connection_info['data']['secret_uuid'] = uuid
79+ mount_device = "vde"
80+ xml = libvirt_driver.connect_volume(connection_info, mount_device)
81+ tree = ElementTree.fromstring(xml)
82+ self.assertEqual(tree.get('type'), 'network')
83+ self.assertEqual(tree.find('./source').get('protocol'), 'rbd')
84+ rbd_name = '%s/%s' % (FLAGS.rbd_pool, name)
85+ self.assertEqual(tree.find('./source').get('name'), rbd_name)
86+ self.assertEqual(tree.find('./auth'), None)
87 libvirt_driver.disconnect_volume(connection_info, mount_device)
88 connection_info = vol_driver.terminate_connection(vol, self.connr)
89
90diff -Naupr nova-2012.1.orig/nova/virt/libvirt/volume.py nova-2012.1/nova/virt/libvirt/volume.py
91--- nova-2012.1.orig/nova/virt/libvirt/volume.py 2012-04-04 14:29:56.000000000 -0400
92+++ nova-2012.1/nova/virt/libvirt/volume.py 2012-04-12 12:49:23.612123413 -0400
93@@ -76,11 +76,25 @@ class LibvirtNetVolumeDriver(LibvirtVolu
94 driver = self._pick_volume_driver()
95 protocol = connection_info['driver_volume_type']
96 name = connection_info['data']['name']
97- xml = """<disk type='network'>
98- <driver name='%s' type='raw' cache='none'/>
99- <source protocol='%s' name='%s'/>
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches