Bug 827631
Summary: | X-Storage-Url should indicate external IP instead of 127.0.0.1 | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Etsuji Nakai <enakai> |
Component: | Documentation | Assignee: | Divya <divya> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Saurabh <saujain> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.0 | CC: | ashetty, asriram, gluster-bugs, mzywusko, sdharane, storage-doc |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-04-10 07:15:51 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Etsuji Nakai
2012-06-01 22:12:20 UTC
The reason of this behavior is based on the tempauth's implementation as below: /usr/lib/python2.6/site-packages/swift/common/middleware/tempauth.py --------- 94 url = 'https://' if 'cert_file' in conf else 'http://' 95 ip = conf.get('bind_ip', '127.0.0.1') 96 if ip == '0.0.0.0': 97 ip = '127.0.0.1' 98 url += ip 99 url += ':' + conf.get('bind_port', '8080') + '/v1/' + \ 100 self.reseller_prefix + conf_key.split('_')[1] --------- It looks up "bind_ip" in proxy-server.conf to build X-Storage-Url. Hence, a workaround is to set bind_ip to a specific external address(eg. bind_ip = master01) I'm not sure if this is an intended behavior. If so, it should be documented in the user's guide that you have to set the "bind_ip". Hi Etsuji, The users must manually add the option "bind_ip = <ip>" in the proxy-server.conf file so that the swift will return that ip on successful authentication. If the ip is not mentioned, the authentication will use localhost as the ip. Thanks for identifying it, we will update the documentation. Junaid I have added a note for the same and it is available at: http://documentation-stage.bne.redhat.com/docs/en-US/Red_Hat_Storage/2.0/html/Administration_Guide/ch19s04s04.html |