Skip to content
This repository was archived by the owner on Dec 21, 2022. It is now read-only.

PMM-5885 upgrade postgres to 14#212

Merged
nikita-b merged 46 commits intomainfrom
PMM-5885-upgrade-postgres-to-14
Jul 19, 2022
Merged

PMM-5885 upgrade postgres to 14#212
nikita-b merged 46 commits intomainfrom
PMM-5885-upgrade-postgres-to-14

Conversation

@nikita-b
Copy link
Copy Markdown
Contributor

@nikita-b nikita-b commented May 11, 2022

@codecov
Copy link
Copy Markdown

codecov bot commented May 19, 2022

Codecov Report

Merging #212 (8a6f63f) into main (cd99f51) will decrease coverage by 1.88%.
The diff coverage is n/a.

❗ Current head 8a6f63f differs from pull request most recent head 3e1bab3. Consider uploading reports for the commit 3e1bab3 to get more accurate results

@@            Coverage Diff             @@
##             main     #212      +/-   ##
==========================================
- Coverage   49.05%   47.16%   -1.89%     
==========================================
  Files           5        5              
  Lines         318      318              
==========================================
- Hits          156      150       -6     
- Misses        143      148       +5     
- Partials       19       20       +1     
Flag Coverage Δ
runcover 47.16% <ø> (-1.89%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/yum/yum.go 57.14% <0.00%> (-7.15%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd99f51...3e1bab3. Read the comment docs.

@nikita-b nikita-b requested a review from ademidoff May 19, 2022 06:49
@nikita-b nikita-b marked this pull request as ready for review May 19, 2022 06:50
@nikita-b nikita-b requested a review from BupycHuk as a code owner May 19, 2022 06:50
@ademidoff
Copy link
Copy Markdown
Member

ademidoff commented May 19, 2022

@nikita-b We also need to update the logic for <pmm-server/logs.zip endpoint, since it exports postgres logs as well.

The links:

  1. https://github.com/percona/pmm-managed/blob/main/api-tests/server/logs_test.go#L69
  2. https://github.com/percona/pmm-managed/blob/main/services/supervisord/logs_test.go#L57

nikita-b and others added 6 commits May 19, 2022 16:08
Co-authored-by: Alex Tymchuk <alexander.tymchuk@gmail.com>
Co-authored-by: Alex Tymchuk <alexander.tymchuk@gmail.com>
Co-authored-by: Alex Tymchuk <alexander.tymchuk@gmail.com>
Co-authored-by: Alex Tymchuk <alexander.tymchuk@gmail.com>
Co-authored-by: Alex Tymchuk <alexander.tymchuk@gmail.com>
@nikita-b
Copy link
Copy Markdown
Contributor Author

@nikita-b nikita-b marked this pull request as draft June 8, 2022 07:51
@nikita-b nikita-b marked this pull request as ready for review June 14, 2022 09:28
stdout_logfile = /srv/logs/pmm-update-perform.log
stdout_logfile_maxbytes = 50MB
stdout_logfile_backups = 3
redirect_stderr = true
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was moved from pmm-server package

- name: Upgrade Postgres database
include_role:
name: postgres-ascii-to-utf8
when: "'SQL_ASCII' == postgres_encoding.query_result[0].server_encoding"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this role because we use new instance and this instance has UTF8 by default

- percona-postgresql11
- python-psycopg2
state: installed
when: not ansible_check_mode
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need old postgres for migration

section: supervisord
state: absent
when: not is_docker

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was migrated from pmm-server repo and package

@nikita-b nikita-b merged commit 86cfe1b into main Jul 19, 2022
@nikita-b nikita-b deleted the PMM-5885-upgrade-postgres-to-14 branch July 19, 2022 07:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants