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

Fixing invalid SINGULARITY_IMAGE_EXPR by adding missing double-quotes #90

Merged

Conversation

kreczko
Copy link
Member

@kreczko kreczko commented May 31, 2018

SINGULARITY_IMAGE_EXPR needs to be within double-quotes for HTCondor to parse it correctly

The current implementation causes the following error with condor 8.6.11:

05/31/18 16:20:14 (pid:100974) Singularity support was requested but unable to determine the image to use.
05/31/18 16:20:14 (pid:100974) Singularity enabled but setup failed; failing job.
05/31/18 16:20:14 (pid:100974) Failed to start job, exiting
05/31/18 16:20:14 (pid:100974) ShutdownFast all jobs.

@kreczko kreczko merged commit 249dd58 into HEP-Puppet:master May 31, 2018
@kreczko kreczko deleted the kreczko-fix-SINGULARITY_IMAGE_EXPR branch May 31, 2018 15:27
@olifre
Copy link
Collaborator

olifre commented May 31, 2018

Doesn't this depend on the usecase?
We have

singularity_image_expr  =>   '$(CHOSEN_IMAGE)'

in our puppet code, which created the following config before this commit:

SINGULARITY_IMAGE_EXPR = $(CHOSEN_IMAGE)

Elsewhere in our condor-config, we define:

SL6_DEFAULT_IMAGE = /somewhere/SL6
UBUNTU1604_DEFAULT_IMAGE = /somewhere/Ubuntu1604
CHOSEN_IMAGE = "$(SL6_DEFAULT_IMAGE)"
CHOSEN_IMAGE = ifThenElse(TARGET.ContainerOS is "Ubuntu1604", "$(UBUNTU1604_DEFAULT_IMAGE)", $(CHOSEN_IMAGE))

Forcefully adding double quotes in the puppet template makes the expression as such unusable.

It's now only possible to ever define a single image using this puppet module, which is a severe loss of functionality.

@olifre
Copy link
Collaborator

olifre commented May 31, 2018

I've put this up as issue #91 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants