condor_host_execution_id: 1
supplemental_config:
+
+
'htcondor-ce':
- "MYVAR=VALUE"
- ANOTHER_CONDOR_KNOB: VALUE
@@ -760,43 +756,49 @@ this file.
Pre-Compilation
-
As mentioned earlier, it is a good practice to pre-compile your site level configuration file and spot any errors early in
+
You now must pre-compile your site level configuration file, in particular to spot and fix any errors early in
the deployment process.
While are working on a web-based compiler to significantly simplify writing of the site level configuration files, you can
use the commands shown below to locally test the compilation of your site level configuration file in the meantime.
-cd ~
-mkdir -p simple_grid_yaml_compiler/.temp
-cd simple_grid_yaml_compiler
-yum install -y python-pip
-pip install --upgrade pip
-pip install simple-grid-yaml-compiler
-simple_grid_yaml_compiler /etc/simple_grid/site_config/site_level_config_file.yaml -o output.yaml -s schema.yaml
+simple pre-compile
-If the compiler runs without any errors, you can proceed with the deployment. If there are errors, please take a look
+
If the compiler runs without any errors (i.e. the exit code is 0), you can proceed with the deployment. If there are errors, please take a look
at the troubleshooting guide towards the end of this tutorial or get in touch with us for further assistance.
-Simple Installer for CM
-After writing the site level configuration file and, preferably, pre-checking it for any compilation errors through the
-mechanisms mentioned in the previous section, we need to initialize the SIMPLE framework by running the simple installer
-on the CM node.
-puppet apply --modulepath /etc/puppetlabs/code/environments/production/modules -e 'class{"simple_grid::install::config_master::simple_installer":}'
+Extract the LC hosts
+Next you will run the following command to extract the list of LC hosts from your site level configuration file, to make them conveniently available as input to subsequent commands:
+simple extract-lc
-
-If you see any errors related to the YAML compiler, please take a look at the troubleshooting section towards the end of
-this tutorial. As always, please feel free to get in touch with us to help debug the error, if needed.
-Simple Installer for LC's
-On your LC nodes, run the following command to initialize the SIMPLE Framework.
-Remember to change the 'fqdn of your CM node' with the correct fqdn of your CM node.
-puppet apply --modulepath /etc/puppetlabs/code/environments/production/modules -e "class {'simple_grid::install::lightweight_component::simple_installer':puppet_master => 'fqdn of your CM node'}"
+Generate ssh key for your cluster
+To allow the LC hosts to be remotely installed and configured from the CM, a custom ssh key will be used by the framework. Generate it as follows:
+simple generate-key
+
+Install the corresponding public ssh key on all your LC hosts, typically by appending it to the /root/.ssh/authorized_keys file.
+Check if ssh works for your cluster
+The framework needs to be able to ssh from the CM to each of your LC hosts. Set it up as follows:
+simple test-ssh
+
+For each LC host you typically will need to confirm its addition to the list of known hosts. Then rerun the command to check that it proceeds fine without further dialogues:
+simple test-ssh
-
-Puppet certificate singing requests from LC's to CM
-On your CM node, you will now see the certificate signing requests from LC's using:
-puppet cert list -all
+Pre-install the LC hosts
+Now that ssh works from the CM to your LC hosts, the framework will be able to pre-install the latter:
+simple pre-install-lc
-Sign the certificate requests from the LC nodes:
-puppet cert sign --all
+Install the CM and the LC hosts
+We now can initialize the SIMPLE framework by running its installer on the CM as well as the LC hosts:
+simple install
+
+If you see any errors, please take a look at the troubleshooting section towards the end of
+this tutorial. As always, please feel free to get in touch with us to help debug the error, if needed.
+Note: If you would like to ignore failures reported by the validation engine, please check the
+FAQ section at the end of this guide
+Puppet certificate signing requests from LC hosts
+On your CM node, you will now see the certificate signing requests from LC hosts using:
+puppetserver ca list -all
+
+Sign the certificate requests as follows:
+puppetserver ca sign --all
-
Note: If you do not see any certificate signing requests, please check that Port 8140 is open on your CMs firewall
and that the LCs can reach the CM over your network. Then try again.
Some 'Good to Know' things
@@ -828,27 +830,24 @@
+On the CM, there is a convenient shorthand for that:
+simple cm-stage
+
Puppet Bolt
After the config stage, you can use Puppet Bolt on your CM to directly execute shell commands and scripts on some or
-all of your LCs.
-Let's say we wish to check the stage for our nodes, then the bolt command would look as follows:
-bolt command run 'puppet facts| grep simple_stage' -t simple-lc-node0.cern.ch,simple-lc-node1.cern.ch,simple-lc-node2.cern.ch,simple-lc-node3.cern.ch
+all of your LCs. For the most important such commands, the simple CLI provides convenient wrappers.
+Let's say we wish to check the stage for our LC hosts:
+simple lc-stage
-This command can be further simplified by creating a text file called, let's say, lc and then adding, one per line, the FQDN of the node
-on which we wish to execute a shell command.
-For our example cluster, we create the lc file as follows:
-vim /etc/simple_grid/lc
+NOTE: that command has to work, otherwise the remaining steps of the deployment will fail. If the command initially fails, usually it is due to Puppet still configuring Bolt in the background. In that case, wait a minute or two and try again. If it keeps failing, please get in touch.
+Its output is rather verbose, showing various underlying Bolt details. A more pleasant way to check the stages of the CM and all LC hosts in one go is as follows:
+simple check-stage [ stage-name ]
-and add the following content to it:
-simple-lc-node0.cern.ch
-simple-lc-node1.cern.ch
-simple-lc-node2.cern.ch
-simple-lc-node3.cern.ch
+where the optional 'stage-name' is the name of the expected stage, as detailed below. The command will print the outliers, i.e. those hosts that are not in the expected stage, along with their actual stages.
+Optional : if you'd like to execute a command on all nodes in your cluster, you can do using bolt from now on. For instance,
+the command below would return the hostname of all the LCs in your cluster:
+bolt command run 'hostname' -t @/etc/simple_grid/lc
-Now, the above bolt command can be reduced to:
-bolt command run 'puppet facts| grep simple_stage' -t @/etc/simple_grid/lc
-
-
Execution Pipeline Traversal
Forward direction
The recipes here describe how to go from one stage to another in the execution pipeline.
@@ -857,14 +856,14 @@ Reverse direction
Life's not perfect and despite our best efforts we may run into unexpected issues during the framework's execution.
In the past we have seen network errors or configuration errors which required us to rollback to previous_stages, fix the issues
@@ -874,56 +873,88 @@
Execute the Framework