Skip to content

Conversation

@Rohitcodes28
Copy link
Collaborator

SUMMARY

Create a role that executes on the managed node and collect all the required parameters for the support.

ISSUE TYPE
  • Role Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

@Rohitcodes28 Rohitcodes28 marked this pull request as ready for review October 30, 2025 18:04
richp405
richp405 previously approved these changes Oct 30, 2025
Copy link
Collaborator

@fernandofloresg fernandofloresg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requested few changes, codewise and tests are looking good.

@Rohitcodes28
Copy link
Collaborator Author

Rohitcodes28 commented Nov 3, 2025

SPS tested on 619 Pipeline
image
image

Copy link
Collaborator

@rexemin rexemin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you for working on this, it will be really useful for our technical support. Besides the comments I've already left, I would say to:

  • make sure you update copyright years to the correct ones (that is, 2025 in all of them, as they are new files)
  • probably rename Docs/ to docs/ to keep naming consistent inside the role directory
  • and also add checking of the SSH config files inside the managed node playbook (this would include getting the contents of ~/.ssh/rc, /etc/ssh/sshrc and /etc/ssh/ssh_config). I will leave it up to you to decide whether this information should be a toggle just like other parts of the playbook that are optional

@@ -0,0 +1,26 @@
# Copyright (c) IBM Corporation 2020, 2025
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave the copyright year as just 2025

---
# Operator PCON command
gather_diagnostics_gather_syslog: true
# Wether to get the controller node logs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Wether to get the controller node logs
# Whether to get controller logs

gather_diagnostics_gather_syslog: true
# Wether to get the controller node logs
controller_node: true
# Wether to create the managed node logs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Wether to create the managed node logs
# Whether to create the managed node logs

controller_node: true
# Wether to create the managed node logs
managed_node: true
# Set to true to create the YAML report files.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Set to true to create the YAML report files.
# If set to true, it will create YAML report files.

# Set to true to create the YAML report files.
# If set to false, no report will be created, all sensitive data will be printed to the console.
managed_node_log_file: true
# Creates separate file for control node logs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Creates separate file for control node logs
# Creates a separate file for controller logs

managed_node_log_file: true
# Creates separate file for control node logs
controller_node_log_file: true
# NEW: Directory to write reports to. Defaults to controller's home dir.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# NEW: Directory to write reports to. Defaults to controller's home dir.
# Directory to write reports to. Defaults to controller's home dir.

"""

Note = r"""
1. If C(environment- '{{ environment_vars }}') is defined in the main playbook before the controller node execution.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. If C(environment- '{{ environment_vars }}') is defined in the main playbook before the controller node execution.
1. If C(environment- '{{ environment_vars }}') is defined in the main playbook before controller execution,


Note = r"""
1. If C(environment- '{{ environment_vars }}') is defined in the main playbook before the controller node execution.
it will fail as the controller node tasks will assume them as local environment variables.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it will fail as the controller node tasks will assume them as local environment variables.
the role will fail as the controller tasks will assume them as local environment variables, when they are meant for the managed node running z/OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants