Missing correct dependency to python3-gitlab

Bug #1865334 reported by Andreas Florath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ansible (Ubuntu)
Undecided
Unassigned

Bug Description

Since version 2.8 ansible ships with a module 'gitlab_runner': https://docs.ansible.com/ansible/latest/modules/gitlab_runner_module.html

Ansible as included in Ubuntu Focal is missing the dependency to python3-gitlab:
https://packages.ubuntu.com/focal/ansible

Using the ansible module results in an error message like:

    "msg": "Failed to import the required Python library (python-gitlab) on glr01-gitlab-runner-vcf3hnijiq2b's Python /usr/bin/python. Please read module documentation and install 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"

The dependencies of the ansible gitlab_runner module can be found here:
https://docs.ansible.com/ansible/latest/modules/gitlab_runner_module.html#requirements

Using the package python3-gitlab does not solve the problem, because it has the wrong version.
The version in Ubuntu Focal is 2.0.1 while the required version is <1.12.1.

Trying to use version 2.0.1 results in:

  File "/tmp/ansible_gitlab_runner_payload_anefkglx/ansible_gitlab_runner_payload.zip/ansible/modules/source_control/gitlab_runner.py", line 392, in <module>
  File "/tmp/ansible_gitlab_runner_payload_anefkglx/ansible_gitlab_runner_payload.zip/ansible/modules/source_control/gitlab_runner.py", line 356, in main
TypeError: __init__() got an unexpected keyword argument 'email'

Revision history for this message
Andreas Florath (ansreas) wrote :

The incompatibility between ansible gitlab_runner module and python-gitlab was already fixed in ansible:

https://github.com/ansible/ansible/pull/64989

but will not be included in ansible 2.9.

As you can read here:

https://github.com/ansible/ansible/pull/65049

that this 'limitation' will be removed in ansible 2.10.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers