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

Use the uuid we've created the partition with #6021

Conversation

joejulian
Copy link

Simplify and be more accurate with finding the new partition
by using the uuid we created the partition with instead of guessing what
the next device name will be.

Fall back to the old way for distributions that don't include
udev >= 211

Add tests for lvm based osds. Don't run this test with udev < 211

Signed-off-by: Joe Julian jjulian@io.com

@ghost ghost self-assigned this Sep 22, 2015
@ghost
Copy link

ghost commented Sep 22, 2015

Could you rebase this on top of #5999 ? On that occasion if you could split the commit in two (one for partuuid and one for lvm support) it would be great :-)

@joejulian
Copy link
Author

partuuid is lvm support. Did you mean one for ceph-disk and one for tests?

@ghost
Copy link

ghost commented Sep 22, 2015

@joejulian you're right, I'm impressed by the simplicity of the patch ... and I now better understand why you suggested it's treated like a bug fix and not a new feature :-)

@joejulian joejulian force-pushed the joejulian-infernalis-use_lvm_block_devices branch from fc9611e to 4f50e27 Compare September 22, 2015 19:05
@ghost ghost added this to the infernalis milestone Sep 22, 2015
osd_uuid = str(uuid.uuid1())
c.sh("ceph-disk zap " + lv)
c.sh("ceph-disk prepare --osd-uuid " + osd_uuid +
" " + lv)
Copy link

Choose a reason for hiding this comment

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

    c.wait_for_osd_up(osd_uuid)

because udev / systemd / upstart is asyncrhonous

Copy link
Author

Choose a reason for hiding this comment

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

added

Simplify and be more accurate with finding the new partition
by using the uuid we created the partition with instead of guessing what
the next device name will be.

Fall back to the old way for distributions that don't include
udev >= 211

Add tests for lvm based osds. Don't run this test with udev < 211

Signed-off-by: Joe Julian <jjulian@io.com>
@joejulian joejulian force-pushed the joejulian-infernalis-use_lvm_block_devices branch from 4f50e27 to 142af42 Compare September 22, 2015 23:26
@liewegas
Copy link
Member

http://pulpito.ceph.com/sage-2015-09-28_14:10:55-ceph-deploy-wip-sage-testing---basic-vps/

a couple failures. both with dmcrypt, but one of them was trusty. @dachary ?

@ghost
Copy link

ghost commented Sep 29, 2015

@liewegas the dmcrypt ceph-deploy failure was also see on trusty, once. I'm still investigating.

@ghost ghost removed this from the infernalis milestone Oct 2, 2015
@ghost
Copy link

ghost commented Oct 2, 2015

We stabilized the ceph-disk / ceph-deploy usage and I don't feel confident adding even the smallest change for the infernalis release. It would however be a good candidate for backport for the next infernalis point release.

@liewegas
Copy link
Member

liewegas commented Oct 5, 2015

@joejulian please retarget this at master branch?

@ghost
Copy link

ghost commented Oct 16, 2015

@joejulian closing since you'll re-open a new one on master

@ghost ghost closed this Oct 16, 2015
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
3 participants