Skip to contentSkip to conversation

cconf: Update usage

PATCH Applied Wido den Hollander 3 participants 10 messages Apr 17, 2011 – Apr 18, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 cconf: Update usage

---
 src/cconf.cc |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
src/cconf.cc +11 -2
index 2de7899..d5a911d 100644
@@ -50,12 +50,21 @@ FLAGS\n\
 If there is no action given, the action will default to --lookup.\n\
 \n\
 EXAMPLES\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\
+$ cconf 'auth supported'\n\
+Find out which authorization is used.\n\
+\n\
+$ cconf -n osd.0 'osd data'\n\
+Get the osd data directory for osd.0\n\
 \n\
 $ cconf -l mon\n\
 List sections beginning with 'mon'.\n\
 \n\
+$ cconf -l mon|while read s; do cconf -s $s 'mon addr'; done\n\
+Get all 'mon addr' values out of the configuration.\n\
+\n\
+$ cconf -c foo.conf 'keyring'\n\
+Read the 'keyring' value from a non-default configuration file.\n\
+\n\
 RETURN CODE\n\
 Return code will be 0 on success; error code otherwise.\n\
 ";
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/4 config: Update sample configuration to new naming scheme

---
 src/sample.ceph.conf |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)
src/sample.ceph.conf +13 -10
index bb874e7..31674f6 100644
@@ -24,6 +24,9 @@
         ; set up pid files
         pid file = /var/run/ceph/$name.pid
 
+        ; Also log to syslog
+        log to syslog = true
+
 ; monitors
 ;  You need at least one.  You need at least three if you want to
 ;  tolerate any node failures.  Always create an odd number.
@@ -37,15 +40,15 @@
 	;debug paxos = 20
 	;debug auth = 20
 
-[mon0]
+[mon.alpha]
 	host = alpha
 	mon addr = 192.168.0.10:6789
 
-[mon1]
+[mon.beta]
 	host = beta
 	mon addr = 192.168.0.11:6789
 
-[mon2]
+[mon.gamma]
 	host = gamma
 	mon addr = 192.168.0.12:6789
 
@@ -70,16 +73,16 @@
 ;  Define as many as you like.
 [osd]
 	; This is where the btrfs volume will be mounted.
-	osd data = /data/osd$id
+	osd data = /data/$name
 
 	; Ideally, make this a separate disk or partition.  A few
  	; hundred MB should be enough; more if you have fast or many
  	; disks.  You can use a file under the osd data dir if need be
- 	; (e.g. /data/osd$id/journal), but it will be slower than a
+ 	; (e.g. /data/$name/journal), but it will be slower than a
  	; separate disk or partition.
 
         ; This is an example of a file-based journal.
-	osd journal = /data/osd$id/journal
+	osd journal = /data/$name/journal
 	osd journal size = 1000 ; journal size, in megabytes
 
 	; osd logging to debug osd issues, in order of likelihood of being
@@ -89,7 +92,7 @@
 	;debug filestore = 20
 	;debug journal = 20
 
-[osd0]
+[osd.0]
 	host = delta
 
 	; if 'btrfs devs' is not specified, you're responsible for
@@ -98,14 +101,14 @@
 	; usually fine for basic testing).
 	btrfs devs = /dev/sdx
 
-[osd1]
+[osd.1]
 	host = epsilon
 	btrfs devs = /dev/sdy
 
-[osd2]
+[osd.2]
 	host = zeta
 	btrfs devs = /dev/sdx
 
-[osd3]
+[osd.3]
 	host = eta
 	btrfs devs = /dev/sdy
Signature · 1 line
1.7.0.4
#2 lore raw

Re: [PATCH 2/4] config: Update sample configuration to new naming scheme

Hi Wido,

Thanks for the patch.
This was already fixed by e34e332bc43b30f43dee3f2b153ea10977553068.

I don't think we want log to syslog to be in the sample configuration file. Maybe we could include it, but commented out. Most users will want to enable logging to a file or to syslog, but not both.

Colin

Quoted 89 lines · Wido den Hollander

---
 src/sample.ceph.conf |   23 +++++++++++++----------

 1 files changed, 13 insertions(+), 10 deletions(-)
src/sample.ceph.conf +0 -0
index bb874e7..31674f6 100644
@@ -24,6 +24,9 @@

        ; set up pid files
        pid file = /var/run/ceph/$name.pid

+        ; Also log to syslog
+        log to syslog = true
+
 ; monitors
 ;  You need at least one.  You need at least three if you want to ;  tolerate any node failures.  Always create an odd number.

src/sample.ceph.conf +0 -0
@@ -37,15 +40,15 @@

       ;debug paxos = 20
       ;debug auth = 20

-[mon0]
+[mon.alpha]
       host = alpha
       mon addr = 192.168.0.10:6789

-[mon1]
+[mon.beta]
       host = beta
       mon addr = 192.168.0.11:6789

-[mon2]
+[mon.gamma]
       host = gamma
       mon addr = 192.168.0.12:6789

src/sample.ceph.conf +0 -0
@@ -70,16 +73,16 @@

 ;  Define as many as you like.
 [osd]
       ; This is where the btrfs volume will be mounted.
-       osd data = /data/osd$id
+       osd data = /data/$name

       ; Ideally, make this a separate disk or partition.  A few ; hundred MB should be enough; more if you have fast or many ; disks.  You can use a file under the osd data dir if need be
-       ; (e.g. /data/osd$id/journal), but it will be slower than a
+       ; (e.g. /data/$name/journal), but it will be slower than a ; separate disk or partition.

        ; This is an example of a file-based journal.
-       osd journal = /data/osd$id/journal
+       osd journal = /data/$name/journal
       osd journal size = 1000 ; journal size, in megabytes

       ; osd logging to debug osd issues, in order of likelihood of being

src/sample.ceph.conf +0 -0
@@ -89,7 +92,7 @@

       ;debug filestore = 20
       ;debug journal = 20

-[osd0]
+[osd.0]
       host = delta

       ; if 'btrfs devs' is not specified, you're responsible for

src/sample.ceph.conf +0 -0
@@ -98,14 +101,14 @@

       ; usually fine for basic testing).
       btrfs devs = /dev/sdx

-[osd1]
+[osd.1]
       host = epsilon
       btrfs devs = /dev/sdy

-[osd2]
+[osd.2]
       host = zeta
       btrfs devs = /dev/sdx

-[osd3]
+[osd.3]
       host = eta
       btrfs devs = /dev/sdy
--
1.7.0.4

Quoted 5 lines

--
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

--
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

#3 lore raw

Re: [PATCH 2/4] config: Update sample configuration to new naming scheme

Hi,

Quoted 4 lines · Colin McCabe

I don't think we want log to syslog to be in the sample configuration file. Maybe we could include it, but commented out. Most users will want to enable logging to a file or to syslog, but not both.

Ah yes, I see. The syslog was my bad, my idea was to have it commented out, but have it just as a reference in there, didn't check that good enough.

But right now you can only disable logging to a file by setting:

log file =

That seems a bit odd, "log file = false" would be easier.

Imho the current sample config is still broken.

Monitors names are only numeric, shouldn't we encourage users to give them a full name? mon.alpha, mon.beta, etc?

osd journal = /data/osd$id/journal

That will result in: /data/osd0/journal

When the osd's name is osd.0, that also seems a bit weird, would $name be better there then osd$id (see my patch).

Same goes for data btw

Wido

Quoted 98 lines

Colin

Quoted 94 lines · Wido den Hollander
---
 src/sample.ceph.conf |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)
src/sample.ceph.conf +13 -11
index bb874e7..31674f6 100644
@@ -24,6 +24,9 @@
        ; set up pid files
        pid file = /var/run/ceph/$name.pid
 
+        ; Also log to syslog
+        log to syslog = true
+
 ; monitors
 ;  You need at least one.  You need at least three if you want to
 ;  tolerate any node failures.  Always create an odd number.
@@ -37,15 +40,15 @@
       ;debug paxos = 20
       ;debug auth = 20
 
-[mon0]
+[mon.alpha]
       host = alpha
       mon addr = 192.168.0.10:6789
 
-[mon1]
+[mon.beta]
       host = beta
       mon addr = 192.168.0.11:6789
 
-[mon2]
+[mon.gamma]
       host = gamma
       mon addr = 192.168.0.12:6789
 
@@ -70,16 +73,16 @@
 ;  Define as many as you like.
 [osd]
       ; This is where the btrfs volume will be mounted.
-       osd data = /data/osd$id
+       osd data = /data/$name
 
       ; Ideally, make this a separate disk or partition.  A few
       ; hundred MB should be enough; more if you have fast or many
       ; disks.  You can use a file under the osd data dir if need be
-       ; (e.g. /data/osd$id/journal), but it will be slower than a
+       ; (e.g. /data/$name/journal), but it will be slower than a
       ; separate disk or partition.
 
        ; This is an example of a file-based journal.
-       osd journal = /data/osd$id/journal
+       osd journal = /data/$name/journal
       osd journal size = 1000 ; journal size, in megabytes
 
       ; osd logging to debug osd issues, in order of likelihood of being
@@ -89,7 +92,7 @@
       ;debug filestore = 20
       ;debug journal = 20
 
-[osd0]
+[osd.0]
       host = delta
 
       ; if 'btrfs devs' is not specified, you're responsible for
@@ -98,14 +101,14 @@
       ; usually fine for basic testing).
       btrfs devs = /dev/sdx
 
-[osd1]
+[osd.1]
       host = epsilon
       btrfs devs = /dev/sdy
 
-[osd2]
+[osd.2]
       host = zeta
       btrfs devs = /dev/sdx
 
-[osd3]
+[osd.3]
       host = eta
       btrfs devs = /dev/sdy
--

1.7.0.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

#4 lore raw

Re: [PATCH 2/4] config: Update sample configuration to new naming scheme

Quoted 12 lines · Wido den Hollander

Hi,

Quoted 4 lines · Colin McCabe

I don't think we want log to syslog to be in the sample configuration file. Maybe we could include it, but commented out. Most users will want to enable logging to a file or to syslog, but not both.

Ah yes, I see. The syslog was my bad, my idea was to have it commented out, but have it just as a reference in there, didn't check that good enough.

Quoted 5 lines

But right now you can only disable logging to a file by setting:

log file =

That seems a bit odd, "log file = false" would be easier.

Disabling the log file with an empty string seems pretty intuitive to me. We used to have a separate boolean controlling this, and it was very confusing to users.

Quoted 6 lines

Imho the current sample config is still broken.

Monitors names are only numeric, shouldn't we encourage users to give them a full name? mon.alpha, mon.beta, etc?

Quoted 8 lines

osd journal = /data/osd$id/journal

That will result in: /data/osd0/journal

When the osd's name is osd.0, that also seems a bit weird, would $name be better there then osd$id (see my patch).

Same goes for data btw

It would be nice to have all of $name, $type and $id somewhere in there so that users know they exist. Aside from that, I don't really have a strong opinion...

cheers,
Colin

Quoted 96 lines

Wido

Quoted 93 lines

Colin

Quoted 89 lines · Wido den Hollander

---
 src/sample.ceph.conf |   23 +++++++++++++----------

 1 files changed, 13 insertions(+), 10 deletions(-)
src/sample.ceph.conf +0 -0
index bb874e7..31674f6 100644
@@ -24,6 +24,9 @@

        ; set up pid files
        pid file = /var/run/ceph/$name.pid

+        ; Also log to syslog
+        log to syslog = true
+
 ; monitors
 ;  You need at least one.  You need at least three if you want to ;  tolerate any node failures.  Always create an odd number.

src/sample.ceph.conf +0 -0
@@ -37,15 +40,15 @@

       ;debug paxos = 20
       ;debug auth = 20

-[mon0]
+[mon.alpha]
       host = alpha
       mon addr = 192.168.0.10:6789

-[mon1]
+[mon.beta]
       host = beta
       mon addr = 192.168.0.11:6789

-[mon2]
+[mon.gamma]
       host = gamma
       mon addr = 192.168.0.12:6789

src/sample.ceph.conf +0 -0
@@ -70,16 +73,16 @@

 ;  Define as many as you like.
 [osd]
       ; This is where the btrfs volume will be mounted.
-       osd data = /data/osd$id
+       osd data = /data/$name

       ; Ideally, make this a separate disk or partition.  A few ; hundred MB should be enough; more if you have fast or many ; disks.  You can use a file under the osd data dir if need be
-       ; (e.g. /data/osd$id/journal), but it will be slower than a
+       ; (e.g. /data/$name/journal), but it will be slower than a ; separate disk or partition.

        ; This is an example of a file-based journal.
