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

[v1.13.1][Bug] Failure when trying to delete dataset with type 'gdg' if the data set does not exist #2004

Open
1 task done
fernandofloresg opened this issue Mar 21, 2025 · 0 comments
Assignees
Labels
Bug Something isn't working as designed. In Plan Issue has been accepted put into a planned release Port Backward This item is being backported as well, see issue notes

Comments

@fernandofloresg
Copy link
Collaborator

fernandofloresg commented Mar 21, 2025

Is there an existing issue for this?

  • There are no existing issues.

Bug description

When trying to delete a dataset with type set to 'gdg', it fails with an exception if dataset doesn't exist

        result:
          exception: |2-
              File "/tmp/ansible_zos_data_set_payload_8h5wf6sa/ansible_zos_data_set_payload.zip/ansible_collections/ibm/ibm_zos_core/plugins/modules/zos_data_set.py", line 1889, in run_module
                result["changed"] = perform_data_set_operations(
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
                    data_set=data_set,
                    ^^^^^^^^^^^^^^^^^^
                ...<3 lines>...
                    force=data_set_params.get("force"),
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                ) or result.get("changed", False)
                ^
              File "/tmp/ansible_zos_data_set_payload_8h5wf6sa/ansible_zos_data_set_payload.zip/ansible_collections/ibm/ibm_zos_core/plugins/modules/zos_data_set.py", line 1416, in perform_data_set_operations
                changed = data_set.ensure_absent(force=force)
              File "/tmp/ansible_zos_data_set_payload_8h5wf6sa/ansible_zos_data_set_payload.zip/ansible_collections/ibm/ibm_zos_core/plugins/module_utils/data_set.py", line 2447, in ensure_absent
                raise DatasetDeleteError(self.raw_name, rc)
          invocation:
            module_args:
              force: false
              name: NAZARE.WDEPLOY.ANSIBLE.seqvv
              record_format: fb
              replace: false
              space_primary: 5
              space_secondary: 3
              space_type: m
              state: absent
              type: gdg
          message: ''
          msg: DatasetDeleteError('An error occurred during deletion of data set
            "NAZARE.WDEPLOY.ANSIBLE.SEQVV". RC=1')
          names:
          - NAZARE.WDEPLOY.ANSIBLE.SEQVV

IBM z/OS Ansible core Version

module : zos_data_set

IBM Z Open Automation Utilities

v1.3.4.0

IBM Enterprise Python

v3.11.x

ansible-version

v2.15.x

z/OS version

v2.5

Ansible module

No response

Playbook verbosity output.

No response

Ansible configuration.

Contents of the inventory

Contents of group_vars or host_vars

@fernandofloresg fernandofloresg added Bug Something isn't working as designed. Needs Triage Issue need assessment by a team member(s) labels Mar 21, 2025
@fernandofloresg fernandofloresg added this to the [Q2] [2025] Bugs milestone Mar 21, 2025
@fernandofloresg fernandofloresg added Port Backward This item is being backported as well, see issue notes In Plan Issue has been accepted put into a planned release and removed Needs Triage Issue need assessment by a team member(s) labels Mar 21, 2025
surendrababuravella added a commit that referenced this issue Apr 3, 2025
@fernandofloresg fernandofloresg moved this from 📗In plan to 🏗 In progress in IBM Ansible z/OS Core Collection Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working as designed. In Plan Issue has been accepted put into a planned release Port Backward This item is being backported as well, see issue notes
Projects
Status: 🏗 In progress
Development

No branches or pull requests

3 participants