Due to conflicts, don't use -i to set id except for daemons.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
delimited search list.\n\
\n\
FLAGS\n\
- -i id Set id\n\
+ --name name Set type.id\n\
[-s <section>] Add to list of sections to search\n\
\n\
If there is no action given, the action will default to --lookup.\n\
\n\
EXAMPLES\n\
-$ cconf -i cconf -c /etc/ceph/ceph.conf -t mon -i 0 'mon addr'\n\
+$ cconf --name client.cconf -c /etc/ceph/ceph.conf -t mon -i 0 'mon addr'\n\
Find out if there is a 'mon addr' defined in /etc/ceph/ceph.conf\n\
\n\
$ cconf -l mon\n\
check_host() {
# what host is this daemon assigned to?
- host=`$CCONF -c $conf -i $id -t $type host`
+ host=`$CCONF -c $conf --name $type.$id host`
[ "$host" = "localhost" ] && host=""
ssh=""
rootssh=""
key=$3
shift; shift; shift
- [ "$verbose" -eq 1 ] && echo "$CCONF -c $conf -i $id -t $type \"$key\""
- eval "$var=\"`$CCONF -c $conf -i $id -t $type \"$key\" || eval echo -n \"$def\"`\""
+ [ "$verbose" -eq 1 ] && echo "$CCONF -c $conf --name $type.$id \"$key\""
+ eval "$var=\"`$CCONF -c $conf --name $type.$id \"$key\" || eval echo -n \"$def\"`\""
}
get_conf_bool() {
else if (ceph_argparse_witharg(args, i, &val, "--conf", "-c", NULL)) {
iparams.conf_file = val;
}
- else if (ceph_argparse_witharg(args, i, &val, "-i", "--id", NULL)) {
+ else if ((module_type != CEPH_ENTITY_TYPE_CLIENT) &&
+ (ceph_argparse_witharg(args, i, &val, "-i", NULL))) {
+ iparams.name.set_id(val);
+ }
+ else if (ceph_argparse_witharg(args, i, &val, "--id", NULL)) {
iparams.name.set_id(val);
}
else if (ceph_argparse_witharg(args, i, &val, "--name", "-n", NULL)) {
# demonstrate that manpage examples fail without config
# TODO fix the manpage
- $ cauthtool --create-keyring -i foo --gen-key keyring
+ $ cauthtool --create-keyring --name client.foo --gen-key keyring
creating keyring
# work around the above
To create a new keyring containing a key for client.foo:
- $ cauthtool --create-keyring -i foo --gen-key keyring.bin
+ $ cauthtool --create-keyring --id foo --gen-key keyring.bin
creating keyring.bin
$ cauthtool --create-keyring --name client.foo --gen-key keyring.bin
delimited search list.
FLAGS
- -i id Set id
+ --name name Set type.id
[-s <section>] Add to list of sections to search
If there is no action given, the action will default to --lookup.
EXAMPLES
- [$] cconf -i cconf -c /etc/ceph/ceph\.conf -t mon -i 0 'mon addr' (re)
+ [$] cconf --name client.cconf -c /etc/ceph/ceph.conf -t mon -i 0 'mon addr' (re)
Find out if there is a 'mon addr' defined in /etc/ceph/ceph.conf
[$] cconf -l mon (re)
delimited search list.
FLAGS
- -i id Set id
+ --name name Set type.id
[-s <section>] Add to list of sections to search
If there is no action given, the action will default to --lookup.
EXAMPLES
- [$] cconf -i cconf -c /etc/ceph/ceph.conf -t mon -i 0 'mon addr' (re)
+ [$] cconf --name client.cconf -c /etc/ceph/ceph.conf -t mon -i 0 'mon addr' (re)
Find out if there is a 'mon addr' defined in /etc/ceph/ceph.conf
[$] cconf -l mon (re)
delimited search list.
FLAGS
- -i id Set id
+ --name name Set type.id
[-s <section>] Add to list of sections to search
If there is no action given, the action will default to --lookup.
EXAMPLES
- [$] cconf -i cconf -c /etc/ceph/ceph.conf -t mon -i 0 'mon addr' (re)
+ [$] cconf --name client.cconf -c /etc/ceph/ceph.conf -t mon -i 0 'mon addr' (re)
Find out if there is a 'mon addr' defined in /etc/ceph/ceph.conf
[$] cconf -l mon (re)