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/ceph-volume: do not use lvm binary in containers #43536
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guits
commented
Oct 14, 2021
sebastian-philipp
approved these changes
Oct 14, 2021
|
jenkins test ceph-volume tox |
jenkins test ceph-volume all |
jenkins test ceph-volume tox |
jenkins test ceph-volume all |
jenkins test ceph-volume all |
jenkins test ceph-volume tox |
|
jenkins test ceph-volume tox |
jenkins test ceph-volume all |
ceph-volume should run pv/vg/lv commands in the host namespace rather than running them inside the container in order to avoid lvm metadata corruption. Fixes: https://tracker.ceph.com/issues/52926 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
See ceph-volume tracker for details [1] [1] https://tracker.ceph.com/issues/52926 Fixes: https://tracker.ceph.com/issues/51592 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
jenkins test ceph-volume all |
jenkins test ceph-volume tox |
@sebastian-philipp could you retest it? Thanks! |
jenkins test make check |
sebastian-philipp
approved these changes
Nov 10, 2021
This was referenced Nov 16, 2021
guits
added a commit
to guits/ceph
that referenced
this pull request
Jan 10, 2022
The recent changes from PR ceph#43536 introduced a regeression preventing from running ceph-volume in a containerized context on Ubuntu 18.04. Given that the path for the binary `lvs` differs between CentOS 8 and Ubuntu 18.04. (`/usr/sbin/lvs` and `/sbin/lvs` respictively). It means that ceph-volume running in the container on CentOS 8 sees the `lvs` binary at `/usr/sbin/lvs` and try to run it with `nsenter` on the host which is running Ubuntu 18.04. Fixes: https://tracker.ceph.com/issues/53812 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
guits
added a commit
to guits/ceph
that referenced
this pull request
Jan 10, 2022
The recent changes from PR ceph#43536 introduced a regeression preventing from running ceph-volume in a containerized context on Ubuntu 18.04. Given that the path for the binary `lvs` differs between CentOS 8 and Ubuntu 18.04. (`/usr/sbin/lvs` and `/sbin/lvs` respictively). It means that ceph-volume running in the container on CentOS 8 sees the `lvs` binary at `/usr/sbin/lvs` and try to run it with `nsenter` on the host which is running Ubuntu 18.04. Fixes: https://tracker.ceph.com/issues/53812 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
guits
added a commit
to guits/ceph
that referenced
this pull request
Jan 17, 2022
The recent changes from PR ceph#43536 introduced a regeression preventing from running ceph-volume in a containerized context on Ubuntu 18.04. Given that the path for the binary `lvs` differs between CentOS 8 and Ubuntu 18.04. (`/usr/sbin/lvs` and `/sbin/lvs` respictively). It means that ceph-volume running in the container on CentOS 8 sees the `lvs` binary at `/usr/sbin/lvs` and try to run it with `nsenter` on the host which is running Ubuntu 18.04. Fixes: https://tracker.ceph.com/issues/53812 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 95e88cda3df76b59b548ae808df0ef7f19db1f63)
guits
added a commit
to guits/ceph
that referenced
this pull request
Jan 17, 2022
The recent changes from PR ceph#43536 introduced a regeression preventing from running ceph-volume in a containerized context on Ubuntu 18.04. Given that the path for the binary `lvs` differs between CentOS 8 and Ubuntu 18.04. (`/usr/sbin/lvs` and `/sbin/lvs` respictively). It means that ceph-volume running in the container on CentOS 8 sees the `lvs` binary at `/usr/sbin/lvs` and try to run it with `nsenter` on the host which is running Ubuntu 18.04. Fixes: https://tracker.ceph.com/issues/53812 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 95e88cda3df76b59b548ae808df0ef7f19db1f63) Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
sebastian-philipp
added a commit
that referenced
this pull request
Jan 18, 2022
ceph-volume: fix regression introcuded via #43536 Reviewed-by: Adam King <adking@redhat.com> Reviewed-by: Teoman Onay <tonay@redhat.com>
guits
added a commit
to guits/ceph
that referenced
this pull request
Jan 18, 2022
The recent changes from PR ceph#43536 introduced a regeression preventing from running ceph-volume in a containerized context on Ubuntu 18.04. Given that the path for the binary `lvs` differs between CentOS 8 and Ubuntu 18.04. (`/usr/sbin/lvs` and `/sbin/lvs` respictively). It means that ceph-volume running in the container on CentOS 8 sees the `lvs` binary at `/usr/sbin/lvs` and try to run it with `nsenter` on the host which is running Ubuntu 18.04. Fixes: https://tracker.ceph.com/issues/53812 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 95e88cda3df76b59b548ae808df0ef7f19db1f63) Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 3c93ffd)
guits
added a commit
to guits/ceph
that referenced
this pull request
Jan 19, 2022
The recent changes from PR ceph#43536 introduced a regeression preventing from running ceph-volume in a containerized context on Ubuntu 18.04. Given that the path for the binary `lvs` differs between CentOS 8 and Ubuntu 18.04. (`/usr/sbin/lvs` and `/sbin/lvs` respictively). It means that ceph-volume running in the container on CentOS 8 sees the `lvs` binary at `/usr/sbin/lvs` and try to run it with `nsenter` on the host which is running Ubuntu 18.04. Fixes: https://tracker.ceph.com/issues/53812 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 95e88cda3df76b59b548ae808df0ef7f19db1f63) Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 3c93ffd)
sebastian-philipp
added a commit
that referenced
this pull request
Jan 19, 2022
pacific: ceph-volume: fix regression introcuded via #43536 Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
guits
added a commit
that referenced
this pull request
Jan 25, 2022
The recent changes from PR #43536 introduced a regeression preventing from running ceph-volume in a containerized context on Ubuntu 18.04. Given that the path for the binary `lvs` differs between CentOS 8 and Ubuntu 18.04. (`/usr/sbin/lvs` and `/sbin/lvs` respictively). It means that ceph-volume running in the container on CentOS 8 sees the `lvs` binary at `/usr/sbin/lvs` and try to run it with `nsenter` on the host which is running Ubuntu 18.04. Fixes: https://tracker.ceph.com/issues/53812 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 95e88cda3df76b59b548ae808df0ef7f19db1f63) Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 3c93ffd)
guits
added a commit
that referenced
this pull request
Jan 25, 2022
octopus: ceph-volume: fix regression introcuded via #43536
guits
added a commit
to guits/ceph
that referenced
this pull request
Jan 25, 2022
The recent changes from PR ceph#43536 introduced a regeression preventing from running ceph-volume in a containerized context on Ubuntu 18.04. Given that the path for the binary `lvs` differs between CentOS 8 and Ubuntu 18.04. (`/usr/sbin/lvs` and `/sbin/lvs` respictively). It means that ceph-volume running in the container on CentOS 8 sees the `lvs` binary at `/usr/sbin/lvs` and try to run it with `nsenter` on the host which is running Ubuntu 18.04. Fixes: https://tracker.ceph.com/issues/53812 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 95e88cda3df76b59b548ae808df0ef7f19db1f63) Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 3c93ffd)
NitzanMordhai
pushed a commit
to NitzanMordhai/ceph
that referenced
this pull request
Nov 19, 2023
The recent changes from PR ceph#43536 introduced a regeression preventing from running ceph-volume in a containerized context on Ubuntu 18.04. Given that the path for the binary `lvs` differs between CentOS 8 and Ubuntu 18.04. (`/usr/sbin/lvs` and `/sbin/lvs` respictively). It means that ceph-volume running in the container on CentOS 8 sees the `lvs` binary at `/usr/sbin/lvs` and try to run it with `nsenter` on the host which is running Ubuntu 18.04. Fixes: https://tracker.ceph.com/issues/53812 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 95e88cda3df76b59b548ae808df0ef7f19db1f63) Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commit 3c93ffd)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ceph-volume should run pv/vg/lv commands in the host namespace rather than
running them inside the container in order to avoid lvm metadata corruption.
Fixes: https://tracker.ceph.com/issues/51592
Fixes: https://tracker.ceph.com/issues/52926