-
Notifications
You must be signed in to change notification settings - Fork 54
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
Local vs remote env vars in root-dir config. #2372
Comments
Thanks for this @hjoliver Works here at NIWA. Jonny |
Hi @hjoliver I am inclined to do nothing about this - as we are still looking at moving this sort of logic to Cylc in the Cylc 8 time scale. |
@matthewrmshin - OK that's fine. Unfortunately we need this right now for cylc-7.8.x-compatible releases, but I've already patched (as above) our recent installed Rose versions, and we can live with local patching for any further pre-migration releases. |
In which case, feel free to raise a PR against 2019.01.x. |
I'm happy to do that, but it might be pointless depending on your response to this question above:
To rephrase that more clearly, if
If both might be required depending on use case, I'll probably need some advice on how to do it in Rose. |
I guess both required. The reason for the current logic... I figured that only the job host's login profiles would have the latest correct configuration for those environment variables. Clearly, this is insufficient for your use case! OK. Given that you have already patched your local environment, I agree that it is best to concentrate our effort to deliver a more flexible logic for these stuffs in Cylc 8. |
Is this on your radar, @wxtim? It may be relevant to cylc/cylc-admin#40? |
It's not been on my radar, but it should be: Thank you! |
Related to #2162 ? |
@hjoliver is there anything here that needs to be transferred to Cylc Flow? |
The case in the description above is now handled by cylc platform-specific run dir config, right? In which case, this can be closed (and there's nothing else to transfer over). |
Largely addressed by - https://github.com/cylc/cylc-flow |
Reopening for now, need to go through and test in more detail. |
I think this is a duplicate of #2238? The symlink functionality has now moved to Cylc 8 where it is provided by However, the cylc-rose plugin gets run before the |
Thanks @oliver-sanders 😄 |
Yes |
I'll have to find the time to go test this (and to see what users are currently doing about it at NIWA ... presumably we're still using my patched Rose version. |
@hjoliver - I did some testing and I can't currently see a way to do this with Cylc 8 other than creating separate platforms for each project which isn't nice. |
Issue transferred to cylc-flow -> cylc/cylc-flow#4612 |
NIWA is moving to use of communal (project member) project areas, including for suite output, so we need to configure
rose suite-run
to symlink suite run directories to the right project directories.Some users have more than one project on the go at once though, so hardwiring the project in login scripts isn't practical. Instead, I figured we could use a shell variable
$PROJECT
like this:...and advise users to set
$PROJECT
to the appropriate value in their local terminal session before executingrose suite-run
.However, this fails if the suite has a remote host (as most do) because
rose suite-run
re-invokes itself on the remote host to install files, and$PROJECT
(forroot-dir
) is not defined there:As a possibly-temporary measure, the following patch works with recent releases, by getting
rose suite-run
to interpolate local environment variables into "host config" values before re-invoking itself on remote hosts:But ... is this the appropriate permanent fix? Mabye others need different
root-dir
(etc.) on different hosts configured according to different login environments on those hosts (as per the status quo)?The text was updated successfully, but these errors were encountered: