Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate 'zwe init' actions to templated JCL #3718

Open
wants to merge 275 commits into
base: v2.x/staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
275 commits
Select commit Hold shift + click to select a range
8d1168b
Switch to tso version of is_data_set_exists
1000TurquoisePogs Feb 7, 2024
7274478
Fix syntax error preventing build
1000TurquoisePogs Feb 7, 2024
3af22ed
Fix line length on zweiapf
1000TurquoisePogs Feb 8, 2024
41bb33a
Split mvs task into 2 because usually authloadlib doesnt need to be c…
1000TurquoisePogs Feb 8, 2024
15f0163
Reduce duplicate code in each init phase
1000TurquoisePogs Feb 8, 2024
4fff502
fixed regression on finding jcllib and exiting on not
1000TurquoisePogs Feb 9, 2024
3d67b46
Add TS code from https://github.com/zowe/zowe-install-packaging/pull/…
1000TurquoisePogs Feb 9, 2024
bda8687
remove shell code and prevent duplicate job logging in verbose mode
1000TurquoisePogs Feb 9, 2024
ce48ee2
Add TS version of zwe install
1000TurquoisePogs Feb 9, 2024
4479db9
Revert install command for now while more testing is done
1000TurquoisePogs Feb 9, 2024
10e8340
Do not rename members
1000TurquoisePogs Feb 12, 2024
c9aa8b1
Split ZWENOKYR, fix bug on submitting right job for ZWEKRING replacem…
1000TurquoisePogs Feb 12, 2024
3ffb478
Fixes to bugs found by @Martin-Zeithaml
1000TurquoisePogs Feb 12, 2024
ce6b085
Fix bug in init stc where it said ZWE**S**ISTC accidentally. Fix stri…
1000TurquoisePogs Feb 12, 2024
0acee7e
Simplify init certificate shell code by removing certificate/keyring-…
1000TurquoisePogs Feb 12, 2024
dedef42
Fix bug in keyring generation where commonname fields were not substi…
1000TurquoisePogs Feb 12, 2024
0dd2d90
Added EXEC statement
Martin-Zeithaml Feb 13, 2024
20c0aeb
RACF specific JCL
Martin-Zeithaml Feb 13, 2024
781f688
Remove extra periods '.' in various JCL. Add quotes around runtime di…
1000TurquoisePogs Feb 13, 2024
4cc018f
Add in node and java DETECT code from init ts PR to avoid schema errors
1000TurquoisePogs Feb 13, 2024
b81bfdf
Allow remover jcls to continue execution even if bad rc, because we d…
1000TurquoisePogs Feb 13, 2024
2c5c17c
Valid DSN example
Martin-Zeithaml Feb 20, 2024
08b0d1c
Schema validations: datasets
Martin-Zeithaml Feb 21, 2024
36dff34
zwe diagnose running under configmgr
Martin-Zeithaml Oct 27, 2023
9d5a738
bin/libs/string.sh: trim update
Martin-Zeithaml Jan 31, 2024
cdb1741
build: sigstore sign build artifacts
MarkAckert Jan 22, 2024
1ffb834
build: add id-token permissions for sigstore
MarkAckert Jan 22, 2024
b90883f
build: discrete permissions cont..
MarkAckert Jan 22, 2024
fcf21c0
build: discrete permissions cont... PR
MarkAckert Jan 22, 2024
5679583
build: update contents permissions (ack locks)
MarkAckert Jan 22, 2024
c14385a
Update zwe for handeling missing parms
Martin-Zeithaml Feb 6, 2024
f161163
Use the zos function for getFileEncoding (#3642)
Martin-Zeithaml Feb 14, 2024
38b99d6
update changelog to align with 2.15.0
MarkAckert Feb 14, 2024
44f1316
TSS: Detect zOSMF Root CA (#3725)
Martin-Zeithaml Feb 15, 2024
820979e
Split zowe class creation out of the security jcls because its not ne…
1000TurquoisePogs Feb 21, 2024
2b1def8
WIP on use of a generator script for JCL
1000TurquoisePogs Nov 28, 2023
a882a72
Added 2 more samplib contents to omit as not jcl
1000TurquoisePogs Jan 23, 2024
eb43f56
Add 'zwe init generate' for running ZWEGENER. Migrate init mvs logic …
1000TurquoisePogs Jan 29, 2024
b98d254
Do string replace on zwegener in zwe init generate to fill in require…
1000TurquoisePogs Jan 29, 2024
6ec8559
Bump tsconfig to es2021 due to replaceAll
1000TurquoisePogs Jan 29, 2024
5201654
Revert to es2020 and use replace instead of replaceall
1000TurquoisePogs Jan 29, 2024
79c2d68
Revert ZWESECUR for now. VTL template issues.
1000TurquoisePogs Jan 29, 2024
e631203
Whitespace fixes for jcl
1000TurquoisePogs Jan 30, 2024
22e00ea
Add better mvs step logging and implement jcl cleanup for init vsam
1000TurquoisePogs Jan 30, 2024
08a12f2
Add STC to jcl lib output. Fix whitespace on ZWEGENER
1000TurquoisePogs Jan 30, 2024
0779be4
Fix zwekring reference and vsam breaking rexx
1000TurquoisePogs Jan 30, 2024
f3cf28b
Fixes for job submission and update of stc jcl
1000TurquoisePogs Jan 31, 2024
0e59510
Fixes after testing
1000TurquoisePogs Jan 31, 2024
639d2e4
Add way to fill in config file into zweslstc. run gener in init steps…
1000TurquoisePogs Feb 1, 2024
f969f99
Add missing error messages. Implement STC JCL and trim init stc.
1000TurquoisePogs Feb 1, 2024
d3ef233
Separate ZWESECUR into each security product, and simplify zwe init s…
1000TurquoisePogs Feb 2, 2024
6308184
split zwekring into 9 parts, 3 for each esm. printing of jcl to not u…
1000TurquoisePogs Feb 2, 2024
593da2e
Fixes for getting gener to run if an init subcommand called directly,…
1000TurquoisePogs Feb 5, 2024
04dca12
Fix missing quote in the shell zos-jes
1000TurquoisePogs Feb 5, 2024
9273fed
Fix quote syntax error
1000TurquoisePogs Feb 5, 2024
7b91d8a
Fix wait for job and submit job hanging
1000TurquoisePogs Feb 5, 2024
276a4cf
bugfix vsam, simplify stc, and bugfix stc rename if same name
1000TurquoisePogs Feb 6, 2024
db6a809
Added setting zowe.setup.vsam.name to automated tests
1000TurquoisePogs Feb 7, 2024
2645607
Fix extra . present in some jcl after templating. make zwegen00 not c…
1000TurquoisePogs Feb 7, 2024
65c7035
Switch to tso version of is_data_set_exists
1000TurquoisePogs Feb 7, 2024
bf6b470
Fix syntax error preventing build
1000TurquoisePogs Feb 7, 2024
92865d6
Fix line length on zweiapf
1000TurquoisePogs Feb 8, 2024
8c5240e
Split mvs task into 2 because usually authloadlib doesnt need to be c…
1000TurquoisePogs Feb 8, 2024
ced83b6
Reduce duplicate code in each init phase
1000TurquoisePogs Feb 8, 2024
7d14e05
fixed regression on finding jcllib and exiting on not
1000TurquoisePogs Feb 9, 2024
ce165e2
Add TS code from https://github.com/zowe/zowe-install-packaging/pull/…
1000TurquoisePogs Feb 9, 2024
74d6e64
remove shell code and prevent duplicate job logging in verbose mode
1000TurquoisePogs Feb 9, 2024
2f89815
Add TS version of zwe install
1000TurquoisePogs Feb 9, 2024
2965629
Revert install command for now while more testing is done
1000TurquoisePogs Feb 9, 2024
db44b8f
Do not rename members
1000TurquoisePogs Feb 12, 2024
088a21c
Split ZWENOKYR, fix bug on submitting right job for ZWEKRING replacem…
1000TurquoisePogs Feb 12, 2024
9b764d8
Fixes to bugs found by @Martin-Zeithaml
1000TurquoisePogs Feb 12, 2024
10cdfc4
Fix bug in init stc where it said ZWE**S**ISTC accidentally. Fix stri…
1000TurquoisePogs Feb 12, 2024
2536cd9
Simplify init certificate shell code by removing certificate/keyring-…
1000TurquoisePogs Feb 12, 2024
25e9864
Fix bug in keyring generation where commonname fields were not substi…
1000TurquoisePogs Feb 12, 2024
96b52de
Added EXEC statement
Martin-Zeithaml Feb 13, 2024
72a49c1
RACF specific JCL
Martin-Zeithaml Feb 13, 2024
b66ed56
Remove extra periods '.' in various JCL. Add quotes around runtime di…
1000TurquoisePogs Feb 13, 2024
6003c49
Add in node and java DETECT code from init ts PR to avoid schema errors
1000TurquoisePogs Feb 13, 2024
2ef27ea
Allow remover jcls to continue execution even if bad rc, because we d…
1000TurquoisePogs Feb 13, 2024
bfd8f6a
Valid DSN example
Martin-Zeithaml Feb 20, 2024
7a72b63
Schema validations: datasets
Martin-Zeithaml Feb 21, 2024
cdd56ea
Split zowe class creation out of the security jcls because its not ne…
1000TurquoisePogs Feb 21, 2024
5422ff2
Fix error descriptions. Fix gener not checking for if config has righ…
1000TurquoisePogs Feb 21, 2024
50aca02
Merge branch 'feature/v3/jcl' of github.com:zowe/zowe-install-packagi…
1000TurquoisePogs Feb 21, 2024
4adf4a5
Fix wrong variable name
1000TurquoisePogs Feb 21, 2024
aae7ba8
dry run comes in 2 variable flavors, make sure both are accounted for
1000TurquoisePogs Feb 21, 2024
f284db5
Remove duplicate end message
1000TurquoisePogs Feb 21, 2024
e62c122
Fix generate handling of multiple input files
1000TurquoisePogs Feb 21, 2024
2e32df3
Add missing stringlib import
1000TurquoisePogs Feb 21, 2024
fdf6cfe
escapeDollar already in copyMvsToUss
Martin-Zeithaml Feb 22, 2024
17bf2df
Temporary hack to get logs on test system for bug fixing elsewhere
1000TurquoisePogs Feb 22, 2024
f59c01e
Exit before first procedures
Martin-Zeithaml Feb 26, 2024
08c398a
SET in in-stream
Martin-Zeithaml Feb 26, 2024
e728717
Copy executables with flag -X
Martin-Zeithaml Feb 26, 2024
bd46246
Make room for the longest posible dsn
Martin-Zeithaml Feb 28, 2024
017d4ac
Handle $ in DSN or runtime path
Martin-Zeithaml Feb 29, 2024
a4ffe30
Init MVS prints JCL and enhanced trace
Martin-Zeithaml Feb 29, 2024
52eea1c
Simplify JCL prinitng, isVsamDatasetExists bug
Martin-Zeithaml Feb 29, 2024
c8b54b5
Create INSTALLATION.md
1000TurquoisePogs Feb 29, 2024
3661121
Update README.md for pointing to installation doc
1000TurquoisePogs Feb 29, 2024
3cf1a1a
Update README.md
1000TurquoisePogs Feb 29, 2024
116d513
Update INSTALLATION.md formatting
1000TurquoisePogs Feb 29, 2024
345ae31
Update INSTALLATION.md for formatting
1000TurquoisePogs Feb 29, 2024
c927de9
Update INSTALLATION.md datasets -> dataset typo
1000TurquoisePogs Feb 29, 2024
2bce6ff
Update INSTALLATION.md with links
1000TurquoisePogs Feb 29, 2024
af6709d
Update INSTALLATION.md
1000TurquoisePogs Feb 29, 2024
693c5ca
Update INSTALLATION.md with disclaimer
1000TurquoisePogs Feb 29, 2024
262da5a
Add new, hacky approach to getting log file to be readable by setting…
1000TurquoisePogs Mar 8, 2024
3c820fc
Update manifest.json.template
1000TurquoisePogs Mar 8, 2024
081afc0
Change node and java detect behavior when empty in zowe.yaml
1000TurquoisePogs Mar 11, 2024
90374cd
Merge branch 'feature/v3/jcl' of github.com:zowe/zowe-install-packagi…
1000TurquoisePogs Mar 11, 2024
51f03f1
Fix syntax error on json and filename error in certificates
1000TurquoisePogs Mar 11, 2024
5551e5d
Update ZWEIAPF to handle sms vs volume modes
1000TurquoisePogs Mar 11, 2024
79defd1
Update INSTALLATION.md
1000TurquoisePogs Mar 12, 2024
e1cd402
Update INSTALLATION.md
1000TurquoisePogs Mar 12, 2024
a48611b
Update INSTALLATION.md
1000TurquoisePogs Mar 12, 2024
50cae0d
isDatasetSmsManaged: check the correct flag
Martin-Zeithaml Mar 14, 2024
6d671bf
Update zos-dataset.ts
1000TurquoisePogs Mar 14, 2024
b62e3d2
cat DSN with dollar sign
Martin-Zeithaml Mar 15, 2024
5c582fa
Fix mixed up pluginlib ref
1000TurquoisePogs Mar 15, 2024
af6a5a2
Merge branch 'v2.x/staging' into feature/v3/jcl
1000TurquoisePogs Mar 15, 2024
3b5221d
Attempt to work-around test failures where existing dataset is not seen
1000TurquoisePogs Mar 18, 2024
f9eb3c9
Merge branch 'feature/v3/jcl' of github.com:zowe/zowe-install-packagi…
1000TurquoisePogs Mar 18, 2024
e0ccc21
Typos
Martin-Zeithaml Mar 19, 2024
ec40fa7
Sleep bug
Martin-Zeithaml Mar 19, 2024
2188d7d
Fix the SMP/e build (#3748)
MarkAckert Mar 19, 2024
8d3aa02
Re-test with os.sleep if fixed
1000TurquoisePogs Mar 20, 2024
f1955c9
Merge branch 'v2.x/staging' into feature/v3/jcl
1000TurquoisePogs Mar 21, 2024
e760e47
Split init steps on playbook to help troubleshoot
1000TurquoisePogs Mar 21, 2024
041d316
Merge branch 'feature/v3/jcl' of github.com:zowe/zowe-install-packagi…
1000TurquoisePogs Mar 21, 2024
41cea5a
Fix tsoIsDatasetExists use
1000TurquoisePogs Mar 22, 2024
9281230
Fixed nokyr extra }
1000TurquoisePogs Mar 22, 2024
f965d41
Add JCL for doing init apfauth action the same way as was done in v2
1000TurquoisePogs Mar 22, 2024
3cb4062
Cleanup sleep and existence logic now that sleep bug fixed
1000TurquoisePogs Mar 22, 2024
12a2459
Fix ZWEIRMVS running due to typo. Fix pds listing print out in existe…
1000TurquoisePogs Mar 25, 2024
f0824be
Do not touch szweauth in init
1000TurquoisePogs Mar 26, 2024
bb7958c
Fix that the testbed was not setting loadlib propertly
1000TurquoisePogs Mar 26, 2024
6160126
Use new launcher build
1000TurquoisePogs Mar 27, 2024
a8d6dc3
Restore java and node and runtimedir setup in zwe init. Switch back t…
1000TurquoisePogs Mar 27, 2024
a0ef3ab
Move home and runtime update logic into common function to run in bot…
1000TurquoisePogs Mar 27, 2024
2fe99e9
Use 2.15.0 apiml since saw staging errors in test
1000TurquoisePogs Mar 28, 2024
2c3c381
replace null with empty for env var strings
1000TurquoisePogs Mar 28, 2024
fd656b4
Update example-zowe.yaml
1000TurquoisePogs Mar 28, 2024
db2a8da
Switch back to staging apiml and normal init
1000TurquoisePogs Mar 28, 2024
8e46952
Merge branch 'feature/v3/jcl' of github.com:zowe/zowe-install-packagi…
1000TurquoisePogs Mar 28, 2024
ad7b1b9
Take the rest as the second argument and change in hex
Martin-Zeithaml Apr 9, 2024
9354047
Add new line at the end
Martin-Zeithaml Apr 9, 2024
b6ffea9
Fix keyring tmp file use
1000TurquoisePogs Apr 9, 2024
bdeb9b8
Update with staging
1000TurquoisePogs Apr 9, 2024
597457c
Merge branch 'feature/v3/jcl' of github.com:zowe/zowe-install-packagi…
1000TurquoisePogs Apr 9, 2024
e38e877
Re-add updateZoweYamlFromObj removed in conflict resolution
1000TurquoisePogs Apr 9, 2024
6be8565
Trace or debug for zwe -> verbose in REXX
Martin-Zeithaml Apr 10, 2024
9126333
Update INSTALLATION.md
1000TurquoisePogs Apr 10, 2024
a2617d5
Deal with possible dollar sign in DSN
Martin-Zeithaml Apr 19, 2024
e6b4ee8
Change OneOf to separate pieces
Martin-Zeithaml Apr 19, 2024
4dcd997
Add HEAPPOOLS64(OFF)
1000TurquoisePogs Apr 19, 2024
72ad7f6
Merge branch 'feature/v3/jcl' of github.com:zowe/zowe-install-packagi…
1000TurquoisePogs Apr 19, 2024
6e29cbb
Split init up again for testing
1000TurquoisePogs Apr 19, 2024
d7b5a33
Fixed "name" -> "file" in certificate section
1000TurquoisePogs May 2, 2024
83b6b42
Update INSTALLATION.md
1000TurquoisePogs May 2, 2024
db8e85d
Fix bug where cert was self-signed due to incorrect name
1000TurquoisePogs May 7, 2024
e8ce84e
Merge branch 'v2.x/staging' into feature/v3/jcl
1000TurquoisePogs May 7, 2024
149f324
Fixed that the tests for keyring were not specifying values
1000TurquoisePogs May 7, 2024
ab669e0
Fix keyring -> keystore naming in the test file
1000TurquoisePogs May 7, 2024
cd8057c
Simplify detection of zosmf flag and update incorrect jcl info on ver…
1000TurquoisePogs May 8, 2024
240393b
Update SMPMCS.txt
1000TurquoisePogs May 8, 2024
319bacb
set config for zwe init (useconfigmgr?)
MarkAckert May 10, 2024
bb10e99
Support runing gener if zweimvs is not found, such as in pre-existing…
1000TurquoisePogs May 14, 2024
f4f1d31
cat datasets with dollar sign
Martin-Zeithaml May 14, 2024
c3f1fca
VSAM help update
Martin-Zeithaml May 14, 2024
3c97836
Use defaults.yaml, a reduction of example-zowe.yaml, to have the righ…
1000TurquoisePogs May 15, 2024
bbe30a5
Comment out sysMessages items in defaults.yaml
Martin-Zeithaml May 15, 2024
7c7977d
Remove arrays that are unique
1000TurquoisePogs May 16, 2024
cf70fe4
Validate ZIS Parmlib member as ZWESIPnn
Martin-Zeithaml May 16, 2024
2db1e9e
Minor JCL changes
Martin-Zeithaml May 16, 2024
8aa1056
Adding zwe internal config output as a way to have zwe init certifica…
1000TurquoisePogs May 21, 2024
ba2f480
Remove unused function arguments
1000TurquoisePogs May 21, 2024
cac1dc2
Create temp folder that is used in output command
1000TurquoisePogs May 21, 2024
dfc9092
Error if dataset/member does not exist
Martin-Zeithaml May 21, 2024
0ec2829
Store and restore the config path after using merged yaml
1000TurquoisePogs May 21, 2024
adb8577
Use templates in defaults.yaml to avoid combining certificate scenari…
1000TurquoisePogs May 22, 2024
e33830b
Swap null for undefined. Assumed schema would tolerate null but did not.
1000TurquoisePogs May 22, 2024
ea9f8ab
Combine assignment of pkcs12 and dname objects into single statement
1000TurquoisePogs May 22, 2024
a47703f
Safe cp for datasets with dollar sign
Martin-Zeithaml May 23, 2024
88eebe0
Revert to null approach for zowe.setup.certificate. allow null in sch…
1000TurquoisePogs May 23, 2024
eb02d0b
Fixed keyring yaml write to temp file, and run certificate init throu…
1000TurquoisePogs May 24, 2024
59dcb03
Minor help update
Martin-Zeithaml May 24, 2024
8334e19
Split possible long RACF statement
Martin-Zeithaml May 27, 2024
b753b91
Remove error about needing configmgr set for init actions. It is not …
1000TurquoisePogs May 28, 2024
2b8cbac
Allow zwe init mvs to modify ZWEIMVS if zis parmlib member name is no…
1000TurquoisePogs May 28, 2024
e983af0
Allow zowe.setup.vsam.name to be empty by defaulting to the caching s…
1000TurquoisePogs May 28, 2024
8de84b3
Fix JSON syntax
1000TurquoisePogs May 28, 2024
6dc6766
Add defaults.yaml to ZWEGENER
1000TurquoisePogs May 28, 2024
0711755
Updated init help, dry run flag name, error message ids, and removed …
1000TurquoisePogs May 30, 2024
bfea339
Stop infinite loop
Martin-Zeithaml Jun 3, 2024
b80aed5
Check length of substitution
Martin-Zeithaml Jun 4, 2024
0e2670e
Check for undefined
Martin-Zeithaml Jun 4, 2024
bc5de91
Remove traling spaces
Martin-Zeithaml Jun 4, 2024
3112e35
Fix IEBCOPY SELECT MEMBER statement
Martin-Zeithaml Jun 5, 2024
27ae846
Update manifest.json.template
1000TurquoisePogs Jun 5, 2024
29d19b8
Respect --dry-run for init generate
Martin-Zeithaml Jun 6, 2024
60c0d51
ISREDIT change limitation
Martin-Zeithaml Jun 7, 2024
c6b4173
Variable name typo
Martin-Zeithaml Jun 10, 2024
d665b33
change with propres apostrophes
Martin-Zeithaml Jun 12, 2024
3ea37c1
Small update of errors
Martin-Zeithaml Jun 14, 2024
e256237
Message with proper name
Martin-Zeithaml Jun 14, 2024
875d672
Minor help update
Martin-Zeithaml Jun 20, 2024
5335edb
Missing generate parameters
Martin-Zeithaml Jun 20, 2024
cc76862
MD yaml syntax
Martin-Zeithaml Jun 20, 2024
5dd2c91
RLM -> RLS
Martin-Zeithaml Jun 21, 2024
e0dcada
Space added
Martin-Zeithaml Jun 21, 2024
3e5d5f0
Compare realpath and escape dollar
Martin-Zeithaml Jun 21, 2024
e8e776a
Minor text updates
Martin-Zeithaml Jun 21, 2024
aaf66be
Info for user
Martin-Zeithaml Jun 24, 2024
716caf1
ZWE variable typo
Martin-Zeithaml Jun 25, 2024
9188de0
ZWEGEN00 split CONFIG entry over multiple lines (#3873)
1000TurquoisePogs Jun 26, 2024
e47fa35
Fix defaults.yaml not loading due to incorrect substr
1000TurquoisePogs Jun 26, 2024
e6e9694
Remove defaults.yaml from ZWEGENER
1000TurquoisePogs Jun 26, 2024
bbb3272
Fix stc existence check only checking last one
1000TurquoisePogs Jun 26, 2024
4cf6e9d
ZWEGEN00: verify the operation and verbosity (#3745)
Martin-Zeithaml Jun 27, 2024
f77b238
Fixes from review
1000TurquoisePogs Jun 27, 2024
c327287
Minor changes
Martin-Zeithaml Jun 27, 2024
ed3b340
Clarification on help doc
1000TurquoisePogs Jun 27, 2024
cfa2a2a
Add back init_missing_yaml_properties for init mvs
1000TurquoisePogs Jun 27, 2024
c79d7d8
Fix typos on help and env name
1000TurquoisePogs Jun 27, 2024
907bc70
Typo
Martin-Zeithaml Jul 1, 2024
3650dd0
Incorrect variable name for getting original config
1000TurquoisePogs Jul 1, 2024
ca22e45
Merge branch 'v2.x/staging' into feature/v3/jcl
1000TurquoisePogs Jul 1, 2024
699667f
Merge branch 'v2.x/staging' into feature/v3/jcl
1000TurquoisePogs Jul 2, 2024
004088f
Update defaults.yaml
1000TurquoisePogs Jul 2, 2024
2bb8121
Merge branch 'v2.x/staging' into feature/v3/jcl
1000TurquoisePogs Jul 2, 2024
c7bdbd3
Copy check
Martin-Zeithaml Aug 6, 2024
3346ac5
Certificate type details
Martin-Zeithaml Aug 9, 2024
2e7b46a
Schema update
Martin-Zeithaml Aug 9, 2024
9c3c036
Install update
Martin-Zeithaml Aug 9, 2024
7653681
Merge branch 'v2.x/staging' into feature/v3/jcl
Martin-Zeithaml Aug 12, 2024
1352976
Include zss changes
Martin-Zeithaml Aug 12, 2024
29b9e37
Catch possible yaml error
Martin-Zeithaml Aug 23, 2024
1a55ec6
add --generate flag, update ZWECONF config step to always generate
MarkAckert Aug 29, 2024
9df5f67
Set _auto_ for TSS (detect CA)
Martin-Zeithaml Sep 4, 2024
161266d
safkeyring message update
Martin-Zeithaml Sep 10, 2024
8df3053
Install update
Martin-Zeithaml Sep 11, 2024
03f373b
Small security process enhancement
Martin-Zeithaml Sep 18, 2024
2451e93
Help update
Martin-Zeithaml Sep 18, 2024
fd77523
Updates for v3
1000TurquoisePogs Sep 25, 2024
84b342e
Update INSTALLATION.md
1000TurquoisePogs Sep 25, 2024
7ddeafc
Update INSTALLATION.md with details blocks
1000TurquoisePogs Sep 27, 2024
04b4d33
Bold collapsed sections
1000TurquoisePogs Sep 27, 2024
bd47e6a
Merge branch 'v2.x/staging' into feature/v3/jcl
Martin-Zeithaml Oct 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/commands/init/certificate/.parameters
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
allow-overwrite,allow-overwritten||boolean|||||Allow overwritten existing MVS data set.
update-config||boolean|||||Whether to update YAML configuration file with initialization result.
ignore-security-failures||boolean|||||Whether to ignore security setup job failures.
security-dry-run,dry-run||boolean|||||Generates and prints JCL but does not execute
23 changes: 21 additions & 2 deletions bin/commands/init/certificate/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,28 @@ if [ -z "${prefix}" ]; then
fi
# read JCL library and validate
jcllib=$(read_yaml "${ZWE_CLI_PARAMETER_CONFIG}" ".zowe.setup.dataset.jcllib")
if [ -z "${jcllib}" ]; then
print_error_and_exit "Error ZWEL0157E: Zowe custom JCL library (zowe.setup.dataset.jcllib) is not defined in Zowe YAML configuration file." "" 157
does_jcl_exist=$(is_data_set_exists "${jcllib}")
if [ -z "${does_jcl_exist}" ]; then
zwecli_inline_execute_command init generate
fi

# should be created, but may take time to discover.
if [ -z "${does_jcl_exist}" ]; then
does_jcl_exist=
for secs in 1 5 10 ; do
does_jcl_exist=$(is_data_set_exists "${jcllib}")
if [ -z "${does_jcl_exist}" ]; then
sleep ${secs}
else
break
fi
done

if [ -z "${does_jcl_exist}" ]; then
print_error_and_exit "Error ZWEL0999E: ${jcllib} does not exist, cannot run. Run 'zwe init', 'zwe init generate', or submit JCL ${prefix}.SZWESAMP(ZWEGENER) before running this command." "" 999
fi
fi

security_product=$(read_yaml "${ZWE_CLI_PARAMETER_CONFIG}" ".zowe.setup.security.product")
security_users_zowe=$(read_yaml "${ZWE_CLI_PARAMETER_CONFIG}" ".zowe.setup.security.users.zowe")
security_groups_admin=$(read_yaml "${ZWE_CLI_PARAMETER_CONFIG}" ".zowe.setup.security.groups.admin")
Expand Down
1 change: 1 addition & 0 deletions bin/commands/init/generate/.parameters
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dry-run||boolean|||||Prints out existing JCL templates but does not generate resolved JCL.
18 changes: 18 additions & 0 deletions bin/commands/init/generate/cli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
This program and the accompanying materials are made available
under the terms of the Eclipse Public License v2.0 which
accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-v20.html

SPDX-License-Identifier: EPL-2.0

Copyright Contributors to the Zowe Project.
*/

import * as std from 'cm_std';
import * as index from './index';
import * as configmgr from '../../../libs/configmgr';

index.execute(!!std.getenv('ZWE_CLI_PARAMETER_DRY_RUN'));
Martin-Zeithaml marked this conversation as resolved.
Show resolved Hide resolved

configmgr.cleanupTempDir();
23 changes: 23 additions & 0 deletions bin/commands/init/generate/index.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

#######################################################################
# This program and the accompanying materials are made available
# under the terms of the Eclipse Public License v2.0 which
# accompanies this distribution, and is available at
# https://www.eclipse.org/legal/epl-v20.html
#
# SPDX-License-Identifier: EPL-2.0
#
# Copyright Contributors to the Zowe Project.
#######################################################################

USE_CONFIGMGR=$(check_configmgr_enabled)
if [ "${USE_CONFIGMGR}" = "true" ]; then
if [ -z "${ZWE_PRIVATE_TMP_MERGED_YAML_DIR}" ]; then
# user-facing command, use tmpdir to not mess up workspace permissions
export ZWE_PRIVATE_TMP_MERGED_YAML_DIR=1
fi
_CEE_RUNOPTS="XPLINK(ON),HEAPPOOLS(OFF)" ${ZWE_zowe_runtimeDirectory}/bin/utils/configmgr -script "${ZWE_zowe_runtimeDirectory}/bin/commands/init/generate/cli.js"
else
echo "This command is only available when zowe.useConfigmgr=true"
1000TurquoisePogs marked this conversation as resolved.
Show resolved Hide resolved
fi
59 changes: 59 additions & 0 deletions bin/commands/init/generate/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
// This program and the accompanying materials are made available
// under the terms of the Eclipse Public License v2.0 which
// accompanies this distribution, and is available at
// https://www.eclipse.org/legal/epl-v20.html
//
// SPDX-License-Identifier: EPL-2.0
//
// Copyright Contributors to the Zowe Project.
*/

import * as std from 'cm_std';
import * as os from "cm_os";
import * as xplatform from "xplatform";
import * as fs from '../../../libs/fs';
import * as config from '../../../libs/config';
import * as common from '../../../libs/common';
import * as zosFs from '../../../libs/zos-fs';
import * as zosJes from '../../../libs/zos-jes';

export function execute(dryRun?: boolean) {
common.requireZoweYaml();
const ZOWE_CONFIG=config.getZoweConfig();
const tempFile = fs.createTmpFile();
zosFs.copyMvsToUss(ZOWE_CONFIG.zowe.setup.dataset.prefix + '.SZWESAMP(ZWEGENER)', tempFile);
1000TurquoisePogs marked this conversation as resolved.
Show resolved Hide resolved
let jclContents = xplatform.loadFileUTF8(tempFile, xplatform.AUTO_DETECT);
Martin-Zeithaml marked this conversation as resolved.
Show resolved Hide resolved

jclContents = jclContents.replace(/\{zowe\.setup\.dataset\.prefix\}/gi, ZOWE_CONFIG.zowe.setup.dataset.prefix);
Martin-Zeithaml marked this conversation as resolved.
Show resolved Hide resolved
jclContents = jclContents.replace(/\{zowe\.runtimeDirectory\}/gi, ZOWE_CONFIG.zowe.runtimeDirectory);
1000TurquoisePogs marked this conversation as resolved.
Show resolved Hide resolved
let absConfig = fs.convertToAbsolutePath(std.getenv('ZWE_PRIVATE_CONFIG_ORIG'));
1000TurquoisePogs marked this conversation as resolved.
Show resolved Hide resolved
jclContents = jclContents.replace('FILE <full path to zowe.yaml file>', 'FILE '+absConfig);
Martin-Zeithaml marked this conversation as resolved.
Show resolved Hide resolved

xplatform.storeFileUTF8(tempFile, xplatform.AUTO_DETECT, jclContents);

common.printMessage(`Template JCL: ${ZOWE_CONFIG.zowe.setup.dataset.prefix + '.SZWESAMP(ZWEGENER)'}`);
common.printMessage('--- JCL content ---');
common.printMessage(jclContents);
common.printMessage('--- End of JCL ---');

if (dryRun) {
common.printMessage('JCL not submitted, command run with dry run flag.');
common.printMessage('To perform command, re-run command without dry run flag, or submit the JCL directly.');
os.remove(tempFile);

} else { //TODO can we generate just for one step, or no reason?
common.printMessage('Submitting Job ZWEGENER');
const jobid = zosJes.submitJob(tempFile);
const result = zosJes.waitForJob(jobid);
os.remove(tempFile);

common.printMessage(`Job completed with RC=${result.rc}`);
if (result.rc == 0) {
common.printMessage("Zowe JCL generated successfully");
} else {
common.printMessage(`Zowe JCL generated with errors, check job log. Job completion code=${result.jobcccode}, Job completion text=${result.jobcctext}`);
}
// print if succesful
}
}
1 change: 1 addition & 0 deletions bin/commands/init/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ else
fi

###############################
zwecli_inline_execute_command init generate
zwecli_inline_execute_command init mvs
zwecli_inline_execute_command init vsam
if [ "${ZWE_CLI_PARAMETER_SKIP_SECURITY_SETUP}" != "true" ]; then
Expand Down
3 changes: 3 additions & 0 deletions bin/commands/init/mvs/.errors
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ ZWEL0157E|157|%s (%s) is not defined in Zowe YAML configuration file.
ZWEL0300W||%s already exists. This data set member will be overwritten during configuration.
ZWEL0301W||%s already exists and will not be overwritten. For upgrades, you must use --allow-overwrite.
ZWEL0158E|158|%s already exists.
ZWEL0161E|161|Failed to run JCL %s.
ZWEL0162E|162|Failed to find job %s result.
ZWEL0163E|163|Job %s ends with code %s.
1 change: 1 addition & 0 deletions bin/commands/init/mvs/.parameters
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
allow-overwrite,allow-overwritten||boolean|||||Allow overwritten existing MVS data set.
dry-run||boolean|||||Generates and prints JCL but does not execute
111 changes: 65 additions & 46 deletions bin/commands/init/mvs/index.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh

#######################################################################
# This program and the accompanying materials are made available
# under the terms of the Eclipse Public License v2.0 which
Expand All @@ -15,10 +14,10 @@ print_level1_message "Initialize Zowe custom data sets"

###############################
# constants
cust_ds_list="parmlib|Zowe parameter library|dsntype(library) dsorg(po) recfm(f b) lrecl(80) unit(sysallda) space(15,15) tracks
jcllib|Zowe JCL library|dsntype(library) dsorg(po) recfm(f b) lrecl(80) unit(sysallda) space(15,15) tracks
authLoadlib|Zowe authorized load library|dsntype(library) dsorg(po) recfm(u) lrecl(0) blksize(32760) unit(sysallda) space(30,15) tracks
authPluginLib|Zowe authorized plugin library|dsntype(library) dsorg(po) recfm(u) lrecl(0) blksize(32760) unit(sysallda) space(30,15) tracks"
cust_ds_list="parmlib|Zowe parameter library
jcllib|Zowe JCL library
authLoadlib|Zowe authorized load library
authPluginLib|Zowe authorized plugin library"

###############################
# validation
Expand All @@ -30,13 +29,36 @@ if [ -z "${prefix}" ]; then
print_error_and_exit "Error ZWEL0157E: Zowe dataset prefix (zowe.setup.dataset.prefix) is not defined in Zowe YAML configuration file." "" 157
fi

jcllib_location=$(read_yaml "${ZWE_CLI_PARAMETER_CONFIG}" ".zowe.setup.dataset.jcllib")
does_jcl_exist=$(is_data_set_exists "${jcllib_location}(ZWEIMVS)")
if [ -z "${does_jcl_exist}" ]; then
zwecli_inline_execute_command init generate
fi

# should be created, but may take time to discover.
if [ -z "${does_jcl_exist}" ]; then
does_jcl_exist=
for secs in 1 5 10 ; do
does_jcl_exist=$(is_data_set_exists "${jcllib_location}(ZWEIMVS)")
if [ -z "${does_jcl_exist}" ]; then
sleep ${secs}
else
break
fi
done

if [ -z "${does_jcl_exist}" ]; then
print_error_and_exit "Error ZWEL0999E: ${jcllib_location}(ZWEIMVS) does not exist, cannot run. Run 'zwe init', 'zwe init generate', or submit JCL ${prefix}.SZWESAMP(ZWEGENER) before running this command." "" 999
fi
fi


###############################
# create data sets if they do not exist
print_message "Create data sets if they do not exist"
while read -r line; do
key=$(echo "${line}" | awk -F"|" '{print $1}')
name=$(echo "${line}" | awk -F"|" '{print $2}')
spec=$(echo "${line}" | awk -F"|" '{print $3}')

# read def and validate
ds=$(read_yaml "${ZWE_CLI_PARAMETER_CONFIG}" ".zowe.setup.dataset.${key}")
Expand All @@ -59,56 +81,53 @@ while read -r line; do
# warning
print_message "Warning ZWEL0301W: ${ds} already exists and will not be overwritten. For upgrades, you must use --allow-overwrite."
fi
else
print_message "Creating ${ds}"
create_data_set "${ds}" "${spec}"
if [ $? -ne 0 ]; then
print_error_and_exit "Error ZWEL0111E: Command aborts with error." "" 111
fi
fi
done <<EOF
$(echo "${cust_ds_list}")
EOF

print_message

if [ "${ds_existence}" = "true" ] && [ "${ZWE_CLI_PARAMETER_ALLOW_OVERWRITE}" != "true" ]; then
print_message "Skipped writing to ${ds}. To write, you must use --allow-overwrite."
print_level2_message "Zowe custom data sets initialized with errors."
else
###############################
# copy sample lib members
parmlib=$(read_yaml "${ZWE_CLI_PARAMETER_CONFIG}" ".zowe.setup.dataset.parmlib")
for ds in ZWESIP00; do
print_message "Copy ${prefix}.${ZWE_PRIVATE_DS_SZWESAMP}(${ds}) to ${parmlib}(${ds})"
data_set_copy_to_data_set "${prefix}" "${prefix}.${ZWE_PRIVATE_DS_SZWESAMP}(${ds})" "${parmlib}(${ds})" "${ZWE_CLI_PARAMETER_ALLOW_OVERWRITE}"
Martin-Zeithaml marked this conversation as resolved.
Show resolved Hide resolved
if [ $? -ne 0 ]; then
print_error_and_exit "Error ZWEL0111E: Command aborts with error." "" 111

jcl_contents=$(cat "//'${jcllib_location}(ZWEIMVS)'")

print_message "Template JCL: ${prefix}.SZWESAMP(ZWEIMVS) , Executable JCL: ${jcllib_location}(ZWEIMVS)"
print_message "--- JCL Content ---"
print_message "$jcl_contents"
print_message "--- End of JCL ---"

if [ -z "${ZWE_CLI_PARAMETER_DRY_RUN}" ]; then
print_message "Submitting Job ZWEIMVS"
jobid=$(submit_job "//'${jcllib_location}(ZWEIMVS)'")
code=$?
if [ ${code} -ne 0 ]; then
print_error_and_exit "Error ZWEL0161E: Failed to run JCL ${jcllib_location}(ZWEIMVS)." "" 161
fi
print_debug "- job id ${jobid}"

jobstate=$(wait_for_job "${jobid}")
code=$?
if [ ${code} -eq 1 ]; then
print_error_and_exit "Error ZWEL0162E: Failed to find job ${jobid} result." "" 162
fi
done

###############################
# copy auth lib members
# FIXME: data_set_copy_to_data_set cannot be used to copy program?
authLoadlib=$(read_yaml "${ZWE_CLI_PARAMETER_CONFIG}" ".zowe.setup.dataset.authLoadlib")
if [ -n "${authLoadlib}" ]; then
for ds in ZWESIS01 ZWESAUX ZWESISDL; do
print_message "Copy components/zss/LOADLIB/${ds} to ${authLoadlib}(${ds})"
# data_set_copy_to_data_set "${prefix}" "${prefix}.${ZWE_PRIVATE_DS_SZWEAUTH}(${ds})" "${authLoadlib}(${ds})" "${ZWE_CLI_PARAMETER_ALLOW_OVERWRITE}"
copy_to_data_set "${ZWE_zowe_runtimeDirectory}/components/zss/LOADLIB/${ds}" "${authLoadlib}(${ds})" "-X" "${ZWE_CLI_PARAMETER_ALLOW_OVERWRITE}"
if [ $? -ne 0 ]; then
print_error_and_exit "Error ZWEL0111E: Command aborts with error." "" 111
fi
done
for ds in ZWELNCH; do
print_message "Copy components/launcher/bin/zowe_launcher to ${authLoadlib}(${ds})"
# data_set_copy_to_data_set "${prefix}" "${prefix}.${ZWE_PRIVATE_DS_SZWEAUTH}(${ds})" "${authLoadlib}(${ds})" "${ZWE_CLI_PARAMETER_ALLOW_OVERWRITE}"
copy_to_data_set "${ZWE_zowe_runtimeDirectory}/components/launcher/bin/zowe_launcher" "${authLoadlib}(${ds})" "-X" "${ZWE_CLI_PARAMETER_ALLOW_OVERWRITE}"
if [ $? -ne 0 ]; then
print_error_and_exit "Error ZWEL0111E: Command aborts with error." "" 111
fi
done
jobname=$(echo "${jobstate}" | awk -F, '{print $2}')
jobcctext=$(echo "${jobstate}" | awk -F, '{print $3}')
jobcccode=$(echo "${jobstate}" | awk -F, '{print $4}')

if [ "${code}" -eq 0 ]; then
print_level2_message "Zowe custom data sets are initialized successfully."
else
print_level2_message "Zowe custom data sets initialized with errors."
fi
else
print_message "JCL not submitted, command run with dry run flag."
print_message "To perform command, re-run command without dry run flag, or submit the JCL directly"
print_level2_message "Command run successfully."
fi
fi

###############################
# exit message
print_level2_message "Zowe custom data sets are initialized successfully."

2 changes: 1 addition & 1 deletion bin/commands/init/security/.parameters
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
security-dry-run||boolean|||||Whether to dry run security related setup.
security-dry-run,dry-run||boolean|||||Generates and prints JCL but does not execute
ignore-security-failures||boolean|||||Whether to ignore security setup job failures.
Loading
Loading