Commit Graph

1193 Commits

Author SHA1 Message Date
Dan Mick
8af47755af ceph-rest-api: clean up options/environment
ceph-rest-api:
* create app from wrapper by calling generate_app()
* pass args to generate_app() (early parsed in wrapper)
* parse -i/--id here as well
* set addr:port on returned app object
* handle only EnvironmentError exceptions; let others spew traceback
* turn off debug when running singlethreaded server

ceph_rest_api.py:
* put glob.* on app.ceph_* instead; pass around app in init code
* drop conf parsing (let librados do its job)

Documentation updated to match.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-07-26 21:38:12 -07:00
Sage Weil
2bf95e5a1c Merge branch 'next' 2013-07-15 13:20:32 -07:00
John Wilkins
55ff523ef2 doc: Fixed link in Calxeda repo instruction.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-07-15 10:05:28 -07:00
Noah Watkins
d277edd24a Merge branch 'wip-hadoop-doc'
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-07-14 16:32:28 -07:00
Noah Watkins
6ef48c7ec2 doc: update Hadoop docs with plugin download
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-07-14 16:31:33 -07:00
Noah Watkins
a805958f89 doc: document new hadoop config options
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2013-07-14 16:31:33 -07:00
Dan Mick
b5659b5e7f Merge branch 'wip-wsgi' into next
* wip-wsgi:
  ceph-rest-api: separate into module and front-end for WSGI deploy
  ceph-rest-api: make main program be "shell" around WSGI guts

  Reviewed-by: Sage Weil <sage@inktank.com>
2013-07-12 16:38:28 -07:00
Dan Mick
cc10988850 ceph-rest-api: separate into module and front-end for WSGI deploy
To deploy ceph-rest-api within a WSGI server (apache/mod_wsgi,
nginx/uwsgi, etc.), there needs to be an importable (.py) module
that performs all init/config when imported.  ceph-rest-api was
close, but it needs to be named properly, and there's no argument
passing, so it needs to get args from a fixed file or the env.

Separate most of ceph-rest-api into pybind/ceph_rest_api.py, and make
its arguments come from the environment, and init errors be
ImportError exceptions.  Recase ceph-rest-api as a thin layer that
does the usual setup and arg parsing, and then sets args into the
environment and imports ceph_rest_api.py, catching exceptions and
reporting errors.  This allows standalone execution as usual.
ceph-rest-api grabs a few module globals (addr/port and the flask.app)
to use after it imports.

Accept cluster name, and do the ceph.conf search using cluster name
in the appropriate places in the searched-for files.

Also ceph_rest_api.py gets a little cleanup (fewer global variables,
cleaner conf file search algorithm, better error reporting on conf
load)

