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

cephadm: preserve cephadm user during RPM upgrade #46272

Merged
merged 1 commit into from Jun 1, 2022

Conversation

sshambar
Copy link

The cephadm postun macro in the rpm spec file doesn't test for upgrade,
and removes the cephadm user. The patch changes the macro to only remove
the cephadm user on uninstall.

Fixes: https://tracker.ceph.com/issues/55664
Signed-off-by: Scott Shambarger devel@shambarger.net

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

The cephadm postun macro in the rpm spec file doesn't test for upgrade,
and removes the cephadm user.  The patch changes the macro to only remove
the cephadm user on uninstall.

Fixes: https://tracker.ceph.com/issues/55664
Signed-off-by: Scott Shambarger <devel@shambarger.net>
@adk3798
Copy link
Contributor

adk3798 commented May 18, 2022

Build succeeded. Also, from test run with build (since there were other PRs added in build):

https://pulpito.ceph.com/adking-2022-05-18_00:20:23-orch:cephadm-wip-adk-testing-2022-05-17-1753-distro-basic-smithi/

1 failure in new staggered upgrade test, caused by staggered upgrade PR in this run. Unrelated to changes in this PR.

Copy link
Contributor

@mgfritch mgfritch left a comment

Choose a reason for hiding this comment

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

lgtm!

@tchaikov tchaikov changed the base branch from master to main May 25, 2022 12:50
@tchaikov
Copy link
Contributor

@sshambar hey Scott, shall we backport this change to LTS branches like pacific and quincy? if yes, could you please update https://tracker.ceph.com/issues/55664 's "Backport" field accordingly?

@sshambar
Copy link
Author

@sshambar hey Scott, shall we backport this change to LTS branches like pacific and quincy? if yes, could you please update https://tracker.ceph.com/issues/55664 's "Backport" field accordingly?

I think backporting would be useful as it will ease any upgrades between releases... however, my account on the tracker doesn't give me access to the "update" link so I'm unable to modify the backport field.

@adk3798
Copy link
Contributor

adk3798 commented May 25, 2022

@sshambar I updated the tracker appropriately. I'm not sure if the master -> main branch stuff has been sorted yet but once I know we're good to merge things this seems like it's good to go and we can do the backports.

@tchaikov
Copy link
Contributor

jenkins test api

@adk3798 adk3798 merged commit 832457a into ceph:main Jun 1, 2022
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants