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

PTF Build Failure (part 2) #3849

Merged
merged 9 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 playbooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ $ ansible-playbook -l <server> show-logs.yml -v
- **zowe_auto_create_user_group**: A boolean value to enable or disable creating Zowe user and group. Default value is `false`.
- **zowe_configure_skip_zwesecur**: A boolean value to skip running `ZWESECUR` job when configure Zowe instance.
- **zos_keystore_mode**: An optional string to configure Zowe instance to store certificates into Keyring instead of keystore. Valid values are `<empty>` (default value) or `KEYSTORE_MODE_KEYRING`.
- **convert_upload**: A boolean value to convert uploaded scripts from ASCII to EBCDIC post-transfer. Required for some distros, such as MacOSX. Default value is `false`.
- **skip_configfmid**: A boolean value to skip automatically configuring Zowe after FMID installation. Default value is `false`.
- **skip_start**: A boolean value to skip automatically starting Zowe after installation. Default value is `false`.
- **zowe_uninstall_before_install**: If you want to uninstall Zowe before installing a new version. Default value is `true`.
Expand Down
14 changes: 1 addition & 13 deletions playbooks/install-fmid.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Install Zowe SMPE FMID
- name: Install Zowe SMPE FMID.
hosts: all
gather_facts: false
become: false
Expand Down Expand Up @@ -78,15 +78,3 @@
- import_role:
name: fmid
tasks_from: overwrite_vars

# ============================================================================
# Configure Zowe
- import_role:
name: configfmid
when: not skip_configfmid|default(False)

# ============================================================================
# Start Zowe
- import_role:
name: start
when: not skip_start|default(False)
7 changes: 1 addition & 6 deletions playbooks/install-ptf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
name: fmid
tasks_from: overwrite_vars


# ============================================================================
# FIXME
- name: Check if zowe_keystore_dir has a value
Expand All @@ -75,12 +76,6 @@
- import_role:
name: configure

# ============================================================================
- name: Test upgraded configuration
import_role:
name: configfmid
tasks_from: validate_configuration

# ============================================================================
# Start Zowe
- import_role:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
vars:
script_chdir: "{{ zowe_root_dir }}/scripts/utils"
script_filename: ./zowe-install-proc.sh
script_parameters: "\"{{ zowe_dataset_prefix }}\" \"{{ zowe_proclib_dsname }}\""
script_parameters: -d {{ zowe_dataset_prefix }} -r {{ zowe_proclib_dsname }}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
vars:
script_chdir: "{{ zowe_root_dir }}/scripts/utils"
script_filename: ./zowe-install-xmem.sh
script_parameters: "\"{{ zowe_dataset_prefix }}\" \"{{ zowe_xmem_loadlib }}\" \"{{ zowe_xmem_parmlib }}\" \"{{ zowe_xmem_proclib }}\""
script_parameters: -d {{ zowe_xmem_loadlib }} -a {{ zowe_xmem_parmlib }} -r {{ zowe_xmem_proclib }}

- name: Show content of ZSS proc {{ zowe_xmem_proclib_member_zss }}
raw: cat "//'{{ zowe_xmem_proclib }}({{ zowe_xmem_proclib_member_zss }})'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,32 +45,26 @@
# ============================================================================
# Install Zowe proc
- import_role:
name: configfmid
name: configptf
tasks_from: install_proc

# ============================================================================
# Install Cross Memory Server
- import_role:
name: configfmid
name: configptf
tasks_from: install_xmem_server
vars:
zowe_xmem_install_from_path: "{{ zowe_root_dir }}/scripts/utils"

# ============================================================================
# Run ZWESECUR
- import_role:
name: configfmid
name: configptf
tasks_from: create_security_defn
when: not zowe_configure_skip_zwesecur

# ============================================================================
# Setup certificates
- import_role:
name: configfmid
tasks_from: setup_certificates

# ============================================================================
# Configure Zowe Instance
- import_role:
name: configfmid
name: configptf
tasks_from: configure_instance
4 changes: 3 additions & 1 deletion playbooks/roles/configure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

This role will configure Zowe after Zowe runtime has been laid down on the server.

Please note: if you want to configure FMID, should use `configfmid` role.
Please note: if you want to configure SMP/e install, should use `configptf` role.

Please note: config no longers works for base FMID on z/OS 2.5+
4 changes: 4 additions & 0 deletions playbooks/roles/ptf/tasks/is_ptf_installed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
file_upload_method: scp
file_upload_hashcheck: false

- name: Convert ascii to ebcdic
when: convert_upload|default(False)
raw: iconv -f ISO8859-1 -t IBM-1047 "{{ work_dir_remote }}/LSTFMID.jcl" > "{{ work_dir_remote }}/LSTFMID.jcl.ebcdic" && mv "{{ work_dir_remote }}/LSTFMID.jcl.ebcdic" "{{ work_dir_remote }}/LSTFMID.jcl"

# ============================================================================
# Run LSTFMID.jcl
- name: Run LSTFMID.jcl
Expand Down
23 changes: 17 additions & 6 deletions playbooks/roles/ptf/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@
file_upload_hashcheck: false
loop: "{{ zowe_ptf_install_jcls }}"

# ============================================================================
# Convert uploaded JCLs in remote workspace if necessary
- name: (Optional) convert PTF installation JCLs
vars:
filename: "{{ item }}.jcl"
loop: "{{ zowe_ptf_install_jcls }}"
when: convert_upload|default(False)
raw: iconv -f ISO8859-1 -t IBM-1047 "{{ work_dir_remote }}/{{ filename }}" > "{{ work_dir_remote }}/{{ filename }}.ebcdic" && mv "{{ work_dir_remote }}/{{ filename }}.ebcdic" "{{ work_dir_remote }}/{{ filename }}"



- name: Fix JCLs is we only have 1 PTF
when: zowe_smpe_ptf_2 == ""
block:
Expand Down Expand Up @@ -129,12 +140,12 @@
mode: 0700
delegate_to: localhost

- import_role:
name: zos
tasks_from: upload_and_run_script
vars:
upload_and_run_script_filename: install-SMPE-SYSMOD.sh
upload_and_run_script_parameters: "\"{{ zowe_smpe_hlq_dsn }}\" \"{{ zowe_smpe_hlq_csi }}\" \"{{ (zowe_smpe_dir_prefix is regex(\"/$\")) | ternary(zowe_smpe_dir_prefix, zowe_smpe_dir_prefix + \"/\") }}\" \"{{ work_dir_remote }}\" \"{{ zowe_smpe_fmid }}\" \"{{ zowe_smpe_ptf }}\" \"{{ zowe_smpe_ptf_2 }}\" \"{{ zowe_smpe_volser }}\" install"
#- import_role:
# name: zos
# tasks_from: upload_and_run_script
# vars:
# upload_and_run_script_filename: install-SMPE-SYSMOD.sh
# upload_and_run_script_parameters: "\"{{ zowe_smpe_hlq_dsn }}\" \"{{ zowe_smpe_hlq_csi }}\" \"{{ (zowe_smpe_dir_prefix is regex(\"/$\")) | ternary(zowe_smpe_dir_prefix, zowe_smpe_dir_prefix + \"/\") }}\" \"{{ work_dir_remote }}\" \"{{ zowe_smpe_fmid }}\" \"{{ zowe_smpe_ptf }}\" \"{{ zowe_smpe_ptf_2 }}\" \"{{ zowe_smpe_volser }}\" install"

- name: Check if the first PTF is installed properly
block:
Expand Down
5 changes: 5 additions & 0 deletions playbooks/roles/zos/tasks/upload_and_run_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
file_upload_method: scp
file_upload_hashcheck: false

# Necessary for some scp distros, as on MacOS
- name: Convert ascii to ebcdic
when: convert_upload|default(False)
raw: iconv -f ISO8859-1 -t IBM-1047 "{{ work_dir_remote }}/{{ upload_and_run_script_filename }}" > "{{ work_dir_remote }}/{{ upload_and_run_script_filename }}.ebcdic" && mv "{{ work_dir_remote }}/{{ upload_and_run_script_filename }}.ebcdic" "{{ work_dir_remote }}/{{ upload_and_run_script_filename }}"

- name: Add executive permission to {{ upload_and_run_script_filename }}
raw: chmod a+x "{{ work_dir_remote }}/{{ upload_and_run_script_filename }}"

Expand Down
Loading