-       osd journal = /data/osd$id/journal
+       osd journal = /data/$name/journal
       osd journal size = 1000 ; journal size, in megabytes

       ; osd logging to debug osd issues, in order of likelihood of being

src/sample.ceph.conf +0 -0
@@ -89,7 +92,7 @@

       ;debug filestore = 20
       ;debug journal = 20

-[osd0]
+[osd.0]
       host = delta

       ; if 'btrfs devs' is not specified, you're responsible for

src/sample.ceph.conf +0 -0
@@ -98,14 +101,14 @@

       ; usually fine for basic testing).
       btrfs devs = /dev/sdx

-[osd1]
+[osd.1]
       host = epsilon
       btrfs devs = /dev/sdy

-[osd2]
+[osd.2]
       host = zeta
       btrfs devs = /dev/sdx

-[osd3]
+[osd.3]
       host = eta
       btrfs devs = /dev/sdy
--
1.7.0.4

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

--
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

--
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

#5 lore raw

Re: [PATCH 2/4] config: Update sample configuration to new naming scheme

Quoted 15 lines · Colin McCabe
Quoted 14 lines · Wido den Hollander

Hi,

Quoted 4 lines · Colin McCabe

I don't think we want log to syslog to be in the sample configuration file. Maybe we could include it, but commented out. Most users will want to enable logging to a file or to syslog, but not both.

Ah yes, I see. The syslog was my bad, my idea was to have it commented out, but have it just as a reference in there, didn't check that good enough.

But right now you can only disable logging to a file by setting:

Quoted 13 lines
Quoted 3 lines

log file =

That seems a bit odd, "log file = false" would be easier.

Disabling the log file with an empty string seems pretty intuitive to me. We used to have a separate boolean controlling this, and it was very confusing to users.

Quoted 5 lines

Imho the current sample config is still broken.

Monitors names are only numeric, shouldn't we encourage users to give them a full name? mon.alpha, mon.beta, etc?

Yeah.. I thought they were a, b, c, but if they're not, they should be! Using numbers for the id is a recipe for confusion because they are dynamically assigned numerical ids at runtime irrespective of their alphanumeric id.

Quoted 4 lines
Quoted 4 lines

osd journal = /data/osd$id/journal

That will result in: /data/osd0/journal

Quoted 8 lines
Quoted 4 lines

When the osd's name is osd.0, that also seems a bit weird, would $name be better there then osd$id (see my patch).

Same goes for data btw

It would be nice to have all of $name, $type and $id somewhere in there so that users know they exist. Aside from that, I don't really have a strong opinion...

We should be consistent with the . throughout, whatever we do. I'm fine with osd.$id or just $name (e.g. /data/$name)...

sage

Quoted 114 lines

cheers,
Colin

Quoted 96 lines

Wido

Quoted 93 lines

Colin

Quoted 89 lines · Wido den Hollander

---
 src/sample.ceph.conf |   23 +++++++++++++----------

 1 files changed, 13 insertions(+), 10 deletions(-)
src/sample.ceph.conf +0 -0
index bb874e7..31674f6 100644
@@ -24,6 +24,9 @@

        ; set up pid files
        pid file = /var/run/ceph/$name.pid

+        ; Also log to syslog
+        log to syslog = true
+
 ; monitors
 ;  You need at least one.  You need at least three if you want to ;  tolerate any node failures.  Always create an odd number.

src/sample.ceph.conf +0 -0
@@ -37,15 +40,15 @@

       ;debug paxos = 20
       ;debug auth = 20

-[mon0]
+[mon.alpha]
       host = alpha
       mon addr = 192.168.0.10:6789

-[mon1]
+[mon.beta]
       host = beta
       mon addr = 192.168.0.11:6789

-[mon2]
+[mon.gamma]
       host = gamma
       mon addr = 192.168.0.12:6789

src/sample.ceph.conf +0 -0
@@ -70,16 +73,16 @@

 ;  Define as many as you like.
 [osd]
       ; This is where the btrfs volume will be mounted.
-       osd data = /data/osd$id
+       osd data = /data/$name

       ; Ideally, make this a separate disk or partition.  A few ; hundred MB should be enough; more if you have fast or many ; disks.  You can use a file under the osd data dir if need be
-       ; (e.g. /data/osd$id/journal), but it will be slower than a
+       ; (e.g. /data/$name/journal), but it will be slower than a ; separate disk or partition.

        ; This is an example of a file-based journal.
