swift-dispersion should pass "os_options" to swiftclient
Bug #1102319 reported by
Mehdi Abaakouk
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Mehdi Abaakouk |
Bug Description
Hi,
swift-dispersion don't pass os_options to swiftclient, or it should allow to choose between endpoint_type.
For example, a monitoring machine that use swift-dispersion can actually only use it via the publicURL, and not via the internalURL.
Thanks in advance,
sileht
Changed in swift: | |
assignee: | nobody → Mehdi Abaakouk (sileht) |
status: | New → In Progress |
Changed in swift: | |
milestone: | none → 1.8.0-rc1 |
status: | Fix Committed → Fix Released |
Changed in swift: | |
milestone: | 1.8.0-rc1 → 1.8.0 |
To post a comment you must log in.
Both swift-dispersio n-populate and swift-dispersio n-report seem to be broken when using v2.0 authentication. With /etc/swift/ dispersion. conf:
[dispersion] localhost: 8080/auth/ v1.0 192.168. 122.58: 5000/v2. 0/ MyProject: myuser dispersion. csv
#auth_url=http://
auth_url=http://
auth_user=
auth_key=mypassword
auth_version=2.0
# swift_dir = /etc/swift
# dispersion_coverage = 1
# container_put_count = 1000
# object_put_count = 1000
# big_container_count = 1000000
# retries = 5
# concurrency = 7
# csv_output = /etc/swift/
running either of the above commands it errors:
/usr/bin/ swift-dispersio n-populate swift-dispersio n-populate" , line 100, in <module> version= conf.get( 'auth_version' , '1.0')) python2. 6/site- packages/ swiftclient/ client. py", line 281, in get_auth 'os_options' ].get(' object_ storage_ url') and
Traceback (most recent call last):
File "/usr/bin/
auth_
File "/usr/lib/
if (kwargs[
KeyError: 'os_options'
/usr/bin/ swift-dispersio n-report swift-dispersio n-report" , line 316, in <module> version= conf.get( 'auth_version' , '1.0')) python2. 6/site- packages/ swiftclient/ client. py", line 281, in get_auth 'os_options' ].get(' object_ storage_ url') and
Traceback (most recent call last):
File "/usr/bin/
auth_
File "/usr/lib/
if (kwargs[
KeyError: 'os_options'
and will not work.
Nothing is captured in the swift log files,
This is on Scientific Linux 6.3 using: swiftclient- 1.2.0-2. el6.noarch swift-account- 1.7.4-2. el6.noarch swift-1. 7.4-2.el6. noarch swift-object- 1.7.4-2. el6.noarch swift-container -1.7.4- 2.el6.noarch swift-plugin- swift3- 1.0.0-0. 20120711git. el6.noarch swift-proxy- 1.7.4-2. el6.noarch
rpm -qa|grep swift
python-
openstack-
openstack-
openstack-
openstack-
openstack-
openstack-