Merge lp:~openstack-ubuntu-packagers/ubuntu/natty/nova/ubuntu-natty-packaging-changes into lp:~openstack-ubuntu-packagers/ubuntu/natty/nova/ubuntu

Proposed by Chuck Short
Status: Merged
Approved by: Soren Hansen
Approved revision: 18
Merged at revision: 7
Proposed branch: lp:~openstack-ubuntu-packagers/ubuntu/natty/nova/ubuntu-natty-packaging-changes
Merge into: lp:~openstack-ubuntu-packagers/ubuntu/natty/nova/ubuntu
Diff against target: 118 lines (+30/-32)
6 files modified
debian/changelog (+9/-0)
debian/control (+1/-1)
debian/nova-api.conf (+4/-0)
debian/nova-common.install (+14/-10)
debian/nova-compute.conf (+2/-0)
debian/start-redis (+0/-21)
To merge this branch: bzr merge lp:~openstack-ubuntu-packagers/ubuntu/natty/nova/ubuntu-natty-packaging-changes
Reviewer Review Type Date Requested Status
Soren Hansen (community) Approve
Chuck Short (community) Needs Resubmitting
Review via email: mp+41194@code.launchpad.net

Description of the change

natty debian changes:
- Update build dependencies by adding python-greenlet.
- Add missing template files that were previously not added before.
- Update nova configuration files due to nova-api changes
- Add python-rrdtool as a dependency to nova-monitor.
- Add options to install user-mode-linux.

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

On 18-11-2010 17:42, Chuck Short wrote:
> Chuck Short has proposed merging lp:~openstack-ubuntu-packagers/ubuntu/natty/nova/ubuntu-natty-packaging-changes into lp:~openstack-ubuntu-packagers/ubuntu/natty/nova/ubuntu.
>
> Requested reviews:
> OpenStack Ubuntu packagers (openstack-ubuntu-packagers)
>
>
> natty debian changes

Please be more verbose about the changes you're making. This is the
Natty packaging branch. If you want to change it, it's rather obvious
that they're natty changes. :)

> === modified file 'debian/changelog'
> --- debian/changelog 2010-11-18 15:35:00 +0000
> +++ debian/changelog 2010-11-18 16:42:00 +0000
> @@ -1,10 +1,22 @@
> nova (2011.1~bzr403-0ubuntu1) UNRELEASED; urgency=low
>
> + [Soren Hansen]
> * New upstream snapshot.
> * Added the new tarballs page to debian/watch.
> * Clean out patch-branches (everything is upstream now).
> * Remove redis-server as a build-depends and don't start it for tests
> anymore.
> +
> + [Chuck Short]
> + * debian/control:
> + - Add option to use user-mode-linux

"Add UML templates to flagfile" would be better.

> + - Add python-greenlet as a build dependency.

Why?

> + - Update maintainer according to spec.

a) The spec deals with packages that we import from Debian.
b) If the Maintainer already is an @ubuntu.com address, you don't have
to change it.
It's ok that you did, it's just the log entry that's off.

> + - Add dependency to python-rrdtool so that nova-instancemonitor doesnt complain about missing python modules
> + when starting.
> + * debian/nova-common.install: Add missing templates.

> + * debian/nova-*.conf: Update configs due to changes to nova-api.

Not all the changes you made to the conf files are due to change in
nova-api. They're due to all sorts of things.

> - python-sqlalchemy, python-eventlet, python-routes
> + python-sqlalchemy, python-eventlet, python-routes, python-greenlet

Why?

> === modified file 'debian/nova-api.conf'
> --- debian/nova-api.conf 2010-11-18 15:16:24 +0000
> +++ debian/nova-api.conf 2010-11-18 16:42:00 +0000
> @@ -6,3 +6,7 @@
> --logfile=/var/log/nova/nova-api.log
> --sql_connection=sqlite:////var/lib/nova/nova.sqlite
> --FAKE_subdomain=ec2
> +--libvirt_xml_template=/usr/share/nova/libvirt.qemu.xml.template
> +--libvirt_uml_xml_template=/usr/share/nova/libvirt.uml.xml.template
> +--libvirt_rescue_xml_template=/usr/share/nova/libvirt.rescue.qemu.xml.template
> +--libvirt_rescue_uml_xml_template=/usr/share/nova/libvirt.rescue.uml.xml.template