-       osd journal = /data/osd$id/journal
+       osd journal = /data/$name/journal
       osd journal size = 1000 ; journal size, in megabytes

       ; osd logging to debug osd issues, in order of likelihood of being

src/sample.ceph.conf +0 -0
@@ -89,7 +92,7 @@

       ;debug filestore = 20
       ;debug journal = 20

-[osd0]
+[osd.0]
       host = delta

       ; if 'btrfs devs' is not specified, you're responsible for

src/sample.ceph.conf +0 -0
@@ -98,14 +101,14 @@

       ; usually fine for basic testing).
       btrfs devs = /dev/sdx

-[osd1]
+[osd.1]
       host = epsilon
       btrfs devs = /dev/sdy

-[osd2]
+[osd.2]
       host = zeta
       btrfs devs = /dev/sdx

-[osd3]
+[osd.3]
       host = eta
       btrfs devs = /dev/sdy
--
1.7.0.4

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

--
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

--
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

#6 lore raw

PATCH 3/4 cconf: Update manpage with correct examples

In reply to Wido den Hollander
---
 man/cconf.8 |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
man/cconf.8 +4 -4
index a6c7b02..0f678d2 100644
@@ -25,14 +25,14 @@ of type \fItype\fR.
 \fIconffile\fP, an optional \fIdefault\fP value may be output instead.
 .PP
 .SH EXAMPLES
-To extract the value of the "osd data" option for the \fIosd0\fP daemon,
+To extract the value of the "osd data" option for the \fIosd.0\fP daemon,
 .IP
-cconf -c foo.conf "osd data" -i 0 -t osd
+cconf -c foo.conf -n osd.0 "osd data"
 .PP
-This is equivalent to doing specifying sections \fI[osd0]\fP, \fI[osd.0]\fP,
+This is equivalent to doing specifying sections \fI[osd.0]\fP,
 \fI[osd]\fP, or \fI[global]\fP, in that order of preference:
 .IP
-cconf -c foo.conf "osd data" -s osd0 -s osd.0 -s osd -s global
+cconf -c foo.conf -n osd.0 "osd data" -s osd.0 -s osd -s global
 .PP
 To list all sections that begin with \fIosd\fP:
 .IP
Signature · 1 line
1.7.0.4
#7 lore raw

Re: [PATCH 3/4] cconf: Update manpage with correct examples

Take a look at a6f0ce4294e60dc6d6737c921bdda9111dbc7209, which I did on Friday. Hopefully that is a lot clearer?

Colin

Quoted 32 lines · Wido den Hollander

---
 man/cconf.8 |    8 ++++----

 1 files changed, 4 insertions(+), 4 deletions(-)
man/cconf.8 +0 -0
index a6c7b02..0f678d2 100644
@@ -25,14 +25,14 @@ of type \fItype\fR.

 \fIconffile\fP, an optional \fIdefault\fP value may be output instead. .PP
 .SH EXAMPLES

man/cconf.8 +1 -1
-To extract the value of the "osd data" option for the \fIosd0\fP daemon,
+To extract the value of the "osd data" option for the \fIosd.0\fP daemon,

 .IP

man/cconf.8 +1 -1
-cconf -c foo.conf "osd data" -i 0 -t osd
+cconf -c foo.conf -n osd.0 "osd data"

 .PP

man/cconf.8 +1 -1
-This is equivalent to doing specifying sections \fI[osd0]\fP, \fI[osd.0]\fP,
+This is equivalent to doing specifying sections \fI[osd.0]\fP,

 \fI[osd]\fP, or \fI[global]\fP, in that order of preference:
 .IP

man/cconf.8 +1 -1
-cconf -c foo.conf "osd data" -s osd0 -s osd.0 -s osd -s global
+cconf -c foo.conf -n osd.0 "osd data" -s osd.0 -s osd -s global

 .PP
 To list all sections that begin with \fIosd\fP:
 .IP
--
1.7.0.4

Quoted 5 lines

--
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

--
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

#8 lore raw

PATCH 4/4 radosgw_admin: Update manpage to new syntax

In reply to Wido den Hollander
---
 man/radosgw_admin.8 |   70 ++++++++++++++++++++++++++++++++++----------------
 1 files changed, 47 insertions(+), 23 deletions(-)
