Skip to content

Commit

Permalink
Merge branch 'v2.x/staging' into feature/v3/jcl
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Zeithaml authored Oct 9, 2024
2 parents 04b4d33 + ee5ea77 commit bd47e6a
Show file tree
Hide file tree
Showing 20 changed files with 123 additions and 43 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cicd-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
name: Zowe CICD Integration Tests

permissions:
contents: write
issues: write
pull-requests: write
statuses: write

on:
workflow_dispatch:
inputs:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
All notable changes to the Zowe Installer will be documented in this file.
<!--Add the PR or issue number to the entry if available.-->

## `2.18.1`
- Bugfix: Error message `ZWEL0141E` did not print user ID. [#3971](https://github.com/zowe/zowe-install-packaging/pull/3971)

## `2.17.0`

## New features and enhancements
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,10 @@ Please check details in [playbooks folder](playbooks/README.md).
## Quick Sanity Check on Your Zowe Instance

Please check details in [sanity test folder](tests/sanity/README.md).

<p>Hosting infrastructure for this project is supported by:</p>
<p>
<a href="https://www.digitalocean.com/?refcode=77a4454d32a1&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge">
<img src="https://opensource.nyc3.cdn.digitaloceanspaces.com/attribution/assets/SVG/DO_Logo_horizontal_blue.svg" width="201px">
</a>
</p>
7 changes: 5 additions & 2 deletions bin/commands/internal/start/prepare/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,11 @@ global_validate() {
if [[ ${ZWE_ENABLED_COMPONENTS} == *"discovery"* || ${ZWE_ENABLED_COMPONENTS} == *"files-api"* || ${ZWE_ENABLED_COMPONENTS} == *"jobs-api"* ]]; then
validate_this "validate_zosmf_host_and_port \"${ZOSMF_HOST}\" \"${ZOSMF_PORT}\" 2>&1" "zwe-internal-start-prepare,global_validate:${LINENO}"
fi
elif [ "${ZWE_components_gateway_apiml_security_auth_provider}" = "zosmf" ]; then
validate_this "validate_zosmf_as_auth_provider \"${ZOSMF_HOST}\" \"${ZOSMF_PORT}\" \"${ZWE_components_gateway_apiml_security_auth_provider}\" 2>&1" "zwe-internal-start-prepare,global_validate:${LINENO}"
if [ "${ZWE_components_discovery_enabled}" = "false" -a "${ZWE_components_gateway_apiml_security_auth_provider}" = "zosmf" ]; then
let "ZWE_PRIVATE_ERRORS_FOUND=${ZWE_PRIVATE_OLD_ERRORS_FOUND}+1"
print_error "Using z/OSMF as 'components.gateway.apiml.security.auth.provider' is not possible: discovery is disabled."
print_formatted_info "ZWELS" "zwe-internal-start-prepare,global_validate:${LINENO}" "Zosmf validation failed"
fi
fi

check_runtime_validation_result "zwe-internal-start-prepare,global_validate:${LINENO}"
Expand Down
13 changes: 6 additions & 7 deletions bin/commands/internal/start/prepare/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function prepareLogDirectory() {
if (logDir) {
os.mkdir(logDir, 0o750);
if (!fs.isDirectoryWritable(logDir)) {
common.printFormattedError("ZWELS", "zwe-internal-start-prepare,prepare_log_directory", `ZWEL0141E: User $(get_user_id) does not have write permission on ${logDir}.`);
common.printFormattedError("ZWELS", "zwe-internal-start-prepare,prepare_log_directory", `ZWEL0141E: User ${user} does not have write permission on ${logDir}.`);
std.exit(141);
}
}
Expand Down Expand Up @@ -172,12 +172,11 @@ function globalValidate(enabledComponents:string[]): void {
privateErrors++;
common.printFormattedError('ZWELS', "zwe-internal-start-prepare,global_validate", "Zosmf validation failed");
}
} else if (std.getenv('ZWE_components_gateway_apiml_security_auth_provider') == "zosmf") {
let zosmfOk = zosmf.validateZosmfAsAuthProvider(zosmfHost, zosmfPort, 'zosmf');
if (!zosmfOk) {
privateErrors++;
common.printFormattedError('ZWELS', "zwe-internal-start-prepare,global_validate", "Zosmf validation failed");
}
}
if (!enabledComponents.includes('discovery') && std.getenv('ZWE_components_gateway_apiml_security_auth_provider') == "zosmf") {
privateErrors++;
common.printError("Using z/OSMF as 'components.gateway.apiml.security.auth.provider' is not possible: discovery is disabled.");
common.printFormattedError('ZWELS', "zwe-internal-start-prepare,global_validate", "Zosmf validation failed");
}
}

Expand Down
5 changes: 4 additions & 1 deletion bin/commands/support/verify-fingerprints/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ print_message "- Calculate hashes of Zowe files"
cust_hashes=$(create_tmp_file "${tmp_file_prefix}")
result=$(java -cp "${ZWE_zowe_runtimeDirectory}/bin/utils/" HashFiles "${all_files}" | sort > "${cust_hashes}")
code=$?
if [ ${code} -eq 1 -o ! -f "${cust_hashes}" ]; then
if [ -f "${cust_hashes}" ]; then
file_size_check=$(wc -l "${cust_hashes}" | awk '{print $1}')
fi
if [ "${code}" -eq 1 -o ! -f "${cust_hashes}" -o "${file_size_check}" -eq 0 ]; then
print_error " * Error ZWEL0151E: Failed to create temporary file ${cust_hashes}. Please check permission or volume free space."
print_error " * Exit code: ${code}"
print_error " * Output:"
Expand Down
13 changes: 0 additions & 13 deletions bin/libs/zosmf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,3 @@ validate_zosmf_host_and_port() {
print_message "Successfully checked z/OS MF is available on 'https://${zosmf_host}:${zosmf_port}/zosmf/info'"
fi
}

validate_zosmf_as_auth_provider() {
zosmf_host="${1}"
zosmf_port="${2}"
auth_provider="${3}"

if [ -n "${zosmf_host}" -a -n "${zosmf_port}" ]; then
if [ "${auth_provider}" = "zosmf" ]; then
print_error "z/OSMF is not configured. Using z/OSMF as authentication provider is not supported."
return 1
fi
fi
}
13 changes: 1 addition & 12 deletions bin/libs/zosmf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function validateZosmfHostAndPort(zosmfHost: string, zosmfPort: number):
common.printError(`Warning: Could not validate if z/OS MF is available on 'https://${zosmfHost}:${zosmfPort}/zosmf/info'. NODE_HOME is not defined.`);
zosmfCheckPassed=false;
} else {
let execReturn = shell.execOutSync(`${std.getenv('NODE_HOME')}/bin/node`, `${std.getenv('ZWE_zowe_runtimeDirectory')}/bin/utils/curl.js`, `"https://${zosmfHost}:${zosmfPort}/zosmf/info"`, `-k`, `-H`, `"X-CSRF-ZOSMF-HEADER: true"`, `--response-type`, `status`);
const execReturn = shell.execOutSync(`${std.getenv('NODE_HOME')}/bin/node`, `${std.getenv('ZWE_zowe_runtimeDirectory')}/bin/utils/curl.js`, `https://${zosmfHost}:${zosmfPort}/zosmf/info`, `-k`, `-H`, `X-CSRF-ZOSMF-HEADER: true`, `--response-type`, `status`);
if (execReturn.rc || !execReturn.out) {
common.printError(`Warning: Could not validate if z/OS MF is available on 'https://${zosmfHost}:${zosmfPort}/zosmf/info'. No response code from z/OSMF server.`);
zosmfCheckPassed=false
Expand All @@ -47,14 +47,3 @@ export function validateZosmfHostAndPort(zosmfHost: string, zosmfPort: number):
}
return zosmfCheckPassed;
}

