Create a Swift client class

Bug #1456807 reported by Murali Allada
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
Fix Released
Undecided
Murali Allada

Bug Description

We need to create a swift client class for common code.

We currently upload logs and images to swift in two ways.
- Using the python swift client directly to upload logs
- Using a stand alone python script which is called from our bash scripts to upload images.

We need to consolidate these two so we have a common place for our swift integration code which supports the following

- Upload objects to swift in chunks.
- Check object size to make sure we are under the 5GB swift constraint.
- Retry logic
- Deleting objects

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to solum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/184335

Changed in solum:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to solum (master)

Reviewed: https://review.openstack.org/184335
Committed: https://git.openstack.org/cgit/stackforge/solum/commit/?id=40048923a45f468579b2fb62614852b50d2333aa
Submitter: Jenkins
Branch: master

commit 40048923a45f468579b2fb62614852b50d2333aa
Author: Murali Allada <email address hidden>
Date: Tue May 19 16:32:19 2015 -0500

    Swift client wrapper

    We currently upload logs and images to swift in two ways.
    - Using the python swift client directly to upload logs
    - Using a stand alone python script which is called from our bash
      scripts to upload images.

    We need to consolidate these two so we have a common place for our
    swift integration code which supports the following

    - Upload and download objects.
    - Check object size to make sure we are under the 5GB swift
      constraint.
    - Retry logic
    - Delete objects

    I'm also changing the swift client code to always create a
    non cached client. This is required for our upload\download
    retry mechanism to work properly.

    Change-Id: I9993d0b74197a517920468b7fd07e29bbc305ed0
    Closes-bug: 1456807

Changed in solum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in solum:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.