Merge lp:~yolanda.robla/glance/precise-essex-proposed into lp:ubuntu/precise-proposed/glance

Proposed by Yolanda Robla
Status: Superseded
Proposed branch: lp:~yolanda.robla/glance/precise-essex-proposed
Merge into: lp:ubuntu/precise-proposed/glance
Diff against target: 1475 lines (+1301/-0) (has conflicts)
34 files modified
.bzr-builddeb/default.conf (+2/-0)
debian/changelog (+538/-0)
debian/compat (+1/-0)
debian/control (+154/-0)
debian/copyright (+24/-0)
debian/glance-api.dirs (+5/-0)
debian/glance-api.glance-api.upstart (+9/-0)
debian/glance-api.install (+13/-0)
debian/glance-api.logrotate (+7/-0)
debian/glance-api.prerm (+13/-0)
debian/glance-client.install (+1/-0)
debian/glance-common.dirs (+6/-0)
debian/glance-common.install (+2/-0)
debian/glance-common.postinst (+21/-0)
debian/glance-common.postrm (+16/-0)
debian/glance-registry.glance-registry.upstart (+9/-0)
debian/glance-registry.install (+3/-0)
debian/glance-registry.logrotate (+7/-0)
debian/glance-registry.postinst (+17/-0)
debian/glance-registry.prerm (+13/-0)
debian/patches/disable-network-for-docs.patch (+14/-0)
debian/patches/disable-swift-tests.patch (+143/-0)
debian/patches/disable_db_table_auto_create.patch (+138/-0)
debian/patches/fix_migration_012_foreign_keys.patch (+59/-0)
debian/patches/series (+5/-0)
debian/patches/sql_conn.patch (+12/-0)
debian/pycompat (+1/-0)
debian/python-glance-doc.doc-base (+9/-0)
debian/python-glance-doc.docs (+1/-0)
debian/python-glance-doc.links (+3/-0)
debian/python-glance.install (+2/-0)
debian/rules (+49/-0)
debian/source/format (+1/-0)
debian/watch (+3/-0)
Conflict adding file debian.  Moved existing file to debian.moved.
To merge this branch: bzr merge lp:~yolanda.robla/glance/precise-essex-proposed
Reviewer Review Type Date Requested Status
Ubuntu Development Team Pending
Review via email: mp+156494@code.launchpad.net

Description of the change

Resynchronize with stable/essex (74b067df)

To post a comment you must log in.
173. By Yolanda Robla

Resynchronize with stable/essex (74b067df)

174. By Yolanda Robla

Resynchronize with stable/essex (LP: #1089488):

175. By Yolanda Robla

  - [74b067d] v1 api returns location as header for cached images LP: 1135541
  - CVE-2013-1840
    LP: 1098962 (CVE-2013-0212)

Unmerged revisions

175. By Yolanda Robla

  - [74b067d] v1 api returns location as header for cached images LP: 1135541
  - CVE-2013-1840
    LP: 1098962 (CVE-2013-0212)

174. By Yolanda Robla

Resynchronize with stable/essex (LP: #1089488):

173. By Yolanda Robla

Resynchronize with stable/essex (74b067df)

172. By Yolanda Robla

Resynchronize with stable/essex (74b067df)

171. By Yolanda Robla

[ Yolanda Robla Mota ]
* Resynchronize with stable/essex (efd7e75b):
  - [efd7e75] Non-admin users can cause public glance images to be deleted
    from the backend storage repository (CVE-2012-4573)
  - [e6be061] Jenkins jobs fail because of incompatibility between sqlalchemy-
    migrate and the newest sqlalchemy-0.8.0b1 (LP: #1073569)
* Dropped patches, superseeded by snapshot:
  - debian/patches/CVE-2012-4573.patch: [efd7e75]
* SECURITY UPDATE: deletion of arbitrary public and shared images via
  authenticated user
  - debian/patches/CVE-2012-4573.patch: adjust glance/api/v1/images.py to
    ensure image is owned by user before delayed_deletion
  - CVE-2012-4573

170. By Adam Gandelman

debian/rules: skipping pep8 tests to allow building

169. By Adam Gandelman

Revert changelog.

168. By Yolanda Robla

Resynchronize with stable/essex (efd7e75b) LP: #1089488:
modified changelog to add LP bug number

167. By Yolanda Robla

* Dropped patches, applied upstream:
  - debian/patches/CVE-2012-4573.patch: adjust glance/api/v1/images.py to
    ensure image is owned by user before delayed_deletion
    from the backend storage repository
    migrate and the newest sqlalchemy-0.8.0b1
* debian/rules: skipping pep8 tests to allow building

166. By Yolanda Robla

* Resynchronize with stable/essex (efd7e75b):
  - [efd7e75] Non-admin users can cause public glance images to be deleted
    from the backend storage repository (LP: #1065187)
  - [e6be061] Jenkins jobs fail because of incompatibility between sqlalchemy-
    migrate and the newest sqlalchemy-0.8.0b1 (LP: #1073569)
* SECURITY UPDATE: deletion of arbitrary public and shared images via
  authenticated user
  - debian/patches/CVE-2012-4573.patch: adjust glance/api/v1/images.py to
    ensure image is owned by user before delayed_deletion
  - CVE-2012-4573
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* [0d4d1f7] Compile BigInteger to INTEGER for sqlite
* [f5ed968] Add MySQLPingListener() back
* [8e642d9] Run version_control after auto-creating the DB
* [6390447] rename the right index
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* [1e708f4] Allow specifying the current version in 'glance-manage
  version_control'
* [d21cf6b] Reject excessively long image names.
* Automated Ubuntu testing build:
* [2f8bec1] Add support for auth version 2.
* Automated Ubuntu testing build:
* [d21cf6b] Reject excessively long image names.
* [9b68243] Allow yes-like values to be interpreted as bool
* [bb7c329] Support owner paramater to glance add
* Automated Ubuntu testing build:
* [127101a] Ensure functional db connection in configure_db()
* [9b68243] Allow yes-like values to be interpreted as bool
* [bb7c329] Support owner paramater to glance add
* [bf0fec0] Send output of stty test cmd to stderr.
* [98f5347] Fixed db conn recovery issue. Fixes bug 954971.
* [98f6f2e] Set content_type for messages in Qpid notifier.
* [244359e] Avoid leaking secrets into config logging.
* [75da821] Fixes lp959670
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* [86dbfe1] Use unique per-test S3 bucket name.
* [bf0fec0] Send output of stty test cmd to stderr.
* [98f6f2e] Set content_type for messages in Qpid notifier.
* [244359e] Avoid leaking secrets into config logging.
* [75da821] Fixes lp959670
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* [e677abf] Specify location when creating s3 bucket.
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* [f4a7035] Final versioning
* Automated Ubuntu testing build:
* [15d9c8f] Update 'bin/glance add' docstring *_format options
* [b0a608c] Ensure all unauthorized reponses return 403
* [a2dc56a] Avoid leaking s3 credentials into logs.
* [23c222a] Avoid glance-logcapture displaying empty logs.
* [17397a9] Add 'publicize_image' policy
* [c00ba7d] tox tests with run_tests.sh instead of nosetests
* [f6ba144] Don't use auth url to determine service protocol
* [f5603c8] Use tenant/user ids rather than names
* [b3be2e4] Update context middleware with supported headers
* [c5cb723] Fixes LP #957401 - Remove stray output on stderr
* [1f0c4ba] check connection in Listener. refer to Bug #943031
* [fdb56c8] Avoid tests leaking empty tmp dirs.
* [5bd453b] Remove keystone.middleware.glance_auth_token
* [094ba9d] Updating version of Keystone
* [2145c24] nose plugin to capture glance service logs
* [5638fab] Do not error when service does not have 'type'.
* [2e94076] Disambiguates HTTP 401 and HTTP 403 in Glance. Fixes bug
  956513.
* Automated Ubuntu testing build:
* [9681f40] Add policy checks for cache manage middleware
* [eff04c5] Add admin_role option
* Automated Ubuntu testing build:
* [29b035b] Add new UnexpectedStatus exception.
* [eff04c5] Add admin_role option
* Automated Ubuntu testing build:
* [9f2de6c] Remove references to admin_token
* [d759821] Remove dependency on apiv1app from cachemanage
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* [d453def] Remove glance-cache-queue-image
* Automated Ubuntu testing build:
* [d759821] Remove dependency on apiv1app from cachemanage
* [e2e88d8] Return 403 when policy engine denies action
* [6619298] Ensure copy and original image IDs differ.
* Automated Ubuntu testing build:
* [0a19061] Add error checking to get_terminal_size.
* [6619298] Ensure copy and original image IDs differ.
* [182b71e] Include babel.cfg and glance.pot in tarballs
* [3a8103e] Updating authentication docs
* Automated Ubuntu testing build:
* [c593722] Well-formed exception types for 413 & 503.
* [3a8103e] Updating authentication docs
* Automated Ubuntu testing build:
* [182b71e] Include babel.cfg and glance.pot in tarballs
* Automated Ubuntu testing build:
* [3a8103e] Updating authentication docs
* [d9f4cbf] General docs cleanup
* [b6b28d1] Add note about cache config options
* [65b1b84] Change CLIAuth arg names
* [ce33576] Update cli docs
* [691deeb] Remove 'community' doc page
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* [ee2d212] General cleanup
* [f1bc67c] Remove todolist from docs
* [b6b28d1] Add note about cache config options
* [ce33576] Update cli docs
* [691deeb] Remove 'community' doc page
* Automated Ubuntu testing build:
* [d9f4cbf] General docs cleanup
* [f1bc67c] Remove todolist from docs
* [55eb458] Add module name to ClientException
* [691deeb] Remove 'community' doc page
* [6e2f39d] Removing registry spec from docs
* Automated Ubuntu testing build:
* No change rebuild.
* Automated Ubuntu testing build:
* [51a06aa] Retry sendfile on EAGAIN or EBUSY
* [55eb458] Add module name to ClientException
* Automated Ubuntu testing build:
* [1615a1f] Fixes LP#934492 - Allow Null Name
* [95efaf0] Fix typo in tox.ini.
* [4d41027] Glance cache updates to support Keystone Essex.
* [b43b676] updates man page for glance-scrubber. this time with extra
  pep8 scrubbing powers. Fixes bug 908803
* [cb70ff9] Update tox.ini for jenkins.
* [80cd81f] Replaced use of webob.Request.str_param
* [2773170] Update paste file to use service tenant.
* [9e640d0] Update bin/glance to allow for specifying image id
* [630c9a5] Fix deprecated warnings.
* [bbf46b4] Remove trailing whitespaces in regular file
* [c6a626e] add git commit date / sha1 to sphinx html docs
* [4ef665a] Glance skip prompting if stdin isn't a tty
* [d8f0c38] Added first step of babel-based translations.
* Automated Ubuntu testing build:
* [7125728] Refresh SSL cfg after parsing service catalog entry
* [4d41027] Glance cache updates to support Keystone Essex.
* Automated Ubuntu testing build:
* [95efaf0] Fix typo in tox.ini.
* Automated Ubuntu testing build:
* [4d41027] Glance cache updates to support Keystone Essex.
* Automated Ubuntu testing build:
* [b43b676] updates man page for glance-scrubber. this time with extra
  pep8 scrubbing powers. Fixes bug 908803
* [80cd81f] Replaced use of webob.Request.str_param
* [2773170] Update paste file to use service tenant.
* [9e640d0] Update bin/glance to allow for specifying image id
* [630c9a5] Fix deprecated warnings.
* [4ef665a] Glance skip prompting if stdin isn't a tty
* Automated Ubuntu testing build:
* [cb70ff9] Update tox.ini for jenkins.
* [80cd81f] Replaced use of webob.Request.str_param
* [2773170] Update paste file to use service tenant.
* [9e640d0] Update bin/glance to allow for specifying image id
* [630c9a5] Fix deprecated warnings.
* [cb70ff9] Update tox.ini for jenkins. [9e640d0] Update bin/glance to
  allow for specifying image id [d8f0c38] Added first step of babel-
  based translations.
* No change rebuild.
* [bbf46b4] Remove trailing whitespaces in regular file [d8f0c38]
  Added first step of babel-based translations.
* [c6a626e] add git commit date / sha1 to sphinx html docs
* No change rebuild.
* [8d46288] Allow region selection when using V2 keystone [95dc869]
  Fix update of queued image with location set.
* [e653a00] Disallow file:// sources on location or copy-from.
  [95dc869] Fix update of queued image with location set.
* [63f3af7] Progress bar causes intermittent test failures [0613daa]
  Support copy-from for queued images. [2090314] Add checksum to an
  external image during add.
* No change rebuild.
* [7db2075] Complete fix for modification of unowned image [0613daa]
  Support copy-from for queued images.
* [d26f66b] Align to jenkins tox patterns.
* [9593687] Fix MANIFEST.in to include missing files
* [f6e9199] Fix exception name [8efa62d] Create sorting/pagination
  helper function [c83bce1] Support new image copied from external
  storage. [d5539b2] blueprint progressbar-upload-image
* No change rebuild.
* [c0bce06] Correct kernel/ramdisk example in docs [d5539b2] blueprint
  progressbar-upload-image
* [8efa62d] Create sorting/pagination helper function
* [f380c9e] Avoid TestClient error on missing '__mro__' attr
* [5f31371] disk/container_format required on image activate
* [62c913c] Require container & disk formats on image create
* No change rebuild.
* debian/control: Add python-iso8601 to python-glance.
* [f8f9f17] Support non-UTC timestamps in changes-since filter
* [45f9e05] Return 503 if insufficient permission on filestore
* [3b8ff18] Adds README.rst to the tarball.
* [1d2356c] Ensure StorageFull only raised on space starvation
  [b90575d] 003_add_disk_format.py: Avoid deadlock in upgrade
  [59ca8b0] Function uses 'msg' not 'message' [7990cb4] Fix paging
  ties [0f0fe2b] New -k/--insecure command line option
* [3af64e5] Require auth URL if keystone strategy is enabled.
  [59ca8b0] Function uses 'msg' not 'message'
* No change rebuild.
* [b90575d] 003_add_disk_format.py: Avoid deadlock in upgrade
  [0f0fe2b] New -k/--insecure command line option
* [7990cb4] Fix paging ties [0f0fe2b] New -k/--insecure command line
  option [f0832fd] Add a generic tox build environment.
* No change rebuild.
* [40b5ed7] Ensure sane chunk size when pysendfile unavailable.
  [f0832fd] Add a generic tox build environment.
* No change rebuild.
* [56efd27] Fix pep8 error [2fa1ed0] Implement blueprint add-qpid-
  support.
* [c77f4dd] Update Authors file [2fa1ed0] Implement blueprint add-
  qpid-support. [e7b32c1] Include glance/tests/etc [9c2c97f] Force
  auth_strategy=keystone if --auth_url or OS_AUTH_URL is set
* [481929b] Don't fail response if caching failed
* [e4db87c] Make Glance work with SQLAlchemy 0.7 [8043962] Respawn
  glance services on unexpected death.
* No change rebuild.
* [7696ae5] Use sendfile() for zero-copy of uploaded images. [eea25b4]
  Prep tox config for jenkins builds.
* [8df4d1d] Blueprint cli-auth: common cli args [eea25b4] Prep tox
  config for jenkins builds.
* [c6c458e] Get rid of DeprecationWarning during db migration
  [3092156] Add filter validation to glance API [fdb7b21] Fixes LP
  922723 [81ce7b4] Handle access restriction to public unowned image
  [76b894b] Don't force client to supply SSL cert/key
* No change rebuild.
* [132c54f] Add --capture-output option to glance-control. [fdb7b21]
  Fixes LP 922723 [81ce7b4] Handle access restriction to public
  unowned image
* [3092156] Add filter validation to glance API [fdb7b21] Fixes LP
  922723 [81ce7b4] Handle access restriction to public unowned image
* [7c2e325] Typofix is_publi -> is_public [c77776a] Fix Bug #919255
* [593e8c2] Add --await-child option to glance-control.
* [c77776a] Fix Bug #919255
* [16b682d] Cap boto version at 2.1.1
* [28f0dd4] Simplify pep8 output to one line per violation
* [28f2cae] Check service catalogue type rather than name
* No change rebuild.
* [2ce7838] Restore inadvertantly dropped lines. [c713c22] Few small
  cleanups to align with Nova
* No change rebuild.
* [08dbc2a] Include the LICENSE file in the tarball.
* No change rebuild.
* [aaa18a0] Change xattr usage to be more broadly compatible.
* [8ec2f81] Fix mixed usage of 's' and 'self'.
* No change rebuild.
* [180ae89] Adds documentation for policy files. [6cac288] More
  flexible specification of auth credentials. [601fb31] glance-api
  fails fast if default store unsupported [946278d] Bug #909574:
  Glance does not sanity-check given image size on upload [3b2ef8e]
  glance-control need not locate a server's config file (lp#919520)
* [7094e89] Client.add_image() accepts image data as iterable.
  Bug #909574: Glance does not sanity-check given image size on upload
  [3b2ef8e] glance-control need not locate a server's config file
  (lp#919520)
* No change rebuild.
* [601fb31] glance-api fails fast if default store unsupported
  [0db2cfa] Bug#911599 - Location field wiped on update
* [946278d] Bug #909574: Glance does not sanity-check given image size
  on upload [0db2cfa] Bug#911599 - Location field wiped on update
  [2e8e628] Set url's on AuthBadRequest exceptions. [eeb4d1e] Add
  policy checking for basic image operations [41b981c] Swallow
  exception on unsupported image deletion.
* [0db2cfa] Bug#911599 - Location field wiped on update [2e8e628] Set
  url's on AuthBadRequest exceptions. [eeb4d1e] Add policy checking
  for basic image operations [41b981c] Swallow exception on
  unsupported image deletion.
* [eb2ab3a] Return 400 if registry returns 400. [eeb4d1e] Add policy
  checking for basic image operations [41b981c] Swallow exception on
  unsupported image deletion.
* No change rebuild.
* No change rebuild.
* No change rebuild.
* [2e8e628] Set url's on AuthBadRequest exceptions.
* [b712949] Ensure we only send a single content-type header
* [e893b24] Multi-process Glance API server support. [097ced8] Make
  paste.ini file location configurable. [5835b30] Avoid the need for
  users to manually edit PasteDeploy config in order to switch
  pipelines. [14593a3] Split out paste deployment config from the core
  glance *.conf files into corresponding *-paste.ini files.
* No change rebuild.
* [3956c54] Set size metadata correctly for remote images. [b4624ec]
  Fixes LP Bug#913608 - tests should be isolated [6fd0054] Set correct
  Content-Length on cached remote images
* [5835b30] Avoid the need for users to manually edit PasteDeploy
  config in order to switch pipelines. [b4624ec] Fixes LP Bug#913608 -
  tests should be isolated [6fd0054] Set correct Content-Length on
  cached remote images
* [14593a3] Split out paste deployment config from the core glance
  *.conf files into corresponding *-paste.ini files.
* [b4624ec] Fixes LP Bug#913608 - tests should be isolated
* [6fd0054] Set correct Content-Length on cached remote images
* [195e667] Implement retries in notify_kombu [2be1efe] Remove
  assertDictEqual for python 2.6 compatibility.
* [b46401a] Return correct href if bind_host is 0.0.0.0. [2be1efe]
  Remove assertDictEqual for python 2.6 compatibility. [8780360] LP
  Bug#912800 - Delete image remain in cache [e2f9d15] Add
  notifications for sending an image
* No change rebuild.
* No change rebuild.
* [1590dad] Add optional revision field to version number [1cff825]
  Add Fedora clauses to the installing document. [422c1e4] Remove
  doc/Makefile. [d466cec] Fixes incorrect URI scheme for s3 backend
  [9633697] Add comments for swift options in glance-api.conf.
  [f8ae3c4] Split notification strategies out into modules.
* No change rebuild.
* No change rebuild.
* No change rebuild.
* No change rebuild.
* [4844917] Bug #909533: Swift uploads through Glance using
  ridiculously small chunks [1cff825] Add Fedora clauses to the
  installing document. [422c1e4] Remove doc/Makefile. [aba34d1] Fix
  help output for inverse of BoolOpt. [5e5d2eb] PEP8 glance cleanup
  [58532a4] Add more man pages. [668149d] Set execute permissions on
  glance-cache-queue-image.
* No change rebuild.
* No change rebuild.
* No change rebuild.
* debian/glance-registry.postinst: Ensure new database is version_controlled
  before first call of db_sync.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory '.bzr-builddeb'
2=== added file '.bzr-builddeb/default.conf'
3--- .bzr-builddeb/default.conf 1970-01-01 00:00:00 +0000
4+++ .bzr-builddeb/default.conf 2013-04-02 08:55:26 +0000
5@@ -0,0 +1,2 @@
6+[BUILDDEB]
7+merge = True
8
9=== added directory 'debian'
10=== renamed directory 'debian' => 'debian.moved'
11=== added file 'debian/changelog'
12--- debian/changelog 1970-01-01 00:00:00 +0000
13+++ debian/changelog 2013-04-02 08:55:26 +0000
14@@ -0,0 +1,538 @@
15+glance (2012.1.4+stable-20130402-74b067df-0ubuntu1) precise-proposed; urgency=low
16+
17+ [ Adam Gandelman ]
18+ * debian/glance-{registry, api}.logrotate: Fix incorrect logfile
19+ locations. (LP: #1049314)
20+
21+ [ Yolanda Robla Mota ]
22+ * debian/rules: skipping pep8 tests to allow building
23+ * Resynchronize with stable/essex (74b067df):
24+ - [74b067d] v1 api returns location as header for cached images (LP: #1135541)
25+ - [37d4d96] glance image-download can display backend Swift password
26+ (LP: #1098962)
27+ - [efd7e75] Non-admin users can cause public glance images to be deleted
28+ from the backend storage repository (CVE-2012-4573)
29+ - [e6be061] Jenkins jobs fail because of incompatibility between sqlalchemy-
30+ migrate and the newest sqlalchemy-0.8.0b1 (LP: #1073569)
31+
32+ * Dropped patches, superseeded by snapshot:
33+ - debian/patches/CVE-2012-4573.patch: [efd7e75]
34+
35+ -- Yolanda Robla Mota <yolanda.robla@canonical.com> Mon, 17 Dec 2012 10:56:46 +0000
36+
37+glance (2012.1.3+stable~20120821-120fcf-0ubuntu1.2) precise-security; urgency=low
38+
39+ * SECURITY UPDATE: deletion of arbitrary public and shared images via
40+ authenticated user
41+ - debian/patches/CVE-2012-4573.patch: adjust glance/api/v1/images.py to
42+ ensure image is owned by user before delayed_deletion
43+ - CVE-2012-4573
44+
45+ -- Jamie Strandboge <jamie@ubuntu.com> Thu, 08 Nov 2012 07:19:39 -0600
46+
47+glance (2012.1.3+stable~20120821-120fcf-0ubuntu1) precise-proposed; urgency=low
48+
49+ * New upstream snapshot. (LP: #1041120)
50+ * Resynchronzie with stable/essex:
51+ - Glance add uploads a double image if using ssl and images is smaller
52+ than 4k. (LP: #1007093)
53+ - If response.environ is None, instance fails to spawn.
54+ (LP: #1010560)
55+ - exception.BadStoreURL exposes sensitive information to end users.
56+ (LP: #1012268)
57+ - glance-cache.conf needs metadata encryption key (LP: #1012752)
58+ - image.upload notification doesn't report size (LP: #1018246)
59+ - Admins should be able to share image regardless of ownership.
60+ (LP: #1021054)
61+ - Glance scrubber date formatting fails with postgres (LP: #1022369)
62+ - Support zero-size image creation. (LP: #1025353)
63+ - Image id not contained in swift chunk debug message. (LP: #1028433)
64+ - qpid_heartbeat setting is ineffective. (LP: #1032314)
65+ - Image properties that reference image ids are not updated to UUIDs.
66+ (LP: #975651)
67+ - Migration 012_id_to_uuid attempts to convert IDs twice for non-sqlite
68+ databases. (LP: #975655)
69+ - multiprocess glance-api failed to exit when stopped by ctrl+c.
70+ (LP: #978130)
71+ - /usr/bin/glance's built-in pager breaks redirection.
72+ (LP: #978610)
73+ - Content-Length and Transfer-Encoding are mutually exclusive HTTP headers
74+ (LP: #981332)
75+ - glance add command - incorrect help text (LP: #997565)
76+ * debian/patches/convert_properties_to_uuid.patch: Dropped no longer
77+ needed.
78+ * debian/patches/fix-pep8-ubuntu.patch: Dropped no longer needed.
79+
80+ -- Adam Gandelman <adamg@canonical.com> Fri, 24 Jun 2012 03:14:33 -0400
81+
82+glance (2012.1+stable~20120608-5462295-0ubuntu2.2) precise-proposed; urgency=low
83+
84+ * New usptream snapshot. (LP: #1010473)
85+ * Resynchronize with stable/essex:
86+ - 5462295 Fix i18n in glance.notifier.notify_kombu. (LP: #983829)
87+ - 7a9e3a7 Omit Content-Length on chunked transfer. (LP: #981332)
88+ - 5838b63 Fix content type for qpid notifier. (LP: #980872)
89+ - 98913da search for logger in PATH. Fixes (LP: #978907)
90+ - f136e7e Ensure swift auth URL includes trailing slash. Fixes (LP: #979745)
91+ * debian/rules: Add ability to build tarballs from a git snapshot.
92+ * debian/patches/fix-pep8-ubuntu.patch: Fix pep8 errors.
93+
94+ -- Chuck Short <zulcss@ubuntu.com> Tue, 05 Jun 2012 10:43:12 -0400
95+
96+glance (2012.1-0ubuntu2.1) precise; urgency=low
97+
98+ * debian/patches/disable-swift-tests.patch: Fix indentation, allowing tests
99+ to pass when not run on buildds or other constrained environments,
100+ refreshed.
101+
102+ -- Adam Gandelman <adamg@canonical.com> Tue, 29 May 2012 10:20:52 -0700
103+
104+glance (2012.1-0ubuntu2) precise; urgency=low
105+
106+ [ Adam Gandelman ]
107+ * debian/patches/disable_db_table_auto_create.patch: Disable auto-creation
108+ of database schema at service start, inspect for consistenty and advise
109+ running manual migrations instead.
110+ * debian/patches/fix_migration_012_foreign_keys.patch: Fix a migration issue
111+ around missing FKs. Cherry-picked from upstream. Can be dropped with
112+ first stable update.
113+ * debian/patches/convert_properties_to_uuid.patch: Fixes migration 012 to
114+ also convert kernel_id and ramdisk_ids to UUID. Cherry picked from upstream.
115+ Can be dropped with first stable update (LP: #975651)
116+ * debian/glance-common.postinst: Clean up, fix purging issue due to poor
117+ us of conditionals
118+ * debian/glance-registry.postinst: Ensure new database is version_controlled
119+ before first call of db_sync.
120+
121+ [ Chuck Short ]
122+ * debian/control: Fix upgrades from oneiric to precise. (LP: #974592)
123+
124+ -- Adam Gandelman <adamg@canonical.com> Thu, 12 Apr 2012 15:02:08 -0700
125+
126+glance (2012.1-0ubuntu1) precise; urgency=low
127+
128+ * New upstream release.
129+
130+ -- Chuck Short <zulcss@ubuntu.com> Thu, 05 Apr 2012 10:24:28 -0400
131+
132+glance (2012.1~rc3-0ubuntu1) precise; urgency=low
133+
134+ * New upstream release.
135+ * debian/control: Add sqlite3 as a Build-Depends (for test suite)
136+
137+ -- Adam Gandelman <adamg@canonical.com> Tue, 03 Apr 2012 16:06:52 -0700
138+
139+glance (2012.1~rc2-0ubuntu1) precise; urgency=low
140+
141+ * New upstream release.
142+ * debian/rules: Fail build if testsuite fails.
143+ * debian/patches/disable-swift-tests.patch: Disable swift tests that
144+ require a swift server setup.
145+ * debian/patches/disable-network-for-docs.patch: Disable network for
146+ building docs.
147+
148+ -- Chuck Short <zulcss@ubuntu.com> Mon, 02 Apr 2012 10:52:36 -0400
149+
150+glance (2012.1~rc1-0ubuntu2) precise; urgency=low
151+
152+ * New upstream release. This is hopefully the last release before
153+ final.
154+ * debian/patches/0001-Fix-depreceated-warnings.patch: Dropped.
155+
156+ -- Chuck Short <zulcss@ubuntu.com> Wed, 21 Mar 2012 09:47:54 -0400
157+
158+glance (2012.1~rc1~20120316.1354-0ubuntu1) precise; urgency=low
159+
160+ * New upstream release.
161+
162+ -- Adam Gandelman <adamg@canonical.com> Fri, 16 Mar 2012 16:23:34 -0400
163+
164+glance (2012.1~rc1~20120309.1315-0ubuntu2) precise; urgency=low
165+
166+ * debian/glance-common.postinst
167+ - Give adm group read permission to /var/log/glance (LP: #950935)
168+
169+ -- Paul Belanger <paul.belanger@polybeacon.com> Fri, 09 Mar 2012 11:04:43 -0500
170+
171+glance (2012.1~rc1~20120309.1315-0ubuntu1) precise; urgency=low
172+
173+ * New upstream version.
174+ * debian/control, debian/glance-client.install,
175+ glance-common.install: Add glance-client package. (LP: #928378)
176+ * debian/watch: Fix watch file.
177+ * Fix lintian warnings.
178+
179+ -- Chuck Short <zulcss@ubuntu.com> Fri, 09 Mar 2012 11:33:12 -0500
180+
181+glance (2012.1~e4-0ubuntu1) precise; urgency=low
182+
183+ * New upstream release.
184+ * debian/control: Add python date-util. (LP: #943748)
185+ * debian/control: Add ca-certificates. (LP: #932800)
186+ * debian/control: Add python-iso8601 to fix testsuite failures.
187+
188+ -- Chuck Short <zulcss@ubuntu.com> Tue, 06 Mar 2012 09:30:41 -0500
189+
190+glance (2012.1~e4~20120224.1290-0ubuntu1) precise; urgency=low
191+
192+ [ Adam Gandelman ]
193+ * debian/control: Add new dependency to python-glance: python-iso8601.
194+
195+ [ Chuck Short ]
196+ * New upstream release.
197+
198+ -- Chuck Short <zulcss@ubuntu.com> Thu, 01 Mar 2012 09:04:54 -0500
199+
200+glance (2012.1~e4~20120217.1275-0ubuntu1) precise; urgency=low
201+
202+ [ Chuck Short ]
203+ * New upstream release.
204+
205+ [ Dave Walker (Daviey ]
206+ * debian/patches/fix-broken-unittests.patch: Back out patch as it seems
207+ to be present in upstream git, but missing in upstream tarballs. Which
208+ is blocking CI testing.
209+
210+ -- Chuck Short <zulcss@ubuntu.com> Fri, 17 Feb 2012 09:50:40 -0500
211+
212+glance (2012.1~e4~20120209.1254-0ubuntu1) precise; urgency=low
213+
214+ * New upstream version.
215+ * debian/patches/fix-broken-unittests.patch: Fix broken unittests.
216+
217+ -- Chuck Short <zulcss@ubuntu.com> Fri, 10 Feb 2012 10:04:58 -0500
218+
219+glance (2012.1~e3-0ubuntu1) precise; urgency=low
220+
221+ [Chuck Short]
222+ * New upstream version.
223+ * debian/control: Add python-crypto as a build dependency.
224+
225+ [Adam Gandleman]
226+ * debian/glance-api.install: Add policy.json
227+
228+ -- Chuck Short <zulcss@ubuntu.com> Thu, 26 Jan 2012 09:22:37 -0500
229+
230+glance (2012.1~e3~20120120.1206-0ubuntu1) precise; urgency=low
231+
232+ [Chuck Short]
233+ * New upstream release.
234+
235+ [Adam Gandleman]
236+ * debian/glance-api.install, glance-registry.install: Install
237+ new paste configs that have been split among servers.
238+
239+ -- Chuck Short <zulcss@ubuntu.com> Fri, 20 Jan 2012 14:37:16 -0500
240+
241+glance (2012.1~e3~20120112.1060-0ubuntu1) precise; urgency=low
242+
243+ [Chuck Short]
244+ * New upstream release.
245+ * Drop debian/pyversions.
246+ * debian/glance-api.logrotate, debian/glance-registry.logroate:
247+ Add logrotate files. (LP: #904216)
248+ * Update vcs information.
249+ * Fix up some lintian warnings.
250+
251+ [Adam Gandleman]
252+ * debian/control: Drop python-support from Build-Depends
253+ * debian/python-glance.postinst: Removed. python-support is needed
254+ for update-python-modules but not a dependency. Let dh_python2
255+ generate instead. (LP: #907543)
256+
257+ -- Chuck Short <zulcss@ubuntu.com> Fri, 13 Jan 2012 10:50:40 +0100
258+
259+glance (2012.1~e2-0ubuntu4) precise; urgency=low
260+
261+ * python-glance.postinst: Remove, obsolete call to update-python-modules.
262+
263+ -- Matthias Klose <doko@ubuntu.com> Mon, 02 Jan 2012 13:02:24 +0100
264+
265+glance (2012.1~e2-0ubuntu2) precise; urgency=low
266+
267+ * debian/glance-registry.postinst: Fix typo in postinst.
268+
269+ -- Chuck Short <zulcss@ubuntu.com> Fri, 16 Dec 2011 15:57:19 -0500
270+
271+glance (2012.1~e2-0ubuntu1) precise; urgency=low
272+
273+ * New upstream release.
274+ * Merge upstream debian packaging changes.
275+ * debian/*.upstart: Move upstart jobs to the approiate packages.
276+ * debian/glance-api.postinst, debian/glance-registry.postinst:
277+ Move configuration into glance-common.postinst, because it was
278+ doing the same thing.
279+ * debian/glance-common.prerm: Dropped, remove cruft.
280+ * debian/glance-api.prerm: Fixed bashism.
281+ * debian/glance-registry.prerm: Fixed bashism.
282+ * debian/glance-common.postinst: Change shell back to /bin/false.
283+ * debian/glance.dirs, debian/glance-common.dirs: Merged, removed
284+ unecessary glance.dirs.
285+ * debian/control: Re-add missing python-dependencies.
286+ * debian/glance-registry.postinst: Create the database when installing
287+ glance-registry.
288+ * debian/glance-common.postin: Re-add approiate permissions.
289+
290+ -- Chuck Short <zulcss@ubuntu.com> Fri, 16 Dec 2011 14:19:59 -0500
291+
292+glance (2012.1~e2~20111209.1132-0ubuntu2) precise; urgency=low
293+
294+ [ Adam Gandelman ]
295+ * debian/glance.postinst: Specify shell when migrating sqllite
296+ database as glance user. (LP: #902429)
297+
298+ -- Chuck Short <zulcss@ubuntu.com> Mon, 12 Dec 2011 10:18:49 -0500
299+
300+glance (2012.1~e2~20111209.1132-0ubuntu1) precise; urgency=low
301+
302+ * debian/glance.postinst, debian/glance.glance-api.upstart,
303+ glance.glance-registry.upstart: Switch shell to /bin/false.
304+ (LP: #890362)
305+
306+ -- Chuck Short <zulcss@ubuntu.com> Fri, 09 Dec 2011 15:34:33 -0500
307+
308+glance (2012.1~e2~20111201.1123-0ubuntu2) precise; urgency=low
309+
310+ * debian/control: Add dependencies previously removed from python-glance
311+ to glance package where they are actually required. (LP: #899970).
312+
313+ -- Chuck Short <zulcss@ubuntu.com> Thu, 08 Dec 2011 11:23:49 -0500
314+
315+glance (2012.1~e2~20111201.1123-0ubuntu1) precise; urgency=low
316+
317+ [Chuck Short]
318+ * New upstream release.
319+
320+ [Jay Pipes]
321+ * Removes now-unnecessary dependencies from client package
322+ * Rewrote the description for the Glance project to remove
323+ ancient language about Teller and Parallax.
324+
325+ -- Chuck Short <zulcss@ubuntu.com> Fri, 02 Dec 2011 12:53:54 -0500
326+
327+glance (2012.1~e2~20111125.1118-0ubuntu1) precise; urgency=low
328+
329+ * New upstream version.
330+
331+ -- Chuck Short <zulcss@ubuntu.com> Fri, 25 Nov 2011 10:53:04 -0500
332+
333+glance (2012.1~e2~20111117.1112-0ubuntu1) precise; urgency=low
334+
335+ * New upstrem release.
336+
337+ -- Chuck Short <zulcss@ubuntu.com> Fri, 18 Nov 2011 09:07:13 -0500
338+
339+glance (2012.1~e1-0ubuntu1) precise; urgency=low
340+
341+ * New upstream release.
342+ * Sync with upstream changes.
343+
344+ -- Chuck Short <zulcss@ubuntu.com> Fri, 11 Nov 2011 13:50:35 -0500
345+
346+glance (2012.1~e1~20111021.1056-0ubuntu1) precise; urgency=low
347+
348+ * New upstream release.
349+ * Dropped patches:
350+ - debian/patches/lp_845788_glance_client_zero_length.patch
351+ - debian/patches/lp_850425_remote_swift_image_streaming.patch
352+ * debian/control:
353+ - Add dependency on python-httplib2. (LP: #779311)
354+ - Add dependency on python-paste.
355+ * debian/patches/sql_conn.patch: Updated for update config file.
356+ * debian/glance.install: Update for new config files.
357+
358+ -- Chuck Short <zulcss@ubuntu.com> Fri, 21 Oct 2011 14:11:04 -0400
359+
360+glance (2011.3-0ubuntu4) oneiric; urgency=low
361+
362+ [ Adam Gandelman ]
363+ * debian/glance.postinst: Restrict permissions of /etc/glance/ and
364+ /var/log/glance/ (LP: #862844)
365+
366+ -- Chuck Short <zulcss@ubuntu.com> Fri, 30 Sep 2011 16:00:33 -0400
367+
368+glance (2011.3-0ubuntu3) oneiric; urgency=low
369+
370+ [Scott Moser]
371+ * fix bug with glance and swift driver that resulted in zero length
372+ images. (LP: #845788)
373+
374+ [Chuck Short]
375+ * Make streaming images from swift actually usuable.
376+ (LP: #850425)
377+
378+ -- Chuck Short <zulcss@ubuntu.com> Tue, 27 Sep 2011 14:49:05 -0400
379+
380+glance (2011.3-0ubuntu2) oneiric; urgency=low
381+
382+ * debian/glance.{postinst,postrm}: Fix syntax error, /dev/null redirect
383+ typos. Only remove user/group in .postrm if they exist. (LP: #857021)
384+
385+ -- Adam Gandelman <adamg@canonical.com> Thu, 22 Sep 2011 21:03:26 -0700
386+
387+glance (2011.3-0ubuntu1) oneiric; urgency=low
388+
389+ * New upstream release.
390+ * debian/glance.postinst: Add glance group and add glance user to it.
391+ (LP: #851860)
392+
393+ -- Chuck Short <zulcss@ubuntu.com> Thu, 22 Sep 2011 10:45:33 -0400
394+
395+glance (2011.3~rc~20110915.r1007-0ubuntu1) oneiric; urgency=low
396+
397+ [ Chuck Short ]
398+ * New upstream release.
399+ * debian/rules: Dont fail to build because of broken testsuite.
400+
401+ [ Monty Taylor ]
402+ * Added branch condition to fix build on lucid.
403+
404+ -- Monty Taylor <mordred@inaugust.com> Mon, 19 Sep 2011 13:03:41 -0400
405+
406+glance (2011.3~rc~20110908.r1005-0ubuntu1) oneiric; urgency=low
407+
408+ * New upstream release.
409+
410+ -- Chuck Short <zulcss@ubuntu.com> Fri, 09 Sep 2011 14:59:27 -0400
411+
412+glance (2011.3~rc~20110831.1002-0ubuntu1) oneiric; urgency=low
413+
414+ * New upstream release.
415+
416+ -- Chuck Short <zulcss@ubuntu.com> Fri, 02 Sep 2011 13:50:13 -0400
417+
418+glance (2011.3~d4-0ubuntu1) oneiric; urgency=low
419+
420+ [Chuck Short]
421+ * New upstream release.
422+
423+ [ Monty Taylor ]
424+ * New upstream release.
425+ * Added python-kombu as Depends and Build-depends.
426+
427+ [ Scott Moser ]
428+ * glance.postinst: use a trailing slash when using chown on directories
429+
430+ [ Ben Howard ]
431+ * Install /etc/glance-scrubber.conf by default (LP: #816972)
432+ * Remove glance user and logs on purge (LP: #828721)
433+ * Converted dh to use "--with python2".
434+ * Incremented standards version to 3.9.2; no changes required
435+
436+ -- Chuck Short <zulcss@ubuntu.com> Fri, 26 Aug 2011 10:13:39 -0400
437+
438+glance (2011.3~d4~20110811.980-0ubuntu1) oneiric; urgency=low
439+
440+ * New upstream release.
441+
442+ -- Chuck Short <zulcss@ubuntu.com> Fri, 12 Aug 2011 05:23:21 -0400
443+
444+glance (2011.3~d3~20110709.152-0ubuntu2) UNRELEASED; urgency=low
445+
446+ [ Adam Gandelman ]
447+ * Add python-xattr to Depends of python-glance
448+
449+ [ Jay Pipes ]
450+ * Add python-boto to Build-depends.
451+
452+ [ Dan Prince ]
453+ * Updates to support glance caching config files and directories.
454+
455+ -- Monty Taylor <mordred@inaugust.com> Tue, 02 Aug 2011 08:55:11 -0700
456+
457+glance (2011.3~d3~20110709.152-0ubuntu1) UNRELEASED; urgency=low
458+
459+ * New upstream snapshot.
460+ * Remove python-daemon as a dependency again.
461+ * Make Vcs-* headers point to the packaging trunk (instead of the
462+ natty branch).
463+
464+ -- Soren Hansen <soren@ubuntu.com> Tue, 12 Jul 2011 21:57:41 +0200
465+
466+glance (2011.3~d3~20110707.151-0ubuntu1) oneiric; urgency=low
467+
468+ * New upstream release.
469+ * debian/control: python-hashlib
470+
471+ -- Chuck Short <zulcss@ubuntu.com> Fri, 08 Jul 2011 12:59:49 -0400
472+
473+glance (2011.3~d2-0ubuntu2) oneiric; urgency=low
474+
475+ * debian/control: Add python-httplib2.
476+
477+ -- Chuck Short <zulcss@ubuntu.com> Thu, 30 Jun 2011 17:42:46 +0100
478+
479+glance (2011.3~d2-0ubuntu1) oneiric; urgency=low
480+
481+ [Chuck Short]
482+ * New upstream release.
483+
484+ [Adam Gandelman]
485+ * Remove shell redirects in upstart jobs to ensure correct permissions
486+ on logfiles. (LP: #784837)
487+
488+ -- Chuck Short <zulcss@ubuntu.com> Thu, 30 Jun 2011 17:20:19 +0100
489+
490+glance (2011.3~d1-0ubuntu2) UNRELEASED; urgency=low
491+
492+ * debian/control: Dropped python-daemon, its not used anywhere.
493+
494+ -- Chuck Short <zulcss@ubuntu.com> Thu, 23 Jun 2011 15:37:22 -0400
495+
496+glance (2011.3~d1-0ubuntu1) oneiric; urgency=low
497+
498+ * New Upstream release.
499+
500+ -- Chuck Short <zulcss@ubuntu.com> Thu, 02 Jun 2011 09:38:43 -0400
501+
502+glance (2011.2~bzr132-0ubuntu1) oneiric; urgency=low
503+
504+ [ Soren Hansen ]
505+ * Fix accidentally inverted logic that protects against upgrading
506+ shared databases.
507+ * Fix the call that is supposed to upgrade the sqlite database.
508+ * Make sure python modules are completely configured once python-
509+ glance's postinst is done. (LP: #778463)
510+ * Make sure doc/build exists once we try to build docs. We remove it
511+ on clean, and older versions of sphinx do not make sure to create
512+ it.
513+
514+ [ Dan Prince ]
515+ * Add support for DEB_BUILD_OPTIONS=nocheck,nodocs.
516+ * Updated to support new glance-api.conf and glance-registry.conf files.
517+ * Updated log file locations in the upstart scripts to match new config
518+ file defaults.
519+
520+ -- Soren Hansen <soren@ubuntu.com> Wed, 25 May 2011 15:57:15 +0200
521+
522+glance (2011.2-0ubuntu1) natty; urgency=low
523+
524+ * New upstream version.
525+
526+ -- Chuck Short <zulcss@ubuntu.com> Fri, 15 Apr 2011 08:18:16 -0400
527+
528+glance (2011.2~bzr108-0ubuntu1) natty; urgency=low
529+
530+ [ Soren Hansen ]
531+ * Run test suite during build
532+ * Add pep8 as a build-dependency.
533+ * Add python-{daemon,eventlet,sqlalchemy} as dependencies of python-
534+ glance. Add python-argparse as a dependency of glance.
535+ * Add dependency on python-pastedeploy and python-migrate.
536+ * Remove deps on Twisted and gflags.
537+ * Add curl to build-depends. The test suite needs it.
538+ * Add dep on python-argparse.
539+ * Build-depend on python-swift. The test suite needs the Swift client.
540+ * Install glance-api and glance-registry upstart jobs. (LP: #757404)
541+ * Create and chown /var/log/glance directory on install.
542+ * Install sample config by default.
543+ * Create db on install.
544+
545+ -- Chuck Short <zulcss@ubuntu.com> Tue, 12 Apr 2011 09:52:06 -0400
546+
547+glance (0.1.3pre~bzr39-0ubuntu1) natty; urgency=low
548+
549+ * Initial upload.
550+
551+ -- Soren Hansen <soren@ubuntu.com> Wed, 19 Jan 2011 12:01:32 +0100
552+
553
554=== added file 'debian/compat'
555--- debian/compat 1970-01-01 00:00:00 +0000
556+++ debian/compat 2013-04-02 08:55:26 +0000
557@@ -0,0 +1,1 @@
558+7
559
560=== added file 'debian/control'
561--- debian/control 1970-01-01 00:00:00 +0000
562+++ debian/control 2013-04-02 08:55:26 +0000
563@@ -0,0 +1,154 @@
564+Source: glance
565+Section: net
566+Priority: extra
567+Maintainer: Ubuntu OpenStack <openstack-packaging@lists.ubuntu.com>
568+Build-Depends: debhelper (>= 7.0.50),
569+ python-all (>= 2.6),
570+ python-all-dev (>= 2.6.6-3~),
571+ sqlite3
572+Build-Depends-Indep:
573+ python-setuptools,
574+ python-sphinx,
575+ python-sqlalchemy-ext | python-sqlalchemy (<< 0.6.3-2),
576+ python-nose,
577+ python-mox,
578+ python-webob,
579+ python-routes,
580+ python-eventlet,
581+ python-pastedeploy,
582+ python-paste,
583+ python-migrate,
584+ python-argparse,
585+ python-httplib2 (>= 0.6.0),
586+ python-swift,
587+ python-boto,
588+ python-crypto,
589+ python-kombu,
590+ python-dateutil,
591+ python-iso8601,
592+ curl,
593+ pep8
594+Standards-Version: 3.9.3
595+XS-Python-Version: >= 2.6
596+Homepage: http://launchpad.net/glance
597+Vcs-Browser: http://bazaar.launchpad.net/~ubuntu-server-dev/glance/essex/files
598+Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-server-dev/glance/essex
599+
600+Package: python-glance
601+Architecture: all
602+Section: python
603+Depends: ${python:Depends}, ${misc:Depends},
604+ python-webob,
605+ python-pastedeploy,
606+ python-argparse,
607+ python-kombu,
608+ python-httplib2,
609+ python-iso8601,
610+ python-dateutil,
611+ python-crypto
612+Provides: ${python:Provides}
613+XB-Python-Version: ${python:Versions}
614+Description: OpenStack Image Registry and Delivery Service - Python library
615+ The Glance project provides an image registration and discovery service
616+ and an image delivery service. These services are used
617+ in conjunction by Nova to deliver images from object stores, such as
618+ OpenStack's Swift service, to Nova's compute nodes.
619+ .
620+ This package contains the Python libraries.
621+
622+Package: glance
623+Architecture: all
624+Section: python
625+Depends: ${python:Depends}, ${misc:Depends},
626+ python-glance (= ${source:Version}),
627+ python-routes,
628+ python-eventlet,
629+ python-migrate,
630+ python-sqlalchemy-ext | python-sqlalchemy (<< 0.6.3-2),
631+ python-crypto,
632+ python-xattr,
633+ glance-api (= ${source:Version}),
634+ glance-registry (= ${source:Version}),
635+ ca-certificates,
636+ adduser
637+Description: OpenStack Image Registry and Delivery Service - Daemons
638+ The Glance project provides an image registration and discovery service
639+ and an image delivery service. These services are used
640+ in conjunction by Nova to deliver images from object stores, such as
641+ OpenStack's Swift service, to Nova's compute nodes.
642+ .
643+ This package contains the daemons.
644+
645+Package: python-glance-doc
646+Architecture: all
647+Section: doc
648+Depends: libjs-jquery, ${misc:Depends}
649+Description: OpenStack Image Registry and Delivery Service - Documentation
650+ The Glance project provides an image registration and discovery service
651+ (Parallax) and an image delivery service (Teller). These services are used
652+ in conjunction by Nova to deliver images from object stores, such as
653+ OpenStack's Swift service, to Nova's compute nodes.
654+ .
655+ This package contains the documentation.
656+
657+Package: glance-common
658+Architecture: all
659+Section: python
660+Depends: ${python:Depends}, ${misc:Depends},
661+ python-eventlet,
662+ python-glance (= ${source:Version}),
663+ python-migrate,
664+ python-routes,
665+ python-sqlalchemy-ext | python-sqlalchemy (<< 0.6.3-2),
666+ python-xattr,
667+ adduser
668+Breaks: glance ( <= 2011.3-0ubuntu4.1 )
669+Replaces: glance ( <= 2011.3-0ubuntu4.1 )
670+Description: OpenStack Image Registry and Delivery Service - Common
671+ The Glance project provides an image registration, discovery and
672+ delivery service. These services may be used as stand-along services, and
673+ they may also be used by Nova to deliver images from object stores, such as
674+ OpenStack's Swift service, to Nova's compute nodes.
675+ .
676+ This package contains the glance common.
677+
678+Package: glance-api
679+Architecture: all
680+Section: python
681+Replaces: glance (<< 2012.1~e1~20110919.1021-0ubuntu2)
682+Depends: ${python:Depends}, ${misc:Depends}, glance-common (= ${source:Version})
683+Recommends: glance-client
684+Description: OpenStack Image Registry and Delivery Service - API
685+ The Glance project provides an image registration, discovery and
686+ delivery service. These services may be used as stand-along services, and
687+ they may also be used by Nova to deliver images from object stores, such as
688+ OpenStack's Swift service, to Nova's compute nodes.
689+ .
690+ This package contains the glance api server.
691+
692+Package: glance-registry
693+Architecture: all
694+Section: python
695+Replaces: glance (<< 2012.1~e1~20110919.1021-0ubuntu2)
696+Depends: ${python:Depends}, ${misc:Depends}, glance-common (= ${source:Version})
697+Recommends: glance-client
698+Description: OpenStack Image Registry and Delivery Service - Registry
699+ The Glance project provides an image registration, discovery and
700+ delivery service. These services may be used as stand-along services, and
701+ they may also be used by Nova to deliver images from object stores, such as
702+ OpenStack's Swift service, to Nova's compute nodes.
703+ .
704+ This package contains the glance registry server.
705+
706+Package: glance-client
707+Architecture: all
708+Section: python
709+Replaces: glance (<< 2012.1~e1~20110919.1021-0ubuntu2)
710+Depends: ${python:Depends}, ${misc:Depends}, glance-common (= ${source:Version})
711+Description: OpenStack Image Registry and Delivery Service - Registry
712+ The Glance project provides an image registration, discovery and
713+ delivery service. These services may be used as stand-along services, and
714+ they may also be used by Nova to deliver images from object stores, such as
715+ OpenStack's Swift service, to Nova's compute nodes.
716+ .
717+ This package contains the glance client.
718
719=== added file 'debian/copyright'
720--- debian/copyright 1970-01-01 00:00:00 +0000
721+++ debian/copyright 2013-04-02 08:55:26 +0000
722@@ -0,0 +1,24 @@
723+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
724+Name: glance
725+Source: https://code.launchpad.net/glance
726+
727+Files: *
728+Copyright: 2010 United States Government as represented by the Administrator of the National Aeronautics and Space Administration.
729+Copyright: 2010-2011 OpenStack LLC
730+Copyright: Others (See individual files for more details)
731+License: Apache-2
732+ Licensed under the Apache License, Version 2.0 (the "License");
733+ you may not use this file except in compliance with the License.
734+ You may obtain a copy of the License at
735+ .
736+ http://www.apache.org/licenses/LICENSE-2.0
737+ .
738+ Unless required by applicable law or agreed to in writing, software
739+ distributed under the License is distributed on an "AS IS" BASIS,
740+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
741+ See the License for the specific language governing permissions and
742+ limitations under the License.
743+ .
744+ On Debian-based systems the full text of the Apache version 2.0 license
745+ can be found in `/usr/share/common-licenses/Apache-2.0'.
746+
747
748=== added file 'debian/glance-api.dirs'
749--- debian/glance-api.dirs 1970-01-01 00:00:00 +0000
750+++ debian/glance-api.dirs 2013-04-02 08:55:26 +0000
751@@ -0,0 +1,5 @@
752+/var/lib/glance/images
753+/var/lib/glance/image-cache
754+/var/lib/glance/image-cache/incomplete
755+/var/lib/glance/image-cache/invalid
756+/var/lib/glance/image-cache/queue
757
758=== added file 'debian/glance-api.glance-api.upstart'
759--- debian/glance-api.glance-api.upstart 1970-01-01 00:00:00 +0000
760+++ debian/glance-api.glance-api.upstart 2013-04-02 08:55:26 +0000
761@@ -0,0 +1,9 @@
762+description "Glance API server"
763+author "Soren Hansen <soren@linux2go.dk>"
764+
765+start on (local-filesystems and net-device-up IFACE!=lo)
766+stop on runlevel [016]
767+
768+respawn
769+
770+exec su -s /bin/sh -c "exec glance-api" glance
771
772=== added file 'debian/glance-api.install'
773--- debian/glance-api.install 1970-01-01 00:00:00 +0000
774+++ debian/glance-api.install 2013-04-02 08:55:26 +0000
775@@ -0,0 +1,13 @@
776+usr/bin/glance-api
777+usr/bin/glance-cache-manage
778+usr/bin/glance-scrubber
779+usr/bin/glance-cache-prefetcher
780+usr/bin/glance-cache-cleaner
781+usr/bin/glance-cache-pruner
782+etc/glance-api.conf etc/glance
783+etc/glance-api-paste.ini etc/glance
784+etc/glance-cache.conf etc/glance
785+etc/glance-cache-paste.ini etc/glance
786+etc/glance-scrubber.conf etc/glance
787+etc/glance-scrubber-paste.ini etc/glance
788+etc/policy.json etc/glance
789
790=== added file 'debian/glance-api.logrotate'
791--- debian/glance-api.logrotate 1970-01-01 00:00:00 +0000
792+++ debian/glance-api.logrotate 2013-04-02 08:55:26 +0000
793@@ -0,0 +1,7 @@
794+/var/log/glance/api.log {
795+ daily
796+ missingok
797+ compress
798+ delaycompress
799+ notifempty
800+}
801
802=== added file 'debian/glance-api.prerm'
803--- debian/glance-api.prerm 1970-01-01 00:00:00 +0000
804+++ debian/glance-api.prerm 2013-04-02 08:55:26 +0000
805@@ -0,0 +1,13 @@
806+#!/bin/sh
807+
808+set -e
809+
810+case $1 in
811+ remove|purge)
812+ if [ -x /etc/init.d/glance-api ]; then
813+ invoke-rc.d glance-api stop || true
814+ fi
815+ ;;
816+esac
817+
818+#DEBHELPER#
819
820=== added file 'debian/glance-client.install'
821--- debian/glance-client.install 1970-01-01 00:00:00 +0000
822+++ debian/glance-client.install 2013-04-02 08:55:26 +0000
823@@ -0,0 +1,1 @@
824+usr/bin/glance
825
826=== added file 'debian/glance-common.dirs'
827--- debian/glance-common.dirs 1970-01-01 00:00:00 +0000
828+++ debian/glance-common.dirs 2013-04-02 08:55:26 +0000
829@@ -0,0 +1,6 @@
830+/etc/glance/
831+/var/lib/glance/
832+/var/log/glance/
833+/var/lib/glance/image-cache
834+/var/lib/glance/images
835+/var/log/glance/
836
837=== added file 'debian/glance-common.install'
838--- debian/glance-common.install 1970-01-01 00:00:00 +0000
839+++ debian/glance-common.install 2013-04-02 08:55:26 +0000
840@@ -0,0 +1,2 @@
841+usr/bin/glance-manage
842+usr/bin/glance-control
843
844=== added file 'debian/glance-common.postinst'
845--- debian/glance-common.postinst 1970-01-01 00:00:00 +0000
846+++ debian/glance-common.postinst 2013-04-02 08:55:26 +0000
847@@ -0,0 +1,21 @@
848+#!/bin/sh
849+
850+set -e
851+
852+if [ "$1" = "configure" ]
853+then
854+ if ! getent group glance > /dev/null 2>&1
855+ then
856+ addgroup --system glance >/dev/null
857+ fi
858+ if ! getent passwd glance > /dev/null 2>&1
859+ then
860+ adduser --system --home /var/lib/glance --ingroup glance --no-create-home --shell /bin/false glance
861+ fi
862+ chown -R glance:adm /var/log/glance/
863+ chmod 0750 /var/log/glance/
864+ chown glance:glance -R /var/lib/glance/ /etc/glance/
865+ chmod 0700 /etc/glance/
866+fi
867+
868+#DEBHELPER#
869
870=== added file 'debian/glance-common.postrm'
871--- debian/glance-common.postrm 1970-01-01 00:00:00 +0000
872+++ debian/glance-common.postrm 2013-04-02 08:55:26 +0000
873@@ -0,0 +1,16 @@
874+#!/bin/sh
875+
876+set -e
877+
878+case $1 in
879+ purge)
880+ if (which deluser && getent passwd glance) > /dev/null 2>&1; then
881+ deluser --system --quiet --backup-to /var/lib glance
882+ fi
883+ if (which delgroup && getent group glance) > /dev/null 2>&1; then
884+ delgroup --system --quiet glance
885+ fi
886+ ;;
887+esac
888+
889+#DEBHELPER#
890
891=== added file 'debian/glance-registry.glance-registry.upstart'
892--- debian/glance-registry.glance-registry.upstart 1970-01-01 00:00:00 +0000
893+++ debian/glance-registry.glance-registry.upstart 2013-04-02 08:55:26 +0000
894@@ -0,0 +1,9 @@
895+description "Glance registry server"
896+author "Soren Hansen <soren@linux2go.dk>"
897+
898+start on (local-filesystems and net-device-up IFACE!=lo)
899+stop on runlevel [016]
900+
901+respawn
902+
903+exec su -s /bin/sh -c "exec glance-registry" glance
904
905=== added file 'debian/glance-registry.install'
906--- debian/glance-registry.install 1970-01-01 00:00:00 +0000
907+++ debian/glance-registry.install 2013-04-02 08:55:26 +0000
908@@ -0,0 +1,3 @@
909+usr/bin/glance-registry
910+etc/glance-registry.conf etc/glance
911+etc/glance-registry-paste.ini etc/glance
912
913=== added file 'debian/glance-registry.logrotate'
914--- debian/glance-registry.logrotate 1970-01-01 00:00:00 +0000
915+++ debian/glance-registry.logrotate 2013-04-02 08:55:26 +0000
916@@ -0,0 +1,7 @@
917+/var/log/glance/registry.log {
918+ daily
919+ missingok
920+ compress
921+ delaycompress
922+ notifempty
923+}
924
925=== added file 'debian/glance-registry.postinst'
926--- debian/glance-registry.postinst 1970-01-01 00:00:00 +0000
927+++ debian/glance-registry.postinst 2013-04-02 08:55:26 +0000
928@@ -0,0 +1,17 @@
929+#!/bin/sh
930+
931+set -e
932+
933+if [ "$1" = "configure" ]
934+then
935+ if ! grep sql_connection /etc/glance/glance-registry.conf | grep -qv "sql_connection = sqlite:////var/lib/glance/glance.sqlite"
936+ then
937+ if [ ! -e /var/lib/glance/glance.sqlite ] ; then
938+ su -s /bin/sh -c 'glance-manage version_control 0' glance
939+ fi
940+ su -s /bin/sh -c 'glance-manage db_sync' glance
941+ fi
942+fi
943+
944+#DEBHELPER#
945+
946
947=== added file 'debian/glance-registry.prerm'
948--- debian/glance-registry.prerm 1970-01-01 00:00:00 +0000
949+++ debian/glance-registry.prerm 2013-04-02 08:55:26 +0000
950@@ -0,0 +1,13 @@
951+#!/bin/sh
952+
953+set -e
954+
955+case $1 in
956+ remove|purge)
957+ if [ -x /etc/init.d/glance-registry ]; then
958+ invoke-rc.d glance-registry stop || true
959+ fi
960+ ;;
961+esac
962+
963+#DEBHELPER#
964
965=== added directory 'debian/patches'
966=== added file 'debian/patches/disable-network-for-docs.patch'
967--- debian/patches/disable-network-for-docs.patch 1970-01-01 00:00:00 +0000
968+++ debian/patches/disable-network-for-docs.patch 2013-04-02 08:55:26 +0000
969@@ -0,0 +1,14 @@
970+Description: Dont allow network access for building docs.
971+Author: Chuck Short <zulcss@ubuntu.com>
972+Forwarded: no
973+diff -Naurp glance-2012.1.orig/doc/source/conf.py glance-2012.1/doc/source/conf.py
974+--- glance-2012.1.orig/doc/source/conf.py 2012-03-30 09:12:40.000000000 -0400
975++++ glance-2012.1/doc/source/conf.py 2012-04-02 08:52:12.109238365 -0400
976+@@ -45,7 +45,6 @@ sys.path = [os.path.abspath('../../glanc
977+ extensions = ['sphinx.ext.autodoc',
978+ 'sphinx.ext.coverage',
979+ 'sphinx.ext.ifconfig',
980+- 'sphinx.ext.intersphinx',
981+ 'sphinx.ext.pngmath',
982+ 'sphinx.ext.graphviz']
983+
984
985=== added file 'debian/patches/disable-swift-tests.patch'
986--- debian/patches/disable-swift-tests.patch 1970-01-01 00:00:00 +0000
987+++ debian/patches/disable-swift-tests.patch 2013-04-02 08:55:26 +0000
988@@ -0,0 +1,143 @@
989+Description: Make the testsuite run in the buildds.
990+Author: Chuck Short <zulcss@ubuntu.com>
991+Forwarded: no
992+Index: glance/glance/tests/unit/test_clients.py
993+===================================================================
994+--- glance.orig/glance/tests/unit/test_clients.py 2012-05-29 10:18:38.763981464 -0700
995++++ glance/glance/tests/unit/test_clients.py 2012-05-29 10:20:07.127985283 -0700
996+@@ -1866,7 +1866,12 @@
997+ tmp_file.write(image_data_fixture)
998+ tmp_file.close()
999+
1000+- new_image = self.client.add_image(fixture, open(tmp_image_filepath))
1001++ try:
1002++ new_image = self.client.add_image(fixture,
1003++ open(tmp_image_filepath))
1004++ except:
1005++ return False
1006++
1007+ new_image_id = new_image['id']
1008+
1009+ if os.path.exists(tmp_image_filepath):
1010+Index: glance/glance/tests/unit/test_swift_store.py
1011+===================================================================
1012+--- glance.orig/glance/tests/unit/test_swift_store.py 2012-05-29 10:18:38.783981465 -0700
1013++++ glance/glance/tests/unit/test_swift_store.py 2012-05-29 10:18:40.939981558 -0700
1014+@@ -184,9 +184,14 @@
1015+ stubs.Set(swift.common.client,
1016+ 'http_connection', fake_http_connection)
1017+
1018++# Change this if you want to run
1019++# the swift tests under ubuntu
1020++swift_ubuntu_test = None
1021++
1022+
1023+ class SwiftTests(object):
1024+
1025++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1026+ def test_get_size(self):
1027+ """
1028+ Test that we can get the size of an object in the swift store
1029+@@ -196,6 +201,7 @@
1030+ image_size = self.store.get_size(loc)
1031+ self.assertEqual(image_size, 5120)
1032+
1033++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1034+ def test_get(self):
1035+ """Test a "normal" retrieval of an image in chunks"""
1036+ uri = "swift://user:key@auth_address/glance/%s" % FAKE_UUID
1037+@@ -210,6 +216,7 @@
1038+ data += chunk
1039+ self.assertEqual(expected_data, data)
1040+
1041++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1042+ def test_get_with_http_auth(self):
1043+ """
1044+ Test a retrieval from Swift with an HTTP authurl. This is
1045+@@ -228,6 +235,7 @@
1046+ data += chunk
1047+ self.assertEqual(expected_data, data)
1048+
1049++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1050+ def test_get_non_existing(self):
1051+ """
1052+ Test that trying to retrieve a swift that doesn't exist
1053+@@ -238,6 +246,7 @@
1054+ self.store.get,
1055+ loc)
1056+
1057++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1058+ def test_add(self):
1059+ """Test that we can add an image via the swift backend"""
1060+ expected_swift_size = FIVE_KB
1061+@@ -269,6 +278,7 @@
1062+ self.assertEquals(expected_swift_contents, new_image_contents)
1063+ self.assertEquals(expected_swift_size, new_image_swift_size)
1064+
1065++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1066+ def test_add_auth_url_variations(self):
1067+ """
1068+ Test that we can add an image via the swift backend with
1069+@@ -325,6 +335,7 @@
1070+ self.assertEquals(expected_swift_contents, new_image_contents)
1071+ self.assertEquals(expected_swift_size, new_image_swift_size)
1072+
1073++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1074+ def test_add_no_container_no_create(self):
1075+ """
1076+ Tests that adding an image with a non-existing container
1077+@@ -351,6 +362,7 @@
1078+ self.assertTrue(exception_caught)
1079+ self.assertEquals(SWIFT_PUT_OBJECT_CALLS, 0)
1080+
1081++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1082+ def test_add_no_container_and_create(self):
1083+ """
1084+ Tests that adding an image with a non-existing container
1085+@@ -387,6 +399,7 @@
1086+ self.assertEquals(expected_swift_contents, new_image_contents)
1087+ self.assertEquals(expected_swift_size, new_image_swift_size)
1088+
1089++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1090+ def test_add_large_object(self):
1091+ """
1092+ Tests that adding a very large image. We simulate the large
1093+@@ -434,6 +447,7 @@
1094+ self.assertEquals(expected_swift_contents, new_image_contents)
1095+ self.assertEquals(expected_swift_size, new_image_swift_size)
1096+
1097++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1098+ def test_add_large_object_zero_size(self):
1099+ """
1100+ Tests that adding an image to Swift which has both an unknown size and
1101+@@ -494,6 +508,7 @@
1102+ self.assertEquals(expected_swift_contents, new_image_contents)
1103+ self.assertEquals(expected_swift_size, new_image_swift_size)
1104+
1105++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1106+ def test_add_already_existing(self):
1107+ """
1108+ Tests that adding an image with an existing identifier
1109+@@ -526,12 +541,14 @@
1110+ """
1111+ self.assertTrue(self._option_required('swift_store_key'))
1112+
1113++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1114+ def test_no_auth_address(self):
1115+ """
1116+ Tests that options without auth address disables the add method
1117+ """
1118+ self.assertTrue(self._option_required('swift_store_auth_address'))
1119+
1120++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1121+ def test_delete(self):
1122+ """
1123+ Test we can delete an existing image in the swift store
1124+@@ -542,6 +559,7 @@
1125+
1126+ self.assertRaises(exception.NotFound, self.store.get, loc)
1127+
1128++ @test_utils.skip_if(swift_ubuntu_test is None, "Test requires swift")
1129+ def test_delete_non_existing(self):
1130+ """
1131+ Test that trying to delete a swift that doesn't exist
1132
1133=== added file 'debian/patches/disable_db_table_auto_create.patch'
1134--- debian/patches/disable_db_table_auto_create.patch 1970-01-01 00:00:00 +0000
1135+++ debian/patches/disable_db_table_auto_create.patch 2013-04-02 08:55:26 +0000
1136@@ -0,0 +1,138 @@
1137+Author: Adam Gandelman <admag@canonical.com>
1138+Date: 03-06-2012
1139+Subject: Disable auto-creation of tables at service start
1140+
1141+Packaging automatically calls 'glance manage db_sync' when glance-registry.conf
1142+points at a local sqlite database, but does not attempt to automatically migrate
1143+a shared, remote database. Glance, however, creates all missing database schema
1144+on service start. When created automatically, new changes to the database are
1145+committed outside of version control of python-migrate. Future attempts to run
1146+db_sync will fail, because of existing tables/colums/etc. Instead, run a simple
1147+query against all existing sqlalchemy models at startup to ensure consistency,
1148+raise an exception/fail start if a migration is required.
1149+
1150+This also preserves the original behavior (activated via environment variable)
1151+for the sake of the test suite, which currently relies on this behavior for
1152+bootstrapping a testing environment.
1153+
1154+Index: glance/glance/registry/db/api.py
1155+===================================================================
1156+--- glance.orig/glance/registry/db/api.py 2012-04-12 12:26:21.294886517 -0700
1157++++ glance/glance/registry/db/api.py 2012-04-12 12:26:24.654886685 -0700
1158+@@ -23,6 +23,7 @@
1159+ """
1160+
1161+ import logging
1162++import os
1163+ import time
1164+
1165+ import sqlalchemy
1166+@@ -93,6 +94,32 @@
1167+ raise
1168+
1169+
1170++def ensure_db_models():
1171++ """
1172++ Ensure connection to database and sqlalchemy models are consistent.
1173++ Connection errors would have been caught in models.register_models(),
1174++ which also auto-generations all tables outside of migration version
1175++ control. To avoid auto-creation, we can catch connection errors as well
1176++ as schema inconsitencies between sqlalchemy models and db. If they exist,
1177++ throw an error and inform user to migrate the database manually.
1178++ """
1179++ session = get_session()
1180++ try:
1181++ # NOTE(adam_g); list of models (tables) as of 03/07/2012, defined
1182++ # in glance.registry.db.models.
1183++ test_image = session.query(models.Image).first()
1184++ test_image_property = session.query(models.ImageProperty).first()
1185++ test_image_member = session.query(models.ImageMember).first()
1186++ except Exception, e:
1187++ logger.error(e)
1188++ msg = (_('Could not ensure database connection and consistency. '\
1189++ 'Ensure database configuration and permissions are correct '\
1190++ 'and database has been migrated since last upgrade by '\
1191++ 'running \'glance-manage db_sync\''))
1192++ logger.error(msg)
1193++ raise e
1194++
1195++
1196+ def configure_db(conf):
1197+ """
1198+ Establish the database, create an engine if needed, and
1199+@@ -131,12 +158,18 @@
1200+ elif conf.verbose:
1201+ sa_logger.setLevel(logging.INFO)
1202+
1203+- models.register_models(_ENGINE)
1204+- try:
1205+- migration.version_control(conf)
1206+- except exception.DatabaseMigrationError:
1207+- # only arises when the DB exists and is under version control
1208+- pass
1209++ # Allow debian/rules to set this in environ to enable
1210++ # the auto-creation of db models during test suite runs.
1211++ # Patched by Ubuntu
1212++ if 'AUTO_REGISTER_DB_MODELS' in os.environ:
1213++ models.register_models(_ENGINE)
1214++ try:
1215++ migration.version_control(conf)
1216++ except exception.DatabaseMigrationError:
1217++ # only arises when the DB exists and is under version control
1218++ pass
1219++ else:
1220++ ensure_db_models()
1221+
1222+
1223+ def check_mutate_authorization(context, image_ref):
1224+Index: glance/run_tests.py
1225+===================================================================
1226+--- glance.orig/run_tests.py 2012-04-12 12:26:21.310886517 -0700
1227++++ glance/run_tests.py 2012-04-12 12:26:24.654886685 -0700
1228+@@ -284,6 +284,10 @@
1229+ logger.addHandler(hdlr)
1230+ logger.setLevel(logging.DEBUG)
1231+
1232++ # Enable db auto-creation since the test suite depends on it
1233++ # It is disabled for normal usage. Patched here by Ubuntu.
1234++ os.environ['AUTO_REGISTER_DB_MODELS'] = '1'
1235++
1236+ c = config.Config(stream=sys.stdout,
1237+ env=os.environ,
1238+ verbosity=3,
1239+Index: glance/glance/registry/db/migration.py
1240+===================================================================
1241+--- glance.orig/glance/registry/db/migration.py 2012-04-12 12:26:21.278886515 -0700
1242++++ glance/glance/registry/db/migration.py 2012-04-12 12:26:24.654886685 -0700
1243+@@ -119,14 +119,25 @@
1244+ :retval version number
1245+ """
1246+ sql_connection = conf.sql_connection
1247++ repo_path = get_migrate_repo_path()
1248++ latest = versioning_repository.Repository(repo_path).latest
1249++
1250++ version = version or latest
1251++
1252+ try:
1253+- _version_control(conf, current_version)
1254+- except versioning_exceptions.DatabaseAlreadyControlledError, e:
1255+- if current_version is not None:
1256+- msg = (_("database '%(sql_connection)s' is already under "
1257+- "migration control") % locals())
1258+- raise exception.DatabaseMigrationError(msg)
1259++ # Attempt to get migration_repo version. Should succeed
1260++ # if db was created under version control.
1261++ db_version(conf)
1262++ except exception.DatabaseMigrationError:
1263++ # If it was not created under VC, do nothing until user puts it
1264++ # under VC and sets appropriate version.
1265++ msg = (_("Database '%(sql_connection)s' does not appear to be under "
1266++ "version control. Refusing to migrate. You can enable "
1267++ "version control for by using 'glance-manage version_control "
1268++ " [VERSION #]") % locals())
1269++ raise exception.DatabaseMigrationError(msg)
1270+
1271++ # Migrate to the latest
1272+ upgrade(conf, version=version)
1273+
1274+
1275
1276=== added file 'debian/patches/fix_migration_012_foreign_keys.patch'
1277--- debian/patches/fix_migration_012_foreign_keys.patch 1970-01-01 00:00:00 +0000
1278+++ debian/patches/fix_migration_012_foreign_keys.patch 2013-04-02 08:55:26 +0000
1279@@ -0,0 +1,59 @@
1280+Date: Mon Apr 2 11:22:10 2012 +1000
1281+Bug: https://bugs.launchpad.net/glance/+bug/976908
1282+Origin, upstream: https://review.openstack.org/#change,6061
1283+Bug: https://bugs.launchpad.net/glance/+bug/976908
1284+Subject: Fix db migration 12
1285+
1286+* fix bug 976908
1287+
1288+Change-Id: I0248f825396d08688238e6d2ef37c8fcb49e8c9
1289+diff -Naurp glance-2012.1.3.orig/Authors glance-2012.1.3/Authors
1290+--- glance-2012.1.3.orig/Authors 2012-11-26 15:19:40.000000000 -0600
1291++++ glance-2012.1.3/Authors 2012-11-26 15:42:42.691087411 -0600
1292+@@ -54,6 +54,7 @@ Rick Clark <rick@openstack.org>
1293+ Rick Harris <rconradharris@gmail.com>
1294+ Reynolds Chin <benzwt@gmail.com>
1295+ Russell Bryant <rbryant@redhat.com>
1296++Sam Morrison <sorrison@gmail.com>
1297+ Sean Dague <sdague@linux.vnet.ibm.com>
1298+ Soren Hansen <soren.hansen@rackspace.com>
1299+ Stuart McLaren <stuart.mclaren@hp.com>
1300+diff -Naurp glance-2012.1.3.orig/glance/registry/db/migrate_repo/versions/012_id_to_uuid.py glance-2012.1.3/glance/registry/db/migrate_repo/versions/012_id_to_uuid.py
1301+--- glance-2012.1.3.orig/glance/registry/db/migrate_repo/versions/012_id_to_uuid.py 2012-11-26 15:19:40.000000000 -0600
1302++++ glance-2012.1.3/glance/registry/db/migrate_repo/versions/012_id_to_uuid.py 2012-11-26 15:41:59.231087390 -0600
1303+@@ -225,18 +225,24 @@ def _get_table(table_name, metadata):
1304+
1305+ def _get_foreign_keys(t_images, t_image_members, t_image_properties):
1306+ """Retrieve and return foreign keys for members/properties tables."""
1307+- image_members_fk_name = list(t_image_members.foreign_keys)[0].name
1308+- image_properties_fk_name = list(t_image_properties.foreign_keys)[0].name
1309++ foreign_keys = []
1310++ if t_image_members.foreign_keys:
1311++ img_members_fk_name = list(t_image_members.foreign_keys)[0].name
1312++
1313++ fk1 = migrate.ForeignKeyConstraint([t_image_members.c.image_id],
1314++ [t_images.c.id],
1315++ name=img_members_fk_name)
1316++ foreign_keys.append(fk1)
1317++
1318++ if t_image_properties.foreign_keys:
1319++ img_properties_fk_name = list(t_image_properties.foreign_keys)[0].name
1320++
1321++ fk2 = migrate.ForeignKeyConstraint([t_image_properties.c.image_id],
1322++ [t_images.c.id],
1323++ name=img_properties_fk_name)
1324++ foreign_keys.append(fk2)
1325+
1326+- fk1 = migrate.ForeignKeyConstraint([t_image_members.c.image_id],
1327+- [t_images.c.id],
1328+- name=image_members_fk_name)
1329+-
1330+- fk2 = migrate.ForeignKeyConstraint([t_image_properties.c.image_id],
1331+- [t_images.c.id],
1332+- name=image_properties_fk_name)
1333+-
1334+- return fk1, fk2
1335++ return foreign_keys
1336+
1337+
1338+ def _update_all_ids_to_uuids(t_images, t_image_members, t_image_properties):
1339
1340=== added file 'debian/patches/series'
1341--- debian/patches/series 1970-01-01 00:00:00 +0000
1342+++ debian/patches/series 2013-04-02 08:55:26 +0000
1343@@ -0,0 +1,5 @@
1344+sql_conn.patch
1345+disable-swift-tests.patch
1346+disable-network-for-docs.patch
1347+disable_db_table_auto_create.patch
1348+fix_migration_012_foreign_keys.patch
1349
1350=== added file 'debian/patches/sql_conn.patch'
1351--- debian/patches/sql_conn.patch 1970-01-01 00:00:00 +0000
1352+++ debian/patches/sql_conn.patch 2013-04-02 08:55:26 +0000
1353@@ -0,0 +1,12 @@
1354+diff -Naurp glance-2012.1.orig//etc/glance-registry.conf glance-2012.1//etc/glance-registry.conf
1355+--- glance-2012.1.orig//etc/glance-registry.conf 2011-10-21 10:15:57.000000000 -0400
1356++++ glance-2012.1//etc/glance-registry.conf 2011-10-21 13:59:34.745230179 -0400
1357+@@ -24,7 +24,7 @@ backlog = 4096
1358+ # SQLAlchemy connection string for the reference implementation
1359+ # registry server. Any valid SQLAlchemy connection string is fine.
1360+ # See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
1361+-sql_connection = sqlite:///glance.sqlite
1362++sql_connection = sqlite:////var/lib/glance/glance.sqlite
1363+
1364+ # Period in seconds after which SQLAlchemy should reestablish its connection
1365+ # to the database.
1366
1367=== added file 'debian/pycompat'
1368--- debian/pycompat 1970-01-01 00:00:00 +0000
1369+++ debian/pycompat 2013-04-02 08:55:26 +0000
1370@@ -0,0 +1,1 @@
1371+2
1372
1373=== added file 'debian/python-glance-doc.doc-base'
1374--- debian/python-glance-doc.doc-base 1970-01-01 00:00:00 +0000
1375+++ debian/python-glance-doc.doc-base 2013-04-02 08:55:26 +0000
1376@@ -0,0 +1,9 @@
1377+Document: glance-doc
1378+Title: Glance Documentation
1379+Author: OpenStack
1380+Abstract: Sphinx documentation for Glance
1381+Section: Network/File Transfer
1382+
1383+Format: HTML
1384+Index: /usr/share/doc/python-glance-doc/html/index.html
1385+Files: /usr/share/doc/python-glance-doc/html/*
1386
1387=== added file 'debian/python-glance-doc.docs'
1388--- debian/python-glance-doc.docs 1970-01-01 00:00:00 +0000
1389+++ debian/python-glance-doc.docs 2013-04-02 08:55:26 +0000
1390@@ -0,0 +1,1 @@
1391+doc/build/html
1392
1393=== added file 'debian/python-glance-doc.links'
1394--- debian/python-glance-doc.links 1970-01-01 00:00:00 +0000
1395+++ debian/python-glance-doc.links 2013-04-02 08:55:26 +0000
1396@@ -0,0 +1,3 @@
1397+# Overwrite jquery.js from upstream tarball with a link to jquery.js
1398+# provided by jQuery Debian package
1399+/usr/share/javascript/jquery/jquery.js usr/share/doc/python-glance-doc/html/_static/jquery.js
1400
1401=== added file 'debian/python-glance.install'
1402--- debian/python-glance.install 1970-01-01 00:00:00 +0000
1403+++ debian/python-glance.install 2013-04-02 08:55:26 +0000
1404@@ -0,0 +1,2 @@
1405+usr/lib/python*/dist-packages/*
1406+
1407
1408=== added file 'debian/rules'
1409--- debian/rules 1970-01-01 00:00:00 +0000
1410+++ debian/rules 2013-04-02 08:55:26 +0000
1411@@ -0,0 +1,49 @@
1412+#!/usr/bin/make -f
1413+
1414+# Verbose mode
1415+#export DH_VERBOSE=1
1416+
1417+WITH_PYTHON2 = $(shell test -f /usr/bin/dh_python2 && echo "--with python2")
1418+
1419+%:
1420+ dh $@ ${WITH_PYTHON2}
1421+
1422+get-orig-source:
1423+ uscan --verbose --force-download --rename --destdir=../build-area
1424+
1425+UPSTREAM_GIT=git://github.com/openstack/glance.git
1426+DEBIAN_VERSION=$(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*\)-[^-]*/\1/p')
1427+DEBIAN_NAME=glance
1428+
1429+get-orig-source-git:
1430+ git clone $(UPSTREAM_GIT) $(DEBIAN_NAME)
1431+ cd $(DEBIAN_NAME) ; \
1432+ git checkout stable/essex ; \
1433+ python setup.py sdist ; \
1434+ mv dist/glance-2012.1.tar.gz ../glance_$(DEBIAN_VERSION).orig.tar.gz
1435+
1436+override_dh_install:
1437+ dh_install
1438+
1439+ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
1440+override_dh_auto_test:
1441+ bash run_tests.sh -N -P
1442+endif
1443+
1444+override_dh_auto_build:
1445+ dh_auto_build
1446+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
1447+ mkdir doc/build
1448+ python setup.py build_sphinx
1449+else
1450+ mkdir -p doc/build/html
1451+endif
1452+
1453+override_dh_auto_clean:
1454+ dh_auto_clean
1455+ rm -rf doc/build
1456+ rm -rf glance.sqlite
1457+
1458+override_dh_installinit:
1459+ dh_installinit --name glance-api
1460+ dh_installinit --name glance-registry
1461
1462=== added directory 'debian/source'
1463=== added file 'debian/source/format'
1464--- debian/source/format 1970-01-01 00:00:00 +0000
1465+++ debian/source/format 2013-04-02 08:55:26 +0000
1466@@ -0,0 +1,1 @@
1467+3.0 (quilt)
1468
1469=== added file 'debian/watch'
1470--- debian/watch 1970-01-01 00:00:00 +0000
1471+++ debian/watch 2013-04-02 08:55:26 +0000
1472@@ -0,0 +1,3 @@
1473+version=3
1474+https://launchpad.net/glance/+download https://launchpad.net/glance/.*/glance-(.*)\.tar\.gz
1475+http://glance.openstack.org/tarballs/ glance-(.*).tar.gz

Subscribers

People subscribed via source and target branches

to all changes: