Merge lp:~jml/pkgme-service/buildout-charm into lp:pkgme-service

Proposed by Jonathan Lange
Status: Merged
Approved by: Jonathan Lange
Approved revision: 143
Merged at revision: 139
Proposed branch: lp:~jml/pkgme-service/buildout-charm
Merge into: lp:pkgme-service
Diff against target: 96 lines (+17/-27)
5 files modified
buildout-templates/django.wsgi.in (+1/-0)
charms/precise/pkgme-service/hooks/install (+9/-21)
charms/precise/pkgme-service/revision (+1/-1)
dev_config/manifests/pkgme_service_db.pp (+5/-4)
dev_config/templates/httpd.conf.erb (+1/-1)
To merge this branch: bzr merge lp:~jml/pkgme-service/buildout-charm
Reviewer Review Type Date Requested Status
James Westby (community) Approve
Review via email: mp+132708@code.launchpad.net

Commit message

Update charm to use buildout

Description of the change

Updates the charm to use buildout.

Known issues:

 * README out of date
 * Installs pkgme-service-dependencies, which depends on things that are
   now superfluous, as they are provided by buildout
 * Warning in apache error log /var/lib/juju/units/pkgme-service-0/charm/eggs/pkgme_devportal-0.4.10-py2.7.egg/devportalbinary/__init__.py:4: UserWarning: Module bson was already imported from /usr/lib/python2.7/dist-packages/bson/__init__.pyc, but /var/lib/juju/units/pkgme-service-0/charm/eggs/bson-0.3.3-py2.7.egg is being added to sys.path

To post a comment you must log in.
Revision history for this message
James Westby (james-w) :
review: Approve
Revision history for this message
ISD Branch Mangler (isd-branches-mangler) wrote :
Download full text (5.8 KiB)

The attempt to merge lp:~jml/pkgme-service/buildout-charm into lp:pkgme-service failed. Below is the output from the failed tests.

./bin/py django_project/manage.py test djpkgme
Creating test database for alias 'default'...
Destroying test database for alias 'default'...

Tree is up to date at revision 43 of branch bzr+ssh://bazaar.launchpad.net/+branch/ca-download-cache
...........................E.........................
======================================================================
ERROR: test_gtk (djpkgme.tests.test_integration.TestEndToEnd)
djpkgme.tests.test_integration.TestEndToEnd.test_gtk
----------------------------------------------------------------------
_StringException: Empty attachments:
  twisted-log

