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

pacific: ceph-volume: fix activate #46511

Merged
merged 4 commits into from Jun 3, 2022
Merged

Conversation

adk3798
Copy link
Contributor

@adk3798 adk3798 commented Jun 2, 2022

Backport of #44030, #45216

These should have been included in #45964 but were missed out, introducing a regression in pacific

Conflicts in src/pybind/mgr/cephadm/serve.py, src/ceph-volume/ceph_volume/devices/raw/list.py but they were trivial whitespace stuff

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

liewegas and others added 4 commits June 2, 2022 17:57
Currently 'prepare' doesn't support db/wal, but we want it in list and
activate because 'ceph-volume activate ...' tries raw before lvm.

Note that I'm not sure we really want to accept --block.db and --block.wal
here at all.

Fixes: 3d7ceec
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit f0a0c70)
Take a list of devices, so that we can selectively activate a raw osd
with db/wal.

Remove the argument type kludge introduced in 2c228a9
since it is no longer needed.

Note that we're making this change because (1) it allows db/wal and (2)
because there are no known users of 'raw activate'.  The only known user
is via 'ceph-volume activate' and we've fixed that caller in this commit.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit afd8be7)

Conflicts:
	src/ceph-volume/ceph_volume/devices/raw/list.py
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit f10f944)

Conflicts:
	src/pybind/mgr/cephadm/serve.py
afd8be7 broke it.
It has dropped`block_wal` and `block_db` from
`ceph_volume.devices.raw.activate.activate_bluestore` but
`activate.main.Activate.main` still passes those arguments when
calling `RAWActivate([]).activate()`

Fixes: https://tracker.ceph.com/issues/54441

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 3337b62)
@adk3798 adk3798 added this to the pacific milestone Jun 2, 2022
@adk3798 adk3798 requested review from a team as code owners June 2, 2022 22:04
@adk3798
Copy link
Contributor Author

adk3798 commented Jun 2, 2022

jenkins test ceph-volume tox

@adk3798
Copy link
Contributor Author

adk3798 commented Jun 2, 2022

jenkins test ceph-volume all

@guits guits merged commit 060ba7a into ceph:pacific Jun 3, 2022
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants