Statistics
| Branch: | Tag: | Revision:

root / snf-app / docs / src / admin_tools.rst @ 42fb1393

History | View | Annotate | Download (1.5 kB)

1
Administration Tools User's Guide
2
=================================
3

    
4
Configure kamaki
5
----------------
6

    
7
To upload, register or modify an image you will need the **kamaki** tool.
8
Before proceeding make sure that it is configured properly. Verify that
9
*image_url*, *storage_url*, *storage_account*, *storage_container* and
10
*token* are set as needed:
11

    
12
.. code-block:: console
13

    
14
  kamaki config list
15

    
16
To chage a setting use ``kamaki config set``:
17

    
18
.. code-block:: console
19

    
20
  kamaki config set storage_account okeanos
21
  kamaki config set storage_container images
22
  kamaki config set token ...
23

    
24

    
25
Upload an image
26
---------------
27

    
28
You are now ready to upload an image. You can upload it with a Pithos client
29
or use kamaki directly:
30

    
31
.. code-block:: console
32

    
33
  kamaki store upload ubuntu.iso
34

    
35
You can use any Pithos client to verify that the image was uploaded correctly.
36

    
37

    
38
Register the image
39
------------------
40

    
41
To register an image you will need to use the full Pithos URL. To register as
42
a public image the one from the previous example use:
43

    
44
.. code-block:: console
45

    
46
  kamaki glance register Ubuntu pithos://okeanos/images/ubuntu.iso --public
47

    
48
Use ``kamaki glance register`` with no arguments to see a list of available
49
options. A more complete example would be the following:
50

    
51
.. code-block:: console
52

    
53
  kamaki glance register Ubuntu pithos://okeanos/images/ubuntu.iso --public \
54
      --disk-format diskdump --property kernel=3.1.2
55

    
56
To verify that the image was registered successfully use:
57

    
58
.. code-block:: console
59

    
60
  kamaki glance list -l