Revision 42fb1393
b/snf-app/docs/src/admin_tools.rst | ||
---|---|---|
7 | 7 |
To upload, register or modify an image you will need the **kamaki** tool. |
8 | 8 |
Before proceeding make sure that it is configured properly. Verify that |
9 | 9 |
*image_url*, *storage_url*, *storage_account*, *storage_container* and |
10 |
*token* are set as needed:: |
|
10 |
*token* are set as needed: |
|
11 |
|
|
12 |
.. code-block:: console |
|
11 | 13 |
|
12 | 14 |
kamaki config list |
13 | 15 |
|
14 |
To chage a setting use ``kamaki config set``:: |
|
16 |
To chage a setting use ``kamaki config set``: |
|
17 |
|
|
18 |
.. code-block:: console |
|
15 | 19 |
|
16 | 20 |
kamaki config set storage_account okeanos |
17 | 21 |
kamaki config set storage_container images |
... | ... | |
22 | 26 |
--------------- |
23 | 27 |
|
24 | 28 |
You are now ready to upload an image. You can upload it with a Pithos client |
25 |
or use kamaki directly:: |
|
29 |
or use kamaki directly: |
|
30 |
|
|
31 |
.. code-block:: console |
|
26 | 32 |
|
27 | 33 |
kamaki store upload ubuntu.iso |
28 | 34 |
|
... | ... | |
33 | 39 |
------------------ |
34 | 40 |
|
35 | 41 |
To register an image you will need to use the full Pithos URL. To register as |
36 |
a public image the one from the previous example use:: |
|
42 |
a public image the one from the previous example use: |
|
43 |
|
|
44 |
.. code-block:: console |
|
37 | 45 |
|
38 | 46 |
kamaki glance register Ubuntu pithos://okeanos/images/ubuntu.iso --public |
39 | 47 |
|
40 | 48 |
Use ``kamaki glance register`` with no arguments to see a list of available |
41 |
options. A more complete example would be the following:: |
|
49 |
options. A more complete example would be the following: |
|
50 |
|
|
51 |
.. code-block:: console |
|
42 | 52 |
|
43 | 53 |
kamaki glance register Ubuntu pithos://okeanos/images/ubuntu.iso --public \ |
44 | 54 |
--disk-format diskdump --property kernel=3.1.2 |
45 | 55 |
|
46 |
To verify that the image was registered successfully use:: |
|
56 |
To verify that the image was registered successfully use: |
|
57 |
|
|
58 |
.. code-block:: console |
|
47 | 59 |
|
48 | 60 |
kamaki glance list -l |
Also available in: Unified diff