Closed ChrisAtkinson1 closed 5 years ago
It's possible that the output files exist and have useful information in them even if the Bundle does end up disabled. For example, a Node.js application could start and almost instantly run to completion writing something to stdout in the process.
If the filenames aren't set then yeah, we could perhaps suppress the output (whilst tolerating the possibility that they're set in one region and not in another); but doing so based only on the state of the Bundle would be wrong.
Perhaps suppress "stdout:" and "stderr:" lines when there are no values?
What is our preferred output in this scenario:
Just suppress the stdout/stderr lines:
Regions in scope 'CALMAS1' of CICSplex 'CAPLEX': Applid: CALMAS1 jobname: CALMAS1 jobid: JOB73879
NODEJSAPP resources for bundle 'CICSJS02' in scope 'CALMAS1': NODEJSAPP resource 'CICSJSON' is in 'DISABLED' state in region 'CALMAS1' with process id '0'.
Add a suffix to explain why the output is missing:
Regions in scope 'CALMAS1' of CICSplex 'CAPLEX': Applid: CALMAS1 jobname: CALMAS1 jobid: JOB73879
NODEJSAPP resources for bundle 'CICSJS02' in scope 'CALMAS1': NODEJSAPP resource 'CICSJSON' is in 'DISABLED' state in region 'CALMAS1' with process id '0'. Stdout/Stderr are not available.
The current behaviour:
Regions in scope 'CALMAS1' of CICSplex 'CAPLEX': Applid: CALMAS1 jobname: CALMAS1 jobid: JOB73879
NODEJSAPP resources for bundle 'CICSJS02' in scope 'CALMAS1': NODEJSAPP resource 'CICSJSON' is in 'DISABLED' state in region 'CALMAS1' with process id '0'. Stdout: <not available> Stderr: <not available>
Something else?
I'd vote for option 3.
I believe this is fixed
Done
In the test plan there is this.
Make sure output is suppressed if there is nothing valuable in it eg. BUNDLE failed to install or enable
On DISABLE it currently does - However I think this is acceptable.
C:\Users\CHRISTOPHERAtkinson\Documents\ZoweStuff\ZOWEDEV\PUSH1\tests\Cicsjson\CICSJSON>zowe cics-deploy push bundle --name CICSJS02 --targetdir /u/atkinc/pushtest --zosmf-profile zosmf2c --cics-deploy-profile deploy --ssh-profile ssh2Ckey --ow --targetState DISABLED CICS Regions in Scope 'CALMAS1' of CICSplex 'CAPLEX': CICS Regions in Scope 'CALMAS1' of CICSplex 'CAPLEX': Applid: CALMAS1 jobname: CALMAS1 jobid: JOB73879 CICS Regions in Scope 'CALMAS1' of CICSplex 'CAPLEX': Applid: CALMAS1 jobname: CALMAS1 jobid: JOB73879
NODEJSAPP resources for Bundle 'CICSJS02' in Scope 'CALMAS1': CICS Regions in Scope 'CALMAS1' of CICSplex 'CAPLEX': Applid: CALMAS1 jobname: CALMAS1 jobid: JOB73879
NODEJSAPP resources for Bundle 'CICSJS02' in Scope 'CALMAS1': CICS NODEJSAPP resource 'CICSJSON' is in 'DISABLED' state in region 'CALMAS1' with process id '0'. stdout:
stderr:
CICS Regions in Scope 'CALMAS1' of CICSplex 'CAPLEX':
Applid: CALMAS1 jobname: CALMAS1 jobid: JOB73879
NODEJSAPP resources for Bundle 'CICSJS02' in Scope 'CALMAS1': CICS NODEJSAPP resource 'CICSJSON' is in 'DISABLED' state in region 'CALMAS1' with process id '0'. stdout:
stderr:
PUSH operation completed.