man/radosgw_admin.8 +47 -23
index f85685a..702474a 100644
@@ -2,14 +2,23 @@
 .SH NAME
 radosgw_admin \- rados REST gateway user administration utility
 .SH SYNOPSIS
-.B radosgw_admin
-[ \fB\-\-user\-gen\fR ]
-[ \fB\-\-user\-modify\fR ]
-[ \fB\-\-read\-policy\fR ]
-[ \fB\-\-list\-buckets\fR ] [ options ... ]
+.B radosgw_admin <cmd> [options..]
 .SH DESCRIPTION
 .B radosgw_admin
 is a RADOS gateway user administration utility. It allows creating and modifying users.
+.SH COMMANDS
+.TP
+\fBcmd\fR can be one of the following options:
+.IP
+ user create    Create a new user
+ user modify    Modify a user
+ user info      Display information of a user
+ user rm        Remove a user
+ bucket list    List all buckets
+ bucket unlink  Remove a bucket
+ policy         Display bucket/object policy
+ log show       Show the log of a bucket (with a specified date)
+.PP
 .SH OPTIONS
 .TP
 \fB\-c\fI ceph.conf\fR, \fB\-\-conf=\fIceph.conf\fR
@@ -19,40 +28,55 @@ to determine monitor addresses during startup.
 \fB\-m\fI monaddress[:port]\fR
 Connect to specified monitor (instead of looking through \fIceph.conf\fR).
 .TP
-\fB\-\-user\-gen\fR
-Generate a new user.
-.TP
-\fB\-\-user\-modify\fR
-Modify an existing user.
+\fB\-\-uid=\fIuid\fR
+The S3 user/access key.
 .TP
-\fB\-\-read\-policy\fR
-Show the ACL policy of an bucket or object.
-.TP
-\fB\-\-list\-buckets\fR
-Dump the list of buckets that belong to a specific user.
-.TP
-\fB\-\-uid=\fIid\fR
-Specify the user id for this operation.
-.TP
-\fB\-\-secret=\fIkey\fR
-Configure the secret key for this user.
+\fB\-\-secret=\fIsecret\fR
+The S3 secret.
 .TP
 \fB\-\-display\-name=\fIname\fR
 Configure the display name of the user.
 .TP
+\fB\-\-email=\fIemail\fR
+The e-mail address of the user
+.TP
 \fB\-\-bucket=\fIbucket\fR
 Specify the bucket name.
 .TP
 \fB\-\-object=\fIobject\fR
 Specify the object name.
+.TP
+\fB\-\-date=\fIyyyy-mm-dd\fR
+The date need for some commands
+.TP
+\fB\-\-os\-user=\fIgroup:name\fR
+The OpenStack user (only needed for use with OpenStack)
+.TP
+\fB\-\-os\-secret=\fIkey\fR
+The OpenStack key
+.TP
+\fB\-\-auth\-uid=\fIauid\fR
+The librados auid
 .SH EXAMPLES
-To generate a new user:
+Generate a new user
 .IP
- $ ./radosgw_admin --user-gen --display-name="johnny rotten" [email protected]
+ $ radosgw_admin user gen --display-name="johnny rotten" [email protected]
  User ID: CHBQFRTG26I8DGJDGQLW
  Secret Key: QR6cI/31N+J0VKVgHSpEGVSfEEsmf6PyXG040KCB
  Display Name: johnny rotten
 .PP
+Remove a user
+.IP
+ $ radosgw_admin user rm --uid=CHBQFRTG26I8DGJDGQLW
+.PP
+Remove a bucket
+.IP
+ $ radosgw_admin bucket unlink --bucket=foo
+.PP
+Thow the logs of a bucket from April 1st 2011
+.IP
+ $ radosgw_admin log show --bucket=foo --date=2011=04-01
+.PP
 .SH AVAILABILITY
 .B radosgw_admin
 is part of the Ceph distributed file system.  Please refer to the Ceph wiki at
Signature · 1 line
1.7.0.4
Applied
#9 lore raw

Re: [PATCH 4/4] radosgw_admin: Update manpage to new syntax

applied

C.

Quoted 116 lines · Wido den Hollander

---
 man/radosgw_admin.8 |   70 ++++++++++++++++++++++++++++++++++----------------

 1 files changed, 47 insertions(+), 23 deletions(-)
