Statistics
| Branch: | Tag: | Revision:

root / docs / cyclades-admin-tools.rst @ 5505e60c

History | View | Annotate | Download (2.1 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*, and *token* are set as needed:
10

    
11
.. code-block:: console
12

    
13
  kamaki config list
14

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

    
17
.. code-block:: console
18

    
19
  kamaki config set image_url https://cyclades.example.com/plankton
20
  kamaki config set storage_url https://pithos.example.com/v1
21
  kamaki config set token ...
22

    
23

    
24
Upload an image
25
---------------
26

    
27
As a shortcut, you can configure a default account and container that will be
28
used by the ``kamaki store`` commands:
29

    
30
.. code-block:: console
31

    
32
  kamaki config set storage_account images@example.com
33
  kamaki config set storage_container images
34

    
35
If the container does not exist, you will have to create it before uploading
36
any images:
37

    
38
.. code-block:: console
39

    
40
  kamaki store create images
41

    
42
You are now ready to upload an image. You can upload it with a Pithos client
43
or use kamaki directly:
44

    
45
.. code-block:: console
46

    
47
  kamaki store upload ubuntu.iso
48

    
49
You can use any Pithos client to verify that the image was uploaded correctly.
50
The full Pithos URL for the previous example will be
51
``pithos://images@example.com/images/ubuntu.iso``.
52

    
53

    
54
Register the image
55
------------------
56

    
57
To register an image you will need to use the full Pithos URL. To register as
58
a public image the one from the previous example use:
59

    
60
.. code-block:: console
61

    
62
  kamaki glance register Ubuntu pithos://images@example.com/images/ubuntu.iso --public
63

    
64
The ``--public`` flag is important, if missing the registered image will not
65
be listed by ``kamaki glance list``.
66

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

    
70
.. code-block:: console
71

    
72
  kamaki glance register Ubuntu pithos://images@example.com/images/ubuntu.iso \
73
      --public --disk-format diskdump --property kernel=3.1.2
74

    
75
To verify that the image was registered successfully use:
76

    
77
.. code-block:: console
78

    
79
  kamaki glance list -l