Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Thank you for using GitLab Docker Image!,
- Current version: gitlab-ce=14.2.0-ce.0,
- ,
- Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file,
- And restart this container to reload settings.,
- To do it use docker exec:,
- ,
- docker exec -it gitlab editor /etc/gitlab/gitlab.rb,
- docker restart gitlab,
- ,
- For a comprehensive list of configuration options please see the Omnibus GitLab readme,
- https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md,
- ,
- If this container fails to start due to permission problems try to fix it by executing:,
- ,
- docker exec -it gitlab update-permissions,
- docker restart gitlab,
- ,
- Cleaning stale PIDs & sockets,
- Preparing services...,
- Starting services...,
- Configuring GitLab...,
- Starting Chef Infra Client, version 15.14.0,
- resolving cookbooks for run list: ["gitlab"],
- Synchronizing Cookbooks:,
- - gitlab (0.0.1),
- - package (0.1.0),
- - logrotate (0.1.0),
- - postgresql (0.1.0),
- - redis (0.1.0),
- - monitoring (0.1.0),
- - registry (0.1.0),
- - mattermost (0.1.0),
- - consul (0.1.0),
- - gitaly (0.1.0),
- - praefect (0.1.0),
- - gitlab-kas (0.1.0),
- - gitlab-pages (0.1.0),
- - letsencrypt (0.1.0),
- - nginx (0.1.0),
- - runit (5.1.3),
- - acme (4.1.3),
- - crond (0.1.0),
- Installing Cookbook Gems:,
- mpiling Cookbooks...,
- Recipe: gitlab::default,
- * directory[/etc/gitlab] action create (up to date),
- Converging 274 resources,
- * directory[/etc/gitlab] action create (up to date),
- * directory[Create /var/opt/gitlab] action create (up to date),
- * directory[Create /var/log/gitlab] action create (up to date),
- * directory[/opt/gitlab/embedded/etc] action create,
- - create new directory /opt/gitlab/embedded/etc,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/embedded/etc/gitconfig] action create,
- - create new file /opt/gitlab/embedded/etc/gitconfig,
- - update content in file /opt/gitlab/embedded/etc/gitconfig from none to 5a725a,
- --- /opt/gitlab/embedded/etc/gitconfig 2021-08-24 02:07:10.660558888 +0000,
- +++ /opt/gitlab/embedded/etc/.chef-gitconfig20210824-31-g9pc9o 2021-08-24 02:07:10.660558888 +0000,
- @@ -1,16 +1,32 @@,
- +[pack],
- + threads = 1,
- +[receive],
- + fsckObjects = true,
- +advertisePushOptions = true,
- +[repack],
- + writeBitmaps = true,
- +[transfer],
- + hideRefs=^refs/tmp/,
- +hideRefs=^refs/keep-around/,
- +hideRefs=^refs/remotes/,
- +[core],
- + alternateRefsCommand="exit 0 #",
- +fsyncObjectFiles = true,
- +[fetch],
- + writeCommitGraph = true,
- - change mode from '' to '0755',
- Recipe: gitlab::web-server,
- * account[Webserver user and group] action create (up to date),
- Recipe: gitlab::users,
- * directory[/var/opt/gitlab] action create (up to date),
- * account[GitLab user and group] action create (up to date),
- * template[/var/opt/gitlab/.gitconfig] action create (up to date),
- * directory[/var/opt/gitlab/.bundle] action create (up to date),
- Recipe: gitlab::gitlab-shell,
- * storage_directory[/var/opt/gitlab/.ssh] action create,
- * ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if),
- (up to date),
- * directory[/var/log/gitlab/gitlab-shell/] action create (up to date),
- * directory[/var/opt/gitlab/gitlab-shell] action create (up to date),
- * templatesymlink[Create a config.yml and create a symlink to Rails root] action create,
- * template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date),
- * link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml,
- ,
- * link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret to /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret,
- * file[/var/opt/gitlab/.ssh/authorized_keys] action create_if_missing (up to date),
- Recipe: gitlab::gitlab-rails,
- * storage_directory[/var/opt/gitlab/git-data] action create,
- * ruby_block[directory resource: /var/opt/gitlab/git-data] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/var/opt/gitlab/git-data/repositories] action create,
- * ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run (skipped due to not_if),
- (up to date),
- Recipe: gitlab::rails_pages_shared_path,
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if),
- (up to date),
- Recipe: gitlab::gitlab-rails,
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/external-diffs] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/external-diffs] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/packages] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/packages] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/terraform_state] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/terraform_state] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create,
- * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run (skipped due to not_if),
- (up to date),
- * storage_directory[/opt/gitlab/embedded/service/gitlab-rails/public] action create (skipped due to only_if),
- * directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date),
- * directory[create /opt/gitlab/etc/gitlab-rails] action create,
- - create new directory /opt/gitlab/etc/gitlab-rails,
- - change mode from '' to '0700',
- - change owner from '' to 'git',
- * directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date),
- * directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date),
- * directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date),
- * directory[create /var/log/gitlab/gitlab-rails] action create (up to date),
- * storage_directory[/var/opt/gitlab/backups] action create,
- * ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if),
- (up to date),
- * directory[/var/opt/gitlab/gitlab-rails] action create (up to date),
- * directory[/var/opt/gitlab/gitlab-ci] action create (up to date),
- * file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if),
- * template[/opt/gitlab/etc/gitlab-rails-rc] action create,
- - create new file /opt/gitlab/etc/gitlab-rails-rc,
- - update content in file /opt/gitlab/etc/gitlab-rails-rc from none to 7b16c8,
- --- /opt/gitlab/etc/gitlab-rails-rc 2021-08-24 02:07:13.516520629 +0000,
- +++ /opt/gitlab/etc/.chef-gitlab-rails-rc20210824-31-1ks0549 2021-08-24 02:07:13.516520629 +0000,
- @@ -1,5 +1,10 @@,
- +gitlab_user='git',
- +gitlab_group='git',
- +registry_dir='',
- +registry_user='registry',
- +registry_group='registry',
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * file[/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc] action delete (up to date),
- * file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date),
- * file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date),
- * templatesymlink[Create a database.yml and create a symlink to Rails root] action create,
- * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create,
- - update content in file /var/opt/gitlab/gitlab-rails/etc/database.yml from 35aaf2 to 9cd048,
- --- /var/opt/gitlab/gitlab-rails/etc/database.yml 2021-08-24 01:46:43.980012861 +0000,
- +++ /var/opt/gitlab/gitlab-rails/etc/.chef-database20210824-31-1rxw3bt.yml 2021-08-24 02:07:13.752517468 +0000,
- @@ -3,29 +3,30 @@,
- # and run `sudo gitlab-ctl reconfigure`.,
- ,
- production:,
- - adapter: postgresql,
- - encoding: unicode,
- - collation: ,
- - database: gitlabhq_production,
- - username: "gitlab",
- - password: ,
- - host: "/var/opt/gitlab/postgresql",
- - port: 5432,
- - socket: ,
- - sslmode: ,
- - sslcompression: 0,
- - sslrootcert: ,
- - sslca: ,
- - load_balancing: {"hosts":[]},
- - prepared_statements: false,
- - statement_limit: 1000,
- - connect_timeout: ,
- - keepalives: ,
- - keepalives_idle: ,
- - keepalives_interval: ,
- - keepalives_count: ,
- - tcp_user_timeout: ,
- - application_name: ,
- - variables:,
- - statement_timeout: ,
- + main:,
- + adapter: postgresql,
- + encoding: unicode,
- + collation: ,
- + database: gitlabhq_production,
- + username: "gitlab",
- + password: ,
- + host: "/var/opt/gitlab/postgresql",
- + port: 5432,
- + socket: ,
- + sslmode: ,
- + sslcompression: 0,
- + sslrootcert: ,
- + sslca: ,
- + load_balancing: {"hosts":[]},
- + prepared_statements: false,
- + statement_limit: 1000,
- + connect_timeout: ,
- + keepalives: ,
- + keepalives_idle: ,
- + keepalives_interval: ,
- + keepalives_count: ,
- + tcp_user_timeout: ,
- + application_name: ,
- + variables:,
- + statement_timeout: ,
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml,
- ,
- * templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create,
- * template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date),
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml,
- ,
- * templatesymlink[Create a resque.yml and create a symlink to Rails root] action create,
- * template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date),
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml,
- ,
- * templatesymlink[Create a cable.yml and create a symlink to Rails root] action create,
- * template[/var/opt/gitlab/gitlab-rails/etc/cable.yml] action create (up to date),
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/cable.yml to /var/opt/gitlab/gitlab-rails/etc/cable.yml] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/cable.yml to /var/opt/gitlab/gitlab-rails/etc/cable.yml,
- ,
- * templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action create (skipped due to not_if),
- * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cache.yml] action delete (up to date),
- * file[/var/opt/gitlab/gitlab-rails/etc/redis.cache.yml] action delete (up to date),
- * templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action create (skipped due to not_if),
- * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.queues.yml] action delete (up to date),
- * file[/var/opt/gitlab/gitlab-rails/etc/redis.queues.yml] action delete (up to date),
- * templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action create (skipped due to not_if),
- * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.shared_state.yml] action delete (up to date),
- * file[/var/opt/gitlab/gitlab-rails/etc/redis.shared_state.yml] action delete (up to date),
- * templatesymlink[Create a redis.trace_chunks.yml and create a symlink to Rails root] action create (skipped due to not_if),
- * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.trace_chunks.yml] action delete (up to date),
- * file[/var/opt/gitlab/gitlab-rails/etc/redis.trace_chunks.yml] action delete (up to date),
- * templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action delete,
- * file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date),
- * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date),
- (up to date),
- * templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create,
- * template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date),
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml,
- ,
- * templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create,
- * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date),
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret,
- ,
- * templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create,
- * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date),
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret,
- ,
- * templatesymlink[Create a gitlab_pages_secret and create a symlink to Rails root] action create,
- * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date),
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_pages_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_pages_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret,
- ,
- * templatesymlink[Create a gitlab_kas_secret and create a symlink to Rails root] action create,
- * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret] action create (up to date),
- * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_kas_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret] action create,
- - unlink existing symlink to file at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_kas_secret,
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_kas_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret,
- ,
- * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date),
- * file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date),
- * env_dir[/opt/gitlab/etc/gitlab-rails/env] action create,
- * directory[/opt/gitlab/etc/gitlab-rails/env] action create,
- - create new directory /opt/gitlab/etc/gitlab-rails/env,
- * file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create,
- - create new file /opt/gitlab/etc/gitlab-rails/env/HOME,
- - update content in file /opt/gitlab/etc/gitlab-rails/env/HOME from none to 205bb9,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create,
- - create new file /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV,
- - update content in file /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV from none to ab8e18,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD] action create,
- - create new file /opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD,
- - update content in file /opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD from none to f79114,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create,
- - create new file /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS,
- - update content in file /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS from none to dd80d7,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create,
- - create new file /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE,
- - update content in file /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE from none to 28d586,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create,
- - create new file /opt/gitlab/etc/gitlab-rails/env/PATH,
- - update content in file /opt/gitlab/etc/gitlab-rails/env/PATH from none to d5dc07,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create,
- - create new file /opt/gitlab/etc/gitlab-rails/env/ICU_DATA,
- - update content in file /opt/gitlab/etc/gitlab-rails/env/ICU_DATA from none to a04260,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create,
- - create new file /opt/gitlab/etc/gitlab-rails/env/PYTHONPATH,
- - update content in file /opt/gitlab/etc/gitlab-rails/env/PYTHONPATH from none to 83b536,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create,
- - create new file /opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME,
- - update content in file /opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME from none to 75081b,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-rails/env/TZ] action create,
- - create new file /opt/gitlab/etc/gitlab-rails/env/TZ,
- - update content in file /opt/gitlab/etc/gitlab-rails/env/TZ from none to 983a95,
- - suppressed sensitive resource,
- ,
- * link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/tmp to /var/opt/gitlab/gitlab-rails/tmp,
- * link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/public/uploads to /var/opt/gitlab/gitlab-rails/uploads,
- * link[/opt/gitlab/embedded/service/gitlab-rails/log] action create,
- - create symlink at /opt/gitlab/embedded/service/gitlab-rails/log to /var/log/gitlab/gitlab-rails,
- * link[/var/log/gitlab/gitlab-rails/sidekiq.log] action delete (skipped due to only_if),
- * file[/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql] action create,
- - change owner from 'root' to 'git',
- /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/chef-15.14.0/lib/chef/provider/remote_file/local_file.rb:43: warning: URI.unescape is obsolete,
- * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create,
- - update content in file /var/opt/gitlab/gitlab-rails/VERSION from 233b0d to 2c3e17,
- --- /var/opt/gitlab/gitlab-rails/VERSION 2021-08-24 01:46:47.883930380 +0000,
- +++ /var/opt/gitlab/gitlab-rails/.chef-VERSION20210824-31-nbd2p6 2021-08-24 02:07:15.428495022 +0000,
- @@ -1 +1 @@,
- -14.1.3,
- +14.2.0,
- /opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/chef-15.14.0/lib/chef/provider/remote_file/local_file.rb:43: warning: URI.unescape is obsolete,
- * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create,
- - update content in file /var/opt/gitlab/gitlab-rails/REVISION from b8a0d4 to d500ca,
- --- /var/opt/gitlab/gitlab-rails/REVISION 2021-08-24 01:46:47.935929283 +0000,
- +++ /var/opt/gitlab/gitlab-rails/.chef-REVISION20210824-31-97g8cz 2021-08-24 02:07:15.480494326 +0000,
- @@ -1 +1 @@,
- -132256d76b1,
- +d678b7c987f,
- * version_file[Create version file for Rails] action create,
- * file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create (up to date),
- (up to date),
- * execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing),
- * file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date),
- Recipe: gitlab::selinux,
- * bash[Set proper security context on ssh files for selinux] action nothing (skipped due to action :nothing),
- Recipe: gitlab::add_trusted_certs,
- * directory[/etc/gitlab/trusted-certs] action create (up to date),
- * directory[/opt/gitlab/embedded/ssl/certs] action create (up to date),
- * file[/opt/gitlab/embedded/ssl/certs/README] action create,
- - create new file /opt/gitlab/embedded/ssl/certs/README,
- - update content in file /opt/gitlab/embedded/ssl/certs/README from none to 623059,
- --- /opt/gitlab/embedded/ssl/certs/README 2021-08-24 02:07:15.704491326 +0000,
- +++ /opt/gitlab/embedded/ssl/certs/.chef-README20210824-31-60bzvy 2021-08-24 02:07:15.704491326 +0000,
- @@ -1,3 +1,6 @@,
- +This directory is managed by omnibus-gitlab.,
- + Any file placed in this directory will be ignored,
- +. Place certificates in /etc/gitlab/trusted-certs.,
- - change mode from '' to '0644',
- * ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run,
- ,
- * Moving existing certificates found in /opt/gitlab/embedded/ssl/certs,
- ,
- * Symlinking existing certificates found in /etc/gitlab/trusted-certs,
- ,
- - execute the ruby block Move existing certs and link to /opt/gitlab/embedded/ssl/certs,
- Recipe: gitlab::default,
- * service[create a temporary puma service] action nothing (skipped due to action :nothing),
- * service[create a temporary sidekiq service] action nothing (skipped due to action :nothing),
- * service[create a temporary mailroom service] action nothing (skipped due to action :nothing),
- Recipe: package::sysctl,
- * execute[reload all sysctl conf] action nothing (skipped due to action :nothing),
- Recipe: logrotate::folders_and_configs,
- * directory[/var/opt/gitlab/logrotate] action create (up to date),
- * directory[/var/opt/gitlab/logrotate/logrotate.d] action create (up to date),
- * directory[/var/log/gitlab/logrotate] action create (up to date),
- * template[/var/opt/gitlab/logrotate/logrotate.conf] action create (up to date),
- * template[/var/opt/gitlab/logrotate/logrotate.d/nginx] action create (up to date),
- * template[/var/opt/gitlab/logrotate/logrotate.d/puma] action create (up to date),
- * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-rails] action create (up to date),
- * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-shell] action create (up to date),
- * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse] action create (up to date),
- * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-pages] action create (up to date),
- * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-kas] action create (up to date),
- * template[/var/opt/gitlab/logrotate/logrotate.d/gitaly] action create (up to date),
- * template[/var/opt/gitlab/logrotate/logrotate.d/mailroom] action create (up to date),
- Recipe: logrotate::enable,
- * service[logrotate] action nothing (skipped due to action :nothing),
- * runit_service[logrotate] action enable,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/logrotate] action create,
- - create new directory /opt/gitlab/sv/logrotate,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/logrotate/run] action create,
- - create new file /opt/gitlab/sv/logrotate/run,
- - update content in file /opt/gitlab/sv/logrotate/run from none to 07f1b6,
- --- /opt/gitlab/sv/logrotate/run 2021-08-24 02:07:16.392482114 +0000,
- +++ /opt/gitlab/sv/logrotate/.chef-run20210824-31-u2atul 2021-08-24 02:07:16.392482114 +0000,
- @@ -1,10 +1,20 @@,
- +#!/bin/sh,
- +exec 2>&1,
- +,
- +cd /var/opt/gitlab/logrotate,
- +,
- +exec /opt/gitlab/embedded/bin/chpst -P /usr/bin/env \,
- + dir=/var/opt/gitlab/logrotate \,
- + pre_sleep=600 \,
- + post_sleep=3000 \,
- + /opt/gitlab/embedded/bin/gitlab-logrotate-wrapper,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/logrotate/log] action create,
- - create new directory /opt/gitlab/sv/logrotate/log,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/logrotate/log/main] action create,
- - create new directory /opt/gitlab/sv/logrotate/log/main,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/logrotate/log/config] action create,
- - create new file /opt/gitlab/sv/logrotate/log/config,
- - update content in file /opt/gitlab/sv/logrotate/log/config from none to 623c00,
- --- /opt/gitlab/sv/logrotate/log/config 2021-08-24 02:07:16.468481096 +0000,
- +++ /opt/gitlab/sv/logrotate/log/.chef-config20210824-31-nwu0v 2021-08-24 02:07:16.468481096 +0000,
- @@ -1,6 +1,12 @@,
- +s209715200,
- +n30,
- +t86400,
- +!gzip,
- +,
- +,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[verify_chown_persisted_on_logrotate] action create,
- - execute the ruby block verify_chown_persisted_on_logrotate,
- * ruby_block[verify_chown_persisted_on_logrotate] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/logrotate/config] action create (up to date),
- * template[/opt/gitlab/sv/logrotate/log/run] action create,
- - create new file /opt/gitlab/sv/logrotate/log/run,
- - update content in file /opt/gitlab/sv/logrotate/log/run from none to 94afe6,
- --- /opt/gitlab/sv/logrotate/log/run 2021-08-24 02:07:16.532480239 +0000,
- +++ /opt/gitlab/sv/logrotate/log/.chef-run20210824-31-1k2ww9z 2021-08-24 02:07:16.532480239 +0000,
- @@ -1,2 +1,4 @@,
- +#!/bin/sh,
- +exec svlogd -tt /var/log/gitlab/logrotate,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/logrotate/env] action create,
- - create new directory /opt/gitlab/sv/logrotate/env,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[Delete unmanaged env files for logrotate service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/logrotate/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/logrotate/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/logrotate/control] action create,
- - create new directory /opt/gitlab/sv/logrotate/control,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/logrotate/control/t] action create,
- - create new file /opt/gitlab/sv/logrotate/control/t,
- - update content in file /opt/gitlab/sv/logrotate/control/t from none to 8fa3fa,
- --- /opt/gitlab/sv/logrotate/control/t 2021-08-24 02:07:16.616479114 +0000,
- +++ /opt/gitlab/sv/logrotate/control/.chef-t20210824-31-bem60t 2021-08-24 02:07:16.616479114 +0000,
- @@ -1,3 +1,6 @@,
- +#!/bin/sh,
- +echo "Received TERM from runit, sending to process group (-PID)",
- +kill -- -$(cat /opt/gitlab/service/logrotate/supervise/pid),
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * link[/opt/gitlab/init/logrotate] action create,
- - create symlink at /opt/gitlab/init/logrotate to /opt/gitlab/embedded/bin/sv,
- * file[/opt/gitlab/sv/logrotate/down] action nothing (skipped due to action :nothing),
- * ruby_block[restart_service] action run (skipped due to only_if),
- * ruby_block[reload_log_service] action create,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/logrotate] action create (up to date),
- * template[/opt/gitlab/sv/logrotate/run] action create (up to date),
- * directory[/opt/gitlab/sv/logrotate/log] action create (up to date),
- * directory[/opt/gitlab/sv/logrotate/log/main] action create (up to date),
- * template[/opt/gitlab/sv/logrotate/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_logrotate] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/logrotate/config] action create (up to date),
- * template[/opt/gitlab/sv/logrotate/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/logrotate/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for logrotate service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/logrotate/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/logrotate/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/logrotate/control] action create (up to date),
- * template[/opt/gitlab/sv/logrotate/control/t] action create (up to date),
- * link[/opt/gitlab/init/logrotate] action create (up to date),
- * file[/opt/gitlab/sv/logrotate/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/logrotate] action create,
- - create symlink at /opt/gitlab/service/logrotate to /opt/gitlab/sv/logrotate,
- * ruby_block[wait for logrotate service socket] action run,
- - execute the ruby block wait for logrotate service socket,
- - execute the ruby block reload_log_service,
- * ruby_block[restart_log_service] action run,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/logrotate] action create (up to date),
- * template[/opt/gitlab/sv/logrotate/run] action create (up to date),
- * directory[/opt/gitlab/sv/logrotate/log] action create (up to date),
- * directory[/opt/gitlab/sv/logrotate/log/main] action create (up to date),
- * template[/opt/gitlab/sv/logrotate/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_logrotate] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/logrotate/config] action create (up to date),
- * template[/opt/gitlab/sv/logrotate/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/logrotate/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for logrotate service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/logrotate/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/logrotate/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/logrotate/control] action create (up to date),
- * template[/opt/gitlab/sv/logrotate/control/t] action create (up to date),
- * link[/opt/gitlab/init/logrotate] action create (up to date),
- * file[/opt/gitlab/sv/logrotate/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/logrotate] action create (up to date),
- * ruby_block[wait for logrotate service socket] action run (skipped due to not_if),
- - execute the ruby block restart_log_service,
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/logrotate] action create (up to date),
- * ruby_block[wait for logrotate service socket] action run (skipped due to not_if),
- ,
- * execute[/opt/gitlab/bin/gitlab-ctl start logrotate] action run,
- [execute] ok: run: logrotate: (pid 263) 8s,
- - execute /opt/gitlab/bin/gitlab-ctl start logrotate,
- Recipe: redis::enable,
- * redis_service[redis] action create,
- * account[user and group for redis] action create (up to date),
- * group[Socket group] action create (up to date),
- * directory[/var/opt/gitlab/redis] action create (up to date),
- * directory[/var/log/gitlab/redis] action create (up to date),
- * template[/var/opt/gitlab/redis/redis.conf] action create (up to date),
- Recipe: <Dynamically Defined Resource>,
- * service[redis] action nothing (skipped due to action :nothing),
- * runit_service[redis] action enable,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/redis] action create,
- - create new directory /opt/gitlab/sv/redis,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/redis/run] action create,
- - create new file /opt/gitlab/sv/redis/run,
- - update content in file /opt/gitlab/sv/redis/run from none to da365d,
- --- /opt/gitlab/sv/redis/run 2021-08-24 02:07:29.312309243 +0000,
- +++ /opt/gitlab/sv/redis/.chef-run20210824-31-y3d4d4 2021-08-24 02:07:29.308309297 +0000,
- @@ -1,5 +1,10 @@,
- +#!/bin/sh,
- +exec 2>&1,
- +,
- +umask 077,
- +exec chpst -P -U gitlab-redis:gitlab-redis -u gitlab-redis:gitlab-redis /opt/gitlab/embedded/bin/redis-server /var/opt/gitlab/redis/redis.conf,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/redis/log] action create,
- - create new directory /opt/gitlab/sv/redis/log,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/redis/log/main] action create,
- - create new directory /opt/gitlab/sv/redis/log/main,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/redis/log/config] action create,
- - create new file /opt/gitlab/sv/redis/log/config,
- - update content in file /opt/gitlab/sv/redis/log/config from none to 623c00,
- --- /opt/gitlab/sv/redis/log/config 2021-08-24 02:07:29.996300098 +0000,
- +++ /opt/gitlab/sv/redis/log/.chef-config20210824-31-18c081j 2021-08-24 02:07:29.996300098 +0000,
- @@ -1,6 +1,12 @@,
- +s209715200,
- +n30,
- +t86400,
- +!gzip,
- +,
- +,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[verify_chown_persisted_on_redis] action create,
- - execute the ruby block verify_chown_persisted_on_redis,
- * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/redis/config] action create (up to date),
- * template[/opt/gitlab/sv/redis/log/run] action create,
- - create new file /opt/gitlab/sv/redis/log/run,
- - update content in file /opt/gitlab/sv/redis/log/run from none to af1017,
- --- /opt/gitlab/sv/redis/log/run 2021-08-24 02:07:30.076299029 +0000,
- +++ /opt/gitlab/sv/redis/log/.chef-run20210824-31-1s0w45f 2021-08-24 02:07:30.072299082 +0000,
- @@ -1,2 +1,4 @@,
- +#!/bin/sh,
- +exec svlogd -tt /var/log/gitlab/redis,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/redis/env] action create,
- - create new directory /opt/gitlab/sv/redis/env,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/redis/control] action create,
- - create new directory /opt/gitlab/sv/redis/control,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * link[/opt/gitlab/init/redis] action create,
- - create symlink at /opt/gitlab/init/redis to /opt/gitlab/embedded/bin/sv,
- * file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action :nothing),
- * ruby_block[restart_service] action run (skipped due to only_if),
- * ruby_block[reload_log_service] action create,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/redis] action create (up to date),
- * template[/opt/gitlab/sv/redis/run] action create (up to date),
- * directory[/opt/gitlab/sv/redis/log] action create (up to date),
- * directory[/opt/gitlab/sv/redis/log/main] action create (up to date),
- * template[/opt/gitlab/sv/redis/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/redis/config] action create (up to date),
- * template[/opt/gitlab/sv/redis/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/redis/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/redis/control] action create (up to date),
- * link[/opt/gitlab/init/redis] action create (up to date),
- * file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/redis] action create,
- - create symlink at /opt/gitlab/service/redis to /opt/gitlab/sv/redis,
- * ruby_block[wait for redis service socket] action run,
- - execute the ruby block wait for redis service socket,
- - execute the ruby block reload_log_service,
- * ruby_block[restart_log_service] action run,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/redis] action create (up to date),
- * template[/opt/gitlab/sv/redis/run] action create (up to date),
- * directory[/opt/gitlab/sv/redis/log] action create (up to date),
- * directory[/opt/gitlab/sv/redis/log/main] action create (up to date),
- * template[/opt/gitlab/sv/redis/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/redis/config] action create (up to date),
- * template[/opt/gitlab/sv/redis/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/redis/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/redis/control] action create (up to date),
- * link[/opt/gitlab/init/redis] action create (up to date),
- * file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/redis] action create (up to date),
- * ruby_block[wait for redis service socket] action run (skipped due to not_if),
- - execute the ruby block restart_log_service,
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/redis] action create (up to date),
- * ruby_block[wait for redis service socket] action run (skipped due to not_if),
- ,
- * execute[/opt/gitlab/bin/gitlab-ctl start redis] action run,
- [execute] ok: run: redis: (pid 280) 8s,
- - execute /opt/gitlab/bin/gitlab-ctl start redis,
- * ruby_block[warn pending redis restart] action run (skipped due to only_if),
- ,
- Recipe: redis::enable,
- * template[/opt/gitlab/etc/gitlab-redis-cli-rc] action create,
- - create new file /opt/gitlab/etc/gitlab-redis-cli-rc,
- - update content in file /opt/gitlab/etc/gitlab-redis-cli-rc from none to 44cac1,
- --- /opt/gitlab/etc/gitlab-redis-cli-rc 2021-08-24 02:07:40.912154243 +0000,
- +++ /opt/gitlab/etc/.chef-gitlab-redis-cli-rc20210824-31-1av4cbx 2021-08-24 02:07:40.908154296 +0000,
- @@ -1,4 +1,8 @@,
- +redis_dir='/var/opt/gitlab/redis',
- +redis_host='127.0.0.1',
- +redis_port='0',
- +redis_socket='/var/opt/gitlab/redis/redis.socket',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- Recipe: gitaly::enable,
- * directory[/var/opt/gitlab/gitaly] action create (up to date),
- * directory[/var/log/gitlab/gitaly] action create (up to date),
- * directory[/var/opt/gitlab/gitaly/internal_sockets] action create (up to date),
- * env_dir[/opt/gitlab/etc/gitaly/env] action create,
- * directory[/opt/gitlab/etc/gitaly/env] action create,
- - create new directory /opt/gitlab/etc/gitaly/env,
- * file[/opt/gitlab/etc/gitaly/env/HOME] action create,
- - create new file /opt/gitlab/etc/gitaly/env/HOME,
- - update content in file /opt/gitlab/etc/gitaly/env/HOME from none to 205bb9,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitaly/env/PATH] action create,
- - create new file /opt/gitlab/etc/gitaly/env/PATH,
- - update content in file /opt/gitlab/etc/gitaly/env/PATH from none to d5dc07,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitaly/env/TZ] action create,
- - create new file /opt/gitlab/etc/gitaly/env/TZ,
- - update content in file /opt/gitlab/etc/gitaly/env/TZ from none to 983a95,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitaly/env/PYTHONPATH] action create,
- - create new file /opt/gitlab/etc/gitaly/env/PYTHONPATH,
- - update content in file /opt/gitlab/etc/gitaly/env/PYTHONPATH from none to 83b536,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitaly/env/ICU_DATA] action create,
- - create new file /opt/gitlab/etc/gitaly/env/ICU_DATA,
- - update content in file /opt/gitlab/etc/gitaly/env/ICU_DATA from none to a04260,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitaly/env/SSL_CERT_DIR] action create,
- - create new file /opt/gitlab/etc/gitaly/env/SSL_CERT_DIR,
- - update content in file /opt/gitlab/etc/gitaly/env/SSL_CERT_DIR from none to 4f45cf,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitaly/env/GITALY_PID_FILE] action create,
- - create new file /opt/gitlab/etc/gitaly/env/GITALY_PID_FILE,
- - update content in file /opt/gitlab/etc/gitaly/env/GITALY_PID_FILE from none to e82748,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING] action create,
- - create new file /opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING,
- - update content in file /opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING from none to b5bea4,
- - suppressed sensitive resource,
- ,
- * template[Create Gitaly config.toml] action create (up to date),
- * service[gitaly] action nothing (skipped due to action :nothing),
- * runit_service[gitaly] action enable,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/gitaly] action create,
- - create new directory /opt/gitlab/sv/gitaly,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/gitaly/run] action create,
- - create new file /opt/gitlab/sv/gitaly/run,
- - update content in file /opt/gitlab/sv/gitaly/run from none to 1a05c2,
- --- /opt/gitlab/sv/gitaly/run 2021-08-24 02:07:41.484146605 +0000,
- +++ /opt/gitlab/sv/gitaly/.chef-run20210824-31-16ytb9l 2021-08-24 02:07:41.484146605 +0000,
- @@ -1,18 +1,36 @@,
- +#!/bin/sh,
- +,
- +# Attempt to change ulimit before the set -e flag, ignore failures,
- +ulimit -n 15000,
- +,
- +set -e # fail on errors,
- +,
- +# Redirect stderr -> stdout,
- +exec 2>&1,
- +,
- +,
- +,
- +cd /var/opt/gitlab/gitaly,
- +,
- +exec chpst -e /opt/gitlab/etc/gitaly/env -P \,
- + -U git:git \,
- + -u git:git \,
- + /opt/gitlab/embedded/bin/gitaly-wrapper /opt/gitlab/embedded/bin/gitaly /var/opt/gitlab/gitaly/config.toml,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/gitaly/log] action create,
- - create new directory /opt/gitlab/sv/gitaly/log,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/gitaly/log/main] action create,
- - create new directory /opt/gitlab/sv/gitaly/log/main,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/gitaly/log/config] action create,
- - create new file /opt/gitlab/sv/gitaly/log/config,
- - update content in file /opt/gitlab/sv/gitaly/log/config from none to 623c00,
- --- /opt/gitlab/sv/gitaly/log/config 2021-08-24 02:07:41.560145590 +0000,
- +++ /opt/gitlab/sv/gitaly/log/.chef-config20210824-31-638m1 2021-08-24 02:07:41.556145643 +0000,
- @@ -1,6 +1,12 @@,
- +s209715200,
- +n30,
- +t86400,
- +!gzip,
- +,
- +,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[verify_chown_persisted_on_gitaly] action create,
- - execute the ruby block verify_chown_persisted_on_gitaly,
- * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/gitaly/config] action create (up to date),
- * template[/opt/gitlab/sv/gitaly/log/run] action create,
- - create new file /opt/gitlab/sv/gitaly/log/run,
- - update content in file /opt/gitlab/sv/gitaly/log/run from none to fa6dcc,
- --- /opt/gitlab/sv/gitaly/log/run 2021-08-24 02:07:41.616144842 +0000,
- +++ /opt/gitlab/sv/gitaly/log/.chef-run20210824-31-16astpn 2021-08-24 02:07:41.616144842 +0000,
- @@ -1,2 +1,4 @@,
- +#!/bin/sh,
- +exec svlogd /var/log/gitlab/gitaly,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/gitaly/env] action create,
- - create new directory /opt/gitlab/sv/gitaly/env,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/gitaly/control] action create,
- - create new directory /opt/gitlab/sv/gitaly/control,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * link[/opt/gitlab/init/gitaly] action create,
- - create symlink at /opt/gitlab/init/gitaly to /opt/gitlab/embedded/bin/sv,
- * file[/opt/gitlab/sv/gitaly/down] action nothing (skipped due to action :nothing),
- * ruby_block[restart_service] action run (skipped due to only_if),
- * ruby_block[reload_log_service] action create,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/gitaly] action create (up to date),
- * template[/opt/gitlab/sv/gitaly/run] action create (up to date),
- * directory[/opt/gitlab/sv/gitaly/log] action create (up to date),
- * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date),
- * template[/opt/gitlab/sv/gitaly/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/gitaly/config] action create (up to date),
- * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/gitaly/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/gitaly/control] action create (up to date),
- * link[/opt/gitlab/init/gitaly] action create (up to date),
- * file[/opt/gitlab/sv/gitaly/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/gitaly] action create,
- - create symlink at /opt/gitlab/service/gitaly to /opt/gitlab/sv/gitaly,
- * ruby_block[wait for gitaly service socket] action run,
- - execute the ruby block wait for gitaly service socket,
- - execute the ruby block reload_log_service,
- * ruby_block[restart_log_service] action run,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/gitaly] action create (up to date),
- * template[/opt/gitlab/sv/gitaly/run] action create (up to date),
- * directory[/opt/gitlab/sv/gitaly/log] action create (up to date),
- * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date),
- * template[/opt/gitlab/sv/gitaly/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/gitaly/config] action create (up to date),
- * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/gitaly/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/gitaly/control] action create (up to date),
- * link[/opt/gitlab/init/gitaly] action create (up to date),
- * file[/opt/gitlab/sv/gitaly/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/gitaly] action create (up to date),
- * ruby_block[wait for gitaly service socket] action run (skipped due to not_if),
- - execute the ruby block restart_log_service,
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/gitaly] action create (up to date),
- * ruby_block[wait for gitaly service socket] action run (skipped due to not_if),
- ,
- * execute[/opt/gitlab/bin/gitlab-ctl start gitaly] action run,
- [execute] ok: run: gitaly: (pid 302) 8s,
- - execute /opt/gitlab/bin/gitlab-ctl start gitaly,
- * version_file[Create version file for Gitaly] action create,
- * file[/var/opt/gitlab/gitaly/VERSION] action create,
- - update content in file /var/opt/gitlab/gitaly/VERSION from d823ea to b0a771,
- --- /var/opt/gitlab/gitaly/VERSION 2021-08-24 01:47:31.819019100 +0000,
- +++ /var/opt/gitlab/gitaly/.chef-VERSION20210824-31-18pxxve 2021-08-24 02:07:51.684010479 +0000,
- @@ -1 +1 @@,
- -Gitaly, version 14.1.3,
- +Gitaly, version 14.2.0,
- ,
- * version_file[Create Ruby version file for Gitaly] action create,
- * file[/var/opt/gitlab/gitaly/RUBY_VERSION] action create (up to date),
- (up to date),
- * consul_service[gitaly] action delete,
- * file[/var/opt/gitlab/consul/config.d/gitaly-service.json] action delete (up to date),
- (up to date),
- Recipe: postgresql::bin,
- * ruby_block[check_postgresql_version] action run (skipped due to not_if),
- * ruby_block[check_postgresql_version_is_deprecated] action run (skipped due to not_if),
- * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if),
- * template[/opt/gitlab/etc/gitlab-psql-rc] action create,
- - create new file /opt/gitlab/etc/gitlab-psql-rc,
- - update content in file /opt/gitlab/etc/gitlab-psql-rc from none to b7b8fc,
- --- /opt/gitlab/etc/gitlab-psql-rc 2021-08-24 02:07:51.972006637 +0000,
- +++ /opt/gitlab/etc/.chef-gitlab-psql-rc20210824-31-1y1enk1 2021-08-24 02:07:51.972006637 +0000,
- @@ -1,5 +1,10 @@,
- +psql_user='gitlab-psql',
- +psql_group='gitlab-psql',
- +psql_host='/var/opt/gitlab/postgresql',
- +psql_port='5432',
- +psql_dbname='gitlabhq_production',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- Recipe: postgresql::user,
- * account[Postgresql user and group] action create (up to date),
- * directory[/var/opt/gitlab/postgresql] action create (up to date),
- * file[/var/opt/gitlab/postgresql/.profile] action create (up to date),
- Recipe: postgresql::sysctl,
- * gitlab_sysctl[kernel.shmmax] action create,
- * directory[create /etc/sysctl.d for kernel.shmmax] action create (skipped due to only_if),
- * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (skipped due to only_if),
- * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (skipped due to only_if),
- * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing),
- (up to date),
- * gitlab_sysctl[kernel.shmall] action create,
- * directory[create /etc/sysctl.d for kernel.shmall] action create (skipped due to only_if),
- * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (skipped due to only_if),
- * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (skipped due to only_if),
- * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing),
- (up to date),
- * gitlab_sysctl[kernel.sem] action create,
- * directory[create /etc/sysctl.d for kernel.sem] action create (skipped due to only_if),
- * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (skipped due to only_if),
- * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (skipped due to only_if),
- * execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing),
- (up to date),
- Recipe: postgresql::enable,
- * directory[/var/opt/gitlab/postgresql] action create (up to date),
- * directory[/var/opt/gitlab/postgresql/data] action create (up to date),
- * directory[/var/log/gitlab/postgresql] action create (up to date),
- * directory[/var/opt/gitlab/postgresql/data] action create (up to date),
- * execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run (skipped due to not_if),
- * file[/var/opt/gitlab/postgresql/data/server.crt] action create (up to date),
- * file[/var/opt/gitlab/postgresql/data/server.key] action create (up to date),
- * postgresql_config[gitlab] action create,
- * template[/var/opt/gitlab/postgresql/data/postgresql.conf] action create (up to date),
- * template[/var/opt/gitlab/postgresql/data/runtime.conf] action create (up to date),
- * template[/var/opt/gitlab/postgresql/data/pg_hba.conf] action create (up to date),
- * template[/var/opt/gitlab/postgresql/data/pg_ident.conf] action create (up to date),
- (up to date),
- Recipe: postgresql::standalone,
- * service[postgresql] action nothing (skipped due to action :nothing),
- * runit_service[postgresql] action enable,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/postgresql] action create,
- - create new directory /opt/gitlab/sv/postgresql,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/postgresql/run] action create,
- - create new file /opt/gitlab/sv/postgresql/run,
- - update content in file /opt/gitlab/sv/postgresql/run from none to dc5689,
- --- /opt/gitlab/sv/postgresql/run 2021-08-24 02:07:52.631997834 +0000,
- +++ /opt/gitlab/sv/postgresql/.chef-run20210824-31-1f5qat7 2021-08-24 02:07:52.631997834 +0000,
- @@ -1,4 +1,8 @@,
- +#!/bin/sh,
- +exec 2>&1,
- +,
- +exec chpst -P -U gitlab-psql:gitlab-psql -u gitlab-psql:gitlab-psql /opt/gitlab/embedded/bin/postgres -D /var/opt/gitlab/postgresql/data,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/postgresql/log] action create,
- - create new directory /opt/gitlab/sv/postgresql/log,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/postgresql/log/main] action create,
- - create new directory /opt/gitlab/sv/postgresql/log/main,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/postgresql/log/config] action create,
- - create new file /opt/gitlab/sv/postgresql/log/config,
- - update content in file /opt/gitlab/sv/postgresql/log/config from none to 623c00,
- --- /opt/gitlab/sv/postgresql/log/config 2021-08-24 02:07:52.719996661 +0000,
- +++ /opt/gitlab/sv/postgresql/log/.chef-config20210824-31-1tmx553 2021-08-24 02:07:52.719996661 +0000,
- @@ -1,6 +1,12 @@,
- +s209715200,
- +n30,
- +t86400,
- +!gzip,
- +,
- +,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[verify_chown_persisted_on_postgresql] action create,
- - execute the ruby block verify_chown_persisted_on_postgresql,
- * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/postgresql/config] action create (up to date),
- * template[/opt/gitlab/sv/postgresql/log/run] action create,
- - create new file /opt/gitlab/sv/postgresql/log/run,
- - update content in file /opt/gitlab/sv/postgresql/log/run from none to ce742a,
- --- /opt/gitlab/sv/postgresql/log/run 2021-08-24 02:07:52.787995754 +0000,
- +++ /opt/gitlab/sv/postgresql/log/.chef-run20210824-31-1y7uzmk 2021-08-24 02:07:52.787995754 +0000,
- @@ -1,2 +1,4 @@,
- +#!/bin/sh,
- +exec svlogd -tt /var/log/gitlab/postgresql,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/postgresql/env] action create,
- - create new directory /opt/gitlab/sv/postgresql/env,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/postgresql/control] action create,
- - create new directory /opt/gitlab/sv/postgresql/control,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/postgresql/control/t] action create,
- - create new file /opt/gitlab/sv/postgresql/control/t,
- - update content in file /opt/gitlab/sv/postgresql/control/t from none to 05ae12,
- --- /opt/gitlab/sv/postgresql/control/t 2021-08-24 02:07:52.879994527 +0000,
- +++ /opt/gitlab/sv/postgresql/control/.chef-t20210824-31-bg21lx 2021-08-24 02:07:52.879994527 +0000,
- @@ -1,3 +1,6 @@,
- +#!/bin/sh,
- +echo "received TERM from runit, sending INT instead to force quit connections",
- +/opt/gitlab/embedded/bin/sv interrupt postgresql,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * link[/opt/gitlab/init/postgresql] action create,
- - create symlink at /opt/gitlab/init/postgresql to /opt/gitlab/embedded/bin/sv,
- * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing),
- * ruby_block[restart_service] action run (skipped due to only_if),
- * ruby_block[reload_log_service] action create,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/postgresql] action create (up to date),
- * template[/opt/gitlab/sv/postgresql/run] action create (up to date),
- * directory[/opt/gitlab/sv/postgresql/log] action create (up to date),
- * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date),
- * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/postgresql/config] action create (up to date),
- * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/postgresql/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/postgresql/control] action create (up to date),
- * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date),
- * link[/opt/gitlab/init/postgresql] action create (up to date),
- * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/postgresql] action create,
- - create symlink at /opt/gitlab/service/postgresql to /opt/gitlab/sv/postgresql,
- * ruby_block[wait for postgresql service socket] action run,
- - execute the ruby block wait for postgresql service socket,
- * directory[/opt/gitlab/service/postgresql/supervise] action create,
- - change mode from '0700' to '0755',
- * directory[/opt/gitlab/service/postgresql/log/supervise] action create,
- - change mode from '0700' to '0755',
- * file[/opt/gitlab/service/postgresql/supervise/ok] action touch,
- - create new file /opt/gitlab/service/postgresql/supervise/ok,
- - change owner from '' to 'gitlab-psql',
- - change group from '' to 'gitlab-psql',
- - update utime on file /opt/gitlab/service/postgresql/supervise/ok,
- * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch,
- - create new file /opt/gitlab/service/postgresql/log/supervise/ok,
- - change owner from '' to 'gitlab-psql',
- - change group from '' to 'gitlab-psql',
- - update utime on file /opt/gitlab/service/postgresql/log/supervise/ok,
- * file[/opt/gitlab/service/postgresql/supervise/status] action touch,
- - change owner from 'root' to 'gitlab-psql',
- - change group from 'root' to 'gitlab-psql',
- - update utime on file /opt/gitlab/service/postgresql/supervise/status,
- * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch,
- - change owner from 'root' to 'gitlab-psql',
- - change group from 'root' to 'gitlab-psql',
- - update utime on file /opt/gitlab/service/postgresql/log/supervise/status,
- * file[/opt/gitlab/service/postgresql/supervise/control] action touch,
- - create new file /opt/gitlab/service/postgresql/supervise/control,
- - change owner from '' to 'gitlab-psql',
- - change group from '' to 'gitlab-psql',
- - update utime on file /opt/gitlab/service/postgresql/supervise/control,
- * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch,
- - create new file /opt/gitlab/service/postgresql/log/supervise/control,
- - change owner from '' to 'gitlab-psql',
- - change group from '' to 'gitlab-psql',
- - update utime on file /opt/gitlab/service/postgresql/log/supervise/control,
- - execute the ruby block reload_log_service,
- * ruby_block[restart_log_service] action run,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/postgresql] action create (up to date),
- * template[/opt/gitlab/sv/postgresql/run] action create (up to date),
- * directory[/opt/gitlab/sv/postgresql/log] action create (up to date),
- * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date),
- * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/postgresql/config] action create (up to date),
- * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/postgresql/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/postgresql/control] action create (up to date),
- * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date),
- * link[/opt/gitlab/init/postgresql] action create (up to date),
- * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/postgresql] action create (up to date),
- * ruby_block[wait for postgresql service socket] action run (skipped due to not_if),
- * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date),
- * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date),
- * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if),
- * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if),
- * file[/opt/gitlab/service/postgresql/supervise/status] action touch (skipped due to only_if),
- * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch,
- - change owner from 'root' to 'gitlab-psql',
- - change group from 'root' to 'gitlab-psql',
- - update utime on file /opt/gitlab/service/postgresql/log/supervise/status,
- * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if),
- * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if),
- - execute the ruby block restart_log_service,
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/postgresql] action create (up to date),
- * ruby_block[wait for postgresql service socket] action run (skipped due to not_if),
- * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date),
- * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date),
- * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if),
- * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if),
- * file[/opt/gitlab/service/postgresql/supervise/status] action touch (skipped due to only_if),
- * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch,
- - change owner from 'root' to 'gitlab-psql',
- - change group from 'root' to 'gitlab-psql',
- - update utime on file /opt/gitlab/service/postgresql/log/supervise/status,
- * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if),
- * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if),
- ,
- * execute[/opt/gitlab/bin/gitlab-ctl start postgresql] action run,
- [execute] ok: run: postgresql: (pid 424) 9s,
- - execute /opt/gitlab/bin/gitlab-ctl start postgresql,
- * database_objects[postgresql] action create,
- * postgresql_user[gitlab] action create,
- * execute[create gitlab postgresql user] action run (skipped due to not_if),
- (up to date),
- * postgresql_user[gitlab_replicator] action create,
- * execute[create gitlab_replicator postgresql user] action run (skipped due to not_if),
- * execute[set options for gitlab_replicator postgresql user] action run (skipped due to not_if),
- (up to date),
- * postgresql_database[gitlabhq_production] action create,
- * execute[create database gitlabhq_production] action run (skipped due to not_if),
- (up to date),
- * postgresql_extension[pg_trgm] action enable,
- * postgresql_query[enable pg_trgm extension] action run (skipped due to only_if),
- (up to date),
- * postgresql_extension[btree_gist] action enable,
- * postgresql_query[enable btree_gist extension] action run (skipped due to only_if),
- (up to date),
- (up to date),
- * ruby_block[warn pending postgresql restart] action run (skipped due to only_if),
- * execute[reload postgresql] action nothing (skipped due to action :nothing),
- * execute[start postgresql] action nothing (skipped due to action :nothing),
- Recipe: praefect::disable,
- * service[praefect] action nothing (skipped due to action :nothing),
- * runit_service[praefect] action disable,
- * ruby_block[disable praefect] action run (skipped due to only_if),
- (up to date),
- * consul_service[praefect] action delete,
- * file[/var/opt/gitlab/consul/config.d/praefect-service.json] action delete (up to date),
- (up to date),
- Recipe: gitlab-kas::disable,
- * service[gitlab-kas] action nothing (skipped due to action :nothing),
- * runit_service[gitlab-kas] action disable,
- * ruby_block[disable gitlab-kas] action run (skipped due to only_if),
- (up to date),
- Recipe: gitlab::database_migrations,
- * ruby_block[check remote PG version] action nothing (skipped due to action :nothing),
- * rails_migration[gitlab-rails] action run,
- * bash[migrate gitlab-rails database] action run,
- [execute] == 20210611082822 AddPagesFileEntriesToPlanLimits: migrating ==================,
- -- add_column(:plan_limits, :pages_file_entries, :integer, {:default=>200000, :null=>false}),
- -> 0.0128s,
- == 20210611082822 AddPagesFileEntriesToPlanLimits: migrated (0.0132s) =========,
- ,
- == 20210628154900 CreateDetachedPartitionsTable: migrating ====================,
- -- create_table(:detached_partitions, {}),
- -- quote_column_name(:table_name),
- -> 0.0001s,
- -> 0.0452s,
- -- quote_table_name("check_aecee24ba3"),
- -> 0.0001s,
- -- quote_table_name(:detached_partitions),
- -> 0.0000s,
- -- execute("ALTER TABLE \"detached_partitions\"\nADD CONSTRAINT \"check_aecee24ba3\" CHECK (char_length(\"table_name\") <= 63)\n"),
- -> 0.0033s,
- == 20210628154900 CreateDetachedPartitionsTable: migrated (0.1377s) ===========,
- ,
- == 20210629031900 AssociateExistingDastBuildsWithVariables: migrating =========,
- == 20210629031900 AssociateExistingDastBuildsWithVariables: migrated (0.0260s) ,
- ,
- == 20210630222522 AddCustomersDotJwtSigningKeyToApplicationSettings: migrating ,
- -- add_column(:application_settings, :encrypted_customers_dot_jwt_signing_key, :binary),
- -> 0.0093s,
- -- add_column(:application_settings, :encrypted_customers_dot_jwt_signing_key_iv, :binary),
- -> 0.0037s,
- == 20210630222522 AddCustomersDotJwtSigningKeyToApplicationSettings: migrated (0.0134s) ,
- ,
- == 20210630224625 GenerateCustomersDotJwtSigningKey: migrating ================,
- == 20210630224625 GenerateCustomersDotJwtSigningKey: migrated (1.3184s) =======,
- ,
- == 20210701033622 FinalizeCiBuildsNeedsBigintConversion: migrating ============,
- -- transaction_open?(),
- -> 0.0001s,
- -- index_exists?("ci_build_needs", [:build_id_convert_to_bigint, :name], {:unique=>true, :name=>"index_ci_build_needs_on_build_id_convert_to_bigint_and_name", :algorithm=>:concurrently}),
- -> 0.0154s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0014s,
- -- add_index("ci_build_needs", [:build_id_convert_to_bigint, :name], {:unique=>true, :name=>"index_ci_build_needs_on_build_id_convert_to_bigint_and_name", :algorithm=>:concurrently}),
- -> 0.0135s,
- -- execute("RESET statement_timeout"),
- -> 0.0014s,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys("ci_build_needs"),
- -> 0.0245s,
- -- execute("LOCK TABLE ci_builds, ci_build_needs IN SHARE ROW EXCLUSIVE MODE"),
- -> 0.0018s,
- -- execute("ALTER TABLE ci_build_needs\nADD CONSTRAINT fk_rails_3cf221d4ed_tmp\nFOREIGN KEY (build_id_convert_to_bigint)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0125s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0014s,
- -- execute("ALTER TABLE ci_build_needs VALIDATE CONSTRAINT fk_rails_3cf221d4ed_tmp;"),
- -> 0.0198s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- execute("LOCK TABLE ci_builds, ci_build_needs IN ACCESS EXCLUSIVE MODE"),
- -> 0.0009s,
- -- quote_table_name("ci_build_needs"),
- -> 0.0001s,
- -- quote_column_name(:build_id),
- -> 0.0000s,
- -- quote_column_name("build_id_tmp"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_build_needs\" RENAME COLUMN \"build_id\" TO \"build_id_tmp\""),
- -> 0.0014s,
- -- quote_table_name("ci_build_needs"),
- -> 0.0001s,
- -- quote_column_name(:build_id_convert_to_bigint),
- -> 0.0001s,
- -- quote_column_name(:build_id),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_build_needs\" RENAME COLUMN \"build_id_convert_to_bigint\" TO \"build_id\""),
- -> 0.0011s,
- -- quote_table_name("ci_build_needs"),
- -> 0.0000s,
- -- quote_column_name("build_id_tmp"),
- -> 0.0000s,
- -- quote_column_name(:build_id_convert_to_bigint),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_build_needs\" RENAME COLUMN \"build_id_tmp\" TO \"build_id_convert_to_bigint\""),
- -> 0.0010s,
- -- quote_table_name("trigger_21e7a2602957"),
- -> 0.0001s,
- -- execute("ALTER FUNCTION \"trigger_21e7a2602957\" RESET ALL"),
- -> 0.0018s,
- -- change_column_default("ci_build_needs", :build_id, nil),
- -> 0.0089s,
- -- change_column_default("ci_build_needs", :build_id_convert_to_bigint, 0),
- -> 0.0062s,
- -- execute("DROP INDEX index_ci_build_needs_on_build_id_and_name"),
- -> 0.0024s,
- -- rename_index("ci_build_needs", "index_ci_build_needs_on_build_id_convert_to_bigint_and_name", "index_ci_build_needs_on_build_id_and_name"),
- -> 0.0016s,
- -- remove_foreign_key("ci_build_needs", {:name=>"fk_rails_3cf221d4ed"}),
- -> 0.0249s,
- -- quote_table_name("ci_build_needs"),
- -> 0.0001s,
- -- quote_column_name("fk_rails_3cf221d4ed_tmp"),
- -> 0.0001s,
- -- quote_column_name("fk_rails_3cf221d4ed"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_build_needs\"\nRENAME CONSTRAINT \"fk_rails_3cf221d4ed_tmp\" TO \"fk_rails_3cf221d4ed\"\n"),
- -> 0.0015s,
- == 20210701033622 FinalizeCiBuildsNeedsBigintConversion: migrated (0.2958s) ===,
- ,
- == 20210706151154 AddRemainingCiMinutesToCiPendingBuild: migrating ============,
- -- add_column(:ci_pending_builds, :namespace_id, :bigint),
- -> 0.0032s,
- -- add_column(:ci_pending_builds, :minutes_exceeded, :boolean, {:null=>false, :default=>false}),
- -> 0.0040s,
- == 20210706151154 AddRemainingCiMinutesToCiPendingBuild: migrated (0.0154s) ===,
- ,
- == 20210706151446 AddNamespaceForeignKeyToCiPendingBuild: migrating ===========,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:ci_pending_builds, :namespace_id, {:name=>"index_ci_pending_builds_on_namespace_id", :algorithm=>:concurrently}),
- -> 0.0112s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0011s,
- -- add_index(:ci_pending_builds, :namespace_id, {:name=>"index_ci_pending_builds_on_namespace_id", :algorithm=>:concurrently}),
- -> 0.0096s,
- -- execute("RESET statement_timeout"),
- -> 0.0010s,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys(:ci_pending_builds),
- -> 0.0192s,
- -- execute("ALTER TABLE ci_pending_builds\nADD CONSTRAINT fk_fdc0137e4a\nFOREIGN KEY (namespace_id)\nREFERENCES namespaces (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0139s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0009s,
- -- execute("ALTER TABLE ci_pending_builds VALIDATE CONSTRAINT fk_fdc0137e4a;"),
- -> 0.0122s,
- -- execute("RESET statement_timeout"),
- -> 0.0011s,
- == 20210706151446 AddNamespaceForeignKeyToCiPendingBuild: migrated (0.0848s) ==,
- ,
- == 20210706212710 FinalizeCiJobArtifactsBigintConversion: migrating ===========,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("ci_job_artifacts", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_job_artifact_on_id_convert_to_bigint", :algorithm=>:concurrently}),
- -> 0.0214s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- add_index("ci_job_artifacts", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_job_artifact_on_id_convert_to_bigint", :algorithm=>:concurrently}),
- -> 0.0090s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("ci_job_artifacts", [:project_id, :id_convert_to_bigint], {:name=>"index_ci_job_artifacts_for_terraform_reports_bigint", :where=>"file_type = 18", :algorithm=>:concurrently}),
- -> 0.0198s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- add_index("ci_job_artifacts", [:project_id, :id_convert_to_bigint], {:name=>"index_ci_job_artifacts_for_terraform_reports_bigint", :where=>"file_type = 18", :algorithm=>:concurrently}),
- -> 0.0084s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("ci_job_artifacts", [:id_convert_to_bigint], {:name=>"index_ci_job_artifacts_id_for_terraform_reports_bigint", :where=>"file_type = 18", :algorithm=>:concurrently}),
- -> 0.0210s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- add_index("ci_job_artifacts", [:id_convert_to_bigint], {:name=>"index_ci_job_artifacts_id_for_terraform_reports_bigint", :where=>"file_type = 18", :algorithm=>:concurrently}),
- -> 0.0079s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys(:project_pages_metadata),
- -> 0.0170s,
- -- execute("LOCK TABLE ci_job_artifacts, project_pages_metadata IN SHARE ROW EXCLUSIVE MODE"),
- -> 0.0011s,
- -- execute("ALTER TABLE project_pages_metadata\nADD CONSTRAINT fk_69366a119e_tmp\nFOREIGN KEY (artifacts_archive_id)\nREFERENCES ci_job_artifacts (id_convert_to_bigint)\nON DELETE SET NULL\nNOT VALID;\n"),
- -> 0.0041s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- execute("ALTER TABLE project_pages_metadata VALIDATE CONSTRAINT fk_69366a119e_tmp;"),
- -> 0.0092s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- execute("LOCK TABLE ci_job_artifacts, project_pages_metadata IN ACCESS EXCLUSIVE MODE"),
- -> 0.0009s,
- -- quote_table_name("ci_job_artifacts"),
- -> 0.0001s,
- -- quote_column_name(:id),
- -> 0.0000s,
- -- quote_column_name("id_tmp"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"id\" TO \"id_tmp\""),
- -> 0.0012s,
- -- quote_table_name("ci_job_artifacts"),
- -> 0.0000s,
- -- quote_column_name(:id_convert_to_bigint),
- -> 0.0001s,
- -- quote_column_name(:id),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"id_convert_to_bigint\" TO \"id\""),
- -> 0.0011s,
- -- quote_table_name("ci_job_artifacts"),
- -> 0.0000s,
- -- quote_column_name("id_tmp"),
- -> 0.0000s,
- -- quote_column_name(:id_convert_to_bigint),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"id_tmp\" TO \"id_convert_to_bigint\""),
- -> 0.0011s,
- -- quote_table_name("trigger_be1804f21693"),
- -> 0.0001s,
- -- execute("ALTER FUNCTION \"trigger_be1804f21693\" RESET ALL"),
- -> 0.0014s,
- -- execute("ALTER SEQUENCE ci_job_artifacts_id_seq OWNED BY ci_job_artifacts.id"),
- -> 0.0019s,
- -- change_column_default("ci_job_artifacts", :id, #<Proc:0x0000ffff97133e30 /opt/gitlab/embedded/service/gitlab-rails/db/post_migrate/20210706212710_finalize_ci_job_artifacts_bigint_conversion.rb:66 (lambda)>),
- -> 0.0093s,
- -- change_column_default("ci_job_artifacts", :id_convert_to_bigint, 0),
- -> 0.0074s,
- -- execute("ALTER TABLE ci_job_artifacts DROP CONSTRAINT ci_job_artifacts_pkey CASCADE"),
- -> 0.0041s,
- -- rename_index("ci_job_artifacts", "index_ci_job_artifact_on_id_convert_to_bigint", "ci_job_artifacts_pkey"),
- -> 0.0014s,
- -- execute("ALTER TABLE ci_job_artifacts ADD CONSTRAINT ci_job_artifacts_pkey PRIMARY KEY USING INDEX ci_job_artifacts_pkey"),
- -> 0.0058s,
- -- execute("DROP INDEX index_ci_job_artifacts_for_terraform_reports"),
- -> 0.0014s,
- -- rename_index("ci_job_artifacts", "index_ci_job_artifacts_for_terraform_reports_bigint", "index_ci_job_artifacts_for_terraform_reports"),
- -> 0.0012s,
- -- execute("DROP INDEX index_ci_job_artifacts_id_for_terraform_reports"),
- -> 0.0015s,
- -- rename_index("ci_job_artifacts", "index_ci_job_artifacts_id_for_terraform_reports_bigint", "index_ci_job_artifacts_id_for_terraform_reports"),
- -> 0.0012s,
- -- quote_table_name(:project_pages_metadata),
- -> 0.0001s,
- -- quote_column_name("fk_69366a119e_tmp"),
- -> 0.0000s,
- -- quote_column_name("fk_69366a119e"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"project_pages_metadata\"\nRENAME CONSTRAINT \"fk_69366a119e_tmp\" TO \"fk_69366a119e\"\n"),
- -> 0.0013s,
- == 20210706212710 FinalizeCiJobArtifactsBigintConversion: migrated (0.2051s) ==,
- ,
- == 20210707210916 FinalizeCiStagesBigintConversion: migrating =================,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("ci_stages", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_stages_on_id_convert_to_bigint", :algorithm=>:concurrently}),
- -> 0.0132s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- add_index("ci_stages", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_stages_on_id_convert_to_bigint", :algorithm=>:concurrently}),
- -> 0.0091s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("ci_stages", [:pipeline_id, :id_convert_to_bigint], {:name=>"index_ci_stages_on_pipeline_id_and_id_convert_to_bigint", :where=>"status in (0, 1, 2, 8, 9, 10)", :algorithm=>:concurrently}),
- -> 0.0128s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- add_index("ci_stages", [:pipeline_id, :id_convert_to_bigint], {:name=>"index_ci_stages_on_pipeline_id_and_id_convert_to_bigint", :where=>"status in (0, 1, 2, 8, 9, 10)", :algorithm=>:concurrently}),
- -> 0.0086s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys(:ci_builds),
- -> 0.0193s,
- -- execute("LOCK TABLE ci_stages, ci_builds IN SHARE ROW EXCLUSIVE MODE"),
- -> 0.0010s,
- -- execute("ALTER TABLE ci_builds\nADD CONSTRAINT fk_3a9eaa254d_tmp\nFOREIGN KEY (stage_id)\nREFERENCES ci_stages (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0081s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- execute("ALTER TABLE ci_builds VALIDATE CONSTRAINT fk_3a9eaa254d_tmp;"),
- -> 0.0086s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- -- execute("LOCK TABLE ci_stages, ci_builds IN ACCESS EXCLUSIVE MODE"),
- -> 0.0009s,
- -- quote_column_name("id_tmp"),
- -> 0.0001s,
- -- quote_column_name(:id),
- -> 0.0000s,
- -- quote_column_name(:id_convert_to_bigint),
- -> 0.0000s,
- -- execute("ALTER TABLE ci_stages RENAME COLUMN \"id\" TO \"id_tmp\""),
- -> 0.0012s,
- -- execute("ALTER TABLE ci_stages RENAME COLUMN \"id_convert_to_bigint\" TO \"id\""),
- -> 0.0011s,
- -- execute("ALTER TABLE ci_stages RENAME COLUMN \"id_tmp\" TO \"id_convert_to_bigint\""),
- -> 0.0011s,
- -- quote_table_name("trigger_490d204c00b3"),
- -> 0.0001s,
- -- execute("ALTER FUNCTION \"trigger_490d204c00b3\" RESET ALL"),
- -> 0.0011s,
- -- execute("ALTER SEQUENCE ci_stages_id_seq OWNED BY ci_stages.id"),
- -> 0.0018s,
- -- change_column_default("ci_stages", :id, #<Proc:0x0000ffff97295210 /opt/gitlab/embedded/service/gitlab-rails/db/post_migrate/20210707210916_finalize_ci_stages_bigint_conversion.rb:61 (lambda)>),
- -> 0.0080s,
- -- change_column_default("ci_stages", :id_convert_to_bigint, 0),
- -> 0.0067s,
- -- execute("ALTER TABLE ci_stages DROP CONSTRAINT ci_stages_pkey CASCADE"),
- -> 0.0067s,
- -- rename_index("ci_stages", "index_ci_stages_on_id_convert_to_bigint", "ci_stages_pkey"),
- -> 0.0015s,
- -- execute("ALTER TABLE ci_stages ADD CONSTRAINT ci_stages_pkey PRIMARY KEY USING INDEX ci_stages_pkey"),
- -> 0.0021s,
- -- execute("DROP INDEX index_ci_stages_on_pipeline_id_and_id"),
- -> 0.0015s,
- -- rename_index("ci_stages", "index_ci_stages_on_pipeline_id_and_id_convert_to_bigint", "index_ci_stages_on_pipeline_id_and_id"),
- -> 0.0013s,
- -- quote_table_name(:ci_builds),
- -> 0.0001s,
- -- quote_column_name("fk_3a9eaa254d_tmp"),
- -> 0.0000s,
- -- quote_column_name("fk_3a9eaa254d"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_builds\"\nRENAME CONSTRAINT \"fk_3a9eaa254d_tmp\" TO \"fk_3a9eaa254d\"\n"),
- -> 0.0035s,
- == 20210707210916 FinalizeCiStagesBigintConversion: migrated (0.1562s) ========,
- ,
- == 20210708202548 AddScannersColumnToApprovalProjectRules: migrating ==========,
- -- add_column(:approval_project_rules, :scanners, :text, {:array=>true}),
- -> 0.0030s,
- == 20210708202548 AddScannersColumnToApprovalProjectRules: migrated (0.0031s) =,
- ,
- == 20210709024048 FinalizePushEventPayloadsBigintConversion2: migrating =======,
- == 20210709024048 FinalizePushEventPayloadsBigintConversion2: migrated (0.0000s) ,
- ,
- == 20210709221051 CreateWorkItemTypes: migrating ==============================,
- -- create_table(:work_item_types, {}),
- -- quote_column_name(:name),
- -> 0.0001s,
- -- quote_column_name(:icon_name),
- -> 0.0000s,
- -> 0.0303s,
- -- quote_table_name("check_104d2410f6"),
- -> 0.0001s,
- -- quote_table_name("check_fecb3a98d1"),
- -> 0.0000s,
- -- quote_table_name(:work_item_types),
- -> 0.0000s,
- -- execute("ALTER TABLE \"work_item_types\"\nADD CONSTRAINT \"check_104d2410f6\" CHECK (char_length(\"name\") <= 255),\nADD CONSTRAINT \"check_fecb3a98d1\" CHECK (char_length(\"icon_name\") <= 255)\n"),
- -> 0.0025s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:work_item_types, "namespace_id, TRIM(BOTH FROM LOWER(name))", {:unique=>true, :name=>:work_item_types_namespace_id_and_name_unique, :algorithm=>:concurrently}),
- -> 0.0041s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0009s,
- -- add_index(:work_item_types, "namespace_id, TRIM(BOTH FROM LOWER(name))", {:unique=>true, :name=>:work_item_types_namespace_id_and_name_unique, :algorithm=>:concurrently}),
- -> 0.0087s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- == 20210709221051 CreateWorkItemTypes: migrated (0.0584s) =====================,
- ,
- == 20210709221659 AddWorkItemTypeIdToIssue: migrating =========================,
- -- column_exists?(:issues, :work_item_type_id),
- -> 0.0104s,
- -- add_column(:issues, :work_item_type_id, :bigint),
- -> 0.0022s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:issues, :work_item_type_id, {:algorithm=>:concurrently}),
- -> 0.0550s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0009s,
- -- add_index(:issues, :work_item_type_id, {:algorithm=>:concurrently}),
- -> 0.0099s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys(:issues),
- -> 0.0207s,
- -- execute("ALTER TABLE issues\nADD CONSTRAINT fk_b37be69be6\nFOREIGN KEY (work_item_type_id)\nREFERENCES work_item_types (id)\n\nNOT VALID;\n"),
- -> 0.0046s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_b37be69be6;"),
- -> 0.0082s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- == 20210709221659 AddWorkItemTypeIdToIssue: migrated (0.1344s) ================,
- ,
- == 20210712052519 AddLabelAppliedIssuableClosedToIssuableSla: migrating =======,
- -- add_column(:issuable_slas, :label_applied, :boolean, {:default=>false, :null=>false}),
- -> 0.0047s,
- -- add_column(:issuable_slas, :issuable_closed, :boolean, {:default=>false, :null=>false}),
- -> 0.0030s,
- == 20210712052519 AddLabelAppliedIssuableClosedToIssuableSla: migrated (0.0080s) ,
- ,
- == 20210713042153 FinalizeCiSourcesPipelinesBigintConversion: migrating =======,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("ci_sources_pipelines", :source_job_id_convert_to_bigint, {:name=>"index_ci_sources_pipelines_on_source_job_id_convert_to_bigint", :algorithm=>:concurrently}),
- -> 0.0123s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- add_index("ci_sources_pipelines", :source_job_id_convert_to_bigint, {:name=>"index_ci_sources_pipelines_on_source_job_id_convert_to_bigint", :algorithm=>:concurrently}),
- -> 0.0089s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys("ci_sources_pipelines"),
- -> 0.0196s,
- -- execute("LOCK TABLE ci_builds, ci_sources_pipelines IN SHARE ROW EXCLUSIVE MODE"),
- -> 0.0010s,
- -- execute("ALTER TABLE ci_sources_pipelines\nADD CONSTRAINT fk_be5624bf37_tmp\nFOREIGN KEY (source_job_id_convert_to_bigint)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0082s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0010s,
- -- execute("ALTER TABLE ci_sources_pipelines VALIDATE CONSTRAINT fk_be5624bf37_tmp;"),
- -> 0.0090s,
- -- execute("RESET statement_timeout"),
- -> 0.0012s,
- -- execute("LOCK TABLE ci_builds, ci_sources_pipelines IN ACCESS EXCLUSIVE MODE"),
- -> 0.0012s,
- -- quote_table_name("ci_sources_pipelines"),
- -> 0.0001s,
- -- quote_column_name(:source_job_id),
- -> 0.0001s,
- -- quote_column_name("source_job_id_tmp"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_sources_pipelines\" RENAME COLUMN \"source_job_id\" TO \"source_job_id_tmp\""),
- -> 0.0018s,
- -- quote_table_name("ci_sources_pipelines"),
- -> 0.0001s,
- -- quote_column_name(:source_job_id_convert_to_bigint),
- -> 0.0001s,
- -- quote_column_name(:source_job_id),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_sources_pipelines\" RENAME COLUMN \"source_job_id_convert_to_bigint\" TO \"source_job_id\""),
- -> 0.0014s,
- -- quote_table_name("ci_sources_pipelines"),
- -> 0.0001s,
- -- quote_column_name("source_job_id_tmp"),
- -> 0.0000s,
- -- quote_column_name(:source_job_id_convert_to_bigint),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_sources_pipelines\" RENAME COLUMN \"source_job_id_tmp\" TO \"source_job_id_convert_to_bigint\""),
- -> 0.0015s,
- -- quote_table_name("trigger_8485e97c00e3"),
- -> 0.0001s,
- -- execute("ALTER FUNCTION \"trigger_8485e97c00e3\" RESET ALL"),
- -> 0.0015s,
- -- execute("DROP INDEX index_ci_sources_pipelines_on_source_job_id"),
- -> 0.0024s,
- -- rename_index("ci_sources_pipelines", "index_ci_sources_pipelines_on_source_job_id_convert_to_bigint", "index_ci_sources_pipelines_on_source_job_id"),
- -> 0.0022s,
- -- remove_foreign_key("ci_sources_pipelines", {:name=>"fk_be5624bf37"}),
- -> 0.0260s,
- -- quote_table_name("ci_sources_pipelines"),
- -> 0.0001s,
- -- quote_column_name("fk_be5624bf37_tmp"),
- -> 0.0000s,
- -- quote_column_name("fk_be5624bf37"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_sources_pipelines\"\nRENAME CONSTRAINT \"fk_be5624bf37_tmp\" TO \"fk_be5624bf37\"\n"),
- -> 0.0017s,
- == 20210713042153 FinalizeCiSourcesPipelinesBigintConversion: migrated (0.1341s) ,
- ,
- == 20210713075117 ReScheduleLatestPipelineIdPopulationWithLogging: migrating ==,
- == 20210713075117 ReScheduleLatestPipelineIdPopulationWithLogging: migrated (0.0000s) ,
- ,
- == 20210713123345 CreateDastProfileSchedule: migrating ========================,
- -- create_table(:dast_profile_schedules, {:comment=>"{\"owner\":\"group::dynamic analysis\",\"description\":\"Scheduling for scans using DAST Profiles\"}"}),
- -- quote_column_name(:cron),
- -> 0.0001s,
- -> 0.0501s,
- -- quote_table_name("check_86531ea73f"),
- -> 0.0001s,
- -- quote_table_name(:dast_profile_schedules),
- -> 0.0000s,
- -- execute("ALTER TABLE \"dast_profile_schedules\"\nADD CONSTRAINT \"check_86531ea73f\" CHECK (char_length(\"cron\") <= 255)\n"),
- -> 0.0028s,
- == 20210713123345 CreateDastProfileSchedule: migrated (0.0608s) ===============,
- ,
- == 20210713211008 CreateBannedUsers: migrating ================================,
- -- create_table(:banned_users, {:id=>false}),
- -> 0.0224s,
- == 20210713211008 CreateBannedUsers: migrated (0.0287s) =======================,
- ,
- == 20210713223941 RemoveNullConstraintFromSecurityFindings: migrating =========,
- -- change_column_null(:security_findings, :project_fingerprint, true),
- -> 0.0038s,
- == 20210713223941 RemoveNullConstraintFromSecurityFindings: migrated (0.0040s) ,
- ,
- == 20210714015537 FinalizeCiBuildTraceChunksBigintConversion: migrating =======,
- -- transaction_open?(),
- -> 0.0001s,
- -- index_exists?("ci_build_trace_chunks", [:build_id_convert_to_bigint, :chunk_index], {:unique=>true, :name=>"i_ci_build_trace_chunks_build_id_convert_to_bigint_chunk_index", :algorithm=>:concurrently}),
- -> 0.0072s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- add_index("ci_build_trace_chunks", [:build_id_convert_to_bigint, :chunk_index], {:unique=>true, :name=>"i_ci_build_trace_chunks_build_id_convert_to_bigint_chunk_index", :algorithm=>:concurrently}),
- -> 0.0086s,
- -- execute("RESET statement_timeout"),
- -> 0.0007s,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys("ci_build_trace_chunks"),
- -> 0.0214s,
- -- execute("ALTER TABLE ci_build_trace_chunks\nADD CONSTRAINT fk_rails_1013b761f2_tmp\nFOREIGN KEY (build_id_convert_to_bigint)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0056s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- execute("ALTER TABLE ci_build_trace_chunks VALIDATE CONSTRAINT fk_rails_1013b761f2_tmp;"),
- -> 0.0081s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- execute("LOCK TABLE ci_build_trace_chunks, ci_builds IN ACCESS EXCLUSIVE MODE"),
- -> 0.0009s,
- -- quote_table_name("ci_build_trace_chunks"),
- -> 0.0001s,
- -- quote_column_name(:build_id),
- -> 0.0000s,
- -- quote_column_name("build_id_tmp"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_build_trace_chunks\" RENAME COLUMN \"build_id\" TO \"build_id_tmp\""),
- -> 0.0012s,
- -- quote_table_name("ci_build_trace_chunks"),
- -> 0.0001s,
- -- quote_column_name(:build_id_convert_to_bigint),
- -> 0.0000s,
- -- quote_column_name(:build_id),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_build_trace_chunks\" RENAME COLUMN \"build_id_convert_to_bigint\" TO \"build_id\""),
- -> 0.0011s,
- -- quote_table_name("ci_build_trace_chunks"),
- -> 0.0001s,
- -- quote_column_name("build_id_tmp"),
- -> 0.0000s,
- -- quote_column_name(:build_id_convert_to_bigint),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_build_trace_chunks\" RENAME COLUMN \"build_id_tmp\" TO \"build_id_convert_to_bigint\""),
- -> 0.0011s,
- -- quote_table_name("trigger_cf2f9e35f002"),
- -> 0.0001s,
- -- execute("ALTER FUNCTION \"trigger_cf2f9e35f002\" RESET ALL"),
- -> 0.0012s,
- -- change_column_default("ci_build_trace_chunks", :build_id, nil),
- -> 0.0075s,
- -- change_column_default("ci_build_trace_chunks", :build_id_convert_to_bigint, 0),
- -> 0.0066s,
- -- execute("DROP INDEX index_ci_build_trace_chunks_on_build_id_and_chunk_index"),
- -> 0.0017s,
- -- rename_index("ci_build_trace_chunks", "i_ci_build_trace_chunks_build_id_convert_to_bigint_chunk_index", "index_ci_build_trace_chunks_on_build_id_and_chunk_index"),
- -> 0.0014s,
- -- remove_foreign_key("ci_build_trace_chunks", {:name=>"fk_rails_1013b761f2"}),
- -> 0.0244s,
- -- quote_table_name("ci_build_trace_chunks"),
- -> 0.0000s,
- -- quote_column_name("fk_rails_1013b761f2_tmp"),
- -> 0.0000s,
- -- quote_column_name("fk_rails_1013b761f2"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_build_trace_chunks\"\nRENAME CONSTRAINT \"fk_rails_1013b761f2_tmp\" TO \"fk_rails_1013b761f2\"\n"),
- -> 0.0013s,
- == 20210714015537 FinalizeCiBuildTraceChunksBigintConversion: migrated (0.1301s) ,
- ,
- == 20210714043818 AddIndexForLabelAppliedToIssuableSla: migrating =============,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:issuable_slas, [:due_at, :id], {:name=>"index_issuable_slas_on_due_at_id_label_applied_issuable_closed", :where=>"label_applied = FALSE AND issuable_closed = FALSE", :algorithm=>:concurrently}),
- -> 0.0080s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- add_index(:issuable_slas, [:due_at, :id], {:name=>"index_issuable_slas_on_due_at_id_label_applied_issuable_closed", :where=>"label_applied = FALSE AND issuable_closed = FALSE", :algorithm=>:concurrently}),
- -> 0.0100s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210714043818 AddIndexForLabelAppliedToIssuableSla: migrated (0.0235s) ====,
- ,
- == 20210715074359 AddForeignKeyToDastProfileSchedulesOnDastProfile: migrating =,
- -- transaction_open?(),
- -> 0.0001s,
- -- foreign_keys(:dast_profile_schedules),
- -> 0.0217s,
- -- execute("ALTER TABLE dast_profile_schedules\nADD CONSTRAINT fk_61d52aa0e7\nFOREIGN KEY (dast_profile_id)\nREFERENCES dast_profiles (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0052s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- execute("ALTER TABLE dast_profile_schedules VALIDATE CONSTRAINT fk_61d52aa0e7;"),
- -> 0.0066s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210715074359 AddForeignKeyToDastProfileSchedulesOnDastProfile: migrated (0.0435s) ,
- ,
- == 20210715074933 AddForeignKeyToDastProfileSchedulesOnUser: migrating ========,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys(:dast_profile_schedules),
- -> 0.0212s,
- -- execute("ALTER TABLE dast_profile_schedules\nADD CONSTRAINT fk_aef03d62e5\nFOREIGN KEY (user_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n"),
- -> 0.0111s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0006s,
- -- execute("ALTER TABLE dast_profile_schedules VALIDATE CONSTRAINT fk_aef03d62e5;"),
- -> 0.0127s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210715074933 AddForeignKeyToDastProfileSchedulesOnUser: migrated (0.0541s) ,
- ,
- == 20210715075203 AddForeignKeyToDastProfileSchedulesOnProject: migrating =====,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys(:dast_profile_schedules),
- -> 0.0216s,
- -- execute("ALTER TABLE dast_profile_schedules\nADD CONSTRAINT fk_6cca0d8800\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0129s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0006s,
- -- execute("ALTER TABLE dast_profile_schedules VALIDATE CONSTRAINT fk_6cca0d8800;"),
- -> 0.0181s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210715075203 AddForeignKeyToDastProfileSchedulesOnProject: migrated (0.0616s) ,
- ,
- == 20210719145532 AddForeignKeysView: migrating ===============================,
- -- execute("CREATE OR REPLACE VIEW postgres_foreign_keys AS\nSELECT\n pg_constraint.oid AS oid,\n pg_constraint.conname AS name,\n constrained_namespace.nspname::text || '.'::text || constrained_table.relname::text AS constrained_table_identifier,\n referenced_namespace.nspname::text || '.'::text || referenced_table.relname::text AS referenced_table_identifier\nFROM pg_constraint\n INNER JOIN pg_class constrained_table ON constrained_table.oid = pg_constraint.conrelid\n INNER JOIN pg_class referenced_table ON referenced_table.oid = pg_constraint.confrelid\n INNER JOIN pg_namespace constrained_namespace ON constrained_table.relnamespace = constrained_namespace.oid\n INNER JOIN pg_namespace referenced_namespace ON referenced_table.relnamespace = referenced_namespace.oid\nWHERE contype = 'f';\n"),
- -> 0.0154s,
- == 20210719145532 AddForeignKeysView: migrated (0.0157s) ======================,
- ,
- == 20210719182944 AddRequestResponseToSupporingMessage: migrating =============,
- -- change_column_null(:vulnerability_finding_evidence_requests, :vulnerability_finding_evidence_id, true),
- -> 0.0033s,
- -- change_column_null(:vulnerability_finding_evidence_responses, :vulnerability_finding_evidence_id, true),
- -> 0.0022s,
- -- add_reference(:vulnerability_finding_evidence_requests, :vulnerability_finding_evidence_supporting_message, {:index=>{:name=>"finding_evidence_requests_on_supporting_evidence_id"}, :foreign_key=>{:on_delete=>:cascade}}),
- -> 0.0158s,
- -- add_reference(:vulnerability_finding_evidence_responses, :vulnerability_finding_evidence_supporting_message, {:index=>{:name=>"finding_evidence_responses_on_supporting_evidence_id"}, :foreign_key=>{:on_delete=>:cascade}}),
- -> 0.0131s,
- == 20210719182944 AddRequestResponseToSupporingMessage: migrated (0.0351s) ====,
- ,
- == 20210719192928 AddInviteEmailSuccessToMember: migrating ====================,
- == 20210719192928 AddInviteEmailSuccessToMember: migrated (0.0000s) ===========,
- ,
- == 20210720130006 CreateErrorTrackingClientKeys: migrating ====================,
- -- create_table(:error_tracking_client_keys, {}),
- -- quote_column_name(:public_key),
- -> 0.0001s,
- -> 0.0386s,
- -- quote_table_name("check_840b719790"),
- -> 0.0001s,
- -- quote_table_name(:error_tracking_client_keys),
- -> 0.0000s,
- -- execute("ALTER TABLE \"error_tracking_client_keys\"\nADD CONSTRAINT \"check_840b719790\" CHECK (char_length(\"public_key\") <= 255)\n"),
- -> 0.0024s,
- == 20210720130006 CreateErrorTrackingClientKeys: migrated (0.0476s) ===========,
- ,
- == 20210720140841 CreatePostgresAsyncIndexesTable: migrating ==================,
- -- create_table(:postgres_async_indexes, {}),
- -- quote_column_name(:name),
- -> 0.0001s,
- -- quote_column_name(:definition),
- -> 0.0001s,
- -- quote_column_name(:table_name),
- -> 0.0000s,
- -> 0.0229s,
- -- quote_table_name("check_b732c6cd1d"),
- -> 0.0001s,
- -- quote_table_name("check_083b21157b"),
- -> 0.0001s,
- -- quote_table_name("check_e64ff4359e"),
- -> 0.0001s,
- -- quote_table_name(:postgres_async_indexes),
- -> 0.0000s,
- -- execute("ALTER TABLE \"postgres_async_indexes\"\nADD CONSTRAINT \"check_b732c6cd1d\" CHECK (char_length(\"name\") <= 63),\nADD CONSTRAINT \"check_083b21157b\" CHECK (char_length(\"definition\") <= 2048),\nADD CONSTRAINT \"check_e64ff4359e\" CHECK (char_length(\"table_name\") <= 63)\n"),
- -> 0.0030s,
- == 20210720140841 CreatePostgresAsyncIndexesTable: migrated (0.0333s) =========,
- ,
- == 20210721125525 AddSignedFileToPackagesDebianProjectDistributions: migrating ,
- -- add_column(:packages_debian_project_distributions, :signed_file, :text),
- -> 0.0041s,
- -- add_column(:packages_debian_project_distributions, :signed_file_store, :integer, {:limit=>2, :default=>1, :null=>false}),
- -> 0.0035s,
- == 20210721125525 AddSignedFileToPackagesDebianProjectDistributions: migrated (0.0080s) ,
- ,
- == 20210721125545 AddSignedFileToPackagesDebianGroupDistributions: migrating ==,
- -- add_column(:packages_debian_group_distributions, :signed_file, :text),
- -> 0.0037s,
- -- add_column(:packages_debian_group_distributions, :signed_file_store, :integer, {:limit=>2, :default=>1, :null=>false}),
- -> 0.0032s,
- == 20210721125545 AddSignedFileToPackagesDebianGroupDistributions: migrated (0.0072s) ,
- ,
- == 20210721125620 AddTextLimitToPackagesDebianProjectDistributionsSignedFiles: migrating ,
- -- transaction_open?(),
- -> 0.0000s,
- -- current_schema(),
- -> 0.0010s,
- -- execute("ALTER TABLE packages_debian_project_distributions\nADD CONSTRAINT check_9e5e22b7ff\nCHECK ( char_length(signed_file) <= 255 )\nNOT VALID;\n"),
- -> 0.0024s,
- -- current_schema(),
- -> 0.0007s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- execute("ALTER TABLE packages_debian_project_distributions VALIDATE CONSTRAINT check_9e5e22b7ff;"),
- -> 0.0027s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210721125620 AddTextLimitToPackagesDebianProjectDistributionsSignedFiles: migrated (0.0241s) ,
- ,
- == 20210721125637 AddTextLimitToPackagesDebianGroupDistributionsSignedFiles: migrating ,
- -- transaction_open?(),
- -> 0.0000s,
- -- current_schema(),
- -> 0.0011s,
- -- execute("ALTER TABLE packages_debian_group_distributions\nADD CONSTRAINT check_0007e0bf61\nCHECK ( char_length(signed_file) <= 255 )\nNOT VALID;\n"),
- -> 0.0019s,
- -- current_schema(),
- -> 0.0007s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- execute("ALTER TABLE packages_debian_group_distributions VALIDATE CONSTRAINT check_0007e0bf61;"),
- -> 0.0027s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210721125637 AddTextLimitToPackagesDebianGroupDistributionsSignedFiles: migrated (0.0242s) ,
- ,
- == 20210721125804 RemoveSigningKeysFromPackagesDebianProjectDistributions: migrating ,
- -- remove_column(:packages_debian_project_distributions, :encrypted_signing_keys, :text),
- -> 0.0039s,
- -- remove_column(:packages_debian_project_distributions, :encrypted_signing_keys_iv, :text),
- -> 0.0020s,
- == 20210721125804 RemoveSigningKeysFromPackagesDebianProjectDistributions: migrated (0.0061s) ,
- ,
- == 20210721125820 RemoveSigningKeysFromPackagesDebianGroupDistributions: migrating ,
- -- remove_column(:packages_debian_group_distributions, :encrypted_signing_keys, :text),
- -> 0.0030s,
- -- remove_column(:packages_debian_group_distributions, :encrypted_signing_keys_iv, :text),
- -> 0.0019s,
- == 20210721125820 RemoveSigningKeysFromPackagesDebianGroupDistributions: migrated (0.0052s) ,
- ,
- == 20210721134706 AddTypeNewToIntegrations: migrating =========================,
- -- add_column(:integrations, :type_new, :text),
- -> 0.0041s,
- == 20210721134706 AddTypeNewToIntegrations: migrated (0.0042s) ================,
- ,
- == 20210721134707 AddTextLimitToIntegrationsTypeNew: migrating ================,
- -- transaction_open?(),
- -> 0.0000s,
- -- current_schema(),
- -> 0.0009s,
- -- execute("ALTER TABLE integrations\nADD CONSTRAINT check_a948a0aa7e\nCHECK ( char_length(type_new) <= 255 )\nNOT VALID;\n"),
- -> 0.0026s,
- -- current_schema(),
- -> 0.0010s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0009s,
- -- execute("ALTER TABLE integrations VALIDATE CONSTRAINT check_a948a0aa7e;"),
- -> 0.0030s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210721134707 AddTextLimitToIntegrationsTypeNew: migrated (0.0244s) =======,
- ,
- == 20210721135638 AddTriggersToIntegrationsTypeNew: migrating =================,
- -- execute("CREATE OR REPLACE FUNCTION integrations_set_type_new()\nRETURNS TRIGGER AS\n$$\nBEGIN\nWITH mapping(old_type, new_type) AS (VALUES\n ('AsanaService', 'Integrations::Asana'),\n ('AssemblaService', 'Integrations::Assembla'),\n ('BambooService', 'Integrations::Bamboo'),\n ('BugzillaService', 'Integrations::Bugzilla'),\n ('BuildkiteService', 'Integrations::Buildkite'),\n ('CampfireService', 'Integrations::Campfire'),\n ('ConfluenceService', 'Integrations::Confluence'),\n ('CustomIssueTrackerService', 'Integrations::CustomIssueTracker'),\n ('DatadogService', 'Integrations::Datadog'),\n ('DiscordService', 'Integrations::Discord'),\n ('DroneCiService', 'Integrations::DroneCi'),\n ('EmailsOnPushService', 'Integrations::EmailsOnPush'),\n ('EwmService', 'Integrations::Ewm'),\n ('ExternalWikiService', 'Integrations::ExternalWiki'),\n ('FlowdockService', 'Integrations::Flowdock'),\n ('HangoutsChatService', 'Integrations::HangoutsChat'),\n ('IrkerService', 'Integrations::Irker'),\n ('JenkinsService', 'Integrations::Jenkins'),\n ('JiraService', 'Integrations::Jira'),\n ('MattermostService', 'Integrations::Mattermost'),\n ('MattermostSlashCommandsService', 'Integrations::MattermostSlashCommands'),\n ('MicrosoftTeamsService', 'Integrations::MicrosoftTeams'),\n ('MockCiService', 'Integrations::MockCi'),\n ('MockMonitoringService', 'Integrations::MockMonitoring'),\n ('PackagistService', 'Integrations::Packagist'),\n ('PipelinesEmailService', 'Integrations::PipelinesEmail'),\n ('PivotaltrackerService', 'Integrations::Pivotaltracker'),\n ('PrometheusService', 'Integrations::Prometheus'),\n ('PushoverService', 'Integrations::Pushover'),\n ('RedmineService', 'Integrations::Redmine'),\n ('SlackService', 'Integrations::Slack'),\n ('SlackSlashCommandsService', 'Integrations::SlackSlashCommands'),\n ('TeamcityService', 'Integrations::Teamcity'),\n ('UnifyCircuitService', 'Integrations::UnifyCircuit'),\n ('YoutrackService', 'Integrations::Youtrack'),\n ('WebexTeamsService', 'Integrations::WebexTeams'),\n\n -- EE-only integrations\n ('GithubService', 'Integrations::Github'),\n ('GitlabSlackApplicationService', 'Integrations::GitlabSlackApplication')\n)\n\nUPDATE integrations SET type_new = mapping.new_type\nFROM mapping\nWHERE integrations.id = NEW.id\n AND mapping.old_type = NEW.type;\nRETURN NULL;\n\nEND\n$$ LANGUAGE PLPGSQL\n"),
- -> 0.0064s,
- -- execute("CREATE TRIGGER trigger_type_new_on_insert\nAFTER INSERT ON integrations\nFOR EACH ROW\nEXECUTE FUNCTION integrations_set_type_new();\n"),
- -> 0.0023s,
- == 20210721135638 AddTriggersToIntegrationsTypeNew: migrated (0.0091s) ========,
- ,
- == 20210721145029 AddStateToMembers: migrating ================================,
- == 20210721145029 AddStateToMembers: migrated (0.0000s) =======================,
- ,
- == 20210721174411 AddIsRemovedToEscalationRules: migrating ====================,
- -- add_column(:incident_management_escalation_rules, :is_removed, :boolean, {:null=>false, :default=>false}),
- -> 0.0055s,
- == 20210721174411 AddIsRemovedToEscalationRules: migrated (0.0057s) ===========,
- ,
- == 20210721174441 UpdateEscalationRuleFkForPendingAlertEscalations: migrating =,
- -- foreign_keys(:incident_management_pending_alert_escalations),
- -> 0.0199s,
- -- remove_foreign_key(:incident_management_pending_alert_escalations, :incident_management_escalation_rules, {:name=>"fk_rails_057c1e3d87"}),
- -> 0.0244s,
- -- foreign_keys(:incident_management_pending_alert_escalations),
- -> 0.0198s,
- -- add_foreign_key(:incident_management_pending_alert_escalations, :incident_management_escalation_rules, {:column=>:rule_id, :on_delete=>:cascade, :name=>"fk_rails_f3d17bc8af", :validate=>true}),
- -> 0.0044s,
- == 20210721174441 UpdateEscalationRuleFkForPendingAlertEscalations: migrated (0.2040s) ,
- ,
- == 20210721174453 RemoveScheduleAndStatusNullConstraintsFromPendingEscalationsAlert: migrating ,
- -- change_column_null(:incident_management_pending_alert_escalations, :status, true),
- -> 0.0022s,
- -- change_column_null(:incident_management_pending_alert_escalations, :schedule_id, true),
- -> 0.0015s,
- == 20210721174453 RemoveScheduleAndStatusNullConstraintsFromPendingEscalationsAlert: migrated (0.0111s) ,
- ,
- == 20210721174521 AddNonNullConstraintForEscalationRuleOnPendingAlertEscalations: migrating ,
- -- exec_query("INSERT INTO incident_management_escalation_rules (policy_id, oncall_schedule_id, status, elapsed_time_seconds, is_removed)\nSELECT\n policies.id,\n schedule_id,\n status,\n ABS(ROUND(\n EXTRACT(EPOCH FROM (escalations.process_at - escalations.created_at))/60*60\n))\n AS elapsed_time_seconds,\n TRUE\nFROM incident_management_pending_alert_escalations AS escalations\nINNER JOIN incident_management_oncall_schedules AS schedules ON schedules.id = schedule_id\nINNER JOIN incident_management_escalation_policies AS policies ON policies.project_id = schedules.project_id\nWHERE rule_id IS NULL\nGROUP BY policies.id, schedule_id, status, elapsed_time_seconds\nON CONFLICT DO NOTHING;\n"),
- -> 0.0114s,
- -- exec_query("UPDATE incident_management_pending_alert_escalations AS escalations\nSET rule_id = rules.id\nFROM incident_management_pending_alert_escalations AS through_escalations\nINNER JOIN incident_management_oncall_schedules AS schedules ON schedules.id = through_escalations.schedule_id\nINNER JOIN incident_management_escalation_policies AS policies ON policies.project_id = schedules.project_id\nINNER JOIN incident_management_escalation_rules AS rules ON rules.policy_id = policies.id\nWHERE escalations.rule_id IS NULL\nAND rules.status = escalations.status\nAND rules.oncall_schedule_id = escalations.schedule_id\nAND rules.elapsed_time_seconds = ABS(ROUND(\n EXTRACT(EPOCH FROM (escalations.process_at - escalations.created_at))/60*60\n))\n;\n"),
- -> 0.0079s,
- -- exec_query("DELETE FROM incident_management_pending_alert_escalations WHERE rule_id IS NULL;"),
- -> 0.0015s,
- -- change_column_null(:incident_management_pending_alert_escalations, :rule_id, false),
- -> 0.0016s,
- == 20210721174521 AddNonNullConstraintForEscalationRuleOnPendingAlertEscalations: migrated (0.0231s) ,
- ,
- == 20210721211602 AddVulnerabilityAmountColumnIntoApprovalProjectRules: migrating ,
- -- add_column(:approval_project_rules, :vulnerabilities_allowed, :integer, {:limit=>2}),
- -> 0.0038s,
- == 20210721211602 AddVulnerabilityAmountColumnIntoApprovalProjectRules: migrated (0.0040s) ,
- ,
- == 20210722010101 RescheduleDeleteOrphanedDeployments: migrating ==============,
- -- Scheduled 0 DeleteOrphanedDeployments jobs with a maximum of 10000 records per batch and an interval of 120 seconds.,
- ,
- The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-08-24 02:10:11 UTC.",
- == 20210722010101 RescheduleDeleteOrphanedDeployments: migrated (0.1925s) =====,
- ,
- == 20210722042939 UpdateIssuableSlasWhereIssueClosed: migrating ===============,
- == 20210722042939 UpdateIssuableSlasWhereIssueClosed: migrated (0.0782s) ======,
- ,
- == 20210722055217 AddUpdatedAtIndexOnMergeRequests: migrating =================,
- -- transaction_open?(),
- -> 0.0001s,
- -- index_exists?(:merge_requests, [:target_project_id, :updated_at, :id], {:name=>"index_merge_requests_on_target_project_id_and_updated_at_and_id", :algorithm=>:concurrently}),
- -> 0.0951s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0016s,
- -- add_index(:merge_requests, [:target_project_id, :updated_at, :id], {:name=>"index_merge_requests_on_target_project_id_and_updated_at_and_id", :algorithm=>:concurrently}),
- -> 0.0172s,
- -- execute("RESET statement_timeout"),
- -> 0.0014s,
- == 20210722055217 AddUpdatedAtIndexOnMergeRequests: migrated (0.1484s) ========,
- ,
- == 20210722074220 RemoveNullConstraintOnScheduleFromEscalationRules: migrating ,
- -- change_column_null(:incident_management_escalation_rules, :oncall_schedule_id, true),
- -> 0.0042s,
- == 20210722074220 RemoveNullConstraintOnScheduleFromEscalationRules: migrated (0.0044s) ,
- ,
- == 20210722074242 AddUserToEscalationRules: migrating =========================,
- -- add_column(:incident_management_escalation_rules, :user_id, :bigint, {:null=>true}),
- -> 0.0026s,
- == 20210722074242 AddUserToEscalationRules: migrated (0.0125s) ================,
- ,
- == 20210722074256 AddUserIndexToEscalationRules: migrating ====================,
- -- transaction_open?(),
- -> 0.0001s,
- -- indexes(:incident_management_escalation_rules),
- -> 0.0093s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- remove_index(:incident_management_escalation_rules, {:algorithm=>:concurrently, :name=>"index_on_policy_schedule_status_elapsed_time_escalation_rules"}),
- -> 0.0054s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:incident_management_escalation_rules, :user_id, {:name=>"index_escalation_rules_on_user", :algorithm=>:concurrently}),
- -> 0.0058s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0011s,
- -- add_index(:incident_management_escalation_rules, :user_id, {:name=>"index_escalation_rules_on_user", :algorithm=>:concurrently}),
- -> 0.0087s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:incident_management_escalation_rules, [:policy_id, :oncall_schedule_id, :status, :elapsed_time_seconds, :user_id], {:unique=>true, :name=>"index_escalation_rules_on_all_attributes", :algorithm=>:concurrently}),
- -> 0.0075s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0011s,
- -- add_index(:incident_management_escalation_rules, [:policy_id, :oncall_schedule_id, :status, :elapsed_time_seconds, :user_id], {:unique=>true, :name=>"index_escalation_rules_on_all_attributes", :algorithm=>:concurrently}),
- -> 0.0083s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- == 20210722074256 AddUserIndexToEscalationRules: migrated (0.0632s) ===========,
- ,
- == 20210722074309 AddUserFkToEscalationRules: migrating =======================,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys(:incident_management_escalation_rules),
- -> 0.0187s,
- -- execute("ALTER TABLE incident_management_escalation_rules\nADD CONSTRAINT fk_0314ee86eb\nFOREIGN KEY (user_id)\nREFERENCES users (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0099s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0010s,
- -- execute("ALTER TABLE incident_management_escalation_rules VALIDATE CONSTRAINT fk_0314ee86eb;"),
- -> 0.0064s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- == 20210722074309 AddUserFkToEscalationRules: migrated (0.0471s) ==============,
- ,
- == 20210722074339 AddXorCheckConstraintForEscalationRules: migrating ==========,
- -- transaction_open?(),
- -> 0.0000s,
- -- current_schema(),
- -> 0.0011s,
- -- execute("ALTER TABLE incident_management_escalation_rules\nADD CONSTRAINT escalation_rules_one_of_oncall_schedule_or_user\nCHECK ( num_nonnulls(oncall_schedule_id, user_id) = 1 )\nNOT VALID;\n"),
- -> 0.0027s,
- -- current_schema(),
- -> 0.0006s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0012s,
- -- execute("ALTER TABLE incident_management_escalation_rules VALIDATE CONSTRAINT escalation_rules_one_of_oncall_schedule_or_user;"),
- -> 0.0030s,
- -- execute("RESET statement_timeout"),
- -> 0.0010s,
- == 20210722074339 AddXorCheckConstraintForEscalationRules: migrated (0.0252s) =,
- ,
- == 20210722132844 DevopsAdoptionDropRedundantIndexes: migrating ===============,
- -- transaction_open?(),
- -> 0.0000s,
- -- indexes(:ci_job_artifacts),
- -> 0.0238s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0013s,
- -- remove_index(:ci_job_artifacts, {:algorithm=>:concurrently, :name=>"index_ci_job_artifacts_sast_for_devops_adoption"}),
- -> 0.0048s,
- -- execute("RESET statement_timeout"),
- -> 0.0010s,
- -- transaction_open?(),
- -> 0.0000s,
- -- indexes(:ci_job_artifacts),
- -> 0.0215s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0011s,
- -- remove_index(:ci_job_artifacts, {:algorithm=>:concurrently, :name=>"index_ci_job_artifacts_dast_for_devops_adoption"}),
- -> 0.0045s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210722132844 DevopsAdoptionDropRedundantIndexes: migrated (0.0683s) ======,
- ,
- == 20210722150102 OperationsFeatureFlagsCorrectFlexibleRolloutValues: migrating ,
- -- quote_string("userId"),
- -> 0.0001s,
- -- quote_string("USERID"),
- -> 0.0000s,
- -- execute(" UPDATE operations_strategies\n SET parameters = parameters || jsonb_build_object('stickiness', 'userId')\n WHERE name = 'flexibleRollout' AND parameters->>'stickiness' = 'USERID'\n"),
- -> 0.0047s,
- -- quote_string("random"),
- -> 0.0001s,
- -- quote_string("RANDOM"),
- -> 0.0000s,
- -- execute(" UPDATE operations_strategies\n SET parameters = parameters || jsonb_build_object('stickiness', 'random')\n WHERE name = 'flexibleRollout' AND parameters->>'stickiness' = 'RANDOM'\n"),
- -> 0.0012s,
- -- quote_string("sessionId"),
- -> 0.0000s,
- -- quote_string("SESSIONID"),
- -> 0.0000s,
- -- execute(" UPDATE operations_strategies\n SET parameters = parameters || jsonb_build_object('stickiness', 'sessionId')\n WHERE name = 'flexibleRollout' AND parameters->>'stickiness' = 'SESSIONID'\n"),
- -> 0.0011s,
- -- quote_string("default"),
- -> 0.0000s,
- -- quote_string("DEFAULT"),
- -> 0.0000s,
- -- execute(" UPDATE operations_strategies\n SET parameters = parameters || jsonb_build_object('stickiness', 'default')\n WHERE name = 'flexibleRollout' AND parameters->>'stickiness' = 'DEFAULT'\n"),
- -> 0.0010s,
- == 20210722150102 OperationsFeatureFlagsCorrectFlexibleRolloutValues: migrated (0.0095s) ,
- ,
- == 20210722151951 AddColumnsToSecurityScans: migrating ========================,
- -- add_column(:security_scans, :project_id, :bigint),
- -> 0.0027s,
- -- add_column(:security_scans, :pipeline_id, :bigint),
- -> 0.0018s,
- == 20210722151951 AddColumnsToSecurityScans: migrated (0.0116s) ===============,
- ,
- == 20210722155635 FinalizeConvertGeoJobArtifactDeletedEventsBigint: migrating =,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("geo_job_artifact_deleted_events", "job_artifact_id_convert_to_bigint", {:name=>"index_geo_job_artifact_deleted_events_on_job_artifact_id_bigint", :algorithm=>:concurrently})unknown OID 28: failed to recognize type of 'relfrozenxid'. It will be treated as String.,
- unknown OID 1034: failed to recognize type of 'relacl'. It will be treated as String.,
- unknown OID 194: failed to recognize type of 'relpartbound'. It will be treated as String.,
- ,
- -> 0.0074s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- add_index("geo_job_artifact_deleted_events", "job_artifact_id_convert_to_bigint", {:name=>"index_geo_job_artifact_deleted_events_on_job_artifact_id_bigint", :algorithm=>:concurrently}),
- -> 0.0094s,
- -- execute("RESET statement_timeout"),
- -> 0.0007s,
- -- execute("LOCK TABLE geo_job_artifact_deleted_events IN ACCESS EXCLUSIVE MODE"),
- -> 0.0010s,
- -- quote_column_name("job_artifact_id_tmp"),
- -> 0.0001s,
- -- quote_column_name("job_artifact_id"),
- -> 0.0000s,
- -- quote_column_name("job_artifact_id_convert_to_bigint"),
- -> 0.0000s,
- -- execute("ALTER TABLE geo_job_artifact_deleted_events RENAME COLUMN \"job_artifact_id\" TO \"job_artifact_id_tmp\""),
- -> 0.0014s,
- -- execute("ALTER TABLE geo_job_artifact_deleted_events RENAME COLUMN \"job_artifact_id_convert_to_bigint\" TO \"job_artifact_id\""),
- -> 0.0012s,
- -- execute("ALTER TABLE geo_job_artifact_deleted_events RENAME COLUMN \"job_artifact_id_tmp\" TO \"job_artifact_id_convert_to_bigint\""),
- -> 0.0013s,
- -- change_column_default("geo_job_artifact_deleted_events", "job_artifact_id", nil),
- -> 0.0067s,
- -- change_column_default("geo_job_artifact_deleted_events", "job_artifact_id_convert_to_bigint", 0),
- -> 0.0059s,
- -- quote_table_name("trigger_f1ca8ec18d78"),
- -> 0.0001s,
- -- execute("ALTER FUNCTION \"trigger_f1ca8ec18d78\" RESET ALL"),
- -> 0.0013s,
- -- execute("DROP INDEX index_geo_job_artifact_deleted_events_on_job_artifact_id"),
- -> 0.0020s,
- -- rename_index("geo_job_artifact_deleted_events", "index_geo_job_artifact_deleted_events_on_job_artifact_id_bigint", "index_geo_job_artifact_deleted_events_on_job_artifact_id"),
- -> 0.0012s,
- == 20210722155635 FinalizeConvertGeoJobArtifactDeletedEventsBigint: migrated (0.0611s) ,
- ,
- == 20210722210041 AddOverriddenUuidToSecurityFindings: migrating ==============,
- -- add_column(:security_findings, :overridden_uuid, :uuid, {:null=>true}),
- -> 0.0027s,
- == 20210722210041 AddOverriddenUuidToSecurityFindings: migrated (0.0087s) =====,
- ,
- == 20210723173132 CreateIndexOnEnvironmentsAutoDeleteAt: migrating ============,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:environments, [:auto_delete_at], {:where=>"auto_delete_at IS NOT NULL AND state = 'stopped'", :name=>"index_environments_on_state_and_auto_delete_at", :algorithm=>:concurrently}),
- -> 0.0155s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- add_index(:environments, [:auto_delete_at], {:where=>"auto_delete_at IS NOT NULL AND state = 'stopped'", :name=>"index_environments_on_state_and_auto_delete_at", :algorithm=>:concurrently}),
- -> 0.0097s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210723173132 CreateIndexOnEnvironmentsAutoDeleteAt: migrated (0.0307s) ===,
- ,
- == 20210726134950 AddIntegratedToErrorTrackingSetting: migrating ==============,
- -- add_column(:project_error_tracking_settings, :integrated, :boolean, {:null=>false, :default=>false}),
- -> 0.0048s,
- == 20210726134950 AddIntegratedToErrorTrackingSetting: migrated (0.0050s) =====,
- ,
- == 20210726202748 AddVulnerabilitySeveritiesIntoApprovalProjectRules: migrating ,
- -- add_column(:approval_project_rules, :severity_levels, :text, {:array=>true, :null=>false, :default=>[]}),
- -> 0.0050s,
- == 20210726202748 AddVulnerabilitySeveritiesIntoApprovalProjectRules: migrated (0.0052s) ,
- ,
- == 20210727113447 BackfillIntegrationsTypeNew: migrating ======================,
- == 20210727113447 BackfillIntegrationsTypeNew: migrated (0.1496s) =============,
- ,
- == 20210727175201 RemoveUnusedColumnsFromElasticReindexingTasks: migrating ====,
- -- remove_column(:elastic_reindexing_tasks, :documents_count, :integer),
- -> 0.0044s,
- -- remove_column(:elastic_reindexing_tasks, :index_name_from, :text),
- -> 0.0040s,
- -- remove_column(:elastic_reindexing_tasks, :index_name_to, :text),
- -> 0.0034s,
- -- remove_column(:elastic_reindexing_tasks, :elastic_task, :text),
- -> 0.0033s,
- -- remove_column(:elastic_reindexing_tasks, :documents_count_target, :integer),
- -> 0.0029s,
- == 20210727175201 RemoveUnusedColumnsFromElasticReindexingTasks: migrated (0.0187s) ,
- ,
- == 20210728110654 AddStatusToErrorTrackingError: migrating ====================,
- -- add_column(:error_tracking_errors, :status, :integer, {:null=>false, :default=>0, :limit=>2}),
- -> 0.0055s,
- == 20210728110654 AddStatusToErrorTrackingError: migrated (0.0057s) ===========,
- ,
- == 20210728174349 AddFkToSecurityScansColumns: migrating ======================,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:security_scans, :project_id, {:algorithm=>:concurrently}),
- -> 0.0123s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- add_index(:security_scans, :project_id, {:algorithm=>:concurrently}),
- -> 0.0296s,
- -- execute("RESET statement_timeout"),
- -> 0.0013s,
- -- transaction_open?(),
- -> 0.0001s,
- -- foreign_keys(:security_scans),
- -> 0.0228s,
- -- execute("ALTER TABLE security_scans\nADD CONSTRAINT fk_dbc89265b9\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0120s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0006s,
- -- execute("ALTER TABLE security_scans VALIDATE CONSTRAINT fk_dbc89265b9;"),
- -> 0.0076s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:security_scans, :pipeline_id, {:algorithm=>:concurrently}),
- -> 0.0106s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- add_index(:security_scans, :pipeline_id, {:algorithm=>:concurrently}),
- -> 0.0082s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210728174349 AddFkToSecurityScansColumns: migrated (0.1260s) =============,
- ,
- == 20210729061526 AddPronunciationToUserDetails: migrating ====================,
- -- add_column(:user_details, :pronunciation, :text, {:null=>true}),
- -> 0.0028s,
- == 20210729061526 AddPronunciationToUserDetails: migrated (0.0086s) ===========,
- ,
- == 20210729061556 AddTextLimitToUserDetailsPronunciation: migrating ===========,
- -- transaction_open?(),
- -> 0.0000s,
- -- current_schema(),
- -> 0.0009s,
- -- execute("ALTER TABLE user_details\nADD CONSTRAINT check_f932ed37db\nCHECK ( char_length(pronunciation) <= 255 )\nNOT VALID;\n"),
- -> 0.0025s,
- -- current_schema(),
- -> 0.0007s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- execute("ALTER TABLE user_details VALIDATE CONSTRAINT check_f932ed37db;"),
- -> 0.0031s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210729061556 AddTextLimitToUserDetailsPronunciation: migrated (0.0231s) ==,
- ,
- == 20210729123101 ConfirmSecurityBot: migrating ===============================,
- == 20210729123101 ConfirmSecurityBot: migrated (0.0847s) ======================,
- ,
- == 20210729161242 RemoveForeignKeysFromCiTestCaseFailures: migrating ==========,
- -- foreign_keys(:ci_test_case_failures),
- -> 0.0184s,
- -- remove_foreign_key(:ci_test_case_failures, {:column=>:build_id}),
- -> 0.0221s,
- -- foreign_keys(:ci_test_case_failures),
- -> 0.0205s,
- -- remove_foreign_key(:ci_test_case_failures, {:column=>:test_case_id}),
- -> 0.0206s,
- == 20210729161242 RemoveForeignKeysFromCiTestCaseFailures: migrated (0.0940s) =,
- ,
- == 20210729163312 ReScheduleLatestPipelineIdPopulationWithAllSecurityRelatedArtifactTypes: migrating ,
- == 20210729163312 ReScheduleLatestPipelineIdPopulationWithAllSecurityRelatedArtifactTypes: migrated (0.0003s) ,
- ,
- == 20210729192148 RemoveForeignKeysFromCiTestCases: migrating =================,
- -- foreign_keys(:ci_test_cases),
- -> 0.0206s,
- -- remove_foreign_key(:ci_test_cases, {:column=>:project_id}),
- -> 0.0228s,
- == 20210729192148 RemoveForeignKeysFromCiTestCases: migrated (0.0500s) ========,
- ,
- == 20210729192959 DropCiTestCaseFailuresTable: migrating ======================,
- -- drop_table(:ci_test_case_failures),
- -> 0.0092s,
- == 20210729192959 DropCiTestCaseFailuresTable: migrated (0.0094s) =============,
- ,
- == 20210729193056 DropCiTestCasesTable: migrating =============================,
- -- drop_table(:ci_test_cases),
- -> 0.0083s,
- == 20210729193056 DropCiTestCasesTable: migrated (0.0084s) ====================,
- ,
- == 20210729202143 CreateIncidentManagementIssuableEscalationStatuses: migrating ,
- -- create_table(:incident_management_issuable_escalation_statuses),
- -> 0.0443s,
- == 20210729202143 CreateIncidentManagementIssuableEscalationStatuses: migrated (0.0445s) ,
- ,
- == 20210730101609 CreateAnalyticsCycleAnalyticsStageEventHashes: migrating ====,
- -- create_table(:analytics_cycle_analytics_stage_event_hashes),
- -> 0.0242s,
- == 20210730101609 CreateAnalyticsCycleAnalyticsStageEventHashes: migrated (0.0244s) ,
- ,
- == 20210730102952 AddStageHashFkToProjectStages: migrating ====================,
- -- column_exists?(:analytics_cycle_analytics_project_stages, :stage_event_hash_id),
- -> 0.0086s,
- -- add_column(:analytics_cycle_analytics_project_stages, :stage_event_hash_id, :bigint),
- -> 0.0038s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:analytics_cycle_analytics_project_stages, :stage_event_hash_id, {:name=>"index_project_stages_on_stage_event_hash_id", :algorithm=>:concurrently}),
- -> 0.0146s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- add_index(:analytics_cycle_analytics_project_stages, :stage_event_hash_id, {:name=>"index_project_stages_on_stage_event_hash_id", :algorithm=>:concurrently}),
- -> 0.0086s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys(:analytics_cycle_analytics_project_stages),
- -> 0.0226s,
- -- execute("ALTER TABLE analytics_cycle_analytics_project_stages\nADD CONSTRAINT fk_c3339bdfc9\nFOREIGN KEY (stage_event_hash_id)\nREFERENCES analytics_cycle_analytics_stage_event_hashes (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0046s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- execute("ALTER TABLE analytics_cycle_analytics_project_stages VALIDATE CONSTRAINT fk_c3339bdfc9;"),
- -> 0.0059s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- == 20210730102952 AddStageHashFkToProjectStages: migrated (0.0844s) ===========,
- ,
- == 20210730103808 AddStageHashFkToGroupStages: migrating ======================,
- -- column_exists?(:analytics_cycle_analytics_group_stages, :stage_event_hash_id),
- -> 0.0072s,
- -- add_column(:analytics_cycle_analytics_group_stages, :stage_event_hash_id, :bigint),
- -> 0.0036s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:analytics_cycle_analytics_group_stages, :stage_event_hash_id, {:name=>"index_group_stages_on_stage_event_hash_id", :algorithm=>:concurrently}),
- -> 0.0156s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0009s,
- -- add_index(:analytics_cycle_analytics_group_stages, :stage_event_hash_id, {:name=>"index_group_stages_on_stage_event_hash_id", :algorithm=>:concurrently}),
- -> 0.0096s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys(:analytics_cycle_analytics_group_stages),
- -> 0.0185s,
- -- execute("ALTER TABLE analytics_cycle_analytics_group_stages\nADD CONSTRAINT fk_3078345d6d\nFOREIGN KEY (stage_event_hash_id)\nREFERENCES analytics_cycle_analytics_stage_event_hashes (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0029s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- execute("ALTER TABLE analytics_cycle_analytics_group_stages VALIDATE CONSTRAINT fk_3078345d6d;"),
- -> 0.0057s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- == 20210730103808 AddStageHashFkToGroupStages: migrated (0.0807s) =============,
- ,
- == 20210730170823 ScheduleSecuritySettingCreation: migrating ==================,
- == 20210730170823 ScheduleSecuritySettingCreation: migrated (0.0002s) =========,
- ,
- == 20210802043253 FinalizePushEventPayloadsBigintConversion3: migrating =======,
- -- columns("push_event_payloads"),
- -> 0.0060s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("push_event_payloads", :event_id_convert_to_bigint, {:unique=>true, :name=>"index_push_event_payloads_on_event_id_convert_to_bigint", :algorithm=>:concurrently}),
- -> 0.0037s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0009s,
- -- add_index("push_event_payloads", :event_id_convert_to_bigint, {:unique=>true, :name=>"index_push_event_payloads_on_event_id_convert_to_bigint", :algorithm=>:concurrently}),
- -> 0.0094s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys("push_event_payloads"),
- -> 0.0209s,
- -- execute("LOCK TABLE events, push_event_payloads IN SHARE ROW EXCLUSIVE MODE"),
- -> 0.0013s,
- -- execute("ALTER TABLE push_event_payloads\nADD CONSTRAINT fk_a5e47ac4c5\nFOREIGN KEY (event_id_convert_to_bigint)\nREFERENCES events (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0070s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0010s,
- -- execute("ALTER TABLE push_event_payloads VALIDATE CONSTRAINT fk_a5e47ac4c5;"),
- -> 0.0079s,
- -- execute("RESET statement_timeout"),
- -> 0.0010s,
- -- execute("LOCK TABLE events, push_event_payloads IN ACCESS EXCLUSIVE MODE"),
- -> 0.0011s,
- -- quote_table_name("push_event_payloads"),
- -> 0.0001s,
- -- quote_column_name(:event_id),
- -> 0.0001s,
- -- quote_column_name("event_id_tmp"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id\" TO \"event_id_tmp\""),
- -> 0.0017s,
- -- quote_table_name("push_event_payloads"),
- -> 0.0001s,
- -- quote_column_name(:event_id_convert_to_bigint),
- -> 0.0001s,
- -- quote_column_name(:event_id),
- -> 0.0000s,
- -- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id_convert_to_bigint\" TO \"event_id\""),
- -> 0.0015s,
- -- quote_table_name("push_event_payloads"),
- -> 0.0001s,
- -- quote_column_name("event_id_tmp"),
- -> 0.0000s,
- -- quote_column_name(:event_id_convert_to_bigint),
- -> 0.0000s,
- -- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id_tmp\" TO \"event_id_convert_to_bigint\""),
- -> 0.0015s,
- -- quote_table_name("trigger_07c94931164e"),
- -> 0.0001s,
- -- execute("ALTER FUNCTION \"trigger_07c94931164e\" RESET ALL"),
- -> 0.0015s,
- -- change_column_default("push_event_payloads", :event_id, nil),
- -> 0.0090s,
- -- change_column_default("push_event_payloads", :event_id_convert_to_bigint, 0),
- -> 0.0073s,
- -- execute("ALTER TABLE push_event_payloads DROP CONSTRAINT push_event_payloads_pkey"),
- -> 0.0029s,
- -- rename_index("push_event_payloads", "index_push_event_payloads_on_event_id_convert_to_bigint", "push_event_payloads_pkey"),
- -> 0.0018s,
- -- execute("ALTER TABLE push_event_payloads ADD CONSTRAINT push_event_payloads_pkey PRIMARY KEY USING INDEX push_event_payloads_pkey"),
- -> 0.0025s,
- -- remove_foreign_key("push_event_payloads", {:name=>"fk_36c74129da"}),
- -> 0.0258s,
- -- quote_table_name("push_event_payloads"),
- -> 0.0001s,
- -- quote_column_name("fk_a5e47ac4c5"),
- -> 0.0001s,
- -- quote_column_name("fk_36c74129da"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"push_event_payloads\"\nRENAME CONSTRAINT \"fk_a5e47ac4c5\" TO \"fk_36c74129da\"\n"),
- -> 0.0015s,
- == 20210802043253 FinalizePushEventPayloadsBigintConversion3: migrated (0.1513s) ,
- ,
- == 20210802112233 AddIndexIssuesOnProjectIdAndStateIdAndCreatedAtAndId: migrating ,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:issues, [:project_id, :state_id, :created_at, :id], {:name=>"index_issues_on_project_id_and_state_id_and_created_at_and_id", :algorithm=>:concurrently}),
- -> 0.0595s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0010s,
- -- add_index(:issues, [:project_id, :state_id, :created_at, :id], {:name=>"index_issues_on_project_id_and_state_id_and_created_at_and_id", :algorithm=>:concurrently}),
- -> 0.0129s,
- -- execute("RESET statement_timeout"),
- -> 0.0011s,
- == 20210802112233 AddIndexIssuesOnProjectIdAndStateIdAndCreatedAtAndId: migrated (0.0795s) ,
- ,
- == 20210802131812 FinalizeConvertDeploymentsBigint: migrating =================,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("deployments", ["deployable_type", "deployable_id_convert_to_bigint"], {:name=>"index_deployments_on_deployable_type_and_deployable_id_bigint", :algorithm=>:concurrently}),
- -> 0.0480s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0010s,
- -- add_index("deployments", ["deployable_type", "deployable_id_convert_to_bigint"], {:name=>"index_deployments_on_deployable_type_and_deployable_id_bigint", :algorithm=>:concurrently}),
- -> 0.0114s,
- -- execute("RESET statement_timeout"),
- -> 0.0019s,
- -- quote_column_name("deployable_id"),
- -> 0.0001s,
- -- quote_column_name("deployable_id_tmp"),
- -> 0.0000s,
- -- execute("ALTER TABLE deployments RENAME COLUMN \"deployable_id\" TO \"deployable_id_tmp\""),
- -> 0.0022s,
- -- quote_column_name("deployable_id_convert_to_bigint"),
- -> 0.0001s,
- -- quote_column_name("deployable_id"),
- -> 0.0001s,
- -- execute("ALTER TABLE deployments RENAME COLUMN \"deployable_id_convert_to_bigint\" TO \"deployable_id\""),
- -> 0.0020s,
- -- quote_column_name("deployable_id_tmp"),
- -> 0.0001s,
- -- quote_column_name("deployable_id_convert_to_bigint"),
- -> 0.0000s,
- -- execute("ALTER TABLE deployments RENAME COLUMN \"deployable_id_tmp\" TO \"deployable_id_convert_to_bigint\""),
- -> 0.0020s,
- -- quote_table_name("trigger_77f5e1d20482"),
- -> 0.0002s,
- -- execute("ALTER FUNCTION \"trigger_77f5e1d20482\" RESET ALL"),
- -> 0.0021s,
- -- execute("DROP INDEX index_deployments_on_deployable_type_and_deployable_id"),
- -> 0.0035s,
- -- rename_index("deployments", "index_deployments_on_deployable_type_and_deployable_id_bigint", "index_deployments_on_deployable_type_and_deployable_id"),
- -> 0.0051s,
- == 20210802131812 FinalizeConvertDeploymentsBigint: migrated (0.1060s) ========,
- ,
- == 20210803110920 AddUniqueIndexToVulnerabilityFlagsTable: migrating ==========,
- -- transaction_open?(),
- -> 0.0001s,
- -- index_exists?(:vulnerability_flags, [:vulnerability_occurrence_id, :flag_type, :origin], {:name=>"index_vulnerability_flags_on_unique_columns", :unique=>true, :algorithm=>:concurrently}),
- -> 0.0102s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0015s,
- -- add_index(:vulnerability_flags, [:vulnerability_occurrence_id, :flag_type, :origin], {:name=>"index_vulnerability_flags_on_unique_columns", :unique=>true, :algorithm=>:concurrently}),
- -> 0.0122s,
- -- execute("RESET statement_timeout"),
- -> 0.0013s,
- == 20210803110920 AddUniqueIndexToVulnerabilityFlagsTable: migrated (0.0311s) =,
- ,
- == 20210804150320 CreateBaseWorkItemTypes: migrating ==========================,
- == 20210804150320 CreateBaseWorkItemTypes: migrated (0.1840s) =================,
- ,
- == 20210804150624 RemoveClusterImageScanningFromApprovalProjectRules: migrating ,
- -- execute("update approval_project_rules set scanners = array_remove(scanners, 'cluster_image_scanning') where scanners @> '{cluster_image_scanning}'"),
- -> 0.0101s,
- == 20210804150624 RemoveClusterImageScanningFromApprovalProjectRules: migrated (0.0104s) ,
- ,
- == 20210804151444 PrepareIndexesForCiJobArtifactBigintConversion: migrating ===,
- == 20210804151444 PrepareIndexesForCiJobArtifactBigintConversion: migrated (0.0201s) ,
- ,
- == 20210804153307 PrepareIndexesForTaggingBigintConversion: migrating =========,
- == 20210804153307 PrepareIndexesForTaggingBigintConversion: migrated (0.0162s) ,
- ,
- == 20210804154407 PrepareIndexesForCiStageBigintConversion: migrating =========,
- == 20210804154407 PrepareIndexesForCiStageBigintConversion: migrated (0.0093s) ,
- ,
- == 20210804200114 CreateCustomerRelationsOrganizations: migrating =============,
- -- create_table(:customer_relations_organizations, {}),
- -- quote_column_name(:name),
- -> 0.0001s,
- -- quote_column_name(:description),
- -> 0.0001s,
- -> 0.0584s,
- -- quote_table_name("check_2ba9ef1c4c"),
- -> 0.0002s,
- -- quote_table_name("check_e476b6058e"),
- -> 0.0001s,
- -- quote_table_name(:customer_relations_organizations),
- -> 0.0000s,
- -- execute("ALTER TABLE \"customer_relations_organizations\"\nADD CONSTRAINT \"check_2ba9ef1c4c\" CHECK (char_length(\"name\") <= 255),\nADD CONSTRAINT \"check_e476b6058e\" CHECK (char_length(\"description\") <= 1024)\n"),
- -> 0.0039s,
- == 20210804200114 CreateCustomerRelationsOrganizations: migrated (0.0744s) ====,
- ,
- == 20210804202057 AddTmpIndexApprovalProjectRulesScanners: migrating ==========,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:approval_project_rules, :scanners, {:name=>"tmp_index_approval_project_rules_scanners", :using=>:gin, :where=>"scanners @> '{cluster_image_scanning}'", :algorithm=>:concurrently}),
- -> 0.0154s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- add_index(:approval_project_rules, :scanners, {:name=>"tmp_index_approval_project_rules_scanners", :using=>:gin, :where=>"scanners @> '{cluster_image_scanning}'", :algorithm=>:concurrently}),
- -> 0.0062s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210804202057 AddTmpIndexApprovalProjectRulesScanners: migrated (0.0274s) =,
- ,
- == 20210805085706 AddRuleIndexToSecurityOrchestrationPolicyRuleSchedules: migrating ,
- -- add_column(:security_orchestration_policy_rule_schedules, :rule_index, :integer, {:null=>false, :default=>0}),
- -> 0.0058s,
- == 20210805085706 AddRuleIndexToSecurityOrchestrationPolicyRuleSchedules: migrated (0.0060s) ,
- ,
- == 20210805131510 FinalizeCiBuildsRunnerSessionBigintConversion: migrating ====,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("ci_builds_runner_session", :build_id_convert_to_bigint, {:unique=>true, :name=>"index_ci_builds_runner_session_on_build_id_convert_to_bigint", :algorithm=>:concurrently}),
- -> 0.0067s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0010s,
- -- add_index("ci_builds_runner_session", :build_id_convert_to_bigint, {:unique=>true, :name=>"index_ci_builds_runner_session_on_build_id_convert_to_bigint", :algorithm=>:concurrently}),
- -> 0.0086s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys("ci_builds_runner_session"),
- -> 0.0195s,
- -- execute("LOCK TABLE ci_builds, ci_builds_runner_session IN SHARE ROW EXCLUSIVE MODE"),
- -> 0.0010s,
- -- execute("ALTER TABLE ci_builds_runner_session\nADD CONSTRAINT fk_rails_70707857d3_tmp\nFOREIGN KEY (build_id_convert_to_bigint)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0075s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0010s,
- -- execute("ALTER TABLE ci_builds_runner_session VALIDATE CONSTRAINT fk_rails_70707857d3_tmp;"),
- -> 0.0080s,
- -- execute("RESET statement_timeout"),
- -> 0.0011s,
- -- execute("LOCK TABLE ci_builds, ci_builds_runner_session IN ACCESS EXCLUSIVE MODE"),
- -> 0.0011s,
- -- quote_table_name("ci_builds_runner_session"),
- -> 0.0001s,
- -- quote_column_name(:build_id),
- -> 0.0000s,
- -- quote_column_name("build_id_tmp"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_builds_runner_session\" RENAME COLUMN \"build_id\" TO \"build_id_tmp\""),
- -> 0.0015s,
- -- quote_table_name("ci_builds_runner_session"),
- -> 0.0001s,
- -- quote_column_name(:build_id_convert_to_bigint),
- -> 0.0000s,
- -- quote_column_name(:build_id),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_builds_runner_session\" RENAME COLUMN \"build_id_convert_to_bigint\" TO \"build_id\""),
- -> 0.0012s,
- -- quote_table_name("ci_builds_runner_session"),
- -> 0.0001s,
- -- quote_column_name("build_id_tmp"),
- -> 0.0000s,
- -- quote_column_name(:build_id_convert_to_bigint),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_builds_runner_session\" RENAME COLUMN \"build_id_tmp\" TO \"build_id_convert_to_bigint\""),
- -> 0.0014s,
- -- quote_table_name("trigger_51ab7cef8934"),
- -> 0.0001s,
- -- execute("ALTER FUNCTION \"trigger_51ab7cef8934\" RESET ALL"),
- -> 0.0013s,
- -- change_column_default("ci_builds_runner_session", :build_id, nil),
- -> 0.0075s,
- -- change_column_default("ci_builds_runner_session", :build_id_convert_to_bigint, 0),
- -> 0.0066s,
- -- execute("DROP INDEX index_ci_builds_runner_session_on_build_id"),
- -> 0.0017s,
- -- rename_index("ci_builds_runner_session", "index_ci_builds_runner_session_on_build_id_convert_to_bigint", "index_ci_builds_runner_session_on_build_id"),
- -> 0.0016s,
- -- remove_foreign_key("ci_builds_runner_session", {:name=>"fk_rails_70707857d3"}),
- -> 0.0236s,
- -- quote_table_name("ci_builds_runner_session"),
- -> 0.0001s,
- -- quote_column_name("fk_rails_70707857d3_tmp"),
- -> 0.0001s,
- -- quote_column_name("fk_rails_70707857d3"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_builds_runner_session\"\nRENAME CONSTRAINT \"fk_rails_70707857d3_tmp\" TO \"fk_rails_70707857d3\"\n"),
- -> 0.0032s,
- == 20210805131510 FinalizeCiBuildsRunnerSessionBigintConversion: migrated (0.1371s) ,
- ,
- == 20210805192450 UpdateTrialPlansCiDailyPipelineScheduleTriggers: migrating ==,
- == 20210805192450 UpdateTrialPlansCiDailyPipelineScheduleTriggers: migrated (0.0001s) ,
- ,
- == 20210806011811 ScheduleBackfillDraftColumnOnMergeRequestsRerun: migrating ==,
- == 20210806011811 ScheduleBackfillDraftColumnOnMergeRequestsRerun: migrated (0.0000s) ,
- ,
- == 20210806152104 AddPypiPackageRequestsForwardingToApplicationSettings: migrating ,
- -- add_column(:application_settings, :pypi_package_requests_forwarding, :boolean, {:default=>true, :null=>false}),
- -> 0.0061s,
- == 20210806152104 AddPypiPackageRequestsForwardingToApplicationSettings: migrated (0.0139s) ,
- ,
- == 20210809123658 OrphanedInviteTokensCleanup: migrating ======================,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("members", :id, {:where=>"invite_token IS NOT NULL and invite_accepted_at IS NOT NULL and invite_accepted_at < created_at", :name=>"tmp_idx_orphaned_invite_tokens", :algorithm=>:concurrently}),
- -> 0.0204s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- add_index("members", :id, {:where=>"invite_token IS NOT NULL and invite_accepted_at IS NOT NULL and invite_accepted_at < created_at", :name=>"tmp_idx_orphaned_invite_tokens", :algorithm=>:concurrently}),
- -> 0.0108s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- transaction_open?(),
- -> 0.0000s,
- -- indexes("members"),
- -> 0.0186s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- remove_index("members", {:algorithm=>:concurrently, :name=>"tmp_idx_orphaned_invite_tokens"}),
- -> 0.0040s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210809123658 OrphanedInviteTokensCleanup: migrated (0.0841s) =============,
- ,
- == 20210809143931 FinalizeJobIdConversionToBigintForCiJobArtifacts: migrating =,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("ci_job_artifacts", [:expire_at, :job_id_convert_to_bigint], {:name=>"index_ci_job_artifacts_on_expire_at_and_job_id_bigint", :algorithm=>:concurrently}),
- -> 0.0152s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- add_index("ci_job_artifacts", [:expire_at, :job_id_convert_to_bigint], {:name=>"index_ci_job_artifacts_on_expire_at_and_job_id_bigint", :algorithm=>:concurrently}),
- -> 0.0090s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?("ci_job_artifacts", [:job_id_convert_to_bigint, :file_type], {:name=>"index_ci_job_artifacts_on_job_id_and_file_type_bigint", :unique=>true, :algorithm=>:concurrently}),
- -> 0.0171s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- add_index("ci_job_artifacts", [:job_id_convert_to_bigint, :file_type], {:name=>"index_ci_job_artifacts_on_job_id_and_file_type_bigint", :unique=>true, :algorithm=>:concurrently}),
- -> 0.0080s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- transaction_open?(),
- -> 0.0000s,
- -- foreign_keys("ci_job_artifacts"),
- -> 0.0216s,
- -- execute("LOCK TABLE ci_builds, ci_job_artifacts IN SHARE ROW EXCLUSIVE MODE"),
- -> 0.0008s,
- -- execute("ALTER TABLE ci_job_artifacts\nADD CONSTRAINT fk_rails_c5137cb2c1_tmp\nFOREIGN KEY (job_id_convert_to_bigint)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0084s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- execute("ALTER TABLE ci_job_artifacts VALIDATE CONSTRAINT fk_rails_c5137cb2c1_tmp;"),
- -> 0.0071s,
- -- execute("RESET statement_timeout"),
- -> 0.0009s,
- -- execute("LOCK TABLE ci_builds, ci_job_artifacts IN ACCESS EXCLUSIVE MODE"),
- -> 0.0009s,
- -- quote_table_name("ci_job_artifacts"),
- -> 0.0001s,
- -- quote_column_name(:job_id),
- -> 0.0001s,
- -- quote_column_name("job_id_tmp"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"job_id\" TO \"job_id_tmp\""),
- -> 0.0012s,
- -- quote_table_name("ci_job_artifacts"),
- -> 0.0001s,
- -- quote_column_name(:job_id_convert_to_bigint),
- -> 0.0001s,
- -- quote_column_name(:job_id),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"job_id_convert_to_bigint\" TO \"job_id\""),
- -> 0.0010s,
- -- quote_table_name("ci_job_artifacts"),
- -> 0.0000s,
- -- quote_column_name("job_id_tmp"),
- -> 0.0000s,
- -- quote_column_name(:job_id_convert_to_bigint),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"job_id_tmp\" TO \"job_id_convert_to_bigint\""),
- -> 0.0011s,
- -- quote_table_name("trigger_be1804f21693"),
- -> 0.0000s,
- -- execute("ALTER FUNCTION \"trigger_be1804f21693\" RESET ALL"),
- -> 0.0011s,
- -- change_column_default("ci_job_artifacts", :job_id, nil),
- -> 0.0088s,
- -- change_column_default("ci_job_artifacts", :job_id_convert_to_bigint, 0),
- -> 0.0075s,
- -- execute("DROP INDEX index_ci_job_artifacts_on_expire_at_and_job_id"),
- -> 0.0016s,
- -- rename_index("ci_job_artifacts", "index_ci_job_artifacts_on_expire_at_and_job_id_bigint", "index_ci_job_artifacts_on_expire_at_and_job_id"),
- -> 0.0014s,
- -- execute("DROP INDEX index_ci_job_artifacts_on_job_id_and_file_type"),
- -> 0.0013s,
- -- rename_index("ci_job_artifacts", "index_ci_job_artifacts_on_job_id_and_file_type_bigint", "index_ci_job_artifacts_on_job_id_and_file_type"),
- -> 0.0011s,
- -- remove_foreign_key("ci_job_artifacts", {:name=>"fk_rails_c5137cb2c1"}),
- -> 0.0252s,
- -- quote_table_name("ci_job_artifacts"),
- -> 0.0001s,
- -- quote_column_name("fk_rails_c5137cb2c1_tmp"),
- -> 0.0000s,
- -- quote_column_name("fk_rails_c5137cb2c1"),
- -> 0.0000s,
- -- execute("ALTER TABLE \"ci_job_artifacts\"\nRENAME CONSTRAINT \"fk_rails_c5137cb2c1_tmp\" TO \"fk_rails_c5137cb2c1\"\n"),
- -> 0.0012s,
- == 20210809143931 FinalizeJobIdConversionToBigintForCiJobArtifacts: migrated (0.1783s) ,
- ,
- == 20210809194250 RenameTablesCiBuildTraceSection: migrating ==================,
- -- rename_table(:ci_build_trace_sections, :dep_ci_build_trace_sections),
- -> 0.0311s,
- -- rename_table(:ci_build_trace_section_names, :dep_ci_build_trace_section_names),
- -> 0.0230s,
- == 20210809194250 RenameTablesCiBuildTraceSection: migrated (0.0544s) =========,
- ,
- == 20210811214811 ScheduleCopyCiBuildsColumnsToSecurityScans: migrating =======,
- == 20210811214811 ScheduleCopyCiBuildsColumnsToSecurityScans: migrated (0.0000s) ,
- ,
- == 20210812145010 ResetJobTokenScopeEnabledAgain: migrating ===================,
- -- remove_column(:project_ci_cd_settings, :job_token_scope_enabled),
- -> 0.0027s,
- -- add_column(:project_ci_cd_settings, :job_token_scope_enabled, :boolean, {:default=>false, :null=>false}),
- -> 0.0031s,
- == 20210812145010 ResetJobTokenScopeEnabledAgain: migrated (0.0114s) ==========,
- ,
- == 20210812171704 CreateProjectCiFeatureUsages: migrating =====================,
- -- create_table(:project_ci_feature_usages),
- -> 0.0338s,
- == 20210812171704 CreateProjectCiFeatureUsages: migrated (0.0340s) ============,
- ,
- == 20210813101742 CreateZentaoTrackerData: migrating ==========================,
- -- create_table(:zentao_tracker_data),
- -> 0.0306s,
- == 20210813101742 CreateZentaoTrackerData: migrated (0.0307s) =================,
- ,
- == 20210813111909 CreateCiBuildTraceMetadata: migrating =======================,
- -- create_table(:ci_build_trace_metadata, {:id=>false, :if_not_exists=>true}),
- -> 0.0294s,
- == 20210813111909 CreateCiBuildTraceMetadata: migrated (0.0357s) ==============,
- ,
- == 20210813195518 ScheduleRecalculateUuidOnVulnerabilitiesOccurrences3: migrating ,
- -- Scheduling RecalculateVulnerabilitiesOccurrencesUuid jobs,
- -- Scheduled 0 RecalculateVulnerabilitiesOccurrencesUuid jobs with a maximum of 2500 records per batch and an interval of 120 seconds.,
- ,
- The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-08-24 02:10:14 UTC.",
- == 20210813195518 ScheduleRecalculateUuidOnVulnerabilitiesOccurrences3: migrated (0.0758s) ,
- ,
- == 20210816161107 RemoveIndexContainingFaultyRegex: migrating =================,
- -- transaction_open?(),
- -> 0.0001s,
- -- indexes(:merge_requests),
- -> 0.0541s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- remove_index(:merge_requests, {:algorithm=>:concurrently, :name=>"tmp_index_merge_requests_draft_and_status"}),
- -> 0.0050s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210816161107 RemoveIndexContainingFaultyRegex: migrated (0.0648s) ========,
- ,
- == 20210816183304 ScheduleCopyCiBuildsColumnsToSecurityScans2: migrating ======,
- -- Scheduled 0 CopyCiBuildsColumnsToSecurityScans jobs with a maximum of 5000 records per batch and an interval of 120 seconds.,
- ,
- The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-08-24 02:10:14 UTC.",
- == 20210816183304 ScheduleCopyCiBuildsColumnsToSecurityScans2: migrated (0.0698s) ,
- ,
- == 20210817084338 AddForeignKeyFromCiBuildMetadataToCiJobArtifacts: migrating =,
- -- transaction_open?(),
- -> 0.0001s,
- -- foreign_keys(:ci_build_trace_metadata),
- -> 0.0214s,
- -- execute("ALTER TABLE ci_build_trace_metadata\nADD CONSTRAINT fk_21d25cac1a\nFOREIGN KEY (trace_artifact_id)\nREFERENCES ci_job_artifacts (id)\nON DELETE CASCADE\nNOT VALID;\n"),
- -> 0.0047s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- execute("ALTER TABLE ci_build_trace_metadata VALIDATE CONSTRAINT fk_21d25cac1a;"),
- -> 0.0044s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210817084338 AddForeignKeyFromCiBuildMetadataToCiJobArtifacts: migrated (0.0406s) ,
- ,
- == 20210818034001 IndexHistoricalDataOnRecordedAt: migrating ==================,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:historical_data, :recorded_at, {:name=>"index_historical_data_on_recorded_at", :algorithm=>:concurrently}),
- -> 0.0044s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- add_index(:historical_data, :recorded_at, {:name=>"index_historical_data_on_recorded_at", :algorithm=>:concurrently}),
- -> 0.0090s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210818034001 IndexHistoricalDataOnRecordedAt: migrated (0.0190s) =========,
- ,
- == 20210818055357 AddUniqueCommitDesignUserMentionIndexes: migrating ==========,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:commit_user_mentions, [:commit_id, :note_id], {:unique=>true, :name=>"commit_user_mentions_on_commit_id_and_note_id_unique_index", :algorithm=>:concurrently}),
- -> 0.0090s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0008s,
- -- add_index(:commit_user_mentions, [:commit_id, :note_id], {:unique=>true, :name=>"commit_user_mentions_on_commit_id_and_note_id_unique_index", :algorithm=>:concurrently}),
- -> 0.0084s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- transaction_open?(),
- -> 0.0000s,
- -- index_exists?(:design_user_mentions, [:design_id, :note_id], {:unique=>true, :name=>"design_user_mentions_on_design_id_and_note_id_unique_index", :algorithm=>:concurrently}),
- -> 0.0091s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- add_index(:design_user_mentions, [:design_id, :note_id], {:unique=>true, :name=>"design_user_mentions_on_design_id_and_note_id_unique_index", :algorithm=>:concurrently}),
- -> 0.0088s,
- -- execute("RESET statement_timeout"),
- -> 0.0007s,
- -- transaction_open?(),
- -> 0.0000s,
- -- indexes(:commit_user_mentions),
- -> 0.0096s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0009s,
- -- remove_index(:commit_user_mentions, {:algorithm=>:concurrently, :name=>"commit_id_and_note_id_index"}),
- -> 0.0050s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- -- transaction_open?(),
- -> 0.0000s,
- -- indexes(:design_user_mentions),
- -> 0.0088s,
- -- execute("SET statement_timeout TO 0"),
- -> 0.0007s,
- -- remove_index(:design_user_mentions, {:algorithm=>:concurrently, :name=>"design_user_mentions_on_design_id_and_note_id_index"}),
- -> 0.0038s,
- -- execute("RESET statement_timeout"),
- -> 0.0008s,
- == 20210818055357 AddUniqueCommitDesignUserMentionIndexes: migrated (0.0844s) =,
- ,
- - execute "bash" "/tmp/chef-script20210824-31-1ulvyif",
- ,
- Recipe: gitlab::gitlab-rails,
- * execute[clear the gitlab-rails cache] action run,
- - execute /opt/gitlab/bin/gitlab-rake cache:clear,
- Recipe: gitlab::database_migrations,
- * ruby_block[check remote PG version] action run (skipped due to only_if),
- cipe: crond::disable,
- * service[crond] action nothing (skipped due to action :nothing),
- * runit_service[crond] action disable,
- * ruby_block[disable crond] action run (skipped due to only_if),
- (up to date),
- Recipe: gitlab::puma,
- * directory[/var/log/gitlab/puma] action create,
- - create new directory /var/log/gitlab/puma,
- - change mode from '' to '0700',
- - change owner from '' to 'git',
- * directory[/opt/gitlab/var/puma] action create,
- - create new directory /opt/gitlab/var/puma,
- - change mode from '' to '0700',
- - change owner from '' to 'git',
- * directory[/var/opt/gitlab/gitlab-rails/sockets] action create,
- - create new directory /var/opt/gitlab/gitlab-rails/sockets,
- - change mode from '' to '0750',
- - change owner from '' to 'git',
- - change group from '' to 'gitlab-www',
- * puma_config[/var/opt/gitlab/gitlab-rails/etc/puma.rb] action create,
- * directory[/var/opt/gitlab/gitlab-rails/etc] action create (up to date),
- * template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] action create,
- - create new file /var/opt/gitlab/gitlab-rails/etc/puma.rb,
- - update content in file /var/opt/gitlab/gitlab-rails/etc/puma.rb from none to 56bd16,
- --- /var/opt/gitlab/gitlab-rails/etc/puma.rb 2021-08-24 02:12:12.284574807 +0000,
- +++ /var/opt/gitlab/gitlab-rails/etc/.chef-puma20210824-31-1q5cpn5.rb 2021-08-24 02:12:12.284574807 +0000,
- @@ -1,103 +1,206 @@,
- +# frozen_string_literal: true,
- +,
- +# This file is managed by gitlab-ctl. Manual changes will be,
- +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb,
- +# and run `sudo gitlab-ctl reconfigure`.,
- +,
- +# Load "path" as a rackup file.,
- +#,
- +# The default is "config.ru".,
- +#,
- +environment 'production',
- +rackup '/opt/gitlab/embedded/service/gitlab-rails/config.ru',
- +pidfile '/opt/gitlab/var/puma/puma.pid',
- +state_path '/opt/gitlab/var/puma/puma.state',
- +,
- +stdout_redirect '/var/log/gitlab/puma/puma_stdout.log', '/var/log/gitlab/puma/puma_stderr.log', true,
- +,
- +# Configure "min" to be the minimum number of threads to use to answer,
- +# requests and "max" the maximum.,
- +#,
- +# The default is "0, 16".,
- +#,
- +threads 4, 4,
- +,
- +# By default, workers accept all requests and queue them to pass to handlers.,
- +# When false, workers accept the number of simultaneous requests configured.,
- +#,
- +# Queueing requests generally improves performance, but can cause deadlocks if,
- +# the app is waiting on a request to itself. See https://github.com/puma/puma/issues/612,
- +#,
- +# When set to false this may require a reverse proxy to handle slow clients and,
- +# queue requests before they reach puma. This is due to disabling HTTP keepalive,
- +queue_requests false,
- +,
- +# Bind the server to "url". "tcp://", "unix://" and "ssl://" are the only,
- +# accepted protocols.,
- +bind 'unix:///var/opt/gitlab/gitlab-rails/sockets/gitlab.socket',
- +,
- +bind 'tcp://127.0.0.1:8080',
- +,
- +directory '/var/opt/gitlab/gitlab-rails/working',
- +,
- +workers 4,
- +,
- +require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/cluster/lifecycle_events",
- +require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/cluster/puma_worker_killer_initializer",
- +,
- +on_restart do,
- + # Signal application hooks that we're about to restart,
- + Gitlab::Cluster::LifecycleEvents.do_before_master_restart,
- +end,
- +,
- +options = { workers: 4 },
- +,
- +before_fork do,
- + # Signal to the puma killer,
- + Gitlab::Cluster::PumaWorkerKillerInitializer.start(options) unless ENV['DISABLE_PUMA_WORKER_KILLER'],
- +,
- + # Signal application hooks that we're about to fork,
- + Gitlab::Cluster::LifecycleEvents.do_before_fork,
- +end,
- +,
- +Gitlab::Cluster::LifecycleEvents.set_puma_options options,
- +on_worker_boot do,
- + # Signal application hooks of worker start,
- + Gitlab::Cluster::LifecycleEvents.do_worker_start,
- +end,
- +,
- +# Preload the application before starting the workers; this conflicts with,
- +# phased restart feature. (off by default),
- +,
- +preload_app!,
- +,
- +tag 'gitlab-puma-worker',
- +,
- +# Verifies that all workers have checked in to the master process within,
- +# the given timeout. If not the worker process will be restarted. Default,
- +# value is 60 seconds.,
- +#,
- +worker_timeout 60,
- +,
- +# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#lower-latency-better-throughput,
- +wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f,
- +,
- +# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#nakayoshi_fork,
- +nakayoshi_fork unless ENV['DISABLE_PUMA_NAKAYOSHI_FORK'] == 'true',
- +,
- +# Use customised JSON formatter for Puma log,
- +require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/puma_logging/json_formatter",
- +,
- +json_formatter = Gitlab::PumaLogging::JSONFormatter.new,
- +log_formatter do |str|,
- + json_formatter.call(str),
- +end,
- +,
- +lowlevel_error_handler do |ex, env|,
- + if Raven.configuration.capture_allowed?,
- + Raven.capture_exception(ex, tags: { 'handler': 'puma_low_level' }, extra: { puma_env: env }),
- + end,
- +,
- + # note the below is just a Rack response,
- + [500, {}, ["An error has occurred and reported in the system's low-level error handler."]],
- +end,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- ,
- * service[puma] action nothing (skipped due to action :nothing),
- * runit_service[puma] action enable,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/puma] action create,
- - create new directory /opt/gitlab/sv/puma,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/puma/run] action create,
- - create new file /opt/gitlab/sv/puma/run,
- - update content in file /opt/gitlab/sv/puma/run from none to ca09fe,
- --- /opt/gitlab/sv/puma/run 2021-08-24 02:12:12.396573345 +0000,
- +++ /opt/gitlab/sv/puma/.chef-run20210824-31-1c3csx 2021-08-24 02:12:12.396573345 +0000,
- @@ -1,21 +1,42 @@,
- +#!/bin/bash,
- +,
- +# Let runit capture all script error messages,
- +exec 2>&1,
- +,
- +# Setup run directory.,
- +mkdir -p /dev/shm/gitlab/puma,
- +chmod 0700 /dev/shm/gitlab/puma,
- +chown git /dev/shm/gitlab/puma,
- +export prometheus_run_dir='/dev/shm/gitlab/puma',
- +,
- +,
- +,
- +,
- +exec chpst -P \,
- + -u git:git \,
- + -U git:git \,
- + -e /opt/gitlab/etc/gitlab-rails/env \,
- + /usr/bin/env \,
- + prometheus_multiproc_dir="${prometheus_run_dir}" \,
- + /opt/gitlab/embedded/bin/bundle exec puma -C /var/opt/gitlab/gitlab-rails/etc/puma.rb,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/puma/log] action create,
- - create new directory /opt/gitlab/sv/puma/log,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/puma/log/main] action create,
- - create new directory /opt/gitlab/sv/puma/log/main,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/puma/log/config] action create,
- - create new file /opt/gitlab/sv/puma/log/config,
- - update content in file /opt/gitlab/sv/puma/log/config from none to 623c00,
- --- /opt/gitlab/sv/puma/log/config 2021-08-24 02:12:12.472572353 +0000,
- +++ /opt/gitlab/sv/puma/log/.chef-config20210824-31-1yame46 2021-08-24 02:12:12.472572353 +0000,
- @@ -1,6 +1,12 @@,
- +s209715200,
- +n30,
- +t86400,
- +!gzip,
- +,
- +,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[verify_chown_persisted_on_puma] action create,
- - execute the ruby block verify_chown_persisted_on_puma,
- * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/puma/config] action create,
- - create symlink at /var/log/gitlab/puma/config to /opt/gitlab/sv/puma/log/config,
- * template[/opt/gitlab/sv/puma/log/run] action create,
- - create new file /opt/gitlab/sv/puma/log/run,
- - update content in file /opt/gitlab/sv/puma/log/run from none to a83bb7,
- --- /opt/gitlab/sv/puma/log/run 2021-08-24 02:12:12.536571517 +0000,
- +++ /opt/gitlab/sv/puma/log/.chef-run20210824-31-1xoe7fm 2021-08-24 02:12:12.536571517 +0000,
- @@ -1,2 +1,4 @@,
- +#!/bin/sh,
- +exec svlogd -tt /var/log/gitlab/puma,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/puma/env] action create,
- - create new directory /opt/gitlab/sv/puma/env,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/puma/control] action create,
- - create new directory /opt/gitlab/sv/puma/control,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/puma/control/t] action create,
- - create new file /opt/gitlab/sv/puma/control/t,
- - update content in file /opt/gitlab/sv/puma/control/t from none to d8e9e7,
- --- /opt/gitlab/sv/puma/control/t 2021-08-24 02:12:12.616570473 +0000,
- +++ /opt/gitlab/sv/puma/control/.chef-t20210824-31-1pefz4d 2021-08-24 02:12:12.616570473 +0000,
- @@ -1,3 +1,6 @@,
- +#!/bin/sh,
- +echo "Received TERM from runit, sending to process group (-PID)",
- +kill -- -$(cat /opt/gitlab/service/puma/supervise/pid),
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/puma/control/h] action create,
- - create new file /opt/gitlab/sv/puma/control/h,
- - update content in file /opt/gitlab/sv/puma/control/h from none to 22e721,
- --- /opt/gitlab/sv/puma/control/h 2021-08-24 02:12:12.672569742 +0000,
- +++ /opt/gitlab/sv/puma/control/.chef-h20210824-31-8t7x7k 2021-08-24 02:12:12.672569742 +0000,
- @@ -1,47 +1,94 @@,
- +#!/bin/sh,
- +,
- +# This control handler is meant to be invoked by omnibus-gitlab via Runit,
- +,
- +# Let runit capture all script error messages,
- +exec 2>&1,
- +,
- +PID=$(cat /opt/gitlab/service/puma/supervise/pid),
- +,
- +readonly puma_graceful_shutdown_sec=90,
- +readonly puma_forceful_shutdown_sec=20,
- +readonly puma_kill_shutdown_sec=10,
- +,
- +echo "Received HUP from runit, sending INT signal to perform graceful restart",
- +,
- +signal() {,
- + local pid="$1",
- + local signal="$2",
- + local tries="$3",
- +,
- + echo "Sending $signal signal to Puma $pid...",
- + kill "-$signal" "$pid",
- +,
- + for i in $(seq 1 "$tries"); do,
- + echo "Waiting for Puma $pid to exit ($i)...",
- + if ! kill -0 "$pid"; then,
- + echo "Puma $pid did exit.",
- + return 0,
- + fi,
- +,
- + sleep 1,
- + done,
- +,
- + echo "Puma $pid did not exit after $signal.",
- + return 1,
- +},
- +,
- +(,
- + # we run it in subshell, as `runit` requires,
- + # the process it runs to exit in order to reap,
- + # the service,
- + signal "$PID" "INT" "$puma_graceful_shutdown_sec" ||,
- + signal "$PID" "TERM" "$puma_forceful_shutdown_sec" ||,
- + signal "$PID" "KILL" "$puma_kill_shutdown_sec",
- +) &,
- +,
- +exit 0,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * link[/opt/gitlab/init/puma] action create,
- - create symlink at /opt/gitlab/init/puma to /opt/gitlab/embedded/bin/sv,
- * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing),
- * ruby_block[restart_service] action run (skipped due to only_if),
- * ruby_block[reload_log_service] action create,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/puma] action create (up to date),
- * template[/opt/gitlab/sv/puma/run] action create (up to date),
- * directory[/opt/gitlab/sv/puma/log] action create (up to date),
- * directory[/opt/gitlab/sv/puma/log/main] action create (up to date),
- * template[/opt/gitlab/sv/puma/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/puma/config] action create (up to date),
- * template[/opt/gitlab/sv/puma/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/puma/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/puma/control] action create (up to date),
- * template[/opt/gitlab/sv/puma/control/t] action create (up to date),
- * template[/opt/gitlab/sv/puma/control/h] action create (up to date),
- * link[/opt/gitlab/init/puma] action create (up to date),
- * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/puma] action create,
- - create symlink at /opt/gitlab/service/puma to /opt/gitlab/sv/puma,
- * ruby_block[wait for puma service socket] action run,
- - execute the ruby block wait for puma service socket,
- - execute the ruby block reload_log_service,
- * ruby_block[restart_log_service] action run,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/puma] action create (up to date),
- * template[/opt/gitlab/sv/puma/run] action create (up to date),
- * directory[/opt/gitlab/sv/puma/log] action create (up to date),
- * directory[/opt/gitlab/sv/puma/log/main] action create (up to date),
- * template[/opt/gitlab/sv/puma/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/puma/config] action create (up to date),
- * template[/opt/gitlab/sv/puma/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/puma/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/puma/control] action create (up to date),
- * template[/opt/gitlab/sv/puma/control/t] action create (up to date),
- * template[/opt/gitlab/sv/puma/control/h] action create (up to date),
- * link[/opt/gitlab/init/puma] action create (up to date),
- * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/puma] action create (up to date),
- * ruby_block[wait for puma service socket] action run (skipped due to not_if),
- - execute the ruby block restart_log_service,
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/puma] action create (up to date),
- * ruby_block[wait for puma service socket] action run (skipped due to not_if),
- ,
- * execute[/opt/gitlab/bin/gitlab-ctl start puma] action run,
- [execute] ok: run: puma: (pid 583) 8s,
- - execute /opt/gitlab/bin/gitlab-ctl start puma,
- * consul_service[rails] action delete,
- * file[/var/opt/gitlab/consul/config.d/rails-service.json] action delete (up to date),
- (up to date),
- * gitlab_sysctl[net.core.somaxconn] action create,
- * directory[create /etc/sysctl.d for net.core.somaxconn] action create (skipped due to only_if),
- * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] action create (skipped due to only_if),
- * link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] action create (skipped due to only_if),
- * execute[load sysctl conf net.core.somaxconn] action nothing (skipped due to action :nothing),
- (up to date),
- Recipe: gitlab::sidekiq,
- * sidekiq_service[sidekiq] action enable,
- * directory[/var/log/gitlab/sidekiq] action create,
- - create new directory /var/log/gitlab/sidekiq,
- - change mode from '' to '0700',
- - change owner from '' to 'git',
- Recipe: <Dynamically Defined Resource>,
- * service[sidekiq] action nothing (skipped due to action :nothing),
- * runit_service[sidekiq] action enable,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/sidekiq] action create,
- - create new directory /opt/gitlab/sv/sidekiq,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/sidekiq/run] action create,
- - create new file /opt/gitlab/sv/sidekiq/run,
- - update content in file /opt/gitlab/sv/sidekiq/run from none to d94e86,
- --- /opt/gitlab/sv/sidekiq/run 2021-08-24 02:12:24.992409001 +0000,
- +++ /opt/gitlab/sv/sidekiq/.chef-run20210824-31-1iaguh1 2021-08-24 02:12:24.988409053 +0000,
- @@ -1,27 +1,54 @@,
- +#!/bin/sh,
- +,
- +cd /var/opt/gitlab/gitlab-rails/working,
- +,
- +exec 2>&1,
- +# Setup run directory.,
- +mkdir -p /dev/shm/gitlab/sidekiq,
- +rm /dev/shm/gitlab/sidekiq/*.db 2> /dev/null,
- +chmod 0700 /dev/shm/gitlab/sidekiq,
- +chown git /dev/shm/gitlab/sidekiq,
- +export prometheus_run_dir='/dev/shm/gitlab/sidekiq',
- +,
- +,
- +,
- +exec chpst -e /opt/gitlab/etc/gitlab-rails/env -P \,
- + -U git:git \,
- + -u git:git \,
- + /usr/bin/env \,
- + prometheus_multiproc_dir="${prometheus_run_dir}" \,
- + /opt/gitlab/embedded/service/gitlab-rails/bin/sidekiq-cluster \,
- + -e production \,
- + -r /opt/gitlab/embedded/service/gitlab-rails \,
- + -m 50 \,
- + --timeout 25 \,
- + "*" \,
- +,
- +# Do not remove this line; it prevents trouble with the trailing backslashes above.,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/sidekiq/log] action create,
- - create new directory /opt/gitlab/sv/sidekiq/log,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/sidekiq/log/main] action create,
- - create new directory /opt/gitlab/sv/sidekiq/log/main,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/sidekiq/log/config] action create,
- - create new file /opt/gitlab/sv/sidekiq/log/config,
- - update content in file /opt/gitlab/sv/sidekiq/log/config from none to 623c00,
- --- /opt/gitlab/sv/sidekiq/log/config 2021-08-24 02:12:25.076407905 +0000,
- +++ /opt/gitlab/sv/sidekiq/log/.chef-config20210824-31-zterqn 2021-08-24 02:12:25.076407905 +0000,
- @@ -1,6 +1,12 @@,
- +s209715200,
- +n30,
- +t86400,
- +!gzip,
- +,
- +,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[verify_chown_persisted_on_sidekiq] action create,
- - execute the ruby block verify_chown_persisted_on_sidekiq,
- * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/sidekiq/config] action create,
- - create symlink at /var/log/gitlab/sidekiq/config to /opt/gitlab/sv/sidekiq/log/config,
- * template[/opt/gitlab/sv/sidekiq/log/run] action create,
- - create new file /opt/gitlab/sv/sidekiq/log/run,
- - update content in file /opt/gitlab/sv/sidekiq/log/run from none to 0c55bd,
- --- /opt/gitlab/sv/sidekiq/log/run 2021-08-24 02:12:25.140407071 +0000,
- +++ /opt/gitlab/sv/sidekiq/log/.chef-run20210824-31-4capht 2021-08-24 02:12:25.140407071 +0000,
- @@ -1,2 +1,4 @@,
- +#!/bin/sh,
- +exec svlogd /var/log/gitlab/sidekiq,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/sidekiq/env] action create,
- - create new directory /opt/gitlab/sv/sidekiq/env,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/sidekiq/control] action create,
- - create new directory /opt/gitlab/sv/sidekiq/control,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * link[/opt/gitlab/init/sidekiq] action create,
- - create symlink at /opt/gitlab/init/sidekiq to /opt/gitlab/embedded/bin/sv,
- * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing),
- * ruby_block[restart_service] action run (skipped due to only_if),
- * ruby_block[reload_log_service] action create,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/sidekiq] action create (up to date),
- * template[/opt/gitlab/sv/sidekiq/run] action create (up to date),
- * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date),
- * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date),
- * template[/opt/gitlab/sv/sidekiq/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/sidekiq/config] action create (up to date),
- * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/sidekiq/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/sidekiq/control] action create (up to date),
- * link[/opt/gitlab/init/sidekiq] action create (up to date),
- * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/sidekiq] action create,
- - create symlink at /opt/gitlab/service/sidekiq to /opt/gitlab/sv/sidekiq,
- * ruby_block[wait for sidekiq service socket] action run,
- - execute the ruby block wait for sidekiq service socket,
- - execute the ruby block reload_log_service,
- * ruby_block[restart_log_service] action run,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/sidekiq] action create (up to date),
- * template[/opt/gitlab/sv/sidekiq/run] action create (up to date),
- * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date),
- * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date),
- * template[/opt/gitlab/sv/sidekiq/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/sidekiq/config] action create (up to date),
- * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/sidekiq/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/sidekiq/control] action create (up to date),
- * link[/opt/gitlab/init/sidekiq] action create (up to date),
- * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/sidekiq] action create (up to date),
- * ruby_block[wait for sidekiq service socket] action run (skipped due to not_if),
- - execute the ruby block restart_log_service,
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/sidekiq] action create (up to date),
- * ruby_block[wait for sidekiq service socket] action run (skipped due to not_if),
- ,
- * execute[/opt/gitlab/bin/gitlab-ctl start sidekiq] action run,
- [execute] ok: run: sidekiq: (pid 607) 7s,
- - execute /opt/gitlab/bin/gitlab-ctl start sidekiq,
- ,
- Recipe: gitlab::sidekiq,
- * consul_service[sidekiq] action delete,
- * file[/var/opt/gitlab/consul/config.d/sidekiq-service.json] action delete (up to date),
- (up to date),
- Recipe: gitlab::gitlab-workhorse,
- * directory[/var/opt/gitlab/gitlab-workhorse] action create,
- - create new directory /var/opt/gitlab/gitlab-workhorse,
- - change mode from '' to '0750',
- - change owner from '' to 'git',
- - change group from '' to 'gitlab-www',
- * directory[/var/opt/gitlab/gitlab-workhorse/sockets] action create,
- - create new directory /var/opt/gitlab/gitlab-workhorse/sockets,
- - change mode from '' to '0750',
- - change owner from '' to 'git',
- - change group from '' to 'gitlab-www',
- * directory[/var/log/gitlab/gitlab-workhorse] action create,
- - create new directory /var/log/gitlab/gitlab-workhorse,
- - change mode from '' to '0700',
- - change owner from '' to 'git',
- * directory[/opt/gitlab/etc/gitlab-workhorse] action create,
- - create new directory /opt/gitlab/etc/gitlab-workhorse,
- - change mode from '' to '0700',
- - change owner from '' to 'git',
- * env_dir[/opt/gitlab/etc/gitlab-workhorse/env] action create,
- * directory[/opt/gitlab/etc/gitlab-workhorse/env] action create,
- - create new directory /opt/gitlab/etc/gitlab-workhorse/env,
- * file[/opt/gitlab/etc/gitlab-workhorse/env/PATH] action create,
- - create new file /opt/gitlab/etc/gitlab-workhorse/env/PATH,
- - update content in file /opt/gitlab/etc/gitlab-workhorse/env/PATH from none to d5dc07,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-workhorse/env/HOME] action create,
- - create new file /opt/gitlab/etc/gitlab-workhorse/env/HOME,
- - update content in file /opt/gitlab/etc/gitlab-workhorse/env/HOME from none to 205bb9,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR] action create,
- - create new file /opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR,
- - update content in file /opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR from none to 4f45cf,
- - suppressed sensitive resource,
- ,
- * service[gitlab-workhorse] action nothing (skipped due to action :nothing),
- * runit_service[gitlab-workhorse] action enable,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/gitlab-workhorse] action create,
- - create new directory /opt/gitlab/sv/gitlab-workhorse,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/gitlab-workhorse/run] action create,
- - create new file /opt/gitlab/sv/gitlab-workhorse/run,
- - update content in file /opt/gitlab/sv/gitlab-workhorse/run from none to b1d72f,
- --- /opt/gitlab/sv/gitlab-workhorse/run 2021-08-24 02:12:35.864267255 +0000,
- +++ /opt/gitlab/sv/gitlab-workhorse/.chef-run20210824-31-1wuw9en 2021-08-24 02:12:35.864267255 +0000,
- @@ -1,27 +1,54 @@,
- +#!/bin/sh,
- +set -e # fail on errors,
- +,
- +# Redirect stderr -> stdout,
- +exec 2>&1,
- +,
- +,
- +,
- +cd /var/opt/gitlab/gitlab-workhorse,
- +,
- +exec chpst -e /opt/gitlab/etc/gitlab-workhorse/env -P \,
- + -U git:git \,
- + -u git:git \,
- + /opt/gitlab/embedded/bin/gitlab-workhorse \,
- + -listenNetwork unix \,
- + -listenUmask 0 \,
- + -listenAddr /var/opt/gitlab/gitlab-workhorse/sockets/socket \,
- + -authBackend http://localhost:8080 \,
- + -authSocket /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket \,
- + -documentRoot /opt/gitlab/embedded/service/gitlab-rails/public \,
- + -pprofListenAddr ''\,
- + -prometheusListenAddr localhost:9229 \,
- + -secretPath /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret \,
- + -logFormat json \,
- + -config config.toml \,
- +,
- +# Do not remove this line; it prevents trouble with the trailing backslashes above.,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create,
- - create new directory /opt/gitlab/sv/gitlab-workhorse/log,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create,
- - create new directory /opt/gitlab/sv/gitlab-workhorse/log/main,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create,
- - create new file /opt/gitlab/sv/gitlab-workhorse/log/config,
- - update content in file /opt/gitlab/sv/gitlab-workhorse/log/config from none to 623c00,
- --- /opt/gitlab/sv/gitlab-workhorse/log/config 2021-08-24 02:12:35.948266160 +0000,
- +++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-config20210824-31-19qlpah 2021-08-24 02:12:35.948266160 +0000,
- @@ -1,6 +1,12 @@,
- +s209715200,
- +n30,
- +t86400,
- +!gzip,
- +,
- +,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action create,
- - execute the ruby block verify_chown_persisted_on_gitlab-workhorse,
- * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/gitlab-workhorse/config] action create,
- - create symlink at /var/log/gitlab/gitlab-workhorse/config to /opt/gitlab/sv/gitlab-workhorse/log/config,
- * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create,
- - create new file /opt/gitlab/sv/gitlab-workhorse/log/run,
- - update content in file /opt/gitlab/sv/gitlab-workhorse/log/run from none to 34ab60,
- --- /opt/gitlab/sv/gitlab-workhorse/log/run 2021-08-24 02:12:36.016265274 +0000,
- +++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-run20210824-31-l75wmj 2021-08-24 02:12:36.016265274 +0000,
- @@ -1,2 +1,4 @@,
- +#!/bin/sh,
- +exec svlogd /var/log/gitlab/gitlab-workhorse,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create,
- - create new directory /opt/gitlab/sv/gitlab-workhorse/env,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create,
- - create new directory /opt/gitlab/sv/gitlab-workhorse/control,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * link[/opt/gitlab/init/gitlab-workhorse] action create,
- - create symlink at /opt/gitlab/init/gitlab-workhorse to /opt/gitlab/embedded/bin/sv,
- * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing),
- * ruby_block[restart_service] action run (skipped due to only_if),
- * ruby_block[reload_log_service] action create,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date),
- * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date),
- * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date),
- * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date),
- * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/gitlab-workhorse/config] action create (up to date),
- * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create (up to date),
- * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date),
- * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/gitlab-workhorse] action create,
- - create symlink at /opt/gitlab/service/gitlab-workhorse to /opt/gitlab/sv/gitlab-workhorse,
- * ruby_block[wait for gitlab-workhorse service socket] action run,
- - execute the ruby block wait for gitlab-workhorse service socket,
- - execute the ruby block reload_log_service,
- * ruby_block[restart_log_service] action run,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date),
- * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date),
- * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date),
- * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date),
- * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/gitlab-workhorse/config] action create (up to date),
- * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create (up to date),
- * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date),
- * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date),
- * ruby_block[wait for gitlab-workhorse service socket] action run (skipped due to not_if),
- - execute the ruby block restart_log_service,
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date),
- * ruby_block[wait for gitlab-workhorse service socket] action run (skipped due to not_if),
- ,
- * consul_service[workhorse] action delete,
- * file[/var/opt/gitlab/consul/config.d/workhorse-service.json] action delete (up to date),
- (up to date),
- * version_file[Create version file for Workhorse] action create,
- * file[/var/opt/gitlab/gitlab-workhorse/VERSION] action create,
- - create new file /var/opt/gitlab/gitlab-workhorse/VERSION,
- - update content in file /var/opt/gitlab/gitlab-workhorse/VERSION from none to 78301c,
- --- /var/opt/gitlab/gitlab-workhorse/VERSION 2021-08-24 02:12:40.032212939 +0000,
- +++ /var/opt/gitlab/gitlab-workhorse/.chef-VERSION20210824-31-mu1qxr 2021-08-24 02:12:40.032212939 +0000,
- @@ -1 +1,2 @@,
- +gitlab-workhorse v14.2.0-20210820.085310,
- ,
- * template[/var/opt/gitlab/gitlab-workhorse/config.toml] action create,
- - create new file /var/opt/gitlab/gitlab-workhorse/config.toml,
- - update content in file /var/opt/gitlab/gitlab-workhorse/config.toml from none to 4f571b,
- --- /var/opt/gitlab/gitlab-workhorse/config.toml 2021-08-24 02:12:40.092212158 +0000,
- +++ /var/opt/gitlab/gitlab-workhorse/.chef-config20210824-31-ull1wl.toml 2021-08-24 02:12:40.092212158 +0000,
- @@ -1,9 +1,18 @@,
- +,
- +[redis],
- +URL = "unix:/var/opt/gitlab/redis/redis.socket",
- +Password = "",
- +,
- +,
- +[image_resizer],
- + max_scaler_procs = 2,
- + max_filesize = 250000,
- - change mode from '' to '0640',
- - change owner from '' to 'root',
- - change group from '' to 'git',
- Recipe: gitlab::mailroom_disable,
- * service[mailroom] action nothing (skipped due to action :nothing),
- * runit_service[mailroom] action disable,
- * ruby_block[disable mailroom] action run (skipped due to only_if),
- (up to date),
- Recipe: gitlab::nginx,
- * directory[/var/opt/gitlab/nginx] action create,
- - create new directory /var/opt/gitlab/nginx,
- - change mode from '' to '0750',
- - change owner from '' to 'root',
- - change group from '' to 'gitlab-www',
- * directory[/var/opt/gitlab/nginx/conf] action create,
- - create new directory /var/opt/gitlab/nginx/conf,
- - change mode from '' to '0750',
- - change owner from '' to 'root',
- - change group from '' to 'gitlab-www',
- * directory[/var/log/gitlab/nginx] action create,
- - create new directory /var/log/gitlab/nginx,
- - change mode from '' to '0750',
- - change owner from '' to 'root',
- - change group from '' to 'gitlab-www',
- * link[/var/opt/gitlab/nginx/logs] action create,
- - create symlink at /var/opt/gitlab/nginx/logs to /var/log/gitlab/nginx,
- * template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] action create,
- - create new file /var/opt/gitlab/nginx/conf/gitlab-http.conf,
- - update content in file /var/opt/gitlab/nginx/conf/gitlab-http.conf from none to 6a3439,
- --- /var/opt/gitlab/nginx/conf/gitlab-http.conf 2021-08-24 02:12:40.204210698 +0000,
- +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-http20210824-31-4m941t.conf 2021-08-24 02:12:40.204210698 +0000,
- @@ -1,128 +1,256 @@,
- +# This file is managed by gitlab-ctl. Manual changes will be,
- +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb,
- +# and run `sudo gitlab-ctl reconfigure`.,
- +,
- +## GitLab,
- +## Modified from https://gitlab.com/gitlab-org/gitlab-foss/blob/master/lib/support/nginx/gitlab-ssl & https://gitlab.com/gitlab-org/gitlab-foss/blob/master/lib/support/nginx/gitlab,
- +##,
- +## Lines starting with two hashes (##) are comments with information.,
- +## Lines starting with one hash (#) are configuration parameters that can be uncommented.,
- +##,
- +##################################,
- +## CHUNKED TRANSFER ##,
- +##################################,
- +##,
- +## It is a known issue that Git-over-HTTP requires chunked transfer encoding [0],
- +## which is not supported by Nginx < 1.3.9 [1]. As a result, pushing a large object,
- +## with Git (i.e. a single large file) can lead to a 411 error. In theory you can get,
- +## around this by tweaking this configuration file and either:,
- +## - installing an old version of Nginx with the chunkin module [2] compiled in, or,
- +## - using a newer version of Nginx.,
- +##,
- +## At the time of writing we do not know if either of these theoretical solutions works.,
- +## As a workaround users can use Git over SSH to push large files.,
- +##,
- +## [0] https://git.kernel.org/cgit/git/git.git/tree/Documentation/technical/http-protocol.txt#n99,
- +## [1] https://github.com/agentzh/chunkin-nginx-module#status,
- +## [2] https://github.com/agentzh/chunkin-nginx-module,
- +##,
- +###################################,
- +## configuration ##,
- +###################################,
- +,
- +,
- +server {,
- + listen *:80;,
- +,
- +,
- + server_name gitlab.example.com;,
- + server_tokens off; ## Don't show the nginx version number, a security best practice,
- +,
- + ## Increase this if you want to upload large attachments,
- + ## Or if you want to accept large git objects over http,
- + client_max_body_size 0;,
- +,
- +,
- + ## Real IP Module Config,
- + ## http://nginx.org/en/docs/http/ngx_http_realip_module.html,
- +,
- + ## HSTS Config,
- + ## https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/,
- + add_header Strict-Transport-Security "max-age=63072000";,
- +,
- + # Rails sets a default policy of strict-origin-when-cross-origin, so,
- + # hide that and just send the one we've configured for nginx,
- + proxy_hide_header Referrer-Policy;,
- + add_header Referrer-Policy strict-origin-when-cross-origin;,
- +,
- + ## Individual nginx logs for this GitLab vhost,
- + access_log /var/log/gitlab/nginx/gitlab_access.log gitlab_access;,
- + error_log /var/log/gitlab/nginx/gitlab_error.log error;,
- +,
- + if ($http_host = "") {,
- + set $http_host_with_default "gitlab.example.com";,
- + },
- +,
- + if ($http_host != "") {,
- + set $http_host_with_default $http_host;,
- + },
- +,
- + gzip on;,
- + gzip_static on;,
- + gzip_comp_level 2;,
- + gzip_http_version 1.1;,
- + gzip_vary on;,
- + gzip_disable "msie6";,
- + gzip_min_length 250;,
- + gzip_proxied no-cache no-store private expired auth;,
- + gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;,
- +,
- + ## https://github.com/gitlabhq/gitlabhq/issues/694,
- + ## Some requests take more than 30 seconds.,
- + proxy_read_timeout 3600;,
- + proxy_connect_timeout 300;,
- + proxy_redirect off;,
- + proxy_http_version 1.1;,
- +,
- + proxy_set_header Host $http_host_with_default;,
- + proxy_set_header X-Real-IP $remote_addr;,
- + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;,
- + proxy_set_header Upgrade $http_upgrade;,
- + proxy_set_header Connection $connection_upgrade;,
- + proxy_set_header X-Forwarded-Proto http;,
- +,
- + location ~ (/api/v\d/jobs/\d+/artifacts$|\.git/git-receive-pack$|\.git/gitlab-lfs/objects|\.git/info/lfs/objects/batch$) {,
- + proxy_cache off;,
- + proxy_pass http://gitlab-workhorse;,
- + proxy_request_buffering off;,
- + },
- +,
- + location /-/grafana/ {,
- + proxy_pass http://localhost:3000/;,
- + },
- +,
- +,
- + # health checks configuration,
- + include /var/opt/gitlab/nginx/conf/gitlab-health.conf;,
- +,
- + location / {,
- + proxy_cache off;,
- + proxy_pass http://gitlab-workhorse;,
- + },
- +,
- + location /assets {,
- + add_header X-Content-Type-Options nosniff;,
- + proxy_cache gitlab;,
- + proxy_pass http://gitlab-workhorse;,
- + },
- +,
- + error_page 404 /404.html;,
- + error_page 500 /500.html;,
- + error_page 502 /502.html;,
- + location ~ ^/(404|500|502)(-custom)?\.html$ {,
- + root /opt/gitlab/embedded/service/gitlab-rails/public;,
- + internal;,
- + },
- +,
- + ,
- +},
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/var/opt/gitlab/nginx/conf/gitlab-smartcard-http.conf] action delete (up to date),
- * template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] action create,
- - create new file /var/opt/gitlab/nginx/conf/gitlab-health.conf,
- - update content in file /var/opt/gitlab/nginx/conf/gitlab-health.conf from none to 92d04b,
- --- /var/opt/gitlab/nginx/conf/gitlab-health.conf 2021-08-24 02:12:40.344208874 +0000,
- +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-health20210824-31-nyf4un.conf 2021-08-24 02:12:40.344208874 +0000,
- @@ -1,29 +1,58 @@,
- +# This file is managed by gitlab-ctl. Manual changes will be,
- +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb,
- +# and run `sudo gitlab-ctl reconfigure`.,
- +,
- +location /error.txt {,
- + # return code here is ignored by the error_page directive,
- + return 500 'nginx returned $status when communicating with gitlab-workhorse\n';,
- +},
- +,
- +location /error.json {,
- + # return code here is ignored by the error_page directive,
- + return 500 '{"error":"nginx returned $status when communicating with gitlab-workhorse","status":$status}\n';,
- +},
- +,
- +location = /-/health {,
- + proxy_cache off;,
- + proxy_pass http://gitlab-workhorse;,
- + error_page 404 500 502 /error.txt;,
- +},
- +location = /-/readiness {,
- + proxy_cache off;,
- + proxy_pass http://gitlab-workhorse;,
- + error_page 404 500 502 /error.json;,
- +},
- +location = /-/liveness {,
- + proxy_cache off;,
- + proxy_pass http://gitlab-workhorse;,
- + error_page 404 500 502 /error.json;,
- +},
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/var/opt/gitlab/nginx/conf/gitlab-pages.conf] action delete (up to date),
- * template[/var/opt/gitlab/nginx/conf/gitlab-registry.conf] action delete (up to date),
- * template[/var/opt/gitlab/nginx/conf/gitlab-mattermost-http.conf] action delete (up to date),
- * template[/var/opt/gitlab/nginx/conf/nginx-status.conf] action create,
- - create new file /var/opt/gitlab/nginx/conf/nginx-status.conf,
- - update content in file /var/opt/gitlab/nginx/conf/nginx-status.conf from none to 74440c,
- --- /var/opt/gitlab/nginx/conf/nginx-status.conf 2021-08-24 02:12:40.608205434 +0000,
- +++ /var/opt/gitlab/nginx/conf/.chef-nginx-status20210824-31-1acikmc.conf 2021-08-24 02:12:40.608205434 +0000,
- @@ -1,28 +1,56 @@,
- +server {,
- + listen *:8060;,
- + server_name localhost;,
- + location /nginx_status {,
- + stub_status;,
- + server_tokens off;,
- + access_log off;,
- + allow 127.0.0.1;,
- + deny all;,
- + },
- + location /metrics {,
- + vhost_traffic_status_display;,
- + vhost_traffic_status_display_format prometheus;,
- + server_tokens off;,
- + access_log off;,
- + allow 127.0.0.1;,
- + deny all;,
- + },
- +,
- + location /rails-metrics {,
- + proxy_cache off;,
- + proxy_pass http://gitlab-workhorse/-/metrics;,
- + server_tokens off;,
- + access_log off;,
- + allow 127.0.0.1;,
- + deny all;,
- + },
- +},
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * consul_service[nginx] action delete,
- * file[/var/opt/gitlab/consul/config.d/nginx-service.json] action delete (up to date),
- (up to date),
- * template[/var/opt/gitlab/nginx/conf/nginx.conf] action create,
- - create new file /var/opt/gitlab/nginx/conf/nginx.conf,
- - update content in file /var/opt/gitlab/nginx/conf/nginx.conf from none to 99b9c4,
- --- /var/opt/gitlab/nginx/conf/nginx.conf 2021-08-24 02:12:40.720203975 +0000,
- +++ /var/opt/gitlab/nginx/conf/.chef-nginx20210824-31-gi2eaw.conf 2021-08-24 02:12:40.716204027 +0000,
- @@ -1,93 +1,186 @@,
- +# This file is managed by gitlab-ctl. Manual changes will be,
- +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb,
- +# and run `sudo gitlab-ctl reconfigure`.,
- +,
- +user gitlab-www gitlab-www;,
- +worker_processes 4;,
- +error_log stderr;,
- +pid nginx.pid;,
- +,
- +daemon off;,
- +,
- +events {,
- + worker_connections 10240;,
- +},
- +,
- +http {,
- + log_format gitlab_access '$remote_addr - $remote_user [$time_local] "$request_method $filtered_request_uri $server_protocol" $status $body_bytes_sent "$filtered_http_referer" "$http_user_agent" $gzip_ratio';,
- + log_format gitlab_mattermost_access '$remote_addr - $remote_user [$time_local] "$request_method $filtered_request_uri $server_protocol" $status $body_bytes_sent "$filtered_http_referer" "$http_user_agent" $gzip_ratio';,
- +,
- + hide_server_tokens off;,
- +,
- + server_names_hash_bucket_size 64;,
- +,
- + sendfile on;,
- + tcp_nopush on;,
- + tcp_nodelay on;,
- +,
- + keepalive_timeout 65;,
- + keepalive_time 1h;,
- +,
- + gzip on;,
- + gzip_http_version 1.1;,
- + gzip_comp_level 2;,
- + gzip_proxied no-cache no-store private expired auth;,
- + gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;,
- +,
- + include /opt/gitlab/embedded/conf/mime.types;,
- +,
- + proxy_cache_path proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2;,
- + proxy_cache gitlab;,
- +,
- + map $http_upgrade $connection_upgrade {,
- + default upgrade;,
- + '' close;,
- + },
- +,
- + # Remove private_token from the request URI,
- + # In: /foo?private_token=unfiltered&authenticity_token=unfiltered&rss_token=unfiltered&...,
- + # Out: /foo?private_token=[FILTERED]&authenticity_token=unfiltered&rss_token=unfiltered&...,
- + map $request_uri $temp_request_uri_1 {,
- + default $request_uri;,
- + ~(?i)^(?<start>.*)(?<temp>[\?&]private[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";,
- + },
- +,
- + # Remove authenticity_token from the request URI,
- + # In: /foo?private_token=[FILTERED]&authenticity_token=unfiltered&rss_token=unfiltered&...,
- + # Out: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=unfiltered&...,
- + map $temp_request_uri_1 $temp_request_uri_2 {,
- + default $temp_request_uri_1;,
- + ~(?i)^(?<start>.*)(?<temp>[\?&]authenticity[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";,
- + },
- +,
- + # Remove rss_token from the request URI,
- + # In: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=unfiltered&...,
- + # Out: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=[FILTERED]&...,
- + map $temp_request_uri_2 $filtered_request_uri {,
- + default $temp_request_uri_2;,
- + ~(?i)^(?<start>.*)(?<temp>[\?&]rss[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";,
- + },
- +,
- + # A version of the referer without the query string,
- + map $http_referer $filtered_http_referer {,
- + default $http_referer;,
- + ~^(?<temp>.*)\? $temp;,
- + },
- +,
- + # Enable vts status module.,
- + vhost_traffic_status_zone;,
- +,
- + upstream gitlab-workhorse {,
- + server unix:/var/opt/gitlab/gitlab-workhorse/sockets/socket;,
- + },
- +,
- + include /var/opt/gitlab/nginx/conf/gitlab-http.conf;,
- +,
- +,
- +,
- +,
- +,
- + include /var/opt/gitlab/nginx/conf/nginx-status.conf;,
- +,
- + ,
- +},
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- Recipe: nginx::enable,
- * service[nginx] action nothing (skipped due to action :nothing),
- * runit_service[nginx] action enable,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/nginx] action create,
- - create new directory /opt/gitlab/sv/nginx,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/nginx/run] action create,
- - create new file /opt/gitlab/sv/nginx/run,
- - update content in file /opt/gitlab/sv/nginx/run from none to d75aea,
- --- /opt/gitlab/sv/nginx/run 2021-08-24 02:12:40.820202672 +0000,
- +++ /opt/gitlab/sv/nginx/.chef-run20210824-31-1cippjf 2021-08-24 02:12:40.820202672 +0000,
- @@ -1,5 +1,10 @@,
- +#!/bin/sh,
- +exec 2>&1,
- +,
- +cd /var/opt/gitlab/nginx,
- +exec chpst -P /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/nginx/log] action create,
- - create new directory /opt/gitlab/sv/nginx/log,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/nginx/log/main] action create,
- - create new directory /opt/gitlab/sv/nginx/log/main,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/nginx/log/config] action create,
- - create new file /opt/gitlab/sv/nginx/log/config,
- - update content in file /opt/gitlab/sv/nginx/log/config from none to 623c00,
- --- /opt/gitlab/sv/nginx/log/config 2021-08-24 02:12:40.900201630 +0000,
- +++ /opt/gitlab/sv/nginx/log/.chef-config20210824-31-1j517sd 2021-08-24 02:12:40.896201682 +0000,
- @@ -1,6 +1,12 @@,
- +s209715200,
- +n30,
- +t86400,
- +!gzip,
- +,
- +,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[verify_chown_persisted_on_nginx] action create,
- - execute the ruby block verify_chown_persisted_on_nginx,
- * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/nginx/config] action create,
- - create symlink at /var/log/gitlab/nginx/config to /opt/gitlab/sv/nginx/log/config,
- * template[/opt/gitlab/sv/nginx/log/run] action create,
- - create new file /opt/gitlab/sv/nginx/log/run,
- - update content in file /opt/gitlab/sv/nginx/log/run from none to c70025,
- --- /opt/gitlab/sv/nginx/log/run 2021-08-24 02:12:40.964200796 +0000,
- +++ /opt/gitlab/sv/nginx/log/.chef-run20210824-31-esaf04 2021-08-24 02:12:40.964200796 +0000,
- @@ -1,2 +1,4 @@,
- +#!/bin/sh,
- +exec svlogd -tt /var/log/gitlab/nginx,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/nginx/env] action create,
- - create new directory /opt/gitlab/sv/nginx/env,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/nginx/control] action create,
- - create new directory /opt/gitlab/sv/nginx/control,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * link[/opt/gitlab/init/nginx] action create,
- - create symlink at /opt/gitlab/init/nginx to /opt/gitlab/embedded/bin/sv,
- * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing),
- * ruby_block[restart_service] action run (skipped due to only_if),
- * ruby_block[reload_log_service] action create,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/nginx] action create (up to date),
- * template[/opt/gitlab/sv/nginx/run] action create (up to date),
- * directory[/opt/gitlab/sv/nginx/log] action create (up to date),
- * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date),
- * template[/opt/gitlab/sv/nginx/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/nginx/config] action create (up to date),
- * template[/opt/gitlab/sv/nginx/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/nginx/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/nginx/control] action create (up to date),
- * link[/opt/gitlab/init/nginx] action create (up to date),
- * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/nginx] action create,
- - create symlink at /opt/gitlab/service/nginx to /opt/gitlab/sv/nginx,
- * ruby_block[wait for nginx service socket] action run,
- - execute the ruby block wait for nginx service socket,
- - execute the ruby block reload_log_service,
- * ruby_block[restart_log_service] action run,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/nginx] action create (up to date),
- * template[/opt/gitlab/sv/nginx/run] action create (up to date),
- * directory[/opt/gitlab/sv/nginx/log] action create (up to date),
- * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date),
- * template[/opt/gitlab/sv/nginx/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/nginx/config] action create (up to date),
- * template[/opt/gitlab/sv/nginx/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/nginx/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/nginx/control] action create (up to date),
- * link[/opt/gitlab/init/nginx] action create (up to date),
- * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/nginx] action create (up to date),
- * ruby_block[wait for nginx service socket] action run (skipped due to not_if),
- - execute the ruby block restart_log_service,
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/nginx] action create (up to date),
- * ruby_block[wait for nginx service socket] action run (skipped due to not_if),
- ,
- * execute[reload nginx] action nothing (skipped due to action :nothing),
- Recipe: gitlab::nginx,
- * execute[/opt/gitlab/bin/gitlab-ctl start nginx] action run,
- [execute] ok: run: nginx: (pid 657) 8s,
- - execute /opt/gitlab/bin/gitlab-ctl start nginx,
- Recipe: gitlab::remote-syslog_disable,
- * service[remote-syslog] action nothing (skipped due to action :nothing),
- * runit_service[remote-syslog] action disable,
- * ruby_block[disable remote-syslog] action run (skipped due to only_if),
- (up to date),
- Recipe: gitlab::bootstrap,
- * file[/var/opt/gitlab/bootstrapped] action create,
- - create new file /var/opt/gitlab/bootstrapped,
- - update content in file /var/opt/gitlab/bootstrapped from none to 4ae00c,
- --- /var/opt/gitlab/bootstrapped 2021-08-24 02:12:53.600036222 +0000,
- +++ /var/opt/gitlab/.chef-bootstrapped20210824-31-gqhcf3 2021-08-24 02:12:53.600036222 +0000,
- @@ -1 +1,2 @@,
- +All your bootstraps are belong to Chef,
- - change mode from '' to '0600',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- Recipe: gitlab::storage-check_disable,
- * service[storage-check] action nothing (skipped due to action :nothing),
- * runit_service[storage-check] action disable,
- * ruby_block[disable storage-check] action run (skipped due to only_if),
- (up to date),
- Recipe: gitlab-pages::disable,
- * service[gitlab-pages] action nothing (skipped due to action :nothing),
- * runit_service[gitlab-pages] action disable,
- * ruby_block[disable gitlab-pages] action run (skipped due to only_if),
- (up to date),
- Recipe: registry::disable,
- * service[registry] action nothing (skipped due to action :nothing),
- * runit_service[registry] action disable,
- * ruby_block[disable registry] action run (skipped due to only_if),
- (up to date),
- Recipe: mattermost::disable,
- * service[mattermost] action nothing (skipped due to action :nothing),
- * runit_service[mattermost] action disable,
- * ruby_block[disable mattermost] action run (skipped due to only_if),
- (up to date),
- Recipe: letsencrypt::disable,
- * crond_job[letsencrypt-renew] action delete,
- * file[/var/opt/gitlab/crond/letsencrypt-renew] action delete (up to date),
- (up to date),
- Recipe: gitlab::gitlab-healthcheck,
- * template[/opt/gitlab/etc/gitlab-healthcheck-rc] action create,
- - create new file /opt/gitlab/etc/gitlab-healthcheck-rc,
- - update content in file /opt/gitlab/etc/gitlab-healthcheck-rc from none to 6da55f,
- --- /opt/gitlab/etc/gitlab-healthcheck-rc 2021-08-24 02:12:53.744034347 +0000,
- +++ /opt/gitlab/etc/.chef-gitlab-healthcheck-rc20210824-31-1o00zy5 2021-08-24 02:12:53.744034347 +0000,
- @@ -1,2 +1,4 @@,
- +url='http://localhost:80/help',
- +flags='--insecure',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- Recipe: monitoring::node-exporter_disable,
- * service[node-exporter] action nothing (skipped due to action :nothing),
- * runit_service[node-exporter] action disable,
- * ruby_block[disable node-exporter] action run (skipped due to only_if),
- (up to date),
- * consul_service[node-exporter] action delete,
- * file[/var/opt/gitlab/consul/config.d/node-exporter-service.json] action delete (up to date),
- (up to date),
- Recipe: monitoring::gitlab-exporter,
- * directory[/var/opt/gitlab/gitlab-exporter] action create,
- - create new directory /var/opt/gitlab/gitlab-exporter,
- - change mode from '' to '0755',
- - change owner from '' to 'git',
- * directory[/var/log/gitlab/gitlab-exporter] action create,
- - create new directory /var/log/gitlab/gitlab-exporter,
- - change mode from '' to '0700',
- - change owner from '' to 'git',
- * env_dir[/opt/gitlab/etc/gitlab-exporter/env] action create,
- * directory[/opt/gitlab/etc/gitlab-exporter/env] action create,
- - create new directory /opt/gitlab/etc/gitlab-exporter/env,
- * file[/opt/gitlab/etc/gitlab-exporter/env/LD_PRELOAD] action create,
- - create new file /opt/gitlab/etc/gitlab-exporter/env/LD_PRELOAD,
- - update content in file /opt/gitlab/etc/gitlab-exporter/env/LD_PRELOAD from none to f79114,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF] action create,
- - create new file /opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF,
- - update content in file /opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF from none to 2ea29b,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS] action create,
- - create new file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS,
- - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS from none to 47b250,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO] action create,
- - create new file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO,
- - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO from none to c945fb,
- - suppressed sensitive resource,
- * file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO] action create,
- - create new file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO,
- - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO from none to 8a60e9,
- - suppressed sensitive resource,
- ,
- * template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] action create,
- - create new file /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml,
- - update content in file /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml from none to b4f32c,
- --- /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml 2021-08-24 02:12:54.132029296 +0000,
- +++ /var/opt/gitlab/gitlab-exporter/.chef-gitlab-exporter20210824-31-qmgbhq.yml 2021-08-24 02:12:54.132029296 +0000,
- @@ -1,62 +1,124 @@,
- +db_common: &db_common,
- + methods:,
- + - probe_db,
- + opts:,
- + connection_string: dbname=gitlabhq_production user=gitlab host=/var/opt/gitlab/postgresql port=5432 password=,
- +,
- +# Web server config,
- +server:,
- + name: webrick,
- + listen_address: localhost,
- + listen_port: 9168,
- +,
- +# Probes config,
- +probes:,
- + # We can group multiple probes under a single endpoint by setting the `multiple` key to `true`, followed,
- + # by probe definitions as usual.,
- + database:,
- + multiple: true,
- + ci_builds:,
- + class_name: Database::CiBuildsProber,
- + <<: *db_common,
- + tuple_stats:,
- + class_name: Database::TuplesProber,
- + <<: *db_common,
- + rows_count:,
- + class_name: Database::RowCountProber,
- + <<: *db_common,
- + database_bloat:,
- + class_name: Database::BloatProber,
- + <<: *db_common,
- +,
- + ruby: &ruby,
- + methods:,
- + - probe_gc,
- + opts:,
- + quantiles: false,
- +,
- + sidekiq: &sidekiq,
- + methods:,
- + - probe_stats,
- + - probe_queues,
- + - probe_workers,
- + - probe_retries,
- + opts:,
- + redis_url: "unix:/var/opt/gitlab/redis/redis.socket",
- + redis_enable_client: true,
- +,
- + metrics:,
- + multiple: true,
- + ruby:,
- + <<: *ruby,
- + sidekiq:,
- + <<: *sidekiq,
- + ci_builds:,
- + class_name: Database::CiBuildsProber,
- + <<: *db_common,
- + tuple_stats:,
- + class_name: Database::TuplesProber,
- + <<: *db_common,
- + rows_count:,
- + class_name: Database::RowCountProber,
- + <<: *db_common,
- - change mode from '' to '0600',
- - change owner from '' to 'git',
- * version_file[Create version file for GitLab-Exporter] action create,
- * file[/var/opt/gitlab/gitlab-exporter/RUBY_VERSION] action create,
- - create new file /var/opt/gitlab/gitlab-exporter/RUBY_VERSION,
- - update content in file /var/opt/gitlab/gitlab-exporter/RUBY_VERSION from none to 880271,
- --- /var/opt/gitlab/gitlab-exporter/RUBY_VERSION 2021-08-24 02:12:54.264027577 +0000,
- +++ /var/opt/gitlab/gitlab-exporter/.chef-RUBY_VERSION20210824-31-19iimk3 2021-08-24 02:12:54.264027577 +0000,
- @@ -1 +1,2 @@,
- +ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [aarch64-linux],
- ,
- * service[gitlab-exporter] action nothing (skipped due to action :nothing),
- * runit_service[gitlab-exporter] action enable,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/gitlab-exporter] action create,
- - create new directory /opt/gitlab/sv/gitlab-exporter,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/gitlab-exporter/run] action create,
- - create new file /opt/gitlab/sv/gitlab-exporter/run,
- - update content in file /opt/gitlab/sv/gitlab-exporter/run from none to 455cb2,
- --- /opt/gitlab/sv/gitlab-exporter/run 2021-08-24 02:12:54.372026171 +0000,
- +++ /opt/gitlab/sv/gitlab-exporter/.chef-run20210824-31-1gwk17r 2021-08-24 02:12:54.372026171 +0000,
- @@ -1,9 +1,18 @@,
- +#!/bin/sh,
- +exec 2>&1,
- +,
- +umask 077,
- +exec chpst -P -e /opt/gitlab/etc/gitlab-exporter/env \,
- + -U git:git \,
- + -u git:git \,
- + /opt/gitlab/embedded/bin/gitlab-exporter web \,
- + -c /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/gitlab-exporter/log] action create,
- - create new directory /opt/gitlab/sv/gitlab-exporter/log,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create,
- - create new directory /opt/gitlab/sv/gitlab-exporter/log/main,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create,
- - create new file /opt/gitlab/sv/gitlab-exporter/log/config,
- - update content in file /opt/gitlab/sv/gitlab-exporter/log/config from none to 623c00,
- --- /opt/gitlab/sv/gitlab-exporter/log/config 2021-08-24 02:12:54.464024974 +0000,
- +++ /opt/gitlab/sv/gitlab-exporter/log/.chef-config20210824-31-kiasli 2021-08-24 02:12:54.464024974 +0000,
- @@ -1,6 +1,12 @@,
- +s209715200,
- +n30,
- +t86400,
- +!gzip,
- +,
- +,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[verify_chown_persisted_on_gitlab-exporter] action create,
- - execute the ruby block verify_chown_persisted_on_gitlab-exporter,
- * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/gitlab-exporter/config] action create,
- - create symlink at /var/log/gitlab/gitlab-exporter/config to /opt/gitlab/sv/gitlab-exporter/log/config,
- * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create,
- - create new file /opt/gitlab/sv/gitlab-exporter/log/run,
- - update content in file /opt/gitlab/sv/gitlab-exporter/log/run from none to 690ab7,
- --- /opt/gitlab/sv/gitlab-exporter/log/run 2021-08-24 02:12:54.532024088 +0000,
- +++ /opt/gitlab/sv/gitlab-exporter/log/.chef-run20210824-31-1gpdw56 2021-08-24 02:12:54.532024088 +0000,
- @@ -1,2 +1,4 @@,
- +#!/bin/sh,
- +exec svlogd -tt /var/log/gitlab/gitlab-exporter,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/gitlab-exporter/env] action create,
- - create new directory /opt/gitlab/sv/gitlab-exporter/env,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/gitlab-exporter/control] action create,
- - create new directory /opt/gitlab/sv/gitlab-exporter/control,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * link[/opt/gitlab/init/gitlab-exporter] action create,
- - create symlink at /opt/gitlab/init/gitlab-exporter to /opt/gitlab/embedded/bin/sv,
- * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing),
- * ruby_block[restart_service] action run (skipped due to only_if),
- * ruby_block[reload_log_service] action create,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/gitlab-exporter] action create (up to date),
- * template[/opt/gitlab/sv/gitlab-exporter/run] action create (up to date),
- * directory[/opt/gitlab/sv/gitlab-exporter/log] action create (up to date),
- * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create (up to date),
- * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/gitlab-exporter/config] action create (up to date),
- * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/gitlab-exporter/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/gitlab-exporter/control] action create (up to date),
- * link[/opt/gitlab/init/gitlab-exporter] action create (up to date),
- * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/gitlab-exporter] action create,
- - create symlink at /opt/gitlab/service/gitlab-exporter to /opt/gitlab/sv/gitlab-exporter,
- * ruby_block[wait for gitlab-exporter service socket] action run,
- - execute the ruby block wait for gitlab-exporter service socket,
- - execute the ruby block reload_log_service,
- * ruby_block[restart_log_service] action run,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/gitlab-exporter] action create (up to date),
- * template[/opt/gitlab/sv/gitlab-exporter/run] action create (up to date),
- * directory[/opt/gitlab/sv/gitlab-exporter/log] action create (up to date),
- * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create (up to date),
- * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/gitlab-exporter/config] action create (up to date),
- * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/gitlab-exporter/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/gitlab-exporter/control] action create (up to date),
- * link[/opt/gitlab/init/gitlab-exporter] action create (up to date),
- * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/gitlab-exporter] action create (up to date),
- * ruby_block[wait for gitlab-exporter service socket] action run (skipped due to not_if),
- - execute the ruby block restart_log_service,
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/gitlab-exporter] action create (up to date),
- * ruby_block[wait for gitlab-exporter service socket] action run (skipped due to not_if),
- ,
- * execute[/opt/gitlab/bin/gitlab-ctl start gitlab-exporter] action run,
- [execute] ok: run: gitlab-exporter: (pid 677) 8s,
- - execute /opt/gitlab/bin/gitlab-ctl start gitlab-exporter,
- Recipe: monitoring::redis-exporter,
- * directory[/var/log/gitlab/redis-exporter] action create,
- - create new directory /var/log/gitlab/redis-exporter,
- - change mode from '' to '0700',
- - change owner from '' to 'gitlab-redis',
- * directory[/opt/gitlab/etc/redis-exporter/env] action create,
- - create new directory /opt/gitlab/etc/redis-exporter/env,
- - change mode from '' to '0700',
- - change owner from '' to 'gitlab-redis',
- * env_dir[/opt/gitlab/etc/redis-exporter/env] action create,
- * directory[/opt/gitlab/etc/redis-exporter/env] action create (up to date),
- * file[/opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR] action create,
- - create new file /opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR,
- - update content in file /opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR from none to 4f45cf,
- - suppressed sensitive resource,
- ,
- * service[redis-exporter] action nothing (skipped due to action :nothing),
- * runit_service[redis-exporter] action enable,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/redis-exporter] action create,
- - create new directory /opt/gitlab/sv/redis-exporter,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/redis-exporter/run] action create,
- - create new file /opt/gitlab/sv/redis-exporter/run,
- - update content in file /opt/gitlab/sv/redis-exporter/run from none to a21d3f,
- --- /opt/gitlab/sv/redis-exporter/run 2021-08-24 02:13:04.755891027 +0000,
- +++ /opt/gitlab/sv/redis-exporter/.chef-run20210824-31-1e2t50n 2021-08-24 02:13:04.755891027 +0000,
- @@ -1,8 +1,16 @@,
- +#!/bin/sh,
- +exec 2>&1,
- +,
- +umask 077,
- +exec chpst -P -e /opt/gitlab/etc/redis-exporter/env \,
- + -U gitlab-redis:git \,
- + -u gitlab-redis:git \,
- + /opt/gitlab/embedded/bin/redis_exporter --web.listen-address=localhost:9121 --redis.addr=unix:///var/opt/gitlab/redis/redis.socket,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/redis-exporter/log] action create,
- - create new directory /opt/gitlab/sv/redis-exporter/log,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/redis-exporter/log/main] action create,
- - create new directory /opt/gitlab/sv/redis-exporter/log/main,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/redis-exporter/log/config] action create,
- - create new file /opt/gitlab/sv/redis-exporter/log/config,
- - update content in file /opt/gitlab/sv/redis-exporter/log/config from none to 623c00,
- --- /opt/gitlab/sv/redis-exporter/log/config 2021-08-24 02:13:04.839889934 +0000,
- +++ /opt/gitlab/sv/redis-exporter/log/.chef-config20210824-31-nqigwo 2021-08-24 02:13:04.839889934 +0000,
- @@ -1,6 +1,12 @@,
- +s209715200,
- +n30,
- +t86400,
- +!gzip,
- +,
- +,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[verify_chown_persisted_on_redis-exporter] action create,
- - execute the ruby block verify_chown_persisted_on_redis-exporter,
- * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/redis-exporter/config] action create,
- - create symlink at /var/log/gitlab/redis-exporter/config to /opt/gitlab/sv/redis-exporter/log/config,
- * template[/opt/gitlab/sv/redis-exporter/log/run] action create,
- - create new file /opt/gitlab/sv/redis-exporter/log/run,
- - update content in file /opt/gitlab/sv/redis-exporter/log/run from none to 082dea,
- --- /opt/gitlab/sv/redis-exporter/log/run 2021-08-24 02:13:04.907889049 +0000,
- +++ /opt/gitlab/sv/redis-exporter/log/.chef-run20210824-31-q3hk9c 2021-08-24 02:13:04.907889049 +0000,
- @@ -1,2 +1,4 @@,
- +#!/bin/sh,
- +exec svlogd -tt /var/log/gitlab/redis-exporter,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/redis-exporter/env] action create,
- - create new directory /opt/gitlab/sv/redis-exporter/env,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/redis-exporter/control] action create,
- - create new directory /opt/gitlab/sv/redis-exporter/control,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * link[/opt/gitlab/init/redis-exporter] action create,
- - create symlink at /opt/gitlab/init/redis-exporter to /opt/gitlab/embedded/bin/sv,
- * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing),
- * ruby_block[restart_service] action run (skipped due to only_if),
- * ruby_block[reload_log_service] action create,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/redis-exporter] action create (up to date),
- * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date),
- * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date),
- * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date),
- * template[/opt/gitlab/sv/redis-exporter/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/redis-exporter/config] action create (up to date),
- * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/redis-exporter/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/redis-exporter/control] action create (up to date),
- * link[/opt/gitlab/init/redis-exporter] action create (up to date),
- * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/redis-exporter] action create,
- - create symlink at /opt/gitlab/service/redis-exporter to /opt/gitlab/sv/redis-exporter,
- * ruby_block[wait for redis-exporter service socket] action run,
- - execute the ruby block wait for redis-exporter service socket,
- - execute the ruby block reload_log_service,
- * ruby_block[restart_log_service] action run,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/redis-exporter] action create (up to date),
- * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date),
- * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date),
- * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date),
- * template[/opt/gitlab/sv/redis-exporter/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/redis-exporter/config] action create (up to date),
- * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/redis-exporter/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/redis-exporter/control] action create (up to date),
- * link[/opt/gitlab/init/redis-exporter] action create (up to date),
- * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/redis-exporter] action create (up to date),
- * ruby_block[wait for redis-exporter service socket] action run (skipped due to not_if),
- - execute the ruby block restart_log_service,
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/redis-exporter] action create (up to date),
- * ruby_block[wait for redis-exporter service socket] action run (skipped due to not_if),
- ,
- * execute[/opt/gitlab/bin/gitlab-ctl start redis-exporter] action run,
- [execute] ok: run: redis-exporter: (pid 692) 7s,
- - execute /opt/gitlab/bin/gitlab-ctl start redis-exporter,
- * consul_service[redis-exporter] action delete,
- * file[/var/opt/gitlab/consul/config.d/redis-exporter-service.json] action delete (up to date),
- (up to date),
- Recipe: monitoring::user,
- * account[Prometheus user and group] action create (up to date),
- Recipe: monitoring::prometheus,
- * directory[/var/opt/gitlab/prometheus] action create,
- - create new directory /var/opt/gitlab/prometheus,
- - change mode from '' to '0750',
- - change owner from '' to 'gitlab-prometheus',
- * directory[/var/opt/gitlab/prometheus/rules] action create,
- - create new directory /var/opt/gitlab/prometheus/rules,
- - change mode from '' to '0750',
- - change owner from '' to 'gitlab-prometheus',
- * directory[/var/log/gitlab/prometheus] action create,
- - create new directory /var/log/gitlab/prometheus,
- - change mode from '' to '0700',
- - change owner from '' to 'gitlab-prometheus',
- * directory[/opt/gitlab/etc/prometheus/env] action create,
- - create new directory /opt/gitlab/etc/prometheus/env,
- - change mode from '' to '0700',
- - change owner from '' to 'gitlab-prometheus',
- * env_dir[/opt/gitlab/etc/prometheus/env] action create,
- * directory[/opt/gitlab/etc/prometheus/env] action create (up to date),
- * file[/opt/gitlab/etc/prometheus/env/SSL_CERT_DIR] action create,
- - create new file /opt/gitlab/etc/prometheus/env/SSL_CERT_DIR,
- - update content in file /opt/gitlab/etc/prometheus/env/SSL_CERT_DIR from none to 4f45cf,
- - suppressed sensitive resource,
- ,
- * execute[reload prometheus] action nothing (skipped due to action :nothing),
- * file[Prometheus config] action create,
- - create new file /var/opt/gitlab/prometheus/prometheus.yml,
- - update content in file /var/opt/gitlab/prometheus/prometheus.yml from none to 6be477,
- --- /var/opt/gitlab/prometheus/prometheus.yml 2021-08-24 02:13:14.927758721 +0000,
- +++ /var/opt/gitlab/prometheus/.chef-prometheus20210824-31-1umcjo8.yml 2021-08-24 02:13:14.927758721 +0000,
- @@ -1,167 +1,334 @@,
- +---,
- +global:,
- + scrape_interval: 15s,
- + scrape_timeout: 15s,
- + external_labels: {},
- +remote_read: [],
- +remote_write: [],
- +rule_files:,
- +- "/var/opt/gitlab/prometheus/rules/*.rules",
- +scrape_configs:,
- +- job_name: prometheus,
- + static_configs:,
- + - targets:,
- + - localhost:9090,
- +- job_name: nginx,
- + static_configs:,
- + - targets:,
- + - localhost:8060,
- +- job_name: redis,
- + static_configs:,
- + - targets:,
- + - localhost:9121,
- +- job_name: postgres,
- + static_configs:,
- + - targets:,
- + - localhost:9187,
- +- job_name: gitlab-workhorse,
- + static_configs:,
- + - targets:,
- + - localhost:9229,
- +- job_name: gitlab-rails,
- + metrics_path: "/-/metrics",
- + static_configs:,
- + - targets:,
- + - 127.0.0.1:8080,
- + relabel_configs:,
- + - source_labels:,
- + - __address__,
- + regex: 127.0.0.1:(.*),
- + replacement: localhost:$1,
- + target_label: instance,
- +- job_name: gitlab-sidekiq,
- + static_configs:,
- + - targets:,
- + - 127.0.0.1:8082,
- + relabel_configs:,
- + - source_labels:,
- + - __address__,
- + regex: 127.0.0.1:(.*),
- + replacement: localhost:$1,
- + target_label: instance,
- +- job_name: gitlab_exporter_database,
- + metrics_path: "/database",
- + static_configs:,
- + - targets:,
- + - localhost:9168,
- +- job_name: gitlab_exporter_sidekiq,
- + metrics_path: "/sidekiq",
- + static_configs:,
- + - targets:,
- + - localhost:9168,
- +- job_name: gitlab_exporter_ruby,
- + metrics_path: "/ruby",
- + static_configs:,
- + - targets:,
- + - localhost:9168,
- +- job_name: gitaly,
- + static_configs:,
- + - targets:,
- + - localhost:9236,
- +- job_name: kubernetes-cadvisor,
- + scheme: https,
- + tls_config:,
- + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
- + insecure_skip_verify: true,
- + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token",
- + kubernetes_sd_configs:,
- + - role: node,
- + api_server: https://kubernetes.default.svc:443,
- + tls_config:,
- + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
- + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token",
- + relabel_configs:,
- + - action: labelmap,
- + regex: __meta_kubernetes_node_label_(.+),
- + - target_label: __address__,
- + replacement: kubernetes.default.svc:443,
- + - source_labels:,
- + - __meta_kubernetes_node_name,
- + regex: "(.+)",
- + target_label: __metrics_path__,
- + replacement: "/api/v1/nodes/${1}/proxy/metrics/cadvisor",
- + metric_relabel_configs:,
- + - source_labels:,
- + - pod_name,
- + target_label: environment,
- + regex: "(.+)-.+-.+",
- +- job_name: kubernetes-nodes,
- + scheme: https,
- + tls_config:,
- + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
- + insecure_skip_verify: true,
- + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token",
- + kubernetes_sd_configs:,
- + - role: node,
- + api_server: https://kubernetes.default.svc:443,
- + tls_config:,
- + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
- + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token",
- + relabel_configs:,
- + - action: labelmap,
- + regex: __meta_kubernetes_node_label_(.+),
- + - target_label: __address__,
- + replacement: kubernetes.default.svc:443,
- + - source_labels:,
- + - __meta_kubernetes_node_name,
- + regex: "(.+)",
- + target_label: __metrics_path__,
- + replacement: "/api/v1/nodes/${1}/proxy/metrics",
- + metric_relabel_configs:,
- + - source_labels:,
- + - pod_name,
- + target_label: environment,
- + regex: "(.+)-.+-.+",
- +- job_name: kubernetes-pods,
- + tls_config:,
- + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
- + insecure_skip_verify: true,
- + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token",
- + kubernetes_sd_configs:,
- + - role: pod,
- + api_server: https://kubernetes.default.svc:443,
- + tls_config:,
- + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
- + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token",
- + relabel_configs:,
- + - source_labels:,
- + - __meta_kubernetes_pod_annotation_prometheus_io_scrape,
- + action: keep,
- + regex: 'true',
- + - source_labels:,
- + - __meta_kubernetes_pod_annotation_prometheus_io_path,
- + action: replace,
- + target_label: __metrics_path__,
- + regex: "(.+)",
- + - source_labels:,
- + - __address__,
- + - __meta_kubernetes_pod_annotation_prometheus_io_port,
- + action: replace,
- + regex: "([^:]+)(?::[0-9]+)?;([0-9]+)",
- + replacement: "$1:$2",
- + target_label: __address__,
- + - action: labelmap,
- + regex: __meta_kubernetes_pod_label_(.+),
- + - source_labels:,
- + - __meta_kubernetes_namespace,
- + action: replace,
- + target_label: kubernetes_namespace,
- + - source_labels:,
- + - __meta_kubernetes_pod_name,
- + action: replace,
- + target_label: kubernetes_pod_name,
- +alerting:,
- + alertmanagers:,
- + - static_configs:,
- + - targets:,
- + - localhost:9093,
- - change mode from '' to '0644',
- - change owner from '' to 'gitlab-prometheus',
- * service[prometheus] action nothing (skipped due to action :nothing),
- * runit_service[prometheus] action enable,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/prometheus] action create,
- - create new directory /opt/gitlab/sv/prometheus,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/prometheus/run] action create,
- - create new file /opt/gitlab/sv/prometheus/run,
- - update content in file /opt/gitlab/sv/prometheus/run from none to 60f91b,
- --- /opt/gitlab/sv/prometheus/run 2021-08-24 02:13:15.047757161 +0000,
- +++ /opt/gitlab/sv/prometheus/.chef-run20210824-31-11uy6xw 2021-08-24 02:13:15.047757161 +0000,
- @@ -1,8 +1,16 @@,
- +#!/bin/sh,
- +exec 2>&1,
- +,
- +umask 077,
- +exec chpst -P -e /opt/gitlab/etc/prometheus/env \,
- + -U gitlab-prometheus:gitlab-prometheus \,
- + -u gitlab-prometheus:gitlab-prometheus \,
- + /opt/gitlab/embedded/bin/prometheus --web.listen-address=localhost:9090 --storage.tsdb.path=/var/opt/gitlab/prometheus/data --config.file=/var/opt/gitlab/prometheus/prometheus.yml,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/prometheus/log] action create,
- - create new directory /opt/gitlab/sv/prometheus/log,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/prometheus/log/main] action create,
- - create new directory /opt/gitlab/sv/prometheus/log/main,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/prometheus/log/config] action create,
- - create new file /opt/gitlab/sv/prometheus/log/config,
- - update content in file /opt/gitlab/sv/prometheus/log/config from none to 623c00,
- --- /opt/gitlab/sv/prometheus/log/config 2021-08-24 02:13:15.135756016 +0000,
- +++ /opt/gitlab/sv/prometheus/log/.chef-config20210824-31-rqwzn 2021-08-24 02:13:15.135756016 +0000,
- @@ -1,6 +1,12 @@,
- +s209715200,
- +n30,
- +t86400,
- +!gzip,
- +,
- +,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[verify_chown_persisted_on_prometheus] action create,
- - execute the ruby block verify_chown_persisted_on_prometheus,
- * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/prometheus/config] action create,
- - create symlink at /var/log/gitlab/prometheus/config to /opt/gitlab/sv/prometheus/log/config,
- * template[/opt/gitlab/sv/prometheus/log/run] action create,
- - create new file /opt/gitlab/sv/prometheus/log/run,
- - update content in file /opt/gitlab/sv/prometheus/log/run from none to 072b20,
- --- /opt/gitlab/sv/prometheus/log/run 2021-08-24 02:13:15.203755132 +0000,
- +++ /opt/gitlab/sv/prometheus/log/.chef-run20210824-31-drbt0k 2021-08-24 02:13:15.203755132 +0000,
- @@ -1,2 +1,4 @@,
- +#!/bin/sh,
- +exec svlogd -tt /var/log/gitlab/prometheus,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/prometheus/env] action create,
- - create new directory /opt/gitlab/sv/prometheus/env,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/prometheus/control] action create,
- - create new directory /opt/gitlab/sv/prometheus/control,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * link[/opt/gitlab/init/prometheus] action create,
- - create symlink at /opt/gitlab/init/prometheus to /opt/gitlab/embedded/bin/sv,
- * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing),
- * ruby_block[restart_service] action run (skipped due to only_if),
- * ruby_block[reload_log_service] action create,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/prometheus] action create (up to date),
- * template[/opt/gitlab/sv/prometheus/run] action create (up to date),
- * directory[/opt/gitlab/sv/prometheus/log] action create (up to date),
- * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date),
- * template[/opt/gitlab/sv/prometheus/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/prometheus/config] action create (up to date),
- * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/prometheus/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/prometheus/control] action create (up to date),
- * link[/opt/gitlab/init/prometheus] action create (up to date),
- * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/prometheus] action create,
- - create symlink at /opt/gitlab/service/prometheus to /opt/gitlab/sv/prometheus,
- * ruby_block[wait for prometheus service socket] action run,
- - execute the ruby block wait for prometheus service socket,
- - execute the ruby block reload_log_service,
- * ruby_block[restart_log_service] action run,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/prometheus] action create (up to date),
- * template[/opt/gitlab/sv/prometheus/run] action create (up to date),
- * directory[/opt/gitlab/sv/prometheus/log] action create (up to date),
- * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date),
- * template[/opt/gitlab/sv/prometheus/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/prometheus/config] action create (up to date),
- * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date),
- * directory[/opt/gitlab/sv/prometheus/env] action create (up to date),
- * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/prometheus/control] action create (up to date),
- * link[/opt/gitlab/init/prometheus] action create (up to date),
- * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/prometheus] action create (up to date),
- * ruby_block[wait for prometheus service socket] action run (skipped due to not_if),
- - execute the ruby block restart_log_service,
- * directory[/opt/gitlab/service] action create (up to date),
- * link[/opt/gitlab/service/prometheus] action create (up to date),
- * ruby_block[wait for prometheus service socket] action run (skipped due to not_if),
- ,
- * consul_service[prometheus] action delete,
- * file[/var/opt/gitlab/consul/config.d/prometheus-service.json] action delete (up to date),
- (up to date),
- * execute[/opt/gitlab/bin/gitlab-ctl start prometheus] action run,
- [execute] ok: run: prometheus: (pid 735) 2s,
- - execute /opt/gitlab/bin/gitlab-ctl start prometheus,
- * template[/var/opt/gitlab/prometheus/rules/gitlab.rules] action create,
- - create new file /var/opt/gitlab/prometheus/rules/gitlab.rules,
- - update content in file /var/opt/gitlab/prometheus/rules/gitlab.rules from none to a55956,
- --- /var/opt/gitlab/prometheus/rules/gitlab.rules 2021-08-24 02:13:28.899577114 +0000,
- +++ /var/opt/gitlab/prometheus/rules/.chef-gitlab20210824-31-u7pfy6.rules 2021-08-24 02:13:28.899577114 +0000,
- @@ -1,492 +1,984 @@,
- +---,
- +groups:,
- +- name: GitLab,
- + rules:,
- + - record: instance:puma_utilization:ratio,
- + expr: >,
- + sum by (instance) (,
- + puma_active_connections,
- + ) /,
- + sum by (instance) (,
- + puma_max_threads,
- + ),
- + - record: job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m,
- + expr: >,
- + sum by (job, route, method, code) (,
- + rate(gitlab_workhorse_http_request_duration_seconds_count[5m]),
- + ),
- +,
- + - alert: ServiceDown,
- + expr: avg_over_time(up[5m]) * 100 < 50,
- + annotations:,
- + description: The service {{ $labels.job }} instance {{ $labels.instance }} is,
- + not responding for more than 50% of the time for 5 minutes.,
- + summary: The service {{ $labels.job }} is not responding,
- + - alert: RedisDown,
- + expr: avg_over_time(redis_up[5m]) * 100 < 50,
- + annotations:,
- + description: The Redis service {{ $labels.job }} instance {{ $labels.instance,
- + }} is not responding for more than 50% of the time for 5 minutes.,
- + summary: The Redis service {{ $labels.job }} is not responding,
- + - alert: PostgresDown,
- + expr: avg_over_time(pg_up[5m]) * 100 < 50,
- + annotations:,
- + description: The Postgres service {{ $labels.job }} instance {{ $labels.instance,
- + }} is not responding for more than 50% of the time for 5 minutes.,
- + summary: The Postgres service {{ $labels.job }} is not responding,
- + - alert: PumaQueueing,
- + expr: avg_over_time(puma_queued_connections[30m]) > 1,
- + annotations:,
- + description: Puma instance {{ $labels.instance }} is queueing requests with,
- + an average of {{ $value | printf "%.1f" }} over the last 30 minutes.,
- + summary: Puma is queueing requests,
- + - alert: HighPumaUtilization,
- + expr: instance:puma_utilization:ratio * 100 > 90,
- + for: 60m,
- + annotations:,
- + description: Puma instance {{ $labels.instance }} has more than 90% thread utilization ({{ $value | printf "%.1f" }}%) over the last 60 minutes.,
- + summary: Puma is has high utilization,
- + - alert: SidekiqJobsQueuing,
- + expr: sum by (name) (sidekiq_queue_size) > 0,
- + for: 60m,
- + annotations:,
- + summary: Sidekiq has jobs queued,
- + description: Sidekiq queue {{ $labels.name }} has {{ $value }} jobs queued for 60 minutes.,
- + - alert: HighgRPCResourceExhaustedRate,
- + expr: >,
- + sum without (grpc_code, grpc_method, grpc_service, grpc_type) (,
- + rate(grpc_server_handled_total{grpc_code="ResourceExhausted"}[5m]),
- + ) /,
- + sum without (grpc_code, grpc_method, grpc_service, grpc_type) (,
- + rate(grpc_server_handled_total[5m]),
- + ) * 100 > 1,
- + for: 60m,
- + annotations:,
- + summary: High gRPC ResourceExhausted error rate,
- + description: Job {{ $labels.job }} instance {{ $labels.instance }} gRPC is returning more than 1% ({{ $value | printf "%.1f" }}%) ResourceExhausted errors over the last 60 minutes.,
- + - alert: PostgresDatabaseDeadlocks,
- + expr: increase(pg_stat_database_deadlocks[5m]) > 0,
- + annotations:,
- + summary: Postgres database has deadlocks,
- + description: Postgres database {{ $labels.instance }} had {{ $value | printf "%d" }} deadlocks in the last 5 minutes.,
- + - alert: PostgresDatabaseDeadlockCancels,
- + expr: increase(pg_stat_database_deadlocks[5m]) > 0,
- + annotations:,
- + summary: Postgres database has queries canceled due to deadlocks,
- + description: Postgres database {{ $labels.instance }} had {{ $value | printf "%d" }} queries canceled due to deadlocks in the last 5 minutes.,
- + # Low-traffic - < 10 QPS (600 RPM),
- + - alert: WorkhorseHighErrorRate,
- + expr: >,
- + (,
- + sum without (job, code) (,
- + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m{code=~"5.."},
- + ) /,
- + sum without (job,code) (,
- + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m,
- + ) < 10,
- + ) * 100 > 50,
- + annotations:,
- + summary: Workhorse has high error rates,
- + description: Workhorse route {{ $labels.route }} method {{ $labels.method }} has more than 50% errors ({{ $value | printf "%.1f" }}%) for the last 60 minutes.,
- + # High-traffic - >= 10 QPS (600 RPM),
- + - alert: WorkhorseHighErrorRate,
- + expr: >,
- + (,
- + sum without (job, code) (,
- + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m{code=~"5.."},
- + ) /,
- + sum without (job,code) (,
- + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m,
- + ) > 10,
- + ) * 100 > 10,
- + annotations:,
- + summary: Workhorse has high error rates,
- + description: Workhorse route {{ $labels.route }} method {{ $labels.method }} has more than 10% errors ({{ $value | printf "%.1f" }}%) for the last 60 minutes.,
- +,
- +###,
- +# These metrics are top-level GitLab Service Level Indicators (SLIs). They can,
- +# be used to monitor the overall health of a GitLab instance.,
- +- name: Service Level Indicators,
- + interval: 30s,
- + rules:,
- + # Service availability.,
- + - record: gitlab_sli:job:availability:ratio,
- + expr: >,
- + avg by (job) (,
- + avg_over_time(up[30s]),
- + ),
- + # Rails worker/thread capacity.,
- + - record: gitlab_sli:rails_active_connections:avg30s,
- + expr: >,
- + sum(avg_over_time(puma_active_connections[30s])),
- + - record: gitlab_sli:rails_queued_connections:avg30s,
- + expr: >,
- + sum(avg_over_time(puma_queued_connections[30s])),
- + - record: gitlab_sli:rails_active_connections:max30s,
- + expr: >,
- + sum(max_over_time(puma_active_connections[30s])),
- + - record: gitlab_sli:rails_queued_connections:max30s,
- + expr: >,
- + sum(max_over_time(puma_queued_connections[30s])),
- + - record: gitlab_sli:rails_workers:avg30s,
- + expr: >,
- + count(avg_over_time(ruby_memory_bytes[30s])) or,
- + sum(avg_over_time(puma_max_threads[30s])),
- + # Redis CPU use.,
- + - record: gitlab_sli:redis_cpu_seconds:rate1m,
- + expr: >,
- + (sum(rate(redis_used_cpu_sys[1m])) + sum(rate(redis_used_cpu_user[1m]))) or,
- + (sum(rate(redis_cpu_sys_seconds_total[1m])) + sum(rate(redis_cpu_user_seconds_total[1m]))),
- + # Workhorse traffic.,
- + - record: gitlab_sli:code_method_route:workhorse_http_request_count:rate1m,
- + expr: >,
- + sum by (code,method,route) (,
- + rate(gitlab_workhorse_http_request_duration_seconds_count[1m]),
- + ),
- + - record: gitlab_sli:code_method_route:workhorse_http_request_duration_seconds:rate1m,
- + expr: >,
- + sum by (code,method,route) (,
- + rate(gitlab_workhorse_http_request_duration_seconds_sum[1m]),
- + ),
- +# SLI - Apdex,
- +- name: Service Level Indicators - Apdex,
- + interval: 1m,
- + rules:,
- + # Gitaly goserver,
- + # Satisfied -> 0.5 seconds,
- + # Acceptable -> 1 seconds,
- + - record: gitlab_sli:gitlab_component_apdex:ratio,
- + labels:,
- + job: gitaly,
- + expr: >,
- + (,
- + sum(rate(grpc_server_handling_seconds_bucket{job="gitaly",grpc_type="unary",le="0.5",grpc_method!~"GarbageCollect|Fsck|RepackFull|RepackIncremental|CommitLanguages|CreateRepositoryFromURL|UserRebase|UserSquash|CreateFork|UserUpdateBranch|FindRemoteRepository|UserCherryPick|FetchRemote|UserRevert|FindRemoteRootRef"}[1m])),
- + +,
- + sum(rate(grpc_server_handling_seconds_bucket{job="gitaly",grpc_type="unary",le="1",grpc_method!~"GarbageCollect|Fsck|RepackFull|RepackIncremental|CommitLanguages|CreateRepositoryFromURL|UserRebase|UserSquash|CreateFork|UserUpdateBranch|FindRemoteRepository|UserCherryPick|FetchRemote|UserRevert|FindRemoteRootRef"}[1m])),
- + ),
- + /,
- + 2 / sum(rate(grpc_server_handling_seconds_count{job="gitaly",grpc_type="unary",grpc_method!~"GarbageCollect|Fsck|RepackFull|RepackIncremental|CommitLanguages|CreateRepositoryFromURL|UserRebase|UserSquash|CreateFork|UserUpdateBranch|FindRemoteRepository|UserCherryPick|FetchRemote|UserRevert|FindRemoteRootRef"}[1m])),
- + # Sidekiq TODO: https://gitlab.com/gitlab-org/gitlab-foss/issues/56752,
- + # - record: gitlab_sli:gitlab_component_apdex:ratio,
- + # labels:,
- + # job: gitlab-sidekiq,
- + # expr: >,
- + # (,
- + # sum(rate(sidekiq_jobs_completion_time_seconds_bucket{le="25"}[1m])),
- + # +,
- + # sum(rate(sidekiq_jobs_completion_time_seconds_bucket{le="50"}[1m])),
- + # ),
- + # / 2,
- + # /,
- + # sum(rate(sidekiq_jobs_completion_time_seconds_count[1m])),
- +,
- + # Workhorse,
- + # Satisfied -> 1 seconds,
- + # Acceptable -> 10 seconds,
- + - record: gitlab_sli:gitlab_component_apdex:ratio,
- + labels:,
- + job: gitlab-workhorse,
- + expr: >,
- + (,
- + sum(rate(gitlab_workhorse_http_request_duration_seconds_bucket{le="1",route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m])),
- + +,
- + sum(rate(gitlab_workhorse_http_request_duration_seconds_bucket{le="10",route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m])),
- + ),
- + /,
- + 2 / sum(rate(gitlab_workhorse_http_request_duration_seconds_count{route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m])),
- +,
- +# SLI - Errors,
- +- name: Service Level Indicators - Errors,
- + interval: 1m,
- + rules:,
- + # PostgreSQL,
- + - record: gitlab_sli:gitlab_component_ops:rate,
- + labels:,
- + job: postgres,
- + expr: >,
- + sum(rate(pg_stat_database_xact_commit[1m])) +,
- + sum(rate(pg_stat_database_xact_rollback[1m])),
- + - record: gitlab_sli:gitlab_component_errors:rate,
- + labels:,
- + job: postgres,
- + expr: sum(rate(pg_stat_database_xact_rollback[1m])),
- + # Rails (Puma),
- + - record: gitlab_sli:gitlab_component_ops:rate,
- + labels:,
- + job: gitlab-rails,
- + expr: >,
- + sum(,
- + rate(http_request_duration_seconds_count{job="gitlab-rails"}[1m]),
- + ),
- + - record: gitlab_sli:gitlab_component_errors:rate,
- + labels:,
- + job: gitlab-rails,
- + expr: >,
- + sum(,
- + rate(http_request_duration_seconds_count{job="gitlab-rails",status=~"5.."}[1m]),
- + ),
- + # Sidekiq TODO: https://gitlab.com/gitlab-org/gitlab-foss/issues/56752,
- + # - record: gitlab_sli:gitlab_component_ops:rate,
- + # labels:,
- + # job: gitlab-sidekiq,
- + # expr: >,
- + # sum (,
- + # rate(sidekiq_jobs_started_total{job="gitlab-sidekiq"}[1m]),
- + # ),
- + # - record: gitlab_sli:gitlab_component_errors:rate,
- + # labels:,
- + # job: gitlab-sidekiq,
- + # expr: >,
- + # sum (,
- + # rate(sidekiq_jobs_failed_total{job="gitlab-sidekiq"}[1m]),
- + # ),
- + # Workhorse,
- + - record: gitlab_sli:gitlab_component_ops:rate,
- + labels:,
- + job: gitlab-workhorse,
- + expr: >,
- + sum(,
- + rate(gitlab_workhorse_http_requests_total{job="gitlab-workhorse"}[1m]),
- + ),
- + - record: gitlab_sli:gitlab_component_errors:rate,
- + labels:,
- + job: gitlab-workhorse,
- + expr: >,
- + sum(,
- + rate(gitlab_workhorse_http_requests_total{job="gitlab-workhorse",code=~"5.."}[1m]),
- + ),
- + ###,
- + # Calculate service error ratios,
- + - record: gitlab_sli:gitlab_component_errors:ratio,
- + expr: >,
- + gitlab_sli:gitlab_component_errors:rate /,
- + gitlab_sli:gitlab_component_ops:rate,
- +,
- +- name: GitLab Saturation Ratios,
- + interval: 1m,
- + rules:,
- + # type: *, component: cpu,
- + # this measures average CPU across all the cores for the entire fleet for the given service,
- + - record: gitlab_sli:gitlab_component_saturation:ratio,
- + labels:,
- + component: 'cpu',
- + expr: >,
- + avg(1 - rate(node_cpu_seconds_total{mode="idle"}[1m])),
- +,
- + # type: *, component: single_node_cpu,
- + # this measures the maximum cpu availability across all the codes on a single server,
- + # this can be helpful if CPU is not even distributed across the fleet.,
- + - record: gitlab_sli:gitlab_component_saturation:ratio,
- + labels:,
- + component: 'single_node_cpu',
- + expr: >,
- + max(,
- + avg(1 - rate(node_cpu_seconds_total{mode="idle"}[1m])),
- + ),
- +,
- + - record: gitlab_sli:gitlab_component_saturation:ratio,
- + labels:,
- + component: 'disk_space',
- + expr: >,
- + max(,
- + (,
- + (,
- + node_filesystem_size_bytes{fstype=~"ext.|xfs|nfs.?"},
- + -,
- + node_filesystem_free_bytes{fstype=~"ext.|xfs|nfs.?"},
- + ),
- + /,
- + node_filesystem_size_bytes{fstype=~"ext.|xfs|nfs.?"},
- + ),
- + ),
- +,
- + - record: gitlab_sli:gitlab_component_saturation:ratio,
- + labels:,
- + component: 'memory',
- + expr: max (instance:node_memory_utilization:ratio),
- +,
- + - record: gitlab_sli:gitlab_component_saturation:ratio,
- + labels:,
- + component: 'single_threaded_cpu',
- + expr: >,
- + clamp_max(,
- + max (,
- + (rate(redis_cpu_user_seconds_total[1m]) + rate(redis_cpu_sys_seconds_total[1m])) or,
- + (rate(redis_used_cpu_user[1m]) + rate(redis_used_cpu_sys[1m])),
- + ),,
- + 1,
- + ),
- +,
- + - record: gitlab_sli:gitlab_component_saturation:ratio,
- + labels:,
- + component: 'connection_pool',
- + expr: >,
- + clamp_max(,
- + max(,
- + max_over_time(pgbouncer_pools_server_active_connections{user="gitlab"}[1m]) /,
- + (,
- + (,
- + pgbouncer_pools_server_idle_connections{user="gitlab"} +,
- + pgbouncer_pools_server_active_connections{user="gitlab"} +,
- + pgbouncer_pools_server_testing_connections{user="gitlab"} +,
- + pgbouncer_pools_server_used_connections{user="gitlab"} +,
- + pgbouncer_pools_server_login_connections{user="gitlab"},
- + ),
- + > 0,
- + ),
- + ), 1),
- +,
- + # type: postgres-delayed, postgres-archive, patroni,
- + - record: gitlab_sli:gitlab_component_saturation:ratio,
- + labels:,
- + component: 'active_db_connections',
- + expr: >,
- + clamp_max(,
- + max(,
- + sum without(state) (pg_stat_activity_count{datname="gitlabhq_production", state!="idle"}),
- + /,
- + (sum without(state) (pg_stat_activity_count{datname="gitlabhq_production"}) > 0),
- + ), 1),
- +,
- + # type: redis, redis-cache, component: redis_clients,
- + # Records the saturation of redis client connections against a redis fleet,
- + - record: gitlab_sli:gitlab_component_saturation:ratio,
- + labels:,
- + component: 'redis_clients',
- + expr: >,
- + max(,
- + max_over_time(redis_connected_clients[1m]),
- + /,
- + redis_config_maxclients,
- + ),
- +,
- + # Aggregate over all components within a service using max,
- + - record: gitlab_sli:gitlab_service_saturation:ratio,
- + expr: >,
- + max by (component) (gitlab_sli:gitlab_component_saturation:ratio),
- +,
- + # Calculate the "sapdex" - the saturation apdex for the metric. 1 < less then soft limit, 0.5 < hard limit, else 0,
- + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex,
- + expr: >,
- + clamp_min(gitlab_sli:gitlab_component_saturation:ratio <= on(component) group_left slo:max:soft:gitlab_sli:gitlab_component_saturation:ratio, 1),
- + or,
- + clamp_min(clamp_max(gitlab_sli:gitlab_component_saturation:ratio > on(component) group_left slo:max:soft:gitlab_sli:gitlab_component_saturation:ratio, 0.5), 0.5),
- + or,
- + clamp_max(gitlab_sli:gitlab_component_saturation:ratio > on(component) group_left slo:max:hard:gitlab_sli:gitlab_component_saturation:ratio, 0),
- +,
- + # Open file descriptors,
- + - record: gitlab_sli:gitlab_component_saturation:ratio,
- + labels:,
- + component: 'open_fds',
- + expr: >,
- + max(,
- + max_over_time(process_open_fds[1m]),
- + /,
- + max_over_time(process_max_fds[1m]),
- + ),
- + - record: gitlab_sli:gitlab_component_saturation:ratio,
- + labels:,
- + component: 'open_ruby_fds',
- + expr: >,
- + max(,
- + max_over_time(ruby_file_descriptors[1m]),
- + /,
- + max_over_time(ruby_process_max_fds[1m]),
- + ),
- +,
- +# Unlike other service metrics, we record the stats for each component independently,
- +- name: GitLab Saturation Ratios Stats,
- + interval: 5m,
- + rules:,
- + # Average values for each service, over a week,
- + - record: gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w,
- + expr: >,
- + avg_over_time(gitlab_sli:gitlab_component_saturation:ratio[1w]),
- +,
- + # Using linear week-on-week growth, what prediction to we have for 2w from now?,
- + - record: gitlab_sli:gitlab_component_saturation:ratio:predict_linear_2w,
- + expr: >,
- + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w[1w], 86400 * 14),
- +,
- + # Using linear week-on-week growth, what prediction to we have for 30d from now?,
- + - record: gitlab_sli:gitlab_component_saturation:ratio:predict_linear_30d,
- + expr: >,
- + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w[1w], 86400 * 30),
- +,
- + # Sapdex, average for week,
- + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w,
- + expr: >,
- + avg_over_time(gitlab_sli:gitlab_component_saturation:ratio:sapdex[1w]),
- +,
- + # Sapdex long term trend forecasting,
- + # Using linear week-on-week growth, what prediction to we have for 30d from now?,
- + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w:predict_linear_30d,
- + expr: >,
- + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w[1w], 86400 * 30),
- +,
- +###,
- +# Metrics used by Usage Ping reports. These are primarily for self-managed installations.,
- +# See https://docs.gitlab.com/ee/development/telemetry/usage_ping.html#prometheus-queries,
- +#,
- +- name: GitLab Usage Ping,
- + interval: 5m,
- + rules:,
- + ###,
- + # Application wide metrics,
- + #,
- + - record: gitlab_usage_ping:ops:rate5m,
- + labels:,
- + service: workhorse,
- + component: http_requests,
- + expr: sum (rate (gitlab_workhorse_http_requests_total[5m])),
- +,
- + # Database Primary Performance Indicator: Query apdex,
- + # Target -> 100ms,
- + # Tolerable -> 250ms,
- + - record: gitlab_usage_ping:sql_duration_apdex:ratio_rate5m,
- + expr: >,
- + (,
- + sum(rate(gitlab_sql_duration_seconds_bucket{le="0.1"}[5m])),
- + +,
- + sum(rate(gitlab_sql_duration_seconds_bucket{le="0.25"}[5m])),
- + ),
- + /,
- + 2,
- + /,
- + (,
- + sum(rate(gitlab_sql_duration_seconds_count[5m])) > 0,
- + ),
- +,
- + - record: gitlab_usage_ping:gitaly_apdex:ratio_avg_over_time_5m,
- + expr: avg_over_time(gitlab_sli:gitlab_component_apdex:ratio{job="gitaly"}[5m]),
- +,
- + ###,
- + # Node level metrics,
- + #,
- + - record: gitlab_usage_ping:node_cpus:count,
- + expr: max (instance:node_cpus:count) by (instance),
- + - record: gitlab_usage_ping:node_memory_total_bytes:max,
- + expr: max (node_memory_MemTotal_bytes) by (instance),
- + - record: gitlab_usage_ping:node_cpu_utilization:avg,
- + expr: avg (instance:node_cpu_utilization:ratio) by (instance),
- + - record: gitlab_usage_ping:node_memory_utilization:avg,
- + expr: avg (instance:node_memory_utilization:ratio) by (instance),
- +,
- + ###,
- + # Service level metrics,
- + #,
- + - record: gitlab_usage_ping:node_service_process_resident_memory_bytes:avg,
- + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_resident_memory_bytes", job != "gitlab_exporter_process"}),
- + - record: gitlab_usage_ping:node_service_process_unique_memory_bytes:avg,
- + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_unique_memory_bytes", job != "gitlab_exporter_process"}),
- + - record: gitlab_usage_ping:node_service_process_proportional_memory_bytes:avg,
- + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_proportional_memory_bytes", job != "gitlab_exporter_process"}),
- + - record: gitlab_usage_ping:node_service_process:count,
- + expr: >,
- + count by (instance, job) (,
- + {__name__ =~ "(ruby_){0,1}process_start_time_seconds", job != "gitlab_exporter_process"},
- + ),
- + - record: gitlab_usage_ping:node_service_app_server_workers:sum,
- + labels:,
- + server: puma,
- + expr: sum by (instance, job) (puma_workers),
- - change mode from '' to '0644',
- - change owner from '' to 'gitlab-prometheus',
- * template[/var/opt/gitlab/prometheus/rules/node.rules] action create,
- - create new file /var/opt/gitlab/prometheus/rules/node.rules,
- - update content in file /var/opt/gitlab/prometheus/rules/node.rules from none to bea78d,
- --- /var/opt/gitlab/prometheus/rules/node.rules 2021-08-24 02:13:29.107574412 +0000,
- +++ /var/opt/gitlab/prometheus/rules/.chef-node20210824-31-1t0d8bf.rules 2021-08-24 02:13:29.107574412 +0000,
- @@ -1,42 +1,84 @@,
- +groups:,
- +- name: Node,
- + rules:,
- + - record: instance:node_cpus:count,
- + expr: count without(cpu, mode) (node_cpu{mode="idle"}),
- + - record: instance:node_cpus:count,
- + expr: count without(cpu, mode) (node_cpu_seconds_total{mode="idle"}),
- + - record: instance_cpu:node_cpu_seconds_not_idle:rate5m,
- + expr: sum without(mode) (rate(node_cpu{mode!="idle"}[5m])),
- + - record: instance_cpu:node_cpu_seconds_not_idle:rate5m,
- + expr: sum without(mode) (rate(node_cpu_seconds_total{mode!="idle"}[5m])),
- + - record: instance_mode:node_cpu_seconds:rate5m,
- + expr: sum without(cpu) (rate(node_cpu[5m])),
- + - record: instance_mode:node_cpu_seconds:rate5m,
- + expr: sum without(cpu) (rate(node_cpu_seconds_total[5m])),
- + - record: instance:node_cpu_utilization:ratio,
- + expr: sum without(mode) (instance_mode:node_cpu_seconds:rate5m{mode!="idle"}),
- + / instance:node_cpus:count,
- + - record: instance:node_memory_utilization:ratio,
- + expr: >,
- + 1 - (,
- + node_memory_MemAvailable_bytes or,
- + (node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes),
- + ) / node_memory_MemTotal_bytes,
- + - record: instance:node_filesystem_avail:ratio,
- + expr: node_filesystem_avail_bytes / (node_filesystem_size_bytes > 0),
- + - alert: FilesystemAlmostFull,
- + expr: instance:node_filesystem_avail:ratio * 100 < 5 and node_filesystem_avail_bytes < 10 * 1024 * 1024 * 1024,
- + for: 10m,
- + annotations:,
- + description: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} on,
- + {{ $labels.instance }} has {{ $value | printf "%.2f" }}% space available.,
- + summary: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} is almost,
- + full,
- + - alert: FilesystemFullIn1Day,
- + expr: predict_linear(node_filesystem_avail_bytes[6h], 24 * 3600) < 0,
- + for: 30m,
- + annotations:,
- + description: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} on,
- + {{ $labels.instance }} will be full in the next 24 hours.,
- + summary: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} will be,
- + full within 24 hours,
- - change mode from '' to '0644',
- - change owner from '' to 'gitlab-prometheus',
- Recipe: monitoring::alertmanager,
- * directory[/var/opt/gitlab/alertmanager] action create,
- - create new directory /var/opt/gitlab/alertmanager,
- - change mode from '' to '0750',
- - change owner from '' to 'gitlab-prometheus',
- * directory[/var/log/gitlab/alertmanager] action create,
- - create new directory /var/log/gitlab/alertmanager,
- - change mode from '' to '0700',
- - change owner from '' to 'gitlab-prometheus',
- * directory[/opt/gitlab/etc/alertmanager/env] action create,
- - create new directory /opt/gitlab/etc/alertmanager/env,
- - change mode from '' to '0700',
- - change owner from '' to 'gitlab-prometheus',
- * env_dir[/opt/gitlab/etc/alertmanager/env] action create,
- * directory[/opt/gitlab/etc/alertmanager/env] action create (up to date),
- * file[/opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR] action create,
- - create new file /opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR,
- - update content in file /opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR from none to 4f45cf,
- - suppressed sensitive resource,
- ,
- * file[Alertmanager config] action create,
- - create new file /var/opt/gitlab/alertmanager/alertmanager.yml,
- - update content in file /var/opt/gitlab/alertmanager/alertmanager.yml from none to 21b7be,
- --- /var/opt/gitlab/alertmanager/alertmanager.yml 2021-08-24 02:13:29.259572437 +0000,
- +++ /var/opt/gitlab/alertmanager/.chef-alertmanager20210824-31-17k2fjf.yml 2021-08-24 02:13:29.259572437 +0000,
- @@ -1,9 +1,18 @@,
- +---,
- +global: {},
- +templates: [],
- +route:,
- + receiver: default-receiver,
- + routes: [],
- +receivers:,
- +- name: default-receiver,
- +inhibit_rules: [],
- - change mode from '' to '0644',
- - change owner from '' to 'gitlab-prometheus',
- * service[alertmanager] action nothing (skipped due to action :nothing),
- * runit_service[alertmanager] action enable,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/alertmanager] action create,
- - create new directory /opt/gitlab/sv/alertmanager,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/alertmanager/run] action create,
- - create new file /opt/gitlab/sv/alertmanager/run,
- - update content in file /opt/gitlab/sv/alertmanager/run from none to 36da8b,
- --- /opt/gitlab/sv/alertmanager/run 2021-08-24 02:13:29.367571034 +0000,
- +++ /opt/gitlab/sv/alertmanager/.chef-run20210824-31-n2k8iy 2021-08-24 02:13:29.363571086 +0000,
- @@ -1,8 +1,16 @@,
- +#!/bin/sh,
- +exec 2>&1,
- +,
- +umask 077,
- +exec chpst -P -e /opt/gitlab/etc/alertmanager/env \,
- + -U gitlab-prometheus:gitlab-prometheus \,
- + -u gitlab-prometheus:gitlab-prometheus \,
- + /opt/gitlab/embedded/bin/alertmanager --web.listen-address=localhost:9093 --storage.path=/var/opt/gitlab/alertmanager/data --config.file=/var/opt/gitlab/alertmanager/alertmanager.yml,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/alertmanager/log] action create,
- - create new directory /opt/gitlab/sv/alertmanager/log,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/alertmanager/log/main] action create,
- - create new directory /opt/gitlab/sv/alertmanager/log/main,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * template[/opt/gitlab/sv/alertmanager/log/config] action create,
- - create new file /opt/gitlab/sv/alertmanager/log/config,
- - update content in file /opt/gitlab/sv/alertmanager/log/config from none to 623c00,
- --- /opt/gitlab/sv/alertmanager/log/config 2021-08-24 02:13:29.459569838 +0000,
- +++ /opt/gitlab/sv/alertmanager/log/.chef-config20210824-31-k4p2s6 2021-08-24 02:13:29.459569838 +0000,
- @@ -1,6 +1,12 @@,
- +s209715200,
- +n30,
- +t86400,
- +!gzip,
- +,
- +,
- - change mode from '' to '0644',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[verify_chown_persisted_on_alertmanager] action create,
- - execute the ruby block verify_chown_persisted_on_alertmanager,
- * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/alertmanager/config] action create,
- - create symlink at /var/log/gitlab/alertmanager/config to /opt/gitlab/sv/alertmanager/log/config,
- * template[/opt/gitlab/sv/alertmanager/log/run] action create,
- - create new file /opt/gitlab/sv/alertmanager/log/run,
- - update content in file /opt/gitlab/sv/alertmanager/log/run from none to 2feab9,
- --- /opt/gitlab/sv/alertmanager/log/run 2021-08-24 02:13:29.531568903 +0000,
- +++ /opt/gitlab/sv/alertmanager/log/.chef-run20210824-31-kvpj8u 2021-08-24 02:13:29.531568903 +0000,
- @@ -1,2 +1,4 @@,
- +#!/bin/sh,
- +exec svlogd -tt /var/log/gitlab/alertmanager,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * directory[/opt/gitlab/sv/alertmanager/env] action create,
- - create new directory /opt/gitlab/sv/alertmanager/env,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if),
- * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if),
- * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if),
- * directory[/opt/gitlab/sv/alertmanager/control] action create,
- - create new directory /opt/gitlab/sv/alertmanager/control,
- - change mode from '' to '0755',
- - change owner from '' to 'root',
- - change group from '' to 'root',
- * link[/opt/gitlab/init/alertmanager] action create,
- - create symlink at /opt/gitlab/init/alertmanager to /opt/gitlab/embedded/bin/sv,
- * file[/opt/gitlab/sv/alertmanager/down] action nothing (skipped due to action :nothing),
- * ruby_block[restart_service] action run (skipped due to only_if),
- * ruby_block[reload_log_service] action create,
- * ruby_block[restart_service] action nothing (skipped due to action :nothing),
- * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
- * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
- * directory[/opt/gitlab/sv/alertmanager] action create (up to date),
- * template[/opt/gitlab/sv/alertmanager/run] action create (up to date),
- * directory[/opt/gitlab/sv/alertmanager/log] action create (up to date),
- * directory[/opt/gitlab/sv/alertmanager/log/main] action create (up to date),
- * template[/opt/gitlab/sv/alertmanager/log/config] action create (up to date),
- * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing),
- * link[/var/log/gitlab/alertmanager/config] action create (up to date),
- * template[/opt/gitlab/sv/alertmanager/log/run] action create
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement