Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STORY] Configure XNAT-ingest workflow from TBP to AIS #278

Closed
1 of 4 tasks
Tracked by #284
tclose opened this issue Mar 4, 2024 · 4 comments
Closed
1 of 4 tasks
Tracked by #284

[STORY] Configure XNAT-ingest workflow from TBP to AIS #278

tclose opened this issue Mar 4, 2024 · 4 comments
Assignees
Labels
data-ingestion Ingestion of data from edge devices to XNAT pipelines story a unit of work

Comments

@tclose
Copy link
Contributor

tclose commented Mar 4, 2024

Metadata

Epic: #271
Feature: #273

Description

  • The ghcr.io/australian-imaging-service/xnat-ingest:latest image needs to be regularly pulled to the staging server k8s cluster to pick up updates
  • Configure the staging command, docker run ghcr.io/australian-imaging-service/xnat-ingest:latest stage, to run regularly:
    • Daily @ 12am
    • Environment vars:
      • XNAT_INGEST_STAGE_DICOMS_PATH=/vol/vmhost/kubernetes/<path>/<to>/<dicom>/<store>/**/*.IMA (@fxusyd)
      • XNAT_INGEST_STAGE_DIR=/vol/vmhost/usyd-data-export/STAGING
      • XNAT_INGEST_STAGE_PROJECT=ProtocolName
      • XNAT_INGEST_STAGE_SUBJECT=PatientID
      • XNAT_INGEST_STAGE_VISIT=AccessionNumber
      • XNAT_INGEST_STAGE_ASSOCIATED="/vol/vmhost/usyd-data-export/RAW-DATA-EXPORT/{PatientName.family_name}_{PatientName.given_name}/.ptd","./[^\.]+.[^\.]+.[^\.]+.(?P\d+).[A-Z]+_(?P[^\.]+)."
      • XNAT_INGEST_STAGE_DELETE=0 (for now, will eventually be 1 when we are satisfied everything is working)
      • XNAT_INGEST_STAGE_LOGFILE=<somewhere-sensible>,INFO
      • XNAT_INGEST_STAGE_DEIDENTIFY=1
  • Configure the transfer command, docker run ghcr.io/australian-imaging-service/xnat-ingest:latest transfer, to run regularly:
    • Daily @ 6am
    • Environment vars:
      • XNAT_INGEST_STAGE_DIR=/vol/vmhost/usyd-data-export/STAGING
      • XNAT_INGEST_TRANSFER_REMOTE_STORE=<s3-bucket>
      • XNAT_INGEST_TRANSFER_STORE_CREDENTIALS=<s3-bucket-access-key>,<s3-bucket-access-secret> (@fxusyd)
      • XNAT_INGEST_TRANSFER_LOGFILE=<somewhere-else-sensible>,INFO
      • XNAT_INGEST_TRANSFER_DELETE=0 (for now, will eventually be 1 when we are satisfied everything is working)
      • XNAT_INGEST_TRANSFER_XNAT_LOGIN=https://xnat.sydney.edu.au,<role-account-user>,<role-account-pass> (@fxusyd)

@fxusyd: I have put your handle alongside the parts I think you will need to help out with.

Acceptance Criteria

  • 1. DICOM data is copied from the DICOMs store to STAGING dir and deidentified
  • 2. Associated raw-data files (i.e. *.ptd) are copied/moved from RAW-DATA-EXPORT to STAGING dir alongside matching DICOMs
  • 3. Staged data is sync'd from STAGING dir to S3 bucket

Blocked by

@tclose tclose added the data-ingestion Ingestion of data from edge devices to XNAT label Mar 4, 2024
@github-actions github-actions bot added pipelines story a unit of work labels Mar 4, 2024
@tclose tclose moved this to Todo in AIS Master Project Mar 4, 2024
@tclose
Copy link
Contributor Author

tclose commented Mar 15, 2024

@dean-taylor does this make sense?

@fxusyd
Copy link

fxusyd commented Apr 15, 2024

Testing it in K8s on the staging server now

@fxusyd
Copy link

fxusyd commented Apr 17, 2024

S3 bucket used by xnat-ingest transfer is not accessible. Emailed RNSH to add it to whitelist.

@fxusyd
Copy link

fxusyd commented May 27, 2024

Two issues were identified.

  1. Fixed pod within K8s cluster couldn't make external connections due to proxy.
  2. Waiting on new container image with script to bypass SSL verification due to self-signed certificate is used in RNSH.

@tclose tclose moved this from In Progress to Done in AIS Master Project Jun 24, 2024
@tclose tclose closed this as completed Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-ingestion Ingestion of data from edge devices to XNAT pipelines story a unit of work
Projects
Status: Done
Development

No branches or pull requests

3 participants