https://progress.opensuse.org/https://progress.opensuse.org/themes/openSUSE/favicon/favicon.ico?15829177842020-04-13T13:56:10ZopenSUSE Project Management ToolopenSUSE admin - tickets #65585: gitlab CI: deploy_job fails with sudo errorhttps://progress.opensuse.org/issues/65585?journal_id=2924692020-04-13T13:56:10Zcboltzsuse-beta@cboltz.de
<ul><li><strong>Private</strong> changed from <i>Yes</i> to <i>No</i></li></ul><p>The sudo rules were fixed in the meantime, but there's still a sudo problem on gitlab-runner2:</p>
<pre><code>Running with gitlab-runner 12.8.0 (1b659122)
on gitlab-runner2 W4mGsqz7
[...]
$ sudo salt-call event.fire_master $CI_DEPLOY_PASSWORD salt/fileserver/gitfs/update
00:02
/bin/bash: line 89: sudo: command not found
ERROR: Job failed: exit code 1
</code></pre>
<p>See <a href="https://gitlab.infra.opensuse.org/infra/salt/-/jobs/8171" class="external">https://gitlab.infra.opensuse.org/infra/salt/-/jobs/8171</a> for the full log.</p>
<p>gitlab-runner1 works without problems.</p>
openSUSE admin - tickets #65585: gitlab CI: deploy_job fails with sudo errorhttps://progress.opensuse.org/issues/65585?journal_id=2929102020-04-15T07:49:37ZRicardoFelipeKleinrklein@suse.com
<ul><li><strong>Assignee</strong> changed from <i>RicardoFelipeKlein</i> to <i>cboltz</i></li></ul><p>I have added the shell executor to gitlab-runner2, but it seems that it already used gitlab-runner1 to execute the deploy, in this pipeline "<a href="https://gitlab.infra.opensuse.org/infra/salt/pipelines/1691" class="external">https://gitlab.infra.opensuse.org/infra/salt/pipelines/1691</a>" the deployment job "<a href="https://gitlab.infra.opensuse.org/infra/salt/-/jobs/8206" class="external">https://gitlab.infra.opensuse.org/infra/salt/-/jobs/8206</a>" went to gitlab-runner1 while the rest went to gitlab-runner2.</p>
<p><a class="user active user-mention" href="https://progress.opensuse.org/users/76">@cboltz</a>, can you confirm that it is now working in the correct way?</p>
openSUSE admin - tickets #65585: gitlab CI: deploy_job fails with sudo errorhttps://progress.opensuse.org/issues/65585?journal_id=2930212020-04-15T12:01:57Zcboltzsuse-beta@cboltz.de
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul><p>As discussed on IRC, I've seen gitlab trying both runners some days ago, even if only one of them provided the shell runner.</p>
<p>Anyway - my tests show that it works now on both servers :-)</p>
<p>Thanks for fixing the CI!</p>