pbs_snapshot --obfuscate fails if /tmp is a different filesystem than destination

Description

pbs_snapshot with --anonymize creates temp files (created by default on /tmp) which are used as scratch space to anonymize files before they are moved over to the destination. It was observed that if /tmp is a different filesystem than the destination, pbs_snapshot errors out at the os.rename() operation. Python's documentation suggests that os.rename() can indeed fail if source and destination are on different filesystems. So, we should replace os.rename() with shutil.move() which doesn't suffer from this.

Acceptance Criteria

None

Status

Assignee

Ravi Agrawal

Reporter

Ravi Agrawal

Severity

3-High

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Components

Priority

High
Configure