Browse code

Install python-swiftclient when installing swift.

- Fixes bug 1002789.

Change-Id: I8ee54652c6a38c7c226c820366897e53807f664d

Chmouel Boudjnah authored on 2012/05/22 19:27:08
Showing 2 changed files
... ...
@@ -215,6 +215,7 @@ OPENSTACKCLIENT_DIR=$DEST/python-openstackclient
215 215
 NOVNC_DIR=$DEST/noVNC
216 216
 SWIFT_DIR=$DEST/swift
217 217
 SWIFT3_DIR=$DEST/swift3
218
+SWIFTCLIENT_DIR=$DEST/python-swiftclient
218 219
 QUANTUM_DIR=$DEST/quantum
219 220
 QUANTUM_CLIENT_DIR=$DEST/python-quantumclient
220 221
 MELANGE_DIR=$DEST/melange
... ...
@@ -684,6 +685,9 @@ fi
684 684
 if is_service_enabled swift; then
685 685
     # storage service
686 686
     git_clone $SWIFT_REPO $SWIFT_DIR $SWIFT_BRANCH
687
+    # storage service client and and Library
688
+    git_clone $SWIFTCLIENT_REPO $SWIFTCLIENT_DIR $SWIFTCLIENT_BRANCH
689
+    # swift3 middleware to provide S3 emulation to Swift
687 690
     git_clone $SWIFT3_REPO $SWIFT3_DIR $SWIFT3_BRANCH
688 691
 fi
689 692
 if is_service_enabled g-api n-api; then
... ...
@@ -728,6 +732,7 @@ if is_service_enabled key g-api n-api swift; then
728 728
 fi
729 729
 if is_service_enabled swift; then
730 730
     cd $SWIFT_DIR; setup_develop
731
+    cd $SWIFTCLIENT_DIR; setup_develop
731 732
     cd $SWIFT3_DIR; setup_develop
732 733
 fi
733 734
 if is_service_enabled g-api n-api; then
... ...
@@ -20,6 +20,10 @@ SWIFT3_REPO=https://github.com/fujita/swift3.git
20 20
 SWIFT3_BRANCH=master
21 21
 
22 22
 
23
+# python swift client library
24
+SWIFTCLIENT_REPO=https://github.com/openstack/python-swiftclient
25
+SWIFTCLIENT_BRANCH=master
26
+
23 27
 # image catalog service
24 28
 GLANCE_REPO=https://github.com/openstack/glance.git
25 29
 GLANCE_BRANCH=master