Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: pipe_base
-
Labels:None
-
Story Points:1
-
Epic Link:
-
Sprint:DRP S17-5
-
Team:Data Release Production
Description
And then fail when they don't have permission. That is:
======================================================================
|
ERROR: testOutputs (__main__.ArgumentParserTestCase)
|
Test output directories, specified in different ways
|
----------------------------------------------------------------------
|
Traceback (most recent call last):
|
File "testArgumentParser.py", line 502, in testOutputs
|
args = parser.parse_args(config=self.config, args=[DataPath, "--rerun", "foo"])
|
File "/ssd/swinbank/pipe_base/python/lsst/pipe/base/argumentParser.py", line 509, in parse_args
|
namespace.butler = dafPersist.Butler(inputs=inputs, outputs=outputs)
|
File "/ssd/lsstsw/stack_20170409/Linux64/daf_persistence/13.0-6-gf146911/python/lsst/daf/persistence/butler.py", line 351, in __init__
|
self._createRepoDatas(inputs, outputs)
|
File "/ssd/lsstsw/stack_20170409/Linux64/daf_persistence/13.0-6-gf146911/python/lsst/daf/persistence/butler.py", line 572, in _createRepoDatas
|
parents = self._getParentsList(inputs, outputs)
|
File "/ssd/lsstsw/stack_20170409/Linux64/daf_persistence/13.0-6-gf146911/python/lsst/daf/persistence/butler.py", line 538, in _getParentsList
|
cfg = Storage.getRepositoryCfg(args.cfgRoot)
|
File "/ssd/lsstsw/stack_20170409/Linux64/daf_persistence/13.0-6-gf146911/python/lsst/daf/persistence/storage/storageContinued.py", line 82, in getRepositoryCfg
|
ret = Storage.storages[parseRes.scheme].getRepositoryCfg(uri)
|
File "/ssd/lsstsw/stack_20170409/Linux64/daf_persistence/13.0-6-gf146911/python/lsst/daf/persistence/posixStorage.py", line 150, in getRepositoryCfg
|
repositoryCfg = PosixStorage._getRepositoryCfg(uri)
|
File "/ssd/lsstsw/stack_20170409/Linux64/daf_persistence/13.0-6-gf146911/python/lsst/daf/persistence/posixStorage.py", line 131, in _getRepositoryCfg
|
with open(loc, 'r') as f:
|
IOError: [Errno 13] Permission denied: u'/ssd/lsstsw/stack_20170409/Linux64/obs_test/13.0-6-g7b63e3f/data/input/rerun/foo/repositoryCfg.yaml'
|
I've not attempted to make this pretty, just to make it work!
PR here: https://github.com/lsst/pipe_base/pull/31