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
=== modified file 'debian/changelog'
--- debian/changelog 2010-11-19 13:11:53 +0000
+++ debian/changelog 2010-11-22 16:20:43 +0000
@@ -1,11 +1,20 @@
1nova (2011.1~bzr403-0ubuntu1) UNRELEASED; urgency=low1nova (2011.1~bzr403-0ubuntu1) UNRELEASED; urgency=low
22
3 [Soren Hansen]
3 * New upstream snapshot.4 * New upstream snapshot.
4 * Added the new tarballs page to debian/watch.5 * Added the new tarballs page to debian/watch.
5 * Clean out patch-branches (everything is upstream now).6 * Clean out patch-branches (everything is upstream now).
6 * Remove redis-server as a build-depends and don't start it for tests7 * Remove redis-server as a build-depends and don't start it for tests
7 anymore.8 anymore.
8 * Add missing dependency on python-webob.9 * Add missing dependency on python-webob.
10
11 [Chuck Short]
12 * debian/control:
13 - Add dependency to python-rrdtool so that nova-instancemonitor
14 doesnt complain about missing python modules when starting.
15 * debian/nova-common.install: Add missing templates.
16 * debian/nova-*.conf: Update flagfiles to handle upstream changes.
17 * Dropped start-redis since we dont do redis anymore.
918
10 -- Soren Hansen <soren@ubuntu.com> Thu, 18 Nov 2010 16:25:46 +010019 -- Soren Hansen <soren@ubuntu.com> Thu, 18 Nov 2010 16:25:46 +0100
1120
1221
=== modified file 'debian/control'
--- debian/control 2010-11-19 13:11:53 +0000
+++ debian/control 2010-11-22 16:20:43 +0000
@@ -214,7 +214,7 @@
214214
215Package: nova-instancemonitor215Package: nova-instancemonitor
216Architecture: all216Architecture: all
217Depends: nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}217Depends: python-rrdtool, nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
218Description: Nova instance monitor218Description: Nova instance monitor
219 OpenStack is free, open source software for building reliable cloud219 OpenStack is free, open source software for building reliable cloud
220 infrastructure.220 infrastructure.
221221
=== modified file 'debian/nova-api.conf'
--- debian/nova-api.conf 2010-11-18 15:16:24 +0000
+++ debian/nova-api.conf 2010-11-22 16:20:43 +0000
@@ -6,3 +6,7 @@
6--logfile=/var/log/nova/nova-api.log6--logfile=/var/log/nova/nova-api.log
7--sql_connection=sqlite:////var/lib/nova/nova.sqlite7--sql_connection=sqlite:////var/lib/nova/nova.sqlite
8--FAKE_subdomain=ec28--FAKE_subdomain=ec2
9--libvirt_xml_template=/usr/share/nova/libvirt.qemu.xml.template
10--libvirt_uml_xml_template=/usr/share/nova/libvirt.uml.xml.template
11--libvirt_rescue_xml_template=/usr/share/nova/libvirt.rescue.qemu.xml.template
12--libvirt_rescue_uml_xml_template=/usr/share/nova/libvirt.rescue.uml.xml.template
913
=== modified file 'debian/nova-common.install'
--- debian/nova-common.install 2010-11-18 15:16:24 +0000
+++ debian/nova-common.install 2010-11-22 16:20:43 +0000
@@ -1,11 +1,15 @@
1usr/bin/nova-manage1usr/bin/nova-manage
2debian/nova-manage.conf etc/nova2debian/nova-manage.conf etc/nova
3nova/auth/novarc.template usr/share/nova3nova/auth/novarc.template usr/share/nova
4nova/cloudpipe/client.ovpn.template usr/share/nova4nova/cloudpipe/client.ovpn.template usr/share/nova
5nova/virt/libvirt.qemu.xml.template usr/share/nova5nova/virt/libvirt.qemu.xml.template usr/share/nova
6nova/virt/libvirt.uml.xml.template usr/share/nova6nova/virt/libvirt.rescue.qemu.xml.template usr/share/nova
7nova/virt/interfaces.template usr/share/nova7nova/virt/libvirt.uml.xml.template usr/share/nova
8CA/openssl.cnf.tmpl var/lib/nova/CA8nova/virt/libvirt.rescue.ml.xml.template usr/share/nova
9CA/geninter.sh var/lib/nova/CA9nova/virt/libvirt.xen.xml.template usr/share/nova
10CA/genrootca.sh var/lib/nova/CA10nova/virt/libvirt.rescue.xen.xml.template usr/share/nova
11debian/nova_sudoers etc/sudoers.d11nova/virt/interfaces.template usr/share/nova
12CA/openssl.cnf.tmpl var/lib/nova/CA
13CA/geninter.sh var/lib/nova/CA
14CA/genrootca.sh var/lib/nova/CA
15debian/nova_sudoers etc/sudoers.d
1216
=== modified file 'debian/nova-compute.conf'
--- debian/nova-compute.conf 2010-11-18 15:16:24 +0000
+++ debian/nova-compute.conf 2010-11-22 16:20:43 +0000
@@ -4,6 +4,8 @@
4--injected_network_template=/usr/share/nova/interfaces.template4--injected_network_template=/usr/share/nova/interfaces.template
5--libvirt_xml_template=/usr/share/nova/libvirt.qemu.xml.template5--libvirt_xml_template=/usr/share/nova/libvirt.qemu.xml.template
6--libvirt_uml_xml_template=/usr/share/nova/libvirt.uml.xml.template6--libvirt_uml_xml_template=/usr/share/nova/libvirt.uml.xml.template
7--libvirt_rescue_xml_template=/usr/share/nova/libvirt.rescue.qemu.xml.template
8--libvirt_rescue_uml_xml_template=/usr/share/nova/libvirt.rescue.uml.xml.template
7--vpn_client_template=/usr/share/nova/client.ovpn.template9--vpn_client_template=/usr/share/nova/client.ovpn.template
8--credentials_template=/usr/share/nova/novarc.template10--credentials_template=/usr/share/nova/novarc.template
9--logfile=/var/log/nova/nova-compute.log11--logfile=/var/log/nova/nova-compute.log
1012
=== 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 @@
1#!/bin/sh
2
3port=6379
4maxport=6400
5while netstat -ln | grep -q :$port.*LISTEN
6do
7 if [ $port -eq $maxport ]
8 then
9 exit 1
10 fi
11 port=$(($port + 1))
12done
13
14sed -e 's!^save!#&!g' \
15 -e 's!^dir .*!dir '"$PWD"'!g' \
16 -e 's!^pidfile .*!pidfile '"$PWD"'/redis.pid!g' \
17 -e 's!^logfile .*!logfile /dev/stdout!g' \
18 -e 's!^port .*!port '$port'!g' \
19 /etc/redis/redis.conf | redis-server -
20echo $port
21exit 0

Subscribers

People subscribed via source and target branches