Statistics
| Branch: | Tag: | Revision:

root / docs / scale / i-kamaki.rst @ 84809111

History | View | Annotate | Download (2.6 kB)

1
.. _i-kamaki:
2

    
3
Synnefo
4
-------
5

    
6

    
7
:ref:`synnefo <i-synnefo>` ||
8
:ref:`ns <i-ns>` ||
9
:ref:`apt <i-apt>` ||
10
:ref:`mq <i-mq>` ||
11
:ref:`db <i-db>` ||
12
:ref:`gunicorn <i-gunicorn>` ||
13
:ref:`apache <i-apache>` ||
14
:ref:`webproject <i-webproject>` ||
15
:ref:`astakos <i-astakos>` ||
16
:ref:`qh <i-qh>` ||
17
:ref:`cms <i-cms>` ||
18
:ref:`pithos <i-pithos>` ||
19
:ref:`cyclades <i-cyclades>` ||
20
kamaki ||
21
:ref:`backends <i-backends>`
22

    
23
kamaki Setup
24
++++++++++++
25

    
26
The following apply to ``client`` node. Here we install a command line tool
27
that the end-user can use instead of web UI. Prerequisites are that the client
28
node can connect to synnefo nodes by using their FQDN and that the user has
29
already aquired an AUTH_TOKEN and UUID from his/her profile page after signing
30
in.
31

    
32
Install the corresponding package:
33

    
34
.. code-block:: console
35

    
36
    # apt-get install kamaki
37

    
38
and build the correct config file:
39

    
40
.. code-block:: console
41

    
42
    # kamaki config set astakos.url "https://accounts.example.com"
43
    # kamaki config set compute.url "https://cyclades.example.com/api/v1.1"
44
    # kamaki config set image.url "https://cyclades.example.com/plankton"
45
    # kamaki config set store.enable on
46
    # kamaki config set store.pithos_extensions on
47
    # kamaki config set store.url "https://pithos.example.com/v1"
48
    # kamaki config set store.account UUID
49

    
50
    # kamaki config set global.token AUTH_TOKEN
51

    
52

    
53
Please download a Debian Base image from our repo:
54

    
55

    
56
.. code-block:: console
57

    
58
    # wget https://pithos.okeanos.grnet.gr/public/66ke3 -O /tmp/debian_base.diskdump
59

    
60
create a container in pithos, upload it:
61

    
62
.. code-block:: console
63

    
64
   # kamaki store create images
65
   # kamaki store upload --container images /tmp/debian_base.diskdump debian_base.diskdump
66

    
67
and register it to plankton:
68

    
69
.. code-block:: console
70

    
71
   # kamaki image register "Debian Base"  pithos://user@example/images/debian_base.diskdump \
72
                    --disk-format=diskdump \
73
                    --property OSFAMILY=linux \
74
                    --property ROOT_PARTITION=1 \
75
                    --property description="Debian Squeeze Base System" \
76
                    --property size=450M \
77
                    --property kernel=2.6.32 \
78
                    --property GUI="No GUI" \
79
                    --property sortorder=1 \
80
                    --property USERS=root \
81
                    --property OS=debian \
82
                    --public
83

    
84
Test your Setup:
85
++++++++++++++++
86

    
87
.. code-block:: console
88

    
89
   # kamaki store list
90
   # kamaki image list
91

    
92
And visit https://cyclades.example.com/ui/ and try to create a VM with the registered image
93
or visit https://pithos.example.com/ui/ and see your uploaded image.