Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
b98ad4ba
Commit
b98ad4ba
authored
Sep 05, 2013
by
Stavros Sachtouris
Browse files
Update image register examples to new behavior
Refs: #4276
parent
7bbfeb1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/collection_of_examples/imageregister.rst
View file @
b98ad4ba
...
@@ -6,17 +6,18 @@ then is registered to the image service (Plankton). The image location at the
...
@@ -6,17 +6,18 @@ then is registered to the image service (Plankton). The image location at the
storage server is unique through out a deployment and also necessary for the
storage server is unique through out a deployment and also necessary for the
image to exist.
image to exist.
The image location format::
The image location format
at user level
::
pithos://<user id>/
<container>
/
<object path>
<container>
:
<object path>
e.g.:
e.g.:
pithos:
//s0m3-u53r-1d/pithos/
debian_base3.diskdump
pithos:debian_base3.diskdump
The crussial element in an image location is the container (e.g. `pithos`) and
The crussial element in an image location is the container (e.g. `pithos`) and
the image object path (e.g. `debian_base3.diskdump`).
the image object path (e.g. `debian_base3.diskdump`).
Register an image
Register an image
-----------------
-----------------
...
@@ -58,6 +59,22 @@ Register the image object with the name 'Debian Base Alpha'
...
@@ -58,6 +59,22 @@ Register the image object with the name 'Debian Base Alpha'
uploads it to the same location as the image. The meta file can be
uploads it to the same location as the image. The meta file can be
downloaded and reused for more image registrations.
downloaded and reused for more image registrations.
Another way to perform the two operations above is to call **/image register**
with the **\- -upload-image-file** argument. This single operation will upload
the image file and then register it as an image, and is equivalent to manually
calling **/file upload** and **/image register**.
In other words, the example that follows is equivalent to calling the two
operations above.
.. code-block:: console
[kamaki]: image register 'Debian Base Alpha'
pithos:debian_base3.diskdump
--upload-image-file='debian_base3.diskdump'
[kamaki]:
Read the metafile
Read the metafile
.. code-block:: console
.. code-block:: console
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment