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

ceph-disk: parted < 3.2.16 misbehaves with multiple disks #9195

Closed
wants to merge 1 commit into from
Closed

ceph-disk: parted < 3.2.16 misbehaves with multiple disks #9195

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 19, 2016

When running multiple ceph-disk prepare /dev/sd? /dev/sde at the same
time, partprobe sometime fails with

ceph-disk: Error: partprobe /dev/vd? failed :
Error informing the kernel about modifications to partition /dev/vd?1

This misbehavior has been verified with parted 3.1.23. The exact cause
is unclear and the tracker issue should be updated with findings.

Fixes http://tracker.ceph.com/issues/15918

Signed-off-by: Loic Dachary loic@dachary.org

When running multiple ceph-disk prepare /dev/sd? /dev/sde at the same
time, partprobe sometime fails with

  ceph-disk: Error: partprobe /dev/vd? failed :
    Error informing the kernel about modifications to partition /dev/vd?1

This misbehavior has been verified with parted 3.1.23. The exact cause
is unclear and the tracker issue should be updated with findings.

Fixes http://tracker.ceph.com/issues/15918

Signed-off-by: Loic Dachary <loic@dachary.org>
@smithfarm
Copy link
Contributor

@dachary No deb?

@ghost
Copy link
Author

ghost commented May 19, 2016

@smithfarm I don't think the problem shows on ubuntu/debian. I'm not very confortable enforcing version constraints when I don't really know why they are necessary. I'll dig more :-)

@smithfarm
Copy link
Contributor

In that case, Reviewed-by: Nathan Cutler <ncutler@suse.com>

@ktdreyer
Copy link
Member

RHEL 7 includes parted-3.1-23.el7, so this will break RHEL 7 installs

@ghost
Copy link
Author

ghost commented May 19, 2016

@ktdreyer shoot :-) So the only way is to figure out how to workaround the problem with this old (between 2012 and 2014) version of parted ?

@ktdreyer
Copy link
Member

That sounds right

@alfredodeza
Copy link
Contributor

alfredodeza commented May 20, 2016

Most of the problems we've seen in ceph-deploy issues regarding ceph-disk calls have been caused by the async nature of the udev rules.

Have we ensured that this odd behavior in partprobe is not being caused by racing udev rules? What happens when the commands ceph-disk is firing are done in a system that doesn't have Ceph installed (or has it but without any dev rules) ?

(will add this comment to the tracker issue)

@ghost
Copy link
Author

ghost commented May 20, 2016

@alfredodeza ceph-deploy is randomly calling partprobe and creates problems rather than solving any. In any case it's a different problem altogether (see http://tracker.ceph.com/issues/14099 for instance).

@ghost ghost closed this May 20, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants