POJO_JOB failed cc=1 ‘Execution of monitorJob for Openshift agent plugin with ESP Workload Automation
search cancel

POJO_JOB failed cc=1 ‘Execution of monitorJob for Openshift agent plugin with ESP Workload Automation

book

Article ID: 267352

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Using POJO_JOB to submit an Openshift job to an Openshift environment. POJO_WOB submits job to Openshift then fails with cc=1:

POJO_JOB TEST           
...............                                   

CLASSNAME com.ca.cloud.oc.OpenShift                                 
METHOD monitorJob                                                    

 ....                             
PARAMETER TYPE(String) VALUE(c:\XXX\Test\+                   
 token.txt)                                                          
.....
PARAMETER TYPE(String) VALUE(c:\XXX\Test\+                    
case_batch_job.yaml)                                                   

.......                        

ENDJOB

This message is found in the logs:
Illegal character in opaque part at index 5:file:<your url>\Test\\case_batch_job.yaml@at java.net.URI$Parser.fail(URI.java:2848)@at

Environment

Release : 12.0

Component: ESP Workload Automation

Resolution

The files are on a NAS shared drive, should use “file:/d:/DATA/Apps/Test/”, like below:
PARAMETER TYPE(String) VALUE(file:/d:/DATA/Apps/Test/+                   
 token.txt)                                                          
.....
PARAMETER TYPE(String) VALUE(file:/d:/DATA/Apps/Test/+                    
case_batch_job.yaml)                   

Additional Information

The file name value should follow the URL standard:

It should be:
file:///     -- when there is no host

or:
file:/       --- when there is a host

If this is Windows, then include the drive.  Example:  
file:///c:/XXX/Test/token.txt 
or 
file:/c:/XXX/Test/token.txt 

Note: Similar can be used also for mapped shared drive.