Skip to contentSkip to conversation

fix keyring generation for mds and osd

PATCH Applied Danny Kukawka 2 participants 3 messages Aug 16, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix keyring generation for mds and osd

Fix config keys for OSD/MDS data dirs. As in documentation and other places of the scripts the keys are 'osd data'/'mds data' and not 'osd_data'

In case if MDS: if 'mds data' doesn't exist, create it.

---
 src/mkcephfs.in |    5 +++--

1 Datei geändert, 3 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)

src/mkcephfs.in +3 -2
index 402c870..7ab6664 100644
@@ -251,14 +251,15 @@ if [ -n "$initdaemon" ]; then
     if [ $type = "osd" ]; then
 	$BINDIR/ceph-osd -c $conf --monmap $dir/monmap -i $id --mkfs --mkkey
 
-	get_conf osd_data "/var/lib/ceph/osd/ceph-$id" "osd_data"
+	get_conf osd_data "/var/lib/ceph/osd/ceph-$id" "osd data"
 	get_conf osd_keyring "$osd_data/keyring" "keyring"
 	$BINDIR/ceph-authtool -p -n $name $osd_keyring > $dir/key.$name
     fi
     
     if [ $type = "mds" ]; then
-	get_conf mds_data "/var/lib/ceph/mds/ceph-$id" "mds_data"
+	get_conf mds_data "/var/lib/ceph/mds/ceph-$id" "mds data"
 	get_conf mds_keyring "$mds_data/keyring" "keyring"
+	test -d $mds_data || mkdir -p $mds_data
 	echo "creating private key for $name keyring $mds_keyring"
 	$BINDIR/ceph-authtool --create-keyring --gen-key -n $name $mds_keyring
 	$BINDIR/ceph-authtool -p -n $name $mds_keyring > $dir/key.$name
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Applied
#1 lore raw

Hi Danny,

I've applied both of these. Thanks!

sage

Quoted 42 lines · Danny Kukawka

Fix config keys for OSD/MDS data dirs. As in documentation and other places of the scripts the keys are 'osd data'/'mds data' and not 'osd_data'

In case if MDS: if 'mds data' doesn't exist, create it.

---
 src/mkcephfs.in |    5 +++--

1 Datei ge?ndert, 3 Zeilen hinzugef?gt(+), 2 Zeilen entfernt(-)

src/mkcephfs.in +3 -2
index 402c870..7ab6664 100644
@@ -251,14 +251,15 @@ if [ -n "$initdaemon" ]; then
     if [ $type = "osd" ]; then
 	$BINDIR/ceph-osd -c $conf --monmap $dir/monmap -i $id --mkfs --mkkey
 
-	get_conf osd_data "/var/lib/ceph/osd/ceph-$id" "osd_data"
+	get_conf osd_data "/var/lib/ceph/osd/ceph-$id" "osd data"
 	get_conf osd_keyring "$osd_data/keyring" "keyring"
 	$BINDIR/ceph-authtool -p -n $name $osd_keyring > $dir/key.$name
     fi
 
     if [ $type = "mds" ]; then
-	get_conf mds_data "/var/lib/ceph/mds/ceph-$id" "mds_data"
+	get_conf mds_data "/var/lib/ceph/mds/ceph-$id" "mds data"
 	get_conf mds_keyring "$mds_data/keyring" "keyring"
+	test -d $mds_data || mkdir -p $mds_data
 	echo "creating private key for $name keyring $mds_keyring"
 	$BINDIR/ceph-authtool --create-keyring --gen-key -n $name $mds_keyring
 	$BINDIR/ceph-authtool -p -n $name $mds_keyring > $dir/key.$name
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

Hi Sage,

could you please cherry-pick them also to stable(-next)?

Thanks!

Danny

Am 16.08.2012 18:25, schrieb Sage Weil:

Quoted 5 lines

Hi Danny,

I've applied both of these. Thanks!

sage