Skip to main content

Campaign management scripts for remote data access

Project description

hpc-campaign

HPC Campaign manager with remote data access.

hpc_campaign_manager

Script to create/update/delete a campaign archive.

This is the code to create a campaign archive of small files that can be shared with users and which contains references to the actual data in large files.

Example 1: add existing files on a resource hpc_campaign_manager create myproject/mycampaign_001.aca -f file1.bp restart/restart.bp

Example 2: add existing files on a resource and encrypt them with a keyfile hpc_campaign_manager create myproject/mycampaign_001.aca -k keyfile -f file1.bp restart/restart.bp

Example 2: create a campaign file pointing to an S3 bucket hpc_campaign_manager create mys3campaigns/shot001.aca --hostname SERVERNAME --s3_bucket /example-bucket --s3_datetime "2024-10-22 10:20:15 -0400" -f file1.bp file2.bp file3.bp

Note: use SERVERNAME in the host configuration file to specify on a local resource to how to connect to it

hpc_campaign_genkey

Script to generate a key file used to encrypt files added into a campaign archive.

Anyone with the keyfile can process a campaign archive but without it one can only list the content of the archive itself (list of files, host, folders and creation times).

The encoding key in the file is stored as plain text by default. Optionally, a password can be used to encrypt the key itself. Only those who has the keyfile and know the password, can process the campaign archive.

Example 1: Generate a keyfile. hpc_campaign_genkey.py generate keyfile

Example 2: Generate a password-encrypted keyfile hpc_campaign_genkey.py generate -p keyfile

Example 3: Verify a password encrypted keyfile. Asks for the password and decrypts the key in memory to verify the key/password combo is valid. hpc_campaign_genkey.py verify keyfile

Example 4: Print keyfile information. It does not ask for password. hpc_campaign_genkey.py info keyfile

hpc_campaign_connector

SSH tunnel and port forwarding using paramiko.

This is a service that needs to started on the local machine, so that ADIOS can ask for connections to remote hosts, as specified in the remote host configuration. Additionally, this scripts loads the available keyfiles, and serves to ADIOS on demand.

Example: python3 ./hpc_campaign_connector.py -c ~/.config/adios2/hosts.yaml -p 30000

Note that ADIOS currently looks for this service on fixed port 30000

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hpc_campaign-0.0.0.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hpc_campaign-0.0.0-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file hpc_campaign-0.0.0.tar.gz.

File metadata

  • Download URL: hpc_campaign-0.0.0.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for hpc_campaign-0.0.0.tar.gz
Algorithm Hash digest
SHA256 d5ee2e18174567187c344260e8e2bd0bf2749d2bb8589b5c655ee337d5fff5e2
MD5 09010e893715ae164ecd6e87ee668d1f
BLAKE2b-256 b9b46230a471d1e2a6ff630fc7af3de890183fb82642c2c90d49e02d96a591b4

See more details on using hashes here.

File details

Details for the file hpc_campaign-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: hpc_campaign-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 39.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for hpc_campaign-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 652fbd7beb2c9807de1e981030b18be74d56452ff4c6e9f7a259770e0a1813ff
MD5 55f624e934cd2dd95e442bda842c6e7b
BLAKE2b-256 ddf34dc79360bf3896765efd18681673c5d9cf5950c7fc43460d6600553508ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page