man/radosgw_admin.8 +0 -0
index f85685a..702474a 100644
@@ -2,14 +2,23 @@

 .SH NAME
 radosgw_admin \- rados REST gateway user administration utility
 .SH SYNOPSIS
-.B radosgw_admin
-[ \fB\-\-user\-gen\fR ]
-[ \fB\-\-user\-modify\fR ]
-[ \fB\-\-read\-policy\fR ]
-[ \fB\-\-list\-buckets\fR ] [ options ... ]
+.B radosgw_admin <cmd> [options..]
 .SH DESCRIPTION
 .B radosgw_admin
 is a RADOS gateway user administration utility. It allows creating and modifying users. +.SH COMMANDS
+.TP
+\fBcmd\fR can be one of the following options:
+.IP
+ user create    Create a new user
+ user modify    Modify a user
+ user info      Display information of a user
+ user rm        Remove a user
+ bucket list    List all buckets
+ bucket unlink  Remove a bucket
+ policy         Display bucket/object policy
+ log show       Show the log of a bucket (with a specified date)
+.PP
 .SH OPTIONS
 .TP
 \fB\-c\fI ceph.conf\fR, \fB\-\-conf=\fIceph.conf\fR

man/radosgw_admin.8 +0 -0
@@ -19,40 +28,55 @@ to determine monitor addresses during startup.

 \fB\-m\fI monaddress[:port]\fR
 Connect to specified monitor (instead of looking through \fIceph.conf\fR). .TP
-\fB\-\-user\-gen\fR

man/radosgw_admin.8 +2 -4
-Generate a new user.
-.TP
-\fB\-\-user\-modify\fR
-Modify an existing user.
+\fB\-\-uid=\fIuid\fR
+The S3 user/access key.

 .TP
-\fB\-\-read\-policy\fR

man/radosgw_admin.8 +2 -10
-Show the ACL policy of an bucket or object.
-.TP
-\fB\-\-list\-buckets\fR
-Dump the list of buckets that belong to a specific user.
-.TP
-\fB\-\-uid=\fIid\fR
-Specify the user id for this operation.
-.TP
-\fB\-\-secret=\fIkey\fR
-Configure the secret key for this user.
+\fB\-\-secret=\fIsecret\fR
+The S3 secret.

 .TP
 \fB\-\-display\-name=\fIname\fR
 Configure the display name of the user.
 .TP
+\fB\-\-email=\fIemail\fR
+The e-mail address of the user
+.TP
 \fB\-\-bucket=\fIbucket\fR
 Specify the bucket name.
 .TP
 \fB\-\-object=\fIobject\fR
 Specify the object name.
+.TP
+\fB\-\-date=\fIyyyy-mm-dd\fR

man/radosgw_admin.8 +10 -0
+The date need for some commands
+.TP
+\fB\-\-os\-user=\fIgroup:name\fR
+The OpenStack user (only needed for use with OpenStack)
+.TP
+\fB\-\-os\-secret=\fIkey\fR
+The OpenStack key
+.TP
+\fB\-\-auth\-uid=\fIauid\fR
+The librados auid

 .SH EXAMPLES

man/radosgw_admin.8 +1 -1
-To generate a new user:
+Generate a new user

 .IP
- $ ./radosgw_admin --user-gen --display-name="johnny rotten" [email protected]
+ $ radosgw_admin user gen --display-name="johnny rotten" [email protected] User ID: CHBQFRTG26I8DGJDGQLW
 Secret Key: QR6cI/31N+J0VKVgHSpEGVSfEEsmf6PyXG040KCB
 Display Name: johnny rotten
 .PP

man/radosgw_admin.8 +12 -0
+Remove a user
+.IP
+ $ radosgw_admin user rm --uid=CHBQFRTG26I8DGJDGQLW
+.PP
+Remove a bucket
+.IP
+ $ radosgw_admin bucket unlink --bucket=foo
+.PP
+Thow the logs of a bucket from April 1st 2011
+.IP
+ $ radosgw_admin log show --bucket=foo --date=2011=04-01
+.PP

 .SH AVAILABILITY
 .B radosgw_admin
 is part of the Ceph distributed file system.  Please refer to the Ceph wiki at --
1.7.0.4

Quoted 5 lines

--
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

--
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