Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2021
2,391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 331.84 KB | None | 0 0
  1. Thank you for using GitLab Docker Image!,
  2. Current version: gitlab-ce=14.2.0-ce.0,
  3. ,
  4. Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file,
  5. And restart this container to reload settings.,
  6. To do it use docker exec:,
  7. ,
  8. docker exec -it gitlab editor /etc/gitlab/gitlab.rb,
  9. docker restart gitlab,
  10. ,
  11. For a comprehensive list of configuration options please see the Omnibus GitLab readme,
  12. https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md,
  13. ,
  14. If this container fails to start due to permission problems try to fix it by executing:,
  15. ,
  16. docker exec -it gitlab update-permissions,
  17. docker restart gitlab,
  18. ,
  19. Cleaning stale PIDs & sockets,
  20. Preparing services...,
  21. Starting services...,
  22. Configuring GitLab...,
  23. Starting Chef Infra Client, version 15.14.0,
  24. resolving cookbooks for run list: ["gitlab"],
  25. Synchronizing Cookbooks:,
  26. - gitlab (0.0.1),
  27. - package (0.1.0),
  28. - logrotate (0.1.0),
  29. - postgresql (0.1.0),
  30. - redis (0.1.0),
  31. - monitoring (0.1.0),
  32. - registry (0.1.0),
  33. - mattermost (0.1.0),
  34. - consul (0.1.0),
  35. - gitaly (0.1.0),
  36. - praefect (0.1.0),
  37. - gitlab-kas (0.1.0),
  38. - gitlab-pages (0.1.0),
  39. - letsencrypt (0.1.0),
  40. - nginx (0.1.0),
  41. - runit (5.1.3),
  42. - acme (4.1.3),
  43. - crond (0.1.0),
  44. Installing Cookbook Gems:,
  45. mpiling Cookbooks...,
  46. Recipe: gitlab::default,
  47. * directory[/etc/gitlab] action create (up to date),
  48. Converging 274 resources,
  49. * directory[/etc/gitlab] action create (up to date),
  50. * directory[Create /var/opt/gitlab] action create (up to date),
  51. * directory[Create /var/log/gitlab] action create (up to date),
  52. * directory[/opt/gitlab/embedded/etc] action create,
  53. - create new directory /opt/gitlab/embedded/etc,
  54. - change mode from '' to '0755',
  55. - change owner from '' to 'root',
  56. - change group from '' to 'root',
  57. * template[/opt/gitlab/embedded/etc/gitconfig] action create,
  58. - create new file /opt/gitlab/embedded/etc/gitconfig,
  59. - update content in file /opt/gitlab/embedded/etc/gitconfig from none to 5a725a,
  60. --- /opt/gitlab/embedded/etc/gitconfig 2021-08-24 02:07:10.660558888 +0000,
  61. +++ /opt/gitlab/embedded/etc/.chef-gitconfig20210824-31-g9pc9o 2021-08-24 02:07:10.660558888 +0000,
  62. @@ -1,16 +1,32 @@,
  63. +[pack],
  64. + threads = 1,
  65. +[receive],
  66. + fsckObjects = true,
  67. +advertisePushOptions = true,
  68. +[repack],
  69. + writeBitmaps = true,
  70. +[transfer],
  71. + hideRefs=^refs/tmp/,
  72. +hideRefs=^refs/keep-around/,
  73. +hideRefs=^refs/remotes/,
  74. +[core],
  75. + alternateRefsCommand="exit 0 #",
  76. +fsyncObjectFiles = true,
  77. +[fetch],
  78. + writeCommitGraph = true,
  79. - change mode from '' to '0755',
  80. Recipe: gitlab::web-server,
  81. * account[Webserver user and group] action create (up to date),
  82. Recipe: gitlab::users,
  83. * directory[/var/opt/gitlab] action create (up to date),
  84. * account[GitLab user and group] action create (up to date),
  85. * template[/var/opt/gitlab/.gitconfig] action create (up to date),
  86. * directory[/var/opt/gitlab/.bundle] action create (up to date),
  87. Recipe: gitlab::gitlab-shell,
  88. * storage_directory[/var/opt/gitlab/.ssh] action create,
  89. * ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if),
  90. (up to date),
  91. * directory[/var/log/gitlab/gitlab-shell/] action create (up to date),
  92. * directory[/var/opt/gitlab/gitlab-shell] action create (up to date),
  93. * templatesymlink[Create a config.yml and create a symlink to Rails root] action create,
  94. * template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date),
  95. * link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create,
  96. - create symlink at /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml,
  97. ,
  98. * link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create,
  99. - create symlink at /opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret to /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret,
  100. * file[/var/opt/gitlab/.ssh/authorized_keys] action create_if_missing (up to date),
  101. Recipe: gitlab::gitlab-rails,
  102. * storage_directory[/var/opt/gitlab/git-data] action create,
  103. * ruby_block[directory resource: /var/opt/gitlab/git-data] action run (skipped due to not_if),
  104. (up to date),
  105. * storage_directory[/var/opt/gitlab/git-data/repositories] action create,
  106. * ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run (skipped due to not_if),
  107. (up to date),
  108. Recipe: gitlab::rails_pages_shared_path,
  109. * storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create,
  110. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if),
  111. (up to date),
  112. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create,
  113. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if),
  114. (up to date),
  115. Recipe: gitlab::gitlab-rails,
  116. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create,
  117. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if),
  118. (up to date),
  119. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/external-diffs] action create,
  120. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/external-diffs] action run (skipped due to not_if),
  121. (up to date),
  122. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create,
  123. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if),
  124. (up to date),
  125. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/packages] action create,
  126. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/packages] action run (skipped due to not_if),
  127. (up to date),
  128. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action create,
  129. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action run (skipped due to not_if),
  130. (up to date),
  131. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/terraform_state] action create,
  132. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/terraform_state] action run (skipped due to not_if),
  133. (up to date),
  134. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action create,
  135. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/encrypted_settings] action run (skipped due to not_if),
  136. (up to date),
  137. * storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create,
  138. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if),
  139. (up to date),
  140. * storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create,
  141. * ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if),
  142. (up to date),
  143. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create,
  144. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if),
  145. (up to date),
  146. * storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create,
  147. * ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run (skipped due to not_if),
  148. (up to date),
  149. * storage_directory[/opt/gitlab/embedded/service/gitlab-rails/public] action create (skipped due to only_if),
  150. * directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date),
  151. * directory[create /opt/gitlab/etc/gitlab-rails] action create,
  152. - create new directory /opt/gitlab/etc/gitlab-rails,
  153. - change mode from '' to '0700',
  154. - change owner from '' to 'git',
  155. * directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date),
  156. * directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date),
  157. * directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date),
  158. * directory[create /var/log/gitlab/gitlab-rails] action create (up to date),
  159. * storage_directory[/var/opt/gitlab/backups] action create,
  160. * ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if),
  161. (up to date),
  162. * directory[/var/opt/gitlab/gitlab-rails] action create (up to date),
  163. * directory[/var/opt/gitlab/gitlab-ci] action create (up to date),
  164. * file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if),
  165. * template[/opt/gitlab/etc/gitlab-rails-rc] action create,
  166. - create new file /opt/gitlab/etc/gitlab-rails-rc,
  167. - update content in file /opt/gitlab/etc/gitlab-rails-rc from none to 7b16c8,
  168. --- /opt/gitlab/etc/gitlab-rails-rc 2021-08-24 02:07:13.516520629 +0000,
  169. +++ /opt/gitlab/etc/.chef-gitlab-rails-rc20210824-31-1ks0549 2021-08-24 02:07:13.516520629 +0000,
  170. @@ -1,5 +1,10 @@,
  171. +gitlab_user='git',
  172. +gitlab_group='git',
  173. +registry_dir='',
  174. +registry_user='registry',
  175. +registry_group='registry',
  176. - change mode from '' to '0644',
  177. - change owner from '' to 'root',
  178. - change group from '' to 'root',
  179. * file[/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc] action delete (up to date),
  180. * file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date),
  181. * file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date),
  182. * templatesymlink[Create a database.yml and create a symlink to Rails root] action create,
  183. * template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create,
  184. - update content in file /var/opt/gitlab/gitlab-rails/etc/database.yml from 35aaf2 to 9cd048,
  185. --- /var/opt/gitlab/gitlab-rails/etc/database.yml 2021-08-24 01:46:43.980012861 +0000,
  186. +++ /var/opt/gitlab/gitlab-rails/etc/.chef-database20210824-31-1rxw3bt.yml 2021-08-24 02:07:13.752517468 +0000,
  187. @@ -3,29 +3,30 @@,
  188. # and run `sudo gitlab-ctl reconfigure`.,
  189. ,
  190. production:,
  191. - adapter: postgresql,
  192. - encoding: unicode,
  193. - collation: ,
  194. - database: gitlabhq_production,
  195. - username: "gitlab",
  196. - password: ,
  197. - host: "/var/opt/gitlab/postgresql",
  198. - port: 5432,
  199. - socket: ,
  200. - sslmode: ,
  201. - sslcompression: 0,
  202. - sslrootcert: ,
  203. - sslca: ,
  204. - load_balancing: {"hosts":[]},
  205. - prepared_statements: false,
  206. - statement_limit: 1000,
  207. - connect_timeout: ,
  208. - keepalives: ,
  209. - keepalives_idle: ,
  210. - keepalives_interval: ,
  211. - keepalives_count: ,
  212. - tcp_user_timeout: ,
  213. - application_name: ,
  214. - variables:,
  215. - statement_timeout: ,
  216. + main:,
  217. + adapter: postgresql,
  218. + encoding: unicode,
  219. + collation: ,
  220. + database: gitlabhq_production,
  221. + username: "gitlab",
  222. + password: ,
  223. + host: "/var/opt/gitlab/postgresql",
  224. + port: 5432,
  225. + socket: ,
  226. + sslmode: ,
  227. + sslcompression: 0,
  228. + sslrootcert: ,
  229. + sslca: ,
  230. + load_balancing: {"hosts":[]},
  231. + prepared_statements: false,
  232. + statement_limit: 1000,
  233. + connect_timeout: ,
  234. + keepalives: ,
  235. + keepalives_idle: ,
  236. + keepalives_interval: ,
  237. + keepalives_count: ,
  238. + tcp_user_timeout: ,
  239. + application_name: ,
  240. + variables:,
  241. + statement_timeout: ,
  242. * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create,
  243. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml,
  244. ,
  245. * templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create,
  246. * template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date),
  247. * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create,
  248. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml,
  249. ,
  250. * templatesymlink[Create a resque.yml and create a symlink to Rails root] action create,
  251. * template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date),
  252. * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create,
  253. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml,
  254. ,
  255. * templatesymlink[Create a cable.yml and create a symlink to Rails root] action create,
  256. * template[/var/opt/gitlab/gitlab-rails/etc/cable.yml] action create (up to date),
  257. * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/cable.yml to /var/opt/gitlab/gitlab-rails/etc/cable.yml] action create,
  258. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/cable.yml to /var/opt/gitlab/gitlab-rails/etc/cable.yml,
  259. ,
  260. * templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action create (skipped due to not_if),
  261. * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.cache.yml] action delete (up to date),
  262. * file[/var/opt/gitlab/gitlab-rails/etc/redis.cache.yml] action delete (up to date),
  263. * templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action create (skipped due to not_if),
  264. * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.queues.yml] action delete (up to date),
  265. * file[/var/opt/gitlab/gitlab-rails/etc/redis.queues.yml] action delete (up to date),
  266. * templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action create (skipped due to not_if),
  267. * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.shared_state.yml] action delete (up to date),
  268. * file[/var/opt/gitlab/gitlab-rails/etc/redis.shared_state.yml] action delete (up to date),
  269. * templatesymlink[Create a redis.trace_chunks.yml and create a symlink to Rails root] action create (skipped due to not_if),
  270. * file[/opt/gitlab/embedded/service/gitlab-rails/config/redis.trace_chunks.yml] action delete (up to date),
  271. * file[/var/opt/gitlab/gitlab-rails/etc/redis.trace_chunks.yml] action delete (up to date),
  272. * templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action delete,
  273. * file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date),
  274. * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date),
  275. (up to date),
  276. * templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create,
  277. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date),
  278. * link[Link /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create,
  279. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml,
  280. ,
  281. * templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create,
  282. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date),
  283. * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create,
  284. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret,
  285. ,
  286. * templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create,
  287. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date),
  288. * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create,
  289. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret,
  290. ,
  291. * templatesymlink[Create a gitlab_pages_secret and create a symlink to Rails root] action create,
  292. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create (up to date),
  293. * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_pages_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret] action create,
  294. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_pages_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_pages_secret,
  295. ,
  296. * templatesymlink[Create a gitlab_kas_secret and create a symlink to Rails root] action create,
  297. * template[/var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret] action create (up to date),
  298. * link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_kas_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret] action create,
  299. - unlink existing symlink to file at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_kas_secret,
  300. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/.gitlab_kas_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_kas_secret,
  301. ,
  302. * link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date),
  303. * file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date),
  304. * env_dir[/opt/gitlab/etc/gitlab-rails/env] action create,
  305. * directory[/opt/gitlab/etc/gitlab-rails/env] action create,
  306. - create new directory /opt/gitlab/etc/gitlab-rails/env,
  307. * file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create,
  308. - create new file /opt/gitlab/etc/gitlab-rails/env/HOME,
  309. - update content in file /opt/gitlab/etc/gitlab-rails/env/HOME from none to 205bb9,
  310. - suppressed sensitive resource,
  311. * file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create,
  312. - create new file /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV,
  313. - update content in file /opt/gitlab/etc/gitlab-rails/env/RAILS_ENV from none to ab8e18,
  314. - suppressed sensitive resource,
  315. * file[/opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD] action create,
  316. - create new file /opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD,
  317. - update content in file /opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD from none to f79114,
  318. - suppressed sensitive resource,
  319. * file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create,
  320. - create new file /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS,
  321. - update content in file /opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS from none to dd80d7,
  322. - suppressed sensitive resource,
  323. * file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create,
  324. - create new file /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE,
  325. - update content in file /opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE from none to 28d586,
  326. - suppressed sensitive resource,
  327. * file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create,
  328. - create new file /opt/gitlab/etc/gitlab-rails/env/PATH,
  329. - update content in file /opt/gitlab/etc/gitlab-rails/env/PATH from none to d5dc07,
  330. - suppressed sensitive resource,
  331. * file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create,
  332. - create new file /opt/gitlab/etc/gitlab-rails/env/ICU_DATA,
  333. - update content in file /opt/gitlab/etc/gitlab-rails/env/ICU_DATA from none to a04260,
  334. - suppressed sensitive resource,
  335. * file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create,
  336. - create new file /opt/gitlab/etc/gitlab-rails/env/PYTHONPATH,
  337. - update content in file /opt/gitlab/etc/gitlab-rails/env/PYTHONPATH from none to 83b536,
  338. - suppressed sensitive resource,
  339. * file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create,
  340. - create new file /opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME,
  341. - update content in file /opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME from none to 75081b,
  342. - suppressed sensitive resource,
  343. * file[/opt/gitlab/etc/gitlab-rails/env/TZ] action create,
  344. - create new file /opt/gitlab/etc/gitlab-rails/env/TZ,
  345. - update content in file /opt/gitlab/etc/gitlab-rails/env/TZ from none to 983a95,
  346. - suppressed sensitive resource,
  347. ,
  348. * link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create,
  349. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/tmp to /var/opt/gitlab/gitlab-rails/tmp,
  350. * link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create,
  351. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/public/uploads to /var/opt/gitlab/gitlab-rails/uploads,
  352. * link[/opt/gitlab/embedded/service/gitlab-rails/log] action create,
  353. - create symlink at /opt/gitlab/embedded/service/gitlab-rails/log to /var/log/gitlab/gitlab-rails,
  354. * link[/var/log/gitlab/gitlab-rails/sidekiq.log] action delete (skipped due to only_if),
  355. * file[/opt/gitlab/embedded/service/gitlab-rails/db/structure.sql] action create,
  356. - change owner from 'root' to 'git',
  357. /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,
  358. * remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create,
  359. - update content in file /var/opt/gitlab/gitlab-rails/VERSION from 233b0d to 2c3e17,
  360. --- /var/opt/gitlab/gitlab-rails/VERSION 2021-08-24 01:46:47.883930380 +0000,
  361. +++ /var/opt/gitlab/gitlab-rails/.chef-VERSION20210824-31-nbd2p6 2021-08-24 02:07:15.428495022 +0000,
  362. @@ -1 +1 @@,
  363. -14.1.3,
  364. +14.2.0,
  365. /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,
  366. * remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create,
  367. - update content in file /var/opt/gitlab/gitlab-rails/REVISION from b8a0d4 to d500ca,
  368. --- /var/opt/gitlab/gitlab-rails/REVISION 2021-08-24 01:46:47.935929283 +0000,
  369. +++ /var/opt/gitlab/gitlab-rails/.chef-REVISION20210824-31-97g8cz 2021-08-24 02:07:15.480494326 +0000,
  370. @@ -1 +1 @@,
  371. -132256d76b1,
  372. +d678b7c987f,
  373. * version_file[Create version file for Rails] action create,
  374. * file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create (up to date),
  375. (up to date),
  376. * execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing),
  377. * file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date),
  378. Recipe: gitlab::selinux,
  379. * bash[Set proper security context on ssh files for selinux] action nothing (skipped due to action :nothing),
  380. Recipe: gitlab::add_trusted_certs,
  381. * directory[/etc/gitlab/trusted-certs] action create (up to date),
  382. * directory[/opt/gitlab/embedded/ssl/certs] action create (up to date),
  383. * file[/opt/gitlab/embedded/ssl/certs/README] action create,
  384. - create new file /opt/gitlab/embedded/ssl/certs/README,
  385. - update content in file /opt/gitlab/embedded/ssl/certs/README from none to 623059,
  386. --- /opt/gitlab/embedded/ssl/certs/README 2021-08-24 02:07:15.704491326 +0000,
  387. +++ /opt/gitlab/embedded/ssl/certs/.chef-README20210824-31-60bzvy 2021-08-24 02:07:15.704491326 +0000,
  388. @@ -1,3 +1,6 @@,
  389. +This directory is managed by omnibus-gitlab.,
  390. + Any file placed in this directory will be ignored,
  391. +. Place certificates in /etc/gitlab/trusted-certs.,
  392. - change mode from '' to '0644',
  393. * ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run,
  394. ,
  395. * Moving existing certificates found in /opt/gitlab/embedded/ssl/certs,
  396. ,
  397. * Symlinking existing certificates found in /etc/gitlab/trusted-certs,
  398. ,
  399. - execute the ruby block Move existing certs and link to /opt/gitlab/embedded/ssl/certs,
  400. Recipe: gitlab::default,
  401. * service[create a temporary puma service] action nothing (skipped due to action :nothing),
  402. * service[create a temporary sidekiq service] action nothing (skipped due to action :nothing),
  403. * service[create a temporary mailroom service] action nothing (skipped due to action :nothing),
  404. Recipe: package::sysctl,
  405. * execute[reload all sysctl conf] action nothing (skipped due to action :nothing),
  406. Recipe: logrotate::folders_and_configs,
  407. * directory[/var/opt/gitlab/logrotate] action create (up to date),
  408. * directory[/var/opt/gitlab/logrotate/logrotate.d] action create (up to date),
  409. * directory[/var/log/gitlab/logrotate] action create (up to date),
  410. * template[/var/opt/gitlab/logrotate/logrotate.conf] action create (up to date),
  411. * template[/var/opt/gitlab/logrotate/logrotate.d/nginx] action create (up to date),
  412. * template[/var/opt/gitlab/logrotate/logrotate.d/puma] action create (up to date),
  413. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-rails] action create (up to date),
  414. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-shell] action create (up to date),
  415. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-workhorse] action create (up to date),
  416. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-pages] action create (up to date),
  417. * template[/var/opt/gitlab/logrotate/logrotate.d/gitlab-kas] action create (up to date),
  418. * template[/var/opt/gitlab/logrotate/logrotate.d/gitaly] action create (up to date),
  419. * template[/var/opt/gitlab/logrotate/logrotate.d/mailroom] action create (up to date),
  420. Recipe: logrotate::enable,
  421. * service[logrotate] action nothing (skipped due to action :nothing),
  422. * runit_service[logrotate] action enable,
  423. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  424. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  425. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  426. * directory[/opt/gitlab/sv/logrotate] action create,
  427. - create new directory /opt/gitlab/sv/logrotate,
  428. - change mode from '' to '0755',
  429. - change owner from '' to 'root',
  430. - change group from '' to 'root',
  431. * template[/opt/gitlab/sv/logrotate/run] action create,
  432. - create new file /opt/gitlab/sv/logrotate/run,
  433. - update content in file /opt/gitlab/sv/logrotate/run from none to 07f1b6,
  434. --- /opt/gitlab/sv/logrotate/run 2021-08-24 02:07:16.392482114 +0000,
  435. +++ /opt/gitlab/sv/logrotate/.chef-run20210824-31-u2atul 2021-08-24 02:07:16.392482114 +0000,
  436. @@ -1,10 +1,20 @@,
  437. +#!/bin/sh,
  438. +exec 2>&1,
  439. +,
  440. +cd /var/opt/gitlab/logrotate,
  441. +,
  442. +exec /opt/gitlab/embedded/bin/chpst -P /usr/bin/env \,
  443. + dir=/var/opt/gitlab/logrotate \,
  444. + pre_sleep=600 \,
  445. + post_sleep=3000 \,
  446. + /opt/gitlab/embedded/bin/gitlab-logrotate-wrapper,
  447. - change mode from '' to '0755',
  448. - change owner from '' to 'root',
  449. - change group from '' to 'root',
  450. * directory[/opt/gitlab/sv/logrotate/log] action create,
  451. - create new directory /opt/gitlab/sv/logrotate/log,
  452. - change mode from '' to '0755',
  453. - change owner from '' to 'root',
  454. - change group from '' to 'root',
  455. * directory[/opt/gitlab/sv/logrotate/log/main] action create,
  456. - create new directory /opt/gitlab/sv/logrotate/log/main,
  457. - change mode from '' to '0755',
  458. - change owner from '' to 'root',
  459. - change group from '' to 'root',
  460. * template[/opt/gitlab/sv/logrotate/log/config] action create,
  461. - create new file /opt/gitlab/sv/logrotate/log/config,
  462. - update content in file /opt/gitlab/sv/logrotate/log/config from none to 623c00,
  463. --- /opt/gitlab/sv/logrotate/log/config 2021-08-24 02:07:16.468481096 +0000,
  464. +++ /opt/gitlab/sv/logrotate/log/.chef-config20210824-31-nwu0v 2021-08-24 02:07:16.468481096 +0000,
  465. @@ -1,6 +1,12 @@,
  466. +s209715200,
  467. +n30,
  468. +t86400,
  469. +!gzip,
  470. +,
  471. +,
  472. - change mode from '' to '0644',
  473. - change owner from '' to 'root',
  474. - change group from '' to 'root',
  475. * ruby_block[verify_chown_persisted_on_logrotate] action create,
  476. - execute the ruby block verify_chown_persisted_on_logrotate,
  477. * ruby_block[verify_chown_persisted_on_logrotate] action nothing (skipped due to action :nothing),
  478. * link[/var/log/gitlab/logrotate/config] action create (up to date),
  479. * template[/opt/gitlab/sv/logrotate/log/run] action create,
  480. - create new file /opt/gitlab/sv/logrotate/log/run,
  481. - update content in file /opt/gitlab/sv/logrotate/log/run from none to 94afe6,
  482. --- /opt/gitlab/sv/logrotate/log/run 2021-08-24 02:07:16.532480239 +0000,
  483. +++ /opt/gitlab/sv/logrotate/log/.chef-run20210824-31-1k2ww9z 2021-08-24 02:07:16.532480239 +0000,
  484. @@ -1,2 +1,4 @@,
  485. +#!/bin/sh,
  486. +exec svlogd -tt /var/log/gitlab/logrotate,
  487. - change mode from '' to '0755',
  488. - change owner from '' to 'root',
  489. - change group from '' to 'root',
  490. * directory[/opt/gitlab/sv/logrotate/env] action create,
  491. - create new directory /opt/gitlab/sv/logrotate/env,
  492. - change mode from '' to '0755',
  493. - change owner from '' to 'root',
  494. - change group from '' to 'root',
  495. * ruby_block[Delete unmanaged env files for logrotate service] action run (skipped due to only_if),
  496. * template[/opt/gitlab/sv/logrotate/check] action create (skipped due to only_if),
  497. * template[/opt/gitlab/sv/logrotate/finish] action create (skipped due to only_if),
  498. * directory[/opt/gitlab/sv/logrotate/control] action create,
  499. - create new directory /opt/gitlab/sv/logrotate/control,
  500. - change mode from '' to '0755',
  501. - change owner from '' to 'root',
  502. - change group from '' to 'root',
  503. * template[/opt/gitlab/sv/logrotate/control/t] action create,
  504. - create new file /opt/gitlab/sv/logrotate/control/t,
  505. - update content in file /opt/gitlab/sv/logrotate/control/t from none to 8fa3fa,
  506. --- /opt/gitlab/sv/logrotate/control/t 2021-08-24 02:07:16.616479114 +0000,
  507. +++ /opt/gitlab/sv/logrotate/control/.chef-t20210824-31-bem60t 2021-08-24 02:07:16.616479114 +0000,
  508. @@ -1,3 +1,6 @@,
  509. +#!/bin/sh,
  510. +echo "Received TERM from runit, sending to process group (-PID)",
  511. +kill -- -$(cat /opt/gitlab/service/logrotate/supervise/pid),
  512. - change mode from '' to '0755',
  513. - change owner from '' to 'root',
  514. - change group from '' to 'root',
  515. * link[/opt/gitlab/init/logrotate] action create,
  516. - create symlink at /opt/gitlab/init/logrotate to /opt/gitlab/embedded/bin/sv,
  517. * file[/opt/gitlab/sv/logrotate/down] action nothing (skipped due to action :nothing),
  518. * ruby_block[restart_service] action run (skipped due to only_if),
  519. * ruby_block[reload_log_service] action create,
  520. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  521. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  522. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  523. * directory[/opt/gitlab/sv/logrotate] action create (up to date),
  524. * template[/opt/gitlab/sv/logrotate/run] action create (up to date),
  525. * directory[/opt/gitlab/sv/logrotate/log] action create (up to date),
  526. * directory[/opt/gitlab/sv/logrotate/log/main] action create (up to date),
  527. * template[/opt/gitlab/sv/logrotate/log/config] action create (up to date),
  528. * ruby_block[verify_chown_persisted_on_logrotate] action nothing (skipped due to action :nothing),
  529. * link[/var/log/gitlab/logrotate/config] action create (up to date),
  530. * template[/opt/gitlab/sv/logrotate/log/run] action create (up to date),
  531. * directory[/opt/gitlab/sv/logrotate/env] action create (up to date),
  532. * ruby_block[Delete unmanaged env files for logrotate service] action run (skipped due to only_if),
  533. * template[/opt/gitlab/sv/logrotate/check] action create (skipped due to only_if),
  534. * template[/opt/gitlab/sv/logrotate/finish] action create (skipped due to only_if),
  535. * directory[/opt/gitlab/sv/logrotate/control] action create (up to date),
  536. * template[/opt/gitlab/sv/logrotate/control/t] action create (up to date),
  537. * link[/opt/gitlab/init/logrotate] action create (up to date),
  538. * file[/opt/gitlab/sv/logrotate/down] action nothing (skipped due to action :nothing),
  539. * directory[/opt/gitlab/service] action create (up to date),
  540. * link[/opt/gitlab/service/logrotate] action create,
  541. - create symlink at /opt/gitlab/service/logrotate to /opt/gitlab/sv/logrotate,
  542. * ruby_block[wait for logrotate service socket] action run,
  543. - execute the ruby block wait for logrotate service socket,
  544. - execute the ruby block reload_log_service,
  545. * ruby_block[restart_log_service] action run,
  546. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  547. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  548. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  549. * directory[/opt/gitlab/sv/logrotate] action create (up to date),
  550. * template[/opt/gitlab/sv/logrotate/run] action create (up to date),
  551. * directory[/opt/gitlab/sv/logrotate/log] action create (up to date),
  552. * directory[/opt/gitlab/sv/logrotate/log/main] action create (up to date),
  553. * template[/opt/gitlab/sv/logrotate/log/config] action create (up to date),
  554. * ruby_block[verify_chown_persisted_on_logrotate] action nothing (skipped due to action :nothing),
  555. * link[/var/log/gitlab/logrotate/config] action create (up to date),
  556. * template[/opt/gitlab/sv/logrotate/log/run] action create (up to date),
  557. * directory[/opt/gitlab/sv/logrotate/env] action create (up to date),
  558. * ruby_block[Delete unmanaged env files for logrotate service] action run (skipped due to only_if),
  559. * template[/opt/gitlab/sv/logrotate/check] action create (skipped due to only_if),
  560. * template[/opt/gitlab/sv/logrotate/finish] action create (skipped due to only_if),
  561. * directory[/opt/gitlab/sv/logrotate/control] action create (up to date),
  562. * template[/opt/gitlab/sv/logrotate/control/t] action create (up to date),
  563. * link[/opt/gitlab/init/logrotate] action create (up to date),
  564. * file[/opt/gitlab/sv/logrotate/down] action nothing (skipped due to action :nothing),
  565. * directory[/opt/gitlab/service] action create (up to date),
  566. * link[/opt/gitlab/service/logrotate] action create (up to date),
  567. * ruby_block[wait for logrotate service socket] action run (skipped due to not_if),
  568. - execute the ruby block restart_log_service,
  569. * directory[/opt/gitlab/service] action create (up to date),
  570. * link[/opt/gitlab/service/logrotate] action create (up to date),
  571. * ruby_block[wait for logrotate service socket] action run (skipped due to not_if),
  572. ,
  573. * execute[/opt/gitlab/bin/gitlab-ctl start logrotate] action run,
  574. [execute] ok: run: logrotate: (pid 263) 8s,
  575. - execute /opt/gitlab/bin/gitlab-ctl start logrotate,
  576. Recipe: redis::enable,
  577. * redis_service[redis] action create,
  578. * account[user and group for redis] action create (up to date),
  579. * group[Socket group] action create (up to date),
  580. * directory[/var/opt/gitlab/redis] action create (up to date),
  581. * directory[/var/log/gitlab/redis] action create (up to date),
  582. * template[/var/opt/gitlab/redis/redis.conf] action create (up to date),
  583. Recipe: <Dynamically Defined Resource>,
  584. * service[redis] action nothing (skipped due to action :nothing),
  585. * runit_service[redis] action enable,
  586. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  587. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  588. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  589. * directory[/opt/gitlab/sv/redis] action create,
  590. - create new directory /opt/gitlab/sv/redis,
  591. - change mode from '' to '0755',
  592. - change owner from '' to 'root',
  593. - change group from '' to 'root',
  594. * template[/opt/gitlab/sv/redis/run] action create,
  595. - create new file /opt/gitlab/sv/redis/run,
  596. - update content in file /opt/gitlab/sv/redis/run from none to da365d,
  597. --- /opt/gitlab/sv/redis/run 2021-08-24 02:07:29.312309243 +0000,
  598. +++ /opt/gitlab/sv/redis/.chef-run20210824-31-y3d4d4 2021-08-24 02:07:29.308309297 +0000,
  599. @@ -1,5 +1,10 @@,
  600. +#!/bin/sh,
  601. +exec 2>&1,
  602. +,
  603. +umask 077,
  604. +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,
  605. - change mode from '' to '0755',
  606. - change owner from '' to 'root',
  607. - change group from '' to 'root',
  608. * directory[/opt/gitlab/sv/redis/log] action create,
  609. - create new directory /opt/gitlab/sv/redis/log,
  610. - change mode from '' to '0755',
  611. - change owner from '' to 'root',
  612. - change group from '' to 'root',
  613. * directory[/opt/gitlab/sv/redis/log/main] action create,
  614. - create new directory /opt/gitlab/sv/redis/log/main,
  615. - change mode from '' to '0755',
  616. - change owner from '' to 'root',
  617. - change group from '' to 'root',
  618. * template[/opt/gitlab/sv/redis/log/config] action create,
  619. - create new file /opt/gitlab/sv/redis/log/config,
  620. - update content in file /opt/gitlab/sv/redis/log/config from none to 623c00,
  621. --- /opt/gitlab/sv/redis/log/config 2021-08-24 02:07:29.996300098 +0000,
  622. +++ /opt/gitlab/sv/redis/log/.chef-config20210824-31-18c081j 2021-08-24 02:07:29.996300098 +0000,
  623. @@ -1,6 +1,12 @@,
  624. +s209715200,
  625. +n30,
  626. +t86400,
  627. +!gzip,
  628. +,
  629. +,
  630. - change mode from '' to '0644',
  631. - change owner from '' to 'root',
  632. - change group from '' to 'root',
  633. * ruby_block[verify_chown_persisted_on_redis] action create,
  634. - execute the ruby block verify_chown_persisted_on_redis,
  635. * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing),
  636. * link[/var/log/gitlab/redis/config] action create (up to date),
  637. * template[/opt/gitlab/sv/redis/log/run] action create,
  638. - create new file /opt/gitlab/sv/redis/log/run,
  639. - update content in file /opt/gitlab/sv/redis/log/run from none to af1017,
  640. --- /opt/gitlab/sv/redis/log/run 2021-08-24 02:07:30.076299029 +0000,
  641. +++ /opt/gitlab/sv/redis/log/.chef-run20210824-31-1s0w45f 2021-08-24 02:07:30.072299082 +0000,
  642. @@ -1,2 +1,4 @@,
  643. +#!/bin/sh,
  644. +exec svlogd -tt /var/log/gitlab/redis,
  645. - change mode from '' to '0755',
  646. - change owner from '' to 'root',
  647. - change group from '' to 'root',
  648. * directory[/opt/gitlab/sv/redis/env] action create,
  649. - create new directory /opt/gitlab/sv/redis/env,
  650. - change mode from '' to '0755',
  651. - change owner from '' to 'root',
  652. - change group from '' to 'root',
  653. * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if),
  654. * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if),
  655. * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if),
  656. * directory[/opt/gitlab/sv/redis/control] action create,
  657. - create new directory /opt/gitlab/sv/redis/control,
  658. - change mode from '' to '0755',
  659. - change owner from '' to 'root',
  660. - change group from '' to 'root',
  661. * link[/opt/gitlab/init/redis] action create,
  662. - create symlink at /opt/gitlab/init/redis to /opt/gitlab/embedded/bin/sv,
  663. * file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action :nothing),
  664. * ruby_block[restart_service] action run (skipped due to only_if),
  665. * ruby_block[reload_log_service] action create,
  666. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  667. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  668. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  669. * directory[/opt/gitlab/sv/redis] action create (up to date),
  670. * template[/opt/gitlab/sv/redis/run] action create (up to date),
  671. * directory[/opt/gitlab/sv/redis/log] action create (up to date),
  672. * directory[/opt/gitlab/sv/redis/log/main] action create (up to date),
  673. * template[/opt/gitlab/sv/redis/log/config] action create (up to date),
  674. * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing),
  675. * link[/var/log/gitlab/redis/config] action create (up to date),
  676. * template[/opt/gitlab/sv/redis/log/run] action create (up to date),
  677. * directory[/opt/gitlab/sv/redis/env] action create (up to date),
  678. * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if),
  679. * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if),
  680. * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if),
  681. * directory[/opt/gitlab/sv/redis/control] action create (up to date),
  682. * link[/opt/gitlab/init/redis] action create (up to date),
  683. * file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action :nothing),
  684. * directory[/opt/gitlab/service] action create (up to date),
  685. * link[/opt/gitlab/service/redis] action create,
  686. - create symlink at /opt/gitlab/service/redis to /opt/gitlab/sv/redis,
  687. * ruby_block[wait for redis service socket] action run,
  688. - execute the ruby block wait for redis service socket,
  689. - execute the ruby block reload_log_service,
  690. * ruby_block[restart_log_service] action run,
  691. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  692. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  693. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  694. * directory[/opt/gitlab/sv/redis] action create (up to date),
  695. * template[/opt/gitlab/sv/redis/run] action create (up to date),
  696. * directory[/opt/gitlab/sv/redis/log] action create (up to date),
  697. * directory[/opt/gitlab/sv/redis/log/main] action create (up to date),
  698. * template[/opt/gitlab/sv/redis/log/config] action create (up to date),
  699. * ruby_block[verify_chown_persisted_on_redis] action nothing (skipped due to action :nothing),
  700. * link[/var/log/gitlab/redis/config] action create (up to date),
  701. * template[/opt/gitlab/sv/redis/log/run] action create (up to date),
  702. * directory[/opt/gitlab/sv/redis/env] action create (up to date),
  703. * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if),
  704. * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if),
  705. * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if),
  706. * directory[/opt/gitlab/sv/redis/control] action create (up to date),
  707. * link[/opt/gitlab/init/redis] action create (up to date),
  708. * file[/opt/gitlab/sv/redis/down] action nothing (skipped due to action :nothing),
  709. * directory[/opt/gitlab/service] action create (up to date),
  710. * link[/opt/gitlab/service/redis] action create (up to date),
  711. * ruby_block[wait for redis service socket] action run (skipped due to not_if),
  712. - execute the ruby block restart_log_service,
  713. * directory[/opt/gitlab/service] action create (up to date),
  714. * link[/opt/gitlab/service/redis] action create (up to date),
  715. * ruby_block[wait for redis service socket] action run (skipped due to not_if),
  716. ,
  717. * execute[/opt/gitlab/bin/gitlab-ctl start redis] action run,
  718. [execute] ok: run: redis: (pid 280) 8s,
  719. - execute /opt/gitlab/bin/gitlab-ctl start redis,
  720. * ruby_block[warn pending redis restart] action run (skipped due to only_if),
  721. ,
  722. Recipe: redis::enable,
  723. * template[/opt/gitlab/etc/gitlab-redis-cli-rc] action create,
  724. - create new file /opt/gitlab/etc/gitlab-redis-cli-rc,
  725. - update content in file /opt/gitlab/etc/gitlab-redis-cli-rc from none to 44cac1,
  726. --- /opt/gitlab/etc/gitlab-redis-cli-rc 2021-08-24 02:07:40.912154243 +0000,
  727. +++ /opt/gitlab/etc/.chef-gitlab-redis-cli-rc20210824-31-1av4cbx 2021-08-24 02:07:40.908154296 +0000,
  728. @@ -1,4 +1,8 @@,
  729. +redis_dir='/var/opt/gitlab/redis',
  730. +redis_host='127.0.0.1',
  731. +redis_port='0',
  732. +redis_socket='/var/opt/gitlab/redis/redis.socket',
  733. - change owner from '' to 'root',
  734. - change group from '' to 'root',
  735. Recipe: gitaly::enable,
  736. * directory[/var/opt/gitlab/gitaly] action create (up to date),
  737. * directory[/var/log/gitlab/gitaly] action create (up to date),
  738. * directory[/var/opt/gitlab/gitaly/internal_sockets] action create (up to date),
  739. * env_dir[/opt/gitlab/etc/gitaly/env] action create,
  740. * directory[/opt/gitlab/etc/gitaly/env] action create,
  741. - create new directory /opt/gitlab/etc/gitaly/env,
  742. * file[/opt/gitlab/etc/gitaly/env/HOME] action create,
  743. - create new file /opt/gitlab/etc/gitaly/env/HOME,
  744. - update content in file /opt/gitlab/etc/gitaly/env/HOME from none to 205bb9,
  745. - suppressed sensitive resource,
  746. * file[/opt/gitlab/etc/gitaly/env/PATH] action create,
  747. - create new file /opt/gitlab/etc/gitaly/env/PATH,
  748. - update content in file /opt/gitlab/etc/gitaly/env/PATH from none to d5dc07,
  749. - suppressed sensitive resource,
  750. * file[/opt/gitlab/etc/gitaly/env/TZ] action create,
  751. - create new file /opt/gitlab/etc/gitaly/env/TZ,
  752. - update content in file /opt/gitlab/etc/gitaly/env/TZ from none to 983a95,
  753. - suppressed sensitive resource,
  754. * file[/opt/gitlab/etc/gitaly/env/PYTHONPATH] action create,
  755. - create new file /opt/gitlab/etc/gitaly/env/PYTHONPATH,
  756. - update content in file /opt/gitlab/etc/gitaly/env/PYTHONPATH from none to 83b536,
  757. - suppressed sensitive resource,
  758. * file[/opt/gitlab/etc/gitaly/env/ICU_DATA] action create,
  759. - create new file /opt/gitlab/etc/gitaly/env/ICU_DATA,
  760. - update content in file /opt/gitlab/etc/gitaly/env/ICU_DATA from none to a04260,
  761. - suppressed sensitive resource,
  762. * file[/opt/gitlab/etc/gitaly/env/SSL_CERT_DIR] action create,
  763. - create new file /opt/gitlab/etc/gitaly/env/SSL_CERT_DIR,
  764. - update content in file /opt/gitlab/etc/gitaly/env/SSL_CERT_DIR from none to 4f45cf,
  765. - suppressed sensitive resource,
  766. * file[/opt/gitlab/etc/gitaly/env/GITALY_PID_FILE] action create,
  767. - create new file /opt/gitlab/etc/gitaly/env/GITALY_PID_FILE,
  768. - update content in file /opt/gitlab/etc/gitaly/env/GITALY_PID_FILE from none to e82748,
  769. - suppressed sensitive resource,
  770. * file[/opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING] action create,
  771. - create new file /opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING,
  772. - update content in file /opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING from none to b5bea4,
  773. - suppressed sensitive resource,
  774. ,
  775. * template[Create Gitaly config.toml] action create (up to date),
  776. * service[gitaly] action nothing (skipped due to action :nothing),
  777. * runit_service[gitaly] action enable,
  778. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  779. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  780. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  781. * directory[/opt/gitlab/sv/gitaly] action create,
  782. - create new directory /opt/gitlab/sv/gitaly,
  783. - change mode from '' to '0755',
  784. - change owner from '' to 'root',
  785. - change group from '' to 'root',
  786. * template[/opt/gitlab/sv/gitaly/run] action create,
  787. - create new file /opt/gitlab/sv/gitaly/run,
  788. - update content in file /opt/gitlab/sv/gitaly/run from none to 1a05c2,
  789. --- /opt/gitlab/sv/gitaly/run 2021-08-24 02:07:41.484146605 +0000,
  790. +++ /opt/gitlab/sv/gitaly/.chef-run20210824-31-16ytb9l 2021-08-24 02:07:41.484146605 +0000,
  791. @@ -1,18 +1,36 @@,
  792. +#!/bin/sh,
  793. +,
  794. +# Attempt to change ulimit before the set -e flag, ignore failures,
  795. +ulimit -n 15000,
  796. +,
  797. +set -e # fail on errors,
  798. +,
  799. +# Redirect stderr -> stdout,
  800. +exec 2>&1,
  801. +,
  802. +,
  803. +,
  804. +cd /var/opt/gitlab/gitaly,
  805. +,
  806. +exec chpst -e /opt/gitlab/etc/gitaly/env -P \,
  807. + -U git:git \,
  808. + -u git:git \,
  809. + /opt/gitlab/embedded/bin/gitaly-wrapper /opt/gitlab/embedded/bin/gitaly /var/opt/gitlab/gitaly/config.toml,
  810. - change mode from '' to '0755',
  811. - change owner from '' to 'root',
  812. - change group from '' to 'root',
  813. * directory[/opt/gitlab/sv/gitaly/log] action create,
  814. - create new directory /opt/gitlab/sv/gitaly/log,
  815. - change mode from '' to '0755',
  816. - change owner from '' to 'root',
  817. - change group from '' to 'root',
  818. * directory[/opt/gitlab/sv/gitaly/log/main] action create,
  819. - create new directory /opt/gitlab/sv/gitaly/log/main,
  820. - change mode from '' to '0755',
  821. - change owner from '' to 'root',
  822. - change group from '' to 'root',
  823. * template[/opt/gitlab/sv/gitaly/log/config] action create,
  824. - create new file /opt/gitlab/sv/gitaly/log/config,
  825. - update content in file /opt/gitlab/sv/gitaly/log/config from none to 623c00,
  826. --- /opt/gitlab/sv/gitaly/log/config 2021-08-24 02:07:41.560145590 +0000,
  827. +++ /opt/gitlab/sv/gitaly/log/.chef-config20210824-31-638m1 2021-08-24 02:07:41.556145643 +0000,
  828. @@ -1,6 +1,12 @@,
  829. +s209715200,
  830. +n30,
  831. +t86400,
  832. +!gzip,
  833. +,
  834. +,
  835. - change mode from '' to '0644',
  836. - change owner from '' to 'root',
  837. - change group from '' to 'root',
  838. * ruby_block[verify_chown_persisted_on_gitaly] action create,
  839. - execute the ruby block verify_chown_persisted_on_gitaly,
  840. * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing),
  841. * link[/var/log/gitlab/gitaly/config] action create (up to date),
  842. * template[/opt/gitlab/sv/gitaly/log/run] action create,
  843. - create new file /opt/gitlab/sv/gitaly/log/run,
  844. - update content in file /opt/gitlab/sv/gitaly/log/run from none to fa6dcc,
  845. --- /opt/gitlab/sv/gitaly/log/run 2021-08-24 02:07:41.616144842 +0000,
  846. +++ /opt/gitlab/sv/gitaly/log/.chef-run20210824-31-16astpn 2021-08-24 02:07:41.616144842 +0000,
  847. @@ -1,2 +1,4 @@,
  848. +#!/bin/sh,
  849. +exec svlogd /var/log/gitlab/gitaly,
  850. - change mode from '' to '0755',
  851. - change owner from '' to 'root',
  852. - change group from '' to 'root',
  853. * directory[/opt/gitlab/sv/gitaly/env] action create,
  854. - create new directory /opt/gitlab/sv/gitaly/env,
  855. - change mode from '' to '0755',
  856. - change owner from '' to 'root',
  857. - change group from '' to 'root',
  858. * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if),
  859. * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if),
  860. * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if),
  861. * directory[/opt/gitlab/sv/gitaly/control] action create,
  862. - create new directory /opt/gitlab/sv/gitaly/control,
  863. - change mode from '' to '0755',
  864. - change owner from '' to 'root',
  865. - change group from '' to 'root',
  866. * link[/opt/gitlab/init/gitaly] action create,
  867. - create symlink at /opt/gitlab/init/gitaly to /opt/gitlab/embedded/bin/sv,
  868. * file[/opt/gitlab/sv/gitaly/down] action nothing (skipped due to action :nothing),
  869. * ruby_block[restart_service] action run (skipped due to only_if),
  870. * ruby_block[reload_log_service] action create,
  871. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  872. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  873. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  874. * directory[/opt/gitlab/sv/gitaly] action create (up to date),
  875. * template[/opt/gitlab/sv/gitaly/run] action create (up to date),
  876. * directory[/opt/gitlab/sv/gitaly/log] action create (up to date),
  877. * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date),
  878. * template[/opt/gitlab/sv/gitaly/log/config] action create (up to date),
  879. * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing),
  880. * link[/var/log/gitlab/gitaly/config] action create (up to date),
  881. * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date),
  882. * directory[/opt/gitlab/sv/gitaly/env] action create (up to date),
  883. * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if),
  884. * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if),
  885. * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if),
  886. * directory[/opt/gitlab/sv/gitaly/control] action create (up to date),
  887. * link[/opt/gitlab/init/gitaly] action create (up to date),
  888. * file[/opt/gitlab/sv/gitaly/down] action nothing (skipped due to action :nothing),
  889. * directory[/opt/gitlab/service] action create (up to date),
  890. * link[/opt/gitlab/service/gitaly] action create,
  891. - create symlink at /opt/gitlab/service/gitaly to /opt/gitlab/sv/gitaly,
  892. * ruby_block[wait for gitaly service socket] action run,
  893. - execute the ruby block wait for gitaly service socket,
  894. - execute the ruby block reload_log_service,
  895. * ruby_block[restart_log_service] action run,
  896. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  897. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  898. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  899. * directory[/opt/gitlab/sv/gitaly] action create (up to date),
  900. * template[/opt/gitlab/sv/gitaly/run] action create (up to date),
  901. * directory[/opt/gitlab/sv/gitaly/log] action create (up to date),
  902. * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date),
  903. * template[/opt/gitlab/sv/gitaly/log/config] action create (up to date),
  904. * ruby_block[verify_chown_persisted_on_gitaly] action nothing (skipped due to action :nothing),
  905. * link[/var/log/gitlab/gitaly/config] action create (up to date),
  906. * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date),
  907. * directory[/opt/gitlab/sv/gitaly/env] action create (up to date),
  908. * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if),
  909. * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if),
  910. * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if),
  911. * directory[/opt/gitlab/sv/gitaly/control] action create (up to date),
  912. * link[/opt/gitlab/init/gitaly] action create (up to date),
  913. * file[/opt/gitlab/sv/gitaly/down] action nothing (skipped due to action :nothing),
  914. * directory[/opt/gitlab/service] action create (up to date),
  915. * link[/opt/gitlab/service/gitaly] action create (up to date),
  916. * ruby_block[wait for gitaly service socket] action run (skipped due to not_if),
  917. - execute the ruby block restart_log_service,
  918. * directory[/opt/gitlab/service] action create (up to date),
  919. * link[/opt/gitlab/service/gitaly] action create (up to date),
  920. * ruby_block[wait for gitaly service socket] action run (skipped due to not_if),
  921. ,
  922. * execute[/opt/gitlab/bin/gitlab-ctl start gitaly] action run,
  923. [execute] ok: run: gitaly: (pid 302) 8s,
  924. - execute /opt/gitlab/bin/gitlab-ctl start gitaly,
  925. * version_file[Create version file for Gitaly] action create,
  926. * file[/var/opt/gitlab/gitaly/VERSION] action create,
  927. - update content in file /var/opt/gitlab/gitaly/VERSION from d823ea to b0a771,
  928. --- /var/opt/gitlab/gitaly/VERSION 2021-08-24 01:47:31.819019100 +0000,
  929. +++ /var/opt/gitlab/gitaly/.chef-VERSION20210824-31-18pxxve 2021-08-24 02:07:51.684010479 +0000,
  930. @@ -1 +1 @@,
  931. -Gitaly, version 14.1.3,
  932. +Gitaly, version 14.2.0,
  933. ,
  934. * version_file[Create Ruby version file for Gitaly] action create,
  935. * file[/var/opt/gitlab/gitaly/RUBY_VERSION] action create (up to date),
  936. (up to date),
  937. * consul_service[gitaly] action delete,
  938. * file[/var/opt/gitlab/consul/config.d/gitaly-service.json] action delete (up to date),
  939. (up to date),
  940. Recipe: postgresql::bin,
  941. * ruby_block[check_postgresql_version] action run (skipped due to not_if),
  942. * ruby_block[check_postgresql_version_is_deprecated] action run (skipped due to not_if),
  943. * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if),
  944. * template[/opt/gitlab/etc/gitlab-psql-rc] action create,
  945. - create new file /opt/gitlab/etc/gitlab-psql-rc,
  946. - update content in file /opt/gitlab/etc/gitlab-psql-rc from none to b7b8fc,
  947. --- /opt/gitlab/etc/gitlab-psql-rc 2021-08-24 02:07:51.972006637 +0000,
  948. +++ /opt/gitlab/etc/.chef-gitlab-psql-rc20210824-31-1y1enk1 2021-08-24 02:07:51.972006637 +0000,
  949. @@ -1,5 +1,10 @@,
  950. +psql_user='gitlab-psql',
  951. +psql_group='gitlab-psql',
  952. +psql_host='/var/opt/gitlab/postgresql',
  953. +psql_port='5432',
  954. +psql_dbname='gitlabhq_production',
  955. - change owner from '' to 'root',
  956. - change group from '' to 'root',
  957. Recipe: postgresql::user,
  958. * account[Postgresql user and group] action create (up to date),
  959. * directory[/var/opt/gitlab/postgresql] action create (up to date),
  960. * file[/var/opt/gitlab/postgresql/.profile] action create (up to date),
  961. Recipe: postgresql::sysctl,
  962. * gitlab_sysctl[kernel.shmmax] action create,
  963. * directory[create /etc/sysctl.d for kernel.shmmax] action create (skipped due to only_if),
  964. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (skipped due to only_if),
  965. * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (skipped due to only_if),
  966. * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing),
  967. (up to date),
  968. * gitlab_sysctl[kernel.shmall] action create,
  969. * directory[create /etc/sysctl.d for kernel.shmall] action create (skipped due to only_if),
  970. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (skipped due to only_if),
  971. * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (skipped due to only_if),
  972. * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing),
  973. (up to date),
  974. * gitlab_sysctl[kernel.sem] action create,
  975. * directory[create /etc/sysctl.d for kernel.sem] action create (skipped due to only_if),
  976. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (skipped due to only_if),
  977. * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (skipped due to only_if),
  978. * execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing),
  979. (up to date),
  980. Recipe: postgresql::enable,
  981. * directory[/var/opt/gitlab/postgresql] action create (up to date),
  982. * directory[/var/opt/gitlab/postgresql/data] action create (up to date),
  983. * directory[/var/log/gitlab/postgresql] action create (up to date),
  984. * directory[/var/opt/gitlab/postgresql/data] action create (up to date),
  985. * execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run (skipped due to not_if),
  986. * file[/var/opt/gitlab/postgresql/data/server.crt] action create (up to date),
  987. * file[/var/opt/gitlab/postgresql/data/server.key] action create (up to date),
  988. * postgresql_config[gitlab] action create,
  989. * template[/var/opt/gitlab/postgresql/data/postgresql.conf] action create (up to date),
  990. * template[/var/opt/gitlab/postgresql/data/runtime.conf] action create (up to date),
  991. * template[/var/opt/gitlab/postgresql/data/pg_hba.conf] action create (up to date),
  992. * template[/var/opt/gitlab/postgresql/data/pg_ident.conf] action create (up to date),
  993. (up to date),
  994. Recipe: postgresql::standalone,
  995. * service[postgresql] action nothing (skipped due to action :nothing),
  996. * runit_service[postgresql] action enable,
  997. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  998. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  999. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  1000. * directory[/opt/gitlab/sv/postgresql] action create,
  1001. - create new directory /opt/gitlab/sv/postgresql,
  1002. - change mode from '' to '0755',
  1003. - change owner from '' to 'root',
  1004. - change group from '' to 'root',
  1005. * template[/opt/gitlab/sv/postgresql/run] action create,
  1006. - create new file /opt/gitlab/sv/postgresql/run,
  1007. - update content in file /opt/gitlab/sv/postgresql/run from none to dc5689,
  1008. --- /opt/gitlab/sv/postgresql/run 2021-08-24 02:07:52.631997834 +0000,
  1009. +++ /opt/gitlab/sv/postgresql/.chef-run20210824-31-1f5qat7 2021-08-24 02:07:52.631997834 +0000,
  1010. @@ -1,4 +1,8 @@,
  1011. +#!/bin/sh,
  1012. +exec 2>&1,
  1013. +,
  1014. +exec chpst -P -U gitlab-psql:gitlab-psql -u gitlab-psql:gitlab-psql /opt/gitlab/embedded/bin/postgres -D /var/opt/gitlab/postgresql/data,
  1015. - change mode from '' to '0755',
  1016. - change owner from '' to 'root',
  1017. - change group from '' to 'root',
  1018. * directory[/opt/gitlab/sv/postgresql/log] action create,
  1019. - create new directory /opt/gitlab/sv/postgresql/log,
  1020. - change mode from '' to '0755',
  1021. - change owner from '' to 'root',
  1022. - change group from '' to 'root',
  1023. * directory[/opt/gitlab/sv/postgresql/log/main] action create,
  1024. - create new directory /opt/gitlab/sv/postgresql/log/main,
  1025. - change mode from '' to '0755',
  1026. - change owner from '' to 'root',
  1027. - change group from '' to 'root',
  1028. * template[/opt/gitlab/sv/postgresql/log/config] action create,
  1029. - create new file /opt/gitlab/sv/postgresql/log/config,
  1030. - update content in file /opt/gitlab/sv/postgresql/log/config from none to 623c00,
  1031. --- /opt/gitlab/sv/postgresql/log/config 2021-08-24 02:07:52.719996661 +0000,
  1032. +++ /opt/gitlab/sv/postgresql/log/.chef-config20210824-31-1tmx553 2021-08-24 02:07:52.719996661 +0000,
  1033. @@ -1,6 +1,12 @@,
  1034. +s209715200,
  1035. +n30,
  1036. +t86400,
  1037. +!gzip,
  1038. +,
  1039. +,
  1040. - change mode from '' to '0644',
  1041. - change owner from '' to 'root',
  1042. - change group from '' to 'root',
  1043. * ruby_block[verify_chown_persisted_on_postgresql] action create,
  1044. - execute the ruby block verify_chown_persisted_on_postgresql,
  1045. * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing),
  1046. * link[/var/log/gitlab/postgresql/config] action create (up to date),
  1047. * template[/opt/gitlab/sv/postgresql/log/run] action create,
  1048. - create new file /opt/gitlab/sv/postgresql/log/run,
  1049. - update content in file /opt/gitlab/sv/postgresql/log/run from none to ce742a,
  1050. --- /opt/gitlab/sv/postgresql/log/run 2021-08-24 02:07:52.787995754 +0000,
  1051. +++ /opt/gitlab/sv/postgresql/log/.chef-run20210824-31-1y7uzmk 2021-08-24 02:07:52.787995754 +0000,
  1052. @@ -1,2 +1,4 @@,
  1053. +#!/bin/sh,
  1054. +exec svlogd -tt /var/log/gitlab/postgresql,
  1055. - change mode from '' to '0755',
  1056. - change owner from '' to 'root',
  1057. - change group from '' to 'root',
  1058. * directory[/opt/gitlab/sv/postgresql/env] action create,
  1059. - create new directory /opt/gitlab/sv/postgresql/env,
  1060. - change mode from '' to '0755',
  1061. - change owner from '' to 'root',
  1062. - change group from '' to 'root',
  1063. * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if),
  1064. * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if),
  1065. * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if),
  1066. * directory[/opt/gitlab/sv/postgresql/control] action create,
  1067. - create new directory /opt/gitlab/sv/postgresql/control,
  1068. - change mode from '' to '0755',
  1069. - change owner from '' to 'root',
  1070. - change group from '' to 'root',
  1071. * template[/opt/gitlab/sv/postgresql/control/t] action create,
  1072. - create new file /opt/gitlab/sv/postgresql/control/t,
  1073. - update content in file /opt/gitlab/sv/postgresql/control/t from none to 05ae12,
  1074. --- /opt/gitlab/sv/postgresql/control/t 2021-08-24 02:07:52.879994527 +0000,
  1075. +++ /opt/gitlab/sv/postgresql/control/.chef-t20210824-31-bg21lx 2021-08-24 02:07:52.879994527 +0000,
  1076. @@ -1,3 +1,6 @@,
  1077. +#!/bin/sh,
  1078. +echo "received TERM from runit, sending INT instead to force quit connections",
  1079. +/opt/gitlab/embedded/bin/sv interrupt postgresql,
  1080. - change mode from '' to '0755',
  1081. - change owner from '' to 'root',
  1082. - change group from '' to 'root',
  1083. * link[/opt/gitlab/init/postgresql] action create,
  1084. - create symlink at /opt/gitlab/init/postgresql to /opt/gitlab/embedded/bin/sv,
  1085. * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing),
  1086. * ruby_block[restart_service] action run (skipped due to only_if),
  1087. * ruby_block[reload_log_service] action create,
  1088. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  1089. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  1090. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  1091. * directory[/opt/gitlab/sv/postgresql] action create (up to date),
  1092. * template[/opt/gitlab/sv/postgresql/run] action create (up to date),
  1093. * directory[/opt/gitlab/sv/postgresql/log] action create (up to date),
  1094. * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date),
  1095. * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date),
  1096. * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing),
  1097. * link[/var/log/gitlab/postgresql/config] action create (up to date),
  1098. * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date),
  1099. * directory[/opt/gitlab/sv/postgresql/env] action create (up to date),
  1100. * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if),
  1101. * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if),
  1102. * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if),
  1103. * directory[/opt/gitlab/sv/postgresql/control] action create (up to date),
  1104. * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date),
  1105. * link[/opt/gitlab/init/postgresql] action create (up to date),
  1106. * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing),
  1107. * directory[/opt/gitlab/service] action create (up to date),
  1108. * link[/opt/gitlab/service/postgresql] action create,
  1109. - create symlink at /opt/gitlab/service/postgresql to /opt/gitlab/sv/postgresql,
  1110. * ruby_block[wait for postgresql service socket] action run,
  1111. - execute the ruby block wait for postgresql service socket,
  1112. * directory[/opt/gitlab/service/postgresql/supervise] action create,
  1113. - change mode from '0700' to '0755',
  1114. * directory[/opt/gitlab/service/postgresql/log/supervise] action create,
  1115. - change mode from '0700' to '0755',
  1116. * file[/opt/gitlab/service/postgresql/supervise/ok] action touch,
  1117. - create new file /opt/gitlab/service/postgresql/supervise/ok,
  1118. - change owner from '' to 'gitlab-psql',
  1119. - change group from '' to 'gitlab-psql',
  1120. - update utime on file /opt/gitlab/service/postgresql/supervise/ok,
  1121. * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch,
  1122. - create new file /opt/gitlab/service/postgresql/log/supervise/ok,
  1123. - change owner from '' to 'gitlab-psql',
  1124. - change group from '' to 'gitlab-psql',
  1125. - update utime on file /opt/gitlab/service/postgresql/log/supervise/ok,
  1126. * file[/opt/gitlab/service/postgresql/supervise/status] action touch,
  1127. - change owner from 'root' to 'gitlab-psql',
  1128. - change group from 'root' to 'gitlab-psql',
  1129. - update utime on file /opt/gitlab/service/postgresql/supervise/status,
  1130. * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch,
  1131. - change owner from 'root' to 'gitlab-psql',
  1132. - change group from 'root' to 'gitlab-psql',
  1133. - update utime on file /opt/gitlab/service/postgresql/log/supervise/status,
  1134. * file[/opt/gitlab/service/postgresql/supervise/control] action touch,
  1135. - create new file /opt/gitlab/service/postgresql/supervise/control,
  1136. - change owner from '' to 'gitlab-psql',
  1137. - change group from '' to 'gitlab-psql',
  1138. - update utime on file /opt/gitlab/service/postgresql/supervise/control,
  1139. * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch,
  1140. - create new file /opt/gitlab/service/postgresql/log/supervise/control,
  1141. - change owner from '' to 'gitlab-psql',
  1142. - change group from '' to 'gitlab-psql',
  1143. - update utime on file /opt/gitlab/service/postgresql/log/supervise/control,
  1144. - execute the ruby block reload_log_service,
  1145. * ruby_block[restart_log_service] action run,
  1146. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  1147. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  1148. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  1149. * directory[/opt/gitlab/sv/postgresql] action create (up to date),
  1150. * template[/opt/gitlab/sv/postgresql/run] action create (up to date),
  1151. * directory[/opt/gitlab/sv/postgresql/log] action create (up to date),
  1152. * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date),
  1153. * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date),
  1154. * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing),
  1155. * link[/var/log/gitlab/postgresql/config] action create (up to date),
  1156. * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date),
  1157. * directory[/opt/gitlab/sv/postgresql/env] action create (up to date),
  1158. * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if),
  1159. * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if),
  1160. * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if),
  1161. * directory[/opt/gitlab/sv/postgresql/control] action create (up to date),
  1162. * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date),
  1163. * link[/opt/gitlab/init/postgresql] action create (up to date),
  1164. * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing),
  1165. * directory[/opt/gitlab/service] action create (up to date),
  1166. * link[/opt/gitlab/service/postgresql] action create (up to date),
  1167. * ruby_block[wait for postgresql service socket] action run (skipped due to not_if),
  1168. * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date),
  1169. * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date),
  1170. * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if),
  1171. * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if),
  1172. * file[/opt/gitlab/service/postgresql/supervise/status] action touch (skipped due to only_if),
  1173. * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch,
  1174. - change owner from 'root' to 'gitlab-psql',
  1175. - change group from 'root' to 'gitlab-psql',
  1176. - update utime on file /opt/gitlab/service/postgresql/log/supervise/status,
  1177. * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if),
  1178. * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if),
  1179. - execute the ruby block restart_log_service,
  1180. * directory[/opt/gitlab/service] action create (up to date),
  1181. * link[/opt/gitlab/service/postgresql] action create (up to date),
  1182. * ruby_block[wait for postgresql service socket] action run (skipped due to not_if),
  1183. * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date),
  1184. * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date),
  1185. * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if),
  1186. * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if),
  1187. * file[/opt/gitlab/service/postgresql/supervise/status] action touch (skipped due to only_if),
  1188. * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch,
  1189. - change owner from 'root' to 'gitlab-psql',
  1190. - change group from 'root' to 'gitlab-psql',
  1191. - update utime on file /opt/gitlab/service/postgresql/log/supervise/status,
  1192. * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if),
  1193. * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if),
  1194. ,
  1195. * execute[/opt/gitlab/bin/gitlab-ctl start postgresql] action run,
  1196. [execute] ok: run: postgresql: (pid 424) 9s,
  1197. - execute /opt/gitlab/bin/gitlab-ctl start postgresql,
  1198. * database_objects[postgresql] action create,
  1199. * postgresql_user[gitlab] action create,
  1200. * execute[create gitlab postgresql user] action run (skipped due to not_if),
  1201. (up to date),
  1202. * postgresql_user[gitlab_replicator] action create,
  1203. * execute[create gitlab_replicator postgresql user] action run (skipped due to not_if),
  1204. * execute[set options for gitlab_replicator postgresql user] action run (skipped due to not_if),
  1205. (up to date),
  1206. * postgresql_database[gitlabhq_production] action create,
  1207. * execute[create database gitlabhq_production] action run (skipped due to not_if),
  1208. (up to date),
  1209. * postgresql_extension[pg_trgm] action enable,
  1210. * postgresql_query[enable pg_trgm extension] action run (skipped due to only_if),
  1211. (up to date),
  1212. * postgresql_extension[btree_gist] action enable,
  1213. * postgresql_query[enable btree_gist extension] action run (skipped due to only_if),
  1214. (up to date),
  1215. (up to date),
  1216. * ruby_block[warn pending postgresql restart] action run (skipped due to only_if),
  1217. * execute[reload postgresql] action nothing (skipped due to action :nothing),
  1218. * execute[start postgresql] action nothing (skipped due to action :nothing),
  1219. Recipe: praefect::disable,
  1220. * service[praefect] action nothing (skipped due to action :nothing),
  1221. * runit_service[praefect] action disable,
  1222. * ruby_block[disable praefect] action run (skipped due to only_if),
  1223. (up to date),
  1224. * consul_service[praefect] action delete,
  1225. * file[/var/opt/gitlab/consul/config.d/praefect-service.json] action delete (up to date),
  1226. (up to date),
  1227. Recipe: gitlab-kas::disable,
  1228. * service[gitlab-kas] action nothing (skipped due to action :nothing),
  1229. * runit_service[gitlab-kas] action disable,
  1230. * ruby_block[disable gitlab-kas] action run (skipped due to only_if),
  1231. (up to date),
  1232. Recipe: gitlab::database_migrations,
  1233. * ruby_block[check remote PG version] action nothing (skipped due to action :nothing),
  1234. * rails_migration[gitlab-rails] action run,
  1235. * bash[migrate gitlab-rails database] action run,
  1236. [execute] == 20210611082822 AddPagesFileEntriesToPlanLimits: migrating ==================,
  1237. -- add_column(:plan_limits, :pages_file_entries, :integer, {:default=>200000, :null=>false}),
  1238. -> 0.0128s,
  1239. == 20210611082822 AddPagesFileEntriesToPlanLimits: migrated (0.0132s) =========,
  1240. ,
  1241. == 20210628154900 CreateDetachedPartitionsTable: migrating ====================,
  1242. -- create_table(:detached_partitions, {}),
  1243. -- quote_column_name(:table_name),
  1244. -> 0.0001s,
  1245. -> 0.0452s,
  1246. -- quote_table_name("check_aecee24ba3"),
  1247. -> 0.0001s,
  1248. -- quote_table_name(:detached_partitions),
  1249. -> 0.0000s,
  1250. -- execute("ALTER TABLE \"detached_partitions\"\nADD CONSTRAINT \"check_aecee24ba3\" CHECK (char_length(\"table_name\") <= 63)\n"),
  1251. -> 0.0033s,
  1252. == 20210628154900 CreateDetachedPartitionsTable: migrated (0.1377s) ===========,
  1253. ,
  1254. == 20210629031900 AssociateExistingDastBuildsWithVariables: migrating =========,
  1255. == 20210629031900 AssociateExistingDastBuildsWithVariables: migrated (0.0260s) ,
  1256. ,
  1257. == 20210630222522 AddCustomersDotJwtSigningKeyToApplicationSettings: migrating ,
  1258. -- add_column(:application_settings, :encrypted_customers_dot_jwt_signing_key, :binary),
  1259. -> 0.0093s,
  1260. -- add_column(:application_settings, :encrypted_customers_dot_jwt_signing_key_iv, :binary),
  1261. -> 0.0037s,
  1262. == 20210630222522 AddCustomersDotJwtSigningKeyToApplicationSettings: migrated (0.0134s) ,
  1263. ,
  1264. == 20210630224625 GenerateCustomersDotJwtSigningKey: migrating ================,
  1265. == 20210630224625 GenerateCustomersDotJwtSigningKey: migrated (1.3184s) =======,
  1266. ,
  1267. == 20210701033622 FinalizeCiBuildsNeedsBigintConversion: migrating ============,
  1268. -- transaction_open?(),
  1269. -> 0.0001s,
  1270. -- 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}),
  1271. -> 0.0154s,
  1272. -- execute("SET statement_timeout TO 0"),
  1273. -> 0.0014s,
  1274. -- 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}),
  1275. -> 0.0135s,
  1276. -- execute("RESET statement_timeout"),
  1277. -> 0.0014s,
  1278. -- transaction_open?(),
  1279. -> 0.0000s,
  1280. -- foreign_keys("ci_build_needs"),
  1281. -> 0.0245s,
  1282. -- execute("LOCK TABLE ci_builds, ci_build_needs IN SHARE ROW EXCLUSIVE MODE"),
  1283. -> 0.0018s,
  1284. -- 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"),
  1285. -> 0.0125s,
  1286. -- execute("SET statement_timeout TO 0"),
  1287. -> 0.0014s,
  1288. -- execute("ALTER TABLE ci_build_needs VALIDATE CONSTRAINT fk_rails_3cf221d4ed_tmp;"),
  1289. -> 0.0198s,
  1290. -- execute("RESET statement_timeout"),
  1291. -> 0.0008s,
  1292. -- execute("LOCK TABLE ci_builds, ci_build_needs IN ACCESS EXCLUSIVE MODE"),
  1293. -> 0.0009s,
  1294. -- quote_table_name("ci_build_needs"),
  1295. -> 0.0001s,
  1296. -- quote_column_name(:build_id),
  1297. -> 0.0000s,
  1298. -- quote_column_name("build_id_tmp"),
  1299. -> 0.0000s,
  1300. -- execute("ALTER TABLE \"ci_build_needs\" RENAME COLUMN \"build_id\" TO \"build_id_tmp\""),
  1301. -> 0.0014s,
  1302. -- quote_table_name("ci_build_needs"),
  1303. -> 0.0001s,
  1304. -- quote_column_name(:build_id_convert_to_bigint),
  1305. -> 0.0001s,
  1306. -- quote_column_name(:build_id),
  1307. -> 0.0000s,
  1308. -- execute("ALTER TABLE \"ci_build_needs\" RENAME COLUMN \"build_id_convert_to_bigint\" TO \"build_id\""),
  1309. -> 0.0011s,
  1310. -- quote_table_name("ci_build_needs"),
  1311. -> 0.0000s,
  1312. -- quote_column_name("build_id_tmp"),
  1313. -> 0.0000s,
  1314. -- quote_column_name(:build_id_convert_to_bigint),
  1315. -> 0.0000s,
  1316. -- execute("ALTER TABLE \"ci_build_needs\" RENAME COLUMN \"build_id_tmp\" TO \"build_id_convert_to_bigint\""),
  1317. -> 0.0010s,
  1318. -- quote_table_name("trigger_21e7a2602957"),
  1319. -> 0.0001s,
  1320. -- execute("ALTER FUNCTION \"trigger_21e7a2602957\" RESET ALL"),
  1321. -> 0.0018s,
  1322. -- change_column_default("ci_build_needs", :build_id, nil),
  1323. -> 0.0089s,
  1324. -- change_column_default("ci_build_needs", :build_id_convert_to_bigint, 0),
  1325. -> 0.0062s,
  1326. -- execute("DROP INDEX index_ci_build_needs_on_build_id_and_name"),
  1327. -> 0.0024s,
  1328. -- 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"),
  1329. -> 0.0016s,
  1330. -- remove_foreign_key("ci_build_needs", {:name=>"fk_rails_3cf221d4ed"}),
  1331. -> 0.0249s,
  1332. -- quote_table_name("ci_build_needs"),
  1333. -> 0.0001s,
  1334. -- quote_column_name("fk_rails_3cf221d4ed_tmp"),
  1335. -> 0.0001s,
  1336. -- quote_column_name("fk_rails_3cf221d4ed"),
  1337. -> 0.0000s,
  1338. -- execute("ALTER TABLE \"ci_build_needs\"\nRENAME CONSTRAINT \"fk_rails_3cf221d4ed_tmp\" TO \"fk_rails_3cf221d4ed\"\n"),
  1339. -> 0.0015s,
  1340. == 20210701033622 FinalizeCiBuildsNeedsBigintConversion: migrated (0.2958s) ===,
  1341. ,
  1342. == 20210706151154 AddRemainingCiMinutesToCiPendingBuild: migrating ============,
  1343. -- add_column(:ci_pending_builds, :namespace_id, :bigint),
  1344. -> 0.0032s,
  1345. -- add_column(:ci_pending_builds, :minutes_exceeded, :boolean, {:null=>false, :default=>false}),
  1346. -> 0.0040s,
  1347. == 20210706151154 AddRemainingCiMinutesToCiPendingBuild: migrated (0.0154s) ===,
  1348. ,
  1349. == 20210706151446 AddNamespaceForeignKeyToCiPendingBuild: migrating ===========,
  1350. -- transaction_open?(),
  1351. -> 0.0000s,
  1352. -- index_exists?(:ci_pending_builds, :namespace_id, {:name=>"index_ci_pending_builds_on_namespace_id", :algorithm=>:concurrently}),
  1353. -> 0.0112s,
  1354. -- execute("SET statement_timeout TO 0"),
  1355. -> 0.0011s,
  1356. -- add_index(:ci_pending_builds, :namespace_id, {:name=>"index_ci_pending_builds_on_namespace_id", :algorithm=>:concurrently}),
  1357. -> 0.0096s,
  1358. -- execute("RESET statement_timeout"),
  1359. -> 0.0010s,
  1360. -- transaction_open?(),
  1361. -> 0.0000s,
  1362. -- foreign_keys(:ci_pending_builds),
  1363. -> 0.0192s,
  1364. -- execute("ALTER TABLE ci_pending_builds\nADD CONSTRAINT fk_fdc0137e4a\nFOREIGN KEY (namespace_id)\nREFERENCES namespaces (id)\nON DELETE CASCADE\nNOT VALID;\n"),
  1365. -> 0.0139s,
  1366. -- execute("SET statement_timeout TO 0"),
  1367. -> 0.0009s,
  1368. -- execute("ALTER TABLE ci_pending_builds VALIDATE CONSTRAINT fk_fdc0137e4a;"),
  1369. -> 0.0122s,
  1370. -- execute("RESET statement_timeout"),
  1371. -> 0.0011s,
  1372. == 20210706151446 AddNamespaceForeignKeyToCiPendingBuild: migrated (0.0848s) ==,
  1373. ,
  1374. == 20210706212710 FinalizeCiJobArtifactsBigintConversion: migrating ===========,
  1375. -- transaction_open?(),
  1376. -> 0.0000s,
  1377. -- index_exists?("ci_job_artifacts", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_job_artifact_on_id_convert_to_bigint", :algorithm=>:concurrently}),
  1378. -> 0.0214s,
  1379. -- execute("SET statement_timeout TO 0"),
  1380. -> 0.0008s,
  1381. -- add_index("ci_job_artifacts", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_job_artifact_on_id_convert_to_bigint", :algorithm=>:concurrently}),
  1382. -> 0.0090s,
  1383. -- execute("RESET statement_timeout"),
  1384. -> 0.0009s,
  1385. -- transaction_open?(),
  1386. -> 0.0000s,
  1387. -- 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}),
  1388. -> 0.0198s,
  1389. -- execute("SET statement_timeout TO 0"),
  1390. -> 0.0008s,
  1391. -- 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}),
  1392. -> 0.0084s,
  1393. -- execute("RESET statement_timeout"),
  1394. -> 0.0008s,
  1395. -- transaction_open?(),
  1396. -> 0.0000s,
  1397. -- 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}),
  1398. -> 0.0210s,
  1399. -- execute("SET statement_timeout TO 0"),
  1400. -> 0.0008s,
  1401. -- 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}),
  1402. -> 0.0079s,
  1403. -- execute("RESET statement_timeout"),
  1404. -> 0.0008s,
  1405. -- transaction_open?(),
  1406. -> 0.0000s,
  1407. -- foreign_keys(:project_pages_metadata),
  1408. -> 0.0170s,
  1409. -- execute("LOCK TABLE ci_job_artifacts, project_pages_metadata IN SHARE ROW EXCLUSIVE MODE"),
  1410. -> 0.0011s,
  1411. -- 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"),
  1412. -> 0.0041s,
  1413. -- execute("SET statement_timeout TO 0"),
  1414. -> 0.0008s,
  1415. -- execute("ALTER TABLE project_pages_metadata VALIDATE CONSTRAINT fk_69366a119e_tmp;"),
  1416. -> 0.0092s,
  1417. -- execute("RESET statement_timeout"),
  1418. -> 0.0008s,
  1419. -- execute("LOCK TABLE ci_job_artifacts, project_pages_metadata IN ACCESS EXCLUSIVE MODE"),
  1420. -> 0.0009s,
  1421. -- quote_table_name("ci_job_artifacts"),
  1422. -> 0.0001s,
  1423. -- quote_column_name(:id),
  1424. -> 0.0000s,
  1425. -- quote_column_name("id_tmp"),
  1426. -> 0.0000s,
  1427. -- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"id\" TO \"id_tmp\""),
  1428. -> 0.0012s,
  1429. -- quote_table_name("ci_job_artifacts"),
  1430. -> 0.0000s,
  1431. -- quote_column_name(:id_convert_to_bigint),
  1432. -> 0.0001s,
  1433. -- quote_column_name(:id),
  1434. -> 0.0000s,
  1435. -- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"id_convert_to_bigint\" TO \"id\""),
  1436. -> 0.0011s,
  1437. -- quote_table_name("ci_job_artifacts"),
  1438. -> 0.0000s,
  1439. -- quote_column_name("id_tmp"),
  1440. -> 0.0000s,
  1441. -- quote_column_name(:id_convert_to_bigint),
  1442. -> 0.0000s,
  1443. -- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"id_tmp\" TO \"id_convert_to_bigint\""),
  1444. -> 0.0011s,
  1445. -- quote_table_name("trigger_be1804f21693"),
  1446. -> 0.0001s,
  1447. -- execute("ALTER FUNCTION \"trigger_be1804f21693\" RESET ALL"),
  1448. -> 0.0014s,
  1449. -- execute("ALTER SEQUENCE ci_job_artifacts_id_seq OWNED BY ci_job_artifacts.id"),
  1450. -> 0.0019s,
  1451. -- 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)>),
  1452. -> 0.0093s,
  1453. -- change_column_default("ci_job_artifacts", :id_convert_to_bigint, 0),
  1454. -> 0.0074s,
  1455. -- execute("ALTER TABLE ci_job_artifacts DROP CONSTRAINT ci_job_artifacts_pkey CASCADE"),
  1456. -> 0.0041s,
  1457. -- rename_index("ci_job_artifacts", "index_ci_job_artifact_on_id_convert_to_bigint", "ci_job_artifacts_pkey"),
  1458. -> 0.0014s,
  1459. -- execute("ALTER TABLE ci_job_artifacts ADD CONSTRAINT ci_job_artifacts_pkey PRIMARY KEY USING INDEX ci_job_artifacts_pkey"),
  1460. -> 0.0058s,
  1461. -- execute("DROP INDEX index_ci_job_artifacts_for_terraform_reports"),
  1462. -> 0.0014s,
  1463. -- rename_index("ci_job_artifacts", "index_ci_job_artifacts_for_terraform_reports_bigint", "index_ci_job_artifacts_for_terraform_reports"),
  1464. -> 0.0012s,
  1465. -- execute("DROP INDEX index_ci_job_artifacts_id_for_terraform_reports"),
  1466. -> 0.0015s,
  1467. -- rename_index("ci_job_artifacts", "index_ci_job_artifacts_id_for_terraform_reports_bigint", "index_ci_job_artifacts_id_for_terraform_reports"),
  1468. -> 0.0012s,
  1469. -- quote_table_name(:project_pages_metadata),
  1470. -> 0.0001s,
  1471. -- quote_column_name("fk_69366a119e_tmp"),
  1472. -> 0.0000s,
  1473. -- quote_column_name("fk_69366a119e"),
  1474. -> 0.0000s,
  1475. -- execute("ALTER TABLE \"project_pages_metadata\"\nRENAME CONSTRAINT \"fk_69366a119e_tmp\" TO \"fk_69366a119e\"\n"),
  1476. -> 0.0013s,
  1477. == 20210706212710 FinalizeCiJobArtifactsBigintConversion: migrated (0.2051s) ==,
  1478. ,
  1479. == 20210707210916 FinalizeCiStagesBigintConversion: migrating =================,
  1480. -- transaction_open?(),
  1481. -> 0.0000s,
  1482. -- index_exists?("ci_stages", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_stages_on_id_convert_to_bigint", :algorithm=>:concurrently}),
  1483. -> 0.0132s,
  1484. -- execute("SET statement_timeout TO 0"),
  1485. -> 0.0008s,
  1486. -- add_index("ci_stages", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_stages_on_id_convert_to_bigint", :algorithm=>:concurrently}),
  1487. -> 0.0091s,
  1488. -- execute("RESET statement_timeout"),
  1489. -> 0.0008s,
  1490. -- transaction_open?(),
  1491. -> 0.0000s,
  1492. -- 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}),
  1493. -> 0.0128s,
  1494. -- execute("SET statement_timeout TO 0"),
  1495. -> 0.0008s,
  1496. -- 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}),
  1497. -> 0.0086s,
  1498. -- execute("RESET statement_timeout"),
  1499. -> 0.0008s,
  1500. -- transaction_open?(),
  1501. -> 0.0000s,
  1502. -- foreign_keys(:ci_builds),
  1503. -> 0.0193s,
  1504. -- execute("LOCK TABLE ci_stages, ci_builds IN SHARE ROW EXCLUSIVE MODE"),
  1505. -> 0.0010s,
  1506. -- 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"),
  1507. -> 0.0081s,
  1508. -- execute("SET statement_timeout TO 0"),
  1509. -> 0.0008s,
  1510. -- execute("ALTER TABLE ci_builds VALIDATE CONSTRAINT fk_3a9eaa254d_tmp;"),
  1511. -> 0.0086s,
  1512. -- execute("RESET statement_timeout"),
  1513. -> 0.0009s,
  1514. -- execute("LOCK TABLE ci_stages, ci_builds IN ACCESS EXCLUSIVE MODE"),
  1515. -> 0.0009s,
  1516. -- quote_column_name("id_tmp"),
  1517. -> 0.0001s,
  1518. -- quote_column_name(:id),
  1519. -> 0.0000s,
  1520. -- quote_column_name(:id_convert_to_bigint),
  1521. -> 0.0000s,
  1522. -- execute("ALTER TABLE ci_stages RENAME COLUMN \"id\" TO \"id_tmp\""),
  1523. -> 0.0012s,
  1524. -- execute("ALTER TABLE ci_stages RENAME COLUMN \"id_convert_to_bigint\" TO \"id\""),
  1525. -> 0.0011s,
  1526. -- execute("ALTER TABLE ci_stages RENAME COLUMN \"id_tmp\" TO \"id_convert_to_bigint\""),
  1527. -> 0.0011s,
  1528. -- quote_table_name("trigger_490d204c00b3"),
  1529. -> 0.0001s,
  1530. -- execute("ALTER FUNCTION \"trigger_490d204c00b3\" RESET ALL"),
  1531. -> 0.0011s,
  1532. -- execute("ALTER SEQUENCE ci_stages_id_seq OWNED BY ci_stages.id"),
  1533. -> 0.0018s,
  1534. -- 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)>),
  1535. -> 0.0080s,
  1536. -- change_column_default("ci_stages", :id_convert_to_bigint, 0),
  1537. -> 0.0067s,
  1538. -- execute("ALTER TABLE ci_stages DROP CONSTRAINT ci_stages_pkey CASCADE"),
  1539. -> 0.0067s,
  1540. -- rename_index("ci_stages", "index_ci_stages_on_id_convert_to_bigint", "ci_stages_pkey"),
  1541. -> 0.0015s,
  1542. -- execute("ALTER TABLE ci_stages ADD CONSTRAINT ci_stages_pkey PRIMARY KEY USING INDEX ci_stages_pkey"),
  1543. -> 0.0021s,
  1544. -- execute("DROP INDEX index_ci_stages_on_pipeline_id_and_id"),
  1545. -> 0.0015s,
  1546. -- rename_index("ci_stages", "index_ci_stages_on_pipeline_id_and_id_convert_to_bigint", "index_ci_stages_on_pipeline_id_and_id"),
  1547. -> 0.0013s,
  1548. -- quote_table_name(:ci_builds),
  1549. -> 0.0001s,
  1550. -- quote_column_name("fk_3a9eaa254d_tmp"),
  1551. -> 0.0000s,
  1552. -- quote_column_name("fk_3a9eaa254d"),
  1553. -> 0.0000s,
  1554. -- execute("ALTER TABLE \"ci_builds\"\nRENAME CONSTRAINT \"fk_3a9eaa254d_tmp\" TO \"fk_3a9eaa254d\"\n"),
  1555. -> 0.0035s,
  1556. == 20210707210916 FinalizeCiStagesBigintConversion: migrated (0.1562s) ========,
  1557. ,
  1558. == 20210708202548 AddScannersColumnToApprovalProjectRules: migrating ==========,
  1559. -- add_column(:approval_project_rules, :scanners, :text, {:array=>true}),
  1560. -> 0.0030s,
  1561. == 20210708202548 AddScannersColumnToApprovalProjectRules: migrated (0.0031s) =,
  1562. ,
  1563. == 20210709024048 FinalizePushEventPayloadsBigintConversion2: migrating =======,
  1564. == 20210709024048 FinalizePushEventPayloadsBigintConversion2: migrated (0.0000s) ,
  1565. ,
  1566. == 20210709221051 CreateWorkItemTypes: migrating ==============================,
  1567. -- create_table(:work_item_types, {}),
  1568. -- quote_column_name(:name),
  1569. -> 0.0001s,
  1570. -- quote_column_name(:icon_name),
  1571. -> 0.0000s,
  1572. -> 0.0303s,
  1573. -- quote_table_name("check_104d2410f6"),
  1574. -> 0.0001s,
  1575. -- quote_table_name("check_fecb3a98d1"),
  1576. -> 0.0000s,
  1577. -- quote_table_name(:work_item_types),
  1578. -> 0.0000s,
  1579. -- 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"),
  1580. -> 0.0025s,
  1581. -- transaction_open?(),
  1582. -> 0.0000s,
  1583. -- 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}),
  1584. -> 0.0041s,
  1585. -- execute("SET statement_timeout TO 0"),
  1586. -> 0.0009s,
  1587. -- 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}),
  1588. -> 0.0087s,
  1589. -- execute("RESET statement_timeout"),
  1590. -> 0.0009s,
  1591. == 20210709221051 CreateWorkItemTypes: migrated (0.0584s) =====================,
  1592. ,
  1593. == 20210709221659 AddWorkItemTypeIdToIssue: migrating =========================,
  1594. -- column_exists?(:issues, :work_item_type_id),
  1595. -> 0.0104s,
  1596. -- add_column(:issues, :work_item_type_id, :bigint),
  1597. -> 0.0022s,
  1598. -- transaction_open?(),
  1599. -> 0.0000s,
  1600. -- index_exists?(:issues, :work_item_type_id, {:algorithm=>:concurrently}),
  1601. -> 0.0550s,
  1602. -- execute("SET statement_timeout TO 0"),
  1603. -> 0.0009s,
  1604. -- add_index(:issues, :work_item_type_id, {:algorithm=>:concurrently}),
  1605. -> 0.0099s,
  1606. -- execute("RESET statement_timeout"),
  1607. -> 0.0009s,
  1608. -- transaction_open?(),
  1609. -> 0.0000s,
  1610. -- foreign_keys(:issues),
  1611. -> 0.0207s,
  1612. -- execute("ALTER TABLE issues\nADD CONSTRAINT fk_b37be69be6\nFOREIGN KEY (work_item_type_id)\nREFERENCES work_item_types (id)\n\nNOT VALID;\n"),
  1613. -> 0.0046s,
  1614. -- execute("SET statement_timeout TO 0"),
  1615. -> 0.0008s,
  1616. -- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_b37be69be6;"),
  1617. -> 0.0082s,
  1618. -- execute("RESET statement_timeout"),
  1619. -> 0.0009s,
  1620. == 20210709221659 AddWorkItemTypeIdToIssue: migrated (0.1344s) ================,
  1621. ,
  1622. == 20210712052519 AddLabelAppliedIssuableClosedToIssuableSla: migrating =======,
  1623. -- add_column(:issuable_slas, :label_applied, :boolean, {:default=>false, :null=>false}),
  1624. -> 0.0047s,
  1625. -- add_column(:issuable_slas, :issuable_closed, :boolean, {:default=>false, :null=>false}),
  1626. -> 0.0030s,
  1627. == 20210712052519 AddLabelAppliedIssuableClosedToIssuableSla: migrated (0.0080s) ,
  1628. ,
  1629. == 20210713042153 FinalizeCiSourcesPipelinesBigintConversion: migrating =======,
  1630. -- transaction_open?(),
  1631. -> 0.0000s,
  1632. -- 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}),
  1633. -> 0.0123s,
  1634. -- execute("SET statement_timeout TO 0"),
  1635. -> 0.0008s,
  1636. -- 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}),
  1637. -> 0.0089s,
  1638. -- execute("RESET statement_timeout"),
  1639. -> 0.0008s,
  1640. -- transaction_open?(),
  1641. -> 0.0000s,
  1642. -- foreign_keys("ci_sources_pipelines"),
  1643. -> 0.0196s,
  1644. -- execute("LOCK TABLE ci_builds, ci_sources_pipelines IN SHARE ROW EXCLUSIVE MODE"),
  1645. -> 0.0010s,
  1646. -- 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"),
  1647. -> 0.0082s,
  1648. -- execute("SET statement_timeout TO 0"),
  1649. -> 0.0010s,
  1650. -- execute("ALTER TABLE ci_sources_pipelines VALIDATE CONSTRAINT fk_be5624bf37_tmp;"),
  1651. -> 0.0090s,
  1652. -- execute("RESET statement_timeout"),
  1653. -> 0.0012s,
  1654. -- execute("LOCK TABLE ci_builds, ci_sources_pipelines IN ACCESS EXCLUSIVE MODE"),
  1655. -> 0.0012s,
  1656. -- quote_table_name("ci_sources_pipelines"),
  1657. -> 0.0001s,
  1658. -- quote_column_name(:source_job_id),
  1659. -> 0.0001s,
  1660. -- quote_column_name("source_job_id_tmp"),
  1661. -> 0.0000s,
  1662. -- execute("ALTER TABLE \"ci_sources_pipelines\" RENAME COLUMN \"source_job_id\" TO \"source_job_id_tmp\""),
  1663. -> 0.0018s,
  1664. -- quote_table_name("ci_sources_pipelines"),
  1665. -> 0.0001s,
  1666. -- quote_column_name(:source_job_id_convert_to_bigint),
  1667. -> 0.0001s,
  1668. -- quote_column_name(:source_job_id),
  1669. -> 0.0000s,
  1670. -- execute("ALTER TABLE \"ci_sources_pipelines\" RENAME COLUMN \"source_job_id_convert_to_bigint\" TO \"source_job_id\""),
  1671. -> 0.0014s,
  1672. -- quote_table_name("ci_sources_pipelines"),
  1673. -> 0.0001s,
  1674. -- quote_column_name("source_job_id_tmp"),
  1675. -> 0.0000s,
  1676. -- quote_column_name(:source_job_id_convert_to_bigint),
  1677. -> 0.0000s,
  1678. -- execute("ALTER TABLE \"ci_sources_pipelines\" RENAME COLUMN \"source_job_id_tmp\" TO \"source_job_id_convert_to_bigint\""),
  1679. -> 0.0015s,
  1680. -- quote_table_name("trigger_8485e97c00e3"),
  1681. -> 0.0001s,
  1682. -- execute("ALTER FUNCTION \"trigger_8485e97c00e3\" RESET ALL"),
  1683. -> 0.0015s,
  1684. -- execute("DROP INDEX index_ci_sources_pipelines_on_source_job_id"),
  1685. -> 0.0024s,
  1686. -- rename_index("ci_sources_pipelines", "index_ci_sources_pipelines_on_source_job_id_convert_to_bigint", "index_ci_sources_pipelines_on_source_job_id"),
  1687. -> 0.0022s,
  1688. -- remove_foreign_key("ci_sources_pipelines", {:name=>"fk_be5624bf37"}),
  1689. -> 0.0260s,
  1690. -- quote_table_name("ci_sources_pipelines"),
  1691. -> 0.0001s,
  1692. -- quote_column_name("fk_be5624bf37_tmp"),
  1693. -> 0.0000s,
  1694. -- quote_column_name("fk_be5624bf37"),
  1695. -> 0.0000s,
  1696. -- execute("ALTER TABLE \"ci_sources_pipelines\"\nRENAME CONSTRAINT \"fk_be5624bf37_tmp\" TO \"fk_be5624bf37\"\n"),
  1697. -> 0.0017s,
  1698. == 20210713042153 FinalizeCiSourcesPipelinesBigintConversion: migrated (0.1341s) ,
  1699. ,
  1700. == 20210713075117 ReScheduleLatestPipelineIdPopulationWithLogging: migrating ==,
  1701. == 20210713075117 ReScheduleLatestPipelineIdPopulationWithLogging: migrated (0.0000s) ,
  1702. ,
  1703. == 20210713123345 CreateDastProfileSchedule: migrating ========================,
  1704. -- create_table(:dast_profile_schedules, {:comment=>"{\"owner\":\"group::dynamic analysis\",\"description\":\"Scheduling for scans using DAST Profiles\"}"}),
  1705. -- quote_column_name(:cron),
  1706. -> 0.0001s,
  1707. -> 0.0501s,
  1708. -- quote_table_name("check_86531ea73f"),
  1709. -> 0.0001s,
  1710. -- quote_table_name(:dast_profile_schedules),
  1711. -> 0.0000s,
  1712. -- execute("ALTER TABLE \"dast_profile_schedules\"\nADD CONSTRAINT \"check_86531ea73f\" CHECK (char_length(\"cron\") <= 255)\n"),
  1713. -> 0.0028s,
  1714. == 20210713123345 CreateDastProfileSchedule: migrated (0.0608s) ===============,
  1715. ,
  1716. == 20210713211008 CreateBannedUsers: migrating ================================,
  1717. -- create_table(:banned_users, {:id=>false}),
  1718. -> 0.0224s,
  1719. == 20210713211008 CreateBannedUsers: migrated (0.0287s) =======================,
  1720. ,
  1721. == 20210713223941 RemoveNullConstraintFromSecurityFindings: migrating =========,
  1722. -- change_column_null(:security_findings, :project_fingerprint, true),
  1723. -> 0.0038s,
  1724. == 20210713223941 RemoveNullConstraintFromSecurityFindings: migrated (0.0040s) ,
  1725. ,
  1726. == 20210714015537 FinalizeCiBuildTraceChunksBigintConversion: migrating =======,
  1727. -- transaction_open?(),
  1728. -> 0.0001s,
  1729. -- 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}),
  1730. -> 0.0072s,
  1731. -- execute("SET statement_timeout TO 0"),
  1732. -> 0.0007s,
  1733. -- 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}),
  1734. -> 0.0086s,
  1735. -- execute("RESET statement_timeout"),
  1736. -> 0.0007s,
  1737. -- transaction_open?(),
  1738. -> 0.0000s,
  1739. -- foreign_keys("ci_build_trace_chunks"),
  1740. -> 0.0214s,
  1741. -- 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"),
  1742. -> 0.0056s,
  1743. -- execute("SET statement_timeout TO 0"),
  1744. -> 0.0008s,
  1745. -- execute("ALTER TABLE ci_build_trace_chunks VALIDATE CONSTRAINT fk_rails_1013b761f2_tmp;"),
  1746. -> 0.0081s,
  1747. -- execute("RESET statement_timeout"),
  1748. -> 0.0008s,
  1749. -- execute("LOCK TABLE ci_build_trace_chunks, ci_builds IN ACCESS EXCLUSIVE MODE"),
  1750. -> 0.0009s,
  1751. -- quote_table_name("ci_build_trace_chunks"),
  1752. -> 0.0001s,
  1753. -- quote_column_name(:build_id),
  1754. -> 0.0000s,
  1755. -- quote_column_name("build_id_tmp"),
  1756. -> 0.0000s,
  1757. -- execute("ALTER TABLE \"ci_build_trace_chunks\" RENAME COLUMN \"build_id\" TO \"build_id_tmp\""),
  1758. -> 0.0012s,
  1759. -- quote_table_name("ci_build_trace_chunks"),
  1760. -> 0.0001s,
  1761. -- quote_column_name(:build_id_convert_to_bigint),
  1762. -> 0.0000s,
  1763. -- quote_column_name(:build_id),
  1764. -> 0.0000s,
  1765. -- execute("ALTER TABLE \"ci_build_trace_chunks\" RENAME COLUMN \"build_id_convert_to_bigint\" TO \"build_id\""),
  1766. -> 0.0011s,
  1767. -- quote_table_name("ci_build_trace_chunks"),
  1768. -> 0.0001s,
  1769. -- quote_column_name("build_id_tmp"),
  1770. -> 0.0000s,
  1771. -- quote_column_name(:build_id_convert_to_bigint),
  1772. -> 0.0000s,
  1773. -- execute("ALTER TABLE \"ci_build_trace_chunks\" RENAME COLUMN \"build_id_tmp\" TO \"build_id_convert_to_bigint\""),
  1774. -> 0.0011s,
  1775. -- quote_table_name("trigger_cf2f9e35f002"),
  1776. -> 0.0001s,
  1777. -- execute("ALTER FUNCTION \"trigger_cf2f9e35f002\" RESET ALL"),
  1778. -> 0.0012s,
  1779. -- change_column_default("ci_build_trace_chunks", :build_id, nil),
  1780. -> 0.0075s,
  1781. -- change_column_default("ci_build_trace_chunks", :build_id_convert_to_bigint, 0),
  1782. -> 0.0066s,
  1783. -- execute("DROP INDEX index_ci_build_trace_chunks_on_build_id_and_chunk_index"),
  1784. -> 0.0017s,
  1785. -- 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"),
  1786. -> 0.0014s,
  1787. -- remove_foreign_key("ci_build_trace_chunks", {:name=>"fk_rails_1013b761f2"}),
  1788. -> 0.0244s,
  1789. -- quote_table_name("ci_build_trace_chunks"),
  1790. -> 0.0000s,
  1791. -- quote_column_name("fk_rails_1013b761f2_tmp"),
  1792. -> 0.0000s,
  1793. -- quote_column_name("fk_rails_1013b761f2"),
  1794. -> 0.0000s,
  1795. -- execute("ALTER TABLE \"ci_build_trace_chunks\"\nRENAME CONSTRAINT \"fk_rails_1013b761f2_tmp\" TO \"fk_rails_1013b761f2\"\n"),
  1796. -> 0.0013s,
  1797. == 20210714015537 FinalizeCiBuildTraceChunksBigintConversion: migrated (0.1301s) ,
  1798. ,
  1799. == 20210714043818 AddIndexForLabelAppliedToIssuableSla: migrating =============,
  1800. -- transaction_open?(),
  1801. -> 0.0000s,
  1802. -- 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}),
  1803. -> 0.0080s,
  1804. -- execute("SET statement_timeout TO 0"),
  1805. -> 0.0007s,
  1806. -- 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}),
  1807. -> 0.0100s,
  1808. -- execute("RESET statement_timeout"),
  1809. -> 0.0008s,
  1810. == 20210714043818 AddIndexForLabelAppliedToIssuableSla: migrated (0.0235s) ====,
  1811. ,
  1812. == 20210715074359 AddForeignKeyToDastProfileSchedulesOnDastProfile: migrating =,
  1813. -- transaction_open?(),
  1814. -> 0.0001s,
  1815. -- foreign_keys(:dast_profile_schedules),
  1816. -> 0.0217s,
  1817. -- 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"),
  1818. -> 0.0052s,
  1819. -- execute("SET statement_timeout TO 0"),
  1820. -> 0.0007s,
  1821. -- execute("ALTER TABLE dast_profile_schedules VALIDATE CONSTRAINT fk_61d52aa0e7;"),
  1822. -> 0.0066s,
  1823. -- execute("RESET statement_timeout"),
  1824. -> 0.0008s,
  1825. == 20210715074359 AddForeignKeyToDastProfileSchedulesOnDastProfile: migrated (0.0435s) ,
  1826. ,
  1827. == 20210715074933 AddForeignKeyToDastProfileSchedulesOnUser: migrating ========,
  1828. -- transaction_open?(),
  1829. -> 0.0000s,
  1830. -- foreign_keys(:dast_profile_schedules),
  1831. -> 0.0212s,
  1832. -- execute("ALTER TABLE dast_profile_schedules\nADD CONSTRAINT fk_aef03d62e5\nFOREIGN KEY (user_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n"),
  1833. -> 0.0111s,
  1834. -- execute("SET statement_timeout TO 0"),
  1835. -> 0.0006s,
  1836. -- execute("ALTER TABLE dast_profile_schedules VALIDATE CONSTRAINT fk_aef03d62e5;"),
  1837. -> 0.0127s,
  1838. -- execute("RESET statement_timeout"),
  1839. -> 0.0008s,
  1840. == 20210715074933 AddForeignKeyToDastProfileSchedulesOnUser: migrated (0.0541s) ,
  1841. ,
  1842. == 20210715075203 AddForeignKeyToDastProfileSchedulesOnProject: migrating =====,
  1843. -- transaction_open?(),
  1844. -> 0.0000s,
  1845. -- foreign_keys(:dast_profile_schedules),
  1846. -> 0.0216s,
  1847. -- execute("ALTER TABLE dast_profile_schedules\nADD CONSTRAINT fk_6cca0d8800\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n"),
  1848. -> 0.0129s,
  1849. -- execute("SET statement_timeout TO 0"),
  1850. -> 0.0006s,
  1851. -- execute("ALTER TABLE dast_profile_schedules VALIDATE CONSTRAINT fk_6cca0d8800;"),
  1852. -> 0.0181s,
  1853. -- execute("RESET statement_timeout"),
  1854. -> 0.0008s,
  1855. == 20210715075203 AddForeignKeyToDastProfileSchedulesOnProject: migrated (0.0616s) ,
  1856. ,
  1857. == 20210719145532 AddForeignKeysView: migrating ===============================,
  1858. -- 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"),
  1859. -> 0.0154s,
  1860. == 20210719145532 AddForeignKeysView: migrated (0.0157s) ======================,
  1861. ,
  1862. == 20210719182944 AddRequestResponseToSupporingMessage: migrating =============,
  1863. -- change_column_null(:vulnerability_finding_evidence_requests, :vulnerability_finding_evidence_id, true),
  1864. -> 0.0033s,
  1865. -- change_column_null(:vulnerability_finding_evidence_responses, :vulnerability_finding_evidence_id, true),
  1866. -> 0.0022s,
  1867. -- 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}}),
  1868. -> 0.0158s,
  1869. -- 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}}),
  1870. -> 0.0131s,
  1871. == 20210719182944 AddRequestResponseToSupporingMessage: migrated (0.0351s) ====,
  1872. ,
  1873. == 20210719192928 AddInviteEmailSuccessToMember: migrating ====================,
  1874. == 20210719192928 AddInviteEmailSuccessToMember: migrated (0.0000s) ===========,
  1875. ,
  1876. == 20210720130006 CreateErrorTrackingClientKeys: migrating ====================,
  1877. -- create_table(:error_tracking_client_keys, {}),
  1878. -- quote_column_name(:public_key),
  1879. -> 0.0001s,
  1880. -> 0.0386s,
  1881. -- quote_table_name("check_840b719790"),
  1882. -> 0.0001s,
  1883. -- quote_table_name(:error_tracking_client_keys),
  1884. -> 0.0000s,
  1885. -- execute("ALTER TABLE \"error_tracking_client_keys\"\nADD CONSTRAINT \"check_840b719790\" CHECK (char_length(\"public_key\") <= 255)\n"),
  1886. -> 0.0024s,
  1887. == 20210720130006 CreateErrorTrackingClientKeys: migrated (0.0476s) ===========,
  1888. ,
  1889. == 20210720140841 CreatePostgresAsyncIndexesTable: migrating ==================,
  1890. -- create_table(:postgres_async_indexes, {}),
  1891. -- quote_column_name(:name),
  1892. -> 0.0001s,
  1893. -- quote_column_name(:definition),
  1894. -> 0.0001s,
  1895. -- quote_column_name(:table_name),
  1896. -> 0.0000s,
  1897. -> 0.0229s,
  1898. -- quote_table_name("check_b732c6cd1d"),
  1899. -> 0.0001s,
  1900. -- quote_table_name("check_083b21157b"),
  1901. -> 0.0001s,
  1902. -- quote_table_name("check_e64ff4359e"),
  1903. -> 0.0001s,
  1904. -- quote_table_name(:postgres_async_indexes),
  1905. -> 0.0000s,
  1906. -- 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"),
  1907. -> 0.0030s,
  1908. == 20210720140841 CreatePostgresAsyncIndexesTable: migrated (0.0333s) =========,
  1909. ,
  1910. == 20210721125525 AddSignedFileToPackagesDebianProjectDistributions: migrating ,
  1911. -- add_column(:packages_debian_project_distributions, :signed_file, :text),
  1912. -> 0.0041s,
  1913. -- add_column(:packages_debian_project_distributions, :signed_file_store, :integer, {:limit=>2, :default=>1, :null=>false}),
  1914. -> 0.0035s,
  1915. == 20210721125525 AddSignedFileToPackagesDebianProjectDistributions: migrated (0.0080s) ,
  1916. ,
  1917. == 20210721125545 AddSignedFileToPackagesDebianGroupDistributions: migrating ==,
  1918. -- add_column(:packages_debian_group_distributions, :signed_file, :text),
  1919. -> 0.0037s,
  1920. -- add_column(:packages_debian_group_distributions, :signed_file_store, :integer, {:limit=>2, :default=>1, :null=>false}),
  1921. -> 0.0032s,
  1922. == 20210721125545 AddSignedFileToPackagesDebianGroupDistributions: migrated (0.0072s) ,
  1923. ,
  1924. == 20210721125620 AddTextLimitToPackagesDebianProjectDistributionsSignedFiles: migrating ,
  1925. -- transaction_open?(),
  1926. -> 0.0000s,
  1927. -- current_schema(),
  1928. -> 0.0010s,
  1929. -- execute("ALTER TABLE packages_debian_project_distributions\nADD CONSTRAINT check_9e5e22b7ff\nCHECK ( char_length(signed_file) <= 255 )\nNOT VALID;\n"),
  1930. -> 0.0024s,
  1931. -- current_schema(),
  1932. -> 0.0007s,
  1933. -- execute("SET statement_timeout TO 0"),
  1934. -> 0.0007s,
  1935. -- execute("ALTER TABLE packages_debian_project_distributions VALIDATE CONSTRAINT check_9e5e22b7ff;"),
  1936. -> 0.0027s,
  1937. -- execute("RESET statement_timeout"),
  1938. -> 0.0008s,
  1939. == 20210721125620 AddTextLimitToPackagesDebianProjectDistributionsSignedFiles: migrated (0.0241s) ,
  1940. ,
  1941. == 20210721125637 AddTextLimitToPackagesDebianGroupDistributionsSignedFiles: migrating ,
  1942. -- transaction_open?(),
  1943. -> 0.0000s,
  1944. -- current_schema(),
  1945. -> 0.0011s,
  1946. -- execute("ALTER TABLE packages_debian_group_distributions\nADD CONSTRAINT check_0007e0bf61\nCHECK ( char_length(signed_file) <= 255 )\nNOT VALID;\n"),
  1947. -> 0.0019s,
  1948. -- current_schema(),
  1949. -> 0.0007s,
  1950. -- execute("SET statement_timeout TO 0"),
  1951. -> 0.0008s,
  1952. -- execute("ALTER TABLE packages_debian_group_distributions VALIDATE CONSTRAINT check_0007e0bf61;"),
  1953. -> 0.0027s,
  1954. -- execute("RESET statement_timeout"),
  1955. -> 0.0008s,
  1956. == 20210721125637 AddTextLimitToPackagesDebianGroupDistributionsSignedFiles: migrated (0.0242s) ,
  1957. ,
  1958. == 20210721125804 RemoveSigningKeysFromPackagesDebianProjectDistributions: migrating ,
  1959. -- remove_column(:packages_debian_project_distributions, :encrypted_signing_keys, :text),
  1960. -> 0.0039s,
  1961. -- remove_column(:packages_debian_project_distributions, :encrypted_signing_keys_iv, :text),
  1962. -> 0.0020s,
  1963. == 20210721125804 RemoveSigningKeysFromPackagesDebianProjectDistributions: migrated (0.0061s) ,
  1964. ,
  1965. == 20210721125820 RemoveSigningKeysFromPackagesDebianGroupDistributions: migrating ,
  1966. -- remove_column(:packages_debian_group_distributions, :encrypted_signing_keys, :text),
  1967. -> 0.0030s,
  1968. -- remove_column(:packages_debian_group_distributions, :encrypted_signing_keys_iv, :text),
  1969. -> 0.0019s,
  1970. == 20210721125820 RemoveSigningKeysFromPackagesDebianGroupDistributions: migrated (0.0052s) ,
  1971. ,
  1972. == 20210721134706 AddTypeNewToIntegrations: migrating =========================,
  1973. -- add_column(:integrations, :type_new, :text),
  1974. -> 0.0041s,
  1975. == 20210721134706 AddTypeNewToIntegrations: migrated (0.0042s) ================,
  1976. ,
  1977. == 20210721134707 AddTextLimitToIntegrationsTypeNew: migrating ================,
  1978. -- transaction_open?(),
  1979. -> 0.0000s,
  1980. -- current_schema(),
  1981. -> 0.0009s,
  1982. -- execute("ALTER TABLE integrations\nADD CONSTRAINT check_a948a0aa7e\nCHECK ( char_length(type_new) <= 255 )\nNOT VALID;\n"),
  1983. -> 0.0026s,
  1984. -- current_schema(),
  1985. -> 0.0010s,
  1986. -- execute("SET statement_timeout TO 0"),
  1987. -> 0.0009s,
  1988. -- execute("ALTER TABLE integrations VALIDATE CONSTRAINT check_a948a0aa7e;"),
  1989. -> 0.0030s,
  1990. -- execute("RESET statement_timeout"),
  1991. -> 0.0008s,
  1992. == 20210721134707 AddTextLimitToIntegrationsTypeNew: migrated (0.0244s) =======,
  1993. ,
  1994. == 20210721135638 AddTriggersToIntegrationsTypeNew: migrating =================,
  1995. -- 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"),
  1996. -> 0.0064s,
  1997. -- execute("CREATE TRIGGER trigger_type_new_on_insert\nAFTER INSERT ON integrations\nFOR EACH ROW\nEXECUTE FUNCTION integrations_set_type_new();\n"),
  1998. -> 0.0023s,
  1999. == 20210721135638 AddTriggersToIntegrationsTypeNew: migrated (0.0091s) ========,
  2000. ,
  2001. == 20210721145029 AddStateToMembers: migrating ================================,
  2002. == 20210721145029 AddStateToMembers: migrated (0.0000s) =======================,
  2003. ,
  2004. == 20210721174411 AddIsRemovedToEscalationRules: migrating ====================,
  2005. -- add_column(:incident_management_escalation_rules, :is_removed, :boolean, {:null=>false, :default=>false}),
  2006. -> 0.0055s,
  2007. == 20210721174411 AddIsRemovedToEscalationRules: migrated (0.0057s) ===========,
  2008. ,
  2009. == 20210721174441 UpdateEscalationRuleFkForPendingAlertEscalations: migrating =,
  2010. -- foreign_keys(:incident_management_pending_alert_escalations),
  2011. -> 0.0199s,
  2012. -- remove_foreign_key(:incident_management_pending_alert_escalations, :incident_management_escalation_rules, {:name=>"fk_rails_057c1e3d87"}),
  2013. -> 0.0244s,
  2014. -- foreign_keys(:incident_management_pending_alert_escalations),
  2015. -> 0.0198s,
  2016. -- add_foreign_key(:incident_management_pending_alert_escalations, :incident_management_escalation_rules, {:column=>:rule_id, :on_delete=>:cascade, :name=>"fk_rails_f3d17bc8af", :validate=>true}),
  2017. -> 0.0044s,
  2018. == 20210721174441 UpdateEscalationRuleFkForPendingAlertEscalations: migrated (0.2040s) ,
  2019. ,
  2020. == 20210721174453 RemoveScheduleAndStatusNullConstraintsFromPendingEscalationsAlert: migrating ,
  2021. -- change_column_null(:incident_management_pending_alert_escalations, :status, true),
  2022. -> 0.0022s,
  2023. -- change_column_null(:incident_management_pending_alert_escalations, :schedule_id, true),
  2024. -> 0.0015s,
  2025. == 20210721174453 RemoveScheduleAndStatusNullConstraintsFromPendingEscalationsAlert: migrated (0.0111s) ,
  2026. ,
  2027. == 20210721174521 AddNonNullConstraintForEscalationRuleOnPendingAlertEscalations: migrating ,
  2028. -- 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"),
  2029. -> 0.0114s,
  2030. -- 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"),
  2031. -> 0.0079s,
  2032. -- exec_query("DELETE FROM incident_management_pending_alert_escalations WHERE rule_id IS NULL;"),
  2033. -> 0.0015s,
  2034. -- change_column_null(:incident_management_pending_alert_escalations, :rule_id, false),
  2035. -> 0.0016s,
  2036. == 20210721174521 AddNonNullConstraintForEscalationRuleOnPendingAlertEscalations: migrated (0.0231s) ,
  2037. ,
  2038. == 20210721211602 AddVulnerabilityAmountColumnIntoApprovalProjectRules: migrating ,
  2039. -- add_column(:approval_project_rules, :vulnerabilities_allowed, :integer, {:limit=>2}),
  2040. -> 0.0038s,
  2041. == 20210721211602 AddVulnerabilityAmountColumnIntoApprovalProjectRules: migrated (0.0040s) ,
  2042. ,
  2043. == 20210722010101 RescheduleDeleteOrphanedDeployments: migrating ==============,
  2044. -- Scheduled 0 DeleteOrphanedDeployments jobs with a maximum of 10000 records per batch and an interval of 120 seconds.,
  2045. ,
  2046. The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-08-24 02:10:11 UTC.",
  2047. == 20210722010101 RescheduleDeleteOrphanedDeployments: migrated (0.1925s) =====,
  2048. ,
  2049. == 20210722042939 UpdateIssuableSlasWhereIssueClosed: migrating ===============,
  2050. == 20210722042939 UpdateIssuableSlasWhereIssueClosed: migrated (0.0782s) ======,
  2051. ,
  2052. == 20210722055217 AddUpdatedAtIndexOnMergeRequests: migrating =================,
  2053. -- transaction_open?(),
  2054. -> 0.0001s,
  2055. -- 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}),
  2056. -> 0.0951s,
  2057. -- execute("SET statement_timeout TO 0"),
  2058. -> 0.0016s,
  2059. -- 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}),
  2060. -> 0.0172s,
  2061. -- execute("RESET statement_timeout"),
  2062. -> 0.0014s,
  2063. == 20210722055217 AddUpdatedAtIndexOnMergeRequests: migrated (0.1484s) ========,
  2064. ,
  2065. == 20210722074220 RemoveNullConstraintOnScheduleFromEscalationRules: migrating ,
  2066. -- change_column_null(:incident_management_escalation_rules, :oncall_schedule_id, true),
  2067. -> 0.0042s,
  2068. == 20210722074220 RemoveNullConstraintOnScheduleFromEscalationRules: migrated (0.0044s) ,
  2069. ,
  2070. == 20210722074242 AddUserToEscalationRules: migrating =========================,
  2071. -- add_column(:incident_management_escalation_rules, :user_id, :bigint, {:null=>true}),
  2072. -> 0.0026s,
  2073. == 20210722074242 AddUserToEscalationRules: migrated (0.0125s) ================,
  2074. ,
  2075. == 20210722074256 AddUserIndexToEscalationRules: migrating ====================,
  2076. -- transaction_open?(),
  2077. -> 0.0001s,
  2078. -- indexes(:incident_management_escalation_rules),
  2079. -> 0.0093s,
  2080. -- execute("SET statement_timeout TO 0"),
  2081. -> 0.0008s,
  2082. -- remove_index(:incident_management_escalation_rules, {:algorithm=>:concurrently, :name=>"index_on_policy_schedule_status_elapsed_time_escalation_rules"}),
  2083. -> 0.0054s,
  2084. -- execute("RESET statement_timeout"),
  2085. -> 0.0009s,
  2086. -- transaction_open?(),
  2087. -> 0.0000s,
  2088. -- index_exists?(:incident_management_escalation_rules, :user_id, {:name=>"index_escalation_rules_on_user", :algorithm=>:concurrently}),
  2089. -> 0.0058s,
  2090. -- execute("SET statement_timeout TO 0"),
  2091. -> 0.0011s,
  2092. -- add_index(:incident_management_escalation_rules, :user_id, {:name=>"index_escalation_rules_on_user", :algorithm=>:concurrently}),
  2093. -> 0.0087s,
  2094. -- execute("RESET statement_timeout"),
  2095. -> 0.0009s,
  2096. -- transaction_open?(),
  2097. -> 0.0000s,
  2098. -- 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}),
  2099. -> 0.0075s,
  2100. -- execute("SET statement_timeout TO 0"),
  2101. -> 0.0011s,
  2102. -- 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}),
  2103. -> 0.0083s,
  2104. -- execute("RESET statement_timeout"),
  2105. -> 0.0009s,
  2106. == 20210722074256 AddUserIndexToEscalationRules: migrated (0.0632s) ===========,
  2107. ,
  2108. == 20210722074309 AddUserFkToEscalationRules: migrating =======================,
  2109. -- transaction_open?(),
  2110. -> 0.0000s,
  2111. -- foreign_keys(:incident_management_escalation_rules),
  2112. -> 0.0187s,
  2113. -- execute("ALTER TABLE incident_management_escalation_rules\nADD CONSTRAINT fk_0314ee86eb\nFOREIGN KEY (user_id)\nREFERENCES users (id)\nON DELETE CASCADE\nNOT VALID;\n"),
  2114. -> 0.0099s,
  2115. -- execute("SET statement_timeout TO 0"),
  2116. -> 0.0010s,
  2117. -- execute("ALTER TABLE incident_management_escalation_rules VALIDATE CONSTRAINT fk_0314ee86eb;"),
  2118. -> 0.0064s,
  2119. -- execute("RESET statement_timeout"),
  2120. -> 0.0009s,
  2121. == 20210722074309 AddUserFkToEscalationRules: migrated (0.0471s) ==============,
  2122. ,
  2123. == 20210722074339 AddXorCheckConstraintForEscalationRules: migrating ==========,
  2124. -- transaction_open?(),
  2125. -> 0.0000s,
  2126. -- current_schema(),
  2127. -> 0.0011s,
  2128. -- 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"),
  2129. -> 0.0027s,
  2130. -- current_schema(),
  2131. -> 0.0006s,
  2132. -- execute("SET statement_timeout TO 0"),
  2133. -> 0.0012s,
  2134. -- execute("ALTER TABLE incident_management_escalation_rules VALIDATE CONSTRAINT escalation_rules_one_of_oncall_schedule_or_user;"),
  2135. -> 0.0030s,
  2136. -- execute("RESET statement_timeout"),
  2137. -> 0.0010s,
  2138. == 20210722074339 AddXorCheckConstraintForEscalationRules: migrated (0.0252s) =,
  2139. ,
  2140. == 20210722132844 DevopsAdoptionDropRedundantIndexes: migrating ===============,
  2141. -- transaction_open?(),
  2142. -> 0.0000s,
  2143. -- indexes(:ci_job_artifacts),
  2144. -> 0.0238s,
  2145. -- execute("SET statement_timeout TO 0"),
  2146. -> 0.0013s,
  2147. -- remove_index(:ci_job_artifacts, {:algorithm=>:concurrently, :name=>"index_ci_job_artifacts_sast_for_devops_adoption"}),
  2148. -> 0.0048s,
  2149. -- execute("RESET statement_timeout"),
  2150. -> 0.0010s,
  2151. -- transaction_open?(),
  2152. -> 0.0000s,
  2153. -- indexes(:ci_job_artifacts),
  2154. -> 0.0215s,
  2155. -- execute("SET statement_timeout TO 0"),
  2156. -> 0.0011s,
  2157. -- remove_index(:ci_job_artifacts, {:algorithm=>:concurrently, :name=>"index_ci_job_artifacts_dast_for_devops_adoption"}),
  2158. -> 0.0045s,
  2159. -- execute("RESET statement_timeout"),
  2160. -> 0.0008s,
  2161. == 20210722132844 DevopsAdoptionDropRedundantIndexes: migrated (0.0683s) ======,
  2162. ,
  2163. == 20210722150102 OperationsFeatureFlagsCorrectFlexibleRolloutValues: migrating ,
  2164. -- quote_string("userId"),
  2165. -> 0.0001s,
  2166. -- quote_string("USERID"),
  2167. -> 0.0000s,
  2168. -- execute(" UPDATE operations_strategies\n SET parameters = parameters || jsonb_build_object('stickiness', 'userId')\n WHERE name = 'flexibleRollout' AND parameters->>'stickiness' = 'USERID'\n"),
  2169. -> 0.0047s,
  2170. -- quote_string("random"),
  2171. -> 0.0001s,
  2172. -- quote_string("RANDOM"),
  2173. -> 0.0000s,
  2174. -- execute(" UPDATE operations_strategies\n SET parameters = parameters || jsonb_build_object('stickiness', 'random')\n WHERE name = 'flexibleRollout' AND parameters->>'stickiness' = 'RANDOM'\n"),
  2175. -> 0.0012s,
  2176. -- quote_string("sessionId"),
  2177. -> 0.0000s,
  2178. -- quote_string("SESSIONID"),
  2179. -> 0.0000s,
  2180. -- execute(" UPDATE operations_strategies\n SET parameters = parameters || jsonb_build_object('stickiness', 'sessionId')\n WHERE name = 'flexibleRollout' AND parameters->>'stickiness' = 'SESSIONID'\n"),
  2181. -> 0.0011s,
  2182. -- quote_string("default"),
  2183. -> 0.0000s,
  2184. -- quote_string("DEFAULT"),
  2185. -> 0.0000s,
  2186. -- execute(" UPDATE operations_strategies\n SET parameters = parameters || jsonb_build_object('stickiness', 'default')\n WHERE name = 'flexibleRollout' AND parameters->>'stickiness' = 'DEFAULT'\n"),
  2187. -> 0.0010s,
  2188. == 20210722150102 OperationsFeatureFlagsCorrectFlexibleRolloutValues: migrated (0.0095s) ,
  2189. ,
  2190. == 20210722151951 AddColumnsToSecurityScans: migrating ========================,
  2191. -- add_column(:security_scans, :project_id, :bigint),
  2192. -> 0.0027s,
  2193. -- add_column(:security_scans, :pipeline_id, :bigint),
  2194. -> 0.0018s,
  2195. == 20210722151951 AddColumnsToSecurityScans: migrated (0.0116s) ===============,
  2196. ,
  2197. == 20210722155635 FinalizeConvertGeoJobArtifactDeletedEventsBigint: migrating =,
  2198. -- transaction_open?(),
  2199. -> 0.0000s,
  2200. -- 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.,
  2201. unknown OID 1034: failed to recognize type of 'relacl'. It will be treated as String.,
  2202. unknown OID 194: failed to recognize type of 'relpartbound'. It will be treated as String.,
  2203. ,
  2204. -> 0.0074s,
  2205. -- execute("SET statement_timeout TO 0"),
  2206. -> 0.0007s,
  2207. -- 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}),
  2208. -> 0.0094s,
  2209. -- execute("RESET statement_timeout"),
  2210. -> 0.0007s,
  2211. -- execute("LOCK TABLE geo_job_artifact_deleted_events IN ACCESS EXCLUSIVE MODE"),
  2212. -> 0.0010s,
  2213. -- quote_column_name("job_artifact_id_tmp"),
  2214. -> 0.0001s,
  2215. -- quote_column_name("job_artifact_id"),
  2216. -> 0.0000s,
  2217. -- quote_column_name("job_artifact_id_convert_to_bigint"),
  2218. -> 0.0000s,
  2219. -- execute("ALTER TABLE geo_job_artifact_deleted_events RENAME COLUMN \"job_artifact_id\" TO \"job_artifact_id_tmp\""),
  2220. -> 0.0014s,
  2221. -- execute("ALTER TABLE geo_job_artifact_deleted_events RENAME COLUMN \"job_artifact_id_convert_to_bigint\" TO \"job_artifact_id\""),
  2222. -> 0.0012s,
  2223. -- execute("ALTER TABLE geo_job_artifact_deleted_events RENAME COLUMN \"job_artifact_id_tmp\" TO \"job_artifact_id_convert_to_bigint\""),
  2224. -> 0.0013s,
  2225. -- change_column_default("geo_job_artifact_deleted_events", "job_artifact_id", nil),
  2226. -> 0.0067s,
  2227. -- change_column_default("geo_job_artifact_deleted_events", "job_artifact_id_convert_to_bigint", 0),
  2228. -> 0.0059s,
  2229. -- quote_table_name("trigger_f1ca8ec18d78"),
  2230. -> 0.0001s,
  2231. -- execute("ALTER FUNCTION \"trigger_f1ca8ec18d78\" RESET ALL"),
  2232. -> 0.0013s,
  2233. -- execute("DROP INDEX index_geo_job_artifact_deleted_events_on_job_artifact_id"),
  2234. -> 0.0020s,
  2235. -- 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"),
  2236. -> 0.0012s,
  2237. == 20210722155635 FinalizeConvertGeoJobArtifactDeletedEventsBigint: migrated (0.0611s) ,
  2238. ,
  2239. == 20210722210041 AddOverriddenUuidToSecurityFindings: migrating ==============,
  2240. -- add_column(:security_findings, :overridden_uuid, :uuid, {:null=>true}),
  2241. -> 0.0027s,
  2242. == 20210722210041 AddOverriddenUuidToSecurityFindings: migrated (0.0087s) =====,
  2243. ,
  2244. == 20210723173132 CreateIndexOnEnvironmentsAutoDeleteAt: migrating ============,
  2245. -- transaction_open?(),
  2246. -> 0.0000s,
  2247. -- 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}),
  2248. -> 0.0155s,
  2249. -- execute("SET statement_timeout TO 0"),
  2250. -> 0.0007s,
  2251. -- 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}),
  2252. -> 0.0097s,
  2253. -- execute("RESET statement_timeout"),
  2254. -> 0.0008s,
  2255. == 20210723173132 CreateIndexOnEnvironmentsAutoDeleteAt: migrated (0.0307s) ===,
  2256. ,
  2257. == 20210726134950 AddIntegratedToErrorTrackingSetting: migrating ==============,
  2258. -- add_column(:project_error_tracking_settings, :integrated, :boolean, {:null=>false, :default=>false}),
  2259. -> 0.0048s,
  2260. == 20210726134950 AddIntegratedToErrorTrackingSetting: migrated (0.0050s) =====,
  2261. ,
  2262. == 20210726202748 AddVulnerabilitySeveritiesIntoApprovalProjectRules: migrating ,
  2263. -- add_column(:approval_project_rules, :severity_levels, :text, {:array=>true, :null=>false, :default=>[]}),
  2264. -> 0.0050s,
  2265. == 20210726202748 AddVulnerabilitySeveritiesIntoApprovalProjectRules: migrated (0.0052s) ,
  2266. ,
  2267. == 20210727113447 BackfillIntegrationsTypeNew: migrating ======================,
  2268. == 20210727113447 BackfillIntegrationsTypeNew: migrated (0.1496s) =============,
  2269. ,
  2270. == 20210727175201 RemoveUnusedColumnsFromElasticReindexingTasks: migrating ====,
  2271. -- remove_column(:elastic_reindexing_tasks, :documents_count, :integer),
  2272. -> 0.0044s,
  2273. -- remove_column(:elastic_reindexing_tasks, :index_name_from, :text),
  2274. -> 0.0040s,
  2275. -- remove_column(:elastic_reindexing_tasks, :index_name_to, :text),
  2276. -> 0.0034s,
  2277. -- remove_column(:elastic_reindexing_tasks, :elastic_task, :text),
  2278. -> 0.0033s,
  2279. -- remove_column(:elastic_reindexing_tasks, :documents_count_target, :integer),
  2280. -> 0.0029s,
  2281. == 20210727175201 RemoveUnusedColumnsFromElasticReindexingTasks: migrated (0.0187s) ,
  2282. ,
  2283. == 20210728110654 AddStatusToErrorTrackingError: migrating ====================,
  2284. -- add_column(:error_tracking_errors, :status, :integer, {:null=>false, :default=>0, :limit=>2}),
  2285. -> 0.0055s,
  2286. == 20210728110654 AddStatusToErrorTrackingError: migrated (0.0057s) ===========,
  2287. ,
  2288. == 20210728174349 AddFkToSecurityScansColumns: migrating ======================,
  2289. -- transaction_open?(),
  2290. -> 0.0000s,
  2291. -- index_exists?(:security_scans, :project_id, {:algorithm=>:concurrently}),
  2292. -> 0.0123s,
  2293. -- execute("SET statement_timeout TO 0"),
  2294. -> 0.0008s,
  2295. -- add_index(:security_scans, :project_id, {:algorithm=>:concurrently}),
  2296. -> 0.0296s,
  2297. -- execute("RESET statement_timeout"),
  2298. -> 0.0013s,
  2299. -- transaction_open?(),
  2300. -> 0.0001s,
  2301. -- foreign_keys(:security_scans),
  2302. -> 0.0228s,
  2303. -- execute("ALTER TABLE security_scans\nADD CONSTRAINT fk_dbc89265b9\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n"),
  2304. -> 0.0120s,
  2305. -- execute("SET statement_timeout TO 0"),
  2306. -> 0.0006s,
  2307. -- execute("ALTER TABLE security_scans VALIDATE CONSTRAINT fk_dbc89265b9;"),
  2308. -> 0.0076s,
  2309. -- execute("RESET statement_timeout"),
  2310. -> 0.0009s,
  2311. -- transaction_open?(),
  2312. -> 0.0000s,
  2313. -- index_exists?(:security_scans, :pipeline_id, {:algorithm=>:concurrently}),
  2314. -> 0.0106s,
  2315. -- execute("SET statement_timeout TO 0"),
  2316. -> 0.0007s,
  2317. -- add_index(:security_scans, :pipeline_id, {:algorithm=>:concurrently}),
  2318. -> 0.0082s,
  2319. -- execute("RESET statement_timeout"),
  2320. -> 0.0008s,
  2321. == 20210728174349 AddFkToSecurityScansColumns: migrated (0.1260s) =============,
  2322. ,
  2323. == 20210729061526 AddPronunciationToUserDetails: migrating ====================,
  2324. -- add_column(:user_details, :pronunciation, :text, {:null=>true}),
  2325. -> 0.0028s,
  2326. == 20210729061526 AddPronunciationToUserDetails: migrated (0.0086s) ===========,
  2327. ,
  2328. == 20210729061556 AddTextLimitToUserDetailsPronunciation: migrating ===========,
  2329. -- transaction_open?(),
  2330. -> 0.0000s,
  2331. -- current_schema(),
  2332. -> 0.0009s,
  2333. -- execute("ALTER TABLE user_details\nADD CONSTRAINT check_f932ed37db\nCHECK ( char_length(pronunciation) <= 255 )\nNOT VALID;\n"),
  2334. -> 0.0025s,
  2335. -- current_schema(),
  2336. -> 0.0007s,
  2337. -- execute("SET statement_timeout TO 0"),
  2338. -> 0.0007s,
  2339. -- execute("ALTER TABLE user_details VALIDATE CONSTRAINT check_f932ed37db;"),
  2340. -> 0.0031s,
  2341. -- execute("RESET statement_timeout"),
  2342. -> 0.0008s,
  2343. == 20210729061556 AddTextLimitToUserDetailsPronunciation: migrated (0.0231s) ==,
  2344. ,
  2345. == 20210729123101 ConfirmSecurityBot: migrating ===============================,
  2346. == 20210729123101 ConfirmSecurityBot: migrated (0.0847s) ======================,
  2347. ,
  2348. == 20210729161242 RemoveForeignKeysFromCiTestCaseFailures: migrating ==========,
  2349. -- foreign_keys(:ci_test_case_failures),
  2350. -> 0.0184s,
  2351. -- remove_foreign_key(:ci_test_case_failures, {:column=>:build_id}),
  2352. -> 0.0221s,
  2353. -- foreign_keys(:ci_test_case_failures),
  2354. -> 0.0205s,
  2355. -- remove_foreign_key(:ci_test_case_failures, {:column=>:test_case_id}),
  2356. -> 0.0206s,
  2357. == 20210729161242 RemoveForeignKeysFromCiTestCaseFailures: migrated (0.0940s) =,
  2358. ,
  2359. == 20210729163312 ReScheduleLatestPipelineIdPopulationWithAllSecurityRelatedArtifactTypes: migrating ,
  2360. == 20210729163312 ReScheduleLatestPipelineIdPopulationWithAllSecurityRelatedArtifactTypes: migrated (0.0003s) ,
  2361. ,
  2362. == 20210729192148 RemoveForeignKeysFromCiTestCases: migrating =================,
  2363. -- foreign_keys(:ci_test_cases),
  2364. -> 0.0206s,
  2365. -- remove_foreign_key(:ci_test_cases, {:column=>:project_id}),
  2366. -> 0.0228s,
  2367. == 20210729192148 RemoveForeignKeysFromCiTestCases: migrated (0.0500s) ========,
  2368. ,
  2369. == 20210729192959 DropCiTestCaseFailuresTable: migrating ======================,
  2370. -- drop_table(:ci_test_case_failures),
  2371. -> 0.0092s,
  2372. == 20210729192959 DropCiTestCaseFailuresTable: migrated (0.0094s) =============,
  2373. ,
  2374. == 20210729193056 DropCiTestCasesTable: migrating =============================,
  2375. -- drop_table(:ci_test_cases),
  2376. -> 0.0083s,
  2377. == 20210729193056 DropCiTestCasesTable: migrated (0.0084s) ====================,
  2378. ,
  2379. == 20210729202143 CreateIncidentManagementIssuableEscalationStatuses: migrating ,
  2380. -- create_table(:incident_management_issuable_escalation_statuses),
  2381. -> 0.0443s,
  2382. == 20210729202143 CreateIncidentManagementIssuableEscalationStatuses: migrated (0.0445s) ,
  2383. ,
  2384. == 20210730101609 CreateAnalyticsCycleAnalyticsStageEventHashes: migrating ====,
  2385. -- create_table(:analytics_cycle_analytics_stage_event_hashes),
  2386. -> 0.0242s,
  2387. == 20210730101609 CreateAnalyticsCycleAnalyticsStageEventHashes: migrated (0.0244s) ,
  2388. ,
  2389. == 20210730102952 AddStageHashFkToProjectStages: migrating ====================,
  2390. -- column_exists?(:analytics_cycle_analytics_project_stages, :stage_event_hash_id),
  2391. -> 0.0086s,
  2392. -- add_column(:analytics_cycle_analytics_project_stages, :stage_event_hash_id, :bigint),
  2393. -> 0.0038s,
  2394. -- transaction_open?(),
  2395. -> 0.0000s,
  2396. -- index_exists?(:analytics_cycle_analytics_project_stages, :stage_event_hash_id, {:name=>"index_project_stages_on_stage_event_hash_id", :algorithm=>:concurrently}),
  2397. -> 0.0146s,
  2398. -- execute("SET statement_timeout TO 0"),
  2399. -> 0.0007s,
  2400. -- add_index(:analytics_cycle_analytics_project_stages, :stage_event_hash_id, {:name=>"index_project_stages_on_stage_event_hash_id", :algorithm=>:concurrently}),
  2401. -> 0.0086s,
  2402. -- execute("RESET statement_timeout"),
  2403. -> 0.0008s,
  2404. -- transaction_open?(),
  2405. -> 0.0000s,
  2406. -- foreign_keys(:analytics_cycle_analytics_project_stages),
  2407. -> 0.0226s,
  2408. -- 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"),
  2409. -> 0.0046s,
  2410. -- execute("SET statement_timeout TO 0"),
  2411. -> 0.0007s,
  2412. -- execute("ALTER TABLE analytics_cycle_analytics_project_stages VALIDATE CONSTRAINT fk_c3339bdfc9;"),
  2413. -> 0.0059s,
  2414. -- execute("RESET statement_timeout"),
  2415. -> 0.0009s,
  2416. == 20210730102952 AddStageHashFkToProjectStages: migrated (0.0844s) ===========,
  2417. ,
  2418. == 20210730103808 AddStageHashFkToGroupStages: migrating ======================,
  2419. -- column_exists?(:analytics_cycle_analytics_group_stages, :stage_event_hash_id),
  2420. -> 0.0072s,
  2421. -- add_column(:analytics_cycle_analytics_group_stages, :stage_event_hash_id, :bigint),
  2422. -> 0.0036s,
  2423. -- transaction_open?(),
  2424. -> 0.0000s,
  2425. -- index_exists?(:analytics_cycle_analytics_group_stages, :stage_event_hash_id, {:name=>"index_group_stages_on_stage_event_hash_id", :algorithm=>:concurrently}),
  2426. -> 0.0156s,
  2427. -- execute("SET statement_timeout TO 0"),
  2428. -> 0.0009s,
  2429. -- add_index(:analytics_cycle_analytics_group_stages, :stage_event_hash_id, {:name=>"index_group_stages_on_stage_event_hash_id", :algorithm=>:concurrently}),
  2430. -> 0.0096s,
  2431. -- execute("RESET statement_timeout"),
  2432. -> 0.0009s,
  2433. -- transaction_open?(),
  2434. -> 0.0000s,
  2435. -- foreign_keys(:analytics_cycle_analytics_group_stages),
  2436. -> 0.0185s,
  2437. -- 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"),
  2438. -> 0.0029s,
  2439. -- execute("SET statement_timeout TO 0"),
  2440. -> 0.0008s,
  2441. -- execute("ALTER TABLE analytics_cycle_analytics_group_stages VALIDATE CONSTRAINT fk_3078345d6d;"),
  2442. -> 0.0057s,
  2443. -- execute("RESET statement_timeout"),
  2444. -> 0.0009s,
  2445. == 20210730103808 AddStageHashFkToGroupStages: migrated (0.0807s) =============,
  2446. ,
  2447. == 20210730170823 ScheduleSecuritySettingCreation: migrating ==================,
  2448. == 20210730170823 ScheduleSecuritySettingCreation: migrated (0.0002s) =========,
  2449. ,
  2450. == 20210802043253 FinalizePushEventPayloadsBigintConversion3: migrating =======,
  2451. -- columns("push_event_payloads"),
  2452. -> 0.0060s,
  2453. -- transaction_open?(),
  2454. -> 0.0000s,
  2455. -- 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}),
  2456. -> 0.0037s,
  2457. -- execute("SET statement_timeout TO 0"),
  2458. -> 0.0009s,
  2459. -- 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}),
  2460. -> 0.0094s,
  2461. -- execute("RESET statement_timeout"),
  2462. -> 0.0008s,
  2463. -- transaction_open?(),
  2464. -> 0.0000s,
  2465. -- foreign_keys("push_event_payloads"),
  2466. -> 0.0209s,
  2467. -- execute("LOCK TABLE events, push_event_payloads IN SHARE ROW EXCLUSIVE MODE"),
  2468. -> 0.0013s,
  2469. -- 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"),
  2470. -> 0.0070s,
  2471. -- execute("SET statement_timeout TO 0"),
  2472. -> 0.0010s,
  2473. -- execute("ALTER TABLE push_event_payloads VALIDATE CONSTRAINT fk_a5e47ac4c5;"),
  2474. -> 0.0079s,
  2475. -- execute("RESET statement_timeout"),
  2476. -> 0.0010s,
  2477. -- execute("LOCK TABLE events, push_event_payloads IN ACCESS EXCLUSIVE MODE"),
  2478. -> 0.0011s,
  2479. -- quote_table_name("push_event_payloads"),
  2480. -> 0.0001s,
  2481. -- quote_column_name(:event_id),
  2482. -> 0.0001s,
  2483. -- quote_column_name("event_id_tmp"),
  2484. -> 0.0000s,
  2485. -- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id\" TO \"event_id_tmp\""),
  2486. -> 0.0017s,
  2487. -- quote_table_name("push_event_payloads"),
  2488. -> 0.0001s,
  2489. -- quote_column_name(:event_id_convert_to_bigint),
  2490. -> 0.0001s,
  2491. -- quote_column_name(:event_id),
  2492. -> 0.0000s,
  2493. -- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id_convert_to_bigint\" TO \"event_id\""),
  2494. -> 0.0015s,
  2495. -- quote_table_name("push_event_payloads"),
  2496. -> 0.0001s,
  2497. -- quote_column_name("event_id_tmp"),
  2498. -> 0.0000s,
  2499. -- quote_column_name(:event_id_convert_to_bigint),
  2500. -> 0.0000s,
  2501. -- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id_tmp\" TO \"event_id_convert_to_bigint\""),
  2502. -> 0.0015s,
  2503. -- quote_table_name("trigger_07c94931164e"),
  2504. -> 0.0001s,
  2505. -- execute("ALTER FUNCTION \"trigger_07c94931164e\" RESET ALL"),
  2506. -> 0.0015s,
  2507. -- change_column_default("push_event_payloads", :event_id, nil),
  2508. -> 0.0090s,
  2509. -- change_column_default("push_event_payloads", :event_id_convert_to_bigint, 0),
  2510. -> 0.0073s,
  2511. -- execute("ALTER TABLE push_event_payloads DROP CONSTRAINT push_event_payloads_pkey"),
  2512. -> 0.0029s,
  2513. -- rename_index("push_event_payloads", "index_push_event_payloads_on_event_id_convert_to_bigint", "push_event_payloads_pkey"),
  2514. -> 0.0018s,
  2515. -- execute("ALTER TABLE push_event_payloads ADD CONSTRAINT push_event_payloads_pkey PRIMARY KEY USING INDEX push_event_payloads_pkey"),
  2516. -> 0.0025s,
  2517. -- remove_foreign_key("push_event_payloads", {:name=>"fk_36c74129da"}),
  2518. -> 0.0258s,
  2519. -- quote_table_name("push_event_payloads"),
  2520. -> 0.0001s,
  2521. -- quote_column_name("fk_a5e47ac4c5"),
  2522. -> 0.0001s,
  2523. -- quote_column_name("fk_36c74129da"),
  2524. -> 0.0000s,
  2525. -- execute("ALTER TABLE \"push_event_payloads\"\nRENAME CONSTRAINT \"fk_a5e47ac4c5\" TO \"fk_36c74129da\"\n"),
  2526. -> 0.0015s,
  2527. == 20210802043253 FinalizePushEventPayloadsBigintConversion3: migrated (0.1513s) ,
  2528. ,
  2529. == 20210802112233 AddIndexIssuesOnProjectIdAndStateIdAndCreatedAtAndId: migrating ,
  2530. -- transaction_open?(),
  2531. -> 0.0000s,
  2532. -- 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}),
  2533. -> 0.0595s,
  2534. -- execute("SET statement_timeout TO 0"),
  2535. -> 0.0010s,
  2536. -- 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}),
  2537. -> 0.0129s,
  2538. -- execute("RESET statement_timeout"),
  2539. -> 0.0011s,
  2540. == 20210802112233 AddIndexIssuesOnProjectIdAndStateIdAndCreatedAtAndId: migrated (0.0795s) ,
  2541. ,
  2542. == 20210802131812 FinalizeConvertDeploymentsBigint: migrating =================,
  2543. -- transaction_open?(),
  2544. -> 0.0000s,
  2545. -- index_exists?("deployments", ["deployable_type", "deployable_id_convert_to_bigint"], {:name=>"index_deployments_on_deployable_type_and_deployable_id_bigint", :algorithm=>:concurrently}),
  2546. -> 0.0480s,
  2547. -- execute("SET statement_timeout TO 0"),
  2548. -> 0.0010s,
  2549. -- add_index("deployments", ["deployable_type", "deployable_id_convert_to_bigint"], {:name=>"index_deployments_on_deployable_type_and_deployable_id_bigint", :algorithm=>:concurrently}),
  2550. -> 0.0114s,
  2551. -- execute("RESET statement_timeout"),
  2552. -> 0.0019s,
  2553. -- quote_column_name("deployable_id"),
  2554. -> 0.0001s,
  2555. -- quote_column_name("deployable_id_tmp"),
  2556. -> 0.0000s,
  2557. -- execute("ALTER TABLE deployments RENAME COLUMN \"deployable_id\" TO \"deployable_id_tmp\""),
  2558. -> 0.0022s,
  2559. -- quote_column_name("deployable_id_convert_to_bigint"),
  2560. -> 0.0001s,
  2561. -- quote_column_name("deployable_id"),
  2562. -> 0.0001s,
  2563. -- execute("ALTER TABLE deployments RENAME COLUMN \"deployable_id_convert_to_bigint\" TO \"deployable_id\""),
  2564. -> 0.0020s,
  2565. -- quote_column_name("deployable_id_tmp"),
  2566. -> 0.0001s,
  2567. -- quote_column_name("deployable_id_convert_to_bigint"),
  2568. -> 0.0000s,
  2569. -- execute("ALTER TABLE deployments RENAME COLUMN \"deployable_id_tmp\" TO \"deployable_id_convert_to_bigint\""),
  2570. -> 0.0020s,
  2571. -- quote_table_name("trigger_77f5e1d20482"),
  2572. -> 0.0002s,
  2573. -- execute("ALTER FUNCTION \"trigger_77f5e1d20482\" RESET ALL"),
  2574. -> 0.0021s,
  2575. -- execute("DROP INDEX index_deployments_on_deployable_type_and_deployable_id"),
  2576. -> 0.0035s,
  2577. -- rename_index("deployments", "index_deployments_on_deployable_type_and_deployable_id_bigint", "index_deployments_on_deployable_type_and_deployable_id"),
  2578. -> 0.0051s,
  2579. == 20210802131812 FinalizeConvertDeploymentsBigint: migrated (0.1060s) ========,
  2580. ,
  2581. == 20210803110920 AddUniqueIndexToVulnerabilityFlagsTable: migrating ==========,
  2582. -- transaction_open?(),
  2583. -> 0.0001s,
  2584. -- index_exists?(:vulnerability_flags, [:vulnerability_occurrence_id, :flag_type, :origin], {:name=>"index_vulnerability_flags_on_unique_columns", :unique=>true, :algorithm=>:concurrently}),
  2585. -> 0.0102s,
  2586. -- execute("SET statement_timeout TO 0"),
  2587. -> 0.0015s,
  2588. -- add_index(:vulnerability_flags, [:vulnerability_occurrence_id, :flag_type, :origin], {:name=>"index_vulnerability_flags_on_unique_columns", :unique=>true, :algorithm=>:concurrently}),
  2589. -> 0.0122s,
  2590. -- execute("RESET statement_timeout"),
  2591. -> 0.0013s,
  2592. == 20210803110920 AddUniqueIndexToVulnerabilityFlagsTable: migrated (0.0311s) =,
  2593. ,
  2594. == 20210804150320 CreateBaseWorkItemTypes: migrating ==========================,
  2595. == 20210804150320 CreateBaseWorkItemTypes: migrated (0.1840s) =================,
  2596. ,
  2597. == 20210804150624 RemoveClusterImageScanningFromApprovalProjectRules: migrating ,
  2598. -- execute("update approval_project_rules set scanners = array_remove(scanners, 'cluster_image_scanning') where scanners @> '{cluster_image_scanning}'"),
  2599. -> 0.0101s,
  2600. == 20210804150624 RemoveClusterImageScanningFromApprovalProjectRules: migrated (0.0104s) ,
  2601. ,
  2602. == 20210804151444 PrepareIndexesForCiJobArtifactBigintConversion: migrating ===,
  2603. == 20210804151444 PrepareIndexesForCiJobArtifactBigintConversion: migrated (0.0201s) ,
  2604. ,
  2605. == 20210804153307 PrepareIndexesForTaggingBigintConversion: migrating =========,
  2606. == 20210804153307 PrepareIndexesForTaggingBigintConversion: migrated (0.0162s) ,
  2607. ,
  2608. == 20210804154407 PrepareIndexesForCiStageBigintConversion: migrating =========,
  2609. == 20210804154407 PrepareIndexesForCiStageBigintConversion: migrated (0.0093s) ,
  2610. ,
  2611. == 20210804200114 CreateCustomerRelationsOrganizations: migrating =============,
  2612. -- create_table(:customer_relations_organizations, {}),
  2613. -- quote_column_name(:name),
  2614. -> 0.0001s,
  2615. -- quote_column_name(:description),
  2616. -> 0.0001s,
  2617. -> 0.0584s,
  2618. -- quote_table_name("check_2ba9ef1c4c"),
  2619. -> 0.0002s,
  2620. -- quote_table_name("check_e476b6058e"),
  2621. -> 0.0001s,
  2622. -- quote_table_name(:customer_relations_organizations),
  2623. -> 0.0000s,
  2624. -- 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"),
  2625. -> 0.0039s,
  2626. == 20210804200114 CreateCustomerRelationsOrganizations: migrated (0.0744s) ====,
  2627. ,
  2628. == 20210804202057 AddTmpIndexApprovalProjectRulesScanners: migrating ==========,
  2629. -- transaction_open?(),
  2630. -> 0.0000s,
  2631. -- index_exists?(:approval_project_rules, :scanners, {:name=>"tmp_index_approval_project_rules_scanners", :using=>:gin, :where=>"scanners @> '{cluster_image_scanning}'", :algorithm=>:concurrently}),
  2632. -> 0.0154s,
  2633. -- execute("SET statement_timeout TO 0"),
  2634. -> 0.0007s,
  2635. -- add_index(:approval_project_rules, :scanners, {:name=>"tmp_index_approval_project_rules_scanners", :using=>:gin, :where=>"scanners @> '{cluster_image_scanning}'", :algorithm=>:concurrently}),
  2636. -> 0.0062s,
  2637. -- execute("RESET statement_timeout"),
  2638. -> 0.0008s,
  2639. == 20210804202057 AddTmpIndexApprovalProjectRulesScanners: migrated (0.0274s) =,
  2640. ,
  2641. == 20210805085706 AddRuleIndexToSecurityOrchestrationPolicyRuleSchedules: migrating ,
  2642. -- add_column(:security_orchestration_policy_rule_schedules, :rule_index, :integer, {:null=>false, :default=>0}),
  2643. -> 0.0058s,
  2644. == 20210805085706 AddRuleIndexToSecurityOrchestrationPolicyRuleSchedules: migrated (0.0060s) ,
  2645. ,
  2646. == 20210805131510 FinalizeCiBuildsRunnerSessionBigintConversion: migrating ====,
  2647. -- transaction_open?(),
  2648. -> 0.0000s,
  2649. -- 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}),
  2650. -> 0.0067s,
  2651. -- execute("SET statement_timeout TO 0"),
  2652. -> 0.0010s,
  2653. -- 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}),
  2654. -> 0.0086s,
  2655. -- execute("RESET statement_timeout"),
  2656. -> 0.0009s,
  2657. -- transaction_open?(),
  2658. -> 0.0000s,
  2659. -- foreign_keys("ci_builds_runner_session"),
  2660. -> 0.0195s,
  2661. -- execute("LOCK TABLE ci_builds, ci_builds_runner_session IN SHARE ROW EXCLUSIVE MODE"),
  2662. -> 0.0010s,
  2663. -- 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"),
  2664. -> 0.0075s,
  2665. -- execute("SET statement_timeout TO 0"),
  2666. -> 0.0010s,
  2667. -- execute("ALTER TABLE ci_builds_runner_session VALIDATE CONSTRAINT fk_rails_70707857d3_tmp;"),
  2668. -> 0.0080s,
  2669. -- execute("RESET statement_timeout"),
  2670. -> 0.0011s,
  2671. -- execute("LOCK TABLE ci_builds, ci_builds_runner_session IN ACCESS EXCLUSIVE MODE"),
  2672. -> 0.0011s,
  2673. -- quote_table_name("ci_builds_runner_session"),
  2674. -> 0.0001s,
  2675. -- quote_column_name(:build_id),
  2676. -> 0.0000s,
  2677. -- quote_column_name("build_id_tmp"),
  2678. -> 0.0000s,
  2679. -- execute("ALTER TABLE \"ci_builds_runner_session\" RENAME COLUMN \"build_id\" TO \"build_id_tmp\""),
  2680. -> 0.0015s,
  2681. -- quote_table_name("ci_builds_runner_session"),
  2682. -> 0.0001s,
  2683. -- quote_column_name(:build_id_convert_to_bigint),
  2684. -> 0.0000s,
  2685. -- quote_column_name(:build_id),
  2686. -> 0.0000s,
  2687. -- execute("ALTER TABLE \"ci_builds_runner_session\" RENAME COLUMN \"build_id_convert_to_bigint\" TO \"build_id\""),
  2688. -> 0.0012s,
  2689. -- quote_table_name("ci_builds_runner_session"),
  2690. -> 0.0001s,
  2691. -- quote_column_name("build_id_tmp"),
  2692. -> 0.0000s,
  2693. -- quote_column_name(:build_id_convert_to_bigint),
  2694. -> 0.0000s,
  2695. -- execute("ALTER TABLE \"ci_builds_runner_session\" RENAME COLUMN \"build_id_tmp\" TO \"build_id_convert_to_bigint\""),
  2696. -> 0.0014s,
  2697. -- quote_table_name("trigger_51ab7cef8934"),
  2698. -> 0.0001s,
  2699. -- execute("ALTER FUNCTION \"trigger_51ab7cef8934\" RESET ALL"),
  2700. -> 0.0013s,
  2701. -- change_column_default("ci_builds_runner_session", :build_id, nil),
  2702. -> 0.0075s,
  2703. -- change_column_default("ci_builds_runner_session", :build_id_convert_to_bigint, 0),
  2704. -> 0.0066s,
  2705. -- execute("DROP INDEX index_ci_builds_runner_session_on_build_id"),
  2706. -> 0.0017s,
  2707. -- 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"),
  2708. -> 0.0016s,
  2709. -- remove_foreign_key("ci_builds_runner_session", {:name=>"fk_rails_70707857d3"}),
  2710. -> 0.0236s,
  2711. -- quote_table_name("ci_builds_runner_session"),
  2712. -> 0.0001s,
  2713. -- quote_column_name("fk_rails_70707857d3_tmp"),
  2714. -> 0.0001s,
  2715. -- quote_column_name("fk_rails_70707857d3"),
  2716. -> 0.0000s,
  2717. -- execute("ALTER TABLE \"ci_builds_runner_session\"\nRENAME CONSTRAINT \"fk_rails_70707857d3_tmp\" TO \"fk_rails_70707857d3\"\n"),
  2718. -> 0.0032s,
  2719. == 20210805131510 FinalizeCiBuildsRunnerSessionBigintConversion: migrated (0.1371s) ,
  2720. ,
  2721. == 20210805192450 UpdateTrialPlansCiDailyPipelineScheduleTriggers: migrating ==,
  2722. == 20210805192450 UpdateTrialPlansCiDailyPipelineScheduleTriggers: migrated (0.0001s) ,
  2723. ,
  2724. == 20210806011811 ScheduleBackfillDraftColumnOnMergeRequestsRerun: migrating ==,
  2725. == 20210806011811 ScheduleBackfillDraftColumnOnMergeRequestsRerun: migrated (0.0000s) ,
  2726. ,
  2727. == 20210806152104 AddPypiPackageRequestsForwardingToApplicationSettings: migrating ,
  2728. -- add_column(:application_settings, :pypi_package_requests_forwarding, :boolean, {:default=>true, :null=>false}),
  2729. -> 0.0061s,
  2730. == 20210806152104 AddPypiPackageRequestsForwardingToApplicationSettings: migrated (0.0139s) ,
  2731. ,
  2732. == 20210809123658 OrphanedInviteTokensCleanup: migrating ======================,
  2733. -- transaction_open?(),
  2734. -> 0.0000s,
  2735. -- 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}),
  2736. -> 0.0204s,
  2737. -- execute("SET statement_timeout TO 0"),
  2738. -> 0.0008s,
  2739. -- 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}),
  2740. -> 0.0108s,
  2741. -- execute("RESET statement_timeout"),
  2742. -> 0.0008s,
  2743. -- transaction_open?(),
  2744. -> 0.0000s,
  2745. -- indexes("members"),
  2746. -> 0.0186s,
  2747. -- execute("SET statement_timeout TO 0"),
  2748. -> 0.0008s,
  2749. -- remove_index("members", {:algorithm=>:concurrently, :name=>"tmp_idx_orphaned_invite_tokens"}),
  2750. -> 0.0040s,
  2751. -- execute("RESET statement_timeout"),
  2752. -> 0.0008s,
  2753. == 20210809123658 OrphanedInviteTokensCleanup: migrated (0.0841s) =============,
  2754. ,
  2755. == 20210809143931 FinalizeJobIdConversionToBigintForCiJobArtifacts: migrating =,
  2756. -- transaction_open?(),
  2757. -> 0.0000s,
  2758. -- 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}),
  2759. -> 0.0152s,
  2760. -- execute("SET statement_timeout TO 0"),
  2761. -> 0.0007s,
  2762. -- 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}),
  2763. -> 0.0090s,
  2764. -- execute("RESET statement_timeout"),
  2765. -> 0.0008s,
  2766. -- transaction_open?(),
  2767. -> 0.0000s,
  2768. -- 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}),
  2769. -> 0.0171s,
  2770. -- execute("SET statement_timeout TO 0"),
  2771. -> 0.0007s,
  2772. -- 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}),
  2773. -> 0.0080s,
  2774. -- execute("RESET statement_timeout"),
  2775. -> 0.0008s,
  2776. -- transaction_open?(),
  2777. -> 0.0000s,
  2778. -- foreign_keys("ci_job_artifacts"),
  2779. -> 0.0216s,
  2780. -- execute("LOCK TABLE ci_builds, ci_job_artifacts IN SHARE ROW EXCLUSIVE MODE"),
  2781. -> 0.0008s,
  2782. -- 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"),
  2783. -> 0.0084s,
  2784. -- execute("SET statement_timeout TO 0"),
  2785. -> 0.0008s,
  2786. -- execute("ALTER TABLE ci_job_artifacts VALIDATE CONSTRAINT fk_rails_c5137cb2c1_tmp;"),
  2787. -> 0.0071s,
  2788. -- execute("RESET statement_timeout"),
  2789. -> 0.0009s,
  2790. -- execute("LOCK TABLE ci_builds, ci_job_artifacts IN ACCESS EXCLUSIVE MODE"),
  2791. -> 0.0009s,
  2792. -- quote_table_name("ci_job_artifacts"),
  2793. -> 0.0001s,
  2794. -- quote_column_name(:job_id),
  2795. -> 0.0001s,
  2796. -- quote_column_name("job_id_tmp"),
  2797. -> 0.0000s,
  2798. -- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"job_id\" TO \"job_id_tmp\""),
  2799. -> 0.0012s,
  2800. -- quote_table_name("ci_job_artifacts"),
  2801. -> 0.0001s,
  2802. -- quote_column_name(:job_id_convert_to_bigint),
  2803. -> 0.0001s,
  2804. -- quote_column_name(:job_id),
  2805. -> 0.0000s,
  2806. -- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"job_id_convert_to_bigint\" TO \"job_id\""),
  2807. -> 0.0010s,
  2808. -- quote_table_name("ci_job_artifacts"),
  2809. -> 0.0000s,
  2810. -- quote_column_name("job_id_tmp"),
  2811. -> 0.0000s,
  2812. -- quote_column_name(:job_id_convert_to_bigint),
  2813. -> 0.0000s,
  2814. -- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"job_id_tmp\" TO \"job_id_convert_to_bigint\""),
  2815. -> 0.0011s,
  2816. -- quote_table_name("trigger_be1804f21693"),
  2817. -> 0.0000s,
  2818. -- execute("ALTER FUNCTION \"trigger_be1804f21693\" RESET ALL"),
  2819. -> 0.0011s,
  2820. -- change_column_default("ci_job_artifacts", :job_id, nil),
  2821. -> 0.0088s,
  2822. -- change_column_default("ci_job_artifacts", :job_id_convert_to_bigint, 0),
  2823. -> 0.0075s,
  2824. -- execute("DROP INDEX index_ci_job_artifacts_on_expire_at_and_job_id"),
  2825. -> 0.0016s,
  2826. -- 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"),
  2827. -> 0.0014s,
  2828. -- execute("DROP INDEX index_ci_job_artifacts_on_job_id_and_file_type"),
  2829. -> 0.0013s,
  2830. -- 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"),
  2831. -> 0.0011s,
  2832. -- remove_foreign_key("ci_job_artifacts", {:name=>"fk_rails_c5137cb2c1"}),
  2833. -> 0.0252s,
  2834. -- quote_table_name("ci_job_artifacts"),
  2835. -> 0.0001s,
  2836. -- quote_column_name("fk_rails_c5137cb2c1_tmp"),
  2837. -> 0.0000s,
  2838. -- quote_column_name("fk_rails_c5137cb2c1"),
  2839. -> 0.0000s,
  2840. -- execute("ALTER TABLE \"ci_job_artifacts\"\nRENAME CONSTRAINT \"fk_rails_c5137cb2c1_tmp\" TO \"fk_rails_c5137cb2c1\"\n"),
  2841. -> 0.0012s,
  2842. == 20210809143931 FinalizeJobIdConversionToBigintForCiJobArtifacts: migrated (0.1783s) ,
  2843. ,
  2844. == 20210809194250 RenameTablesCiBuildTraceSection: migrating ==================,
  2845. -- rename_table(:ci_build_trace_sections, :dep_ci_build_trace_sections),
  2846. -> 0.0311s,
  2847. -- rename_table(:ci_build_trace_section_names, :dep_ci_build_trace_section_names),
  2848. -> 0.0230s,
  2849. == 20210809194250 RenameTablesCiBuildTraceSection: migrated (0.0544s) =========,
  2850. ,
  2851. == 20210811214811 ScheduleCopyCiBuildsColumnsToSecurityScans: migrating =======,
  2852. == 20210811214811 ScheduleCopyCiBuildsColumnsToSecurityScans: migrated (0.0000s) ,
  2853. ,
  2854. == 20210812145010 ResetJobTokenScopeEnabledAgain: migrating ===================,
  2855. -- remove_column(:project_ci_cd_settings, :job_token_scope_enabled),
  2856. -> 0.0027s,
  2857. -- add_column(:project_ci_cd_settings, :job_token_scope_enabled, :boolean, {:default=>false, :null=>false}),
  2858. -> 0.0031s,
  2859. == 20210812145010 ResetJobTokenScopeEnabledAgain: migrated (0.0114s) ==========,
  2860. ,
  2861. == 20210812171704 CreateProjectCiFeatureUsages: migrating =====================,
  2862. -- create_table(:project_ci_feature_usages),
  2863. -> 0.0338s,
  2864. == 20210812171704 CreateProjectCiFeatureUsages: migrated (0.0340s) ============,
  2865. ,
  2866. == 20210813101742 CreateZentaoTrackerData: migrating ==========================,
  2867. -- create_table(:zentao_tracker_data),
  2868. -> 0.0306s,
  2869. == 20210813101742 CreateZentaoTrackerData: migrated (0.0307s) =================,
  2870. ,
  2871. == 20210813111909 CreateCiBuildTraceMetadata: migrating =======================,
  2872. -- create_table(:ci_build_trace_metadata, {:id=>false, :if_not_exists=>true}),
  2873. -> 0.0294s,
  2874. == 20210813111909 CreateCiBuildTraceMetadata: migrated (0.0357s) ==============,
  2875. ,
  2876. == 20210813195518 ScheduleRecalculateUuidOnVulnerabilitiesOccurrences3: migrating ,
  2877. -- Scheduling RecalculateVulnerabilitiesOccurrencesUuid jobs,
  2878. -- Scheduled 0 RecalculateVulnerabilitiesOccurrencesUuid jobs with a maximum of 2500 records per batch and an interval of 120 seconds.,
  2879. ,
  2880. The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-08-24 02:10:14 UTC.",
  2881. == 20210813195518 ScheduleRecalculateUuidOnVulnerabilitiesOccurrences3: migrated (0.0758s) ,
  2882. ,
  2883. == 20210816161107 RemoveIndexContainingFaultyRegex: migrating =================,
  2884. -- transaction_open?(),
  2885. -> 0.0001s,
  2886. -- indexes(:merge_requests),
  2887. -> 0.0541s,
  2888. -- execute("SET statement_timeout TO 0"),
  2889. -> 0.0007s,
  2890. -- remove_index(:merge_requests, {:algorithm=>:concurrently, :name=>"tmp_index_merge_requests_draft_and_status"}),
  2891. -> 0.0050s,
  2892. -- execute("RESET statement_timeout"),
  2893. -> 0.0008s,
  2894. == 20210816161107 RemoveIndexContainingFaultyRegex: migrated (0.0648s) ========,
  2895. ,
  2896. == 20210816183304 ScheduleCopyCiBuildsColumnsToSecurityScans2: migrating ======,
  2897. -- Scheduled 0 CopyCiBuildsColumnsToSecurityScans jobs with a maximum of 5000 records per batch and an interval of 120 seconds.,
  2898. ,
  2899. The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-08-24 02:10:14 UTC.",
  2900. == 20210816183304 ScheduleCopyCiBuildsColumnsToSecurityScans2: migrated (0.0698s) ,
  2901. ,
  2902. == 20210817084338 AddForeignKeyFromCiBuildMetadataToCiJobArtifacts: migrating =,
  2903. -- transaction_open?(),
  2904. -> 0.0001s,
  2905. -- foreign_keys(:ci_build_trace_metadata),
  2906. -> 0.0214s,
  2907. -- 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"),
  2908. -> 0.0047s,
  2909. -- execute("SET statement_timeout TO 0"),
  2910. -> 0.0007s,
  2911. -- execute("ALTER TABLE ci_build_trace_metadata VALIDATE CONSTRAINT fk_21d25cac1a;"),
  2912. -> 0.0044s,
  2913. -- execute("RESET statement_timeout"),
  2914. -> 0.0008s,
  2915. == 20210817084338 AddForeignKeyFromCiBuildMetadataToCiJobArtifacts: migrated (0.0406s) ,
  2916. ,
  2917. == 20210818034001 IndexHistoricalDataOnRecordedAt: migrating ==================,
  2918. -- transaction_open?(),
  2919. -> 0.0000s,
  2920. -- index_exists?(:historical_data, :recorded_at, {:name=>"index_historical_data_on_recorded_at", :algorithm=>:concurrently}),
  2921. -> 0.0044s,
  2922. -- execute("SET statement_timeout TO 0"),
  2923. -> 0.0007s,
  2924. -- add_index(:historical_data, :recorded_at, {:name=>"index_historical_data_on_recorded_at", :algorithm=>:concurrently}),
  2925. -> 0.0090s,
  2926. -- execute("RESET statement_timeout"),
  2927. -> 0.0008s,
  2928. == 20210818034001 IndexHistoricalDataOnRecordedAt: migrated (0.0190s) =========,
  2929. ,
  2930. == 20210818055357 AddUniqueCommitDesignUserMentionIndexes: migrating ==========,
  2931. -- transaction_open?(),
  2932. -> 0.0000s,
  2933. -- 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}),
  2934. -> 0.0090s,
  2935. -- execute("SET statement_timeout TO 0"),
  2936. -> 0.0008s,
  2937. -- 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}),
  2938. -> 0.0084s,
  2939. -- execute("RESET statement_timeout"),
  2940. -> 0.0008s,
  2941. -- transaction_open?(),
  2942. -> 0.0000s,
  2943. -- 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}),
  2944. -> 0.0091s,
  2945. -- execute("SET statement_timeout TO 0"),
  2946. -> 0.0007s,
  2947. -- 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}),
  2948. -> 0.0088s,
  2949. -- execute("RESET statement_timeout"),
  2950. -> 0.0007s,
  2951. -- transaction_open?(),
  2952. -> 0.0000s,
  2953. -- indexes(:commit_user_mentions),
  2954. -> 0.0096s,
  2955. -- execute("SET statement_timeout TO 0"),
  2956. -> 0.0009s,
  2957. -- remove_index(:commit_user_mentions, {:algorithm=>:concurrently, :name=>"commit_id_and_note_id_index"}),
  2958. -> 0.0050s,
  2959. -- execute("RESET statement_timeout"),
  2960. -> 0.0008s,
  2961. -- transaction_open?(),
  2962. -> 0.0000s,
  2963. -- indexes(:design_user_mentions),
  2964. -> 0.0088s,
  2965. -- execute("SET statement_timeout TO 0"),
  2966. -> 0.0007s,
  2967. -- remove_index(:design_user_mentions, {:algorithm=>:concurrently, :name=>"design_user_mentions_on_design_id_and_note_id_index"}),
  2968. -> 0.0038s,
  2969. -- execute("RESET statement_timeout"),
  2970. -> 0.0008s,
  2971. == 20210818055357 AddUniqueCommitDesignUserMentionIndexes: migrated (0.0844s) =,
  2972. ,
  2973. - execute "bash" "/tmp/chef-script20210824-31-1ulvyif",
  2974. ,
  2975. Recipe: gitlab::gitlab-rails,
  2976. * execute[clear the gitlab-rails cache] action run,
  2977. - execute /opt/gitlab/bin/gitlab-rake cache:clear,
  2978. Recipe: gitlab::database_migrations,
  2979. * ruby_block[check remote PG version] action run (skipped due to only_if),
  2980. cipe: crond::disable,
  2981. * service[crond] action nothing (skipped due to action :nothing),
  2982. * runit_service[crond] action disable,
  2983. * ruby_block[disable crond] action run (skipped due to only_if),
  2984. (up to date),
  2985. Recipe: gitlab::puma,
  2986. * directory[/var/log/gitlab/puma] action create,
  2987. - create new directory /var/log/gitlab/puma,
  2988. - change mode from '' to '0700',
  2989. - change owner from '' to 'git',
  2990. * directory[/opt/gitlab/var/puma] action create,
  2991. - create new directory /opt/gitlab/var/puma,
  2992. - change mode from '' to '0700',
  2993. - change owner from '' to 'git',
  2994. * directory[/var/opt/gitlab/gitlab-rails/sockets] action create,
  2995. - create new directory /var/opt/gitlab/gitlab-rails/sockets,
  2996. - change mode from '' to '0750',
  2997. - change owner from '' to 'git',
  2998. - change group from '' to 'gitlab-www',
  2999. * puma_config[/var/opt/gitlab/gitlab-rails/etc/puma.rb] action create,
  3000. * directory[/var/opt/gitlab/gitlab-rails/etc] action create (up to date),
  3001. * template[/var/opt/gitlab/gitlab-rails/etc/puma.rb] action create,
  3002. - create new file /var/opt/gitlab/gitlab-rails/etc/puma.rb,
  3003. - update content in file /var/opt/gitlab/gitlab-rails/etc/puma.rb from none to 56bd16,
  3004. --- /var/opt/gitlab/gitlab-rails/etc/puma.rb 2021-08-24 02:12:12.284574807 +0000,
  3005. +++ /var/opt/gitlab/gitlab-rails/etc/.chef-puma20210824-31-1q5cpn5.rb 2021-08-24 02:12:12.284574807 +0000,
  3006. @@ -1,103 +1,206 @@,
  3007. +# frozen_string_literal: true,
  3008. +,
  3009. +# This file is managed by gitlab-ctl. Manual changes will be,
  3010. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb,
  3011. +# and run `sudo gitlab-ctl reconfigure`.,
  3012. +,
  3013. +# Load "path" as a rackup file.,
  3014. +#,
  3015. +# The default is "config.ru".,
  3016. +#,
  3017. +environment 'production',
  3018. +rackup '/opt/gitlab/embedded/service/gitlab-rails/config.ru',
  3019. +pidfile '/opt/gitlab/var/puma/puma.pid',
  3020. +state_path '/opt/gitlab/var/puma/puma.state',
  3021. +,
  3022. +stdout_redirect '/var/log/gitlab/puma/puma_stdout.log', '/var/log/gitlab/puma/puma_stderr.log', true,
  3023. +,
  3024. +# Configure "min" to be the minimum number of threads to use to answer,
  3025. +# requests and "max" the maximum.,
  3026. +#,
  3027. +# The default is "0, 16".,
  3028. +#,
  3029. +threads 4, 4,
  3030. +,
  3031. +# By default, workers accept all requests and queue them to pass to handlers.,
  3032. +# When false, workers accept the number of simultaneous requests configured.,
  3033. +#,
  3034. +# Queueing requests generally improves performance, but can cause deadlocks if,
  3035. +# the app is waiting on a request to itself. See https://github.com/puma/puma/issues/612,
  3036. +#,
  3037. +# When set to false this may require a reverse proxy to handle slow clients and,
  3038. +# queue requests before they reach puma. This is due to disabling HTTP keepalive,
  3039. +queue_requests false,
  3040. +,
  3041. +# Bind the server to "url". "tcp://", "unix://" and "ssl://" are the only,
  3042. +# accepted protocols.,
  3043. +bind 'unix:///var/opt/gitlab/gitlab-rails/sockets/gitlab.socket',
  3044. +,
  3045. +bind 'tcp://127.0.0.1:8080',
  3046. +,
  3047. +directory '/var/opt/gitlab/gitlab-rails/working',
  3048. +,
  3049. +workers 4,
  3050. +,
  3051. +require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/cluster/lifecycle_events",
  3052. +require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/cluster/puma_worker_killer_initializer",
  3053. +,
  3054. +on_restart do,
  3055. + # Signal application hooks that we're about to restart,
  3056. + Gitlab::Cluster::LifecycleEvents.do_before_master_restart,
  3057. +end,
  3058. +,
  3059. +options = { workers: 4 },
  3060. +,
  3061. +before_fork do,
  3062. + # Signal to the puma killer,
  3063. + Gitlab::Cluster::PumaWorkerKillerInitializer.start(options) unless ENV['DISABLE_PUMA_WORKER_KILLER'],
  3064. +,
  3065. + # Signal application hooks that we're about to fork,
  3066. + Gitlab::Cluster::LifecycleEvents.do_before_fork,
  3067. +end,
  3068. +,
  3069. +Gitlab::Cluster::LifecycleEvents.set_puma_options options,
  3070. +on_worker_boot do,
  3071. + # Signal application hooks of worker start,
  3072. + Gitlab::Cluster::LifecycleEvents.do_worker_start,
  3073. +end,
  3074. +,
  3075. +# Preload the application before starting the workers; this conflicts with,
  3076. +# phased restart feature. (off by default),
  3077. +,
  3078. +preload_app!,
  3079. +,
  3080. +tag 'gitlab-puma-worker',
  3081. +,
  3082. +# Verifies that all workers have checked in to the master process within,
  3083. +# the given timeout. If not the worker process will be restarted. Default,
  3084. +# value is 60 seconds.,
  3085. +#,
  3086. +worker_timeout 60,
  3087. +,
  3088. +# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#lower-latency-better-throughput,
  3089. +wait_for_less_busy_worker ENV.fetch('PUMA_WAIT_FOR_LESS_BUSY_WORKER', 0.001).to_f,
  3090. +,
  3091. +# https://github.com/puma/puma/blob/master/5.0-Upgrade.md#nakayoshi_fork,
  3092. +nakayoshi_fork unless ENV['DISABLE_PUMA_NAKAYOSHI_FORK'] == 'true',
  3093. +,
  3094. +# Use customised JSON formatter for Puma log,
  3095. +require_relative "/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/puma_logging/json_formatter",
  3096. +,
  3097. +json_formatter = Gitlab::PumaLogging::JSONFormatter.new,
  3098. +log_formatter do |str|,
  3099. + json_formatter.call(str),
  3100. +end,
  3101. +,
  3102. +lowlevel_error_handler do |ex, env|,
  3103. + if Raven.configuration.capture_allowed?,
  3104. + Raven.capture_exception(ex, tags: { 'handler': 'puma_low_level' }, extra: { puma_env: env }),
  3105. + end,
  3106. +,
  3107. + # note the below is just a Rack response,
  3108. + [500, {}, ["An error has occurred and reported in the system's low-level error handler."]],
  3109. +end,
  3110. - change mode from '' to '0644',
  3111. - change owner from '' to 'root',
  3112. - change group from '' to 'root',
  3113. ,
  3114. * service[puma] action nothing (skipped due to action :nothing),
  3115. * runit_service[puma] action enable,
  3116. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  3117. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  3118. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  3119. * directory[/opt/gitlab/sv/puma] action create,
  3120. - create new directory /opt/gitlab/sv/puma,
  3121. - change mode from '' to '0755',
  3122. - change owner from '' to 'root',
  3123. - change group from '' to 'root',
  3124. * template[/opt/gitlab/sv/puma/run] action create,
  3125. - create new file /opt/gitlab/sv/puma/run,
  3126. - update content in file /opt/gitlab/sv/puma/run from none to ca09fe,
  3127. --- /opt/gitlab/sv/puma/run 2021-08-24 02:12:12.396573345 +0000,
  3128. +++ /opt/gitlab/sv/puma/.chef-run20210824-31-1c3csx 2021-08-24 02:12:12.396573345 +0000,
  3129. @@ -1,21 +1,42 @@,
  3130. +#!/bin/bash,
  3131. +,
  3132. +# Let runit capture all script error messages,
  3133. +exec 2>&1,
  3134. +,
  3135. +# Setup run directory.,
  3136. +mkdir -p /dev/shm/gitlab/puma,
  3137. +chmod 0700 /dev/shm/gitlab/puma,
  3138. +chown git /dev/shm/gitlab/puma,
  3139. +export prometheus_run_dir='/dev/shm/gitlab/puma',
  3140. +,
  3141. +,
  3142. +,
  3143. +,
  3144. +exec chpst -P \,
  3145. + -u git:git \,
  3146. + -U git:git \,
  3147. + -e /opt/gitlab/etc/gitlab-rails/env \,
  3148. + /usr/bin/env \,
  3149. + prometheus_multiproc_dir="${prometheus_run_dir}" \,
  3150. + /opt/gitlab/embedded/bin/bundle exec puma -C /var/opt/gitlab/gitlab-rails/etc/puma.rb,
  3151. - change mode from '' to '0755',
  3152. - change owner from '' to 'root',
  3153. - change group from '' to 'root',
  3154. * directory[/opt/gitlab/sv/puma/log] action create,
  3155. - create new directory /opt/gitlab/sv/puma/log,
  3156. - change mode from '' to '0755',
  3157. - change owner from '' to 'root',
  3158. - change group from '' to 'root',
  3159. * directory[/opt/gitlab/sv/puma/log/main] action create,
  3160. - create new directory /opt/gitlab/sv/puma/log/main,
  3161. - change mode from '' to '0755',
  3162. - change owner from '' to 'root',
  3163. - change group from '' to 'root',
  3164. * template[/opt/gitlab/sv/puma/log/config] action create,
  3165. - create new file /opt/gitlab/sv/puma/log/config,
  3166. - update content in file /opt/gitlab/sv/puma/log/config from none to 623c00,
  3167. --- /opt/gitlab/sv/puma/log/config 2021-08-24 02:12:12.472572353 +0000,
  3168. +++ /opt/gitlab/sv/puma/log/.chef-config20210824-31-1yame46 2021-08-24 02:12:12.472572353 +0000,
  3169. @@ -1,6 +1,12 @@,
  3170. +s209715200,
  3171. +n30,
  3172. +t86400,
  3173. +!gzip,
  3174. +,
  3175. +,
  3176. - change mode from '' to '0644',
  3177. - change owner from '' to 'root',
  3178. - change group from '' to 'root',
  3179. * ruby_block[verify_chown_persisted_on_puma] action create,
  3180. - execute the ruby block verify_chown_persisted_on_puma,
  3181. * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing),
  3182. * link[/var/log/gitlab/puma/config] action create,
  3183. - create symlink at /var/log/gitlab/puma/config to /opt/gitlab/sv/puma/log/config,
  3184. * template[/opt/gitlab/sv/puma/log/run] action create,
  3185. - create new file /opt/gitlab/sv/puma/log/run,
  3186. - update content in file /opt/gitlab/sv/puma/log/run from none to a83bb7,
  3187. --- /opt/gitlab/sv/puma/log/run 2021-08-24 02:12:12.536571517 +0000,
  3188. +++ /opt/gitlab/sv/puma/log/.chef-run20210824-31-1xoe7fm 2021-08-24 02:12:12.536571517 +0000,
  3189. @@ -1,2 +1,4 @@,
  3190. +#!/bin/sh,
  3191. +exec svlogd -tt /var/log/gitlab/puma,
  3192. - change mode from '' to '0755',
  3193. - change owner from '' to 'root',
  3194. - change group from '' to 'root',
  3195. * directory[/opt/gitlab/sv/puma/env] action create,
  3196. - create new directory /opt/gitlab/sv/puma/env,
  3197. - change mode from '' to '0755',
  3198. - change owner from '' to 'root',
  3199. - change group from '' to 'root',
  3200. * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if),
  3201. * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if),
  3202. * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if),
  3203. * directory[/opt/gitlab/sv/puma/control] action create,
  3204. - create new directory /opt/gitlab/sv/puma/control,
  3205. - change mode from '' to '0755',
  3206. - change owner from '' to 'root',
  3207. - change group from '' to 'root',
  3208. * template[/opt/gitlab/sv/puma/control/t] action create,
  3209. - create new file /opt/gitlab/sv/puma/control/t,
  3210. - update content in file /opt/gitlab/sv/puma/control/t from none to d8e9e7,
  3211. --- /opt/gitlab/sv/puma/control/t 2021-08-24 02:12:12.616570473 +0000,
  3212. +++ /opt/gitlab/sv/puma/control/.chef-t20210824-31-1pefz4d 2021-08-24 02:12:12.616570473 +0000,
  3213. @@ -1,3 +1,6 @@,
  3214. +#!/bin/sh,
  3215. +echo "Received TERM from runit, sending to process group (-PID)",
  3216. +kill -- -$(cat /opt/gitlab/service/puma/supervise/pid),
  3217. - change mode from '' to '0755',
  3218. - change owner from '' to 'root',
  3219. - change group from '' to 'root',
  3220. * template[/opt/gitlab/sv/puma/control/h] action create,
  3221. - create new file /opt/gitlab/sv/puma/control/h,
  3222. - update content in file /opt/gitlab/sv/puma/control/h from none to 22e721,
  3223. --- /opt/gitlab/sv/puma/control/h 2021-08-24 02:12:12.672569742 +0000,
  3224. +++ /opt/gitlab/sv/puma/control/.chef-h20210824-31-8t7x7k 2021-08-24 02:12:12.672569742 +0000,
  3225. @@ -1,47 +1,94 @@,
  3226. +#!/bin/sh,
  3227. +,
  3228. +# This control handler is meant to be invoked by omnibus-gitlab via Runit,
  3229. +,
  3230. +# Let runit capture all script error messages,
  3231. +exec 2>&1,
  3232. +,
  3233. +PID=$(cat /opt/gitlab/service/puma/supervise/pid),
  3234. +,
  3235. +readonly puma_graceful_shutdown_sec=90,
  3236. +readonly puma_forceful_shutdown_sec=20,
  3237. +readonly puma_kill_shutdown_sec=10,
  3238. +,
  3239. +echo "Received HUP from runit, sending INT signal to perform graceful restart",
  3240. +,
  3241. +signal() {,
  3242. + local pid="$1",
  3243. + local signal="$2",
  3244. + local tries="$3",
  3245. +,
  3246. + echo "Sending $signal signal to Puma $pid...",
  3247. + kill "-$signal" "$pid",
  3248. +,
  3249. + for i in $(seq 1 "$tries"); do,
  3250. + echo "Waiting for Puma $pid to exit ($i)...",
  3251. + if ! kill -0 "$pid"; then,
  3252. + echo "Puma $pid did exit.",
  3253. + return 0,
  3254. + fi,
  3255. +,
  3256. + sleep 1,
  3257. + done,
  3258. +,
  3259. + echo "Puma $pid did not exit after $signal.",
  3260. + return 1,
  3261. +},
  3262. +,
  3263. +(,
  3264. + # we run it in subshell, as `runit` requires,
  3265. + # the process it runs to exit in order to reap,
  3266. + # the service,
  3267. + signal "$PID" "INT" "$puma_graceful_shutdown_sec" ||,
  3268. + signal "$PID" "TERM" "$puma_forceful_shutdown_sec" ||,
  3269. + signal "$PID" "KILL" "$puma_kill_shutdown_sec",
  3270. +) &,
  3271. +,
  3272. +exit 0,
  3273. - change mode from '' to '0755',
  3274. - change owner from '' to 'root',
  3275. - change group from '' to 'root',
  3276. * link[/opt/gitlab/init/puma] action create,
  3277. - create symlink at /opt/gitlab/init/puma to /opt/gitlab/embedded/bin/sv,
  3278. * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing),
  3279. * ruby_block[restart_service] action run (skipped due to only_if),
  3280. * ruby_block[reload_log_service] action create,
  3281. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  3282. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  3283. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  3284. * directory[/opt/gitlab/sv/puma] action create (up to date),
  3285. * template[/opt/gitlab/sv/puma/run] action create (up to date),
  3286. * directory[/opt/gitlab/sv/puma/log] action create (up to date),
  3287. * directory[/opt/gitlab/sv/puma/log/main] action create (up to date),
  3288. * template[/opt/gitlab/sv/puma/log/config] action create (up to date),
  3289. * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing),
  3290. * link[/var/log/gitlab/puma/config] action create (up to date),
  3291. * template[/opt/gitlab/sv/puma/log/run] action create (up to date),
  3292. * directory[/opt/gitlab/sv/puma/env] action create (up to date),
  3293. * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if),
  3294. * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if),
  3295. * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if),
  3296. * directory[/opt/gitlab/sv/puma/control] action create (up to date),
  3297. * template[/opt/gitlab/sv/puma/control/t] action create (up to date),
  3298. * template[/opt/gitlab/sv/puma/control/h] action create (up to date),
  3299. * link[/opt/gitlab/init/puma] action create (up to date),
  3300. * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing),
  3301. * directory[/opt/gitlab/service] action create (up to date),
  3302. * link[/opt/gitlab/service/puma] action create,
  3303. - create symlink at /opt/gitlab/service/puma to /opt/gitlab/sv/puma,
  3304. * ruby_block[wait for puma service socket] action run,
  3305. - execute the ruby block wait for puma service socket,
  3306. - execute the ruby block reload_log_service,
  3307. * ruby_block[restart_log_service] action run,
  3308. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  3309. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  3310. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  3311. * directory[/opt/gitlab/sv/puma] action create (up to date),
  3312. * template[/opt/gitlab/sv/puma/run] action create (up to date),
  3313. * directory[/opt/gitlab/sv/puma/log] action create (up to date),
  3314. * directory[/opt/gitlab/sv/puma/log/main] action create (up to date),
  3315. * template[/opt/gitlab/sv/puma/log/config] action create (up to date),
  3316. * ruby_block[verify_chown_persisted_on_puma] action nothing (skipped due to action :nothing),
  3317. * link[/var/log/gitlab/puma/config] action create (up to date),
  3318. * template[/opt/gitlab/sv/puma/log/run] action create (up to date),
  3319. * directory[/opt/gitlab/sv/puma/env] action create (up to date),
  3320. * ruby_block[Delete unmanaged env files for puma service] action run (skipped due to only_if),
  3321. * template[/opt/gitlab/sv/puma/check] action create (skipped due to only_if),
  3322. * template[/opt/gitlab/sv/puma/finish] action create (skipped due to only_if),
  3323. * directory[/opt/gitlab/sv/puma/control] action create (up to date),
  3324. * template[/opt/gitlab/sv/puma/control/t] action create (up to date),
  3325. * template[/opt/gitlab/sv/puma/control/h] action create (up to date),
  3326. * link[/opt/gitlab/init/puma] action create (up to date),
  3327. * file[/opt/gitlab/sv/puma/down] action nothing (skipped due to action :nothing),
  3328. * directory[/opt/gitlab/service] action create (up to date),
  3329. * link[/opt/gitlab/service/puma] action create (up to date),
  3330. * ruby_block[wait for puma service socket] action run (skipped due to not_if),
  3331. - execute the ruby block restart_log_service,
  3332. * directory[/opt/gitlab/service] action create (up to date),
  3333. * link[/opt/gitlab/service/puma] action create (up to date),
  3334. * ruby_block[wait for puma service socket] action run (skipped due to not_if),
  3335. ,
  3336. * execute[/opt/gitlab/bin/gitlab-ctl start puma] action run,
  3337. [execute] ok: run: puma: (pid 583) 8s,
  3338. - execute /opt/gitlab/bin/gitlab-ctl start puma,
  3339. * consul_service[rails] action delete,
  3340. * file[/var/opt/gitlab/consul/config.d/rails-service.json] action delete (up to date),
  3341. (up to date),
  3342. * gitlab_sysctl[net.core.somaxconn] action create,
  3343. * directory[create /etc/sysctl.d for net.core.somaxconn] action create (skipped due to only_if),
  3344. * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-net.core.somaxconn.conf net.core.somaxconn] action create (skipped due to only_if),
  3345. * link[/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf] action create (skipped due to only_if),
  3346. * execute[load sysctl conf net.core.somaxconn] action nothing (skipped due to action :nothing),
  3347. (up to date),
  3348. Recipe: gitlab::sidekiq,
  3349. * sidekiq_service[sidekiq] action enable,
  3350. * directory[/var/log/gitlab/sidekiq] action create,
  3351. - create new directory /var/log/gitlab/sidekiq,
  3352. - change mode from '' to '0700',
  3353. - change owner from '' to 'git',
  3354. Recipe: <Dynamically Defined Resource>,
  3355. * service[sidekiq] action nothing (skipped due to action :nothing),
  3356. * runit_service[sidekiq] action enable,
  3357. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  3358. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  3359. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  3360. * directory[/opt/gitlab/sv/sidekiq] action create,
  3361. - create new directory /opt/gitlab/sv/sidekiq,
  3362. - change mode from '' to '0755',
  3363. - change owner from '' to 'root',
  3364. - change group from '' to 'root',
  3365. * template[/opt/gitlab/sv/sidekiq/run] action create,
  3366. - create new file /opt/gitlab/sv/sidekiq/run,
  3367. - update content in file /opt/gitlab/sv/sidekiq/run from none to d94e86,
  3368. --- /opt/gitlab/sv/sidekiq/run 2021-08-24 02:12:24.992409001 +0000,
  3369. +++ /opt/gitlab/sv/sidekiq/.chef-run20210824-31-1iaguh1 2021-08-24 02:12:24.988409053 +0000,
  3370. @@ -1,27 +1,54 @@,
  3371. +#!/bin/sh,
  3372. +,
  3373. +cd /var/opt/gitlab/gitlab-rails/working,
  3374. +,
  3375. +exec 2>&1,
  3376. +# Setup run directory.,
  3377. +mkdir -p /dev/shm/gitlab/sidekiq,
  3378. +rm /dev/shm/gitlab/sidekiq/*.db 2> /dev/null,
  3379. +chmod 0700 /dev/shm/gitlab/sidekiq,
  3380. +chown git /dev/shm/gitlab/sidekiq,
  3381. +export prometheus_run_dir='/dev/shm/gitlab/sidekiq',
  3382. +,
  3383. +,
  3384. +,
  3385. +exec chpst -e /opt/gitlab/etc/gitlab-rails/env -P \,
  3386. + -U git:git \,
  3387. + -u git:git \,
  3388. + /usr/bin/env \,
  3389. + prometheus_multiproc_dir="${prometheus_run_dir}" \,
  3390. + /opt/gitlab/embedded/service/gitlab-rails/bin/sidekiq-cluster \,
  3391. + -e production \,
  3392. + -r /opt/gitlab/embedded/service/gitlab-rails \,
  3393. + -m 50 \,
  3394. + --timeout 25 \,
  3395. + "*" \,
  3396. +,
  3397. +# Do not remove this line; it prevents trouble with the trailing backslashes above.,
  3398. - change mode from '' to '0755',
  3399. - change owner from '' to 'root',
  3400. - change group from '' to 'root',
  3401. * directory[/opt/gitlab/sv/sidekiq/log] action create,
  3402. - create new directory /opt/gitlab/sv/sidekiq/log,
  3403. - change mode from '' to '0755',
  3404. - change owner from '' to 'root',
  3405. - change group from '' to 'root',
  3406. * directory[/opt/gitlab/sv/sidekiq/log/main] action create,
  3407. - create new directory /opt/gitlab/sv/sidekiq/log/main,
  3408. - change mode from '' to '0755',
  3409. - change owner from '' to 'root',
  3410. - change group from '' to 'root',
  3411. * template[/opt/gitlab/sv/sidekiq/log/config] action create,
  3412. - create new file /opt/gitlab/sv/sidekiq/log/config,
  3413. - update content in file /opt/gitlab/sv/sidekiq/log/config from none to 623c00,
  3414. --- /opt/gitlab/sv/sidekiq/log/config 2021-08-24 02:12:25.076407905 +0000,
  3415. +++ /opt/gitlab/sv/sidekiq/log/.chef-config20210824-31-zterqn 2021-08-24 02:12:25.076407905 +0000,
  3416. @@ -1,6 +1,12 @@,
  3417. +s209715200,
  3418. +n30,
  3419. +t86400,
  3420. +!gzip,
  3421. +,
  3422. +,
  3423. - change mode from '' to '0644',
  3424. - change owner from '' to 'root',
  3425. - change group from '' to 'root',
  3426. * ruby_block[verify_chown_persisted_on_sidekiq] action create,
  3427. - execute the ruby block verify_chown_persisted_on_sidekiq,
  3428. * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing),
  3429. * link[/var/log/gitlab/sidekiq/config] action create,
  3430. - create symlink at /var/log/gitlab/sidekiq/config to /opt/gitlab/sv/sidekiq/log/config,
  3431. * template[/opt/gitlab/sv/sidekiq/log/run] action create,
  3432. - create new file /opt/gitlab/sv/sidekiq/log/run,
  3433. - update content in file /opt/gitlab/sv/sidekiq/log/run from none to 0c55bd,
  3434. --- /opt/gitlab/sv/sidekiq/log/run 2021-08-24 02:12:25.140407071 +0000,
  3435. +++ /opt/gitlab/sv/sidekiq/log/.chef-run20210824-31-4capht 2021-08-24 02:12:25.140407071 +0000,
  3436. @@ -1,2 +1,4 @@,
  3437. +#!/bin/sh,
  3438. +exec svlogd /var/log/gitlab/sidekiq,
  3439. - change mode from '' to '0755',
  3440. - change owner from '' to 'root',
  3441. - change group from '' to 'root',
  3442. * directory[/opt/gitlab/sv/sidekiq/env] action create,
  3443. - create new directory /opt/gitlab/sv/sidekiq/env,
  3444. - change mode from '' to '0755',
  3445. - change owner from '' to 'root',
  3446. - change group from '' to 'root',
  3447. * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if),
  3448. * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if),
  3449. * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if),
  3450. * directory[/opt/gitlab/sv/sidekiq/control] action create,
  3451. - create new directory /opt/gitlab/sv/sidekiq/control,
  3452. - change mode from '' to '0755',
  3453. - change owner from '' to 'root',
  3454. - change group from '' to 'root',
  3455. * link[/opt/gitlab/init/sidekiq] action create,
  3456. - create symlink at /opt/gitlab/init/sidekiq to /opt/gitlab/embedded/bin/sv,
  3457. * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing),
  3458. * ruby_block[restart_service] action run (skipped due to only_if),
  3459. * ruby_block[reload_log_service] action create,
  3460. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  3461. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  3462. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  3463. * directory[/opt/gitlab/sv/sidekiq] action create (up to date),
  3464. * template[/opt/gitlab/sv/sidekiq/run] action create (up to date),
  3465. * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date),
  3466. * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date),
  3467. * template[/opt/gitlab/sv/sidekiq/log/config] action create (up to date),
  3468. * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing),
  3469. * link[/var/log/gitlab/sidekiq/config] action create (up to date),
  3470. * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date),
  3471. * directory[/opt/gitlab/sv/sidekiq/env] action create (up to date),
  3472. * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if),
  3473. * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if),
  3474. * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if),
  3475. * directory[/opt/gitlab/sv/sidekiq/control] action create (up to date),
  3476. * link[/opt/gitlab/init/sidekiq] action create (up to date),
  3477. * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing),
  3478. * directory[/opt/gitlab/service] action create (up to date),
  3479. * link[/opt/gitlab/service/sidekiq] action create,
  3480. - create symlink at /opt/gitlab/service/sidekiq to /opt/gitlab/sv/sidekiq,
  3481. * ruby_block[wait for sidekiq service socket] action run,
  3482. - execute the ruby block wait for sidekiq service socket,
  3483. - execute the ruby block reload_log_service,
  3484. * ruby_block[restart_log_service] action run,
  3485. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  3486. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  3487. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  3488. * directory[/opt/gitlab/sv/sidekiq] action create (up to date),
  3489. * template[/opt/gitlab/sv/sidekiq/run] action create (up to date),
  3490. * directory[/opt/gitlab/sv/sidekiq/log] action create (up to date),
  3491. * directory[/opt/gitlab/sv/sidekiq/log/main] action create (up to date),
  3492. * template[/opt/gitlab/sv/sidekiq/log/config] action create (up to date),
  3493. * ruby_block[verify_chown_persisted_on_sidekiq] action nothing (skipped due to action :nothing),
  3494. * link[/var/log/gitlab/sidekiq/config] action create (up to date),
  3495. * template[/opt/gitlab/sv/sidekiq/log/run] action create (up to date),
  3496. * directory[/opt/gitlab/sv/sidekiq/env] action create (up to date),
  3497. * ruby_block[Delete unmanaged env files for sidekiq service] action run (skipped due to only_if),
  3498. * template[/opt/gitlab/sv/sidekiq/check] action create (skipped due to only_if),
  3499. * template[/opt/gitlab/sv/sidekiq/finish] action create (skipped due to only_if),
  3500. * directory[/opt/gitlab/sv/sidekiq/control] action create (up to date),
  3501. * link[/opt/gitlab/init/sidekiq] action create (up to date),
  3502. * file[/opt/gitlab/sv/sidekiq/down] action nothing (skipped due to action :nothing),
  3503. * directory[/opt/gitlab/service] action create (up to date),
  3504. * link[/opt/gitlab/service/sidekiq] action create (up to date),
  3505. * ruby_block[wait for sidekiq service socket] action run (skipped due to not_if),
  3506. - execute the ruby block restart_log_service,
  3507. * directory[/opt/gitlab/service] action create (up to date),
  3508. * link[/opt/gitlab/service/sidekiq] action create (up to date),
  3509. * ruby_block[wait for sidekiq service socket] action run (skipped due to not_if),
  3510. ,
  3511. * execute[/opt/gitlab/bin/gitlab-ctl start sidekiq] action run,
  3512. [execute] ok: run: sidekiq: (pid 607) 7s,
  3513. - execute /opt/gitlab/bin/gitlab-ctl start sidekiq,
  3514. ,
  3515. Recipe: gitlab::sidekiq,
  3516. * consul_service[sidekiq] action delete,
  3517. * file[/var/opt/gitlab/consul/config.d/sidekiq-service.json] action delete (up to date),
  3518. (up to date),
  3519. Recipe: gitlab::gitlab-workhorse,
  3520. * directory[/var/opt/gitlab/gitlab-workhorse] action create,
  3521. - create new directory /var/opt/gitlab/gitlab-workhorse,
  3522. - change mode from '' to '0750',
  3523. - change owner from '' to 'git',
  3524. - change group from '' to 'gitlab-www',
  3525. * directory[/var/opt/gitlab/gitlab-workhorse/sockets] action create,
  3526. - create new directory /var/opt/gitlab/gitlab-workhorse/sockets,
  3527. - change mode from '' to '0750',
  3528. - change owner from '' to 'git',
  3529. - change group from '' to 'gitlab-www',
  3530. * directory[/var/log/gitlab/gitlab-workhorse] action create,
  3531. - create new directory /var/log/gitlab/gitlab-workhorse,
  3532. - change mode from '' to '0700',
  3533. - change owner from '' to 'git',
  3534. * directory[/opt/gitlab/etc/gitlab-workhorse] action create,
  3535. - create new directory /opt/gitlab/etc/gitlab-workhorse,
  3536. - change mode from '' to '0700',
  3537. - change owner from '' to 'git',
  3538. * env_dir[/opt/gitlab/etc/gitlab-workhorse/env] action create,
  3539. * directory[/opt/gitlab/etc/gitlab-workhorse/env] action create,
  3540. - create new directory /opt/gitlab/etc/gitlab-workhorse/env,
  3541. * file[/opt/gitlab/etc/gitlab-workhorse/env/PATH] action create,
  3542. - create new file /opt/gitlab/etc/gitlab-workhorse/env/PATH,
  3543. - update content in file /opt/gitlab/etc/gitlab-workhorse/env/PATH from none to d5dc07,
  3544. - suppressed sensitive resource,
  3545. * file[/opt/gitlab/etc/gitlab-workhorse/env/HOME] action create,
  3546. - create new file /opt/gitlab/etc/gitlab-workhorse/env/HOME,
  3547. - update content in file /opt/gitlab/etc/gitlab-workhorse/env/HOME from none to 205bb9,
  3548. - suppressed sensitive resource,
  3549. * file[/opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR] action create,
  3550. - create new file /opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR,
  3551. - update content in file /opt/gitlab/etc/gitlab-workhorse/env/SSL_CERT_DIR from none to 4f45cf,
  3552. - suppressed sensitive resource,
  3553. ,
  3554. * service[gitlab-workhorse] action nothing (skipped due to action :nothing),
  3555. * runit_service[gitlab-workhorse] action enable,
  3556. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  3557. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  3558. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  3559. * directory[/opt/gitlab/sv/gitlab-workhorse] action create,
  3560. - create new directory /opt/gitlab/sv/gitlab-workhorse,
  3561. - change mode from '' to '0755',
  3562. - change owner from '' to 'root',
  3563. - change group from '' to 'root',
  3564. * template[/opt/gitlab/sv/gitlab-workhorse/run] action create,
  3565. - create new file /opt/gitlab/sv/gitlab-workhorse/run,
  3566. - update content in file /opt/gitlab/sv/gitlab-workhorse/run from none to b1d72f,
  3567. --- /opt/gitlab/sv/gitlab-workhorse/run 2021-08-24 02:12:35.864267255 +0000,
  3568. +++ /opt/gitlab/sv/gitlab-workhorse/.chef-run20210824-31-1wuw9en 2021-08-24 02:12:35.864267255 +0000,
  3569. @@ -1,27 +1,54 @@,
  3570. +#!/bin/sh,
  3571. +set -e # fail on errors,
  3572. +,
  3573. +# Redirect stderr -> stdout,
  3574. +exec 2>&1,
  3575. +,
  3576. +,
  3577. +,
  3578. +cd /var/opt/gitlab/gitlab-workhorse,
  3579. +,
  3580. +exec chpst -e /opt/gitlab/etc/gitlab-workhorse/env -P \,
  3581. + -U git:git \,
  3582. + -u git:git \,
  3583. + /opt/gitlab/embedded/bin/gitlab-workhorse \,
  3584. + -listenNetwork unix \,
  3585. + -listenUmask 0 \,
  3586. + -listenAddr /var/opt/gitlab/gitlab-workhorse/sockets/socket \,
  3587. + -authBackend http://localhost:8080 \,
  3588. + -authSocket /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket \,
  3589. + -documentRoot /opt/gitlab/embedded/service/gitlab-rails/public \,
  3590. + -pprofListenAddr ''\,
  3591. + -prometheusListenAddr localhost:9229 \,
  3592. + -secretPath /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret \,
  3593. + -logFormat json \,
  3594. + -config config.toml \,
  3595. +,
  3596. +# Do not remove this line; it prevents trouble with the trailing backslashes above.,
  3597. - change mode from '' to '0755',
  3598. - change owner from '' to 'root',
  3599. - change group from '' to 'root',
  3600. * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create,
  3601. - create new directory /opt/gitlab/sv/gitlab-workhorse/log,
  3602. - change mode from '' to '0755',
  3603. - change owner from '' to 'root',
  3604. - change group from '' to 'root',
  3605. * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create,
  3606. - create new directory /opt/gitlab/sv/gitlab-workhorse/log/main,
  3607. - change mode from '' to '0755',
  3608. - change owner from '' to 'root',
  3609. - change group from '' to 'root',
  3610. * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create,
  3611. - create new file /opt/gitlab/sv/gitlab-workhorse/log/config,
  3612. - update content in file /opt/gitlab/sv/gitlab-workhorse/log/config from none to 623c00,
  3613. --- /opt/gitlab/sv/gitlab-workhorse/log/config 2021-08-24 02:12:35.948266160 +0000,
  3614. +++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-config20210824-31-19qlpah 2021-08-24 02:12:35.948266160 +0000,
  3615. @@ -1,6 +1,12 @@,
  3616. +s209715200,
  3617. +n30,
  3618. +t86400,
  3619. +!gzip,
  3620. +,
  3621. +,
  3622. - change mode from '' to '0644',
  3623. - change owner from '' to 'root',
  3624. - change group from '' to 'root',
  3625. * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action create,
  3626. - execute the ruby block verify_chown_persisted_on_gitlab-workhorse,
  3627. * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing),
  3628. * link[/var/log/gitlab/gitlab-workhorse/config] action create,
  3629. - create symlink at /var/log/gitlab/gitlab-workhorse/config to /opt/gitlab/sv/gitlab-workhorse/log/config,
  3630. * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create,
  3631. - create new file /opt/gitlab/sv/gitlab-workhorse/log/run,
  3632. - update content in file /opt/gitlab/sv/gitlab-workhorse/log/run from none to 34ab60,
  3633. --- /opt/gitlab/sv/gitlab-workhorse/log/run 2021-08-24 02:12:36.016265274 +0000,
  3634. +++ /opt/gitlab/sv/gitlab-workhorse/log/.chef-run20210824-31-l75wmj 2021-08-24 02:12:36.016265274 +0000,
  3635. @@ -1,2 +1,4 @@,
  3636. +#!/bin/sh,
  3637. +exec svlogd /var/log/gitlab/gitlab-workhorse,
  3638. - change mode from '' to '0755',
  3639. - change owner from '' to 'root',
  3640. - change group from '' to 'root',
  3641. * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create,
  3642. - create new directory /opt/gitlab/sv/gitlab-workhorse/env,
  3643. - change mode from '' to '0755',
  3644. - change owner from '' to 'root',
  3645. - change group from '' to 'root',
  3646. * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if),
  3647. * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if),
  3648. * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if),
  3649. * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create,
  3650. - create new directory /opt/gitlab/sv/gitlab-workhorse/control,
  3651. - change mode from '' to '0755',
  3652. - change owner from '' to 'root',
  3653. - change group from '' to 'root',
  3654. * link[/opt/gitlab/init/gitlab-workhorse] action create,
  3655. - create symlink at /opt/gitlab/init/gitlab-workhorse to /opt/gitlab/embedded/bin/sv,
  3656. * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing),
  3657. * ruby_block[restart_service] action run (skipped due to only_if),
  3658. * ruby_block[reload_log_service] action create,
  3659. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  3660. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  3661. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  3662. * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date),
  3663. * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date),
  3664. * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date),
  3665. * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date),
  3666. * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create (up to date),
  3667. * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing),
  3668. * link[/var/log/gitlab/gitlab-workhorse/config] action create (up to date),
  3669. * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date),
  3670. * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create (up to date),
  3671. * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if),
  3672. * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if),
  3673. * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if),
  3674. * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create (up to date),
  3675. * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date),
  3676. * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing),
  3677. * directory[/opt/gitlab/service] action create (up to date),
  3678. * link[/opt/gitlab/service/gitlab-workhorse] action create,
  3679. - create symlink at /opt/gitlab/service/gitlab-workhorse to /opt/gitlab/sv/gitlab-workhorse,
  3680. * ruby_block[wait for gitlab-workhorse service socket] action run,
  3681. - execute the ruby block wait for gitlab-workhorse service socket,
  3682. - execute the ruby block reload_log_service,
  3683. * ruby_block[restart_log_service] action run,
  3684. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  3685. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  3686. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  3687. * directory[/opt/gitlab/sv/gitlab-workhorse] action create (up to date),
  3688. * template[/opt/gitlab/sv/gitlab-workhorse/run] action create (up to date),
  3689. * directory[/opt/gitlab/sv/gitlab-workhorse/log] action create (up to date),
  3690. * directory[/opt/gitlab/sv/gitlab-workhorse/log/main] action create (up to date),
  3691. * template[/opt/gitlab/sv/gitlab-workhorse/log/config] action create (up to date),
  3692. * ruby_block[verify_chown_persisted_on_gitlab-workhorse] action nothing (skipped due to action :nothing),
  3693. * link[/var/log/gitlab/gitlab-workhorse/config] action create (up to date),
  3694. * template[/opt/gitlab/sv/gitlab-workhorse/log/run] action create (up to date),
  3695. * directory[/opt/gitlab/sv/gitlab-workhorse/env] action create (up to date),
  3696. * ruby_block[Delete unmanaged env files for gitlab-workhorse service] action run (skipped due to only_if),
  3697. * template[/opt/gitlab/sv/gitlab-workhorse/check] action create (skipped due to only_if),
  3698. * template[/opt/gitlab/sv/gitlab-workhorse/finish] action create (skipped due to only_if),
  3699. * directory[/opt/gitlab/sv/gitlab-workhorse/control] action create (up to date),
  3700. * link[/opt/gitlab/init/gitlab-workhorse] action create (up to date),
  3701. * file[/opt/gitlab/sv/gitlab-workhorse/down] action nothing (skipped due to action :nothing),
  3702. * directory[/opt/gitlab/service] action create (up to date),
  3703. * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date),
  3704. * ruby_block[wait for gitlab-workhorse service socket] action run (skipped due to not_if),
  3705. - execute the ruby block restart_log_service,
  3706. * directory[/opt/gitlab/service] action create (up to date),
  3707. * link[/opt/gitlab/service/gitlab-workhorse] action create (up to date),
  3708. * ruby_block[wait for gitlab-workhorse service socket] action run (skipped due to not_if),
  3709. ,
  3710. * consul_service[workhorse] action delete,
  3711. * file[/var/opt/gitlab/consul/config.d/workhorse-service.json] action delete (up to date),
  3712. (up to date),
  3713. * version_file[Create version file for Workhorse] action create,
  3714. * file[/var/opt/gitlab/gitlab-workhorse/VERSION] action create,
  3715. - create new file /var/opt/gitlab/gitlab-workhorse/VERSION,
  3716. - update content in file /var/opt/gitlab/gitlab-workhorse/VERSION from none to 78301c,
  3717. --- /var/opt/gitlab/gitlab-workhorse/VERSION 2021-08-24 02:12:40.032212939 +0000,
  3718. +++ /var/opt/gitlab/gitlab-workhorse/.chef-VERSION20210824-31-mu1qxr 2021-08-24 02:12:40.032212939 +0000,
  3719. @@ -1 +1,2 @@,
  3720. +gitlab-workhorse v14.2.0-20210820.085310,
  3721. ,
  3722. * template[/var/opt/gitlab/gitlab-workhorse/config.toml] action create,
  3723. - create new file /var/opt/gitlab/gitlab-workhorse/config.toml,
  3724. - update content in file /var/opt/gitlab/gitlab-workhorse/config.toml from none to 4f571b,
  3725. --- /var/opt/gitlab/gitlab-workhorse/config.toml 2021-08-24 02:12:40.092212158 +0000,
  3726. +++ /var/opt/gitlab/gitlab-workhorse/.chef-config20210824-31-ull1wl.toml 2021-08-24 02:12:40.092212158 +0000,
  3727. @@ -1,9 +1,18 @@,
  3728. +,
  3729. +[redis],
  3730. +URL = "unix:/var/opt/gitlab/redis/redis.socket",
  3731. +Password = "",
  3732. +,
  3733. +,
  3734. +[image_resizer],
  3735. + max_scaler_procs = 2,
  3736. + max_filesize = 250000,
  3737. - change mode from '' to '0640',
  3738. - change owner from '' to 'root',
  3739. - change group from '' to 'git',
  3740. Recipe: gitlab::mailroom_disable,
  3741. * service[mailroom] action nothing (skipped due to action :nothing),
  3742. * runit_service[mailroom] action disable,
  3743. * ruby_block[disable mailroom] action run (skipped due to only_if),
  3744. (up to date),
  3745. Recipe: gitlab::nginx,
  3746. * directory[/var/opt/gitlab/nginx] action create,
  3747. - create new directory /var/opt/gitlab/nginx,
  3748. - change mode from '' to '0750',
  3749. - change owner from '' to 'root',
  3750. - change group from '' to 'gitlab-www',
  3751. * directory[/var/opt/gitlab/nginx/conf] action create,
  3752. - create new directory /var/opt/gitlab/nginx/conf,
  3753. - change mode from '' to '0750',
  3754. - change owner from '' to 'root',
  3755. - change group from '' to 'gitlab-www',
  3756. * directory[/var/log/gitlab/nginx] action create,
  3757. - create new directory /var/log/gitlab/nginx,
  3758. - change mode from '' to '0750',
  3759. - change owner from '' to 'root',
  3760. - change group from '' to 'gitlab-www',
  3761. * link[/var/opt/gitlab/nginx/logs] action create,
  3762. - create symlink at /var/opt/gitlab/nginx/logs to /var/log/gitlab/nginx,
  3763. * template[/var/opt/gitlab/nginx/conf/gitlab-http.conf] action create,
  3764. - create new file /var/opt/gitlab/nginx/conf/gitlab-http.conf,
  3765. - update content in file /var/opt/gitlab/nginx/conf/gitlab-http.conf from none to 6a3439,
  3766. --- /var/opt/gitlab/nginx/conf/gitlab-http.conf 2021-08-24 02:12:40.204210698 +0000,
  3767. +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-http20210824-31-4m941t.conf 2021-08-24 02:12:40.204210698 +0000,
  3768. @@ -1,128 +1,256 @@,
  3769. +# This file is managed by gitlab-ctl. Manual changes will be,
  3770. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb,
  3771. +# and run `sudo gitlab-ctl reconfigure`.,
  3772. +,
  3773. +## GitLab,
  3774. +## 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,
  3775. +##,
  3776. +## Lines starting with two hashes (##) are comments with information.,
  3777. +## Lines starting with one hash (#) are configuration parameters that can be uncommented.,
  3778. +##,
  3779. +##################################,
  3780. +## CHUNKED TRANSFER ##,
  3781. +##################################,
  3782. +##,
  3783. +## It is a known issue that Git-over-HTTP requires chunked transfer encoding [0],
  3784. +## which is not supported by Nginx < 1.3.9 [1]. As a result, pushing a large object,
  3785. +## with Git (i.e. a single large file) can lead to a 411 error. In theory you can get,
  3786. +## around this by tweaking this configuration file and either:,
  3787. +## - installing an old version of Nginx with the chunkin module [2] compiled in, or,
  3788. +## - using a newer version of Nginx.,
  3789. +##,
  3790. +## At the time of writing we do not know if either of these theoretical solutions works.,
  3791. +## As a workaround users can use Git over SSH to push large files.,
  3792. +##,
  3793. +## [0] https://git.kernel.org/cgit/git/git.git/tree/Documentation/technical/http-protocol.txt#n99,
  3794. +## [1] https://github.com/agentzh/chunkin-nginx-module#status,
  3795. +## [2] https://github.com/agentzh/chunkin-nginx-module,
  3796. +##,
  3797. +###################################,
  3798. +## configuration ##,
  3799. +###################################,
  3800. +,
  3801. +,
  3802. +server {,
  3803. + listen *:80;,
  3804. +,
  3805. +,
  3806. + server_name gitlab.example.com;,
  3807. + server_tokens off; ## Don't show the nginx version number, a security best practice,
  3808. +,
  3809. + ## Increase this if you want to upload large attachments,
  3810. + ## Or if you want to accept large git objects over http,
  3811. + client_max_body_size 0;,
  3812. +,
  3813. +,
  3814. + ## Real IP Module Config,
  3815. + ## http://nginx.org/en/docs/http/ngx_http_realip_module.html,
  3816. +,
  3817. + ## HSTS Config,
  3818. + ## https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/,
  3819. + add_header Strict-Transport-Security "max-age=63072000";,
  3820. +,
  3821. + # Rails sets a default policy of strict-origin-when-cross-origin, so,
  3822. + # hide that and just send the one we've configured for nginx,
  3823. + proxy_hide_header Referrer-Policy;,
  3824. + add_header Referrer-Policy strict-origin-when-cross-origin;,
  3825. +,
  3826. + ## Individual nginx logs for this GitLab vhost,
  3827. + access_log /var/log/gitlab/nginx/gitlab_access.log gitlab_access;,
  3828. + error_log /var/log/gitlab/nginx/gitlab_error.log error;,
  3829. +,
  3830. + if ($http_host = "") {,
  3831. + set $http_host_with_default "gitlab.example.com";,
  3832. + },
  3833. +,
  3834. + if ($http_host != "") {,
  3835. + set $http_host_with_default $http_host;,
  3836. + },
  3837. +,
  3838. + gzip on;,
  3839. + gzip_static on;,
  3840. + gzip_comp_level 2;,
  3841. + gzip_http_version 1.1;,
  3842. + gzip_vary on;,
  3843. + gzip_disable "msie6";,
  3844. + gzip_min_length 250;,
  3845. + gzip_proxied no-cache no-store private expired auth;,
  3846. + gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;,
  3847. +,
  3848. + ## https://github.com/gitlabhq/gitlabhq/issues/694,
  3849. + ## Some requests take more than 30 seconds.,
  3850. + proxy_read_timeout 3600;,
  3851. + proxy_connect_timeout 300;,
  3852. + proxy_redirect off;,
  3853. + proxy_http_version 1.1;,
  3854. +,
  3855. + proxy_set_header Host $http_host_with_default;,
  3856. + proxy_set_header X-Real-IP $remote_addr;,
  3857. + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;,
  3858. + proxy_set_header Upgrade $http_upgrade;,
  3859. + proxy_set_header Connection $connection_upgrade;,
  3860. + proxy_set_header X-Forwarded-Proto http;,
  3861. +,
  3862. + location ~ (/api/v\d/jobs/\d+/artifacts$|\.git/git-receive-pack$|\.git/gitlab-lfs/objects|\.git/info/lfs/objects/batch$) {,
  3863. + proxy_cache off;,
  3864. + proxy_pass http://gitlab-workhorse;,
  3865. + proxy_request_buffering off;,
  3866. + },
  3867. +,
  3868. + location /-/grafana/ {,
  3869. + proxy_pass http://localhost:3000/;,
  3870. + },
  3871. +,
  3872. +,
  3873. + # health checks configuration,
  3874. + include /var/opt/gitlab/nginx/conf/gitlab-health.conf;,
  3875. +,
  3876. + location / {,
  3877. + proxy_cache off;,
  3878. + proxy_pass http://gitlab-workhorse;,
  3879. + },
  3880. +,
  3881. + location /assets {,
  3882. + add_header X-Content-Type-Options nosniff;,
  3883. + proxy_cache gitlab;,
  3884. + proxy_pass http://gitlab-workhorse;,
  3885. + },
  3886. +,
  3887. + error_page 404 /404.html;,
  3888. + error_page 500 /500.html;,
  3889. + error_page 502 /502.html;,
  3890. + location ~ ^/(404|500|502)(-custom)?\.html$ {,
  3891. + root /opt/gitlab/embedded/service/gitlab-rails/public;,
  3892. + internal;,
  3893. + },
  3894. +,
  3895. + ,
  3896. +},
  3897. - change mode from '' to '0644',
  3898. - change owner from '' to 'root',
  3899. - change group from '' to 'root',
  3900. * template[/var/opt/gitlab/nginx/conf/gitlab-smartcard-http.conf] action delete (up to date),
  3901. * template[/var/opt/gitlab/nginx/conf/gitlab-health.conf] action create,
  3902. - create new file /var/opt/gitlab/nginx/conf/gitlab-health.conf,
  3903. - update content in file /var/opt/gitlab/nginx/conf/gitlab-health.conf from none to 92d04b,
  3904. --- /var/opt/gitlab/nginx/conf/gitlab-health.conf 2021-08-24 02:12:40.344208874 +0000,
  3905. +++ /var/opt/gitlab/nginx/conf/.chef-gitlab-health20210824-31-nyf4un.conf 2021-08-24 02:12:40.344208874 +0000,
  3906. @@ -1,29 +1,58 @@,
  3907. +# This file is managed by gitlab-ctl. Manual changes will be,
  3908. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb,
  3909. +# and run `sudo gitlab-ctl reconfigure`.,
  3910. +,
  3911. +location /error.txt {,
  3912. + # return code here is ignored by the error_page directive,
  3913. + return 500 'nginx returned $status when communicating with gitlab-workhorse\n';,
  3914. +},
  3915. +,
  3916. +location /error.json {,
  3917. + # return code here is ignored by the error_page directive,
  3918. + return 500 '{"error":"nginx returned $status when communicating with gitlab-workhorse","status":$status}\n';,
  3919. +},
  3920. +,
  3921. +location = /-/health {,
  3922. + proxy_cache off;,
  3923. + proxy_pass http://gitlab-workhorse;,
  3924. + error_page 404 500 502 /error.txt;,
  3925. +},
  3926. +location = /-/readiness {,
  3927. + proxy_cache off;,
  3928. + proxy_pass http://gitlab-workhorse;,
  3929. + error_page 404 500 502 /error.json;,
  3930. +},
  3931. +location = /-/liveness {,
  3932. + proxy_cache off;,
  3933. + proxy_pass http://gitlab-workhorse;,
  3934. + error_page 404 500 502 /error.json;,
  3935. +},
  3936. - change mode from '' to '0644',
  3937. - change owner from '' to 'root',
  3938. - change group from '' to 'root',
  3939. * template[/var/opt/gitlab/nginx/conf/gitlab-pages.conf] action delete (up to date),
  3940. * template[/var/opt/gitlab/nginx/conf/gitlab-registry.conf] action delete (up to date),
  3941. * template[/var/opt/gitlab/nginx/conf/gitlab-mattermost-http.conf] action delete (up to date),
  3942. * template[/var/opt/gitlab/nginx/conf/nginx-status.conf] action create,
  3943. - create new file /var/opt/gitlab/nginx/conf/nginx-status.conf,
  3944. - update content in file /var/opt/gitlab/nginx/conf/nginx-status.conf from none to 74440c,
  3945. --- /var/opt/gitlab/nginx/conf/nginx-status.conf 2021-08-24 02:12:40.608205434 +0000,
  3946. +++ /var/opt/gitlab/nginx/conf/.chef-nginx-status20210824-31-1acikmc.conf 2021-08-24 02:12:40.608205434 +0000,
  3947. @@ -1,28 +1,56 @@,
  3948. +server {,
  3949. + listen *:8060;,
  3950. + server_name localhost;,
  3951. + location /nginx_status {,
  3952. + stub_status;,
  3953. + server_tokens off;,
  3954. + access_log off;,
  3955. + allow 127.0.0.1;,
  3956. + deny all;,
  3957. + },
  3958. + location /metrics {,
  3959. + vhost_traffic_status_display;,
  3960. + vhost_traffic_status_display_format prometheus;,
  3961. + server_tokens off;,
  3962. + access_log off;,
  3963. + allow 127.0.0.1;,
  3964. + deny all;,
  3965. + },
  3966. +,
  3967. + location /rails-metrics {,
  3968. + proxy_cache off;,
  3969. + proxy_pass http://gitlab-workhorse/-/metrics;,
  3970. + server_tokens off;,
  3971. + access_log off;,
  3972. + allow 127.0.0.1;,
  3973. + deny all;,
  3974. + },
  3975. +},
  3976. - change mode from '' to '0644',
  3977. - change owner from '' to 'root',
  3978. - change group from '' to 'root',
  3979. * consul_service[nginx] action delete,
  3980. * file[/var/opt/gitlab/consul/config.d/nginx-service.json] action delete (up to date),
  3981. (up to date),
  3982. * template[/var/opt/gitlab/nginx/conf/nginx.conf] action create,
  3983. - create new file /var/opt/gitlab/nginx/conf/nginx.conf,
  3984. - update content in file /var/opt/gitlab/nginx/conf/nginx.conf from none to 99b9c4,
  3985. --- /var/opt/gitlab/nginx/conf/nginx.conf 2021-08-24 02:12:40.720203975 +0000,
  3986. +++ /var/opt/gitlab/nginx/conf/.chef-nginx20210824-31-gi2eaw.conf 2021-08-24 02:12:40.716204027 +0000,
  3987. @@ -1,93 +1,186 @@,
  3988. +# This file is managed by gitlab-ctl. Manual changes will be,
  3989. +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb,
  3990. +# and run `sudo gitlab-ctl reconfigure`.,
  3991. +,
  3992. +user gitlab-www gitlab-www;,
  3993. +worker_processes 4;,
  3994. +error_log stderr;,
  3995. +pid nginx.pid;,
  3996. +,
  3997. +daemon off;,
  3998. +,
  3999. +events {,
  4000. + worker_connections 10240;,
  4001. +},
  4002. +,
  4003. +http {,
  4004. + 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';,
  4005. + 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';,
  4006. +,
  4007. + hide_server_tokens off;,
  4008. +,
  4009. + server_names_hash_bucket_size 64;,
  4010. +,
  4011. + sendfile on;,
  4012. + tcp_nopush on;,
  4013. + tcp_nodelay on;,
  4014. +,
  4015. + keepalive_timeout 65;,
  4016. + keepalive_time 1h;,
  4017. +,
  4018. + gzip on;,
  4019. + gzip_http_version 1.1;,
  4020. + gzip_comp_level 2;,
  4021. + gzip_proxied no-cache no-store private expired auth;,
  4022. + gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;,
  4023. +,
  4024. + include /opt/gitlab/embedded/conf/mime.types;,
  4025. +,
  4026. + proxy_cache_path proxy_cache keys_zone=gitlab:10m max_size=1g levels=1:2;,
  4027. + proxy_cache gitlab;,
  4028. +,
  4029. + map $http_upgrade $connection_upgrade {,
  4030. + default upgrade;,
  4031. + '' close;,
  4032. + },
  4033. +,
  4034. + # Remove private_token from the request URI,
  4035. + # In: /foo?private_token=unfiltered&authenticity_token=unfiltered&rss_token=unfiltered&...,
  4036. + # Out: /foo?private_token=[FILTERED]&authenticity_token=unfiltered&rss_token=unfiltered&...,
  4037. + map $request_uri $temp_request_uri_1 {,
  4038. + default $request_uri;,
  4039. + ~(?i)^(?<start>.*)(?<temp>[\?&]private[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";,
  4040. + },
  4041. +,
  4042. + # Remove authenticity_token from the request URI,
  4043. + # In: /foo?private_token=[FILTERED]&authenticity_token=unfiltered&rss_token=unfiltered&...,
  4044. + # Out: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=unfiltered&...,
  4045. + map $temp_request_uri_1 $temp_request_uri_2 {,
  4046. + default $temp_request_uri_1;,
  4047. + ~(?i)^(?<start>.*)(?<temp>[\?&]authenticity[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";,
  4048. + },
  4049. +,
  4050. + # Remove rss_token from the request URI,
  4051. + # In: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=unfiltered&...,
  4052. + # Out: /foo?private_token=[FILTERED]&authenticity_token=[FILTERED]&rss_token=[FILTERED]&...,
  4053. + map $temp_request_uri_2 $filtered_request_uri {,
  4054. + default $temp_request_uri_2;,
  4055. + ~(?i)^(?<start>.*)(?<temp>[\?&]rss[\-_]token)=[^&]*(?<rest>.*)$ "$start$temp=[FILTERED]$rest";,
  4056. + },
  4057. +,
  4058. + # A version of the referer without the query string,
  4059. + map $http_referer $filtered_http_referer {,
  4060. + default $http_referer;,
  4061. + ~^(?<temp>.*)\? $temp;,
  4062. + },
  4063. +,
  4064. + # Enable vts status module.,
  4065. + vhost_traffic_status_zone;,
  4066. +,
  4067. + upstream gitlab-workhorse {,
  4068. + server unix:/var/opt/gitlab/gitlab-workhorse/sockets/socket;,
  4069. + },
  4070. +,
  4071. + include /var/opt/gitlab/nginx/conf/gitlab-http.conf;,
  4072. +,
  4073. +,
  4074. +,
  4075. +,
  4076. +,
  4077. + include /var/opt/gitlab/nginx/conf/nginx-status.conf;,
  4078. +,
  4079. + ,
  4080. +},
  4081. - change mode from '' to '0644',
  4082. - change owner from '' to 'root',
  4083. - change group from '' to 'root',
  4084. Recipe: nginx::enable,
  4085. * service[nginx] action nothing (skipped due to action :nothing),
  4086. * runit_service[nginx] action enable,
  4087. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  4088. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  4089. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  4090. * directory[/opt/gitlab/sv/nginx] action create,
  4091. - create new directory /opt/gitlab/sv/nginx,
  4092. - change mode from '' to '0755',
  4093. - change owner from '' to 'root',
  4094. - change group from '' to 'root',
  4095. * template[/opt/gitlab/sv/nginx/run] action create,
  4096. - create new file /opt/gitlab/sv/nginx/run,
  4097. - update content in file /opt/gitlab/sv/nginx/run from none to d75aea,
  4098. --- /opt/gitlab/sv/nginx/run 2021-08-24 02:12:40.820202672 +0000,
  4099. +++ /opt/gitlab/sv/nginx/.chef-run20210824-31-1cippjf 2021-08-24 02:12:40.820202672 +0000,
  4100. @@ -1,5 +1,10 @@,
  4101. +#!/bin/sh,
  4102. +exec 2>&1,
  4103. +,
  4104. +cd /var/opt/gitlab/nginx,
  4105. +exec chpst -P /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx,
  4106. - change mode from '' to '0755',
  4107. - change owner from '' to 'root',
  4108. - change group from '' to 'root',
  4109. * directory[/opt/gitlab/sv/nginx/log] action create,
  4110. - create new directory /opt/gitlab/sv/nginx/log,
  4111. - change mode from '' to '0755',
  4112. - change owner from '' to 'root',
  4113. - change group from '' to 'root',
  4114. * directory[/opt/gitlab/sv/nginx/log/main] action create,
  4115. - create new directory /opt/gitlab/sv/nginx/log/main,
  4116. - change mode from '' to '0755',
  4117. - change owner from '' to 'root',
  4118. - change group from '' to 'root',
  4119. * template[/opt/gitlab/sv/nginx/log/config] action create,
  4120. - create new file /opt/gitlab/sv/nginx/log/config,
  4121. - update content in file /opt/gitlab/sv/nginx/log/config from none to 623c00,
  4122. --- /opt/gitlab/sv/nginx/log/config 2021-08-24 02:12:40.900201630 +0000,
  4123. +++ /opt/gitlab/sv/nginx/log/.chef-config20210824-31-1j517sd 2021-08-24 02:12:40.896201682 +0000,
  4124. @@ -1,6 +1,12 @@,
  4125. +s209715200,
  4126. +n30,
  4127. +t86400,
  4128. +!gzip,
  4129. +,
  4130. +,
  4131. - change mode from '' to '0644',
  4132. - change owner from '' to 'root',
  4133. - change group from '' to 'root',
  4134. * ruby_block[verify_chown_persisted_on_nginx] action create,
  4135. - execute the ruby block verify_chown_persisted_on_nginx,
  4136. * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing),
  4137. * link[/var/log/gitlab/nginx/config] action create,
  4138. - create symlink at /var/log/gitlab/nginx/config to /opt/gitlab/sv/nginx/log/config,
  4139. * template[/opt/gitlab/sv/nginx/log/run] action create,
  4140. - create new file /opt/gitlab/sv/nginx/log/run,
  4141. - update content in file /opt/gitlab/sv/nginx/log/run from none to c70025,
  4142. --- /opt/gitlab/sv/nginx/log/run 2021-08-24 02:12:40.964200796 +0000,
  4143. +++ /opt/gitlab/sv/nginx/log/.chef-run20210824-31-esaf04 2021-08-24 02:12:40.964200796 +0000,
  4144. @@ -1,2 +1,4 @@,
  4145. +#!/bin/sh,
  4146. +exec svlogd -tt /var/log/gitlab/nginx,
  4147. - change mode from '' to '0755',
  4148. - change owner from '' to 'root',
  4149. - change group from '' to 'root',
  4150. * directory[/opt/gitlab/sv/nginx/env] action create,
  4151. - create new directory /opt/gitlab/sv/nginx/env,
  4152. - change mode from '' to '0755',
  4153. - change owner from '' to 'root',
  4154. - change group from '' to 'root',
  4155. * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if),
  4156. * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if),
  4157. * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if),
  4158. * directory[/opt/gitlab/sv/nginx/control] action create,
  4159. - create new directory /opt/gitlab/sv/nginx/control,
  4160. - change mode from '' to '0755',
  4161. - change owner from '' to 'root',
  4162. - change group from '' to 'root',
  4163. * link[/opt/gitlab/init/nginx] action create,
  4164. - create symlink at /opt/gitlab/init/nginx to /opt/gitlab/embedded/bin/sv,
  4165. * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing),
  4166. * ruby_block[restart_service] action run (skipped due to only_if),
  4167. * ruby_block[reload_log_service] action create,
  4168. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  4169. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  4170. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  4171. * directory[/opt/gitlab/sv/nginx] action create (up to date),
  4172. * template[/opt/gitlab/sv/nginx/run] action create (up to date),
  4173. * directory[/opt/gitlab/sv/nginx/log] action create (up to date),
  4174. * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date),
  4175. * template[/opt/gitlab/sv/nginx/log/config] action create (up to date),
  4176. * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing),
  4177. * link[/var/log/gitlab/nginx/config] action create (up to date),
  4178. * template[/opt/gitlab/sv/nginx/log/run] action create (up to date),
  4179. * directory[/opt/gitlab/sv/nginx/env] action create (up to date),
  4180. * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if),
  4181. * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if),
  4182. * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if),
  4183. * directory[/opt/gitlab/sv/nginx/control] action create (up to date),
  4184. * link[/opt/gitlab/init/nginx] action create (up to date),
  4185. * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing),
  4186. * directory[/opt/gitlab/service] action create (up to date),
  4187. * link[/opt/gitlab/service/nginx] action create,
  4188. - create symlink at /opt/gitlab/service/nginx to /opt/gitlab/sv/nginx,
  4189. * ruby_block[wait for nginx service socket] action run,
  4190. - execute the ruby block wait for nginx service socket,
  4191. - execute the ruby block reload_log_service,
  4192. * ruby_block[restart_log_service] action run,
  4193. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  4194. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  4195. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  4196. * directory[/opt/gitlab/sv/nginx] action create (up to date),
  4197. * template[/opt/gitlab/sv/nginx/run] action create (up to date),
  4198. * directory[/opt/gitlab/sv/nginx/log] action create (up to date),
  4199. * directory[/opt/gitlab/sv/nginx/log/main] action create (up to date),
  4200. * template[/opt/gitlab/sv/nginx/log/config] action create (up to date),
  4201. * ruby_block[verify_chown_persisted_on_nginx] action nothing (skipped due to action :nothing),
  4202. * link[/var/log/gitlab/nginx/config] action create (up to date),
  4203. * template[/opt/gitlab/sv/nginx/log/run] action create (up to date),
  4204. * directory[/opt/gitlab/sv/nginx/env] action create (up to date),
  4205. * ruby_block[Delete unmanaged env files for nginx service] action run (skipped due to only_if),
  4206. * template[/opt/gitlab/sv/nginx/check] action create (skipped due to only_if),
  4207. * template[/opt/gitlab/sv/nginx/finish] action create (skipped due to only_if),
  4208. * directory[/opt/gitlab/sv/nginx/control] action create (up to date),
  4209. * link[/opt/gitlab/init/nginx] action create (up to date),
  4210. * file[/opt/gitlab/sv/nginx/down] action nothing (skipped due to action :nothing),
  4211. * directory[/opt/gitlab/service] action create (up to date),
  4212. * link[/opt/gitlab/service/nginx] action create (up to date),
  4213. * ruby_block[wait for nginx service socket] action run (skipped due to not_if),
  4214. - execute the ruby block restart_log_service,
  4215. * directory[/opt/gitlab/service] action create (up to date),
  4216. * link[/opt/gitlab/service/nginx] action create (up to date),
  4217. * ruby_block[wait for nginx service socket] action run (skipped due to not_if),
  4218. ,
  4219. * execute[reload nginx] action nothing (skipped due to action :nothing),
  4220. Recipe: gitlab::nginx,
  4221. * execute[/opt/gitlab/bin/gitlab-ctl start nginx] action run,
  4222. [execute] ok: run: nginx: (pid 657) 8s,
  4223. - execute /opt/gitlab/bin/gitlab-ctl start nginx,
  4224. Recipe: gitlab::remote-syslog_disable,
  4225. * service[remote-syslog] action nothing (skipped due to action :nothing),
  4226. * runit_service[remote-syslog] action disable,
  4227. * ruby_block[disable remote-syslog] action run (skipped due to only_if),
  4228. (up to date),
  4229. Recipe: gitlab::bootstrap,
  4230. * file[/var/opt/gitlab/bootstrapped] action create,
  4231. - create new file /var/opt/gitlab/bootstrapped,
  4232. - update content in file /var/opt/gitlab/bootstrapped from none to 4ae00c,
  4233. --- /var/opt/gitlab/bootstrapped 2021-08-24 02:12:53.600036222 +0000,
  4234. +++ /var/opt/gitlab/.chef-bootstrapped20210824-31-gqhcf3 2021-08-24 02:12:53.600036222 +0000,
  4235. @@ -1 +1,2 @@,
  4236. +All your bootstraps are belong to Chef,
  4237. - change mode from '' to '0600',
  4238. - change owner from '' to 'root',
  4239. - change group from '' to 'root',
  4240. Recipe: gitlab::storage-check_disable,
  4241. * service[storage-check] action nothing (skipped due to action :nothing),
  4242. * runit_service[storage-check] action disable,
  4243. * ruby_block[disable storage-check] action run (skipped due to only_if),
  4244. (up to date),
  4245. Recipe: gitlab-pages::disable,
  4246. * service[gitlab-pages] action nothing (skipped due to action :nothing),
  4247. * runit_service[gitlab-pages] action disable,
  4248. * ruby_block[disable gitlab-pages] action run (skipped due to only_if),
  4249. (up to date),
  4250. Recipe: registry::disable,
  4251. * service[registry] action nothing (skipped due to action :nothing),
  4252. * runit_service[registry] action disable,
  4253. * ruby_block[disable registry] action run (skipped due to only_if),
  4254. (up to date),
  4255. Recipe: mattermost::disable,
  4256. * service[mattermost] action nothing (skipped due to action :nothing),
  4257. * runit_service[mattermost] action disable,
  4258. * ruby_block[disable mattermost] action run (skipped due to only_if),
  4259. (up to date),
  4260. Recipe: letsencrypt::disable,
  4261. * crond_job[letsencrypt-renew] action delete,
  4262. * file[/var/opt/gitlab/crond/letsencrypt-renew] action delete (up to date),
  4263. (up to date),
  4264. Recipe: gitlab::gitlab-healthcheck,
  4265. * template[/opt/gitlab/etc/gitlab-healthcheck-rc] action create,
  4266. - create new file /opt/gitlab/etc/gitlab-healthcheck-rc,
  4267. - update content in file /opt/gitlab/etc/gitlab-healthcheck-rc from none to 6da55f,
  4268. --- /opt/gitlab/etc/gitlab-healthcheck-rc 2021-08-24 02:12:53.744034347 +0000,
  4269. +++ /opt/gitlab/etc/.chef-gitlab-healthcheck-rc20210824-31-1o00zy5 2021-08-24 02:12:53.744034347 +0000,
  4270. @@ -1,2 +1,4 @@,
  4271. +url='http://localhost:80/help',
  4272. +flags='--insecure',
  4273. - change owner from '' to 'root',
  4274. - change group from '' to 'root',
  4275. Recipe: monitoring::node-exporter_disable,
  4276. * service[node-exporter] action nothing (skipped due to action :nothing),
  4277. * runit_service[node-exporter] action disable,
  4278. * ruby_block[disable node-exporter] action run (skipped due to only_if),
  4279. (up to date),
  4280. * consul_service[node-exporter] action delete,
  4281. * file[/var/opt/gitlab/consul/config.d/node-exporter-service.json] action delete (up to date),
  4282. (up to date),
  4283. Recipe: monitoring::gitlab-exporter,
  4284. * directory[/var/opt/gitlab/gitlab-exporter] action create,
  4285. - create new directory /var/opt/gitlab/gitlab-exporter,
  4286. - change mode from '' to '0755',
  4287. - change owner from '' to 'git',
  4288. * directory[/var/log/gitlab/gitlab-exporter] action create,
  4289. - create new directory /var/log/gitlab/gitlab-exporter,
  4290. - change mode from '' to '0700',
  4291. - change owner from '' to 'git',
  4292. * env_dir[/opt/gitlab/etc/gitlab-exporter/env] action create,
  4293. * directory[/opt/gitlab/etc/gitlab-exporter/env] action create,
  4294. - create new directory /opt/gitlab/etc/gitlab-exporter/env,
  4295. * file[/opt/gitlab/etc/gitlab-exporter/env/LD_PRELOAD] action create,
  4296. - create new file /opt/gitlab/etc/gitlab-exporter/env/LD_PRELOAD,
  4297. - update content in file /opt/gitlab/etc/gitlab-exporter/env/LD_PRELOAD from none to f79114,
  4298. - suppressed sensitive resource,
  4299. * file[/opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF] action create,
  4300. - create new file /opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF,
  4301. - update content in file /opt/gitlab/etc/gitlab-exporter/env/MALLOC_CONF from none to 2ea29b,
  4302. - suppressed sensitive resource,
  4303. * file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS] action create,
  4304. - create new file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS,
  4305. - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_INIT_SLOTS from none to 47b250,
  4306. - suppressed sensitive resource,
  4307. * file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO] action create,
  4308. - create new file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO,
  4309. - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO from none to c945fb,
  4310. - suppressed sensitive resource,
  4311. * file[/opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO] action create,
  4312. - create new file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO,
  4313. - update content in file /opt/gitlab/etc/gitlab-exporter/env/RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO from none to 8a60e9,
  4314. - suppressed sensitive resource,
  4315. ,
  4316. * template[/var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml] action create,
  4317. - create new file /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml,
  4318. - update content in file /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml from none to b4f32c,
  4319. --- /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml 2021-08-24 02:12:54.132029296 +0000,
  4320. +++ /var/opt/gitlab/gitlab-exporter/.chef-gitlab-exporter20210824-31-qmgbhq.yml 2021-08-24 02:12:54.132029296 +0000,
  4321. @@ -1,62 +1,124 @@,
  4322. +db_common: &db_common,
  4323. + methods:,
  4324. + - probe_db,
  4325. + opts:,
  4326. + connection_string: dbname=gitlabhq_production user=gitlab host=/var/opt/gitlab/postgresql port=5432 password=,
  4327. +,
  4328. +# Web server config,
  4329. +server:,
  4330. + name: webrick,
  4331. + listen_address: localhost,
  4332. + listen_port: 9168,
  4333. +,
  4334. +# Probes config,
  4335. +probes:,
  4336. + # We can group multiple probes under a single endpoint by setting the `multiple` key to `true`, followed,
  4337. + # by probe definitions as usual.,
  4338. + database:,
  4339. + multiple: true,
  4340. + ci_builds:,
  4341. + class_name: Database::CiBuildsProber,
  4342. + <<: *db_common,
  4343. + tuple_stats:,
  4344. + class_name: Database::TuplesProber,
  4345. + <<: *db_common,
  4346. + rows_count:,
  4347. + class_name: Database::RowCountProber,
  4348. + <<: *db_common,
  4349. + database_bloat:,
  4350. + class_name: Database::BloatProber,
  4351. + <<: *db_common,
  4352. +,
  4353. + ruby: &ruby,
  4354. + methods:,
  4355. + - probe_gc,
  4356. + opts:,
  4357. + quantiles: false,
  4358. +,
  4359. + sidekiq: &sidekiq,
  4360. + methods:,
  4361. + - probe_stats,
  4362. + - probe_queues,
  4363. + - probe_workers,
  4364. + - probe_retries,
  4365. + opts:,
  4366. + redis_url: "unix:/var/opt/gitlab/redis/redis.socket",
  4367. + redis_enable_client: true,
  4368. +,
  4369. + metrics:,
  4370. + multiple: true,
  4371. + ruby:,
  4372. + <<: *ruby,
  4373. + sidekiq:,
  4374. + <<: *sidekiq,
  4375. + ci_builds:,
  4376. + class_name: Database::CiBuildsProber,
  4377. + <<: *db_common,
  4378. + tuple_stats:,
  4379. + class_name: Database::TuplesProber,
  4380. + <<: *db_common,
  4381. + rows_count:,
  4382. + class_name: Database::RowCountProber,
  4383. + <<: *db_common,
  4384. - change mode from '' to '0600',
  4385. - change owner from '' to 'git',
  4386. * version_file[Create version file for GitLab-Exporter] action create,
  4387. * file[/var/opt/gitlab/gitlab-exporter/RUBY_VERSION] action create,
  4388. - create new file /var/opt/gitlab/gitlab-exporter/RUBY_VERSION,
  4389. - update content in file /var/opt/gitlab/gitlab-exporter/RUBY_VERSION from none to 880271,
  4390. --- /var/opt/gitlab/gitlab-exporter/RUBY_VERSION 2021-08-24 02:12:54.264027577 +0000,
  4391. +++ /var/opt/gitlab/gitlab-exporter/.chef-RUBY_VERSION20210824-31-19iimk3 2021-08-24 02:12:54.264027577 +0000,
  4392. @@ -1 +1,2 @@,
  4393. +ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [aarch64-linux],
  4394. ,
  4395. * service[gitlab-exporter] action nothing (skipped due to action :nothing),
  4396. * runit_service[gitlab-exporter] action enable,
  4397. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  4398. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  4399. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  4400. * directory[/opt/gitlab/sv/gitlab-exporter] action create,
  4401. - create new directory /opt/gitlab/sv/gitlab-exporter,
  4402. - change mode from '' to '0755',
  4403. - change owner from '' to 'root',
  4404. - change group from '' to 'root',
  4405. * template[/opt/gitlab/sv/gitlab-exporter/run] action create,
  4406. - create new file /opt/gitlab/sv/gitlab-exporter/run,
  4407. - update content in file /opt/gitlab/sv/gitlab-exporter/run from none to 455cb2,
  4408. --- /opt/gitlab/sv/gitlab-exporter/run 2021-08-24 02:12:54.372026171 +0000,
  4409. +++ /opt/gitlab/sv/gitlab-exporter/.chef-run20210824-31-1gwk17r 2021-08-24 02:12:54.372026171 +0000,
  4410. @@ -1,9 +1,18 @@,
  4411. +#!/bin/sh,
  4412. +exec 2>&1,
  4413. +,
  4414. +umask 077,
  4415. +exec chpst -P -e /opt/gitlab/etc/gitlab-exporter/env \,
  4416. + -U git:git \,
  4417. + -u git:git \,
  4418. + /opt/gitlab/embedded/bin/gitlab-exporter web \,
  4419. + -c /var/opt/gitlab/gitlab-exporter/gitlab-exporter.yml,
  4420. - change mode from '' to '0755',
  4421. - change owner from '' to 'root',
  4422. - change group from '' to 'root',
  4423. * directory[/opt/gitlab/sv/gitlab-exporter/log] action create,
  4424. - create new directory /opt/gitlab/sv/gitlab-exporter/log,
  4425. - change mode from '' to '0755',
  4426. - change owner from '' to 'root',
  4427. - change group from '' to 'root',
  4428. * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create,
  4429. - create new directory /opt/gitlab/sv/gitlab-exporter/log/main,
  4430. - change mode from '' to '0755',
  4431. - change owner from '' to 'root',
  4432. - change group from '' to 'root',
  4433. * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create,
  4434. - create new file /opt/gitlab/sv/gitlab-exporter/log/config,
  4435. - update content in file /opt/gitlab/sv/gitlab-exporter/log/config from none to 623c00,
  4436. --- /opt/gitlab/sv/gitlab-exporter/log/config 2021-08-24 02:12:54.464024974 +0000,
  4437. +++ /opt/gitlab/sv/gitlab-exporter/log/.chef-config20210824-31-kiasli 2021-08-24 02:12:54.464024974 +0000,
  4438. @@ -1,6 +1,12 @@,
  4439. +s209715200,
  4440. +n30,
  4441. +t86400,
  4442. +!gzip,
  4443. +,
  4444. +,
  4445. - change mode from '' to '0644',
  4446. - change owner from '' to 'root',
  4447. - change group from '' to 'root',
  4448. * ruby_block[verify_chown_persisted_on_gitlab-exporter] action create,
  4449. - execute the ruby block verify_chown_persisted_on_gitlab-exporter,
  4450. * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing),
  4451. * link[/var/log/gitlab/gitlab-exporter/config] action create,
  4452. - create symlink at /var/log/gitlab/gitlab-exporter/config to /opt/gitlab/sv/gitlab-exporter/log/config,
  4453. * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create,
  4454. - create new file /opt/gitlab/sv/gitlab-exporter/log/run,
  4455. - update content in file /opt/gitlab/sv/gitlab-exporter/log/run from none to 690ab7,
  4456. --- /opt/gitlab/sv/gitlab-exporter/log/run 2021-08-24 02:12:54.532024088 +0000,
  4457. +++ /opt/gitlab/sv/gitlab-exporter/log/.chef-run20210824-31-1gpdw56 2021-08-24 02:12:54.532024088 +0000,
  4458. @@ -1,2 +1,4 @@,
  4459. +#!/bin/sh,
  4460. +exec svlogd -tt /var/log/gitlab/gitlab-exporter,
  4461. - change mode from '' to '0755',
  4462. - change owner from '' to 'root',
  4463. - change group from '' to 'root',
  4464. * directory[/opt/gitlab/sv/gitlab-exporter/env] action create,
  4465. - create new directory /opt/gitlab/sv/gitlab-exporter/env,
  4466. - change mode from '' to '0755',
  4467. - change owner from '' to 'root',
  4468. - change group from '' to 'root',
  4469. * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if),
  4470. * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if),
  4471. * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if),
  4472. * directory[/opt/gitlab/sv/gitlab-exporter/control] action create,
  4473. - create new directory /opt/gitlab/sv/gitlab-exporter/control,
  4474. - change mode from '' to '0755',
  4475. - change owner from '' to 'root',
  4476. - change group from '' to 'root',
  4477. * link[/opt/gitlab/init/gitlab-exporter] action create,
  4478. - create symlink at /opt/gitlab/init/gitlab-exporter to /opt/gitlab/embedded/bin/sv,
  4479. * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing),
  4480. * ruby_block[restart_service] action run (skipped due to only_if),
  4481. * ruby_block[reload_log_service] action create,
  4482. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  4483. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  4484. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  4485. * directory[/opt/gitlab/sv/gitlab-exporter] action create (up to date),
  4486. * template[/opt/gitlab/sv/gitlab-exporter/run] action create (up to date),
  4487. * directory[/opt/gitlab/sv/gitlab-exporter/log] action create (up to date),
  4488. * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create (up to date),
  4489. * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create (up to date),
  4490. * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing),
  4491. * link[/var/log/gitlab/gitlab-exporter/config] action create (up to date),
  4492. * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create (up to date),
  4493. * directory[/opt/gitlab/sv/gitlab-exporter/env] action create (up to date),
  4494. * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if),
  4495. * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if),
  4496. * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if),
  4497. * directory[/opt/gitlab/sv/gitlab-exporter/control] action create (up to date),
  4498. * link[/opt/gitlab/init/gitlab-exporter] action create (up to date),
  4499. * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing),
  4500. * directory[/opt/gitlab/service] action create (up to date),
  4501. * link[/opt/gitlab/service/gitlab-exporter] action create,
  4502. - create symlink at /opt/gitlab/service/gitlab-exporter to /opt/gitlab/sv/gitlab-exporter,
  4503. * ruby_block[wait for gitlab-exporter service socket] action run,
  4504. - execute the ruby block wait for gitlab-exporter service socket,
  4505. - execute the ruby block reload_log_service,
  4506. * ruby_block[restart_log_service] action run,
  4507. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  4508. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  4509. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  4510. * directory[/opt/gitlab/sv/gitlab-exporter] action create (up to date),
  4511. * template[/opt/gitlab/sv/gitlab-exporter/run] action create (up to date),
  4512. * directory[/opt/gitlab/sv/gitlab-exporter/log] action create (up to date),
  4513. * directory[/opt/gitlab/sv/gitlab-exporter/log/main] action create (up to date),
  4514. * template[/opt/gitlab/sv/gitlab-exporter/log/config] action create (up to date),
  4515. * ruby_block[verify_chown_persisted_on_gitlab-exporter] action nothing (skipped due to action :nothing),
  4516. * link[/var/log/gitlab/gitlab-exporter/config] action create (up to date),
  4517. * template[/opt/gitlab/sv/gitlab-exporter/log/run] action create (up to date),
  4518. * directory[/opt/gitlab/sv/gitlab-exporter/env] action create (up to date),
  4519. * ruby_block[Delete unmanaged env files for gitlab-exporter service] action run (skipped due to only_if),
  4520. * template[/opt/gitlab/sv/gitlab-exporter/check] action create (skipped due to only_if),
  4521. * template[/opt/gitlab/sv/gitlab-exporter/finish] action create (skipped due to only_if),
  4522. * directory[/opt/gitlab/sv/gitlab-exporter/control] action create (up to date),
  4523. * link[/opt/gitlab/init/gitlab-exporter] action create (up to date),
  4524. * file[/opt/gitlab/sv/gitlab-exporter/down] action nothing (skipped due to action :nothing),
  4525. * directory[/opt/gitlab/service] action create (up to date),
  4526. * link[/opt/gitlab/service/gitlab-exporter] action create (up to date),
  4527. * ruby_block[wait for gitlab-exporter service socket] action run (skipped due to not_if),
  4528. - execute the ruby block restart_log_service,
  4529. * directory[/opt/gitlab/service] action create (up to date),
  4530. * link[/opt/gitlab/service/gitlab-exporter] action create (up to date),
  4531. * ruby_block[wait for gitlab-exporter service socket] action run (skipped due to not_if),
  4532. ,
  4533. * execute[/opt/gitlab/bin/gitlab-ctl start gitlab-exporter] action run,
  4534. [execute] ok: run: gitlab-exporter: (pid 677) 8s,
  4535. - execute /opt/gitlab/bin/gitlab-ctl start gitlab-exporter,
  4536. Recipe: monitoring::redis-exporter,
  4537. * directory[/var/log/gitlab/redis-exporter] action create,
  4538. - create new directory /var/log/gitlab/redis-exporter,
  4539. - change mode from '' to '0700',
  4540. - change owner from '' to 'gitlab-redis',
  4541. * directory[/opt/gitlab/etc/redis-exporter/env] action create,
  4542. - create new directory /opt/gitlab/etc/redis-exporter/env,
  4543. - change mode from '' to '0700',
  4544. - change owner from '' to 'gitlab-redis',
  4545. * env_dir[/opt/gitlab/etc/redis-exporter/env] action create,
  4546. * directory[/opt/gitlab/etc/redis-exporter/env] action create (up to date),
  4547. * file[/opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR] action create,
  4548. - create new file /opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR,
  4549. - update content in file /opt/gitlab/etc/redis-exporter/env/SSL_CERT_DIR from none to 4f45cf,
  4550. - suppressed sensitive resource,
  4551. ,
  4552. * service[redis-exporter] action nothing (skipped due to action :nothing),
  4553. * runit_service[redis-exporter] action enable,
  4554. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  4555. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  4556. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  4557. * directory[/opt/gitlab/sv/redis-exporter] action create,
  4558. - create new directory /opt/gitlab/sv/redis-exporter,
  4559. - change mode from '' to '0755',
  4560. - change owner from '' to 'root',
  4561. - change group from '' to 'root',
  4562. * template[/opt/gitlab/sv/redis-exporter/run] action create,
  4563. - create new file /opt/gitlab/sv/redis-exporter/run,
  4564. - update content in file /opt/gitlab/sv/redis-exporter/run from none to a21d3f,
  4565. --- /opt/gitlab/sv/redis-exporter/run 2021-08-24 02:13:04.755891027 +0000,
  4566. +++ /opt/gitlab/sv/redis-exporter/.chef-run20210824-31-1e2t50n 2021-08-24 02:13:04.755891027 +0000,
  4567. @@ -1,8 +1,16 @@,
  4568. +#!/bin/sh,
  4569. +exec 2>&1,
  4570. +,
  4571. +umask 077,
  4572. +exec chpst -P -e /opt/gitlab/etc/redis-exporter/env \,
  4573. + -U gitlab-redis:git \,
  4574. + -u gitlab-redis:git \,
  4575. + /opt/gitlab/embedded/bin/redis_exporter --web.listen-address=localhost:9121 --redis.addr=unix:///var/opt/gitlab/redis/redis.socket,
  4576. - change mode from '' to '0755',
  4577. - change owner from '' to 'root',
  4578. - change group from '' to 'root',
  4579. * directory[/opt/gitlab/sv/redis-exporter/log] action create,
  4580. - create new directory /opt/gitlab/sv/redis-exporter/log,
  4581. - change mode from '' to '0755',
  4582. - change owner from '' to 'root',
  4583. - change group from '' to 'root',
  4584. * directory[/opt/gitlab/sv/redis-exporter/log/main] action create,
  4585. - create new directory /opt/gitlab/sv/redis-exporter/log/main,
  4586. - change mode from '' to '0755',
  4587. - change owner from '' to 'root',
  4588. - change group from '' to 'root',
  4589. * template[/opt/gitlab/sv/redis-exporter/log/config] action create,
  4590. - create new file /opt/gitlab/sv/redis-exporter/log/config,
  4591. - update content in file /opt/gitlab/sv/redis-exporter/log/config from none to 623c00,
  4592. --- /opt/gitlab/sv/redis-exporter/log/config 2021-08-24 02:13:04.839889934 +0000,
  4593. +++ /opt/gitlab/sv/redis-exporter/log/.chef-config20210824-31-nqigwo 2021-08-24 02:13:04.839889934 +0000,
  4594. @@ -1,6 +1,12 @@,
  4595. +s209715200,
  4596. +n30,
  4597. +t86400,
  4598. +!gzip,
  4599. +,
  4600. +,
  4601. - change mode from '' to '0644',
  4602. - change owner from '' to 'root',
  4603. - change group from '' to 'root',
  4604. * ruby_block[verify_chown_persisted_on_redis-exporter] action create,
  4605. - execute the ruby block verify_chown_persisted_on_redis-exporter,
  4606. * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing),
  4607. * link[/var/log/gitlab/redis-exporter/config] action create,
  4608. - create symlink at /var/log/gitlab/redis-exporter/config to /opt/gitlab/sv/redis-exporter/log/config,
  4609. * template[/opt/gitlab/sv/redis-exporter/log/run] action create,
  4610. - create new file /opt/gitlab/sv/redis-exporter/log/run,
  4611. - update content in file /opt/gitlab/sv/redis-exporter/log/run from none to 082dea,
  4612. --- /opt/gitlab/sv/redis-exporter/log/run 2021-08-24 02:13:04.907889049 +0000,
  4613. +++ /opt/gitlab/sv/redis-exporter/log/.chef-run20210824-31-q3hk9c 2021-08-24 02:13:04.907889049 +0000,
  4614. @@ -1,2 +1,4 @@,
  4615. +#!/bin/sh,
  4616. +exec svlogd -tt /var/log/gitlab/redis-exporter,
  4617. - change mode from '' to '0755',
  4618. - change owner from '' to 'root',
  4619. - change group from '' to 'root',
  4620. * directory[/opt/gitlab/sv/redis-exporter/env] action create,
  4621. - create new directory /opt/gitlab/sv/redis-exporter/env,
  4622. - change mode from '' to '0755',
  4623. - change owner from '' to 'root',
  4624. - change group from '' to 'root',
  4625. * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if),
  4626. * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if),
  4627. * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if),
  4628. * directory[/opt/gitlab/sv/redis-exporter/control] action create,
  4629. - create new directory /opt/gitlab/sv/redis-exporter/control,
  4630. - change mode from '' to '0755',
  4631. - change owner from '' to 'root',
  4632. - change group from '' to 'root',
  4633. * link[/opt/gitlab/init/redis-exporter] action create,
  4634. - create symlink at /opt/gitlab/init/redis-exporter to /opt/gitlab/embedded/bin/sv,
  4635. * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing),
  4636. * ruby_block[restart_service] action run (skipped due to only_if),
  4637. * ruby_block[reload_log_service] action create,
  4638. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  4639. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  4640. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  4641. * directory[/opt/gitlab/sv/redis-exporter] action create (up to date),
  4642. * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date),
  4643. * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date),
  4644. * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date),
  4645. * template[/opt/gitlab/sv/redis-exporter/log/config] action create (up to date),
  4646. * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing),
  4647. * link[/var/log/gitlab/redis-exporter/config] action create (up to date),
  4648. * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date),
  4649. * directory[/opt/gitlab/sv/redis-exporter/env] action create (up to date),
  4650. * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if),
  4651. * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if),
  4652. * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if),
  4653. * directory[/opt/gitlab/sv/redis-exporter/control] action create (up to date),
  4654. * link[/opt/gitlab/init/redis-exporter] action create (up to date),
  4655. * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing),
  4656. * directory[/opt/gitlab/service] action create (up to date),
  4657. * link[/opt/gitlab/service/redis-exporter] action create,
  4658. - create symlink at /opt/gitlab/service/redis-exporter to /opt/gitlab/sv/redis-exporter,
  4659. * ruby_block[wait for redis-exporter service socket] action run,
  4660. - execute the ruby block wait for redis-exporter service socket,
  4661. - execute the ruby block reload_log_service,
  4662. * ruby_block[restart_log_service] action run,
  4663. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  4664. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  4665. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  4666. * directory[/opt/gitlab/sv/redis-exporter] action create (up to date),
  4667. * template[/opt/gitlab/sv/redis-exporter/run] action create (up to date),
  4668. * directory[/opt/gitlab/sv/redis-exporter/log] action create (up to date),
  4669. * directory[/opt/gitlab/sv/redis-exporter/log/main] action create (up to date),
  4670. * template[/opt/gitlab/sv/redis-exporter/log/config] action create (up to date),
  4671. * ruby_block[verify_chown_persisted_on_redis-exporter] action nothing (skipped due to action :nothing),
  4672. * link[/var/log/gitlab/redis-exporter/config] action create (up to date),
  4673. * template[/opt/gitlab/sv/redis-exporter/log/run] action create (up to date),
  4674. * directory[/opt/gitlab/sv/redis-exporter/env] action create (up to date),
  4675. * ruby_block[Delete unmanaged env files for redis-exporter service] action run (skipped due to only_if),
  4676. * template[/opt/gitlab/sv/redis-exporter/check] action create (skipped due to only_if),
  4677. * template[/opt/gitlab/sv/redis-exporter/finish] action create (skipped due to only_if),
  4678. * directory[/opt/gitlab/sv/redis-exporter/control] action create (up to date),
  4679. * link[/opt/gitlab/init/redis-exporter] action create (up to date),
  4680. * file[/opt/gitlab/sv/redis-exporter/down] action nothing (skipped due to action :nothing),
  4681. * directory[/opt/gitlab/service] action create (up to date),
  4682. * link[/opt/gitlab/service/redis-exporter] action create (up to date),
  4683. * ruby_block[wait for redis-exporter service socket] action run (skipped due to not_if),
  4684. - execute the ruby block restart_log_service,
  4685. * directory[/opt/gitlab/service] action create (up to date),
  4686. * link[/opt/gitlab/service/redis-exporter] action create (up to date),
  4687. * ruby_block[wait for redis-exporter service socket] action run (skipped due to not_if),
  4688. ,
  4689. * execute[/opt/gitlab/bin/gitlab-ctl start redis-exporter] action run,
  4690. [execute] ok: run: redis-exporter: (pid 692) 7s,
  4691. - execute /opt/gitlab/bin/gitlab-ctl start redis-exporter,
  4692. * consul_service[redis-exporter] action delete,
  4693. * file[/var/opt/gitlab/consul/config.d/redis-exporter-service.json] action delete (up to date),
  4694. (up to date),
  4695. Recipe: monitoring::user,
  4696. * account[Prometheus user and group] action create (up to date),
  4697. Recipe: monitoring::prometheus,
  4698. * directory[/var/opt/gitlab/prometheus] action create,
  4699. - create new directory /var/opt/gitlab/prometheus,
  4700. - change mode from '' to '0750',
  4701. - change owner from '' to 'gitlab-prometheus',
  4702. * directory[/var/opt/gitlab/prometheus/rules] action create,
  4703. - create new directory /var/opt/gitlab/prometheus/rules,
  4704. - change mode from '' to '0750',
  4705. - change owner from '' to 'gitlab-prometheus',
  4706. * directory[/var/log/gitlab/prometheus] action create,
  4707. - create new directory /var/log/gitlab/prometheus,
  4708. - change mode from '' to '0700',
  4709. - change owner from '' to 'gitlab-prometheus',
  4710. * directory[/opt/gitlab/etc/prometheus/env] action create,
  4711. - create new directory /opt/gitlab/etc/prometheus/env,
  4712. - change mode from '' to '0700',
  4713. - change owner from '' to 'gitlab-prometheus',
  4714. * env_dir[/opt/gitlab/etc/prometheus/env] action create,
  4715. * directory[/opt/gitlab/etc/prometheus/env] action create (up to date),
  4716. * file[/opt/gitlab/etc/prometheus/env/SSL_CERT_DIR] action create,
  4717. - create new file /opt/gitlab/etc/prometheus/env/SSL_CERT_DIR,
  4718. - update content in file /opt/gitlab/etc/prometheus/env/SSL_CERT_DIR from none to 4f45cf,
  4719. - suppressed sensitive resource,
  4720. ,
  4721. * execute[reload prometheus] action nothing (skipped due to action :nothing),
  4722. * file[Prometheus config] action create,
  4723. - create new file /var/opt/gitlab/prometheus/prometheus.yml,
  4724. - update content in file /var/opt/gitlab/prometheus/prometheus.yml from none to 6be477,
  4725. --- /var/opt/gitlab/prometheus/prometheus.yml 2021-08-24 02:13:14.927758721 +0000,
  4726. +++ /var/opt/gitlab/prometheus/.chef-prometheus20210824-31-1umcjo8.yml 2021-08-24 02:13:14.927758721 +0000,
  4727. @@ -1,167 +1,334 @@,
  4728. +---,
  4729. +global:,
  4730. + scrape_interval: 15s,
  4731. + scrape_timeout: 15s,
  4732. + external_labels: {},
  4733. +remote_read: [],
  4734. +remote_write: [],
  4735. +rule_files:,
  4736. +- "/var/opt/gitlab/prometheus/rules/*.rules",
  4737. +scrape_configs:,
  4738. +- job_name: prometheus,
  4739. + static_configs:,
  4740. + - targets:,
  4741. + - localhost:9090,
  4742. +- job_name: nginx,
  4743. + static_configs:,
  4744. + - targets:,
  4745. + - localhost:8060,
  4746. +- job_name: redis,
  4747. + static_configs:,
  4748. + - targets:,
  4749. + - localhost:9121,
  4750. +- job_name: postgres,
  4751. + static_configs:,
  4752. + - targets:,
  4753. + - localhost:9187,
  4754. +- job_name: gitlab-workhorse,
  4755. + static_configs:,
  4756. + - targets:,
  4757. + - localhost:9229,
  4758. +- job_name: gitlab-rails,
  4759. + metrics_path: "/-/metrics",
  4760. + static_configs:,
  4761. + - targets:,
  4762. + - 127.0.0.1:8080,
  4763. + relabel_configs:,
  4764. + - source_labels:,
  4765. + - __address__,
  4766. + regex: 127.0.0.1:(.*),
  4767. + replacement: localhost:$1,
  4768. + target_label: instance,
  4769. +- job_name: gitlab-sidekiq,
  4770. + static_configs:,
  4771. + - targets:,
  4772. + - 127.0.0.1:8082,
  4773. + relabel_configs:,
  4774. + - source_labels:,
  4775. + - __address__,
  4776. + regex: 127.0.0.1:(.*),
  4777. + replacement: localhost:$1,
  4778. + target_label: instance,
  4779. +- job_name: gitlab_exporter_database,
  4780. + metrics_path: "/database",
  4781. + static_configs:,
  4782. + - targets:,
  4783. + - localhost:9168,
  4784. +- job_name: gitlab_exporter_sidekiq,
  4785. + metrics_path: "/sidekiq",
  4786. + static_configs:,
  4787. + - targets:,
  4788. + - localhost:9168,
  4789. +- job_name: gitlab_exporter_ruby,
  4790. + metrics_path: "/ruby",
  4791. + static_configs:,
  4792. + - targets:,
  4793. + - localhost:9168,
  4794. +- job_name: gitaly,
  4795. + static_configs:,
  4796. + - targets:,
  4797. + - localhost:9236,
  4798. +- job_name: kubernetes-cadvisor,
  4799. + scheme: https,
  4800. + tls_config:,
  4801. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
  4802. + insecure_skip_verify: true,
  4803. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token",
  4804. + kubernetes_sd_configs:,
  4805. + - role: node,
  4806. + api_server: https://kubernetes.default.svc:443,
  4807. + tls_config:,
  4808. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
  4809. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token",
  4810. + relabel_configs:,
  4811. + - action: labelmap,
  4812. + regex: __meta_kubernetes_node_label_(.+),
  4813. + - target_label: __address__,
  4814. + replacement: kubernetes.default.svc:443,
  4815. + - source_labels:,
  4816. + - __meta_kubernetes_node_name,
  4817. + regex: "(.+)",
  4818. + target_label: __metrics_path__,
  4819. + replacement: "/api/v1/nodes/${1}/proxy/metrics/cadvisor",
  4820. + metric_relabel_configs:,
  4821. + - source_labels:,
  4822. + - pod_name,
  4823. + target_label: environment,
  4824. + regex: "(.+)-.+-.+",
  4825. +- job_name: kubernetes-nodes,
  4826. + scheme: https,
  4827. + tls_config:,
  4828. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
  4829. + insecure_skip_verify: true,
  4830. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token",
  4831. + kubernetes_sd_configs:,
  4832. + - role: node,
  4833. + api_server: https://kubernetes.default.svc:443,
  4834. + tls_config:,
  4835. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
  4836. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token",
  4837. + relabel_configs:,
  4838. + - action: labelmap,
  4839. + regex: __meta_kubernetes_node_label_(.+),
  4840. + - target_label: __address__,
  4841. + replacement: kubernetes.default.svc:443,
  4842. + - source_labels:,
  4843. + - __meta_kubernetes_node_name,
  4844. + regex: "(.+)",
  4845. + target_label: __metrics_path__,
  4846. + replacement: "/api/v1/nodes/${1}/proxy/metrics",
  4847. + metric_relabel_configs:,
  4848. + - source_labels:,
  4849. + - pod_name,
  4850. + target_label: environment,
  4851. + regex: "(.+)-.+-.+",
  4852. +- job_name: kubernetes-pods,
  4853. + tls_config:,
  4854. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
  4855. + insecure_skip_verify: true,
  4856. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token",
  4857. + kubernetes_sd_configs:,
  4858. + - role: pod,
  4859. + api_server: https://kubernetes.default.svc:443,
  4860. + tls_config:,
  4861. + ca_file: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
  4862. + bearer_token_file: "/var/run/secrets/kubernetes.io/serviceaccount/token",
  4863. + relabel_configs:,
  4864. + - source_labels:,
  4865. + - __meta_kubernetes_pod_annotation_prometheus_io_scrape,
  4866. + action: keep,
  4867. + regex: 'true',
  4868. + - source_labels:,
  4869. + - __meta_kubernetes_pod_annotation_prometheus_io_path,
  4870. + action: replace,
  4871. + target_label: __metrics_path__,
  4872. + regex: "(.+)",
  4873. + - source_labels:,
  4874. + - __address__,
  4875. + - __meta_kubernetes_pod_annotation_prometheus_io_port,
  4876. + action: replace,
  4877. + regex: "([^:]+)(?::[0-9]+)?;([0-9]+)",
  4878. + replacement: "$1:$2",
  4879. + target_label: __address__,
  4880. + - action: labelmap,
  4881. + regex: __meta_kubernetes_pod_label_(.+),
  4882. + - source_labels:,
  4883. + - __meta_kubernetes_namespace,
  4884. + action: replace,
  4885. + target_label: kubernetes_namespace,
  4886. + - source_labels:,
  4887. + - __meta_kubernetes_pod_name,
  4888. + action: replace,
  4889. + target_label: kubernetes_pod_name,
  4890. +alerting:,
  4891. + alertmanagers:,
  4892. + - static_configs:,
  4893. + - targets:,
  4894. + - localhost:9093,
  4895. - change mode from '' to '0644',
  4896. - change owner from '' to 'gitlab-prometheus',
  4897. * service[prometheus] action nothing (skipped due to action :nothing),
  4898. * runit_service[prometheus] action enable,
  4899. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  4900. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  4901. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  4902. * directory[/opt/gitlab/sv/prometheus] action create,
  4903. - create new directory /opt/gitlab/sv/prometheus,
  4904. - change mode from '' to '0755',
  4905. - change owner from '' to 'root',
  4906. - change group from '' to 'root',
  4907. * template[/opt/gitlab/sv/prometheus/run] action create,
  4908. - create new file /opt/gitlab/sv/prometheus/run,
  4909. - update content in file /opt/gitlab/sv/prometheus/run from none to 60f91b,
  4910. --- /opt/gitlab/sv/prometheus/run 2021-08-24 02:13:15.047757161 +0000,
  4911. +++ /opt/gitlab/sv/prometheus/.chef-run20210824-31-11uy6xw 2021-08-24 02:13:15.047757161 +0000,
  4912. @@ -1,8 +1,16 @@,
  4913. +#!/bin/sh,
  4914. +exec 2>&1,
  4915. +,
  4916. +umask 077,
  4917. +exec chpst -P -e /opt/gitlab/etc/prometheus/env \,
  4918. + -U gitlab-prometheus:gitlab-prometheus \,
  4919. + -u gitlab-prometheus:gitlab-prometheus \,
  4920. + /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,
  4921. - change mode from '' to '0755',
  4922. - change owner from '' to 'root',
  4923. - change group from '' to 'root',
  4924. * directory[/opt/gitlab/sv/prometheus/log] action create,
  4925. - create new directory /opt/gitlab/sv/prometheus/log,
  4926. - change mode from '' to '0755',
  4927. - change owner from '' to 'root',
  4928. - change group from '' to 'root',
  4929. * directory[/opt/gitlab/sv/prometheus/log/main] action create,
  4930. - create new directory /opt/gitlab/sv/prometheus/log/main,
  4931. - change mode from '' to '0755',
  4932. - change owner from '' to 'root',
  4933. - change group from '' to 'root',
  4934. * template[/opt/gitlab/sv/prometheus/log/config] action create,
  4935. - create new file /opt/gitlab/sv/prometheus/log/config,
  4936. - update content in file /opt/gitlab/sv/prometheus/log/config from none to 623c00,
  4937. --- /opt/gitlab/sv/prometheus/log/config 2021-08-24 02:13:15.135756016 +0000,
  4938. +++ /opt/gitlab/sv/prometheus/log/.chef-config20210824-31-rqwzn 2021-08-24 02:13:15.135756016 +0000,
  4939. @@ -1,6 +1,12 @@,
  4940. +s209715200,
  4941. +n30,
  4942. +t86400,
  4943. +!gzip,
  4944. +,
  4945. +,
  4946. - change mode from '' to '0644',
  4947. - change owner from '' to 'root',
  4948. - change group from '' to 'root',
  4949. * ruby_block[verify_chown_persisted_on_prometheus] action create,
  4950. - execute the ruby block verify_chown_persisted_on_prometheus,
  4951. * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing),
  4952. * link[/var/log/gitlab/prometheus/config] action create,
  4953. - create symlink at /var/log/gitlab/prometheus/config to /opt/gitlab/sv/prometheus/log/config,
  4954. * template[/opt/gitlab/sv/prometheus/log/run] action create,
  4955. - create new file /opt/gitlab/sv/prometheus/log/run,
  4956. - update content in file /opt/gitlab/sv/prometheus/log/run from none to 072b20,
  4957. --- /opt/gitlab/sv/prometheus/log/run 2021-08-24 02:13:15.203755132 +0000,
  4958. +++ /opt/gitlab/sv/prometheus/log/.chef-run20210824-31-drbt0k 2021-08-24 02:13:15.203755132 +0000,
  4959. @@ -1,2 +1,4 @@,
  4960. +#!/bin/sh,
  4961. +exec svlogd -tt /var/log/gitlab/prometheus,
  4962. - change mode from '' to '0755',
  4963. - change owner from '' to 'root',
  4964. - change group from '' to 'root',
  4965. * directory[/opt/gitlab/sv/prometheus/env] action create,
  4966. - create new directory /opt/gitlab/sv/prometheus/env,
  4967. - change mode from '' to '0755',
  4968. - change owner from '' to 'root',
  4969. - change group from '' to 'root',
  4970. * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if),
  4971. * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if),
  4972. * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if),
  4973. * directory[/opt/gitlab/sv/prometheus/control] action create,
  4974. - create new directory /opt/gitlab/sv/prometheus/control,
  4975. - change mode from '' to '0755',
  4976. - change owner from '' to 'root',
  4977. - change group from '' to 'root',
  4978. * link[/opt/gitlab/init/prometheus] action create,
  4979. - create symlink at /opt/gitlab/init/prometheus to /opt/gitlab/embedded/bin/sv,
  4980. * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing),
  4981. * ruby_block[restart_service] action run (skipped due to only_if),
  4982. * ruby_block[reload_log_service] action create,
  4983. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  4984. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  4985. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  4986. * directory[/opt/gitlab/sv/prometheus] action create (up to date),
  4987. * template[/opt/gitlab/sv/prometheus/run] action create (up to date),
  4988. * directory[/opt/gitlab/sv/prometheus/log] action create (up to date),
  4989. * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date),
  4990. * template[/opt/gitlab/sv/prometheus/log/config] action create (up to date),
  4991. * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing),
  4992. * link[/var/log/gitlab/prometheus/config] action create (up to date),
  4993. * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date),
  4994. * directory[/opt/gitlab/sv/prometheus/env] action create (up to date),
  4995. * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if),
  4996. * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if),
  4997. * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if),
  4998. * directory[/opt/gitlab/sv/prometheus/control] action create (up to date),
  4999. * link[/opt/gitlab/init/prometheus] action create (up to date),
  5000. * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing),
  5001. * directory[/opt/gitlab/service] action create (up to date),
  5002. * link[/opt/gitlab/service/prometheus] action create,
  5003. - create symlink at /opt/gitlab/service/prometheus to /opt/gitlab/sv/prometheus,
  5004. * ruby_block[wait for prometheus service socket] action run,
  5005. - execute the ruby block wait for prometheus service socket,
  5006. - execute the ruby block reload_log_service,
  5007. * ruby_block[restart_log_service] action run,
  5008. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  5009. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  5010. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  5011. * directory[/opt/gitlab/sv/prometheus] action create (up to date),
  5012. * template[/opt/gitlab/sv/prometheus/run] action create (up to date),
  5013. * directory[/opt/gitlab/sv/prometheus/log] action create (up to date),
  5014. * directory[/opt/gitlab/sv/prometheus/log/main] action create (up to date),
  5015. * template[/opt/gitlab/sv/prometheus/log/config] action create (up to date),
  5016. * ruby_block[verify_chown_persisted_on_prometheus] action nothing (skipped due to action :nothing),
  5017. * link[/var/log/gitlab/prometheus/config] action create (up to date),
  5018. * template[/opt/gitlab/sv/prometheus/log/run] action create (up to date),
  5019. * directory[/opt/gitlab/sv/prometheus/env] action create (up to date),
  5020. * ruby_block[Delete unmanaged env files for prometheus service] action run (skipped due to only_if),
  5021. * template[/opt/gitlab/sv/prometheus/check] action create (skipped due to only_if),
  5022. * template[/opt/gitlab/sv/prometheus/finish] action create (skipped due to only_if),
  5023. * directory[/opt/gitlab/sv/prometheus/control] action create (up to date),
  5024. * link[/opt/gitlab/init/prometheus] action create (up to date),
  5025. * file[/opt/gitlab/sv/prometheus/down] action nothing (skipped due to action :nothing),
  5026. * directory[/opt/gitlab/service] action create (up to date),
  5027. * link[/opt/gitlab/service/prometheus] action create (up to date),
  5028. * ruby_block[wait for prometheus service socket] action run (skipped due to not_if),
  5029. - execute the ruby block restart_log_service,
  5030. * directory[/opt/gitlab/service] action create (up to date),
  5031. * link[/opt/gitlab/service/prometheus] action create (up to date),
  5032. * ruby_block[wait for prometheus service socket] action run (skipped due to not_if),
  5033. ,
  5034. * consul_service[prometheus] action delete,
  5035. * file[/var/opt/gitlab/consul/config.d/prometheus-service.json] action delete (up to date),
  5036. (up to date),
  5037. * execute[/opt/gitlab/bin/gitlab-ctl start prometheus] action run,
  5038. [execute] ok: run: prometheus: (pid 735) 2s,
  5039. - execute /opt/gitlab/bin/gitlab-ctl start prometheus,
  5040. * template[/var/opt/gitlab/prometheus/rules/gitlab.rules] action create,
  5041. - create new file /var/opt/gitlab/prometheus/rules/gitlab.rules,
  5042. - update content in file /var/opt/gitlab/prometheus/rules/gitlab.rules from none to a55956,
  5043. --- /var/opt/gitlab/prometheus/rules/gitlab.rules 2021-08-24 02:13:28.899577114 +0000,
  5044. +++ /var/opt/gitlab/prometheus/rules/.chef-gitlab20210824-31-u7pfy6.rules 2021-08-24 02:13:28.899577114 +0000,
  5045. @@ -1,492 +1,984 @@,
  5046. +---,
  5047. +groups:,
  5048. +- name: GitLab,
  5049. + rules:,
  5050. + - record: instance:puma_utilization:ratio,
  5051. + expr: >,
  5052. + sum by (instance) (,
  5053. + puma_active_connections,
  5054. + ) /,
  5055. + sum by (instance) (,
  5056. + puma_max_threads,
  5057. + ),
  5058. + - record: job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m,
  5059. + expr: >,
  5060. + sum by (job, route, method, code) (,
  5061. + rate(gitlab_workhorse_http_request_duration_seconds_count[5m]),
  5062. + ),
  5063. +,
  5064. + - alert: ServiceDown,
  5065. + expr: avg_over_time(up[5m]) * 100 < 50,
  5066. + annotations:,
  5067. + description: The service {{ $labels.job }} instance {{ $labels.instance }} is,
  5068. + not responding for more than 50% of the time for 5 minutes.,
  5069. + summary: The service {{ $labels.job }} is not responding,
  5070. + - alert: RedisDown,
  5071. + expr: avg_over_time(redis_up[5m]) * 100 < 50,
  5072. + annotations:,
  5073. + description: The Redis service {{ $labels.job }} instance {{ $labels.instance,
  5074. + }} is not responding for more than 50% of the time for 5 minutes.,
  5075. + summary: The Redis service {{ $labels.job }} is not responding,
  5076. + - alert: PostgresDown,
  5077. + expr: avg_over_time(pg_up[5m]) * 100 < 50,
  5078. + annotations:,
  5079. + description: The Postgres service {{ $labels.job }} instance {{ $labels.instance,
  5080. + }} is not responding for more than 50% of the time for 5 minutes.,
  5081. + summary: The Postgres service {{ $labels.job }} is not responding,
  5082. + - alert: PumaQueueing,
  5083. + expr: avg_over_time(puma_queued_connections[30m]) > 1,
  5084. + annotations:,
  5085. + description: Puma instance {{ $labels.instance }} is queueing requests with,
  5086. + an average of {{ $value | printf "%.1f" }} over the last 30 minutes.,
  5087. + summary: Puma is queueing requests,
  5088. + - alert: HighPumaUtilization,
  5089. + expr: instance:puma_utilization:ratio * 100 > 90,
  5090. + for: 60m,
  5091. + annotations:,
  5092. + description: Puma instance {{ $labels.instance }} has more than 90% thread utilization ({{ $value | printf "%.1f" }}%) over the last 60 minutes.,
  5093. + summary: Puma is has high utilization,
  5094. + - alert: SidekiqJobsQueuing,
  5095. + expr: sum by (name) (sidekiq_queue_size) > 0,
  5096. + for: 60m,
  5097. + annotations:,
  5098. + summary: Sidekiq has jobs queued,
  5099. + description: Sidekiq queue {{ $labels.name }} has {{ $value }} jobs queued for 60 minutes.,
  5100. + - alert: HighgRPCResourceExhaustedRate,
  5101. + expr: >,
  5102. + sum without (grpc_code, grpc_method, grpc_service, grpc_type) (,
  5103. + rate(grpc_server_handled_total{grpc_code="ResourceExhausted"}[5m]),
  5104. + ) /,
  5105. + sum without (grpc_code, grpc_method, grpc_service, grpc_type) (,
  5106. + rate(grpc_server_handled_total[5m]),
  5107. + ) * 100 > 1,
  5108. + for: 60m,
  5109. + annotations:,
  5110. + summary: High gRPC ResourceExhausted error rate,
  5111. + description: Job {{ $labels.job }} instance {{ $labels.instance }} gRPC is returning more than 1% ({{ $value | printf "%.1f" }}%) ResourceExhausted errors over the last 60 minutes.,
  5112. + - alert: PostgresDatabaseDeadlocks,
  5113. + expr: increase(pg_stat_database_deadlocks[5m]) > 0,
  5114. + annotations:,
  5115. + summary: Postgres database has deadlocks,
  5116. + description: Postgres database {{ $labels.instance }} had {{ $value | printf "%d" }} deadlocks in the last 5 minutes.,
  5117. + - alert: PostgresDatabaseDeadlockCancels,
  5118. + expr: increase(pg_stat_database_deadlocks[5m]) > 0,
  5119. + annotations:,
  5120. + summary: Postgres database has queries canceled due to deadlocks,
  5121. + description: Postgres database {{ $labels.instance }} had {{ $value | printf "%d" }} queries canceled due to deadlocks in the last 5 minutes.,
  5122. + # Low-traffic - < 10 QPS (600 RPM),
  5123. + - alert: WorkhorseHighErrorRate,
  5124. + expr: >,
  5125. + (,
  5126. + sum without (job, code) (,
  5127. + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m{code=~"5.."},
  5128. + ) /,
  5129. + sum without (job,code) (,
  5130. + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m,
  5131. + ) < 10,
  5132. + ) * 100 > 50,
  5133. + annotations:,
  5134. + summary: Workhorse has high error rates,
  5135. + description: Workhorse route {{ $labels.route }} method {{ $labels.method }} has more than 50% errors ({{ $value | printf "%.1f" }}%) for the last 60 minutes.,
  5136. + # High-traffic - >= 10 QPS (600 RPM),
  5137. + - alert: WorkhorseHighErrorRate,
  5138. + expr: >,
  5139. + (,
  5140. + sum without (job, code) (,
  5141. + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m{code=~"5.."},
  5142. + ) /,
  5143. + sum without (job,code) (,
  5144. + job_route_method_code:gitlab_workhorse_http_request_duration_seconds_count:rate5m,
  5145. + ) > 10,
  5146. + ) * 100 > 10,
  5147. + annotations:,
  5148. + summary: Workhorse has high error rates,
  5149. + description: Workhorse route {{ $labels.route }} method {{ $labels.method }} has more than 10% errors ({{ $value | printf "%.1f" }}%) for the last 60 minutes.,
  5150. +,
  5151. +###,
  5152. +# These metrics are top-level GitLab Service Level Indicators (SLIs). They can,
  5153. +# be used to monitor the overall health of a GitLab instance.,
  5154. +- name: Service Level Indicators,
  5155. + interval: 30s,
  5156. + rules:,
  5157. + # Service availability.,
  5158. + - record: gitlab_sli:job:availability:ratio,
  5159. + expr: >,
  5160. + avg by (job) (,
  5161. + avg_over_time(up[30s]),
  5162. + ),
  5163. + # Rails worker/thread capacity.,
  5164. + - record: gitlab_sli:rails_active_connections:avg30s,
  5165. + expr: >,
  5166. + sum(avg_over_time(puma_active_connections[30s])),
  5167. + - record: gitlab_sli:rails_queued_connections:avg30s,
  5168. + expr: >,
  5169. + sum(avg_over_time(puma_queued_connections[30s])),
  5170. + - record: gitlab_sli:rails_active_connections:max30s,
  5171. + expr: >,
  5172. + sum(max_over_time(puma_active_connections[30s])),
  5173. + - record: gitlab_sli:rails_queued_connections:max30s,
  5174. + expr: >,
  5175. + sum(max_over_time(puma_queued_connections[30s])),
  5176. + - record: gitlab_sli:rails_workers:avg30s,
  5177. + expr: >,
  5178. + count(avg_over_time(ruby_memory_bytes[30s])) or,
  5179. + sum(avg_over_time(puma_max_threads[30s])),
  5180. + # Redis CPU use.,
  5181. + - record: gitlab_sli:redis_cpu_seconds:rate1m,
  5182. + expr: >,
  5183. + (sum(rate(redis_used_cpu_sys[1m])) + sum(rate(redis_used_cpu_user[1m]))) or,
  5184. + (sum(rate(redis_cpu_sys_seconds_total[1m])) + sum(rate(redis_cpu_user_seconds_total[1m]))),
  5185. + # Workhorse traffic.,
  5186. + - record: gitlab_sli:code_method_route:workhorse_http_request_count:rate1m,
  5187. + expr: >,
  5188. + sum by (code,method,route) (,
  5189. + rate(gitlab_workhorse_http_request_duration_seconds_count[1m]),
  5190. + ),
  5191. + - record: gitlab_sli:code_method_route:workhorse_http_request_duration_seconds:rate1m,
  5192. + expr: >,
  5193. + sum by (code,method,route) (,
  5194. + rate(gitlab_workhorse_http_request_duration_seconds_sum[1m]),
  5195. + ),
  5196. +# SLI - Apdex,
  5197. +- name: Service Level Indicators - Apdex,
  5198. + interval: 1m,
  5199. + rules:,
  5200. + # Gitaly goserver,
  5201. + # Satisfied -> 0.5 seconds,
  5202. + # Acceptable -> 1 seconds,
  5203. + - record: gitlab_sli:gitlab_component_apdex:ratio,
  5204. + labels:,
  5205. + job: gitaly,
  5206. + expr: >,
  5207. + (,
  5208. + 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])),
  5209. + +,
  5210. + 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])),
  5211. + ),
  5212. + /,
  5213. + 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])),
  5214. + # Sidekiq TODO: https://gitlab.com/gitlab-org/gitlab-foss/issues/56752,
  5215. + # - record: gitlab_sli:gitlab_component_apdex:ratio,
  5216. + # labels:,
  5217. + # job: gitlab-sidekiq,
  5218. + # expr: >,
  5219. + # (,
  5220. + # sum(rate(sidekiq_jobs_completion_time_seconds_bucket{le="25"}[1m])),
  5221. + # +,
  5222. + # sum(rate(sidekiq_jobs_completion_time_seconds_bucket{le="50"}[1m])),
  5223. + # ),
  5224. + # / 2,
  5225. + # /,
  5226. + # sum(rate(sidekiq_jobs_completion_time_seconds_count[1m])),
  5227. +,
  5228. + # Workhorse,
  5229. + # Satisfied -> 1 seconds,
  5230. + # Acceptable -> 10 seconds,
  5231. + - record: gitlab_sli:gitlab_component_apdex:ratio,
  5232. + labels:,
  5233. + job: gitlab-workhorse,
  5234. + expr: >,
  5235. + (,
  5236. + sum(rate(gitlab_workhorse_http_request_duration_seconds_bucket{le="1",route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m])),
  5237. + +,
  5238. + sum(rate(gitlab_workhorse_http_request_duration_seconds_bucket{le="10",route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m])),
  5239. + ),
  5240. + /,
  5241. + 2 / sum(rate(gitlab_workhorse_http_request_duration_seconds_count{route!="^/([^/]+/){1,}[^/]+/uploads\\z",route!="^/api/v4/jobs/request\\z"}[1m])),
  5242. +,
  5243. +# SLI - Errors,
  5244. +- name: Service Level Indicators - Errors,
  5245. + interval: 1m,
  5246. + rules:,
  5247. + # PostgreSQL,
  5248. + - record: gitlab_sli:gitlab_component_ops:rate,
  5249. + labels:,
  5250. + job: postgres,
  5251. + expr: >,
  5252. + sum(rate(pg_stat_database_xact_commit[1m])) +,
  5253. + sum(rate(pg_stat_database_xact_rollback[1m])),
  5254. + - record: gitlab_sli:gitlab_component_errors:rate,
  5255. + labels:,
  5256. + job: postgres,
  5257. + expr: sum(rate(pg_stat_database_xact_rollback[1m])),
  5258. + # Rails (Puma),
  5259. + - record: gitlab_sli:gitlab_component_ops:rate,
  5260. + labels:,
  5261. + job: gitlab-rails,
  5262. + expr: >,
  5263. + sum(,
  5264. + rate(http_request_duration_seconds_count{job="gitlab-rails"}[1m]),
  5265. + ),
  5266. + - record: gitlab_sli:gitlab_component_errors:rate,
  5267. + labels:,
  5268. + job: gitlab-rails,
  5269. + expr: >,
  5270. + sum(,
  5271. + rate(http_request_duration_seconds_count{job="gitlab-rails",status=~"5.."}[1m]),
  5272. + ),
  5273. + # Sidekiq TODO: https://gitlab.com/gitlab-org/gitlab-foss/issues/56752,
  5274. + # - record: gitlab_sli:gitlab_component_ops:rate,
  5275. + # labels:,
  5276. + # job: gitlab-sidekiq,
  5277. + # expr: >,
  5278. + # sum (,
  5279. + # rate(sidekiq_jobs_started_total{job="gitlab-sidekiq"}[1m]),
  5280. + # ),
  5281. + # - record: gitlab_sli:gitlab_component_errors:rate,
  5282. + # labels:,
  5283. + # job: gitlab-sidekiq,
  5284. + # expr: >,
  5285. + # sum (,
  5286. + # rate(sidekiq_jobs_failed_total{job="gitlab-sidekiq"}[1m]),
  5287. + # ),
  5288. + # Workhorse,
  5289. + - record: gitlab_sli:gitlab_component_ops:rate,
  5290. + labels:,
  5291. + job: gitlab-workhorse,
  5292. + expr: >,
  5293. + sum(,
  5294. + rate(gitlab_workhorse_http_requests_total{job="gitlab-workhorse"}[1m]),
  5295. + ),
  5296. + - record: gitlab_sli:gitlab_component_errors:rate,
  5297. + labels:,
  5298. + job: gitlab-workhorse,
  5299. + expr: >,
  5300. + sum(,
  5301. + rate(gitlab_workhorse_http_requests_total{job="gitlab-workhorse",code=~"5.."}[1m]),
  5302. + ),
  5303. + ###,
  5304. + # Calculate service error ratios,
  5305. + - record: gitlab_sli:gitlab_component_errors:ratio,
  5306. + expr: >,
  5307. + gitlab_sli:gitlab_component_errors:rate /,
  5308. + gitlab_sli:gitlab_component_ops:rate,
  5309. +,
  5310. +- name: GitLab Saturation Ratios,
  5311. + interval: 1m,
  5312. + rules:,
  5313. + # type: *, component: cpu,
  5314. + # this measures average CPU across all the cores for the entire fleet for the given service,
  5315. + - record: gitlab_sli:gitlab_component_saturation:ratio,
  5316. + labels:,
  5317. + component: 'cpu',
  5318. + expr: >,
  5319. + avg(1 - rate(node_cpu_seconds_total{mode="idle"}[1m])),
  5320. +,
  5321. + # type: *, component: single_node_cpu,
  5322. + # this measures the maximum cpu availability across all the codes on a single server,
  5323. + # this can be helpful if CPU is not even distributed across the fleet.,
  5324. + - record: gitlab_sli:gitlab_component_saturation:ratio,
  5325. + labels:,
  5326. + component: 'single_node_cpu',
  5327. + expr: >,
  5328. + max(,
  5329. + avg(1 - rate(node_cpu_seconds_total{mode="idle"}[1m])),
  5330. + ),
  5331. +,
  5332. + - record: gitlab_sli:gitlab_component_saturation:ratio,
  5333. + labels:,
  5334. + component: 'disk_space',
  5335. + expr: >,
  5336. + max(,
  5337. + (,
  5338. + (,
  5339. + node_filesystem_size_bytes{fstype=~"ext.|xfs|nfs.?"},
  5340. + -,
  5341. + node_filesystem_free_bytes{fstype=~"ext.|xfs|nfs.?"},
  5342. + ),
  5343. + /,
  5344. + node_filesystem_size_bytes{fstype=~"ext.|xfs|nfs.?"},
  5345. + ),
  5346. + ),
  5347. +,
  5348. + - record: gitlab_sli:gitlab_component_saturation:ratio,
  5349. + labels:,
  5350. + component: 'memory',
  5351. + expr: max (instance:node_memory_utilization:ratio),
  5352. +,
  5353. + - record: gitlab_sli:gitlab_component_saturation:ratio,
  5354. + labels:,
  5355. + component: 'single_threaded_cpu',
  5356. + expr: >,
  5357. + clamp_max(,
  5358. + max (,
  5359. + (rate(redis_cpu_user_seconds_total[1m]) + rate(redis_cpu_sys_seconds_total[1m])) or,
  5360. + (rate(redis_used_cpu_user[1m]) + rate(redis_used_cpu_sys[1m])),
  5361. + ),,
  5362. + 1,
  5363. + ),
  5364. +,
  5365. + - record: gitlab_sli:gitlab_component_saturation:ratio,
  5366. + labels:,
  5367. + component: 'connection_pool',
  5368. + expr: >,
  5369. + clamp_max(,
  5370. + max(,
  5371. + max_over_time(pgbouncer_pools_server_active_connections{user="gitlab"}[1m]) /,
  5372. + (,
  5373. + (,
  5374. + pgbouncer_pools_server_idle_connections{user="gitlab"} +,
  5375. + pgbouncer_pools_server_active_connections{user="gitlab"} +,
  5376. + pgbouncer_pools_server_testing_connections{user="gitlab"} +,
  5377. + pgbouncer_pools_server_used_connections{user="gitlab"} +,
  5378. + pgbouncer_pools_server_login_connections{user="gitlab"},
  5379. + ),
  5380. + > 0,
  5381. + ),
  5382. + ), 1),
  5383. +,
  5384. + # type: postgres-delayed, postgres-archive, patroni,
  5385. + - record: gitlab_sli:gitlab_component_saturation:ratio,
  5386. + labels:,
  5387. + component: 'active_db_connections',
  5388. + expr: >,
  5389. + clamp_max(,
  5390. + max(,
  5391. + sum without(state) (pg_stat_activity_count{datname="gitlabhq_production", state!="idle"}),
  5392. + /,
  5393. + (sum without(state) (pg_stat_activity_count{datname="gitlabhq_production"}) > 0),
  5394. + ), 1),
  5395. +,
  5396. + # type: redis, redis-cache, component: redis_clients,
  5397. + # Records the saturation of redis client connections against a redis fleet,
  5398. + - record: gitlab_sli:gitlab_component_saturation:ratio,
  5399. + labels:,
  5400. + component: 'redis_clients',
  5401. + expr: >,
  5402. + max(,
  5403. + max_over_time(redis_connected_clients[1m]),
  5404. + /,
  5405. + redis_config_maxclients,
  5406. + ),
  5407. +,
  5408. + # Aggregate over all components within a service using max,
  5409. + - record: gitlab_sli:gitlab_service_saturation:ratio,
  5410. + expr: >,
  5411. + max by (component) (gitlab_sli:gitlab_component_saturation:ratio),
  5412. +,
  5413. + # Calculate the "sapdex" - the saturation apdex for the metric. 1 < less then soft limit, 0.5 < hard limit, else 0,
  5414. + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex,
  5415. + expr: >,
  5416. + clamp_min(gitlab_sli:gitlab_component_saturation:ratio <= on(component) group_left slo:max:soft:gitlab_sli:gitlab_component_saturation:ratio, 1),
  5417. + or,
  5418. + 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),
  5419. + or,
  5420. + clamp_max(gitlab_sli:gitlab_component_saturation:ratio > on(component) group_left slo:max:hard:gitlab_sli:gitlab_component_saturation:ratio, 0),
  5421. +,
  5422. + # Open file descriptors,
  5423. + - record: gitlab_sli:gitlab_component_saturation:ratio,
  5424. + labels:,
  5425. + component: 'open_fds',
  5426. + expr: >,
  5427. + max(,
  5428. + max_over_time(process_open_fds[1m]),
  5429. + /,
  5430. + max_over_time(process_max_fds[1m]),
  5431. + ),
  5432. + - record: gitlab_sli:gitlab_component_saturation:ratio,
  5433. + labels:,
  5434. + component: 'open_ruby_fds',
  5435. + expr: >,
  5436. + max(,
  5437. + max_over_time(ruby_file_descriptors[1m]),
  5438. + /,
  5439. + max_over_time(ruby_process_max_fds[1m]),
  5440. + ),
  5441. +,
  5442. +# Unlike other service metrics, we record the stats for each component independently,
  5443. +- name: GitLab Saturation Ratios Stats,
  5444. + interval: 5m,
  5445. + rules:,
  5446. + # Average values for each service, over a week,
  5447. + - record: gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w,
  5448. + expr: >,
  5449. + avg_over_time(gitlab_sli:gitlab_component_saturation:ratio[1w]),
  5450. +,
  5451. + # Using linear week-on-week growth, what prediction to we have for 2w from now?,
  5452. + - record: gitlab_sli:gitlab_component_saturation:ratio:predict_linear_2w,
  5453. + expr: >,
  5454. + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w[1w], 86400 * 14),
  5455. +,
  5456. + # Using linear week-on-week growth, what prediction to we have for 30d from now?,
  5457. + - record: gitlab_sli:gitlab_component_saturation:ratio:predict_linear_30d,
  5458. + expr: >,
  5459. + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:avg_over_time_1w[1w], 86400 * 30),
  5460. +,
  5461. + # Sapdex, average for week,
  5462. + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w,
  5463. + expr: >,
  5464. + avg_over_time(gitlab_sli:gitlab_component_saturation:ratio:sapdex[1w]),
  5465. +,
  5466. + # Sapdex long term trend forecasting,
  5467. + # Using linear week-on-week growth, what prediction to we have for 30d from now?,
  5468. + - record: gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w:predict_linear_30d,
  5469. + expr: >,
  5470. + predict_linear(gitlab_sli:gitlab_component_saturation:ratio:sapdex:avg_over_time_1w[1w], 86400 * 30),
  5471. +,
  5472. +###,
  5473. +# Metrics used by Usage Ping reports. These are primarily for self-managed installations.,
  5474. +# See https://docs.gitlab.com/ee/development/telemetry/usage_ping.html#prometheus-queries,
  5475. +#,
  5476. +- name: GitLab Usage Ping,
  5477. + interval: 5m,
  5478. + rules:,
  5479. + ###,
  5480. + # Application wide metrics,
  5481. + #,
  5482. + - record: gitlab_usage_ping:ops:rate5m,
  5483. + labels:,
  5484. + service: workhorse,
  5485. + component: http_requests,
  5486. + expr: sum (rate (gitlab_workhorse_http_requests_total[5m])),
  5487. +,
  5488. + # Database Primary Performance Indicator: Query apdex,
  5489. + # Target -> 100ms,
  5490. + # Tolerable -> 250ms,
  5491. + - record: gitlab_usage_ping:sql_duration_apdex:ratio_rate5m,
  5492. + expr: >,
  5493. + (,
  5494. + sum(rate(gitlab_sql_duration_seconds_bucket{le="0.1"}[5m])),
  5495. + +,
  5496. + sum(rate(gitlab_sql_duration_seconds_bucket{le="0.25"}[5m])),
  5497. + ),
  5498. + /,
  5499. + 2,
  5500. + /,
  5501. + (,
  5502. + sum(rate(gitlab_sql_duration_seconds_count[5m])) > 0,
  5503. + ),
  5504. +,
  5505. + - record: gitlab_usage_ping:gitaly_apdex:ratio_avg_over_time_5m,
  5506. + expr: avg_over_time(gitlab_sli:gitlab_component_apdex:ratio{job="gitaly"}[5m]),
  5507. +,
  5508. + ###,
  5509. + # Node level metrics,
  5510. + #,
  5511. + - record: gitlab_usage_ping:node_cpus:count,
  5512. + expr: max (instance:node_cpus:count) by (instance),
  5513. + - record: gitlab_usage_ping:node_memory_total_bytes:max,
  5514. + expr: max (node_memory_MemTotal_bytes) by (instance),
  5515. + - record: gitlab_usage_ping:node_cpu_utilization:avg,
  5516. + expr: avg (instance:node_cpu_utilization:ratio) by (instance),
  5517. + - record: gitlab_usage_ping:node_memory_utilization:avg,
  5518. + expr: avg (instance:node_memory_utilization:ratio) by (instance),
  5519. +,
  5520. + ###,
  5521. + # Service level metrics,
  5522. + #,
  5523. + - record: gitlab_usage_ping:node_service_process_resident_memory_bytes:avg,
  5524. + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_resident_memory_bytes", job != "gitlab_exporter_process"}),
  5525. + - record: gitlab_usage_ping:node_service_process_unique_memory_bytes:avg,
  5526. + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_unique_memory_bytes", job != "gitlab_exporter_process"}),
  5527. + - record: gitlab_usage_ping:node_service_process_proportional_memory_bytes:avg,
  5528. + expr: avg by (instance, job) ({__name__ =~ "(ruby_){0,1}process_proportional_memory_bytes", job != "gitlab_exporter_process"}),
  5529. + - record: gitlab_usage_ping:node_service_process:count,
  5530. + expr: >,
  5531. + count by (instance, job) (,
  5532. + {__name__ =~ "(ruby_){0,1}process_start_time_seconds", job != "gitlab_exporter_process"},
  5533. + ),
  5534. + - record: gitlab_usage_ping:node_service_app_server_workers:sum,
  5535. + labels:,
  5536. + server: puma,
  5537. + expr: sum by (instance, job) (puma_workers),
  5538. - change mode from '' to '0644',
  5539. - change owner from '' to 'gitlab-prometheus',
  5540. * template[/var/opt/gitlab/prometheus/rules/node.rules] action create,
  5541. - create new file /var/opt/gitlab/prometheus/rules/node.rules,
  5542. - update content in file /var/opt/gitlab/prometheus/rules/node.rules from none to bea78d,
  5543. --- /var/opt/gitlab/prometheus/rules/node.rules 2021-08-24 02:13:29.107574412 +0000,
  5544. +++ /var/opt/gitlab/prometheus/rules/.chef-node20210824-31-1t0d8bf.rules 2021-08-24 02:13:29.107574412 +0000,
  5545. @@ -1,42 +1,84 @@,
  5546. +groups:,
  5547. +- name: Node,
  5548. + rules:,
  5549. + - record: instance:node_cpus:count,
  5550. + expr: count without(cpu, mode) (node_cpu{mode="idle"}),
  5551. + - record: instance:node_cpus:count,
  5552. + expr: count without(cpu, mode) (node_cpu_seconds_total{mode="idle"}),
  5553. + - record: instance_cpu:node_cpu_seconds_not_idle:rate5m,
  5554. + expr: sum without(mode) (rate(node_cpu{mode!="idle"}[5m])),
  5555. + - record: instance_cpu:node_cpu_seconds_not_idle:rate5m,
  5556. + expr: sum without(mode) (rate(node_cpu_seconds_total{mode!="idle"}[5m])),
  5557. + - record: instance_mode:node_cpu_seconds:rate5m,
  5558. + expr: sum without(cpu) (rate(node_cpu[5m])),
  5559. + - record: instance_mode:node_cpu_seconds:rate5m,
  5560. + expr: sum without(cpu) (rate(node_cpu_seconds_total[5m])),
  5561. + - record: instance:node_cpu_utilization:ratio,
  5562. + expr: sum without(mode) (instance_mode:node_cpu_seconds:rate5m{mode!="idle"}),
  5563. + / instance:node_cpus:count,
  5564. + - record: instance:node_memory_utilization:ratio,
  5565. + expr: >,
  5566. + 1 - (,
  5567. + node_memory_MemAvailable_bytes or,
  5568. + (node_memory_MemFree_bytes + node_memory_Buffers_bytes + node_memory_Cached_bytes),
  5569. + ) / node_memory_MemTotal_bytes,
  5570. + - record: instance:node_filesystem_avail:ratio,
  5571. + expr: node_filesystem_avail_bytes / (node_filesystem_size_bytes > 0),
  5572. + - alert: FilesystemAlmostFull,
  5573. + expr: instance:node_filesystem_avail:ratio * 100 < 5 and node_filesystem_avail_bytes < 10 * 1024 * 1024 * 1024,
  5574. + for: 10m,
  5575. + annotations:,
  5576. + description: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} on,
  5577. + {{ $labels.instance }} has {{ $value | printf "%.2f" }}% space available.,
  5578. + summary: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} is almost,
  5579. + full,
  5580. + - alert: FilesystemFullIn1Day,
  5581. + expr: predict_linear(node_filesystem_avail_bytes[6h], 24 * 3600) < 0,
  5582. + for: 30m,
  5583. + annotations:,
  5584. + description: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} on,
  5585. + {{ $labels.instance }} will be full in the next 24 hours.,
  5586. + summary: The filesystem {{ $labels.device }}:{{ $labels.mountpoint }} will be,
  5587. + full within 24 hours,
  5588. - change mode from '' to '0644',
  5589. - change owner from '' to 'gitlab-prometheus',
  5590. Recipe: monitoring::alertmanager,
  5591. * directory[/var/opt/gitlab/alertmanager] action create,
  5592. - create new directory /var/opt/gitlab/alertmanager,
  5593. - change mode from '' to '0750',
  5594. - change owner from '' to 'gitlab-prometheus',
  5595. * directory[/var/log/gitlab/alertmanager] action create,
  5596. - create new directory /var/log/gitlab/alertmanager,
  5597. - change mode from '' to '0700',
  5598. - change owner from '' to 'gitlab-prometheus',
  5599. * directory[/opt/gitlab/etc/alertmanager/env] action create,
  5600. - create new directory /opt/gitlab/etc/alertmanager/env,
  5601. - change mode from '' to '0700',
  5602. - change owner from '' to 'gitlab-prometheus',
  5603. * env_dir[/opt/gitlab/etc/alertmanager/env] action create,
  5604. * directory[/opt/gitlab/etc/alertmanager/env] action create (up to date),
  5605. * file[/opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR] action create,
  5606. - create new file /opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR,
  5607. - update content in file /opt/gitlab/etc/alertmanager/env/SSL_CERT_DIR from none to 4f45cf,
  5608. - suppressed sensitive resource,
  5609. ,
  5610. * file[Alertmanager config] action create,
  5611. - create new file /var/opt/gitlab/alertmanager/alertmanager.yml,
  5612. - update content in file /var/opt/gitlab/alertmanager/alertmanager.yml from none to 21b7be,
  5613. --- /var/opt/gitlab/alertmanager/alertmanager.yml 2021-08-24 02:13:29.259572437 +0000,
  5614. +++ /var/opt/gitlab/alertmanager/.chef-alertmanager20210824-31-17k2fjf.yml 2021-08-24 02:13:29.259572437 +0000,
  5615. @@ -1,9 +1,18 @@,
  5616. +---,
  5617. +global: {},
  5618. +templates: [],
  5619. +route:,
  5620. + receiver: default-receiver,
  5621. + routes: [],
  5622. +receivers:,
  5623. +- name: default-receiver,
  5624. +inhibit_rules: [],
  5625. - change mode from '' to '0644',
  5626. - change owner from '' to 'gitlab-prometheus',
  5627. * service[alertmanager] action nothing (skipped due to action :nothing),
  5628. * runit_service[alertmanager] action enable,
  5629. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  5630. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  5631. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  5632. * directory[/opt/gitlab/sv/alertmanager] action create,
  5633. - create new directory /opt/gitlab/sv/alertmanager,
  5634. - change mode from '' to '0755',
  5635. - change owner from '' to 'root',
  5636. - change group from '' to 'root',
  5637. * template[/opt/gitlab/sv/alertmanager/run] action create,
  5638. - create new file /opt/gitlab/sv/alertmanager/run,
  5639. - update content in file /opt/gitlab/sv/alertmanager/run from none to 36da8b,
  5640. --- /opt/gitlab/sv/alertmanager/run 2021-08-24 02:13:29.367571034 +0000,
  5641. +++ /opt/gitlab/sv/alertmanager/.chef-run20210824-31-n2k8iy 2021-08-24 02:13:29.363571086 +0000,
  5642. @@ -1,8 +1,16 @@,
  5643. +#!/bin/sh,
  5644. +exec 2>&1,
  5645. +,
  5646. +umask 077,
  5647. +exec chpst -P -e /opt/gitlab/etc/alertmanager/env \,
  5648. + -U gitlab-prometheus:gitlab-prometheus \,
  5649. + -u gitlab-prometheus:gitlab-prometheus \,
  5650. + /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,
  5651. - change mode from '' to '0755',
  5652. - change owner from '' to 'root',
  5653. - change group from '' to 'root',
  5654. * directory[/opt/gitlab/sv/alertmanager/log] action create,
  5655. - create new directory /opt/gitlab/sv/alertmanager/log,
  5656. - change mode from '' to '0755',
  5657. - change owner from '' to 'root',
  5658. - change group from '' to 'root',
  5659. * directory[/opt/gitlab/sv/alertmanager/log/main] action create,
  5660. - create new directory /opt/gitlab/sv/alertmanager/log/main,
  5661. - change mode from '' to '0755',
  5662. - change owner from '' to 'root',
  5663. - change group from '' to 'root',
  5664. * template[/opt/gitlab/sv/alertmanager/log/config] action create,
  5665. - create new file /opt/gitlab/sv/alertmanager/log/config,
  5666. - update content in file /opt/gitlab/sv/alertmanager/log/config from none to 623c00,
  5667. --- /opt/gitlab/sv/alertmanager/log/config 2021-08-24 02:13:29.459569838 +0000,
  5668. +++ /opt/gitlab/sv/alertmanager/log/.chef-config20210824-31-k4p2s6 2021-08-24 02:13:29.459569838 +0000,
  5669. @@ -1,6 +1,12 @@,
  5670. +s209715200,
  5671. +n30,
  5672. +t86400,
  5673. +!gzip,
  5674. +,
  5675. +,
  5676. - change mode from '' to '0644',
  5677. - change owner from '' to 'root',
  5678. - change group from '' to 'root',
  5679. * ruby_block[verify_chown_persisted_on_alertmanager] action create,
  5680. - execute the ruby block verify_chown_persisted_on_alertmanager,
  5681. * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing),
  5682. * link[/var/log/gitlab/alertmanager/config] action create,
  5683. - create symlink at /var/log/gitlab/alertmanager/config to /opt/gitlab/sv/alertmanager/log/config,
  5684. * template[/opt/gitlab/sv/alertmanager/log/run] action create,
  5685. - create new file /opt/gitlab/sv/alertmanager/log/run,
  5686. - update content in file /opt/gitlab/sv/alertmanager/log/run from none to 2feab9,
  5687. --- /opt/gitlab/sv/alertmanager/log/run 2021-08-24 02:13:29.531568903 +0000,
  5688. +++ /opt/gitlab/sv/alertmanager/log/.chef-run20210824-31-kvpj8u 2021-08-24 02:13:29.531568903 +0000,
  5689. @@ -1,2 +1,4 @@,
  5690. +#!/bin/sh,
  5691. +exec svlogd -tt /var/log/gitlab/alertmanager,
  5692. - change mode from '' to '0755',
  5693. - change owner from '' to 'root',
  5694. - change group from '' to 'root',
  5695. * directory[/opt/gitlab/sv/alertmanager/env] action create,
  5696. - create new directory /opt/gitlab/sv/alertmanager/env,
  5697. - change mode from '' to '0755',
  5698. - change owner from '' to 'root',
  5699. - change group from '' to 'root',
  5700. * ruby_block[Delete unmanaged env files for alertmanager service] action run (skipped due to only_if),
  5701. * template[/opt/gitlab/sv/alertmanager/check] action create (skipped due to only_if),
  5702. * template[/opt/gitlab/sv/alertmanager/finish] action create (skipped due to only_if),
  5703. * directory[/opt/gitlab/sv/alertmanager/control] action create,
  5704. - create new directory /opt/gitlab/sv/alertmanager/control,
  5705. - change mode from '' to '0755',
  5706. - change owner from '' to 'root',
  5707. - change group from '' to 'root',
  5708. * link[/opt/gitlab/init/alertmanager] action create,
  5709. - create symlink at /opt/gitlab/init/alertmanager to /opt/gitlab/embedded/bin/sv,
  5710. * file[/opt/gitlab/sv/alertmanager/down] action nothing (skipped due to action :nothing),
  5711. * ruby_block[restart_service] action run (skipped due to only_if),
  5712. * ruby_block[reload_log_service] action create,
  5713. * ruby_block[restart_service] action nothing (skipped due to action :nothing),
  5714. * ruby_block[restart_log_service] action nothing (skipped due to action :nothing),
  5715. * ruby_block[reload_log_service] action nothing (skipped due to action :nothing),
  5716. * directory[/opt/gitlab/sv/alertmanager] action create (up to date),
  5717. * template[/opt/gitlab/sv/alertmanager/run] action create (up to date),
  5718. * directory[/opt/gitlab/sv/alertmanager/log] action create (up to date),
  5719. * directory[/opt/gitlab/sv/alertmanager/log/main] action create (up to date),
  5720. * template[/opt/gitlab/sv/alertmanager/log/config] action create (up to date),
  5721. * ruby_block[verify_chown_persisted_on_alertmanager] action nothing (skipped due to action :nothing),
  5722. * link[/var/log/gitlab/alertmanager/config] action create (up to date),
  5723. * template[/opt/gitlab/sv/alertmanager/log/run] action create
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement