Permalink
Commits on Jul 8, 2012
  1. Add swift_store_admin_tenants option.

    dprince committed Jul 7, 2012
    Add a swift storage option to configure a default list of admin
    tenant IDs which will be granted write access on any swift
    images.
    
    This setting might be useful when a user choose not to use a global
    swift admin role when managing glance images. This might also
    be useful when implementing delayed delete for glance swift
    multi-tenant.
    
    Partially implements blueprint: swift-tenant-specific-storage.
    
    Change-Id: Id65e1c8d114c9551b99f6a18c527ba26aefd341f
  2. Update v1/v2 images APIs to set store ACLs.

    dprince committed Jul 2, 2012
    Updates the images controllers so they call set_acls on
    the backend store when adding/updating images and members.
    
    Made some changes to the v2 API unit/functional tests to
    use real locations instead of just UUIDs so the tests work
    with the new set_acls call.
    
    Partially implements blueprint: swift-tenant-specific-storage.
    
    Change-Id: Ib249acfe440f4b75bc9edd7b73fe10127b8333b1
  3. Adds set_acls function for swift store.

    dprince committed Jul 1, 2012
    Updates the swift store with working implementation of set_acls.
    
    Updates the base store with an example set_acls function.
    
    This function may be implemented by stores which support backend ACLs
    to allow Glance to set read and write ACL's on the store images.
    
    Added tests for swift store function.
    
    Partially implements blueprint: swift-tenant-specific-storage.
    
    Change-Id: I7fbd66b5abf8d27c26bdc5e7d6adc98b5722b647
  4. Store swift images in separate containers.

    dprince committed Jul 1, 2012
    Updates the swift storage backend so that when using multi tenant
    each images gets stored in a separate container.
    
    The motivation for this change is so that we can set swift read/write
    permissions on each individual image.
    
    Partially implements blueprint: swift-tenant-specific-storage.
    
    Change-Id: I43f33594fb40dee33ef52e8ae873722e20b09a10
  5. Adds multi tenant support for swift backend.

    dprince committed Jun 29, 2012
    Updates the swift store to support multiple tenants:
    
     * Added configuration option for swift_store_multi_tenant.
    
     * Updated the swift connection creation logic so that in multi-tenant
       mode the token and storage URL from the service catalog are used
       to create swift connection.
    
     * When in multi-tenant mode locations URL's (stored in the DB) do
       not contain hard coded swift credentials.
    
    Includes unit tests to verify multi-tenant swift storage URLs.
    
    Partially implements blueprint: swift-tenant-specific-storage.
    
    Change-Id: I45fc97027e6f211ac353513c2d9d6da51ccf4489
  6. Provide stores access to the request context.

    dprince committed Jun 29, 2012
    Adds a set_context function for the Store class which can be used
    to provide an instantiated store access to the RequestContext.
    
    Includes the following changes:
    
    * Updates common store helper methods to call set_context on each
      store as it is retrieved from the list of know stores.
    
    * Implement custom set_context call on the swift store.
    
    * Updates Glance scrubber to create a real context from credentials.
    
    The motivation for this change is that we will need access to the
    service catalog and token for the Swift multi-tenant backend.
    
    Partially implements blueprint: swift-tenant-specific-storage
    
    Change-Id: I3def2b7c4085a36dd6c0961e762783ebaf7ffa74
Commits on Jul 7, 2012
  1. Make get_endpoint a generic reusable function.

    dprince committed Jun 28, 2012
    This patch refactors the get_endpoint function to make it more generic
    and top level so that it can be more easily accessed and tested.
    
    Adds service_type, endpoint_region, and endpoint_type options to
    the get_endpoint function as well.
    
    Added a new test suite specifically for get_endpoint.
    
    The motivation for this change is that we'll need to be able to
    parse the 'object-store' endpoint for each tenant in order to
    enable multi-tenant storage in the swift storage backend.
    
    Partially implements blueprint: swift-tenant-specific-storage
    
    Change-Id: Icf773a1eb057fc9d65cf54890afa4638f2aee0b4
  2. Adds service_catalog to the context.

    dprince committed Jun 28, 2012
    Updates the ContextMiddleware so that it stores the service_catalog
    which from set via Keystone's auth_token middleware.
    
    The motivation for this change is that we'll need access to the
    'object-store' endpoint in order to implement swift tenant specific
    storage.
    
    Partially implements blueprint: swift-tenant-specific-storage
    
    Change-Id: I0389e135f6683a353ae915b543d70f6ac1246b2c
Commits on Jul 6, 2012
  1. Expose owner on v2 image entities

    bcwaldon committed Jul 2, 2012
    Expand v2 image serialization to accept and return the 'owner'
    attribute. All image entities have an owner attribute, while only
    admins can provide it in a request. Related to bp api-2.
    
    Change-Id: I8746574528c8be1f17cf570c91ba6bd7ef27b032
  2. Merge "Use PyPI for swiftclient."

    Jenkins committed with openstack-gerrit Jul 6, 2012
Commits on Jul 5, 2012
Commits on Jul 4, 2012
  1. Allow admins to share images regardless of owner.

    dprince committed with bcwaldon Jul 3, 2012
    Updates the Glance DB's is_image_sharable function so that
    an admin can share an image regardless of the context ownership.
    
    This fixes issues when trying to write Glance functional tests
    which use the noauth middleware (UnauthenticatedContextMiddleware).
    
    The motivation behind this change is I'd like to write some
    functional tests for image-members that work with noauth.
    
    Fix bug 1021054
    
    Change-Id: I6d939876a4c4bf5f191463f5ca434fc524a6ac59
  2. Improve eventlet concurrency when uploading/downloading.

    stuart-mclaren committed Jul 4, 2012
    When uploading/downloading multiple images using the
    same glance-api worker process some of its eventlet
    threads can become starved. Inserting statements to
    trigger cooperative yields, ie sleep(0), allows fairer
    scheduling of the other eventlet threads.
    
    Fixes LP Bug #1021002.
    
    Change-Id: I5a8f255e9507d18813d07d418e6acefa10d9f6bb
Commits on Jul 3, 2012
  1. Fix IndexError when adding/updating image members.

    dprince committed Jul 3, 2012
    This patch updates the v1 registry API to work with the latest
    DB API image_member_find function which no longer throws
    NoResultFound when it doesn't find any records.
    
    The latest version of the DB API image_member_find function simply
    returns an empty query result.
    
    This fixes both member-add and members-replace functionality.
    
    Fixes LP Bug #1020380.
    
    Change-Id: I8818c90e09bd9a17f208d0e20106007db04e77f1
  2. Report image checksum in v2 API

    bcwaldon committed Jul 3, 2012
    * Report checksum with image entities
    * Set checksum when image data is uploaded
    * Related to bp api-2
    
    Change-Id: I6b4f859184cff37cea247bfa56c9c6bebd256969
  3. Store properties dict as list in simple db driver

    bcwaldon committed Jul 3, 2012
    Rather than store image properties as a dict, use a list of
    dictionaries with name and value keys. Fix bug 1020388.
    
    Change-Id: Ia41e48cb4e869d01c93466103dea8fb1b0ec07a2
Commits on Jul 2, 2012
  1. Use PyPI for swiftclient.

    emonty committed Jul 2, 2012
    Change-Id: I3cbef069459c82ab175998a8f58091cd8214cb3c
  2. Refactor pagination db functional tests

    bcwaldon committed Jun 26, 2012
    The pagination-related functional tests are overly complex and aren't
    adding a lot of value. This rewrites them in a more straightforward way
    by incorporating them into the main test class.
    
    Related to bp refactor-db-layer
    
    Change-Id: Ic08914cfa8135d73a4aae6724a6561bc337b91fb
  3. Combine same-time tests with main db test case

    bcwaldon committed Jun 26, 2012
    Rather than re-run all of the base test methods to test with
    image fixtures with identical created_at timestamps, we should
    just run methods that matter. This patch removes the subclass
    that sets identical timestamps in favor of adding a third fixture
    to the main test case.
    
    Related to bp refactor-db-layer
    
    Change-Id: I69d0b21d1ef825333881e021dfa9610f1bbad334
  4. Add retry to server launch in respawn test.

    Eoghan Glynn committed Jul 2, 2012
    Avoid test failures caused by EADDRINUSE.
    
    Change-Id: I8cf044b55da30a56c7e2d1435085d23bd198c275
Commits on Jun 30, 2012
  1. Reorder imports by full import path

    zyluo committed Jun 30, 2012
    Fixes bug #1019463
    
    Change-Id: I3fb44cbacb09457ea34571222e0a8e8d4b8d7c87
Commits on Jun 29, 2012
  1. Adds /v2/schemas/images

    Mark Washenberger committed Jun 29, 2012
    Fixes bug 1019401
    
    Change-Id: I4fcb9286e5aec0984b61285bfff794126f64d00a
  2. Merge "Implement image filtering in v2"

    Jenkins committed with openstack-gerrit Jun 29, 2012
Commits on Jun 28, 2012
  1. Implement image filtering in v2

    ameade committed Jun 21, 2012
    This allows filtering /images on image attributes and properties.
    In order to filter you just do /images?<filter_key>=<value>.
    For Example: /images?name=image-1
    or user defined image properties:
    /images?foo=bar
    
    You can also filter by a numeric ranges by appending _min and _max to the
    filter key.
    For Example: /images?size_min=15
    For Example: /images?size_max=20&size_min=15
    
    Implements blueprint: api-v2-images-filtering
    Change-Id: Icdbe7c325d08328efb164accf76684a83369c137
  2. Include all tests in generated tarballs

    ttx committed Jun 28, 2012
    Make sure all glance/tests is actually shipped in generated
    tarballs. Rather than adding yet another specific entry, recursively
    include all glance/tests and globally exclude all .pyc.
    
    Change-Id: I7875c58dece452b5356cf7e268f504780ec30bff
    Fixes: bug 1018830
Commits on Jun 27, 2012
  1. Allow CONF.notifier_strategy to be a full path

    bcwaldon committed Jun 27, 2012
    Rather than limit the notifier_strategy to a list of internal
    drivers, we should also allow a user to supply a full path
    to a custom driver. This is going to help us functionally test
    our notification system without having to ship a fake driver.
    
    Fixes bug 1018638
    
    Change-Id: Ib1cae7b979dabfaa6b8b5aa59719aad2ac12d169
  2. Add image access records schema for image resources

    iccha committed with bcwaldon Jun 19, 2012
    Implements blueprint api-v2-refactor-schemas
    
    Change-Id: Ic79d6661d44976057016e1a570674f47a962a3db
  3. Merge "Remove image members joinedload"

    Jenkins committed with openstack-gerrit Jun 27, 2012