X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwlaunchpad%2Fplugins%2Frwstagingmgr%2Frift%2Ftasklets%2Frwstagingmgr%2Fserver%2Fhandler.py;fp=rwlaunchpad%2Fplugins%2Frwstagingmgr%2Frift%2Ftasklets%2Frwstagingmgr%2Fserver%2Fhandler.py;h=6d7b5a88af1ab6c67657de54ca32425a06a2c356;hb=4870d0ee29789b859931e4e2c73e13dcb29537d5;hp=ce26e0644fc1077ceafafe9aa00e7474d97457a2;hpb=6f1a3fe149e4a6b9803382cb299c902f4cf58ec9;p=osm%2FSO.git diff --git a/rwlaunchpad/plugins/rwstagingmgr/rift/tasklets/rwstagingmgr/server/handler.py b/rwlaunchpad/plugins/rwstagingmgr/rift/tasklets/rwstagingmgr/server/handler.py index ce26e064..6d7b5a88 100644 --- a/rwlaunchpad/plugins/rwstagingmgr/rift/tasklets/rwstagingmgr/server/handler.py +++ b/rwlaunchpad/plugins/rwstagingmgr/rift/tasklets/rwstagingmgr/server/handler.py @@ -48,7 +48,7 @@ class RequestHandler(tornado.web.RequestHandler): class StoreStreamerPart(multipart_streamer.MultiPartStreamer): """ Create a Part streamer with a custom temp directory. Using the default - tmp directory and trying to move the file to $RIFT_ARTIFACTS occasionally + tmp directory and trying to move the file to $RIFT_VAR_ROOT occasionally causes link errors. So create a temp directory within the staging area. """ def __init__(self, store, *args, **kwargs): @@ -56,6 +56,9 @@ class StoreStreamerPart(multipart_streamer.MultiPartStreamer): self.store = store def create_part(self, headers): + #RIFT-18071: tmp directory was not getting created - throwing an error in the system test cases in HA failover. + if not os.path.exists(self.store.tmp_dir): + os.makedirs(self.store.tmp_dir) return multipart_streamer.TemporaryFileStreamedPart(self, headers, tmp_dir=self.store.tmp_dir)