Task fails to run with error message "This job failed because the necessary resources were not successfully created."
Summary
Task fails to run with configured environment and error message "This job failed because the necessary resources were not successfully created."
Steps to reproduce
GitLab CE instance with two Shared Runners configured, one on the same host as GitLab and other at a Kubernetes instance cluster.
Kubernetes instance cluster
Configuration | Value |
---|---|
Environment Scope | * |
Base domain | -empty- |
RBAC-enabled cluster | Enabled |
GitLab-managed cluster | Enabled |
Local GitLab Runner
Configuration | Value |
---|---|
Active | true |
Protected | false |
Run untagged jobs | true |
Lock to current projects | false |
Maximum job timeout | -empty- |
Tags | -empty- |
Kubernetes GitLab Runner
Configuration | Value |
---|---|
Active | true |
Protected | false |
Run untagged jobs | false |
Lock to current projects | false |
Maximum job timeout | -empty- |
Tags | cluster, kubernetes |
Example Project
https://gitlab.com/fcrespo82/gitlab-ce-bug
What is the current bug behavior?
Task fails to run with error message "This job failed because the necessary resources were not successfully created."
What is the expected correct behavior?
Task run successfully and creates the correct environment created on GitLab CE.
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.22.0 Sidekiq Version:5.2.7 Go Version: unknown
GitLab information Version: 12.2.4 Revision: fcd107681ab Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.9 URL: https://gitlab.al.sp.gov.br HTTP Clone URL: https://gitlab.al.sp.gov.br/some-group/some-project.git SSH Clone URL: git@gitlab.al.sp.gov.br:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 9.3.0 Repository storage paths: default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 9.3.0 ? ... OK (9.3.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 9/4 ... yes 10/5 ... yes 2/6 ... yes 7/8 ... yes 9/10 ... yes 10/11 ... yes 10/12 ... yes 2/15 ... yes 2/16 ... yes 2/17 ... yes 2/18 ... yes 2/19 ... yes 23/20 ... yes 6/21 ... yes 7/23 ... yes 23/24 ... yes 8/26 ... yes 8/27 ... yes 9/28 ... yes 7/32 ... yes 9/33 ... yes 9/34 ... yes 10/35 ... yes 10/36 ... yes 10/37 ... yes 10/38 ... yes 23/42 ... yes 2/43 ... yes 10/46 ... yes 8/48 ... yes 8/49 ... yes 7/51 ... yes 8/52 ... yes 8/53 ... yes 9/54 ... yes 9/55 ... yes 8/56 ... yes 9/57 ... yes 8/58 ... yes 8/62 ... yes 8/63 ... yes 30/64 ... yes 8/71 ... yes 10/73 ... yes 2/74 ... yes 8/75 ... yes 8/76 ... yes 8/77 ... yes 8/78 ... yes 7/79 ... yes 7/80 ... yes 15/81 ... yes 8/82 ... yes 31/85 ... yes 31/87 ... yes 7/88 ... yes 7/89 ... yes 7/90 ... yes 7/91 ... yes 12/94 ... yes 8/95 ... yes 31/96 ... yes 8/97 ... yes 13/98 ... yes 40/99 ... yes 40/102 ... yes 8/103 ... yes 10/104 ... yes 8/105 ... yes 8/106 ... yes 8/107 ... yes 8/108 ... yes 3/109 ... yes 7/110 ... yes 7/111 ... yes 7/112 ... yes 7/113 ... yes 7/114 ... yes 7/115 ... yes 7/116 ... yes 7/117 ... yes 7/118 ... yes 7/119 ... yes 7/120 ... yes 7/121 ... yes 24/122 ... yes 13/123 ... yes 82/124 ... yes 7/125 ... yes 7/126 ... yes 82/127 ... yes 7/128 ... yes 53/131 ... yes 7/132 ... yes 7/133 ... yes 7/134 ... yes 7/135 ... yes 7/136 ... yes 7/137 ... yes 7/138 ... yes 82/139 ... yes 7/140 ... yes 10/141 ... yes 10/142 ... yes 10/143 ... yes 10/144 ... yes 10/146 ... yes 9/147 ... yes 10/148 ... yes 7/149 ... yes 7/150 ... yes 7/151 ... yes 7/152 ... yes 7/153 ... yes 7/154 ... yes 7/155 ... yes 7/156 ... yes 7/157 ... yes 7/158 ... yes 7/159 ... yes 7/160 ... yes 7/161 ... yes 7/163 ... yes 60/164 ... yes 64/165 ... yes 59/166 ... yes 65/167 ... yes 8/168 ... yes 56/169 ... yes 56/170 ... yes 8/172 ... yes 2/174 ... yes 7/175 ... yes 7/176 ... yes 8/177 ... yes 8/179 ... yes 7/180 ... yes 7/181 ... yes 7/182 ... yes 7/183 ... yes 7/184 ... yes 7/185 ... yes 7/186 ... yes 7/188 ... yes 7/189 ... yes 7/190 ... yes 10/191 ... yes 7/192 ... yes 7/193 ... yes 7/194 ... yes 7/196 ... yes 31/198 ... yes 31/199 ... yes 9/200 ... yes 2/202 ... yes 10/203 ... yes 7/204 ... yes 7/205 ... yes 7/206 ... yes 7/207 ... yes 7/208 ... yes 7/209 ... yes 7/210 ... yes 2/212 ... yes 9/214 ... yes 9/215 ... yes 80/216 ... yes 23/217 ... yes 9/218 ... yes 9/219 ... yes 78/220 ... yes 7/221 ... yes 7/223 ... yes 80/224 ... yes 3/226 ... yes 95/227 ... yes 97/228 ... yes 98/229 ... yes 95/230 ... yes 7/231 ... yes 9/232 ... yes 84/233 ... yes 8/235 ... yes 9/236 ... yes 80/237 ... yes 9/238 ... yes 63/242 ... yes 3/243 ... yes 3/244 ... yes 9/245 ... yes 63/246 ... yes 9/247 ... yes 3/248 ... yes 3/249 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.22.0 ? ... yes (2.22.0) Git user has default SSH configuration? ... yes Active users: ... 60
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished