[EDP] Default os_auth_host cannot be localhost w/ Swift

Bug #1244309 reported by Matthew Farrellee
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
High
Sergey Reshetnyak

Bug Description

Using the Vanilla Plugin (status w/ HDP Plugin is unknown), savanna-api takes the os_auth_host and passes it into the core-site.xml of the cluster. By default, os_auth_host is localhost, which is very reasonable as the keystone identity service and savanna-api are often deployed on the same host. However, swift-hdfs tries to use a localhost url to contact keystone, which fails.

The failure looks like,

Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.MapReduceMain], main() threw exception, POST http://127.0.0.1:35357/v2.0/tokens/ failed on exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

The workaround for this bug is to always configure os_auth_host to be the host, accessible from within an instance, that runs keystone.

A better implementation would be to use os_auth_host as a bootstrap to lookup the publicUrl for the identity service, then pass that url into the core-site.xml.

Changed in savanna:
milestone: none → icehouse-1
importance: Undecided → High
status: New → Triaged
Changed in savanna:
assignee: nobody → Sergey Reshetnyak (sreshetniak)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to savanna (master)

Fix proposed to branch: master
Review: https://review.openstack.org/56418

Changed in savanna:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to savanna (master)

Reviewed: https://review.openstack.org/56418
Committed: http://github.com/openstack/savanna/commit/7a7696491c1c2513183ce3e6c074b5deaa43a6d4
Submitter: Jenkins
Branch: master

commit 7a7696491c1c2513183ce3e6c074b5deaa43a6d4
Author: Sergey Reshetnyak <email address hidden>
Date: Thu Nov 14 20:38:09 2013 +0400

    Fix auth url in swift

    * fix Default os_auth_host cannot be localhost w/ Swift
    * fix using keystone v3 api with Swift

    Fixes bug: #1244309

    Change-Id: I950701db942805d3add3eb44b4dedd919d40606d

Changed in savanna:
status: In Progress → Fix Committed
summary: - Default os_auth_host cannot be localhost w/ Swift
+ [EDP] Default os_auth_host cannot be localhost w/ Swift
Thierry Carrez (ttx)
Changed in savanna:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in sahara:
milestone: icehouse-1 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.