//TODO isnt this completely backwards?
export function validateZosmfAsAuthProvider(zosmfHost: string, zosmfPort: number, authProvider: string): boolean {
if (zosmfHost && zosmfPort) {
if (authProvider == 'zosmf') {
common.printError("z/OSMF is not configured. Using z/OSMF as authentication provider is not supported.");
return true;
}
}
return false;
}
2 changes: 1 addition & 1 deletion containers/base-jdk/ubi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Copyright Contributors to the Zowe Project.
#######################################################################

FROM zowe-docker-release.jfrog.io/ompzowe/base:latest-ubi
FROM zowe-docker-release.jfrog.io/ompzowe/base:2-ubi

##################################
# labels
Expand Down
2 changes: 1 addition & 1 deletion containers/base-jdk/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Copyright Contributors to the Zowe Project.
#######################################################################

FROM zowe-docker-release.jfrog.io/ompzowe/base:latest-ubuntu
FROM zowe-docker-release.jfrog.io/ompzowe/base:2-ubuntu

##################################
# labels
Expand Down
2 changes: 1 addition & 1 deletion containers/base-node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#######################################################################

# base image tag
ARG ZOWE_BASE_IMAGE=latest-ubuntu
ARG ZOWE_BASE_IMAGE=2-ubuntu

