This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from argparse import ArgumentParser | |
import sys | |
import time | |
import boto3 | |
parser = ArgumentParser() | |
parser.add_argument('bucket', help='bucket to make the upload') | |
parser.add_argument('key', nargs='?', help='key name for large object') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import subprocess | |
from swift.common.utils import get_logger | |
from threading import Thread | |
import time | |
import socket | |
import os | |
import ssl | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from swiftclient import get_auth, client | |
import time | |
url, token = get_auth('http://saio:8080/auth/v1.0', 'test:tester', 'testing') | |
TIMEOUT = 30.0 | |
finish = time.time() + TIMEOUT | |
while True: | |
sc = client.head_account(url, token) | |
print(sc) | |
time.sleep(1.0) | |
if time.time() > finish: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from argparse import ArgumentParser | |
import sys | |
import json | |
import datetime | |
import os | |
import boto3 | |
parser = ArgumentParser() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import argparse | |
from swift.common.storage_policy import POLICIES | |
from swift.common.bufferedhttp import http_connect | |
from swift.common.utils import Timestamp | |
SWIFT_DIR = '/etc/swift' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import sys | |
def gen_ips(): | |
i = 147 | |
j = 153 | |
while True: | |
j += 1 | |
if j > 254: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes | |
import ctypes.util | |
import struct | |
import sys | |
import textwrap | |
import zlib | |
lib_name = ctypes.util.find_library('erasurecode') | |
if not lib_name: | |
lib_name = 'liberasurecode.so.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from argparse import ArgumentParser | |
import sys | |
import os | |
from swift.common.ring import RingData | |
parser = ArgumentParser() | |
parser.add_argument('ring', help='path to a ring') | |
parser.add_argument('--output', default=None, help='override output path') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/swift/common/middleware/s3api/s3request.py b/swift/common/middleware/s3api/s3request.py | |
index 28e734f0b..2a0193867 100644 | |
--- a/swift/common/middleware/s3api/s3request.py | |
+++ b/swift/common/middleware/s3api/s3request.py | |
@@ -37,8 +37,7 @@ from swift.common.http import HTTP_OK, HTTP_CREATED, HTTP_ACCEPTED, \ | |
HTTP_TOO_MANY_REQUESTS, HTTP_RATE_LIMITED, is_success | |
from swift.common.constraints import check_utf8 | |
-from swift.proxy.controllers.base import get_container_info, \ | |
- headers_to_container_info |