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