Skip to content

WhiteLab/PDC_scripts

 
 

Repository files navigation

PDC_scripts

Scripts for interacting with OpenStack

==========

swift_loader.py

Stage files from remote server into cinder block before uploading into swift

Requires a config.json:

{
	"remote-ip" : "192.170.228.3",
	"remote-user" : "JGRUNDSTAD",
	"remote-dir" : "/glusterfs/netapp/homes1/whitelab-pancreatic/sequences/PANCAN",
	"project" : "PANCAN",
	"subdirectory" : "RAW"
}

Usage:

cat filename_list.txt | \
xargs -P <threads> -n 1 -IFILE python swift_loader.py -j config.json -f FILE
  • Downloads FILE from remote-user@remote-ip:remote-dir.
  • Load FILE into the project swift container in 1GB chunks.
  • Deletes FILE from staging area.

Requirements:

  • Necessary SSH keys are loaded into the users' agent
  • sourced .novarc
  • http_proxy and https_proxy environment variables are unset

TODO: Error checking, exception handling

About

Scripts for interacting with OpenStack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.8%
  • Shell 6.2%