cephadm: run containers using --init by default#37764
cephadm: run containers using --init by default#37764sebastian-philipp merged 3 commits intoceph:masterfrom
--init by default#37764Conversation
|
Any chance we can keep both options and just change the default behavior, so we guarantee backward compatibility in the options syntax? I mean:
This way, any |
|
So the problem with this is how do we handle distros that have a broken - - in it gracefully? How do we make sure bootstrap still works for them?
|
How long would we want to keep around backward compat? I'm unsure if it's worth it given the feature has only existed for a relatively short time ...
We unfortunately don't have a versioned cephadm, but maybe a release note or errata about updating |
I might suggest those distros are either unsuitable for cephadm or should be updated - but if someone would like to run cephadm in a less optimal way, the |
I think that's required. I like this, but we shouldn't break old execution syntax if we can avoid it. |
I think the only major consumer at the moment is If we add backwards compat, would ignore the global option and create containers with an init, but that's maybe expected? |
In this case, I would expect an error saying that |
0387cfe to
f2c4f04
Compare
@ricardoasmarques I had to add some awkward handling due to the global/subcommand args, but they should now be mutually exclusive |
@l-mb old execution syntax has been preserved, but hidden/removed from the man page and command help usage. |
@sebastian-philipp this PR depends on podman >= 2.0 (#37922) |
|
DNM, till we have sorted out https://tracker.ceph.com/issues/48171 |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
blocked by #39007 |
f2c4f04 to
2d302ef
Compare
adopt command allows for the `--container-init` flag Signed-off-by: Michael Fritch <mfritch@suse.com>
generally all ceph containers need an init process to both reap any zombie pids and/or perform signal handling (e.g. coredumps, etc.) Signed-off-by: Michael Fritch <mfritch@suse.com>
allow for the `--init` flag to be passed during `cephadm shell` Signed-off-by: Michael Fritch <mfritch@suse.com>
2d302ef to
5750589
Compare
…ner-init" This reverts commit f635555, reversing changes made to d4d3d17. This PR seems to be (indirectly?) responsible for https://tracker.ceph.com/issues/49237 Also, it was causing the rados.py task's follow-up step to wait for snap trimming to fail: it would time out a 'ceph osd dump --format=json' command. :/ Signed-off-by: Sage Weil <sage@newdream.net>
* refs/pull/39482/head: Revert "Merge pull request #37764 from mgfritch/cephadm-no-container-init" Reviewed-by: Josh Durgin <jdurgin@redhat.com>
…init" This reverts commit f635555, reversing changes made to d4d3d17. This PR seems to be (indirectly?) responsible for https://tracker.ceph.com/issues/49237 Also, it was causing the rados.py task's follow-up step to wait for snap trimming to fail: it would time out a 'ceph osd dump --format=json' command. :/ Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit c896292)
…ner-init" This reverts commit f635555, reversing changes made to d4d3d17. This PR seems to be (indirectly?) responsible for https://tracker.ceph.com/issues/49237 Also, it was causing the rados.py task's follow-up step to wait for snap trimming to fail: it would time out a 'ceph osd dump --format=json' command. :/ Signed-off-by: Sage Weil <sage@newdream.net>
generally all ceph containers need an init process to both reap any
zombie pids and/or peform signal handling (e.g. coredumps, etc.)
Removes the
--container-initsub-command argument in favor of a global--no-container-initflag.Signed-off-by: Michael Fritch mfritch@suse.com
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox