riemers / ansible-gitlab-runner

Ansible role to install gitlab-runner
MIT License
351 stars 267 forks source link

Failed to find package 'gitlab-runner' to perform selection 'install' debian 12 Vagrant #338

Closed Minipada closed 3 months ago

Minipada commented 4 months ago

Running a VM in virtualbox, I get a failure, using the latest commit 28404cc:

PLAY [Install Gitlab runner] ***************************************************

TASK [Gathering Facts] *********************************************************
ok: [vm-gitlab-runner-bob]

TASK [riemers.gitlab-runner : Load platform-specific variables] ****************
ok: [vm-gitlab-runner-bob]

TASK [riemers.gitlab-runner : Validate GitLab Runner configurations] ***********
included: /home/david.bensoussan/dev/infrastructure/servers/roles/riemers.gitlab-runner/tasks/validate-runner-config.yml for vm-gitlab-runner-bob => (item=bob-test)
included: /home/david.bensoussan/dev/infrastructure/servers/roles/riemers.gitlab-runner/tasks/validate-runner-config.yml for vm-gitlab-runner-bob => (item=wendy-test)

TASK [riemers.gitlab-runner : Check for deprecated settings: bob-test] *********
[WARNING]: conditional statements should not include jinja2 templating
delimiters such as {{ }} or {% %}. Found: '{{ setting.name }}' not in
gitlab_runner
ok: [vm-gitlab-runner-bob] => (item=pre_clone_script)

TASK [riemers.gitlab-runner : Check for deprecated settings: wendy-test] *******
ok: [vm-gitlab-runner-bob] => (item=pre_clone_script)

TASK [riemers.gitlab-runner : Install Gitlab Runner (Container)] ***************
skipping: [vm-gitlab-runner-bob]

TASK [riemers.gitlab-runner : Install GitLab Runner (Unix)] ********************
[DEPRECATION WARNING]: Specifying a list of dictionaries for vars is deprecated
 in favor of specifying a dictionary. This feature will be removed in version 
2.18. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
included: /home/david.bensoussan/dev/infrastructure/servers/roles/riemers.gitlab-runner/tasks/main-unix.yml for vm-gitlab-runner-bob

TASK [riemers.gitlab-runner : Install GitLab Runner (Debian)] ******************
included: /home/david.bensoussan/dev/infrastructure/servers/roles/riemers.gitlab-runner/tasks/install-debian.yml for vm-gitlab-runner-bob

TASK [riemers.gitlab-runner : (Debian) Refresh package cache] ******************
ok: [vm-gitlab-runner-bob]

TASK [riemers.gitlab-runner : (Debian) Get Gitlab repository installation script] ***
ok: [vm-gitlab-runner-bob]

TASK [riemers.gitlab-runner : (Debian) Install Gitlab repository] **************
ok: [vm-gitlab-runner-bob]

TASK [riemers.gitlab-runner : (Debian) Update gitlab_runner_package_name] ******
ok: [vm-gitlab-runner-bob]

TASK [riemers.gitlab-runner : (Debian) Set gitlab_runner_package_name] *********
skipping: [vm-gitlab-runner-bob]

TASK [riemers.gitlab-runner : (Debian) Unhold GitLab Runner version] ***********
fatal: [vm-gitlab-runner-bob]: FAILED! => {"changed": false, "msg": "Failed to find package 'gitlab-runner' to perform selection 'install'."}

My config:

gitlab_runner_package_version: 17.1.0
gitlab_runner_concurrent: 7
gitlab_runner_session_server_session_timeout: 10800
gitlab_runner_registration_token_type: "authentication-token"

gitlab_runner_coordinator_url: https://gitlab.com
gitlab_runner_no_log_secrets: false

# To be modified after review
gitlab_runner_runners:
  - name: "bob-test"
    executor: "docker"
    state: present
    token: TOKEN

  - name: "wendy-test"
    executor: "docker"
    state: present
    token: TOKEN

Any hint of what could be the reason?

Minipada commented 4 months ago

I just found that it works with this patch https://github.com/LMonitor/ansible-gitlab-runner/commit/b39dd56c7ca5c2f11cce64b22091440cdb209ec6

riemers commented 3 months ago

Good, i update the release number

Minipada commented 3 months ago

Before closing it, have you integrated the change in master? This was from a fork

riemers commented 3 months ago

If it was a PR and that was merged, then we are good. If not then we still need to do that. Check the release notes if it was in there ☺️


Van: David Bensoussan @.> Verzonden: Thursday, August 8, 2024 1:07:50 PM Aan: riemers/ansible-gitlab-runner @.> CC: Erik-jan Riemers @.>; State change @.> Onderwerp: Re: [riemers/ansible-gitlab-runner] Failed to find package 'gitlab-runner' to perform selection 'install' debian 12 Vagrant (Issue #338)

Before closing it, have you integrated the change in master? This was from a fork

— Reply to this email directly, view it on GitHubhttps://github.com/riemers/ansible-gitlab-runner/issues/338#issuecomment-2275551546, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFGQOJ3UW73PSCBLARRD73ZQNGQNAVCNFSM6AAAAABKSQSNS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZVGU2TCNJUGY. You are receiving this because you modified the open/close state.Message ID: @.***>