-
Hi,
First of all I am forced to accept a bunch of temporary data sets via SD, log or the playbook just waits forever:
and then after few of these, the playbook errors out saying that it can't define the file
At the same time z/OS is complaining about not being able to delete an unexpired dataset which is probably the main issue:
I am able to delete and purge these files manually afterwards so I am surprised that ansible can't do it. Am I missing some extra settings here or permissions are incorrect? thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hi @gpow81 - we can answer some of your questions with more accuracy but I am not sure which version of the It looks like you trying to create a data set with HLQ Try:
As for all the temporary data sets, its not usually the users option to control behaviors, the reason they are used depends on the code path, if a z/OS program is used in the modules execution, they might require Data sets as input/output (SYSIN, etc) thus we create them and manage their lifecycle. In your case a file is being copied from the controller to z/OS , Ansible runs in USS, we stage it temporarily while we handle encoding conversions before we copy it into a data set, I would have to analyze the exact code path to provide the correct answer but that is a summary. We have a few current work items happening, |
Beta Was this translation helpful? Give feedback.
-
No problem. I see the playbook you are running, I have not run it on an zoau 1.2.0.1 and python 3.10 to see how it behaves, but I can try it when i have some free time this week. As far as the error, I will need to look into the zos_copy module source but i recall one of the prior behaviors of the module was to not check if a data set is empty reuse it, it would try to create a new one using the dest options (model it) and it looks like that design issue. The latest coming out in a couple of weeks 1.4.0-beta.2 takes into account such things even when you don't specify a record record length it will figure it out, anyhow the error I see is:
Which makes me think it first created the new So, let me follow up after I try this and capture some of the logs. As for "is that normal that I need to confirm each temporary file creation in sd->log by replying /NNu " that is not normal for us, nor have I ever heard a customer share this, I will ask some of the customers and check with others on this. Let me try this, i should have this combination on my system to try out, |
Beta Was this translation helpful? Give feedback.
-
Its been a while, since our last discussion, version 1.4.0 ibm_zos_core has released and zos_copy was completely rewritten, I was not able to recreate this. We can continue to try to diagnose this but would ask it to be on version 1.4.0 ibm_zos_core. I hope the issues are resolved. |
Beta Was this translation helpful? Give feedback.
-
@gpow81 , thank you for the reply even though time has passed. We are working towards reducing temporary files, feel free to reach out us anytime. Happy automating :). |
Beta Was this translation helpful? Give feedback.
Its been a while, since our last discussion, version 1.4.0 ibm_zos_core has released and zos_copy was completely rewritten, I was not able to recreate this.
We can continue to try to diagnose this but would ask it to be on version 1.4.0 ibm_zos_core. I hope the issues are resolved.