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

Traceback with cylc play and Cylc 7 workflows #4309

Closed
oliver-sanders opened this issue Jul 20, 2021 · 4 comments
Closed

Traceback with cylc play and Cylc 7 workflows #4309

oliver-sanders opened this issue Jul 20, 2021 · 4 comments
Assignees
Labels
bug Something is wrong :( small
Milestone

Comments

@oliver-sanders
Copy link
Member

oliver-sanders commented Jul 20, 2021

If you try to cylc play a running Cylc 7 workflow (or a crashed one which has left the contact file behind) the following traceback appears:

KeyError: 'CYLC_WORKFLOW_PUBLISH_PORT'

We could grep out the CYLC_VERSION from the contact file.

Should check other commands too as it is likely all client commands fail with this traceback.

@oliver-sanders oliver-sanders added the bug Something is wrong :( label Jul 20, 2021
@oliver-sanders oliver-sanders added this to the cylc-8.0b3 milestone Jul 20, 2021
@wxtim wxtim self-assigned this Jul 20, 2021
@wxtim
Copy link
Member

wxtim commented Jul 20, 2021

A very crude check suggests that the following scripts are affected:

broadcast
dump
get-workflow-version
kill
pause
ping
play
poll
reload
show
stop
trigger

(Check was)

#!/bin/bash

for script in $(cylc help all | awk '{print $1}'); do
    timeout 4 cylc $script cpbug 2> err 1> /dev/null
    if [[ $(grep CYLC_WORKFLOW_PUBLISH_PORT err) ]]; then
        echo $script
    fi
done

@oliver-sanders I think I have a fix which will cause a single failure if you try to run any of these commands against a Cylc 7 suite. Does that make sense for all these commands. In particular do we want to lose the ability to kill Cylc 7 suites?

@datamel
Copy link
Contributor

datamel commented Jul 20, 2021

This problem seems familiar... there was a similar problem with cylc scan solved by #3509, which was replaced with the new fancy scan.

@oliver-sanders
Copy link
Member Author

oliver-sanders commented Jul 21, 2021

In particular do we want to lose the ability to kill Cylc 7 suites?

We can't support Cylc 7 suites from the Cylc 8 command line because the communications layer is completely different. Users can switch to the Cylc 7 command line CYLC_VERSION=7.8.6 cylc stop --kill <suite> to stop their workflows (depending on the presence and configuration of a wrapper script).

which was replaced with the new fancy scan.

Yeah, the new fancy scan allows us to filter out workflows by Cylc version which suppresses this issue.

@wxtim
Copy link
Member

wxtim commented Aug 26, 2021

No longer a problem·

@wxtim wxtim closed this as completed Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :( small
Projects
None yet
Development

No branches or pull requests

3 participants