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

f5_bigip is not compatible with ansible.netcommon > 3.1.0 #84

Open
simonkowallik opened this issue Apr 12, 2024 · 6 comments
Open

f5_bigip is not compatible with ansible.netcommon > 3.1.0 #84

simonkowallik opened this issue Apr 12, 2024 · 6 comments
Labels
bug Something isn't working waiting response

Comments

@simonkowallik
Copy link

simonkowallik commented Apr 12, 2024

COMPONENT NAME

All.

Environment

ANSIBLE VERSION
core 2.6.5
BIGIP VERSION
n/a - not relevant
CONFIGURATION

Using ansible.netcommon > 3.1.0 (eg. 4.1.0) will lead to authentication errors all the time.

OS / ENVIRONMENT
SUMMARY

Using ansible.netcommon > 3.1.0 (eg. 4.1.0) will lead to authentication errors all the time.


Suggests that 4.1.0 is ok, for example. Either the requirements are incorrect or f5_bigip is defective.

STEPS TO REPRODUCE
Use ansible.netcommon 4.1.0 or anything after 3.1.0
EXPECTED RESULTS
ACTUAL RESULTS

@simonkowallik simonkowallik added the bug Something isn't working label Apr 12, 2024
@pgouband
Copy link

Hi @simonkowallik,

I tested with ansible.netcommon 3.1.0 and 4.1.0 and it works on version BIG-IP v16.
Maybe the issue is related to your environment?

@pgouband
Copy link

Hi @simonkowallik,

The ansible version used durint the test:
ansible [core 2.15.4]

The version 2.6.5 is quite old.
Have you tested to update Ansible?

@pgouband
Copy link

Hi @simonkowallik,

Any update?

@jcramiresco
Copy link

I can confirm that this issue is also happening in my environment. While trying to build my Execution Environment and trying to install version "f5networks.f5_bigip:3.5.1" it is giving me issues due to the requirements of ansible.netcommon to be <5.0.0.

See below some logs from my EE build:

#19 57.46 * ansible.netcommon:>=5.1.0 (direct request)
#19 57.46 * ansible.netcommon:>=2.0.0,<5.0.0 (dependency of f5networks.f5_bigip:3.5.1)

The main problem I currently have is that I have some other modules I use that are no longer compatible with that really old version of netcommon (The lastest version compatible is 4.1.0 from Nov 3, 2022, almost 2 years old).

Could you please help addressing this issue and so the collection supports the latest versions of ansible.netcommon?.

Thanks in advance and please let me know if you need any information.

Have a great day.

@RavinderReddyF5
Copy link
Collaborator

hi @simonkowallik / @jcramiresco ,
can you please what error do you see ?

I did run a test and do not see any issue

(.venv) ➜  f5_bigip git:(devel) ✗ ansible-galaxy collection list

# /Users/r.chinthalapalli/PycharmProjects/ansible/f5_bigip/ansible_collections
Collection          Version
------------------- -----------
ansible.netcommon   5.3.0
ansible.utils       2.11.0
f5networks.f5_bigip 3.7.0-devel

(.venv) ➜  f5_bigip git:(devel) ✗ ansible-playbook -i ~/devsettings/inventory/bigip_sslov10 /Users/r.chinthalapalli/devsettings/repro/bigip_as3.yaml  -vvvv
ansible-playbook [core 2.17.3]
  config file = /Users/r.chinthalapalli/PycharmProjects/ansible/f5_bigip/ansible.cfg
  configured module search path = ['/Users/r.chinthalapalli/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/r.chinthalapalli/PycharmProjects/ansible/f5_bigip/.venv/lib/python3.12/site-packages/ansible
  ansible collection location = /Users/r.chinthalapalli/PycharmProjects/ansible/f5_bigip
  executable location = /Users/r.chinthalapalli/PycharmProjects/ansible/f5_bigip/.venv/bin/ansible-playbook
  python version = 3.12.3 (v3.12.3:f6650f9ad7, Apr  9 2024, 08:18:47) [Clang 13.0.0 (clang-1300.0.29.30)] (/Users/r.chinthalapalli/PycharmProjects/ansible/f5_bigip/.venv/bin/python)
  jinja version = 3.1.4
  libyaml = True

PLAYBOOK: bigip_as3.yaml ****************************************************************************************************************************************************************************************************************************
Positional arguments: /Users/r.chinthalapalli/devsettings/repro/bigip_as3.yaml
verbosity: 4
connection: ssh
become_method: sudo
tags: ('all',)
inventory: ('/Users/r.chinthalapalli/devsettings/inventory/bigip_sslov10',)
forks: 5
1 plays in /Users/r.chinthalapalli/devsettings/repro/bigip_as3.yaml

PLAY [AS3] ******************************************************************************************************************************************************************************************************************************************

TASK [Declaration with 2 Tenants - AS3] *************************************************************************************************************************************************************************************************************
task path: /Users/r.chinthalapalli/devsettings/repro/bigip_as3.yaml:10
File lookup using /Users/r.chinthalapalli/devsettings/repro/as3.json as file
redirecting (type: connection) ansible.builtin.httpapi to ansible.netcommon.httpapi
Loading collection ansible.netcommon from /Users/r.chinthalapalli/PycharmProjects/ansible/f5_bigip/ansible_collections/ansible/netcommon
Loading collection ansible.utils from /Users/r.chinthalapalli/PycharmProjects/ansible/f5_bigip/ansible_collections/ansible/utils
<10.xxx.xx.xxx> using connection plugin ansible.netcommon.httpapi
Found ansible-connection at path /Users/r.chinthalapalli/PycharmProjects/ansible/f5_bigip/.venv/bin/ansible-connection
<10.xxx.xxx.xxx> redirecting (type: connection) ansible.builtin.httpapi to ansible.netcommon.httpapi
changed: [bigip_sslov10] => {
    "changed": true,
    "invocation": {
        "module_args": {
            "content": {
                "action": "deploy",
                "class": "AS3",
                "declaration": {
                    "ansible": {
                        "A1": {
                            "class": "Application",
                            "http_mon": {
                                "class": "Monitor",
                                "monitorType": "http",
                                "receive": "I AM UP"
                            },
                            "web": {
                                "class": "Service_HTTP",
                                "pool": "web_pool",
                                "virtualAddresses": [
                                    "10.1.2.3"
                                ],
                                "virtualPort": 80
                            },
                            "web_pool": {
                                "class": "Pool",
                                "members": [
                                    {
                                        "serverAddresses": [
                                            "10.2.2.3"
                                        ],
                                        "servicePort": 8080
                                    }
                                ],
                                "monitors": [
                                    {
                                        "use": "http_mon"
                                    }
                                ]
                            }
                        },
                        "class": "Tenant"
                    },
                    "class": "ADC",
                    "id": "id",
                    "label": "WebApp",
                    "schemaVersion": "3.20.0"
                },
                "persist": true
            },
            "state": "present",
            "tenant": "ansible",
            "timeout": 300
        }
    }
}

PLAY RECAP ******************************************************************************************************************************************************************************************************************************************
bigip_sslov10              : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

(.venv) ➜  f5_bigip git:(devel) ✗
(.venv) ➜  f5_bigip git:(devel) ✗

(.venv) ➜  f5_bigip git:(devel) ✗ ansible-galaxy collection list

# /Users/r.chinthalapalli/PycharmProjects/ansible/f5_bigip/ansible_collections
Collection          Version
------------------- -----------
ansible.netcommon   5.3.0
ansible.utils       2.11.0
f5networks.f5_bigip 3.7.0-devel

@jcramiresco
Copy link

@RavinderReddyF5 Thanks for your response.

As I mentioned before when I tried installing version 3.5.1. I'm getting errors to the f5 collection needing a really old netcommon version (not higher than 5.0.0) while other collections I have in my EE require some newer version of netcommon. See below:

#19 57.46 * ansible.netcommon:>=5.1.0 (direct request) #19 57.46 * ansible.netcommon:>=2.0.0,<5.0.0 (dependency of f5networks.f5_bigip:3.5.1)

My EE build then fails due to this issue around dependencies.

Thanks in advance.

Juan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting response
Projects
None yet
Development

No branches or pull requests

4 participants