Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (2.2 kB)

1 6928da52 Dimitris Aragiorgis
.. _i-ganeti:
2 6928da52 Dimitris Aragiorgis
3 6928da52 Dimitris Aragiorgis
Synnefo
4 6928da52 Dimitris Aragiorgis
-------
5 6928da52 Dimitris Aragiorgis
6 6928da52 Dimitris Aragiorgis
:ref:`synnefo <i-synnefo>` ||
7 6928da52 Dimitris Aragiorgis
:ref:`ns <i-ns>` ||
8 6928da52 Dimitris Aragiorgis
:ref:`apt <i-apt>` ||
9 6928da52 Dimitris Aragiorgis
:ref:`mq <i-mq>` ||
10 6928da52 Dimitris Aragiorgis
:ref:`db <i-db>` ||
11 6928da52 Dimitris Aragiorgis
:ref:`gunicorn <i-gunicorn>` ||
12 6928da52 Dimitris Aragiorgis
:ref:`apache <i-apache>` ||
13 6928da52 Dimitris Aragiorgis
:ref:`webproject <i-webproject>` ||
14 6928da52 Dimitris Aragiorgis
:ref:`astakos <i-astakos>` ||
15 6928da52 Dimitris Aragiorgis
:ref:`cms <i-cms>` ||
16 6928da52 Dimitris Aragiorgis
:ref:`pithos <i-pithos>` ||
17 6928da52 Dimitris Aragiorgis
:ref:`cyclades <i-cyclades>` ||
18 6928da52 Dimitris Aragiorgis
:ref:`kamaki <i-kamaki>` ||
19 6928da52 Dimitris Aragiorgis
:ref:`backends <i-backends>`
20 6928da52 Dimitris Aragiorgis
21 6928da52 Dimitris Aragiorgis
Backends
22 6928da52 Dimitris Aragiorgis
++++++++
23 6928da52 Dimitris Aragiorgis
24 6928da52 Dimitris Aragiorgis
ganeti ||
25 6928da52 Dimitris Aragiorgis
:ref:`image <i-image>` ||
26 6928da52 Dimitris Aragiorgis
:ref:`gtools <i-gtools>` ||
27 6928da52 Dimitris Aragiorgis
:ref:`network <i-network>`
28 6928da52 Dimitris Aragiorgis
29 6928da52 Dimitris Aragiorgis
30 6928da52 Dimitris Aragiorgis
Ganeti Setup
31 6928da52 Dimitris Aragiorgis
~~~~~~~~~~~~
32 6928da52 Dimitris Aragiorgis
33 6928da52 Dimitris Aragiorgis
In ``ganeti`` nodes install GRNet specific Ganeti package and enable drbd:
34 6928da52 Dimitris Aragiorgis
35 6928da52 Dimitris Aragiorgis
.. code-block:: console
36 6928da52 Dimitris Aragiorgis
37 6928da52 Dimitris Aragiorgis
   # apt-get install python-bitarray
38 6928da52 Dimitris Aragiorgis
   # apt-get install snf-ganeti ganeti-htools
39 6928da52 Dimitris Aragiorgis
   # modprobe drbd minor_count=255 usermode_helper=/bin/true
40 6928da52 Dimitris Aragiorgis
41 6928da52 Dimitris Aragiorgis
42 6928da52 Dimitris Aragiorgis
The following apply to ``master`` node. Here we will create a Ganeti cluster with
43 35bf6640 Dimitris Aragiorgis
all available ``ganeti`` nodes. Please note that Ganeti needs a pair of rsa/dsa keys
44 35bf6640 Dimitris Aragiorgis
for the root user. If already exist in `/root/.ssh/` in all nodes then --no-ssh-init
45 35bf6640 Dimitris Aragiorgis
can be used. In omitted then the existing files will be overriden. Upon node add
46 35bf6640 Dimitris Aragiorgis
Ganeti will replace `/etc/ssh/ssh_host*` files with the master's ones:
47 6928da52 Dimitris Aragiorgis
48 6928da52 Dimitris Aragiorgis
.. code-block:: console
49 6928da52 Dimitris Aragiorgis
50 6928da52 Dimitris Aragiorgis
    # gnt-cluster init --enabled-hypervisors=kvm \
51 6928da52 Dimitris Aragiorgis
                       --vg-name=ganeti \
52 6928da52 Dimitris Aragiorgis
                       --nic-parameters link=br0,mode=bridged \
53 6928da52 Dimitris Aragiorgis
                       --master-netdev eth0 \
54 6928da52 Dimitris Aragiorgis
                       --default-iallocator hail \
55 6928da52 Dimitris Aragiorgis
                       --hypervisor-parameters kvm:kernel_path=,vnc_bind_address=0.0.0.0 \
56 6928da52 Dimitris Aragiorgis
                       --no-ssh-init --no-etc-hosts \
57 6928da52 Dimitris Aragiorgis
                       ganeti.example.com
58 6928da52 Dimitris Aragiorgis
59 6928da52 Dimitris Aragiorgis
    # gnt-cluster modify --disk-parameters=drbd:metavg=ganeti
60 6928da52 Dimitris Aragiorgis
    # gnt-group modify --disk-parameters=drbd:metavg=ganeti default
61 6928da52 Dimitris Aragiorgis
62 6928da52 Dimitris Aragiorgis
    # for n in node2 node3 node4 node5 node6; do
63 35bf6640 Dimitris Aragiorgis
        gnt-node add --no-ssh-key-check --master-capable=yes --vm-capable=yes $n.example.com
64 6928da52 Dimitris Aragiorgis
      done
65 6928da52 Dimitris Aragiorgis
66 6928da52 Dimitris Aragiorgis
We need to add a rapi user to Ganeti so that Synnefo can talk with the backend:
67 6928da52 Dimitris Aragiorgis
68 6928da52 Dimitris Aragiorgis
.. code-block:: console
69 6928da52 Dimitris Aragiorgis
70 6928da52 Dimitris Aragiorgis
   # result=$(echo -n "synnefo:Ganeti Remote API:example_rapi_passw0rd" | openssl md5)
71 6928da52 Dimitris Aragiorgis
   # echo "synnefo {HA1} $result" >> /var/lib/ganeti/rapi/users
72 6928da52 Dimitris Aragiorgis
   # /etc/init.d/ganeti restart
73 81b92b0f Dimitris Aragiorgis
74 81b92b0f Dimitris Aragiorgis
75 81b92b0f Dimitris Aragiorgis
Test your Setup:
76 81b92b0f Dimitris Aragiorgis
++++++++++++++++