awx-ee icon indicating copy to clipboard operation
awx-ee copied to clipboard

[WARNING]: Collection azure.azcollection does not support Ansible version 2.15.12

Open phire-tc opened this issue 1 year ago • 1 comments

quay.io/ansible/awx-ee:24.6.1 emits this warning:

TASK [Gathering Facts] *********************************************************
ok: [10.4.0.43]
[WARNING]: Collection azure.azcollection does not support Ansible version
2.15.12

The azcollection source: requires_ansible: '>=2.16.0'

https://github.com/ansible-collections/azure/blob/dev/meta/runtime.yml#L2

However, awx-ee source: ansible-core>=2.15.0rc2,<2.16

https://github.com/ansible/awx-ee/blob/devel/execution-environment.yml#L12

Either azure.azcollection needs to be downgraded or, preferably, ansible-core needs to be unpinned so awx-ee can get a version >=2.16.0.

phire-tc avatar Dec 23 '24 22:12 phire-tc

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'azure.mgmt.resourcehealth' fatal: [aks-lab-pipeline]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (ansible[azure] (azure >= 2.0.0)) on automation-job-1083-tsw7w's Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}

getting this error when using this azure. Only running in awx UI it gives the above error. running for awx-ee (custom image) its working fine from the cli command.

ansible-core : 2.15.2 awx operator . 2.19.0 awx deployment: 24.6.0

    azure.azcollection.azure_rm_aksagentpool:
      resource_group: "{{ resource_group }}"
      api_profile: "latest"
      cluster_name: "{{ aks_cluster_name }}"
      name: "{{ new_system_node_pool_name }}"
      mode: "System"
      count: "{{ system_node_count }}"
      min_count: "{{ system_min_count }}"
      max_count: "{{ system_max_count }}"
      vm_size: "{{ system_vm_size }}"
      os_type: "Linux"
      enable_auto_scaling: true
      state: present
    when: system_node_version is version(aks_kubernetes_version.stdout, '<')

veldpworld avatar Mar 19 '25 15:03 veldpworld