Executing repotool commands by using Red Hat OpenShift CLI

The ELMOperation instance supports the execution of a repotool command on Engineering Lifecycle Management applications, one at a time, by using the Red Hat® OpenShift® CLI method.

Before you begin

Note: Refer to the supported repotool commands via the ELM operator, see Executing repotools that are supported by the Engineering Lifecycle Management operator

Procedure

  1. Log in to the Red Hat OpenShift cluster and connect to your project.
  2. Prepare the ELMOperation source manifest. Now, from a local computer create a YAML file for example repotool_elm_instance.yaml and enter the ELMOperation contents into this YAML file. For more information and sample, see ELMOperation, execute Repotool commands
  3. Run the following command
    oc create –f <file-name> -n <namespace-name>
    Replace the placeholders: For <namespace_name>, input the name of the project, where Engineering Lifecycle Management instance is created and <file-name> with the name of created ELMOperation file.
    Example:
    oc create -f repotool_elm_instance.yaml -n example
  4. Verify the installation by using following command
    oc get elmoperations <instance-name> -n <namespace_name>

    Replace the placeholder <instance-name> with the name of ELMOperation instance created.

    For example:
    oc get elmoperations elmoperation-sample -n example
  5. You can see the following output, when the ELMOperation is created successfully
    NAME                  AGE 
    elmoperation-sample   2m27s

Troubleshooting

Procedure

  1. The following message is displayed when the installation fails Error from server (NotFound): elmoperations.elm.ibm.com "elmoperation-sample" not found
  2. To help resolve this error, run the following command to check the ELMOperation name
    oc get elmoperations -n <namespace_name> 
    oc describe elmoperations <instance-name> -n <namespace_name> 
    For example
    oc get elmoperations -n example 
    oc describe elmoperations elmoperation-sample -n example

    The output provides information about ELMOperation resources and status.

    Note: You can also review the logs of the repotool command executed in the created pod.