Also: doc updates, packaging updates to include ceph_rest_api.py

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-12 16:37:32 -07:00
Sage Weil
e390f44b4a Merge remote-tracking branch 'gh/wip-corpus' into next
Rgw bits Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
2013-07-12 13:06:35 -07:00
Sage Weil
b8fad05912 doc/dev: add corpus.rst
Structure of the corpus dir, how to add to it.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-12 10:36:47 -07:00
Dan Mick
e4d063b082 ceph-rest-api manpage
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-10 20:58:51 -07:00
Sage Weil
aa7448cd17 Merge pull request #415 from ceph/rgw-next 2013-07-09 15:34:05 -07:00
Sage Weil
c5157dde9f doc/release-notes: v0.66
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-09 11:45:34 -07:00
John Wilkins
5edc1ff7ea doc: Added Ceph Object Storage installation instructions for CentOS/RHEL 6.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-07-08 18:11:25 -07:00
Christophe Courtaut
eec903a6ec doc: Fix env variables in vstart.sh documentation
Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
2013-07-08 22:19:21 +02:00
Christophe Courtaut
a793e203fd doc: Add a page to document vstart.sh script
Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
2013-07-04 14:08:41 +02:00
John Wilkins
e0da832a5e doc: Added write caps. Required for auto-creating pools.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-07-03 15:26:52 -07:00
John Wilkins
94742d4c69 doc: Minor fix.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-07-01 17:06:22 -07:00
John Wilkins
13f9c184c4 doc: Created an install page for Calxeda development packages.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-27 16:31:44 -07:00
Gary Lowell
5511daf345 doc: public network statement needed on new monitors.
When using ceph-deploy to create a new monitor on a host that is not
in the initial set of hosts defined by the ceph-deploy new command,
a "public network" statement needs to be added to the ceph.conf file.
Fixes #5195.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-06-26 06:27:17 -07:00
Sage Weil
5680fa1e85 doc/release-notes: v0.65
Signed-off-by: Sage Weil <sage@inktank.com>
2013-06-25 14:14:39 -07:00
Sage Weil
c8af85d451 doc/release-notes: v0.61.4
Signed-off-by: Sage Weil <sage@inktank.com>
2013-06-20 08:08:14 -07:00
John Wilkins
75b6c82912 doc: Fixed OpenStack Keystone instruction.
fixes: #5178
2013-06-18 15:14:30 -07:00
John Wilkins
97f1322cdb doc: Updated deployment preflight.
fixes: #5266

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-18 14:26:30 -07:00
John Wilkins
0d3517b2ed doc: Added index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:58:29 -07:00
John Wilkins
fb07f9df3d doc: Added index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:58:04 -07:00
John Wilkins
fd423fce43 doc: Added index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:57:48 -07:00
John Wilkins
8a5b276022 doc: Added index tag.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:57:31 -07:00
John Wilkins
d5dbc2f22b doc: Updated usage and index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:57:15 -07:00
John Wilkins
ceba9537a2 doc: Updated usage and index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:56:58 -07:00
John Wilkins
81d4f9d9e0 doc: Added introductory section. Updated usage. Index tags.
fixes: #3220

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:56:39 -07:00
John Wilkins
0b604fb441 doc: Index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:54:52 -07:00
John Wilkins
f851c5d47f doc: Update for usage and index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:54:36 -07:00
John Wilkins
4a79fabd41 doc: Update for usage. Index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:54:14 -07:00
John Wilkins
20e68b748b doc: Updated for glossary usage. Index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:53:56 -07:00
John Wilkins
44bf35a2cb doc: Updated index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:53:20 -07:00
John Wilkins
a529882a5b doc: Updated index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:52:46 -07:00
John Wilkins
8f8fd7a915 doc: Updated index tags.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:52:25 -07:00
John Wilkins
2be167010e doc: Minor updates.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:06:59 -07:00
John Wilkins
b3a143d977 doc: Minor updates for usage.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-14 16:06:06 -07:00
John Wilkins
51dae8ad7c doc: Updated with glossary terms.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-13 14:09:35 -07:00
Sage Weil
cb57c41c24 doc/release-notes: add missed notes for 0.63 and 0.64
Signed-off-by: Sage Weil <sage@inktank.com>
2013-06-13 10:19:39 -07:00
Loic Dachary
169c5de4a4 add apt-get update to installation instructions
Without apt-get update the repository added to the sources.list is not taken into consideration and an older version of ceph-deploy is going to be installed.

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-06-13 08:57:07 +02:00
Sage Weil
1c77be0c2e doc/release-notes: v0.63 and v0.64 notes
Signed-off-by: Sage Weil <sage@inktank.com>
2013-06-12 15:29:42 -07:00
atwardowski
299f6a6609 Usage log and ops log are disabled by defaults since 0.56
http://ceph.com/docs/next/release-notes/#v0-56-bobtail
2013-06-12 17:48:44 -03:00
John Wilkins
5f0007e6a9 doc: Reworked the landing page.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-11 15:32:23 -07:00
John Wilkins
dc6cadc34a doc: Added a hostname resolution section for local host execution.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-11 14:46:35 -07:00
John Wilkins
f6c51b486d doc: Added some tips and re-organized to simplify the process.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-11 14:46:12 -07:00
John Wilkins
c7fb7a3f46 doc: Added some Java S3 API troubleshooting entries.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-11 12:12:46 -07:00
John Wilkins
6c557d569d doc: Added install ceph-common instruction.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-06-11 12:11:51 -07:00