FROM zowe-docker-release.jfrog.io/ompzowe/base:${ZOWE_BASE_IMAGE}

Expand Down
2 changes: 1 addition & 1 deletion containers/zowe-launch-scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#######################################################################

# base image tag
ARG ZOWE_BASE_IMAGE=latest-ubuntu
ARG ZOWE_BASE_IMAGE=2-ubuntu

FROM zowe-docker-release.jfrog.io/ompzowe/base-node:${ZOWE_BASE_IMAGE}

Expand Down
2 changes: 1 addition & 1 deletion manifest.json.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Zowe",
"version": "2.18.0",
"version": "2.18.1",
"description": "Zowe is an open source project created to host technologies that benefit the Z platform from all members of the Z community (Integrated Software Vendors, System Integrators and z/OS consumers). Zowe, like Mac or Windows, comes with a set of APIs and OS capabilities that applications build on and also includes some applications out of the box. Zowe offers modern interfaces to interact with z/OS and allows you to work with z/OS in a way that is similar to what you experience on cloud platforms today. You can use these interfaces as delivered or through plug-ins and extensions that are created by clients or third-party vendors.",
"license": "EPL-2.0",
"homepage": "https://zowe.org",
Expand Down
4 changes: 2 additions & 2 deletions schemas/zowe-yaml-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@
"file": {
"type": "string",
"description": "Path of your z/OS keyring, including ring owner and ring name. Case sensitivity and spaces matter.",
"pattern": "^safkeyring:\/\/.*"
"pattern": "^safkeyring[a-z]*:\/\/.*"
},
"password": {
"type": "string",
Expand All @@ -831,7 +831,7 @@
"file": {
"type": "string",
"description": "Path of your z/OS keyring, including ring owner and ring name. Case sensitivity and spaces matter.",
"pattern": "^safkeyring:\/\/.*"
"pattern": "^safkeyring[a-z]*:\/\/.*"
},
"password": {
"type": "string",
Expand Down
3 changes: 3 additions & 0 deletions smpe/bld/service/promoted-apar.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
IO29431
IO29432
IO29433
IO29428
IO29429
IO29430
Expand Down
45 changes: 45 additions & 0 deletions smpe/bld/service/promoted-close.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
IO29431 -
PROBLEM SUMMARY:
****************************************************************
* USERS AFFECTED: All Zowe users *
****************************************************************
* PROBLEM DESCRIPTION: Update Zowe FMID AZWE002 to match the *
* community release *
****************************************************************
* RECOMMENDATION: Apply provided service *
****************************************************************
The Zowe community version was updated to 2.18.0.
This PTF provides the community changes in SMP/E format.
Follow this link for more details on the community changes:
https://docs.zowe.org/stable/

IO29432 -
PROBLEM SUMMARY:
****************************************************************
* USERS AFFECTED: All Zowe users *
****************************************************************
* PROBLEM DESCRIPTION: Update Zowe FMID AZWE002 to match the *
* community release *
****************************************************************
* RECOMMENDATION: Apply provided service *
****************************************************************
The Zowe community version was updated to 2.18.0.
This PTF provides the community changes in SMP/E format.
Follow this link for more details on the community changes:
https://docs.zowe.org/stable/

IO29433 -
PROBLEM SUMMARY:
****************************************************************
* USERS AFFECTED: All Zowe users *
****************************************************************
* PROBLEM DESCRIPTION: Update Zowe FMID AZWE002 to match the *
* community release *
****************************************************************
* RECOMMENDATION: Apply provided service *
****************************************************************
The Zowe community version was updated to 2.18.0.
This PTF provides the community changes in SMP/E format.
Follow this link for more details on the community changes:
https://docs.zowe.org/stable/

IO29428 -
PROBLEM SUMMARY:
****************************************************************
Expand Down
25 changes: 25 additions & 0 deletions smpe/bld/service/promoted-hold.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
++HOLD(UO90061) SYSTEM FMID(AZWE002) REASON(ACTION) DATE(24240)
COMMENT(
****************************************************************
* Affected function: Zowe servers *
****************************************************************
* Description: stop servers *
****************************************************************
* Timing: pre-APPLY *
****************************************************************
* Part: ZWESLSTC and ZWESISTC *
****************************************************************
Stop the Zowe servers before installing this update.

****************************************************************
* Affected function: Zowe servers *
****************************************************************
* Description: start servers *
****************************************************************
* Timing: post-APPLY *
****************************************************************
* Part: ZWESLSTC and ZWESISTC *
****************************************************************
Start the Zowe servers after installing this update.

).
++HOLD(UO90059) SYSTEM FMID(AZWE002) REASON(ACTION) DATE(24200)
COMMENT(
****************************************************************
Expand Down
2 changes: 2 additions & 0 deletions smpe/bld/service/promoted-ptf.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
UO90061
UO90062
UO90059
UO90060
UO90057
Expand Down
5 changes: 4 additions & 1 deletion smpe/bld/service/ptf-bucket.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@
#UO90049 UO90050 - IO29349 IO29350 IO29351 - Fri Mar 8 19:42:44 UTC 2024
#UO90057 UO90058 - IO29424 IO29425 IO29426 - Fri May 24 14:23:02 UTC 2024
#UO90059 UO90060 - IO29428 IO29429 IO29430 - Thu Jul 18 16:30:14 UTC 2024
UO90061 UO90062 - IO29431 IO29432 IO29433
#UO90061 UO90062 - IO29431 IO29432 IO29433 - Tue Aug 27 14:35:44 UTC 2024
UO90074 UO90075 - IO29454 IO29456 IO29457
UO90076 UO90077 - IO29458 IO29459 IO29460
UO90078 UO90079 - IO29461 IO29462 IO29463
4 changes: 4 additions & 0 deletions workflows/files/ZWECONF.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,11 @@ echo ' # VSAM configurations if you are using VSAM as Caching Service storage
echo ' vsam:' >> "${instance-zowe_runtimeDirectory}/zowe.yaml"
echo ' # VSAM data set with Record-Level-Sharing enabled or not' >> "${instance-zowe_runtimeDirectory}/zowe.yaml"
echo ' # Valid values could be: NONRLS or RLS.' >> "${instance-zowe_runtimeDirectory}/zowe.yaml"
#if (${instance-zowe_setup_vsam_mode})
echo ' mode: $!{instance-zowe_setup_vsam_mode}' >> "${instance-zowe_runtimeDirectory}/zowe.yaml"
#else
echo ' mode: NONRLS' >> "${instance-zowe_runtimeDirectory}/zowe.yaml"
#end
echo ' # Volume name if you are using VSAM in NONRLS mode' >> "${instance-zowe_runtimeDirectory}/zowe.yaml"
echo ' volume: "$!{instance-zowe_setup_vsam_volume}"' >> "${instance-zowe_runtimeDirectory}/zowe.yaml"
echo ' # Storage class name if you are using VSAM in RLS mode' >> "${instance-zowe_runtimeDirectory}/zowe.yaml"
Expand Down

0 comments on commit bd47e6a

Please sign in to comment.