Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---- step I do -----
- swift post -m "Temp-Url-Key:1234"
- ./gen_url.py
- wget http://10.1.30.120/swift/v1/toto/toto?temp_url_sig=fded5ce05ba6dac9b3bfd74da779c6a165a93430&temp_url_expires=1423752265
- ----- gen_url.py ---------
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import hmac
- from hashlib import sha1
- from time import time
- method = 'GET'
- duration_in_seconds = 60*60*24
- expires = int(time() + duration_in_seconds)
- path = '/v1/toto/toto'
- key = '1234'
- hmac_body = '%s\n%s\n%s' % (method, expires, path)
- sig = hmac.new(key, hmac_body, sha1).hexdigest()
- s = 'http://10.1.30.120/swift{path}?temp_url_sig={sig}&temp_url_expires={expires}'
- url = s.format(host='10.1.30.120', path=path, sig=sig, expires=expires)
- print url
- ----------- rados lspools ----------------
- .rgw.root
- .rgw.control
- .rgw
- .rgw.gc
- .users.uid
- .rgw.buckets.index
- .rgw.buckets
- .log
- .rgw.buckets.extra
- .intent-log
- .usage
- .users
- .users.email
- .users.swift
- -------- ceph.conf ----------
- [client.radosgw.gateway]
- host = my_host
- rgw dns name = my_fulyqualied_host_name
- keyring = /etc/ceph/ceph.client.radosgw.keyring
- rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock
- log file = /var/log/radosgw/client.radosgw.osd0.log
- rgw print continue = false
- rgw enable ops log = true
- debug rgw = 20
- rgw keystone url = http://10.1.30.100:5000
- rgw keystone admin token = mytoken_is_there
- rgw keystone accepted roles = admim _member_
- rgw keystone token cache size = 500
- rgw keystone revocation interval = 300
- nss db path = /var/lib/ceph/nss
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement