Skip to content

Instantly share code, notes, and snippets.

@kinow
Last active September 3, 2022 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinow/6a88c91f31fdf9e67cbbfe82c7d1a25b to your computer and use it in GitHub Desktop.
Save kinow/6a88c91f31fdf9e67cbbfe82c7d1a25b to your computer and use it in GitHub Desktop.
First complete run of an Autosubmit workflow

Managed to complete a run of an Autosubmit workflow today for the first time, running the commands that I wanted. Here's where I was erring, and what I did to fix it.

Ubuntu sshd configurations

When you use the PS platform type, you also need to enable an SSH server. Autosubmit reads the SSH config file to load the host configuration.

$ cat ~/.ssh/config
Host localhost
  hostname localhost
  user kinow
  identityfile /home/kinow/.ssh/id_rsa
  forwardx11 yes

Also, in order to work around an issue with my Paramiko 2.7.1 and Py2, I had to modify the SSHD settings in /etc/ssh/sshd_config, adding:

PubkeyAuthentication yes
PubkeyAcceptedKeyTypes=+ssh-rsa

Experiment project type

Modified expdef_a000.conf to have a project type of local so it wouldn't just run sleep 5.

[project]
PROJECT_TYPE = local

[local]
PROJECT_PATH = /home/kinow/autosubmit/a000/scratch/project_path/

Define job FILE's

In jobs_a000.conf I defined scripts with a relative and an absolute locations. These are used as templates, injected between the project head

[init]
FILE=/home/kinow/Desktop/test.sh

[train]
FILE=_.sh
RUNNING=chunk
DEPENDENCIES=init

[eval]
FILE=_.sh
RUNNING=member
DEPENDENCIES=train

Summary of commands used:

Basically:

autosubmit configure
autosubmit install
autosubmit expid -H local -d Description
autosubmit create -np a000
autosubmit inspect a000
autosubmit run a000
autosubmit monitor a000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment