You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that if you are trying to create resources in multiple Workspaces in Seqera Platform, the overwrite feature of seqera-kit does not work.
Example;
# USAGE# seqerakit -l DEBUG --env-file env.yml compute-envs-demo2.ymlcompute-envs:
- type: aws-batchconfig-mode: manualworkspace: '$ORG_NAME/Dev'# dev workspacename: 'EBSAutoScale-Dev-test1'credentials: '$DEV_CREDENTIALS'work-dir: '$DEV_WORKDIR'region: '$AWS_REGION'head-queue: '$AWS_HEAD_QUEUE'compute-queue: '$AWS_WORK_QUEUE'overwrite: Truewait: 'AVAILABLE'
- type: aws-batchconfig-mode: manualworkspace: '$ORG_NAME/$TENANT_WORKSPACE'# THIS IS A DIFFERENT WORKSPACEname: 'EBSAutoScale-Shared'# THIS IS A DIFFERENT CE NAMEwork-dir: '$TENANT_WORKDIR'credentials: '$TENANT_CREDENTIALS'region: '$AWS_REGION'head-queue: '$AWS_HEAD_QUEUE'# SAME AWS BATCH QUEUE'scompute-queue: '$AWS_WORK_QUEUE'# SAME AWS BATCH QUEUE'soverwrite: Truewait: 'AVAILABLE'
Usage
$ seqerakit -l DEBUG --env-file env.yml compute-envs-demo2.yml
DEBUG:root: Overwrite is set to 'True' for compute-envs
INFO:root: Running command: tw -o json compute-envs list -w $ORG_NAME/Dev
INFO:root: Checking if name EBSAutoScale-Dev-test1 exists in Seqera Platform...
INFO:root: Running command: tw compute-envs add aws-batch manual --workspace $ORG_NAME/Dev --name EBSAutoScale-Dev-test1 --credentials $DEV_CREDENTIALS --work-dir $DEV_WORKDIR --region $AWS_REGION --head-queue $AWS_HEAD_QUEUE --compute-queue $AWS_WORK_QUEUE --wait AVAILABLE
INFO:root: Command output: New AWS-BATCH compute environment 'EBSAutoScale-Dev-test1' added at [MyOrg / Dev] workspace
Waiting AVAILABLE status....AVAILABLE [DONE]
New AWS-BATCH compute environment 'EBSAutoScale-Dev-test1' added at [MyOrg / Dev] workspace
Waiting AVAILABLE status....AVAILABLE [DONE]
DEBUG:root: Overwrite is set to 'True' for compute-envs
INFO:root: Checking if name EBSAutoScale-Shared exists in Seqera Platform...
INFO:root: Running command: tw compute-envs add aws-batch manual --workspace $ORG_NAME/$TENANT_WORKSPACE --name EBSAutoScale-Shared --work-dir $TENANT_WORKDIR --credentials $TENANT_CREDENTIALS --region $AWS_REGION --head-queue $AWS_HEAD_QUEUE --compute-queue $AWS_WORK_QUEUE --wait AVAILABLE
INFO:root: Command output: ERROR: A compute environment with name 'EBSAutoScale-Shared' already exists within the workspace 'MyTenant'
ERROR:root:Resource already exists. Please delete first or set 'overwrite: true'
In this case, the CE EBSAutoScale-Dev-test1 already existed in the 'Dev' workspace and gets deleted and re-created correctly.
However, the CE EBSAutoScale-Shared already exists in the MyTenant workspace ($TENANT_WORKSPACE) but seqera-kit does not check this and fails when it tries to create the CE that already exists. Despite the fact that overwrite: True is enabled for the creation of this CE.
The text was updated successfully, but these errors were encountered:
It seems that if you are trying to create resources in multiple Workspaces in Seqera Platform, the
overwrite
feature ofseqera-kit
does not work.Example;
Usage
In this case, the CE
EBSAutoScale-Dev-test1
already existed in the 'Dev' workspace and gets deleted and re-created correctly.However, the CE
EBSAutoScale-Shared
already exists in theMyTenant
workspace ($TENANT_WORKSPACE
) butseqera-kit
does not check this and fails when it tries to create the CE that already exists. Despite the fact thatoverwrite: True
is enabled for the creation of this CE.The text was updated successfully, but these errors were encountered: