Statistics
| Branch: | Tag: | Revision:

root / docs / scale / i-ganeti.rst @ 301294a9

History | View | Annotate | Download (2.2 kB)

1
.. _i-ganeti:
2

    
3
Synnefo
4
-------
5

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

    
21
Backends
22
++++++++
23

    
24
ganeti ||
25
:ref:`image <i-image>` ||
26
:ref:`gtools <i-gtools>` ||
27
:ref:`network <i-network>`
28

    
29

    
30
Ganeti Setup
31
~~~~~~~~~~~~
32

    
33
In ``ganeti`` nodes install GRNet specific Ganeti package and enable drbd:
34

    
35
.. code-block:: console
36

    
37
   # apt-get install python-bitarray
38
   # apt-get install snf-ganeti ganeti-htools
39
   # modprobe drbd minor_count=255 usermode_helper=/bin/true
40

    
41

    
42
The following apply to ``master`` node. Here we will create a Ganeti cluster with
43
all available ``ganeti`` nodes. Please note that Ganeti needs a pair of rsa/dsa keys
44
for the root user. If already exist in `/root/.ssh/` in all nodes then --no-ssh-init
45
can be used. In omitted then the existing files will be overriden. Upon node add
46
Ganeti will replace `/etc/ssh/ssh_host*` files with the master's ones:
47

    
48
.. code-block:: console
49

    
50
    # gnt-cluster init --enabled-hypervisors=kvm \
51
                       --vg-name=ganeti \
52
                       --nic-parameters link=br0,mode=bridged \
53
                       --master-netdev eth0 \
54
                       --default-iallocator hail \
55
                       --hypervisor-parameters kvm:kernel_path=,vnc_bind_address=0.0.0.0 \
56
                       --no-ssh-init --no-etc-hosts \
57
                       ganeti.example.com
58

    
59
    # gnt-cluster modify --disk-parameters=drbd:metavg=ganeti
60
    # gnt-group modify --disk-parameters=drbd:metavg=ganeti default
61

    
62
    # for n in node2 node3 node4 node5 node6; do
63
        gnt-node add --no-ssh-key-check --master-capable=yes --vm-capable=yes $n.example.com
64
      done
65

    
66
We need to add a rapi user to Ganeti so that Synnefo can talk with the backend:
67

    
68
.. code-block:: console
69

    
70
   # result=$(echo -n "synnefo:Ganeti Remote API:example_rapi_passw0rd" | openssl md5)
71
   # echo "synnefo {HA1} $result" >> /var/lib/ganeti/rapi/users
72
   # /etc/init.d/ganeti restart
73

    
74

    
75
Test your Setup:
76
++++++++++++++++