Skip to content

[Bug] [zos_job_submit] JCL submitted that results in a security exception returns no job log. #684

@ddimatos

Description

@ddimatos

Is there an existing issue for this?

  • There are no existing issues.

Are the dependencies a supported version?

  • The dependencies are supported.

IBM Z Open Automation Utilities

v1.2.2

IBM Enterprise Python

v3.11.x

IBM z/OS Ansible core Version

v1.5.0

ansible-version

latest

z/OS version

v2.5

Ansible module

zos_job_submit

Bug description

When submitting JCL that will through a security exception it will yield a response that is slightly incorrect but more importantly it could have returned the JCL with should have 1 DD in it.

I was given this in the response:

{
   "changed":false,
   "checksum":"2c575222b83b7a9f9e8f4f83c80e0056f13471c4",
   "dest":"/tmp/ansible.qvsmz1je",
   "duration":10,
   "gid":1,
   "group":"OMVSGRP",
   "jobs":[
      {
         "class":"",
         "content_type":"",
         "ddnames":[
            {
               "byte_count":"0",
               "ddname":"unavailable",
               "id":"",
               "procstep":"",
               "record_count":"0",
               "stepname":null
            }
         ],
         "job_id":"JOB00526",
         "job_name":"*",
         "owner":"*",
         "ret_code":{
            "code":null,
            "msg":null,
            "msg_code":null,
            "msg_txt":"The job could not be found."
         },
         "subsystem":null,
         "system":null
      }
   ],
   "md5sum":"c6b211bcead28fcfddad15ab3cdc4b93",
   "mode":"0600",
   "msg":"The JCL submitted with job id JOB00526 but appears to be a long running job that exceeded its maximum wait time of 10 second(s). Consider using module zos_job_query to poll for a long running job or increase option 'wait_times_s` to a value greater than 10.",
   "owner":"OBAGAOI",
   "size":1011,
   "src":"/.ansible/tmp/ansible-tmp-1679633673.2033558-19624-74872113450596/source",
   "state":"file",
   "uid":0
}

sec error

JCL which just has an invalid user FOOBAR

//HELLO    JOB (T043JM,JM00,1,0,0,0),'HELLO WORLD - JRM',
//             MSGCLASS=X,MSGLEVEL=1,NOTIFY=&SYSUID,USER=FOOBAR
//STEP0001 EXEC PGM=IEBGENER
//SYSIN    DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT1   DD *
HELLO, WORLD
/*
//SYSUT2   DD SYSOUT=*
//

Playbook verbosity output.

No response

Ansible configuration.

No response

Contents of the inventory

No response

Contents of group_vars or host_vars

No response

Metadata

Metadata

Assignees

Labels

BugSomething isn't working as designed.

Type

No type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions