Merge lp:~jaypipes/glance/bug704842 into lp:~hudson-openstack/glance/trunk

Proposed by Jay Pipes
Status: Merged
Approved by: Jay Pipes
Approved revision: 45
Merged at revision: 45
Proposed branch: lp:~jaypipes/glance/bug704842
Merge into: lp:~hudson-openstack/glance/trunk
Diff against target: 383 lines (+280/-10)
7 files modified
doc/source/conf.py (+14/-2)
doc/source/gettingstarted.rst (+123/-0)
doc/source/index.rst (+1/-0)
doc/source/man/glanceapi.rst (+63/-0)
doc/source/man/glanceregistry.rst (+58/-0)
doc/source/registries.rst (+5/-5)
setup.py (+16/-3)
To merge this branch: bzr merge lp:~jaypipes/glance/bug704842
Reviewer Review Type Date Requested Status
Ed Leafe (community) Approve
Rick Harris (community) Approve
Devin Carlen (community) Approve
Soren Hansen Pending
Review via email: mp+46834@code.launchpad.net

Description of the change

Adds man pages for glance-registry and glance-api programs. Adds Getting Started guide to the Glance documentation.

Fixes Bug #704842

To post a comment you must log in.
Revision history for this message
Devin Carlen (devcamcar) wrote :

lgtm

review: Approve
Revision history for this message
Rick Harris (rconradharris) wrote :

Great work Jay, thanks!

review: Approve
Revision history for this message
Ed Leafe (ed-leafe) wrote :

lgtm

review: Approve
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

The attempt to merge lp:~jaypipes/glance/bug704842 into lp:glance failed. Below is the output from the failed tests.

Traceback (most recent call last):
  File "setup.py", line 23, in <module>
    class local_BuildDoc(BuildDoc):
NameError: name 'BuildDoc' is not defined

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/source/conf.py'
2--- doc/source/conf.py 2011-01-04 22:00:37 +0000
3+++ doc/source/conf.py 2011-01-21 18:02:13 +0000
4@@ -76,9 +76,9 @@
5 # built documents.
6 #
7 # The short X.Y version.
8-version = '1.0'
9+version = '0.1'
10 # The full version, including alpha/beta/rc tags.
11-release = '1.0.2'
12+release = '0.1.2'
13
14 # The language for content autogenerated by Sphinx. Refer to documentation
15 # for a list of supported languages.
16@@ -117,6 +117,18 @@
17 # A list of ignored prefixes for module index sorting.
18 modindex_common_prefix = ['glance.']
19
20+# -- Options for man page output -----------------------------------------------
21+
22+# Grouping the document tree for man pages.
23+# List of tuples 'sourcefile', 'target', u'title', u'Authors name', 'manual'
24+
25+man_pages = [
26+ ('man/glanceapi', 'glance-api', u'Glance API Server',
27+ [u'OpenStack'], 1),
28+ ('man/glanceregistry', 'glance-registry', u'Glance Registry Server',
29+ [u'OpenStack'], 1)
30+ ]
31+
32
33 # -- Options for HTML output -------------------------------------------------
34
35
36=== added file 'doc/source/gettingstarted.rst'
37--- doc/source/gettingstarted.rst 1970-01-01 00:00:00 +0000
38+++ doc/source/gettingstarted.rst 2011-01-21 18:02:13 +0000
39@@ -0,0 +1,123 @@
40+..
41+ Copyright 2010 OpenStack, LLC
42+ All Rights Reserved.
43+
44+ Licensed under the Apache License, Version 2.0 (the "License"); you may
45+ not use this file except in compliance with the License. You may obtain
46+ a copy of the License at
47+
48+ http://www.apache.org/licenses/LICENSE-2.0
49+
50+ Unless required by applicable law or agreed to in writing, software
51+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
52+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
53+ License for the specific language governing permissions and limitations
54+ under the License.
55+
56+Quick Guide to Getting Started with Glance
57+==========================================
58+
59+Glance is a server that provides the following services:
60+
61+* Ability to store and retrieve virtual machine images
62+* Ability to store and retrieve metadata about these virtual machine images
63+* FUTURE: Convert a virtual machine image from one format to another
64+* FUTURE: Help caching proxies such as Varnish or Squid cache machine images
65+
66+Communication with Glance occurs via a REST-like HTTP interface.
67+
68+However, Glance includes a :doc:`Client <client>` class that makes working with Glance
69+easy and straightforward.
70+
71+In the Cactus release, there will be also command-line tools for
72+interacting with Glance.
73+
74+Overview of Glance Architecture
75+-------------------------------
76+
77+There are two main parts to Glance's architecture:
78+
79+* Glance API server
80+* Glance Registry server(s)
81+
82+Glance API Server
83+*****************
84+
85+The API server is the main interface for Glance. It routes requests from
86+clients to registries of image metadata and to its **backend stores**, which
87+are the mechanisms by which Glance actually saves incoming virtual machine
88+images.
89+
90+The backend stores that Glance can work with are as follows:
91+
92+* **Swift**
93+
94+ Swift is the highly-available object storage project in OpenStack. More
95+ information can be found about Swift `here <http://swift.openstack.org>`_.
96+
97+* **Filesystem**
98+
99+ The default backend that Glance uses to store virtual machine images
100+ is the filesystem backend. This simple backend writes image files to the
101+ local filesystem.
102+
103+* **S3**
104+
105+ This backend allows Glance to store virtual machine images in Amazon's
106+ S3 service.
107+
108+* **HTTP**
109+
110+ Glance can read virtual machine images that are available via
111+ HTTP somewhere on the Internet. This store is **readonly**
112+
113+Glance Registry Servers
114+***********************
115+
116+Glance registry servers are servers that conform to the Glance Registry API.
117+Glance ships with a reference implementation of a registry server that
118+complies with this API (``bin/glance-registry``).
119+
120+
121+Starting Up Glance's Servers
122+----------------------------
123+
124+To get started using Glance, you must first start the Glance API server.
125+After installing Glance, starting up the Glance API server is easy. Simply
126+start the ``glance-api`` program, like so::
127+
128+ $> glance-api
129+
130+Configuring the Glance API server
131+*********************************
132+
133+There are a few options that can be supplied to the API server when
134+starting it up:
135+
136+* ``verbose``
137+
138+ Show more verbose/debugging output
139+
140+* ``api_host``
141+
142+ Address of the host the registry runs on. Defaults to 0.0.0.0.
143+
144+* ``api_port``
145+
146+ Port the registry server listens on. Defaults to 9292.
147+
148+* ``default_store``
149+
150+ The store that the Glance API server will use by default to store
151+ images that are added to it. The default value is `filesystem`, and
152+ possible choices are: `filesystem`, `swift`, and `s3`.
153+
154+* ``filesystem_store_datadir``
155+
156+ Directory where the filesystem store can write images to. This directory
157+ must be writeable by the user that runs ``glance-api``
158+
159+.. todo::
160+
161+Link to docs on the different stores when the documentation on Glance
162+stores is complete.
163
164=== modified file 'doc/source/index.rst'
165--- doc/source/index.rst 2011-01-17 18:09:14 +0000
166+++ doc/source/index.rst 2011-01-21 18:02:13 +0000
167@@ -57,6 +57,7 @@
168 .. toctree::
169 :maxdepth: 1
170
171+ gettingstarted
172 glanceapi
173 client
174
175
176=== added directory 'doc/source/man'
177=== added file 'doc/source/man/glanceapi.rst'
178--- doc/source/man/glanceapi.rst 1970-01-01 00:00:00 +0000
179+++ doc/source/man/glanceapi.rst 2011-01-21 18:02:13 +0000
180@@ -0,0 +1,63 @@
181+==========
182+glance-api
183+==========
184+
185+---------------------------------------
186+Server for the Glance Image Service API
187+---------------------------------------
188+
189+:Author: glance@lists.launchpad.net
190+:Date: 2010-11-16
191+:Copyright: OpenStack LLC
192+:Version: 0.1.2
193+:Manual section: 1
194+:Manual group: cloud computing
195+
196+SYNOPSIS
197+========
198+
199+ glance-api [options]
200+
201+DESCRIPTION
202+===========
203+
204+glance-api is a server daemon that serves the Glance API
205+
206+OPTIONS
207+=======
208+
209+ **General options**
210+
211+ **-v, --verbose**
212+ Print more verbose output
213+
214+ **--api_host=HOST**
215+ Address of host running ``glance-api``. Defaults to `0.0.0.0`.
216+
217+ **--api_port=PORT**
218+ Port that ``glance-api`` listens on. Defaults to `9292`.
219+
220+ **--default_store=STORE**
221+ The default backend store that Glance should use when storing virtual
222+ machine images. The default value is `filesystem`. Choices are any of
223+ `filesystem`, `swift`, or `s3`
224+
225+ **--filesystem_store_datadir=DIR**
226+ The directory that the `filesystem` backend store should use to write
227+ virtual machine images. This directory should be writeable by the user
228+ running ``glance-api``
229+
230+FILES
231+========
232+
233+None
234+
235+SEE ALSO
236+========
237+
238+* `OpenStack Glance <http://glance.openstack.org>`__
239+
240+BUGS
241+====
242+
243+* Glance is sourced in Launchpad so you can view current bugs at `OpenStack Glance <http://glance.openstack.org>`__
244
245=== added file 'doc/source/man/glanceregistry.rst'
246--- doc/source/man/glanceregistry.rst 1970-01-01 00:00:00 +0000
247+++ doc/source/man/glanceregistry.rst 2011-01-21 18:02:13 +0000
248@@ -0,0 +1,58 @@
249+===============
250+glance-registry
251+===============
252+
253+--------------------------------------
254+Server for the Glance Registry Service
255+--------------------------------------
256+
257+:Author: glance@lists.launchpad.net
258+:Date: 2010-11-16
259+:Copyright: OpenStack LLC
260+:Version: 0.1.2
261+:Manual section: 1
262+:Manual group: cloud computing
263+
264+SYNOPSIS
265+========
266+
267+ glance-registry [options]
268+
269+DESCRIPTION
270+===========
271+
272+glance-registry is the reference implementation of a server daemon that serves
273+image metadata based on the Glance Registry REST-like API.
274+
275+OPTIONS
276+=======
277+
278+ **General options**
279+
280+ **-v, --verbose**
281+ Print more verbose output
282+
283+ **--registry_host=HOST**
284+ Address of host running ``glance-registry``. Defaults to `0.0.0.0`.
285+
286+ **--registry_port=PORT**
287+ Port that ``glance-registry`` listens on. Defaults to `9191`.
288+
289+ **--sql_connection=CONN_STRING**
290+ A proper SQLAlchemy connection string as described
291+ `here <http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html?highlight=engine#sqlalchemy.create_engine>`_
292+
293+FILES
294+========
295+
296+None
297+
298+SEE ALSO
299+========
300+
301+* `OpenStack Glance <http://glance.openstack.org>`__
302+
303+BUGS
304+====
305+
306+* Glance is sourced in Launchpad so you can view current bugs at `OpenStack Glance <http://glance.openstack.org>`__
307
308=== modified file 'doc/source/registries.rst'
309--- doc/source/registries.rst 2011-01-18 21:01:49 +0000
310+++ doc/source/registries.rst 2011-01-21 18:02:13 +0000
311@@ -21,13 +21,13 @@
312 `registries`. Image registries are any web service that adheres to the
313 Glance REST-like API for image metadata.
314
315-Glance comes with a server program ``bin/glance-registry`` that acts
316+Glance comes with a server program ``glance-registry`` that acts
317 as a reference implementation of a Glance Registry.
318
319-Using ``bin/glance-registry``
320------------------------------
321+Using ``glance-registry``, the Glance Registry reference implementation
322+-----------------------------------------------------------------------
323
324-As mentioned above, ``bin/glance-registry`` is the reference registry
325+As mentioned above, ``glance-registry`` is the reference registry
326 server implementation that ships with Glance. It uses a SQL database
327 to store information about an image, and publishes this information
328 via an HTTP/REST-like interface.
329@@ -38,7 +38,7 @@
330 Starting the Glance registry server is trivial. Simply call the program
331 from the command line, as the following example shows::
332
333- jpipes@serialcoder:~/repos/glance/trunk$ ./bin/glance-registry
334+ $> glance-registry
335 (5588) wsgi starting up on http://0.0.0.0:9191/
336
337 Configuring the server
338
339=== modified file 'setup.py'
340--- setup.py 2011-01-18 17:31:40 +0000
341+++ setup.py 2011-01-21 18:02:13 +0000
342@@ -14,10 +14,20 @@
343 # See the License for the specific language governing permissions and
344 # limitations under the License.
345
346+import os
347+import subprocess
348+
349 from setuptools import setup, find_packages
350 from setuptools.command.sdist import sdist
351-import os
352-import subprocess
353+from sphinx.setup_command import BuildDoc
354+
355+
356+class local_BuildDoc(BuildDoc):
357+ def run(self):
358+ for builder in ['html', 'man']:
359+ self.builder = builder
360+ self.finalize_options()
361+ BuildDoc.run(self)
362
363
364 class local_sdist(sdist):
365@@ -38,6 +48,9 @@
366 name = 'glance'
367 version = '0.1.3pre'
368
369+cmdclass = {'sdist': local_sdist,
370+ 'build_sphinx': local_BuildDoc}
371+
372 setup(
373 name=name,
374 version=version,
375@@ -48,7 +61,7 @@
376 url='https://launchpad.net/glance',
377 packages=find_packages(exclude=['tests', 'bin']),
378 test_suite='nose.collector',
379- cmdclass={'sdist': local_sdist},
380+ cmdclass=cmdclass,
381 classifiers=[
382 'Development Status :: 4 - Beta',
383 'License :: OSI Approved :: Apache Software License',

Subscribers

People subscribed via source and target branches