This is fine, but soon won't be needed anymore, just FYI. The API server
doesn't use them, so it's a bug that it needs them there.

> === removed file 'debian/start-redis'
> --- debian/start-redis 2010-11-18 15:16:24 +0000
> +++ debian/start-redis 1970-01-01 00:00:00 +0000
> @@ -1,21 +0,0 @@
> -#!/bin/sh
> -
> -port=6379
> -maxport=6400
> -while netstat -ln | grep -q :$port.*LISTEN
> -do
> - if [ $port -eq $maxport ]
> - then
> - exit 1
> - fi
> - port=$(($port + 1))
> -done
> -
> -sed -e 's!^save!#&!g' \
> - -e 's!^dir .*!dir '"$PWD"'!g' \
> - -e 's!^pidfile .*!pidfile '"$PWD"'/redis.pid!g' \
> - -e 's!^logfile .*!logfile /dev/stdout!g' \
> - -e 's!^port ...

Read more...

review: Needs Fixing
Revision history for this message
Chuck Short (zulcss) wrote :
Download full text (4.0 KiB)

My comments are inline

> On 18-11-2010 17:42, Chuck Short wrote:
> > Chuck Short has proposed merging lp:~openstack-ubuntu-
> packagers/ubuntu/natty/nova/ubuntu-natty-packaging-changes into lp:~openstack-
> ubuntu-packagers/ubuntu/natty/nova/ubuntu.
> >
> > Requested reviews:
> > OpenStack Ubuntu packagers (openstack-ubuntu-packagers)
> >
> >
> > natty debian changes
>
> Please be more verbose about the changes you're making. This is the
> Natty packaging branch. If you want to change it, it's rather obvious
> that they're natty changes. :)
>
> > === modified file 'debian/changelog'
> > --- debian/changelog 2010-11-18 15:35:00 +0000
> > +++ debian/changelog 2010-11-18 16:42:00 +0000
> > @@ -1,10 +1,22 @@
> > nova (2011.1~bzr403-0ubuntu1) UNRELEASED; urgency=low
> >
> > + [Soren Hansen]
> > * New upstream snapshot.
> > * Added the new tarballs page to debian/watch.
> > * Clean out patch-branches (everything is upstream now).
> > * Remove redis-server as a build-depends and don't start it for tests
> > anymore.
> > +
> > + [Chuck Short]
> > + * debian/control:
> > + - Add option to use user-mode-linux
>
> "Add UML templates to flagfile" would be better.
>
> > + - Add python-greenlet as a build dependency.
>
> Why?

Nova.sh requires you to install it. And its required in the tools/pip-requires. If this is outdated then this change can be dropped.

> > + - Update maintainer according to spec.
>
> a) The spec deals with packages that we import from Debian.
> b) If the Maintainer already is an @ubuntu.com address, you don't have
> to change it.
> It's ok that you did, it's just the log entry that's off.

Ill update the changelog then.

> > + - Add dependency to python-rrdtool so that nova-instancemonitor doesnt
> complain about missing python modules
> > + when starting.
> > + * debian/nova-common.install: Add missing templates.
>
> > + * debian/nova-*.conf: Update configs due to changes to nova-api.
>
> Not all the changes you made to the conf files are due to change in
> nova-api. They're due to all sorts of things.

So should I phrase it as "due to changes in nova between maverick and natty?"

> > - python-sqlalchemy, python-eventlet, python-routes
> > + python-sqlalchemy, python-eventlet, python-routes, python-greenlet
>
> Why?

See above:

> > === modified file 'debian/nova-api.conf'
> > --- debian/nova-api.conf 2010-11-18 15:16:24 +0000
> > +++ debian/nova-api.conf 2010-11-18 16:42:00 +0000
> > @@ -6,3 +6,7 @@
> > --logfile=/var/log/nova/nova-api.log
> > --sql_connection=sqlite:////var/lib/nova/nova.sqlite
> > --FAKE_subdomain=ec2
> > +--libvirt_xml_template=/usr/share/nova/libvirt.qemu.xml.template
> > +--libvirt_uml_xml_template=/usr/share/nova/libvirt.uml.xml.template
> > +--libvirt_rescue_xml_template=/usr/share/nova/libvirt.rescue.qemu.xml.templ
> ate
> > +--libvirt_rescue_uml_xml_template=/usr/share/nova/libvirt.rescue.uml.xml.te
> mplate
>
> This is fine, but soon won't be needed anymore, just FYI. The API server
> doesn't use them, so it's a bug that it needs them there.

Agreed, but if people want to test it right now they will have to add it to /etc/nova/nova-api.conf. ...

Read more...

Revision history for this message
Soren Hansen (soren) wrote :

On 19-11-2010 15:49, Chuck Short wrote:
>>> + - Add python-greenlet as a build dependency.
>> Why?
> Nova.sh requires you to install it. And its required in the
> tools/pip-requires. If this is outdated then this change can be
> dropped.

It seems there's some ordering of builds or whatnot that gets messed up
if they don't do it that way. They're workarounds if you're using
virtualenv. We don't use python-greenlet directly, so shouldn't have to
add it.

>>> + * debian/nova-*.conf: Update configs due to changes to nova-api.
>> Not all the changes you made to the conf files are due to change in
>> nova-api. They're due to all sorts of things.
> So should I phrase it as "due to changes in nova between maverick and natty?"

Maybe "debian/nova-*.conf: Include flags that were added upstream since
last snapshot."?

Or even just "debian/nova-*.conf: Update flagfiles.". Vague is better
than wrong/misleading.

>> This is fine, but soon won't be needed anymore, just FYI. The API server
>> doesn't use them, so it's a bug that it needs them there.
> Agreed, but if people want to test it right now they will have to add
> it to /etc/nova/nova-api.conf.

Right, exactly. That's why I said it was fine :)

> Ill add a bug with you guys.

Cool, thanks.

--
Soren Hansen
Ubuntu Developer http://www.ubuntu.com/
OpenStack Developer http://www.openstack.org/

14. By Chuck Short

We dont need greenlet afterall

15. By Chuck Short

Dont update the maintainer

16. By Chuck Short

Update changelog to reflect reality with respect to the flagfiles

Revision history for this message
Soren Hansen (soren) wrote :

One of the changelog lines are way too long and there are merge conflicts. Can you fix that up, please?

review: Needs Fixing
Revision history for this message
Chuck Short (zulcss) wrote :

> One of the changelog lines are way too long and there are merge conflicts. Can
> you fix that up, please?

Done

review: Needs Resubmitting
17. By Chuck Short

Fix up changelog

18. By Chuck Short

Merge trunk

Revision history for this message
Soren Hansen (soren) wrote :

Looks great. Feel free to merge it. I would do it, but I'm on my way out the door.

review: Approve
Revision history for this message
Soren Hansen (soren) wrote :