celery-log: {{{
[2012-11-07 11:54:22,933: WARNING/MainProcess] -------------- <email address hidden> v2.5.0
---- **** -----
--- * *** * -- [Configuration]
-- * - **** --- . broker: djkombu.transport.DatabaseTransport:////
- ** ---------- . loader: djcelery.loaders.DjangoLoader
- ** ---------- . logfile: <email address hidden>@WARNING
- ** ---------- . concurrency: 1
- ** ---------- . events: ON
- *** --- * --- . beat: OFF
-- ******* ----
--- ***** ----- [Queues]
 -------------- . celery: exchange:celery (direct) binding:celery
[2012-11-07 11:54:23,014: WARNING/MainProcess] <email address hidden> has started.
[2012-11-07 11:54:34,208: INFO/PoolWorker-1] ['tar', '--force-local', '--no-same-owner', '--no-same-permissions', '-xf', u'/tmp/tmp2semEr/download/package-name4.tar.gz', '-C', '/tmp/tmp2semEr/working'] finished in 2.202s
[2012-11-07 11:54:46,028: INFO/PoolWorker-1] ['/tmp/eggs/pkgme_devportal-0.4.10-py2.7.egg/devportalbinary/backends/python-stub/want'] finished in 11.818s
[2012-11-07 11:54:46,430: INFO/PoolWorker-1] ['/tmp/eggs/pkgme_devportal-0.4.10-py2.7.egg/devportalbinary/backends/diff/want'] finished in 0.401s
[2012-11-07 11:54:46,696: INFO/PoolWorker-1] ['/tmp/eggs/pkgme_devportal-0.4.10-py2.7.egg/devportalbinary/backends/pdf/want'] finished in 0.265s
[2012-11-07 11:54:46,980: INFO/PoolWorker-1] ['/tmp/eggs/pkgme_devportal-0.4.10-py2.7.egg/devportalbinary/backends/deb-bin/want'] finished in 0.282s
[2012-11-07 11:54:47,255: INFO/PoolWorker-1] ['/tmp/eggs/pkgme_devportal-0.4.10-py2.7.egg/devportalbinary/backends/exe/want'] finished in 0.274s
[2012-11-07 11:54:47,599: INFO/PoolWorker-1] ['/tmp/eggs/pkgme_devportal-0.4.10-py2.7.egg/devportalbinary/backends/deb-src/want'] finished in 0.343s
[2012-11-07 11:54:47,871: INFO/PoolWorker-1] ['/tmp/eggs/pkgme_devportal-0.4.10-py2.7.egg/devportalbinary/backends/text/want'] finished in 0.271s
[2012-11-07 11:54:48,134: INFO/PoolWorker-1] ['/tmp/eggs/pkgme_devportal-0.4.10-py2.7.egg/devportalbinary/backends/image/want'] finished in 0.262s
[2012-11-07 11:54:48,393: INFO/PoolWorker-1] ['/tmp/eggs/pkgme_devportal-0.4.10-py2.7.egg/devportalbinary/backends/shell/want'] finished in 0.259s
[2012-11-07 11:54:48,665: INFO/PoolWorker-1] ['/tmp/eggs/pkgme_devportal-0.4.10-py2.7.egg/devportalbinary/backends/desktop/want'] finished in 0.271s
[2012-11-07 11:...

Read more...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'buildout-templates/django.wsgi.in'
2--- buildout-templates/django.wsgi.in 2012-10-30 18:23:06 +0000
3+++ buildout-templates/django.wsgi.in 2012-11-02 15:08:21 +0000
4@@ -19,6 +19,7 @@
5 return os.path.join(_z3c_recipe_filetemplate_base, path)
6 import sys
7 sys.path[0:0] = [
8+ _z3c_recipe_filetemplate_base,
9 ${string-paths}
10 ]
11
12
13=== modified file 'charms/precise/pkgme-service/hooks/install'
14--- charms/precise/pkgme-service/hooks/install 2012-07-25 12:38:44 +0000
15+++ charms/precise/pkgme-service/hooks/install 2012-11-02 15:08:21 +0000
16@@ -56,31 +56,19 @@
17 apache2 \
18 libapache2-mod-wsgi \
19 python-wsgi-intercept \
20- rabbitmq-server
21-
22-# XXX: a public fork of the real config, which lives at
23-# lp:~canonical-ca-hackers/ca-configs/pkgme-service-configmanager.
24-# Differences are that it's public and that it uses public URLs.
25-CONFIG_MANAGER_CONFIG="http://bazaar.launchpad.net/~canonical-ca-hackers/+junk/pkgme-service-configmanager"
26-
27-
28-# Grab the branches
29-CONFIG_MANAGER_BRANCH="https://code.launchpad.net/config-manager"
30-
31-bzr branch $CONFIG_MANAGER_BRANCH /tmp/config-manager
32-bzr branch $CONFIG_MANAGER_CONFIG /tmp/config
33-
34-/tmp/config-manager/cm.py update /tmp/config/sourcedeps.conf
35-
36-rm -rf /tmp/config-manager
37-rm -rf /tmp/config
38+ rabbitmq-server \
39+ gcc \
40+ python-dev \
41+ libpq-dev
42
43
44 SERVICE_NAME="pkgme-service"
45
46-# Build the code
47-(cd ${SERVICE_NAME}/sourcecode/pkgme && python setup.py build)
48-(cd ${SERVICE_NAME}/sourcecode/pkgme-devportal && python setup.py build)
49+bzr export download-cache https://code.launchpad.net/ca-download-cache
50+bzr branch https://code.launchpad.net/pkgme-service ${SERVICE_NAME}
51+
52+(cd ${SERVICE_NAME} && make)
53+
54
55 # XXX: Grab canonical-memento and use it?
56
57
58=== modified file 'charms/precise/pkgme-service/revision'
59--- charms/precise/pkgme-service/revision 2012-07-26 14:51:14 +0000
60+++ charms/precise/pkgme-service/revision 2012-11-02 15:08:21 +0000
61@@ -1,1 +1,1 @@
62-39
63+46
64
65=== modified file 'dev_config/manifests/pkgme_service_db.pp'
66--- dev_config/manifests/pkgme_service_db.pp 2012-07-03 13:22:23 +0000
67+++ dev_config/manifests/pkgme_service_db.pp 2012-11-02 15:08:21 +0000
68@@ -15,10 +15,11 @@
69 }
70
71 user {$unix_user:
72- comment => 'This user was created by Puppet',
73- ensure => 'present',
74- gid => $unix_user,
75- require => Group[$unix_user],
76+ comment => 'This user was created by Puppet',
77+ ensure => 'present',
78+ gid => $unix_user,
79+ require => Group[$unix_user],
80+ managehome => true,
81 }
82
83 exec { "rabbit-add-user-$rabbit_user":
84
85=== modified file 'dev_config/templates/httpd.conf.erb'
86--- dev_config/templates/httpd.conf.erb 2012-02-28 16:39:54 +0000
87+++ dev_config/templates/httpd.conf.erb 2012-11-02 15:08:21 +0000
88@@ -9,7 +9,7 @@
89 WSGIProcessGroup <%= basedir %>
90 WSGIPassAuthorization On
91
92-WSGIScriptAlias / <%= basedir %>/django_project/django.wsgi
93+WSGIScriptAlias / <%= basedir %>/django.wsgi
94
95
96 <VirtualHost *:80>

Subscribers

People subscribed via source and target branches