This document describes the command line tools which cover the various aspects of containerization of reference SAP® systems.
Table of Contents
- General Remarks
- Important Remark
- Tool
codingstyle
- Tool
config
- Tool
containerize
- Tool
creds
- Tool
gpg-key-gen
- Tool
image-build
- Tool
image-push
- Tool
nfs-hdb-copy
- Tool
nfs-overlay-list
- Tool
nfs-overlay-setup
- Tool
nfs-overlay-teardown
- Tool
ocp-container-login
- Tool
ocp-container-run
- Tool
ocp-deployment
- Tool
ocp-etc-hosts
- Tool
ocp-haproxy-forwarding
- Tool
ocp-hdb-secret-gen
- Tool
ocp-login
- Tool
ocp-pod-meminfo
- Tool
ocp-pod-status
- Tool
ocp-port-forwarding
- Tool
ocp-service-account-gen
- Tool
sap-system-status
- Tool
ssh-key-gen
- Tool
ssh-keys
- Tool
venv-setup
- Tool
verify-config
- Tool
verify-ocp-settings
The tools are located in the tools
directory of the repository
clone.
Purpose of the tools is to
-
prepare the infrastructure environment for the container build
-
build images from a reference SAP system
-
deploy containers based on these images to Red Hat® OpenShift® Container Platform
-
run the containers in the Red Hat OpenShift Container Platform
-
manage and monitor the containers deployed to Red Hat OpenShift Container Platform
The tools are invoked from command line.
Containerization is supported for target platform Red Hat OpenShift Container Platform on IBM® Power Systems™.
See the table of contents for a list of the tools.
⚠️ Before invoking the tools, do not forget to activate the virtual Python environment.
codingstyle [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-r <recursion-level>] [-f <format>] <source> [<source> ...]
Check coding style of Python files
Argument | Description | Default |
---|---|---|
<source> |
Names of files or directories that are to be checked | None |
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-r <recursion-level>, --recursion-level <recursion-level> |
Perform recursive check up to depth <recursion-level> if <source> is a directory; ('-1': no depth limitation) | 0 |
-f <format>, --format <format> |
Select output format ('text', 'html', 'empty') | text |
config [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-n] [-e] [-d] [--non-interactive] [-s]
Configuration management
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-n, --new |
Create a new configuration file | False |
-e, --edit |
Change configuration in an existing configuration file | False |
-d, --dump |
Dump configuration to stdout | False |
--non-interactive |
Perform '-n' and '-e' non-interactively (reading values from environment) | False |
-s, --suppress-descriptions |
Don't show detailed descriptions during edit | False |
containerize [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-y] [-b] [-p] [-o] [-u <overlay-uuid>] [-l] [-t] [-d] [-f <deployment-file>] [-s] [-x] [-a] [-r]
Automated build, push and deploy
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-y, --hdb-copy |
Copy HANA DB snapshot to NFS server | False |
-b, --build-images |
Build images | False |
-p, --push-images |
Push images to local OCP cluster registry | False |
-o, --setup-overlay-share |
Setup overlay share | False |
-u <overlay-uuid>, --overlay-uuid <overlay-uuid> |
UUID of overlay share for options '-d' and '-t' | None |
-l, --list-overlay-shares |
List existing overlay shares | False |
-t, --tear-down-overlay-share |
Tear down overlay share specified with option '-u' | False |
-d, --create-deployment-file |
Create deployment file | False |
-f <deployment-file>, --deployment-file <deployment-file> |
Deployment filename for options '-s' and '-x' | None |
-s, --start-deployment |
Start deployment specified with option -f on OCP cluster | False |
-x, --stop-deployment |
Stop deployment specified with option -f on OCP cluster | False |
-a, --execute-all |
Execute all actions (except '-t', '-l' and '-x') | False |
-r, --execute-rest |
Start with specified action and execute all subsequent actions in automation process. | False |
creds [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-n] [-e] [-d] [--non-interactive] [-s] [-u] [-r <recipient>]
Credentials management
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-n, --new |
Create a new credentials file | False |
-e, --edit |
Change credentials in an existing credentials file | False |
-d, --dump |
Dump credentials to stdout (DISPLAYS SECRETS IN CLEAR TEXT) | False |
--non-interactive |
Perform '-n' and '-e' non-interactively (reading values from environment) | False |
-s, --suppress-descriptions |
Don't show detailed descriptions during edit | False |
-u, --unencrypted |
If '-n' is specified: Don't encrypt a newly created credentials file | False |
-r <recipient>, --recipient <recipient> |
If '-n' is specified and '-u' is not specified: Owner e-mail address or key fingerprint of GPG key which will be used for encrypting a newly created credentials file. If not specified, symmetric AES256 encryption is used. | None |
gpg-key-gen [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context]
Generate a GPG private / public key pair
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
image-build [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-f <image-flavor>] [-t <temp-root>] [-d <build-dir>] [-k]
Build a container image of a given flavor
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-f <image-flavor>, --image-flavor <image-flavor> |
Image flavor ('init', 'nws4', 'hdb') | init |
-t <temp-root>, --temp-root <temp-root> |
Use <temp-root> as root for temporary files generated during build | /data/tmp |
-d <build-dir>, --build-directory <build-dir> |
Use <build-dir> as build directory; if not specified, a new build directory is created under '<temp-root>' | None |
-k, --keep-files |
Keep existing files in <build-dir> which were copied from <host> in a previous run; has no effect if '-d' is not specified | False |
image-push [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-f <image-flavor>]
Push a container image of a given flavor to the internal cluster registry
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-f <image-flavor>, --image-flavor <image-flavor> |
Image flavor ('init', 'nws4', 'hdb') | init |
nfs-hdb-copy [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context]
Copy an SAP HANA DB snapshot the NFS server
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
nfs-overlay-list [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context]
List availabe overlay shares on NFS server
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
nfs-overlay-setup [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-u <overlay-uuid>]
Setup overlay file system on NFS server
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-u <overlay-uuid>, --overlay-uuid <overlay-uuid> |
UUID of the overlay NFS share on which the HANA DB data resides | None |
nfs-overlay-teardown [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] -u <overlay-uuid>
Tear down overlay file system on NFS server
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-u <overlay-uuid>, --overlay-uuid <overlay-uuid> |
UUID of the overlay NFS share on which the HANA DB data resides | None |
ocp-container-login [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-i <container-flavor>] [--app-name <app-name>]
Interactively log into a container running in an OpenShift cluster
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-i <container-flavor>, --container-flavor <container-flavor> |
Container flavor ('di', 'ascs', 'hdb') | di |
--app-name <app-name> |
Application Name. Specify either the uuid, a unique part or the whole application name. | None |
ocp-container-run [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-i <container-flavor>] [--app-name <app-name>] command
Log into a container running in an OpenShift cluster
Argument | Description | Default |
---|---|---|
command |
Command to be executed inside the container | None |
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-i <container-flavor>, --container-flavor <container-flavor> |
Container flavor ('di', 'ascs', 'hdb') | di |
--app-name <app-name> |
Application Name. Specify either the uuid, a unique part or the whole application name. | None |
ocp-deployment [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-n <number-of-deployments>] [--app-name <app-name>] [-u <overlay-uuid>] [--add] [--remove] [--list] [--start] [--stop] [--gen-yaml] [-f <deployment-file>]
Deployment handling
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-n <number-of-deployments>, --number <number-of-deployments> |
Number of deployments to be added | 1 |
--app-name <app-name> |
Application Name. Specify either the uuid, a unique part or the whole application name. | None |
-u <overlay-uuid>, --overlay-uuid <overlay-uuid> |
UUID of the overlay NFS share on which the HANA DB data resides | None |
--add |
Add deployments. You can specify the number of addtional deployments using the --number parameter. | False |
--remove |
Removes a deployment. This option stops the deployment, tears down the NFS Overlay Share, and deletes the deployment description file | False |
--list |
Lists the information of all available deployments | False |
--start |
Starts a deployment. | False |
--stop |
Stops a deployment. | False |
--gen-yaml |
Generates a deployment description file, requires an overlayUuid specified by --overlay-uuid | False |
-f <deployment-file>, --deployment-file <deployment-file> |
Deployment description file, can be specified either with option --start or --stop instead of specifying --app-name | None |
ocp-etc-hosts [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context]
Add OpenShift cluster domain entries to '/etc/hosts'
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
ocp-haproxy-forwarding [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [--app-name <app-name>] [-a] [-l] [-r]
HAproxy configuration on OCP helper node for creating SAPGUI/ HDBSQL connections to the containerized SAP system
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
--app-name <app-name> |
Application Name. Specify either the uuid, a unique part or the whole application name. | None |
-a, --add |
Add NodePorts to the HAproxy configuration | False |
-l, --list |
Display HAproxy configuration | False |
-r, --remove |
Remove NodePorts from the HAproxy configuration | False |
ocp-hdb-secret-gen [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context]
Generate OpenShift HANA secret YAML file
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
ocp-login [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-u] [-a] [--project-ignore]
Log into OCP
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-u, --user |
Log into OCP as regular user | False |
-a, --admin |
Log into OCP as admin user | False |
--project-ignore |
Errors during setProject are ignored if set to False | False |
ocp-pod-meminfo [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [--app-name <app-name>] [-l] [-t <sleep-time>]
Get SAP system memory consumption information
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
--app-name <app-name> |
Application Name. Specify either the uuid, a unique part or the whole application name. | None |
-l, --loop |
Print information in endless loop | False |
-t <sleep-time>, --sleep-time <sleep-time> |
Sleep time in seconds between two loop executions | 5 |
ocp-pod-status [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [--app-name <app-name>] [-l] [-t <sleep-time>]
Get the status of a pod
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
--app-name <app-name> |
Application Name. Specify either the uuid, a unique part or the whole application name. | None |
-l, --loop |
Print information in endless loop | False |
-t <sleep-time>, --sleep-time <sleep-time> |
Sleep time in seconds between two loop executions | 5 |
ocp-port-forwarding [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [--app-name <app-name>]
SSH port forwarding for creating a SAP GUI connection to the containerized SAP system
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
--app-name <app-name> |
Application Name. Specify either the uuid, a unique part or the whole application name. | None |
ocp-service-account-gen [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-o <output-file>]
Generate YAML file for service account creation
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-o <output-file>, --output-file <output-file> |
Path to output file | None |
sap-system-status [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [--app-name <app-name>] [-l] [-t <sleep-time>] [--process-list]
Get SAP system status
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
--app-name <app-name> |
Application Name. Specify either the uuid, a unique part or the whole application name. | None |
-l, --loop |
Print information in endless loop | False |
-t <sleep-time>, --sleep-time <sleep-time> |
Sleep time in seconds between two loop executions | 5 |
--process-list |
Print the process list for every container.Ignored if --app-name not specified. | False |
ssh-key-gen [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-i <ssh-id>]
Generate a passphrase-less SSH private / public key pair
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-i <ssh-id>, --ssh-id <ssh-id> |
Path to the SSH ID private key file | None |
ssh-keys [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-a] [-d] [-r] [-y]
Add/remove SSH public keys to/from the various authorized_keys files
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-a, --add-keys |
Add SSH public keys to the various authorized_keys files | False |
-d, --display-details |
Display detailed information on which keys are added/removed to the various authorized_keys files of which users | False |
-r, --remove-keys |
Remove SSH public keys from the various authorized_keys files | False |
-y, --no-confirm |
Don't confirm adding/removing keys to/from the various authorized_keys files | False |
venv-setup
Set up a Python virtual environment with all modules that are required to run the tools.
Once the virtual environment is prepared, activate it by executing
source venv/bin/activate
out of the repository clone root directory
before running any of the other tools.
verify-config [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-func FUNCTION]
Verify parameter settings in configuration YAML file
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-func FUNCTION, --function FUNCTION |
single test mode for function | None |
verify-ocp-settings [-h] [-c <config-file>] [-q <creds-file>] [-g <logfile-dir>] [-v {critical,error,warning,info,debug,notset}] [-w] [--dump-context] [-func FUNCTION]
Verify OpenShift cluster setup related settings
Argument | Description | Default |
---|---|---|
-h, --help |
show this help message and exit | |
-c <config-file>, --config-file <config-file> |
Configuration file | ./config.yaml |
-q <creds-file>, --creds-file <creds-file> |
Credentials file (encrypted) | ./creds.yaml.gpg |
-g <logfile-dir>, --logfile-dir <logfile-dir> |
logfile directory | ./log |
-v {critical,error,warning,info,debug,notset}, --loglevel {critical,error,warning,info,debug,notset} |
logging level | warning |
-w, --log-to-terminal |
Log to terminal instead of logging to file | False |
--dump-context |
Dump context (CLI arguments, configuration, credentials) | False |
-func FUNCTION, --function FUNCTION |
single test mode for function | None |