Never mind, just merged it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-11-19 13:11:53 +0000
3+++ debian/changelog 2010-11-22 16:20:43 +0000
4@@ -1,11 +1,20 @@
5 nova (2011.1~bzr403-0ubuntu1) UNRELEASED; urgency=low
6
7+ [Soren Hansen]
8 * New upstream snapshot.
9 * Added the new tarballs page to debian/watch.
10 * Clean out patch-branches (everything is upstream now).
11 * Remove redis-server as a build-depends and don't start it for tests
12 anymore.
13 * Add missing dependency on python-webob.
14+
15+ [Chuck Short]
16+ * debian/control:
17+ - Add dependency to python-rrdtool so that nova-instancemonitor
18+ doesnt complain about missing python modules when starting.
19+ * debian/nova-common.install: Add missing templates.
20+ * debian/nova-*.conf: Update flagfiles to handle upstream changes.
21+ * Dropped start-redis since we dont do redis anymore.
22
23 -- Soren Hansen <soren@ubuntu.com> Thu, 18 Nov 2010 16:25:46 +0100
24
25
26=== modified file 'debian/control'
27--- debian/control 2010-11-19 13:11:53 +0000
28+++ debian/control 2010-11-22 16:20:43 +0000
29@@ -214,7 +214,7 @@
30
31 Package: nova-instancemonitor
32 Architecture: all
33-Depends: nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
34+Depends: python-rrdtool, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
35 Description: Nova instance monitor
36 OpenStack is free, open source software for building reliable cloud
37 infrastructure.
38
39=== modified file 'debian/nova-api.conf'
40--- debian/nova-api.conf 2010-11-18 15:16:24 +0000
41+++ debian/nova-api.conf 2010-11-22 16:20:43 +0000
42@@ -6,3 +6,7 @@
43 --logfile=/var/log/nova/nova-api.log
44 --sql_connection=sqlite:////var/lib/nova/nova.sqlite
45 --FAKE_subdomain=ec2
46+--libvirt_xml_template=/usr/share/nova/libvirt.qemu.xml.template
47+--libvirt_uml_xml_template=/usr/share/nova/libvirt.uml.xml.template
48+--libvirt_rescue_xml_template=/usr/share/nova/libvirt.rescue.qemu.xml.template
49+--libvirt_rescue_uml_xml_template=/usr/share/nova/libvirt.rescue.uml.xml.template
50
51=== modified file 'debian/nova-common.install'
52--- debian/nova-common.install 2010-11-18 15:16:24 +0000
53+++ debian/nova-common.install 2010-11-22 16:20:43 +0000
54@@ -1,11 +1,15 @@
55 usr/bin/nova-manage
56-debian/nova-manage.conf etc/nova
57-nova/auth/novarc.template usr/share/nova
58-nova/cloudpipe/client.ovpn.template usr/share/nova
59-nova/virt/libvirt.qemu.xml.template usr/share/nova
60-nova/virt/libvirt.uml.xml.template usr/share/nova
61-nova/virt/interfaces.template usr/share/nova
62-CA/openssl.cnf.tmpl var/lib/nova/CA
63-CA/geninter.sh var/lib/nova/CA
64-CA/genrootca.sh var/lib/nova/CA
65-debian/nova_sudoers etc/sudoers.d
66+debian/nova-manage.conf etc/nova
67+nova/auth/novarc.template usr/share/nova
68+nova/cloudpipe/client.ovpn.template usr/share/nova
69+nova/virt/libvirt.qemu.xml.template usr/share/nova
70+nova/virt/libvirt.rescue.qemu.xml.template usr/share/nova
71+nova/virt/libvirt.uml.xml.template usr/share/nova
72+nova/virt/libvirt.rescue.ml.xml.template usr/share/nova
73+nova/virt/libvirt.xen.xml.template usr/share/nova
74+nova/virt/libvirt.rescue.xen.xml.template usr/share/nova
75+nova/virt/interfaces.template usr/share/nova
76+CA/openssl.cnf.tmpl var/lib/nova/CA
77+CA/geninter.sh var/lib/nova/CA
78+CA/genrootca.sh var/lib/nova/CA
79+debian/nova_sudoers etc/sudoers.d
80
81=== modified file 'debian/nova-compute.conf'
82--- debian/nova-compute.conf 2010-11-18 15:16:24 +0000
83+++ debian/nova-compute.conf 2010-11-22 16:20:43 +0000
84@@ -4,6 +4,8 @@
85 --injected_network_template=/usr/share/nova/interfaces.template
86 --libvirt_xml_template=/usr/share/nova/libvirt.qemu.xml.template
87 --libvirt_uml_xml_template=/usr/share/nova/libvirt.uml.xml.template
88+--libvirt_rescue_xml_template=/usr/share/nova/libvirt.rescue.qemu.xml.template
89+--libvirt_rescue_uml_xml_template=/usr/share/nova/libvirt.rescue.uml.xml.template
90 --vpn_client_template=/usr/share/nova/client.ovpn.template
91 --credentials_template=/usr/share/nova/novarc.template
92 --logfile=/var/log/nova/nova-compute.log
93
94=== removed file 'debian/start-redis'
95--- debian/start-redis 2010-11-18 15:16:24 +0000
96+++ debian/start-redis 1970-01-01 00:00:00 +0000
97@@ -1,21 +0,0 @@
98-#!/bin/sh
99-
100-port=6379
101-maxport=6400
102-while netstat -ln | grep -q :$port.*LISTEN
103-do
104- if [ $port -eq $maxport ]
105- then
106- exit 1
107- fi
108- port=$(($port + 1))
109-done
110-
111-sed -e 's!^save!#&!g' \
112- -e 's!^dir .*!dir '"$PWD"'!g' \
113- -e 's!^pidfile .*!pidfile '"$PWD"'/redis.pid!g' \
114- -e 's!^logfile .*!logfile /dev/stdout!g' \
115- -e 's!^port .*!port '$port'!g' \
116- /etc/redis/redis.conf | redis-server -
117-echo $port
118-exit 0

Subscribers

People subscribed via source and target branches