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

doc/install/manual-deployment: update osd creation steps #16573

Merged
merged 1 commit into from Jul 26, 2017

Conversation

Projects
None yet
2 participants
@liewegas
Member

liewegas commented Jul 25, 2017

Signed-off-by: Sage Weil sage@redhat.com

@liewegas liewegas requested a review from alfredodeza Jul 25, 2017

#. Initialize the OSD data directory. ::
OSD_SECRET=$(ceph-authtool --gen-print-key)

This comment has been minimized.

@alfredodeza

alfredodeza Jul 25, 2017

Contributor

there is an alternative to --gen-print-key right? or is this the only way of achieving this

This comment has been minimized.

@liewegas

liewegas Jul 26, 2017

Member

Several different ways to get the key value.. this is just the easiest

This comment has been minimized.

@liewegas

liewegas Jul 26, 2017

Member

There's a way to write the keyring and generate the key and print to stdout in one step, but we don't know the osd id yet at this stage, so --gen-print-key is what we want.

also decompile the CRUSH map, add the OSD to the device list, add the host as a
bucket (if it's not already in the CRUSH map), add the device as an item in the
host, assign it a weight, recompile it and set it. ::
printf "[osd.$ID]\n\tkey = $OSD_SECRET\n" > /var/lib/ceph/osd/ceph-$ID/keyring

This comment has been minimized.

@alfredodeza

alfredodeza Jul 25, 2017

Contributor

The way we are doing this is with ceph-authtool, like:

ceph-authtool /var/lib/ceph/osd/ceph-$ID/keyring --create-keyring --name osd.$ID --add-key $OSD_SECRET

Is that wrong? are we just trying to exemplify the most manual way here?

This comment has been minimized.

@liewegas

liewegas Jul 26, 2017

Member

Yeah, that works too. Any preference?

This comment has been minimized.

@liewegas

liewegas Jul 26, 2017

Member

went with your suggestion.. cleaner i think

chown -R ceph.ceph /var/lib/ceph/osd/ceph-$ID

This comment has been minimized.

@alfredodeza

alfredodeza Jul 25, 2017

Contributor

I think this is ceph:ceph

This comment has been minimized.

@liewegas

liewegas Jul 26, 2017

Member

fixed!

doc/install/manual-deployment: update osd creation steps
Signed-off-by: Sage Weil <sage@redhat.com>

@alfredodeza alfredodeza merged commit 1ef25e9 into ceph:master Jul 26, 2017

3 of 4 checks passed

make check make check failed
Details
Signed-off-by all commits in this PR are signed
Details
Unmodified Submodules submodules for project are unmodified
Details
make check (arm64) make check succeeded
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment