Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-13031: Upgrades PMM 2 client with PMM 3 client. #3182

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Conversation

maqeel75
Copy link
Contributor

This commit enables PMM 3 client RPM and Debian packages to upgrade existing PMM 2 client installation and migrate existing pmm-agent.yaml file from PMM 2 to PMM 3 installation directory. It also keeps the pmm-agent.yaml file of PMM client 3 as pmm-agent.yaml.new.
On successful upgrade if pmm2 installation directory is empty then it will be removed. A non empty directory will not be deleted.

@maqeel75 maqeel75 requested a review from a team as a code owner August 27, 2024 13:35
@maqeel75 maqeel75 requested review from idoqo and JiriCtvrtka and removed request for a team August 27, 2024 13:35
Copy link

codecov bot commented Aug 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.58%. Comparing base (574ff35) to head (c5ef509).

Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #3182      +/-   ##
==========================================
- Coverage   44.61%   44.58%   -0.04%     
==========================================
  Files         357      357              
  Lines       35711    35711              
==========================================
- Hits        15933    15921      -12     
- Misses      18154    18166      +12     
  Partials     1624     1624              
Flag Coverage Δ
admin 11.52% <ø> (ø)
agent 52.81% <ø> (-0.14%) ⬇️
managed 46.68% <ø> (ø)
vmproxy 66.66% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

rmdir /usr/local/percona/pmm2/config
fi

if [ -d /usr/local/percona/pmm2 ] && [ ! "$(ls -A /usr/local/percona/pmm2)" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

if I got it right we remove this directory only if it's empty, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@BupycHuk Yes you are right.

@ademidoff ademidoff changed the title [PMM-13031]: Upgrades PMM 2 client with PMM 3 client. PMM-13031: Upgrades PMM 2 client with PMM 3 client. Sep 24, 2024
@ademidoff ademidoff merged commit 1fe2a11 into percona:v3 Sep 24, 2024
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants