New EKS cluster results in error: "unknown keyword: region"
Summary
New EKS cluster creation on self hosted gitlab results in error:"error_message":"unknown keyword: region","error_class":"ArgumentError",
Steps to reproduce
Create a new EKS cluster as documented.
Example Project
After attempting the same process on gitlab.com after creating the appropriate role with the External Acct# and unique ID, I cannot even attempt to create cluster ads I get Could not load IAM roles
and Could not load regions from your AWS account
What is the current bug behavior?
When attempting to create a new EKS cluster, irrespective of group or project, after going through the prompts of putting all the required information and hitting "create cluster", cluster does not get created, and just continues to show the spinning progress wheel and displays "Kubernetes cluster is being created...". This persists even after server reboot or rebuild or infrastructure.
What is the expected correct behavior?
A new eks cluster should be created.
Relevant logs and/or screenshots
{"severity":"INFO","time":"2019-12-24T15:19:14.631Z","class":"ClusterProvisionWorker","retry":3,"queue":"gcp_cluster:cluster_provision","queue_namespace":"gcp_cluster","jid":"f381c95a885e3fbd6cb58cb3","created_at":"2019-12-24T15:18:33.106333Z","correlation_id":"n2HaPJ25QHa","enqueued_at":"2019-12-24T15:19:14.629951Z","error_message":"unknown keyword: region","error_class":"ArgumentError","failed_at":1577200713.3163464,"retry_count":0,"pid":3664,"message":"ClusterProvisionWorker JID-f381c95a885e3fbd6cb58cb3: start","job_status":"start","scheduling_latency_s":0.00126}
{"severity":"WARN","time":"2019-12-24T15:19:14.652Z","class":"ClusterProvisionWorker","retry":3,"queue":"gcp_cluster:cluster_provision","queue_namespace":"gcp_cluster","jid":"f381c95a885e3fbd6cb58cb3","created_at":"2019-12-24T15:18:33.106333Z","correlation_id":"n2HaPJ25QHa","enqueued_at":"2019-12-24T15:19:14.629951Z","error_message":"Sidekiq::JobRetry::Skip","error_class":"Sidekiq::JobRetry::Skip","failed_at":"2019-12-24T15:18:33.316346Z","retry_count":0,"pid":3664,"message":"ClusterProvisionWorker JID-f381c95a885e3fbd6cb58cb3: fail: 0.021385 sec","job_status":"fail","scheduling_latency_s":0.00126,"duration":0.021385,"cpu_s":0.007155,"completed_at":"2019-12-24T15:19:14.652471Z"}
{"severity":"WARN","time":"2019-12-24T15:19:14.654Z","error_class":"ArgumentError","error_message":"unknown keyword: region","context":"Job raised exception","jobstr":"{\"class\":\"ClusterProvisionWorker\",\"args\":[68],\"retry\":3,\"queue\":\"gcp_cluster:cluster_provision\",\"queue_namespace\":\"gcp_cluster\",\"jid\":\"f381c95a885e3fbd6cb58cb3\",\"created_at\":1577200713.1063333,\"correlation_id\":\"n2HaPJ25QHa\",\"enqueued_at\":1577200754.6299515,\"error_message\":\"unknown keyword: region\",\"error_class\":\"ArgumentError\",\"failed_at\":1577200713.3163464,\"retry_count\":0}","class":"ClusterProvisionWorker","args":[68],"retry":3,"queue":"gcp_cluster:cluster_provision","queue_namespace":"gcp_cluster","jid":"f381c95a885e3fbd6cb58cb3","created_at":1577200713.1063333,"correlation_id":"n2HaPJ25QHa","enqueued_at":1577200754.6299515,"failed_at":1577200713.3163464,"retry_count":0,"error_backtrace":["app/services/clusters/aws/fetch_credentials_service.rb:10:in `initialize'","app/services/clusters/aws/provision_service.rb:39:in `new'","app/services/clusters/aws/provision_service.rb:39:in `credentials'","app/services/clusters/aws/provision_service.rb:48:in `configure_provider_credentials'","app/services/clusters/aws/provision_service.rb:11:in `execute'","app/workers/cluster_provision_worker.rb:15:in `block (2 levels) in perform'","app/workers/cluster_provision_worker.rb:11:in `block in perform'","app/workers/cluster_provision_worker.rb:10:in `perform'","lib/gitlab/sidekiq_daemon/monitor.rb:49:in `within_job'"]}
{"severity":"INFO","time":"2019-12-24T15:19:32.941Z","class":"ClusterProvisionWorker","retry":3,"queue":"gcp_cluster:cluster_provision","queue_namespace":"gcp_cluster","jid":"f381c95a885e3fbd6cb58cb3","created_at":"2019-12-24T15:18:33.106333Z","correlation_id":"n2HaPJ25QHa","enqueued_at":"2019-12-24T15:19:32.940485Z","error_message":"unknown keyword: region","error_class":"ArgumentError","failed_at":1577200713.3163464,"retry_count":1,"retried_at":1577200754.6518557,"pid":3664,"message":"ClusterProvisionWorker JID-f381c95a885e3fbd6cb58cb3: start","job_status":"start","scheduling_latency_s":0.001353}
{"severity":"WARN","time":"2019-12-24T15:19:32.959Z","class":"ClusterProvisionWorker","retry":3,"queue":"gcp_cluster:cluster_provision","queue_namespace":"gcp_cluster","jid":"f381c95a885e3fbd6cb58cb3","created_at":"2019-12-24T15:18:33.106333Z","correlation_id":"n2HaPJ25QHa","enqueued_at":"2019-12-24T15:19:32.940485Z","error_message":"Sidekiq::JobRetry::Skip","error_class":"Sidekiq::JobRetry::Skip","failed_at":"2019-12-24T15:18:33.316346Z","retry_count":1,"retried_at":"2019-12-24T15:19:14.651855Z","pid":3664,"message":"ClusterProvisionWorker JID-f381c95a885e3fbd6cb58cb3: fail: 0.017517 sec","job_status":"fail","scheduling_latency_s":0.001353,"duration":0.017517,"cpu_s":0.006813,"completed_at":"2019-12-24T15:19:32.959226Z"}
{"severity":"WARN","time":"2019-12-24T15:19:32.961Z","error_class":"ArgumentError","error_message":"unknown keyword: region","context":"Job raised exception","jobstr":"{\"class\":\"ClusterProvisionWorker\",\"args\":[68],\"retry\":3,\"queue\":\"gcp_cluster:cluster_provision\",\"queue_namespace\":\"gcp_cluster\",\"jid\":\"f381c95a885e3fbd6cb58cb3\",\"created_at\":1577200713.1063333,\"correlation_id\":\"n2HaPJ25QHa\",\"enqueued_at\":1577200772.9404852,\"error_message\":\"unknown keyword: region\",\"error_class\":\"ArgumentError\",\"failed_at\":1577200713.3163464,\"retry_count\":1,\"retried_at\":1577200754.6518557}","class":"ClusterProvisionWorker","args":[68],"retry":3,"queue":"gcp_cluster:cluster_provision","queue_namespace":"gcp_cluster","jid":"f381c95a885e3fbd6cb58cb3","created_at":1577200713.1063333,"correlation_id":"n2HaPJ25QHa","enqueued_at":1577200772.9404852,"failed_at":1577200713.3163464,"retry_count":1,"retried_at":1577200754.6518557,"error_backtrace":["app/services/clusters/aws/fetch_credentials_service.rb:10:in `initialize'","app/services/clusters/aws/provision_service.rb:39:in `new'","app/services/clusters/aws/provision_service.rb:39:in `credentials'","app/services/clusters/aws/provision_service.rb:48:in `configure_provider_credentials'","app/services/clusters/aws/provision_service.rb:11:in `execute'","app/workers/cluster_provision_worker.rb:15:in `block (2 levels) in perform'","app/workers/cluster_provision_worker.rb:11:in `block in perform'","app/workers/cluster_provision_worker.rb:10:in `perform'","lib/gitlab/sidekiq_daemon/monitor.rb:49:in `within_job'"]}
Output of checks
no bug is listed.
Results of GitLab environment info
Expand for output related to GitLab environment info
[root@gitlab ec2-user]# gitlab-rake gitlab:env:infoSystem information System: Proxy: no 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.3 Redis Version: 3.2.12 Git Version: 2.24.1 Sidekiq Version:5.2.7 Go Version: unknown
GitLab information Version: 12.6.0-ee Revision: 11ac4a9aa21 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.7 URL: https://gitlab.chewysb.com HTTP Clone URL: https://gitlab.{redacted}.com/some-group/some-project.git SSH Clone URL: git@ssh.gitlab.{redacted}.com:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 10.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
[root@gitlab ec2-user]# gitlab-rake gitlab:check SANITIZE=true Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 10.3.0 ? ... OK (10.3.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: 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? ... skipped (no tmp uploads folder yet) 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: ... 35/34 ... yes 67/67 ... yes 35/68 ... yes 67/69 ... yes 101/100 ... yes 101/101 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.22.0 ? ... yes (2.24.1) Git user has default SSH configuration? ... yes Active users: ... 2 Is authorized keys file accessible? ... yes Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
unknown