On Mar 31 2015, Shane Wilson <[email protected]> wrote:
> First, I'm very new to Swift, so I'm sure I'm doing something wrong.
>
> I'm trying to mount swift to Ubuntu 14.04 linux using s3ql, but I getting
> an error during the mkfs.s3ql.
>
> Here is the command line:
> root@owncloud:~/.s3ql# mkfs.s3ql --plain --backend-options no-ssl
> swiftks://192.102.218.230:5000/regionOne:s3ql
> Enter backend login:
> Enter backend passphrase:
> No accessible object storage service found in region regionOne (available
> regions: )
> root@owncloud:~/.s3ql#
>
> Here is my authinfo2
> [swift]
> backend-login: tenant:demo
> backend-password: 19monza67
> storage-url: swiftks://192.102.218.230:5000/regionOne:s3ql
>
> The s3ql container is there when I do a swift list. Its as if it doesn't
> know about the region. There should only be one region, my swift install
> is from the Juno install docs and only creates regionOne. I hope you can
> point me in the right direction, I'm sure it something simple I'm missing.
> I've read everything and I'm at a lose for direction.
Apply the attached patch and post the contents of the "response.txt"
file that it should create.
Best,
-Nikolaus
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
--
You received this message because you are subscribed to the Google Groups
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/s3ql/adm.py b/src/s3ql/adm.py
--- a/src/s3ql/adm.py
+++ b/src/s3ql/adm.py
@@ -398,6 +398,8 @@
def yield_objects():
for (id_,) in db.query('SELECT id FROM objects'):
+ if id_ < my_starting_id:
+ continue
yield 's3ql_data_%d' % id_
for obj_id in extra_objects:
yield obj_id
diff --git a/src/s3ql/backends/swiftks.py b/src/s3ql/backends/swiftks.py
--- a/src/s3ql/backends/swiftks.py
+++ b/src/s3ql/backends/swiftks.py
@@ -97,7 +97,10 @@
elif resp.status > 299 or resp.status < 200:
raise HTTPError(resp.status, resp.reason, resp.headers)
- cat = json.loads(conn.read().decode('utf-8'))
+ body = conn.read()
+ with open('response.txt', 'wb') as fh:
+ fh.write(body)
+ cat = json.loads(body.decode('utf-8'))
self.auth_token = cat['access']['token']['id']
avail_regions = []