[EDP] Improve validation checks for swift data sources

Bug #1315448 reported by Trevor McKay
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
High
Trevor McKay

Bug Description

The scheme that Sahara/Hadoop currently use to match credentials to swift paths at runtime demands that a swift data source URL be in the form

"swift://container.sahara/object"

But, we don't force that during validation. This can result in a job that is launched and fails at runtime with "KILLED" -- there may or may not be useful error information in the top level Oozie log. A user may have to drill down into task logs to find out what happened.

We need to make sure that swift urls conform:

* require "swift" as the scheme if the data source type is "swift"
* require the ".sahara" suffix on the container
* require a non-zero length object

Trevor McKay (tmckay)
summary: - [EDP] Add validation check for ".sahara" suffix on swift containers for
- data sources
+ [EDP] Improve validation checks for swift data sources
description: updated
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/91848
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=145389f52e004eb199b7fd004518d1cdaa452b08
Submitter: Jenkins
Branch: master

commit 145389f52e004eb199b7fd004518d1cdaa452b08
Author: Trevor McKay <email address hidden>
Date: Fri May 2 14:14:09 2014 -0400

    Improve validation for swift data source URLs

    Closes-Bug: #1315448
    Change-Id: I2799eed36c6dd7ae782bd2b643323af986e6f141

Changed in sahara:
status: New → Fix Committed
Trevor McKay (tmckay)
Changed in sahara:
importance: Undecided → High
assignee: nobody → Trevor McKay (tmckay)
milestone: none → juno-1
Thierry Carrez (ttx)
Changed in sahara:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in sahara:
milestone: juno-1 → 2014.2
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.