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

Module bigip_pool_member always returns state: disabled #2393

Closed
withjigs opened this issue Feb 28, 2024 · 1 comment · Fixed by #2409
Closed

Module bigip_pool_member always returns state: disabled #2393

withjigs opened this issue Feb 28, 2024 · 1 comment · Fixed by #2409
Labels
backlog Item logged internally bug Issues that are related to bugs in the Ansible modules

Comments

@withjigs
Copy link

COMPONENT NAME

f5networks.f5_modules.bigip_pool_member
Module version: f5networks-f5_modules-1.28.0

Environment

ANSIBLE VERSION
ansible [core 2.15.3]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/awx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.11/site-packages/ansible
  ansible collection location = /home/awx/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.11.5 (main, Sep 22 2023, 15:34:29) [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] (/usr/bin/python3.11)
  jinja version = 3.1.2
  libyaml = True
BIGIP VERSION
# show sys version

Sys::Version
Main Package
  Product     BIG-IP
  Version     16.0.1.1
  Build       0.0.6
  Edition     Point Release 1
  Date        Fri Jan 29 01:37:28 PST 2021
CONFIGURATION
OS / ENVIRONMENT

Ansible Automation Platform Controller 4.2.0
Base OS: RHEL 8.9

SUMMARY

We are running an Ansible task to change priority_group of pool members. In the task, we are keeping all pool member setting same as they currently are on the F5 except the priority_group.

However, when running the task one of the return value is always "state: disabled".

Although the task does not actually disable the pool member, it makes me worried if something is wrong.

STEPS TO REPRODUCE

Ansible Task:

- name: F5 Manage Pool Members | Set pool member state
  f5networks.f5_modules.bigip_pool_member:
    provider: "{{ f5_provider }}"
    pool: "{{ f5_pool_name }}"
    name: "{{ node_name }}"
    address: "{{ node_IP }}"
    port: "{{ node_port }}"
    state: "present"
    priority_group: "1"    ### this the only parameter we want to change
  register: f5_pool_member_state
  retries: 2
  delay: 1
  until: f5_pool_member_state is not failed

The output:

{
  "state": "disabled",
  "monitors": [],
  "changed": false,
  "invocation": {
    "module_args": {
      "provider": {
        "server": "10.50.10.20",
        "validate_certs": false,
        "user": "f5_user",
        "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
        "server_port": 443,
        "transport": "rest",
        "timeout": null,
        "no_f5_teem": false,
        "auth_provider": null
      },
      "pool": "test_pool",
      "name": "test_0",
      "address": "10.52.20.12",
      "port": 1234
      "priority_group": 1,
      "replace_all_with": false,
      "partition": "Common",
      "state": "present",
      "reuse_nodes": true,
      "aggregate": null,
      "fqdn": null,
      "connection_limit": null,
      "description": null,
      "rate_limit": null,
      "ratio": null,
      "preserve_node": null,
      "fqdn_auto_populate": null,
      "availability_requirements": null,
      "monitors": null,
      "ip_encapsulation": null
    }
  },
  "_ansible_no_log": null,
  "attempts": 1
}
EXPECTED RESULTS

The task should not return "state": "disabled"

In our task we either omit the "state" parameter or set it to "present". In both the cases we are getting "state: disabled"

ACTUAL RESULTS
{
  "state": "disabled",
  "monitors": [],
  "changed": false,
  "invocation": {
    "module_args": {
      "provider": {
        "server": "10.50.10.20",
        "validate_certs": false,
        "user": "f5_user",
        "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
        "server_port": 443,
        "transport": "rest",
        "timeout": null,
        "no_f5_teem": false,
        "auth_provider": null
      },
      "pool": "test_pool",
      "name": "test_0",
      "address": "10.52.20.12",
      "port": 1224
      "priority_group": 1,
      "replace_all_with": false,
      "partition": "Common",
      "state": "present",
      "reuse_nodes": true,
      "aggregate": null,
      "fqdn": null,
      "connection_limit": null,
      "description": null,
      "rate_limit": null,
      "ratio": null,
      "preserve_node": null,
      "fqdn_auto_populate": null,
      "availability_requirements": null,
      "monitors": null,
      "ip_encapsulation": null
    }
  },
  "_ansible_no_log": null,
  "attempts": 1
}
@withjigs withjigs added bug Issues that are related to bugs in the Ansible modules untriaged issue that needs an initial response from the developers labels Feb 28, 2024
@pgouband
Copy link
Contributor

pgouband commented Mar 6, 2024

Hi,

Thanks for reporting. Added to the backlog and internal tracking ID for this request is: INFRAANO-1506.

@pgouband pgouband added backlog Item logged internally and removed untriaged issue that needs an initial response from the developers labels Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Item logged internally bug Issues that are related to bugs in the Ansible modules
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants