root / docs / admin-guide.rst @ 0a3027c3
History | View | Annotate | Download (86.2 kB)
1 | bc055d09 | Constantinos Venetsanopoulos | .. _admin-guide: |
---|---|---|---|
2 | bc055d09 | Constantinos Venetsanopoulos | |
3 | bc055d09 | Constantinos Venetsanopoulos | Synnefo Administrator's Guide |
4 | bc055d09 | Constantinos Venetsanopoulos | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
5 | bc055d09 | Constantinos Venetsanopoulos | |
6 | bc055d09 | Constantinos Venetsanopoulos | This is the complete Synnefo Administrator's Guide. |
7 | bc055d09 | Constantinos Venetsanopoulos | |
8 | bc055d09 | Constantinos Venetsanopoulos | |
9 | 14267d89 | Constantinos Venetsanopoulos | .. _syn+archip: |
10 | bc055d09 | Constantinos Venetsanopoulos | |
11 | eab73849 | Constantinos Venetsanopoulos | General Synnefo Architecture |
12 | eab73849 | Constantinos Venetsanopoulos | ============================ |
13 | eab73849 | Constantinos Venetsanopoulos | |
14 | 14267d89 | Constantinos Venetsanopoulos | The following figure shows a detailed view of the whole Synnefo architecture |
15 | 14267d89 | Constantinos Venetsanopoulos | and how it interacts with multiple Ganeti clusters. We hope that after reading |
16 | 14267d89 | Constantinos Venetsanopoulos | the Administrator's Guide you will be able to understand every component and |
17 | 14267d89 | Constantinos Venetsanopoulos | all the interactions between them. |
18 | eab73849 | Constantinos Venetsanopoulos | |
19 | 301294a9 | Constantinos Venetsanopoulos | .. image:: images/synnefo-arch2.png |
20 | 16539dad | Kostas Papadimitriou | :width: 100% |
21 | 301294a9 | Constantinos Venetsanopoulos | :target: _images/synnefo-arch2.png |
22 | eab73849 | Constantinos Venetsanopoulos | |
23 | 14267d89 | Constantinos Venetsanopoulos | Synnefo also supports RADOS as an alternative storage backend for |
24 | 14267d89 | Constantinos Venetsanopoulos | Files/Images/VM disks. You will find the :ref:`corresponding figure |
25 | 14267d89 | Constantinos Venetsanopoulos | <syn+archip+rados>` later in this guide. |
26 | eab73849 | Constantinos Venetsanopoulos | |
27 | a1c707c9 | Constantinos Venetsanopoulos | |
28 | eab73849 | Constantinos Venetsanopoulos | Identity Service (Astakos) |
29 | eab73849 | Constantinos Venetsanopoulos | ========================== |
30 | f846d8df | Constantinos Venetsanopoulos | |
31 | f846d8df | Constantinos Venetsanopoulos | |
32 | eab73849 | Constantinos Venetsanopoulos | Authentication methods |
33 | 3a0ce98e | Constantinos Venetsanopoulos | ---------------------- |
34 | eab73849 | Constantinos Venetsanopoulos | |
35 | 3a0ce98e | Constantinos Venetsanopoulos | Astakos supports multiple authentication methods: |
36 | eab73849 | Constantinos Venetsanopoulos | |
37 | 3a0ce98e | Constantinos Venetsanopoulos | * local username/password |
38 | 3a0ce98e | Constantinos Venetsanopoulos | * LDAP / Active Directory |
39 | 3a0ce98e | Constantinos Venetsanopoulos | * SAML 2.0 (Shibboleth) federated logins |
40 | 3a0ce98e | Constantinos Venetsanopoulos | |
41 | 3a0ce98e | Constantinos Venetsanopoulos | |
42 | 3a0ce98e | Constantinos Venetsanopoulos | |
43 | eab73849 | Constantinos Venetsanopoulos | |
44 | eab73849 | Constantinos Venetsanopoulos | .. _shibboleth-auth: |
45 | eab73849 | Constantinos Venetsanopoulos | |
46 | eab73849 | Constantinos Venetsanopoulos | Shibboleth Authentication |
47 | 3a0ce98e | Constantinos Venetsanopoulos | ~~~~~~~~~~~~~~~~~~~~~~~~~ |
48 | eab73849 | Constantinos Venetsanopoulos | |
49 | eab73849 | Constantinos Venetsanopoulos | Astakos can delegate user authentication to a Shibboleth federation. |
50 | eab73849 | Constantinos Venetsanopoulos | |
51 | eab73849 | Constantinos Venetsanopoulos | To setup shibboleth, install package:: |
52 | eab73849 | Constantinos Venetsanopoulos | |
53 | eab73849 | Constantinos Venetsanopoulos | apt-get install libapache2-mod-shib2 |
54 | eab73849 | Constantinos Venetsanopoulos | |
55 | eab73849 | Constantinos Venetsanopoulos | Change appropriately the configuration files in ``/etc/shibboleth``. |
56 | eab73849 | Constantinos Venetsanopoulos | |
57 | eab73849 | Constantinos Venetsanopoulos | Add in ``/etc/apache2/sites-available/synnefo-ssl``:: |
58 | eab73849 | Constantinos Venetsanopoulos | |
59 | eab73849 | Constantinos Venetsanopoulos | ShibConfig /etc/shibboleth/shibboleth2.xml |
60 | eab73849 | Constantinos Venetsanopoulos | Alias /shibboleth-sp /usr/share/shibboleth |
61 | eab73849 | Constantinos Venetsanopoulos | |
62 | fb814235 | Kostas Papadimitriou | <Location /ui/login/shibboleth> |
63 | eab73849 | Constantinos Venetsanopoulos | AuthType shibboleth |
64 | eab73849 | Constantinos Venetsanopoulos | ShibRequireSession On |
65 | eab73849 | Constantinos Venetsanopoulos | ShibUseHeaders On |
66 | eab73849 | Constantinos Venetsanopoulos | require valid-user |
67 | eab73849 | Constantinos Venetsanopoulos | </Location> |
68 | eab73849 | Constantinos Venetsanopoulos | |
69 | eab73849 | Constantinos Venetsanopoulos | and before the line containing:: |
70 | eab73849 | Constantinos Venetsanopoulos | |
71 | eab73849 | Constantinos Venetsanopoulos | ProxyPass / http://localhost:8080/ retry=0 |
72 | eab73849 | Constantinos Venetsanopoulos | |
73 | eab73849 | Constantinos Venetsanopoulos | add:: |
74 | eab73849 | Constantinos Venetsanopoulos | |
75 | eab73849 | Constantinos Venetsanopoulos | ProxyPass /Shibboleth.sso ! |
76 | f846d8df | Constantinos Venetsanopoulos | |
77 | eab73849 | Constantinos Venetsanopoulos | Then, enable the shibboleth module:: |
78 | eab73849 | Constantinos Venetsanopoulos | |
79 | eab73849 | Constantinos Venetsanopoulos | a2enmod shib2 |
80 | f846d8df | Constantinos Venetsanopoulos | |
81 | eab73849 | Constantinos Venetsanopoulos | After passing through the apache module, the following tokens should be |
82 | eab73849 | Constantinos Venetsanopoulos | available at the destination:: |
83 | eab73849 | Constantinos Venetsanopoulos | |
84 | eab73849 | Constantinos Venetsanopoulos | eppn # eduPersonPrincipalName |
85 | eab73849 | Constantinos Venetsanopoulos | Shib-InetOrgPerson-givenName |
86 | eab73849 | Constantinos Venetsanopoulos | Shib-Person-surname |
87 | eab73849 | Constantinos Venetsanopoulos | Shib-Person-commonName |
88 | eab73849 | Constantinos Venetsanopoulos | Shib-InetOrgPerson-displayName |
89 | eab73849 | Constantinos Venetsanopoulos | Shib-EP-Affiliation |
90 | eab73849 | Constantinos Venetsanopoulos | Shib-Session-ID |
91 | eab73849 | Constantinos Venetsanopoulos | |
92 | eab73849 | Constantinos Venetsanopoulos | Finally, add 'shibboleth' in ``ASTAKOS_IM_MODULES`` list. The variable resides |
93 | eab73849 | Constantinos Venetsanopoulos | inside the file ``/etc/synnefo/20-snf-astakos-app-settings.conf`` |
94 | eab73849 | Constantinos Venetsanopoulos | |
95 | e0975bbf | Sofia Papagiannaki | Twitter Authentication |
96 | 3a0ce98e | Constantinos Venetsanopoulos | ~~~~~~~~~~~~~~~~~~~~~~ |
97 | e0975bbf | Sofia Papagiannaki | |
98 | e0975bbf | Sofia Papagiannaki | To enable twitter authentication while signed in under a Twitter account, |
99 | e0975bbf | Sofia Papagiannaki | visit dev.twitter.com/apps. |
100 | e0975bbf | Sofia Papagiannaki | |
101 | e0975bbf | Sofia Papagiannaki | Click Create an application. |
102 | e0975bbf | Sofia Papagiannaki | |
103 | e0975bbf | Sofia Papagiannaki | Fill the necessary information and for callback URL give:: |
104 | e0975bbf | Sofia Papagiannaki | |
105 | e0975bbf | Sofia Papagiannaki | https://node1.example.com/ui/login/twitter/authenticated |
106 | e0975bbf | Sofia Papagiannaki | |
107 | e0975bbf | Sofia Papagiannaki | Finally, add 'twitter' in ``ASTAKOS_IM_MODULES`` list. The variable resides |
108 | e0975bbf | Sofia Papagiannaki | inside the file ``/etc/synnefo/20-snf-astakos-app-settings.conf`` |
109 | e0975bbf | Sofia Papagiannaki | |
110 | e0975bbf | Sofia Papagiannaki | Google Authentication |
111 | 3a0ce98e | Constantinos Venetsanopoulos | ~~~~~~~~~~~~~~~~~~~~~ |
112 | e0975bbf | Sofia Papagiannaki | |
113 | e0975bbf | Sofia Papagiannaki | To enable google authentication while signed in under a Google account, |
114 | e0975bbf | Sofia Papagiannaki | visit https://code.google.com/apis/console/. |
115 | e0975bbf | Sofia Papagiannaki | |
116 | e0975bbf | Sofia Papagiannaki | Under API Access select Create another client ID, select Web application, |
117 | e0975bbf | Sofia Papagiannaki | expand more options in Your site or hostname section and in Authorized |
118 | e0975bbf | Sofia Papagiannaki | Redirect URIs add: |
119 | e0975bbf | Sofia Papagiannaki | |
120 | e0975bbf | Sofia Papagiannaki | |
121 | e0975bbf | Sofia Papagiannaki | Fill the necessary information and for callback URL give:: |
122 | e0975bbf | Sofia Papagiannaki | |
123 | e0975bbf | Sofia Papagiannaki | https://node1.example.com/ui/login/google/authenticated |
124 | e0975bbf | Sofia Papagiannaki | |
125 | e0975bbf | Sofia Papagiannaki | Finally, add 'google' in ``ASTAKOS_IM_MODULES`` list. The variable resides |
126 | e0975bbf | Sofia Papagiannaki | inside the file ``/etc/synnefo/20-snf-astakos-app-settings.conf`` |
127 | e0975bbf | Sofia Papagiannaki | |
128 | eab73849 | Constantinos Venetsanopoulos | |
129 | eab73849 | Constantinos Venetsanopoulos | Working with Astakos |
130 | eab73849 | Constantinos Venetsanopoulos | -------------------- |
131 | eab73849 | Constantinos Venetsanopoulos | |
132 | 77186edf | Kostas Papadimitriou | User registration |
133 | 77186edf | Kostas Papadimitriou | ~~~~~~~~~~~~~~~~~ |
134 | f846d8df | Constantinos Venetsanopoulos | |
135 | 77186edf | Kostas Papadimitriou | When a new user signs up, he/she is not directly marked as active. You can see |
136 | 77186edf | Kostas Papadimitriou | his/her state by running (on the machine that runs the Astakos app): |
137 | f846d8df | Constantinos Venetsanopoulos | |
138 | f846d8df | Constantinos Venetsanopoulos | .. code-block:: console |
139 | f846d8df | Constantinos Venetsanopoulos | |
140 | 4404e02e | Ilias Tsitsimpis | $ snf-manage user-list |
141 | f846d8df | Constantinos Venetsanopoulos | |
142 | 77186edf | Kostas Papadimitriou | More detailed user status is provided in the `status` field of the `user-show` |
143 | 77186edf | Kostas Papadimitriou | command: |
144 | f846d8df | Constantinos Venetsanopoulos | |
145 | 77186edf | Kostas Papadimitriou | .. code-block:: console |
146 | f846d8df | Constantinos Venetsanopoulos | |
147 | 77186edf | Kostas Papadimitriou | $ snf-manage user-show <user-id> |
148 | f846d8df | Constantinos Venetsanopoulos | |
149 | 77186edf | Kostas Papadimitriou | id : 6 |
150 | 77186edf | Kostas Papadimitriou | uuid : 78661411-5eed-412f-a9ea-2de24f542c2e |
151 | 77186edf | Kostas Papadimitriou | status : Accepted/Active (accepted policy: manual) |
152 | 77186edf | Kostas Papadimitriou | email : user@synnefo.org |
153 | 77186edf | Kostas Papadimitriou | .... |
154 | f846d8df | Constantinos Venetsanopoulos | |
155 | 3a0ce98e | Constantinos Venetsanopoulos | Based on the `astakos-app` configuration, there are several ways for a user to |
156 | 3a0ce98e | Constantinos Venetsanopoulos | get verified and activated in order to be able to login. We discuss the user |
157 | 3a0ce98e | Constantinos Venetsanopoulos | verification and activation flow in the following section. |
158 | 77186edf | Kostas Papadimitriou | |
159 | 77186edf | Kostas Papadimitriou | User activation flow |
160 | eab73849 | Constantinos Venetsanopoulos | ```````````````````` |
161 | eab73849 | Constantinos Venetsanopoulos | |
162 | 77186edf | Kostas Papadimitriou | A user can register for an account using the astakos signup form. Once the form |
163 | 77186edf | Kostas Papadimitriou | is submited successfully a user entry is created in astakos database. That entry |
164 | 77186edf | Kostas Papadimitriou | is passed through the astakos activation backend which handles whether the user |
165 | 77186edf | Kostas Papadimitriou | should be automatically verified and activated. |
166 | 77186edf | Kostas Papadimitriou | |
167 | 77186edf | Kostas Papadimitriou | Email verification |
168 | 77186edf | Kostas Papadimitriou | `````````````````` |
169 | 77186edf | Kostas Papadimitriou | |
170 | 77186edf | Kostas Papadimitriou | The verification process takes place in order to ensure that the user owns the |
171 | 77186edf | Kostas Papadimitriou | email provided during the signup process. By default, after each successful |
172 | 77186edf | Kostas Papadimitriou | signup astakos notifies user with an verification url via email. |
173 | 77186edf | Kostas Papadimitriou | |
174 | 77186edf | Kostas Papadimitriou | At this stage: |
175 | 77186edf | Kostas Papadimitriou | |
176 | 77186edf | Kostas Papadimitriou | * subsequent registrations invalidate and delete the previous registrations |
177 | 77186edf | Kostas Papadimitriou | of the same email address. |
178 | 77186edf | Kostas Papadimitriou | |
179 | 77186edf | Kostas Papadimitriou | * in case user misses the initial notification, additional emails can be |
180 | 77186edf | Kostas Papadimitriou | send either via the url which is prompted to the user if he tries to |
181 | 77186edf | Kostas Papadimitriou | login, or by the administrator using the ``snf-manage user-activation-send |
182 | 77186edf | Kostas Papadimitriou | <userid>`` command. |
183 | 77186edf | Kostas Papadimitriou | |
184 | 77186edf | Kostas Papadimitriou | * administrator may also enforce a user to get verified using the |
185 | 77186edf | Kostas Papadimitriou | ``snf-manage user-modify --verify <userid>`` command. |
186 | 77186edf | Kostas Papadimitriou | |
187 | 77186edf | Kostas Papadimitriou | Account activation |
188 | 77186edf | Kostas Papadimitriou | `````````````````` |
189 | 77186edf | Kostas Papadimitriou | |
190 | 3a0ce98e | Constantinos Venetsanopoulos | Once the user gets verified, it is time for Astakos to decide whether or not to |
191 | 77186edf | Kostas Papadimitriou | proceed through user activation process. If ``ASTAKOS_MODERATION_ENABLED`` |
192 | 77186edf | Kostas Papadimitriou | setting is set to ``False`` (default value) user gets activated automatically. |
193 | 77186edf | Kostas Papadimitriou | |
194 | 3a0ce98e | Constantinos Venetsanopoulos | In case the moderation is enabled Astakos may still automatically activate the |
195 | 77186edf | Kostas Papadimitriou | user in the following cases: |
196 | 77186edf | Kostas Papadimitriou | |
197 | 77186edf | Kostas Papadimitriou | * User email matches any of the regular expressions defined in |
198 | 77186edf | Kostas Papadimitriou | ``ASTAKOS_RE_USER_EMAIL_PATTERNS`` (defaults to ``[]``) |
199 | 77186edf | Kostas Papadimitriou | * User used a signup method (e.g. ``shibboleth``) for which automatic |
200 | 77186edf | Kostas Papadimitriou | activation is enabled (see |
201 | 77186edf | Kostas Papadimitriou | :ref:`authentication methods policies <auth_methods_policies>`). |
202 | 77186edf | Kostas Papadimitriou | |
203 | 3a0ce98e | Constantinos Venetsanopoulos | If all of the above fail to trigger automatic activation, an email is sent to |
204 | 3a0ce98e | Constantinos Venetsanopoulos | the persons listed in ``HELPDESK``, ``MANAGERS`` and ``ADMINS`` settings, |
205 | 3a0ce98e | Constantinos Venetsanopoulos | notifing that there is a new user pending for moderation and that it's up to |
206 | 3a0ce98e | Constantinos Venetsanopoulos | the administrator to decide if the user should be activated. The UI also shows |
207 | 3a0ce98e | Constantinos Venetsanopoulos | a corresponding 'pending moderation' message to the user. The administrator can |
208 | 3a0ce98e | Constantinos Venetsanopoulos | activate a user using the ``snf-manage user-modify`` command: |
209 | 77186edf | Kostas Papadimitriou | |
210 | 77186edf | Kostas Papadimitriou | .. code-block:: console |
211 | 77186edf | Kostas Papadimitriou | |
212 | 77186edf | Kostas Papadimitriou | # command to activate a pending user |
213 | 77186edf | Kostas Papadimitriou | $ snf-manage user-modify --accept <userid> |
214 | 77186edf | Kostas Papadimitriou | |
215 | 77186edf | Kostas Papadimitriou | # command to reject a pending user |
216 | 77186edf | Kostas Papadimitriou | $ snf-manage user-modify --reject --reject-reason="spammer" <userid> |
217 | 77186edf | Kostas Papadimitriou | |
218 | 3a0ce98e | Constantinos Venetsanopoulos | Once the activation process finishes, a greeting message is sent to the user |
219 | 3a0ce98e | Constantinos Venetsanopoulos | email address and a notification for the activation to the persons listed in |
220 | 3a0ce98e | Constantinos Venetsanopoulos | ``HELPDESK``, ``MANAGERS`` and ``ADMINS`` settings. Once activated the user is |
221 | 3a0ce98e | Constantinos Venetsanopoulos | able to login and access the Synnefo services. |
222 | 77186edf | Kostas Papadimitriou | |
223 | 77186edf | Kostas Papadimitriou | Additional authentication methods |
224 | 77186edf | Kostas Papadimitriou | ````````````````````````````````` |
225 | 77186edf | Kostas Papadimitriou | |
226 | 77186edf | Kostas Papadimitriou | Astakos supports third party logins from external identity providers. This |
227 | 77186edf | Kostas Papadimitriou | can be usefull since it allows users to use their existing credentials to |
228 | 77186edf | Kostas Papadimitriou | login to astakos service. |
229 | 77186edf | Kostas Papadimitriou | |
230 | 77186edf | Kostas Papadimitriou | Currently astakos supports the following identity providers: |
231 | 77186edf | Kostas Papadimitriou | |
232 | 77186edf | Kostas Papadimitriou | * `Shibboleth <http://www.internet2.edu/shibboleth>`_ (module name |
233 | 77186edf | Kostas Papadimitriou | ``shibboleth``) |
234 | 77186edf | Kostas Papadimitriou | * `Google <https://developers.google.com/accounts/docs/OAuth2>`_ (module |
235 | 77186edf | Kostas Papadimitriou | name ``google``) |
236 | 77186edf | Kostas Papadimitriou | * `Twitter <https://dev.twitter.com/docs/auth>`_ (module name ``twitter``) |
237 | 77186edf | Kostas Papadimitriou | * `LinkedIn <http://developer.linkedin.com/documents/authentication>`_ |
238 | 77186edf | Kostas Papadimitriou | (module name ``linkedin``) |
239 | 77186edf | Kostas Papadimitriou | |
240 | 77186edf | Kostas Papadimitriou | To enable any of the above modules (by default only ``local`` accounts are |
241 | 77186edf | Kostas Papadimitriou | allowed), retrieve and set the required provider settings and append the |
242 | 77186edf | Kostas Papadimitriou | module name in ``ASTAKOS_IM_MODULES``. |
243 | 77186edf | Kostas Papadimitriou | |
244 | 77186edf | Kostas Papadimitriou | .. code-block:: python |
245 | 77186edf | Kostas Papadimitriou | |
246 | 77186edf | Kostas Papadimitriou | # settings from https://code.google.com/apis/console/ |
247 | 77186edf | Kostas Papadimitriou | ASTAKOS_GOOGLE_CLIENT_ID = '1111111111-epi60tvimgha63qqnjo40cljkojcann3.apps.googleusercontent.com' |
248 | 77186edf | Kostas Papadimitriou | ASTAKOS_GOOGLE_SECRET = 'tNDQqTDKlTf7_LaeUcWTWwZM' |
249 | 77186edf | Kostas Papadimitriou | |
250 | 77186edf | Kostas Papadimitriou | # let users signup and login using their google account |
251 | 77186edf | Kostas Papadimitriou | ASTAKOS_IM_MODULES = ['local', 'google'] |
252 | 77186edf | Kostas Papadimitriou | |
253 | 77186edf | Kostas Papadimitriou | |
254 | 77186edf | Kostas Papadimitriou | .. _auth_methods_policies: |
255 | 77186edf | Kostas Papadimitriou | |
256 | 77186edf | Kostas Papadimitriou | Authentication method policies |
257 | 77186edf | Kostas Papadimitriou | `````````````````````````````` |
258 | 77186edf | Kostas Papadimitriou | |
259 | 77186edf | Kostas Papadimitriou | Astakos allows you to override the default policies for each enabled provider |
260 | 77186edf | Kostas Papadimitriou | separately by adding the approriate settings in your ``.conf`` files in the |
261 | 77186edf | Kostas Papadimitriou | following format: |
262 | 77186edf | Kostas Papadimitriou | |
263 | 77186edf | Kostas Papadimitriou | **ASTAKOS_AUTH_PROVIDER_<module>_<policy>_POLICY** |
264 | 77186edf | Kostas Papadimitriou | |
265 | 77186edf | Kostas Papadimitriou | Available policies are: |
266 | 77186edf | Kostas Papadimitriou | |
267 | 77186edf | Kostas Papadimitriou | * **CREATE** Users can signup using that provider (default: ``True``) |
268 | 77186edf | Kostas Papadimitriou | * **REMOVE/ADD** Users can remove/add login method from their profile |
269 | 77186edf | Kostas Papadimitriou | (default: ``True``) |
270 | 77186edf | Kostas Papadimitriou | * **AUTOMODERATE** Automatically activate users that signup using that |
271 | 77186edf | Kostas Papadimitriou | provider (default: ``False``) |
272 | 77186edf | Kostas Papadimitriou | * **LOGIN** Whether or not users can use the provider to login (default: |
273 | 77186edf | Kostas Papadimitriou | ``True``). |
274 | 77186edf | Kostas Papadimitriou | |
275 | 77186edf | Kostas Papadimitriou | e.g. to enable automatic activation for your academic users, while keeping |
276 | 77186edf | Kostas Papadimitriou | locally signed up users under moderation you can apply the following settings. |
277 | 77186edf | Kostas Papadimitriou | |
278 | 77186edf | Kostas Papadimitriou | .. code-block:: python |
279 | 77186edf | Kostas Papadimitriou | |
280 | 77186edf | Kostas Papadimitriou | ASTAKOS_AUTH_PROVIDER_SHIBBOLETH_AUTOMODERATE_POLICY = True |
281 | 77186edf | Kostas Papadimitriou | ASTAKOS_AUTH_PROVIDER_SHIBBOLETH_REMOVE_POLICY = False |
282 | 77186edf | Kostas Papadimitriou | |
283 | 3a0ce98e | Constantinos Venetsanopoulos | User login |
284 | 3a0ce98e | Constantinos Venetsanopoulos | ~~~~~~~~~~ |
285 | 3a0ce98e | Constantinos Venetsanopoulos | |
286 | 3a0ce98e | Constantinos Venetsanopoulos | During the logging procedure, the user is authenticated by the respective |
287 | 3a0ce98e | Constantinos Venetsanopoulos | identity provider. |
288 | 3a0ce98e | Constantinos Venetsanopoulos | |
289 | 3a0ce98e | Constantinos Venetsanopoulos | If ``ASTAKOS_RECAPTCHA_ENABLED`` is set and the user fails several times |
290 | 3a0ce98e | Constantinos Venetsanopoulos | (``ASTAKOS_RATELIMIT_RETRIES_ALLOWED`` setting) to provide the correct |
291 | 3a0ce98e | Constantinos Venetsanopoulos | credentials for a local account, he/she is then prompted to solve a captcha |
292 | 3a0ce98e | Constantinos Venetsanopoulos | challenge. |
293 | 3a0ce98e | Constantinos Venetsanopoulos | |
294 | 3a0ce98e | Constantinos Venetsanopoulos | Upon success, the system renews the token (if it has expired), logins the user |
295 | 3a0ce98e | Constantinos Venetsanopoulos | and sets the cookie, before redirecting the user to the ``next`` parameter |
296 | 3a0ce98e | Constantinos Venetsanopoulos | value. |
297 | eab73849 | Constantinos Venetsanopoulos | |
298 | 2988ae31 | Georgios D. Tsoukalas | Setting quota limits |
299 | 2988ae31 | Georgios D. Tsoukalas | ~~~~~~~~~~~~~~~~~~~~ |
300 | 2988ae31 | Georgios D. Tsoukalas | |
301 | 075b91de | Giorgos Korfiatis | Set default quota |
302 | 075b91de | Giorgos Korfiatis | ````````````````` |
303 | f72ba65d | Giorgos Korfiatis | To inspect current default base quota limits, run:: |
304 | 2988ae31 | Georgios D. Tsoukalas | |
305 | f72ba65d | Giorgos Korfiatis | # snf-manage resource-list |
306 | 2988ae31 | Georgios D. Tsoukalas | |
307 | d61d6007 | Giorgos Korfiatis | You can modify the default base quota limit for all future users with:: |
308 | 2988ae31 | Georgios D. Tsoukalas | |
309 | d61d6007 | Giorgos Korfiatis | # snf-manage resource-modify <resource_name> --default-quota <value> |
310 | 2988ae31 | Georgios D. Tsoukalas | |
311 | 075b91de | Giorgos Korfiatis | Set base quota for individual users |
312 | 075b91de | Giorgos Korfiatis | ``````````````````````````````````` |
313 | 2988ae31 | Georgios D. Tsoukalas | |
314 | 075b91de | Giorgos Korfiatis | For individual users that need different quota than the default |
315 | 2988ae31 | Georgios D. Tsoukalas | you can set it for each resource like this:: |
316 | 2988ae31 | Georgios D. Tsoukalas | |
317 | 075b91de | Giorgos Korfiatis | # use this to display quota / uuid |
318 | 075b91de | Giorgos Korfiatis | # snf-manage user-show 'uuid or email' --quota |
319 | 2988ae31 | Georgios D. Tsoukalas | |
320 | 45112d5a | Giorgos Korfiatis | # snf-manage user-modify <user-uuid> --base-quota 'cyclades.vm' 10 |
321 | 45112d5a | Giorgos Korfiatis | |
322 | 45112d5a | Giorgos Korfiatis | You can set base quota for all existing users, with possible exceptions, using:: |
323 | 45112d5a | Giorgos Korfiatis | |
324 | 45112d5a | Giorgos Korfiatis | # snf-manage user-modify --all --base-quota cyclades.vm 10 --exclude uuid1,uuid2 |
325 | 2988ae31 | Georgios D. Tsoukalas | |
326 | 5a0f9d6c | Giorgos Korfiatis | All quota for which values different from the default have been set, |
327 | 5a0f9d6c | Giorgos Korfiatis | can be listed with:: |
328 | 5a0f9d6c | Giorgos Korfiatis | |
329 | 5a0f9d6c | Giorgos Korfiatis | # snf-manage quota-list --with-custom=True |
330 | 5a0f9d6c | Giorgos Korfiatis | |
331 | 2988ae31 | Georgios D. Tsoukalas | |
332 | 2988ae31 | Georgios D. Tsoukalas | Enable the Projects feature |
333 | 2988ae31 | Georgios D. Tsoukalas | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
334 | 2988ae31 | Georgios D. Tsoukalas | |
335 | 2988ae31 | Georgios D. Tsoukalas | If you want to enable the projects feature so that users may apply |
336 | 2988ae31 | Georgios D. Tsoukalas | on their own for resources by creating and joining projects, |
337 | 2988ae31 | Georgios D. Tsoukalas | in ``20-snf-astakos-app-settings.conf`` set:: |
338 | 2988ae31 | Georgios D. Tsoukalas | |
339 | 2988ae31 | Georgios D. Tsoukalas | # this will make the 'projects' page visible in the dashboard |
340 | 2988ae31 | Georgios D. Tsoukalas | ASTAKOS_PROJECTS_VISIBLE = True |
341 | 2988ae31 | Georgios D. Tsoukalas | |
342 | 9770ba6c | Giorgos Korfiatis | You can change the maximum allowed number of pending project applications |
343 | 9770ba6c | Giorgos Korfiatis | per user with:: |
344 | 827de879 | Giorgos Korfiatis | |
345 | d61d6007 | Giorgos Korfiatis | # snf-manage resource-modify astakos.pending_app --default-quota <number> |
346 | 9770ba6c | Giorgos Korfiatis | |
347 | 9770ba6c | Giorgos Korfiatis | You can also set a user-specific limit with:: |
348 | 9770ba6c | Giorgos Korfiatis | |
349 | 45112d5a | Giorgos Korfiatis | # snf-manage user-modify <user-uuid> --base-quota 'astakos.pending_app' 5 |
350 | 827de879 | Giorgos Korfiatis | |
351 | 2988ae31 | Georgios D. Tsoukalas | When users apply for projects they are not automatically granted |
352 | 2988ae31 | Georgios D. Tsoukalas | the resources. They must first be approved by the administrator. |
353 | 2988ae31 | Georgios D. Tsoukalas | |
354 | 2988ae31 | Georgios D. Tsoukalas | To list pending project applications in astakos:: |
355 | 2988ae31 | Georgios D. Tsoukalas | |
356 | 2988ae31 | Georgios D. Tsoukalas | # snf-manage project-list --pending |
357 | 2988ae31 | Georgios D. Tsoukalas | |
358 | 2988ae31 | Georgios D. Tsoukalas | Note the last column, the application id. To approve it:: |
359 | 2988ae31 | Georgios D. Tsoukalas | |
360 | 2988ae31 | Georgios D. Tsoukalas | # <app id> from the last column of project-list |
361 | 2988ae31 | Georgios D. Tsoukalas | # snf-manage project-control --approve <app id> |
362 | 2988ae31 | Georgios D. Tsoukalas | |
363 | 2988ae31 | Georgios D. Tsoukalas | To deny an application:: |
364 | 2988ae31 | Georgios D. Tsoukalas | |
365 | 2988ae31 | Georgios D. Tsoukalas | # snf-manage project-control --deny <app id> |
366 | 2988ae31 | Georgios D. Tsoukalas | |
367 | 827de879 | Giorgos Korfiatis | Users designated as *project admins* can approve, deny, or modify |
368 | 827de879 | Giorgos Korfiatis | an application through the web interface. In |
369 | 827de879 | Giorgos Korfiatis | ``20-snf-astakos-app-settings.conf`` set:: |
370 | 827de879 | Giorgos Korfiatis | |
371 | 827de879 | Giorgos Korfiatis | # UUIDs of users that can approve or deny project applications from the web. |
372 | 827de879 | Giorgos Korfiatis | ASTAKOS_PROJECT_ADMINS = [<uuid>, ...] |
373 | 2988ae31 | Georgios D. Tsoukalas | |
374 | 2988ae31 | Georgios D. Tsoukalas | |
375 | eab73849 | Constantinos Venetsanopoulos | Astakos advanced operations |
376 | eab73849 | Constantinos Venetsanopoulos | --------------------------- |
377 | eab73849 | Constantinos Venetsanopoulos | |
378 | eab73849 | Constantinos Venetsanopoulos | Adding "Terms of Use" |
379 | eab73849 | Constantinos Venetsanopoulos | ~~~~~~~~~~~~~~~~~~~~~ |
380 | eab73849 | Constantinos Venetsanopoulos | |
381 | eab73849 | Constantinos Venetsanopoulos | Astakos supports versioned terms-of-use. First of all you need to create an |
382 | eab73849 | Constantinos Venetsanopoulos | html file that will contain your terms. For example, create the file |
383 | eab73849 | Constantinos Venetsanopoulos | ``/usr/share/synnefo/sample-terms.html``, which contains the following: |
384 | eab73849 | Constantinos Venetsanopoulos | |
385 | eab73849 | Constantinos Venetsanopoulos | .. code-block:: console |
386 | eab73849 | Constantinos Venetsanopoulos | |
387 | 3a0ce98e | Constantinos Venetsanopoulos | <h1>My cloud service terms</h1> |
388 | eab73849 | Constantinos Venetsanopoulos | |
389 | 3a0ce98e | Constantinos Venetsanopoulos | These are the example terms for my cloud service |
390 | eab73849 | Constantinos Venetsanopoulos | |
391 | eab73849 | Constantinos Venetsanopoulos | Then, add those terms-of-use with the snf-manage command: |
392 | eab73849 | Constantinos Venetsanopoulos | |
393 | eab73849 | Constantinos Venetsanopoulos | .. code-block:: console |
394 | eab73849 | Constantinos Venetsanopoulos | |
395 | eab73849 | Constantinos Venetsanopoulos | $ snf-manage term-add /usr/share/synnefo/sample-terms.html |
396 | eab73849 | Constantinos Venetsanopoulos | |
397 | eab73849 | Constantinos Venetsanopoulos | Your terms have been successfully added and you will see the corresponding link |
398 | eab73849 | Constantinos Venetsanopoulos | appearing in the Astakos web pages' footer. |
399 | eab73849 | Constantinos Venetsanopoulos | |
400 | 3a0ce98e | Constantinos Venetsanopoulos | During the account registration, if there are approval terms, the user is |
401 | 3a0ce98e | Constantinos Venetsanopoulos | presented with an "I agree with the Terms" checkbox that needs to get checked |
402 | 3a0ce98e | Constantinos Venetsanopoulos | in order to proceed. |
403 | 3a0ce98e | Constantinos Venetsanopoulos | |
404 | 3a0ce98e | Constantinos Venetsanopoulos | In case there are new approval terms that the user has not signed yet, the |
405 | 3a0ce98e | Constantinos Venetsanopoulos | ``signed_terms_required`` view decorator redirects to the ``approval_terms`` |
406 | 3a0ce98e | Constantinos Venetsanopoulos | view, so the user will be presented with the new terms the next time he/she |
407 | 3a0ce98e | Constantinos Venetsanopoulos | logins. |
408 | 3a0ce98e | Constantinos Venetsanopoulos | |
409 | a23251f4 | Constantinos Venetsanopoulos | Enabling reCAPTCHA |
410 | a23251f4 | Constantinos Venetsanopoulos | ~~~~~~~~~~~~~~~~~~ |
411 | a23251f4 | Constantinos Venetsanopoulos | |
412 | a23251f4 | Constantinos Venetsanopoulos | Astakos supports the `reCAPTCHA <http://www.google.com/recaptcha>`_ feature. |
413 | a23251f4 | Constantinos Venetsanopoulos | If enabled, it protects the Astakos forms from bots. To enable the feature, go |
414 | a23251f4 | Constantinos Venetsanopoulos | to https://www.google.com/recaptcha/admin/create and create your own reCAPTCHA |
415 | a23251f4 | Constantinos Venetsanopoulos | key pair. Then edit ``/etc/synnefo/20-snf-astakos-app-settings.conf`` and set |
416 | a23251f4 | Constantinos Venetsanopoulos | the corresponding variables to reflect your newly created key pair. Finally, set |
417 | a23251f4 | Constantinos Venetsanopoulos | the ``ASTAKOS_RECAPTCHA_ENABLED`` variable to ``True``: |
418 | a23251f4 | Constantinos Venetsanopoulos | |
419 | a23251f4 | Constantinos Venetsanopoulos | .. code-block:: console |
420 | a23251f4 | Constantinos Venetsanopoulos | |
421 | a23251f4 | Constantinos Venetsanopoulos | ASTAKOS_RECAPTCHA_PUBLIC_KEY = 'example_recaptcha_public_key!@#$%^&*(' |
422 | a23251f4 | Constantinos Venetsanopoulos | ASTAKOS_RECAPTCHA_PRIVATE_KEY = 'example_recaptcha_private_key!@#$%^&*(' |
423 | a23251f4 | Constantinos Venetsanopoulos | |
424 | a23251f4 | Constantinos Venetsanopoulos | ASTAKOS_RECAPTCHA_ENABLED = True |
425 | a23251f4 | Constantinos Venetsanopoulos | |
426 | a23251f4 | Constantinos Venetsanopoulos | Restart the service on the Astakos node(s) and you are ready: |
427 | a23251f4 | Constantinos Venetsanopoulos | |
428 | a23251f4 | Constantinos Venetsanopoulos | .. code-block:: console |
429 | a23251f4 | Constantinos Venetsanopoulos | |
430 | a23251f4 | Constantinos Venetsanopoulos | # /etc/init.d/gunicorn restart |
431 | a23251f4 | Constantinos Venetsanopoulos | |
432 | a23251f4 | Constantinos Venetsanopoulos | Checkout your new Sign up page. If you see the reCAPTCHA box, you have setup |
433 | a23251f4 | Constantinos Venetsanopoulos | everything correctly. |
434 | a23251f4 | Constantinos Venetsanopoulos | |
435 | eab73849 | Constantinos Venetsanopoulos | |
436 | 3a0ce98e | Constantinos Venetsanopoulos | Astakos internals |
437 | 3a0ce98e | Constantinos Venetsanopoulos | ----------------- |
438 | 3a0ce98e | Constantinos Venetsanopoulos | |
439 | 3a0ce98e | Constantinos Venetsanopoulos | X-Auth-Token |
440 | 3a0ce98e | Constantinos Venetsanopoulos | ~~~~~~~~~~~~ |
441 | 3a0ce98e | Constantinos Venetsanopoulos | |
442 | 3a0ce98e | Constantinos Venetsanopoulos | Alice requests a specific resource from a cloud service e.g.: Pithos. In the |
443 | 3a0ce98e | Constantinos Venetsanopoulos | request she supplies the `X-Auth-Token` to identify whether she is eligible to |
444 | 3a0ce98e | Constantinos Venetsanopoulos | perform the specific task. The service contacts Astakos through its |
445 | 3a0ce98e | Constantinos Venetsanopoulos | ``/account/v1.0/authenticate`` api call (see :ref:`authenticate-api-label`) |
446 | 3a0ce98e | Constantinos Venetsanopoulos | providing the specific ``X-Auth-Token``. Astakos checkes whether the token |
447 | 3a0ce98e | Constantinos Venetsanopoulos | belongs to an active user and it has not expired and returns a dictionary |
448 | 3a0ce98e | Constantinos Venetsanopoulos | containing user related information. Finally the service uses the ``uniq`` |
449 | 3a0ce98e | Constantinos Venetsanopoulos | field included in the dictionary as the account string to identify the user |
450 | 3a0ce98e | Constantinos Venetsanopoulos | accessible resources. |
451 | 3a0ce98e | Constantinos Venetsanopoulos | |
452 | 3a0ce98e | Constantinos Venetsanopoulos | .. _authentication-label: |
453 | 3a0ce98e | Constantinos Venetsanopoulos | |
454 | 3a0ce98e | Constantinos Venetsanopoulos | Django Auth methods and Backends |
455 | 3a0ce98e | Constantinos Venetsanopoulos | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
456 | 3a0ce98e | Constantinos Venetsanopoulos | |
457 | 3a0ce98e | Constantinos Venetsanopoulos | Astakos incorporates Django user authentication system and extends its User model. |
458 | 3a0ce98e | Constantinos Venetsanopoulos | |
459 | 3a0ce98e | Constantinos Venetsanopoulos | Since username field of django User model has a limitation of 30 characters, |
460 | 3a0ce98e | Constantinos Venetsanopoulos | AstakosUser is **uniquely** identified by the ``email`` instead. Therefore, |
461 | 3a0ce98e | Constantinos Venetsanopoulos | ``astakos.im.authentication_backends.EmailBackend`` is served to authenticate a |
462 | 3a0ce98e | Constantinos Venetsanopoulos | user using email if the first argument is actually an email, otherwise tries |
463 | 3a0ce98e | Constantinos Venetsanopoulos | the username. |
464 | 3a0ce98e | Constantinos Venetsanopoulos | |
465 | 3a0ce98e | Constantinos Venetsanopoulos | A new AstakosUser instance is assigned with a uui as username and also with a |
466 | 3a0ce98e | Constantinos Venetsanopoulos | ``auth_token`` used by the cloud services to authenticate the user. |
467 | 3a0ce98e | Constantinos Venetsanopoulos | ``astakos.im.authentication_backends.TokenBackend`` is also specified in order |
468 | 3a0ce98e | Constantinos Venetsanopoulos | to authenticate the user using the email and the token fields. |
469 | 3a0ce98e | Constantinos Venetsanopoulos | |
470 | 3a0ce98e | Constantinos Venetsanopoulos | Logged on users can perform a number of actions: |
471 | 3a0ce98e | Constantinos Venetsanopoulos | |
472 | 3a0ce98e | Constantinos Venetsanopoulos | * access and edit their profile via: ``/im/profile``. |
473 | 3a0ce98e | Constantinos Venetsanopoulos | * change their password via: ``/im/password`` |
474 | 3a0ce98e | Constantinos Venetsanopoulos | * send feedback for grnet services via: ``/im/send_feedback`` |
475 | 3a0ce98e | Constantinos Venetsanopoulos | * logout (and delete cookie) via: ``/im/logout`` |
476 | 3a0ce98e | Constantinos Venetsanopoulos | |
477 | 3a0ce98e | Constantinos Venetsanopoulos | Internal Astakos requests are handled using cookie-based Django user sessions. |
478 | 3a0ce98e | Constantinos Venetsanopoulos | |
479 | 3a0ce98e | Constantinos Venetsanopoulos | External systems should forward to the ``/login`` URI. The server, |
480 | 3a0ce98e | Constantinos Venetsanopoulos | depending on its configuration will redirect to the appropriate login page. |
481 | 3a0ce98e | Constantinos Venetsanopoulos | When done with logging in, the service's login URI should redirect to the URI |
482 | 3a0ce98e | Constantinos Venetsanopoulos | provided with next, adding user and token parameters, which contain the email |
483 | 3a0ce98e | Constantinos Venetsanopoulos | and token fields respectively. |
484 | 3a0ce98e | Constantinos Venetsanopoulos | |
485 | 3a0ce98e | Constantinos Venetsanopoulos | The login URI accepts the following parameters: |
486 | 3a0ce98e | Constantinos Venetsanopoulos | |
487 | 3a0ce98e | Constantinos Venetsanopoulos | ====================== ========================= |
488 | 3a0ce98e | Constantinos Venetsanopoulos | Request Parameter Name Value |
489 | 3a0ce98e | Constantinos Venetsanopoulos | ====================== ========================= |
490 | 3a0ce98e | Constantinos Venetsanopoulos | next The URI to redirect to when the process is finished |
491 | 3a0ce98e | Constantinos Venetsanopoulos | renew Force token renewal (no value parameter) |
492 | 3a0ce98e | Constantinos Venetsanopoulos | force Force logout current user (no value parameter) |
493 | 3a0ce98e | Constantinos Venetsanopoulos | ====================== ========================= |
494 | 3a0ce98e | Constantinos Venetsanopoulos | |
495 | 3a0ce98e | Constantinos Venetsanopoulos | External systems inside the ``ASTAKOS_COOKIE_DOMAIN`` scope can acquire the |
496 | 3a0ce98e | Constantinos Venetsanopoulos | user information by the cookie identified by ``ASTAKOS_COOKIE_NAME`` setting |
497 | 3a0ce98e | Constantinos Venetsanopoulos | (set during the login procedure). |
498 | 3a0ce98e | Constantinos Venetsanopoulos | |
499 | 3a0ce98e | Constantinos Venetsanopoulos | Finally, backend systems having acquired a token can use the |
500 | 3a0ce98e | Constantinos Venetsanopoulos | :ref:`authenticate-api-label` API call from a private network or through HTTPS. |
501 | 3a0ce98e | Constantinos Venetsanopoulos | |
502 | 3a0ce98e | Constantinos Venetsanopoulos | |
503 | eab73849 | Constantinos Venetsanopoulos | Compute/Network/Image Service (Cyclades) |
504 | eab73849 | Constantinos Venetsanopoulos | ======================================== |
505 | eab73849 | Constantinos Venetsanopoulos | |
506 | 6d8a47d0 | Christos Stavrakakis | Introduction |
507 | 6d8a47d0 | Christos Stavrakakis | ------------ |
508 | 6d8a47d0 | Christos Stavrakakis | |
509 | 6d8a47d0 | Christos Stavrakakis | Cyclades is the Synnefo component that implements Compute, Network and Image |
510 | 6d8a47d0 | Christos Stavrakakis | services and exposes the associated OpenStack REST APIs. By running Cyclades |
511 | 6d8a47d0 | Christos Stavrakakis | you can provide a cloud that can handle thousands of virtual servers and |
512 | 6d8a47d0 | Christos Stavrakakis | networks. |
513 | 6d8a47d0 | Christos Stavrakakis | |
514 | 6d8a47d0 | Christos Stavrakakis | Cyclades does not include any virtualization software and knows nothing about |
515 | 6d8a47d0 | Christos Stavrakakis | the low-level VM management operations, e.g. handling of VM creation or |
516 | 6d8a47d0 | Christos Stavrakakis | migrations among physical nodes. Instead, Cyclades is the component that |
517 | 6d8a47d0 | Christos Stavrakakis | handles multiple Ganeti backends and exposes the REST APIs. The administrator |
518 | 6d8a47d0 | Christos Stavrakakis | can expand the infrastructure dynamically either by adding more Ganeti nodes |
519 | 6d8a47d0 | Christos Stavrakakis | or by adding new Ganeti clusters. Cyclades issue VM control commands to Ganeti |
520 | 6d8a47d0 | Christos Stavrakakis | via Ganeti's remote API and receive asynchronous notifications from Ganeti |
521 | 6d8a47d0 | Christos Stavrakakis | backends whenever the state of a VM changes, due to Synnefo- or |
522 | 6d8a47d0 | Christos Stavrakakis | administrator-initiated commands. |
523 | 6d8a47d0 | Christos Stavrakakis | |
524 | 6d8a47d0 | Christos Stavrakakis | Cyclades is the action orchestrator and the API layer on top of multiple Ganeti |
525 | 6d8a47d0 | Christos Stavrakakis | clusters. By this decoupled design, Ganeti cluster are self-contained and |
526 | 6d8a47d0 | Christos Stavrakakis | the administrator has complete control on them without Cyclades knowing about |
527 | 6d8a47d0 | Christos Stavrakakis | it. For example a VM migration to a different physical node is transparent |
528 | 6d8a47d0 | Christos Stavrakakis | to Cyclades. |
529 | 6d8a47d0 | Christos Stavrakakis | |
530 | eab73849 | Constantinos Venetsanopoulos | Working with Cyclades |
531 | eab73849 | Constantinos Venetsanopoulos | --------------------- |
532 | eab73849 | Constantinos Venetsanopoulos | |
533 | 6d8a47d0 | Christos Stavrakakis | Flavors |
534 | 6d8a47d0 | Christos Stavrakakis | ~~~~~~~ |
535 | 6d8a47d0 | Christos Stavrakakis | |
536 | 6d8a47d0 | Christos Stavrakakis | When creating a VM, the user must specify the `flavor` of the virtual server. |
537 | 6d8a47d0 | Christos Stavrakakis | Flavors are the virtual hardware templates, and provide a description about |
538 | 6d8a47d0 | Christos Stavrakakis | the number of CPUs, the amount of RAM, and the size of the disk of the VM. |
539 | 6d8a47d0 | Christos Stavrakakis | Besides the size of the disk, Cyclades flavors describe the storage backend |
540 | 6d8a47d0 | Christos Stavrakakis | that will be used for the virtual server. |
541 | 6d8a47d0 | Christos Stavrakakis | |
542 | 6d8a47d0 | Christos Stavrakakis | Flavors are created by the administrator and the user can select one of the |
543 | 06f25e46 | Christos Stavrakakis | available flavors. After VM creation, the user can resize his VM, by |
544 | 06f25e46 | Christos Stavrakakis | adding/removing CPU and RAM. |
545 | 6d8a47d0 | Christos Stavrakakis | |
546 | 6d8a47d0 | Christos Stavrakakis | Cyclades support different storage backends that are described by the disk |
547 | 6d8a47d0 | Christos Stavrakakis | template of the flavor, which is mapped to Ganeti's instance `disk template`. |
548 | 6d8a47d0 | Christos Stavrakakis | Currently the available disk templates are the following: |
549 | 6d8a47d0 | Christos Stavrakakis | |
550 | 6d8a47d0 | Christos Stavrakakis | * `file`: regulars file |
551 | 6d8a47d0 | Christos Stavrakakis | * `sharedfile`: regular files on a shared directory, e.g. NFS |
552 | 6d8a47d0 | Christos Stavrakakis | * `plain`: logical volumes |
553 | 6d8a47d0 | Christos Stavrakakis | * `drbd`: drbd on top of lvm volumes |
554 | 6d8a47d0 | Christos Stavrakakis | * `rbd`: rbd volumes residing inside a RADOS cluster |
555 | 6d8a47d0 | Christos Stavrakakis | * `ext`: disks provided by an external shared storage. |
556 | 6d8a47d0 | Christos Stavrakakis | |
557 | 6d8a47d0 | Christos Stavrakakis | - `ext_archipelago`: External shared storage provided by |
558 | 6d8a47d0 | Christos Stavrakakis | `Archipelago <http://www.synnefo.org/docs/archipelago/latest/index.html>`_. |
559 | 6d8a47d0 | Christos Stavrakakis | |
560 | 6d8a47d0 | Christos Stavrakakis | Flavors are created by the administrator using `snf-manage flavor-create` |
561 | 6d8a47d0 | Christos Stavrakakis | command. The command takes as argument number of CPUs, amount of RAM, the size |
562 | 6d8a47d0 | Christos Stavrakakis | of the disks and the disk templates and create the flavors that belong to the |
563 | 6d8a47d0 | Christos Stavrakakis | cartesian product of the specified arguments. For example, the following |
564 | 6d8a47d0 | Christos Stavrakakis | command will create two flavors of `40G` disk size with `drbd` disk template, |
565 | 6d8a47d0 | Christos Stavrakakis | `4G` RAM and `2` or `4` CPUs. |
566 | 6d8a47d0 | Christos Stavrakakis | |
567 | 6d8a47d0 | Christos Stavrakakis | .. code-block:: console |
568 | 6d8a47d0 | Christos Stavrakakis | |
569 | 6d8a47d0 | Christos Stavrakakis | snf-manage flavor-create 2,4 4096 40 drbd |
570 | 6d8a47d0 | Christos Stavrakakis | |
571 | 6d8a47d0 | Christos Stavrakakis | To see the available flavors, run `snf-manage flavor-list` command. Finally, |
572 | 6d8a47d0 | Christos Stavrakakis | the administrator can delete a flavor by using `flavor-modify` command: |
573 | 6d8a47d0 | Christos Stavrakakis | |
574 | 6d8a47d0 | Christos Stavrakakis | .. code-block:: console |
575 | 6d8a47d0 | Christos Stavrakakis | |
576 | 6d8a47d0 | Christos Stavrakakis | snf-manage flavor-modify --deleted=True <flavor_id> |
577 | 6d8a47d0 | Christos Stavrakakis | |
578 | 6d8a47d0 | Christos Stavrakakis | Images |
579 | 6d8a47d0 | Christos Stavrakakis | ~~~~~~ |
580 | 6d8a47d0 | Christos Stavrakakis | |
581 | 6d8a47d0 | Christos Stavrakakis | When creating a VM the user must also specify the `image` of the virtual |
582 | 6d8a47d0 | Christos Stavrakakis | server. Images are the static templates from which VM instances are |
583 | 6d8a47d0 | Christos Stavrakakis | initiated. Cyclades uses Pithos to store system and user-provided images, |
584 | 6d8a47d0 | Christos Stavrakakis | taking advantage of all Pithos features, like deduplication and syncing |
585 | 6d8a47d0 | Christos Stavrakakis | protocol. An image is a file stored to Pithos with additional metadata that |
586 | 6d8a47d0 | Christos Stavrakakis | are describing the image, e.g. the OS family or the root partition. To create |
587 | 6d8a47d0 | Christos Stavrakakis | a new image, the administrator or the user has to upload it a file to Pithos, |
588 | 6d8a47d0 | Christos Stavrakakis | and then register it as an Image with Cyclades. Then the user can use this |
589 | 6d8a47d0 | Christos Stavrakakis | image to spawn new VMs from it. |
590 | 6d8a47d0 | Christos Stavrakakis | |
591 | 6d8a47d0 | Christos Stavrakakis | Images can be private, public or shared between users, exactly like Pithos |
592 | 6d8a47d0 | Christos Stavrakakis | files. Since user-provided public images can be untrusted, the administrator |
593 | 6d8a47d0 | Christos Stavrakakis | can denote which users are trusted by adding them to the |
594 | 6d8a47d0 | Christos Stavrakakis | `UI_SYSTEM_IMAGES_OWNERS` setting in the |
595 | 6d8a47d0 | Christos Stavrakakis | `/etc/synnefo/20-snf-cyclades-app-ui.conf` file. Images of those users are |
596 | 6d8a47d0 | Christos Stavrakakis | properly displayed in the UI. |
597 | 6d8a47d0 | Christos Stavrakakis | |
598 | 6d8a47d0 | Christos Stavrakakis | When creating a new VM, Cyclades pass the location of the image and it's |
599 | 6d8a47d0 | Christos Stavrakakis | metadata to Ganeti. After Ganeti creates the instance's disk, `snf-image` |
600 | 6d8a47d0 | Christos Stavrakakis | will copy the image to the new disk and perform the image customization |
601 | 6d8a47d0 | Christos Stavrakakis | phase. During the phase, `snf-image` sends notifications to Cyclades about |
602 | 6d8a47d0 | Christos Stavrakakis | the progress of the image deployment and customization. Customization includes |
603 | 6d8a47d0 | Christos Stavrakakis | resizing the root file system, file injection (e.g. SSH keys) and setting |
604 | 6d8a47d0 | Christos Stavrakakis | a custom hostname. For better understanding of `snf-image` read the |
605 | 6d8a47d0 | Christos Stavrakakis | corresponding `documentation |
606 | 6d8a47d0 | Christos Stavrakakis | <http://www.synnefo.org/docs/snf-image/latest/index.html>`_. |
607 | 6d8a47d0 | Christos Stavrakakis | |
608 | 6d8a47d0 | Christos Stavrakakis | For passing sensitive data about the image to Ganeti, like the VMs password, |
609 | 6d8a47d0 | Christos Stavrakakis | Cyclades keeps all sensitive data in memory caches (memcache) and never allows |
610 | 6d8a47d0 | Christos Stavrakakis | them to hit the disk. The data are exposed to `snf-image` via an one-time URL |
611 | 6d8a47d0 | Christos Stavrakakis | that is exposed from the `vmapi` application. So, instead of passing sensitive |
612 | 6d8a47d0 | Christos Stavrakakis | data to `snf-image` via Ganeti, Cyclades pass an one-time configuration URL |
613 | 6d8a47d0 | Christos Stavrakakis | that contains a random UUID. After `snf-image` gets the sensitive data, the |
614 | 6d8a47d0 | Christos Stavrakakis | URL is invalidated so no one else can access them. |
615 | 6d8a47d0 | Christos Stavrakakis | |
616 | 6d8a47d0 | Christos Stavrakakis | The administrator can register images, exactly like users, using a system user |
617 | 6d8a47d0 | Christos Stavrakakis | (a user that is defined in the `UI_SYSTEM_IMAGES_OWNERS` setting). For |
618 | 6d8a47d0 | Christos Stavrakakis | example, the following command will register the |
619 | 6d8a47d0 | Christos Stavrakakis | `pithos://u53r-un1qu3-1d/images/debian_base-6.0-7-x86_64.diskdump` as an |
620 | 6d8a47d0 | Christos Stavrakakis | image to Cyclades: |
621 | 6d8a47d0 | Christos Stavrakakis | |
622 | 6d8a47d0 | Christos Stavrakakis | .. code-block:: console |
623 | 6d8a47d0 | Christos Stavrakakis | |
624 | 6d8a47d0 | Christos Stavrakakis | kamaki image register "Debian Base" \ |
625 | 6d8a47d0 | Christos Stavrakakis | pithos://u53r-un1qu3-1d/images/debian_base-6.0-7-x86_64.diskdump \ |
626 | 6d8a47d0 | Christos Stavrakakis | --public \ |
627 | 6d8a47d0 | Christos Stavrakakis | --disk-format=diskdump \ |
628 | 6d8a47d0 | Christos Stavrakakis | --property OSFAMILY=linux --property ROOT_PARTITION=1 \ |
629 | 6d8a47d0 | Christos Stavrakakis | --property description="Debian Squeeze Base System" \ |
630 | 6d8a47d0 | Christos Stavrakakis | --property size=451 --property kernel=2.6.32 --property GUI="No GUI" \ |
631 | 6d8a47d0 | Christos Stavrakakis | --property sortorder=1 --property USERS=root --property OS=debian |
632 | 6d8a47d0 | Christos Stavrakakis | |
633 | 6d8a47d0 | Christos Stavrakakis | Deletion of an image is done via `kamaki image unregister` command, which will |
634 | 6d8a47d0 | Christos Stavrakakis | delete the Cyclades Images but will leave the Pithos file as is (unregister). |
635 | 6d8a47d0 | Christos Stavrakakis | |
636 | 6d8a47d0 | Christos Stavrakakis | Apart from using `kamaki` to see and hangle the available images, the |
637 | 6d8a47d0 | Christos Stavrakakis | administrator can use `snf-manage image-list` and `snf-manage image-show` |
638 | 6d8a47d0 | Christos Stavrakakis | commands to list and inspect the available public images. Also, the `--user-id` |
639 | 6d8a47d0 | Christos Stavrakakis | option can be used the see the images of a specific user. |
640 | 6d8a47d0 | Christos Stavrakakis | |
641 | 6d8a47d0 | Christos Stavrakakis | Virtual Servers |
642 | 6d8a47d0 | Christos Stavrakakis | ~~~~~~~~~~~~~~~ |
643 | 6d8a47d0 | Christos Stavrakakis | |
644 | 6d8a47d0 | Christos Stavrakakis | As mentioned, Cyclades uses Ganeti for management of VMs. The administrator can |
645 | 6d8a47d0 | Christos Stavrakakis | handle Cyclades VMs just like any other Ganeti instance, via `gnt-instance` |
646 | 6d8a47d0 | Christos Stavrakakis | commands. All Ganeti instances that belong to Synnefo, are separated from |
647 | 6d8a47d0 | Christos Stavrakakis | others, by a prefix in their names. This prefix is defined in |
648 | 6d8a47d0 | Christos Stavrakakis | ``BACKEND_PREFIX_ID`` setting in |
649 | 6d8a47d0 | Christos Stavrakakis | ``/etc/synnefo/20-snf-cyclades-app-backend.conf``. |
650 | 6d8a47d0 | Christos Stavrakakis | |
651 | 6d8a47d0 | Christos Stavrakakis | Apart from handling Cyclades VM at the Ganeti level, the administrator can |
652 | 6d8a47d0 | Christos Stavrakakis | also use the `snf-manage server-*` commands. These command cover the most |
653 | 6d8a47d0 | Christos Stavrakakis | common tasks that are relative with VM handling. Below we describe come |
654 | 6d8a47d0 | Christos Stavrakakis | of them, but for more information you can use the `--help` option of all |
655 | 6d8a47d0 | Christos Stavrakakis | `snf-manage server-* commands`. These command cover the most |
656 | 6d8a47d0 | Christos Stavrakakis | |
657 | 6d8a47d0 | Christos Stavrakakis | The `snf-manage server-create` command can be used to create a new VM for some |
658 | 6d8a47d0 | Christos Stavrakakis | user. This command can be useful when the administrator wants to test Cyclades |
659 | 6d8a47d0 | Christos Stavrakakis | functionality without starting the API service, e.g. after an upgrade. Also, by |
660 | 6d8a47d0 | Christos Stavrakakis | using `--backend-id` option, the VM will be created in the specified backend, |
661 | 6d8a47d0 | Christos Stavrakakis | bypassing automatic VM allocation. |
662 | 6d8a47d0 | Christos Stavrakakis | |
663 | 6d8a47d0 | Christos Stavrakakis | .. code-block:: console |
664 | 6d8a47d0 | Christos Stavrakakis | |
665 | 6d8a47d0 | Christos Stavrakakis | snf-manage server-create --flavor-id=1 --image-id=fc0f6858-f962-42ce-bf9a-1345f89b3d5e \ |
666 | 6d8a47d0 | Christos Stavrakakis | --user-id=7cf4d078-67bf-424d-8ff2-8669eb4841ea --backend-id=2 \ |
667 | 6d8a47d0 | Christos Stavrakakis | --password='example_passw0rd' --name='test_vm' |
668 | 6d8a47d0 | Christos Stavrakakis | |
669 | 6d8a47d0 | Christos Stavrakakis | The above commnd will create a new VM for user |
670 | 6d8a47d0 | Christos Stavrakakis | `7cf4d078-67bf-424d-8ff2-8669eb4841ea` in the Ganeti backend with ID 2. By |
671 | 6d8a47d0 | Christos Stavrakakis | default this command will issue a Ganeti job to create the VM |
672 | 6d8a47d0 | Christos Stavrakakis | (`OP_INSTANCE_CREATE`) and return. As in other commands, the `--wait=True` |
673 | 6d8a47d0 | Christos Stavrakakis | option can be used in order to wait for the successful completion of the job. |
674 | 6d8a47d0 | Christos Stavrakakis | |
675 | 6d8a47d0 | Christos Stavrakakis | `snf-manage server-list` command can be used to list all the available servers. |
676 | 6d8a47d0 | Christos Stavrakakis | The command supports some useful options, like listing servers of a user, |
677 | 6d8a47d0 | Christos Stavrakakis | listing servers that exist in a Ganeti backend and listing deleted servers. |
678 | 6d8a47d0 | Christos Stavrakakis | Also, as in most of `*-list` commands, the `--filter-by` option can be used to |
679 | 6d8a47d0 | Christos Stavrakakis | filter the results. For example, the following command will only display the |
680 | 6d8a47d0 | Christos Stavrakakis | started servers of a specific flavor: |
681 | 6d8a47d0 | Christos Stavrakakis | |
682 | 6d8a47d0 | Christos Stavrakakis | .. code-block:: console |
683 | 6d8a47d0 | Christos Stavrakakis | |
684 | 6d8a47d0 | Christos Stavrakakis | snf-manage server-list --filter-by="operstate=STARTED,flavor=<flavor_id>" |
685 | 6d8a47d0 | Christos Stavrakakis | |
686 | 6d8a47d0 | Christos Stavrakakis | Another very useful command is the `server-inspect` command which will display |
687 | 6d8a47d0 | Christos Stavrakakis | all available information about the state of the server in DB and the state |
688 | 6d8a47d0 | Christos Stavrakakis | of the server in the Ganeti backend. The output will give you an easy overview |
689 | 6d8a47d0 | Christos Stavrakakis | about the state of the VM which can be useful for debugging. |
690 | 6d8a47d0 | Christos Stavrakakis | |
691 | 6d8a47d0 | Christos Stavrakakis | Also the administrator can `suspend` a user's VM, using the `server-modify` |
692 | 6d8a47d0 | Christos Stavrakakis | command: |
693 | 6d8a47d0 | Christos Stavrakakis | |
694 | 6d8a47d0 | Christos Stavrakakis | .. code-block:: console |
695 | 6d8a47d0 | Christos Stavrakakis | |
696 | 6d8a47d0 | Christos Stavrakakis | snf-manage server-modify --suspended=True <server_id> |
697 | 6d8a47d0 | Christos Stavrakakis | |
698 | 6d8a47d0 | Christos Stavrakakis | The user is forbidden to do any action on an administratively suspended VM, |
699 | 6d8a47d0 | Christos Stavrakakis | which is useful for abuse cases. |
700 | 6d8a47d0 | Christos Stavrakakis | |
701 | 6d8a47d0 | Christos Stavrakakis | Ganeti backends |
702 | 6d8a47d0 | Christos Stavrakakis | ~~~~~~~~~~~~~~~ |
703 | 0768a1df | Christos Stavrakakis | |
704 | a1c707c9 | Constantinos Venetsanopoulos | Since v0.11, Synnefo is able to manage multiple Ganeti clusters (backends) |
705 | a1c707c9 | Constantinos Venetsanopoulos | making it capable to scale linearly to tens of thousands of VMs. Backends |
706 | a1c707c9 | Constantinos Venetsanopoulos | can be dynamically added or removed via `snf-manage` commands. |
707 | 0768a1df | Christos Stavrakakis | |
708 | a1c707c9 | Constantinos Venetsanopoulos | Each newly created VM is allocated to a Ganeti backend by the Cyclades backend |
709 | a1c707c9 | Constantinos Venetsanopoulos | allocator. The VM is "pinned" to this backend, and can not change through its |
710 | a1c707c9 | Constantinos Venetsanopoulos | lifetime. The backend allocator decides in which backend to spawn the VM based |
711 | a1c707c9 | Constantinos Venetsanopoulos | on the available resources of each backend, trying to balance the load between |
712 | edd28bbf | Christos Stavrakakis | them. Also, Networks are created to all Ganeti backends, in order to ensure |
713 | edd28bbf | Christos Stavrakakis | that VMs residing on different backends can be connected to the same networks. |
714 | 0768a1df | Christos Stavrakakis | |
715 | edd28bbf | Christos Stavrakakis | A backend can be marked as `drained` in order to be excluded from automatic |
716 | edd28bbf | Christos Stavrakakis | servers allocation and not receive new servers. Also, a backend can be marked |
717 | edd28bbf | Christos Stavrakakis | as `offline` to denote that the backend is not healthy (e.g. broken master) |
718 | edd28bbf | Christos Stavrakakis | and avoid the penalty of connection timeouts. |
719 | edd28bbf | Christos Stavrakakis | |
720 | edd28bbf | Christos Stavrakakis | Finally, Cyclades is able to manage Ganeti backends with different enabled |
721 | edd28bbf | Christos Stavrakakis | hypervisors (`kvm`, `xen`), and different enabled disk templates. |
722 | 0768a1df | Christos Stavrakakis | |
723 | a1c707c9 | Constantinos Venetsanopoulos | Listing existing backends |
724 | a1c707c9 | Constantinos Venetsanopoulos | ````````````````````````` |
725 | a1c707c9 | Constantinos Venetsanopoulos | To list all the Ganeti backends known to Synnefo, we run: |
726 | 90c74332 | Christos Stavrakakis | |
727 | 0768a1df | Christos Stavrakakis | .. code-block:: console |
728 | 0768a1df | Christos Stavrakakis | |
729 | 0768a1df | Christos Stavrakakis | $ snf-manage backend-list |
730 | 0768a1df | Christos Stavrakakis | |
731 | 0768a1df | Christos Stavrakakis | Adding a new Ganeti backend |
732 | 90c74332 | Christos Stavrakakis | ``````````````````````````` |
733 | 0768a1df | Christos Stavrakakis | Backends are dynamically added under the control of Synnefo with `snf-manage |
734 | 0768a1df | Christos Stavrakakis | backend-add` command. In this section it is assumed that a Ganeti cluster, |
735 | a1c707c9 | Constantinos Venetsanopoulos | named ``cluster.example.com`` is already up and running and configured to be |
736 | a1c707c9 | Constantinos Venetsanopoulos | able to host Synnefo VMs. |
737 | 0768a1df | Christos Stavrakakis | |
738 | a1c707c9 | Constantinos Venetsanopoulos | To add this Ganeti cluster, we run: |
739 | 90c74332 | Christos Stavrakakis | |
740 | 0768a1df | Christos Stavrakakis | .. code-block:: console |
741 | 0768a1df | Christos Stavrakakis | |
742 | 0768a1df | Christos Stavrakakis | $ snf-manage backend-add --clustername=cluster.example.com --user="synnefo_user" --pass="synnefo_pass" |
743 | 0768a1df | Christos Stavrakakis | |
744 | 46ccbcb9 | Christos Stavrakakis | where ``clustername`` is the Cluster hostname of the Ganeti cluster, and |
745 | 46ccbcb9 | Christos Stavrakakis | ``user`` and ``pass`` are the credentials for the `Ganeti RAPI user |
746 | 46ccbcb9 | Christos Stavrakakis | <http://docs.ganeti.org/ganeti/2.2/html/rapi.html#users-and-passwords>`_. All |
747 | 46ccbcb9 | Christos Stavrakakis | backend attributes can be also changed dynamically using the `snf-manage |
748 | 46ccbcb9 | Christos Stavrakakis | backend-modify` command. |
749 | 0768a1df | Christos Stavrakakis | |
750 | edd28bbf | Christos Stavrakakis | ``snf-manage backend-add`` will also create all existing public networks to |
751 | a1c707c9 | Constantinos Venetsanopoulos | the new backend. You can verify that the backend is added, by running |
752 | a1c707c9 | Constantinos Venetsanopoulos | `snf-manage backend-list`. |
753 | 0768a1df | Christos Stavrakakis | |
754 | a1c707c9 | Constantinos Venetsanopoulos | Note that no VMs will be spawned to this backend, since by default it is in a |
755 | edd28bbf | Christos Stavrakakis | ``drained`` state after addition in order to manually verify the state of the |
756 | edd28bbf | Christos Stavrakakis | backend. |
757 | a1c707c9 | Constantinos Venetsanopoulos | |
758 | edd28bbf | Christos Stavrakakis | So, after making sure everything works as expected, make the new backend active |
759 | edd28bbf | Christos Stavrakakis | by un-setting the ``drained`` flag. You can do this by running: |
760 | a1c707c9 | Constantinos Venetsanopoulos | |
761 | a1c707c9 | Constantinos Venetsanopoulos | .. code-block:: console |
762 | a1c707c9 | Constantinos Venetsanopoulos | |
763 | 46ccbcb9 | Christos Stavrakakis | $ snf-manage backend-modify --drained=False <backend_id> |
764 | 0768a1df | Christos Stavrakakis | |
765 | a1c707c9 | Constantinos Venetsanopoulos | Allocation of VMs in Ganeti backends |
766 | a1c707c9 | Constantinos Venetsanopoulos | ```````````````````````````````````` |
767 | a1c707c9 | Constantinos Venetsanopoulos | As already mentioned, the Cyclades backend allocator is responsible for |
768 | a1c707c9 | Constantinos Venetsanopoulos | allocating new VMs to backends. This allocator does not choose the exact Ganeti |
769 | a1c707c9 | Constantinos Venetsanopoulos | node that will host the VM but just the Ganeti backend. The exact node is |
770 | a1c707c9 | Constantinos Venetsanopoulos | chosen by the Ganeti cluster's allocator (hail). |
771 | 0768a1df | Christos Stavrakakis | |
772 | 0768a1df | Christos Stavrakakis | The decision about which backend will host a VM is based on the available |
773 | 0768a1df | Christos Stavrakakis | resources. The allocator computes a score for each backend, that shows its load |
774 | 0768a1df | Christos Stavrakakis | factor, and the one with the minimum score is chosen. The admin can exclude |
775 | a1c707c9 | Constantinos Venetsanopoulos | backends from the allocation phase by marking them as ``drained`` by running: |
776 | 90c74332 | Christos Stavrakakis | |
777 | 0768a1df | Christos Stavrakakis | .. code-block:: console |
778 | 0768a1df | Christos Stavrakakis | |
779 | 46ccbcb9 | Christos Stavrakakis | $ snf-manage backend-modify --drained=True <backend_id> |
780 | 0768a1df | Christos Stavrakakis | |
781 | 0768a1df | Christos Stavrakakis | The backend resources are periodically updated, at a period defined by |
782 | edd28bbf | Christos Stavrakakis | the ``BACKEND_REFRESH_MIN`` setting, or by running `snf-manage |
783 | edd28bbf | Christos Stavrakakis | backend-update-status` command. It is advised to have a cron job running this |
784 | edd28bbf | Christos Stavrakakis | command at a smaller interval than ``BACKEND_REFRESH_MIN`` in order to remove |
785 | edd28bbf | Christos Stavrakakis | the load of refreshing the backends stats from the VM creation phase. |
786 | 0768a1df | Christos Stavrakakis | |
787 | a1c707c9 | Constantinos Venetsanopoulos | Finally, the admin can decide to have a user's VMs being allocated to a |
788 | a1c707c9 | Constantinos Venetsanopoulos | specific backend, with the ``BACKEND_PER_USER`` setting. This is a mapping |
789 | a1c707c9 | Constantinos Venetsanopoulos | between users and backends. If the user is found in ``BACKEND_PER_USER``, then |
790 | 46ccbcb9 | Christos Stavrakakis | Synnefo allocates all his/hers VMs to the specific backend in the variable, |
791 | 46ccbcb9 | Christos Stavrakakis | even if is marked as drained (useful for testing). |
792 | 0768a1df | Christos Stavrakakis | |
793 | 09d07554 | Christos Stavrakakis | Allocation based on disk-templates |
794 | 09d07554 | Christos Stavrakakis | ********************************** |
795 | 09d07554 | Christos Stavrakakis | |
796 | 09d07554 | Christos Stavrakakis | Besides the available resources of each Ganeti backend, the allocator takes |
797 | 09d07554 | Christos Stavrakakis | into consideration the disk template of the instance when trying to allocate it |
798 | 09d07554 | Christos Stavrakakis | to a Ganeti backend. Specifically, the allocator checks if the flavor of the |
799 | 09d07554 | Christos Stavrakakis | instance belongs to the available disk templates of each Ganeti backend. |
800 | 09d07554 | Christos Stavrakakis | |
801 | 09d07554 | Christos Stavrakakis | A Ganeti cluster has a list of enabled disk templates |
802 | 09d07554 | Christos Stavrakakis | (`--enabled-disk-templates`) and a list of allowed disk templates for new |
803 | 09d07554 | Christos Stavrakakis | instances (`--ipolicy-disk-templates`). See the `gnt-cluster` manpage for more |
804 | 09d07554 | Christos Stavrakakis | details about these options. |
805 | 09d07554 | Christos Stavrakakis | |
806 | 09d07554 | Christos Stavrakakis | When Synnefo allocates an instance, it checks whether the disk template of the |
807 | 09d07554 | Christos Stavrakakis | new instance belongs both in the enabled and ipolicy disk templates. You can |
808 | 09d07554 | Christos Stavrakakis | see the list of the available disk-templates by running `snf-manage |
809 | 09d07554 | Christos Stavrakakis | backend-list`. This list should be updated automatically after changing |
810 | 09d07554 | Christos Stavrakakis | these options in Ganeti and it can also be updated by running `snf-manage |
811 | 09d07554 | Christos Stavrakakis | backend-update-status`. |
812 | 09d07554 | Christos Stavrakakis | |
813 | 09d07554 | Christos Stavrakakis | So the administrator, can route instances on different backends based on their |
814 | 09d07554 | Christos Stavrakakis | flavor disk template, by modifying the enabled or ipolicy disk templates of |
815 | 09d07554 | Christos Stavrakakis | each backend. Also, the administrator can route instances between different |
816 | 09d07554 | Christos Stavrakakis | nodes of the same Ganeti backend, by modifying the same options at the |
817 | 09d07554 | Christos Stavrakakis | nodegroup level (see `gnt-group` manpage for mor details). |
818 | 09d07554 | Christos Stavrakakis | |
819 | edd28bbf | Christos Stavrakakis | Removing an existing Ganeti backend |
820 | edd28bbf | Christos Stavrakakis | ``````````````````````````````````` |
821 | edd28bbf | Christos Stavrakakis | In order to remove an existing backend from Synnefo, you must first make |
822 | edd28bbf | Christos Stavrakakis | sure that there are not active servers in the backend, and then run: |
823 | edd28bbf | Christos Stavrakakis | |
824 | edd28bbf | Christos Stavrakakis | .. code-block:: console |
825 | edd28bbf | Christos Stavrakakis | |
826 | edd28bbf | Christos Stavrakakis | # snf-manage backend-remove <backend_id> |
827 | edd28bbf | Christos Stavrakakis | |
828 | edd28bbf | Christos Stavrakakis | |
829 | 6d8a47d0 | Christos Stavrakakis | Virtual Networks |
830 | 6d8a47d0 | Christos Stavrakakis | ~~~~~~~~~~~~~~~~ |
831 | 6d8a47d0 | Christos Stavrakakis | |
832 | 6d8a47d0 | Christos Stavrakakis | Cyclades also implements the Network service and exposes the Quantum Openstack |
833 | 6d8a47d0 | Christos Stavrakakis | API. Cyclades supports full IPv4 and IPv6 connectivity to the public internet |
834 | 6d8a47d0 | Christos Stavrakakis | for it's VMs. Also, Cyclades provides L2 and L3 virtual private networks, |
835 | 6d8a47d0 | Christos Stavrakakis | giving the user freedom to create arbitraty network topologies of |
836 | 6d8a47d0 | Christos Stavrakakis | interconnected VMs. |
837 | 6d8a47d0 | Christos Stavrakakis | |
838 | 6d8a47d0 | Christos Stavrakakis | Public networking is desployment specific and must be customized based on the |
839 | 6d8a47d0 | Christos Stavrakakis | specific needs of the system administrator. Private virtual networks can be |
840 | 6d8a47d0 | Christos Stavrakakis | provided by different network technologies which are exposed as different |
841 | 6d8a47d0 | Christos Stavrakakis | network flavors. For better understanding of networking please refer to the |
842 | 6d8a47d0 | Christos Stavrakakis | :ref:`Network <networks>` section. |
843 | 6d8a47d0 | Christos Stavrakakis | |
844 | 6d8a47d0 | Christos Stavrakakis | A Cyclades virtual network is an isolated Layer-2 broadcast domain. A network |
845 | 6d8a47d0 | Christos Stavrakakis | can also have an associated IPv4 and IPv6 subnet representing the Layer-3 |
846 | 6d8a47d0 | Christos Stavrakakis | characteristics of the network. Each subnet represents an IP address block |
847 | 6d8a47d0 | Christos Stavrakakis | that is used in order to assign addresses to VMs. |
848 | 6d8a47d0 | Christos Stavrakakis | |
849 | 6d8a47d0 | Christos Stavrakakis | To connect a VM to a network, a port must be created, which represent a virtual |
850 | 6d8a47d0 | Christos Stavrakakis | port on a network switch. VMs are connected to networks by attaching a virtual |
851 | 6d8a47d0 | Christos Stavrakakis | interface to a port. |
852 | 6d8a47d0 | Christos Stavrakakis | |
853 | 6d8a47d0 | Christos Stavrakakis | Cyclades also supports `floating IPs`, which are public IPv4 addresses that |
854 | 6d8a47d0 | Christos Stavrakakis | can dynamically(hotplug-able) be added and removed to VMs. Floating IPs are |
855 | 6d8a47d0 | Christos Stavrakakis | a quotable resource that is allocated to each user. Unlike other cloud |
856 | 6d8a47d0 | Christos Stavrakakis | platforms, floating IPs are not implemented using 1-1 NAT to a ports private |
857 | 6d8a47d0 | Christos Stavrakakis | IP. Instead, floating IPs are directly assigned to virtual interfaces of VMs. |
858 | 6d8a47d0 | Christos Stavrakakis | |
859 | 6d8a47d0 | Christos Stavrakakis | Exactly like VMS, networks can be handled as Ganeti networks via `gnt-network` |
860 | 6d8a47d0 | Christos Stavrakakis | commands. All Ganeti networks that belong to Synnefo are named with the prefix |
861 | 6d8a47d0 | Christos Stavrakakis | `${BACKEND_PREFIX_ID}-net-`. Also, there are a number of `snf-manage` commands |
862 | 6d8a47d0 | Christos Stavrakakis | for handling of `networks`, `subnets`, `ports` and `floating IPs`. Below |
863 | 6d8a47d0 | Christos Stavrakakis | we will present a use case scenario using some of these commands. For better |
864 | 6d8a47d0 | Christos Stavrakakis | understanding of these commands, refer to their help messages. |
865 | 6d8a47d0 | Christos Stavrakakis | |
866 | 6d8a47d0 | Christos Stavrakakis | Create a virtual private network for user |
867 | 6d8a47d0 | Christos Stavrakakis | `7cf4d078-67bf-424d-8ff2-8669eb4841ea` using the `PHYSICAL_VLAN` flavor, which |
868 | 6d8a47d0 | Christos Stavrakakis | means that the network will be uniquely assigned a phsyical VLAN. The network |
869 | 6d8a47d0 | Christos Stavrakakis | is assigned an IPv4 subnet, described by it's CIDR and gateway. Also, |
870 | 6d8a47d0 | Christos Stavrakakis | the `--dhcp=True` option is used, to make `nfdhcpd` respone to DHCP queries |
871 | 6d8a47d0 | Christos Stavrakakis | from VMs. |
872 | 09d07554 | Christos Stavrakakis | |
873 | 6d8a47d0 | Christos Stavrakakis | .. code-block:: console |
874 | 9492387a | Christos Stavrakakis | |
875 | 6d8a47d0 | Christos Stavrakakis | snf-manage network-create --owner=7cf4d078-67bf-424d-8ff2-8669eb4841ea --name=prv_net-1 \ |
876 | 6d8a47d0 | Christos Stavrakakis | --subnet=192.168.2.0/24 --gateway=192.168.2.1 --dhcp=True --flavor=PHYSICAL_VLAN |
877 | 9492387a | Christos Stavrakakis | |
878 | 6d8a47d0 | Christos Stavrakakis | Inspect the state of the network in Cyclades DB and in all the Ganeti backends: |
879 | 9492387a | Christos Stavrakakis | |
880 | 6d8a47d0 | Christos Stavrakakis | .. code-block:: console |
881 | 9492387a | Christos Stavrakakis | |
882 | 6d8a47d0 | Christos Stavrakakis | snf-manage network-inspect <network_id> |
883 | 9492387a | Christos Stavrakakis | |
884 | 6d8a47d0 | Christos Stavrakakis | Inspect the state of the network's subnet, containg an overview of the |
885 | 6d8a47d0 | Christos Stavrakakis | subnet's IPv4 address allocation pool: |
886 | 6d8a47d0 | Christos Stavrakakis | |
887 | 6d8a47d0 | Christos Stavrakakis | .. code-block:: console |
888 | 6d8a47d0 | Christos Stavrakakis | |
889 | 6d8a47d0 | Christos Stavrakakis | snf-manage subnet-inspect <subnet_id> |
890 | 6d8a47d0 | Christos Stavrakakis | |
891 | 6d8a47d0 | Christos Stavrakakis | Connect a VM to the created private network. The port will be automatically |
892 | 6d8a47d0 | Christos Stavrakakis | be assigned an IPv4 address from one of the network's available IPs. This |
893 | 6d8a47d0 | Christos Stavrakakis | command will result in sending an `OP_INSTANCE_MODIFY` Ganeti command and |
894 | 6d8a47d0 | Christos Stavrakakis | attaching a NIC to the specified Ganeti instance. |
895 | 9492387a | Christos Stavrakakis | |
896 | 6d8a47d0 | Christos Stavrakakis | .. code-block:: console |
897 | 6d8a47d0 | Christos Stavrakakis | |
898 | 6d8a47d0 | Christos Stavrakakis | snf-manage port-create --network=<network_id> --server=<server_id> |
899 | a653c059 | Christos Stavrakakis | |
900 | 6d8a47d0 | Christos Stavrakakis | Inspect the state of the the port in Cyclades DB and in the Ganeti backend: |
901 | a653c059 | Christos Stavrakakis | |
902 | 6d8a47d0 | Christos Stavrakakis | .. code-block:: console |
903 | a653c059 | Christos Stavrakakis | |
904 | 6d8a47d0 | Christos Stavrakakis | snf-manage port-inspect <port_id> |
905 | 6d8a47d0 | Christos Stavrakakis | |
906 | 6d8a47d0 | Christos Stavrakakis | Disconnect the VM from the network and delete the network: |
907 | 6d8a47d0 | Christos Stavrakakis | |
908 | 6d8a47d0 | Christos Stavrakakis | .. code-block:: console |
909 | 6d8a47d0 | Christos Stavrakakis | |
910 | 6d8a47d0 | Christos Stavrakakis | snf-manage port-remove <port_id> |
911 | 6d8a47d0 | Christos Stavrakakis | snf-manage network-remove <network_id> |
912 | a653c059 | Christos Stavrakakis | |
913 | 9c98c6fc | Christos Stavrakakis | Managing Network Resources |
914 | a1c707c9 | Constantinos Venetsanopoulos | `````````````````````````` |
915 | 9c98c6fc | Christos Stavrakakis | |
916 | a1c707c9 | Constantinos Venetsanopoulos | Proper operation of the Cyclades Network Service depends on the unique |
917 | a1c707c9 | Constantinos Venetsanopoulos | assignment of specific resources to each type of virtual network. Specifically, |
918 | a1c707c9 | Constantinos Venetsanopoulos | these resources are: |
919 | 9c98c6fc | Christos Stavrakakis | |
920 | a1c707c9 | Constantinos Venetsanopoulos | * IP addresses. Cyclades creates a Pool of IPs for each Network, and assigns a |
921 | a1c707c9 | Constantinos Venetsanopoulos | unique IP address to each VM, thus connecting it to this Network. You can see |
922 | 6d8a47d0 | Christos Stavrakakis | the IP pool of each network by running `snf-manage subnet-inspect |
923 | 6d8a47d0 | Christos Stavrakakis | <subnet_ID>`. IP pools are automatically created and managed by Cyclades, |
924 | a1c707c9 | Constantinos Venetsanopoulos | depending on the subnet of the Network. |
925 | 9492387a | Christos Stavrakakis | * Bridges corresponding to physical VLANs, which are required for networks of |
926 | a1c707c9 | Constantinos Venetsanopoulos | type `PRIVATE_PHYSICAL_VLAN`. |
927 | a1c707c9 | Constantinos Venetsanopoulos | * One Bridge corresponding to one physical VLAN which is required for networks of |
928 | a1c707c9 | Constantinos Venetsanopoulos | type `PRIVATE_MAC_PREFIX`. |
929 | 9c98c6fc | Christos Stavrakakis | |
930 | 4573511a | Christos Stavrakakis | IPv4 addresses |
931 | 4573511a | Christos Stavrakakis | ************** |
932 | 4573511a | Christos Stavrakakis | |
933 | 4573511a | Christos Stavrakakis | An allocation pool of IPv4 addresses is automatically created for every network |
934 | 9a1b6564 | Christos Stavrakakis | with an IPv4 subnet. By default, the allocation pool contains the range of IP |
935 | 9a1b6564 | Christos Stavrakakis | addresses that are included in the subnet, except from the gateway and the |
936 | 9a1b6564 | Christos Stavrakakis | broadcast address of the network. The range of IP addresses can be restricted |
937 | 9a1b6564 | Christos Stavrakakis | using the `--allocation-pool` option of `snf-manage network-create` command. |
938 | 9a1b6564 | Christos Stavrakakis | The admin can externally reserve IP addresses to exclude them from automatic |
939 | 4573511a | Christos Stavrakakis | allocation with the `--add-reserved-ips` option of `snf-manage network-modify` |
940 | 9a1b6564 | Christos Stavrakakis | command. For example the following command will reserve two IP addresses from |
941 | 9a1b6564 | Christos Stavrakakis | network with ID `42`: |
942 | 9c98c6fc | Christos Stavrakakis | |
943 | 4573511a | Christos Stavrakakis | .. code-block:: console |
944 | 4573511a | Christos Stavrakakis | |
945 | 4573511a | Christos Stavrakakis | snf-manage network-modify --add-reserved-ips=10.0.0.21,10.0.0.22 42 |
946 | 4573511a | Christos Stavrakakis | |
947 | 4573511a | Christos Stavrakakis | .. warning:: Externally reserving IP addresses is also available at the Ganeti. |
948 | 4573511a | Christos Stavrakakis | However, when using Cyclades with multiple Ganeti backends, the handling of |
949 | 4573511a | Christos Stavrakakis | IP pools must be performed from Cyclades! |
950 | 4573511a | Christos Stavrakakis | |
951 | 4573511a | Christos Stavrakakis | Bridges |
952 | 4573511a | Christos Stavrakakis | ******* |
953 | 4573511a | Christos Stavrakakis | |
954 | 4573511a | Christos Stavrakakis | As already mentioned Cyclades use a pool of Bridges that must correspond |
955 | 4573511a | Christos Stavrakakis | to Physical VLAN at the Ganeti level. A bridge from the pool is assigned to |
956 | 4573511a | Christos Stavrakakis | each network of flavor `PHYSICAL_VLAN`. Creation of this pool is done |
957 | 4573511a | Christos Stavrakakis | using `snf-manage pool-create` command. For example the following command |
958 | 4573511a | Christos Stavrakakis | will create a pool containing the brdiges from `prv1` to `prv21`. |
959 | 90c74332 | Christos Stavrakakis | |
960 | 9c98c6fc | Christos Stavrakakis | .. code-block:: console |
961 | 9c98c6fc | Christos Stavrakakis | |
962 | 9c98c6fc | Christos Stavrakakis | # snf-manage pool-create --type=bridge --base=prv --size=20 |
963 | 9c98c6fc | Christos Stavrakakis | |
964 | 9c98c6fc | Christos Stavrakakis | You can verify the creation of the pool, and check its contents by running: |
965 | 90c74332 | Christos Stavrakakis | |
966 | 9c98c6fc | Christos Stavrakakis | .. code-block:: console |
967 | 9c98c6fc | Christos Stavrakakis | |
968 | 9c98c6fc | Christos Stavrakakis | # snf-manage pool-list |
969 | 9c98c6fc | Christos Stavrakakis | # snf-manage pool-show --type=bridge 1 |
970 | 9c98c6fc | Christos Stavrakakis | |
971 | 4573511a | Christos Stavrakakis | Finally you can use the `pool-modify` management command in order to externally |
972 | 4573511a | Christos Stavrakakis | reserve the values from pool, extend or shrink the pool if possible. |
973 | 4573511a | Christos Stavrakakis | |
974 | 4573511a | Christos Stavrakakis | MAC Prefixes |
975 | 4573511a | Christos Stavrakakis | ************ |
976 | 4573511a | Christos Stavrakakis | |
977 | 4573511a | Christos Stavrakakis | Cyclades also use a pool of MAC prefixes to assign to networks of flavor |
978 | 4573511a | Christos Stavrakakis | `MAC_FILTERED`. Handling of this pool is done exactly as with pool of bridges, |
979 | 4573511a | Christos Stavrakakis | except that the type option must be set to mac-prefix: |
980 | 90c74332 | Christos Stavrakakis | |
981 | 9c98c6fc | Christos Stavrakakis | .. code-block:: console |
982 | 9c98c6fc | Christos Stavrakakis | |
983 | 9c98c6fc | Christos Stavrakakis | # snf-manage pool-create --type=mac-prefix --base=aa:00:0 --size=65536 |
984 | 9c98c6fc | Christos Stavrakakis | |
985 | 4573511a | Christos Stavrakakis | The above command will create a pool of MAC prefixes from ``aa:00:1`` to |
986 | 4573511a | Christos Stavrakakis | ``b9:ff:f``. The MAC prefix pool is responsible for providing only unicast and |
987 | 4573511a | Christos Stavrakakis | locally administered MAC addresses, so many of these prefixes will be |
988 | 4573511a | Christos Stavrakakis | externally reserved, to exclude from allocation. |
989 | 4573511a | Christos Stavrakakis | |
990 | 0a3027c3 | Christos Stavrakakis | Quotas |
991 | 0a3027c3 | Christos Stavrakakis | ~~~~~~ |
992 | 0a3027c3 | Christos Stavrakakis | |
993 | 0a3027c3 | Christos Stavrakakis | Handling of quotas for Cyclades resources is powered by Astakos quota |
994 | 0a3027c3 | Christos Stavrakakis | mechanism. During registration of Cyclades service to Astakos, the Cyclades |
995 | 0a3027c3 | Christos Stavrakakis | resources are also imported to Astakos for accounting and presentation. |
996 | 0a3027c3 | Christos Stavrakakis | |
997 | 0a3027c3 | Christos Stavrakakis | Upon a request that will result in a resource creation or removal, Cyclades |
998 | 0a3027c3 | Christos Stavrakakis | will communicate with Astakos to ensure that user quotas are within limits and |
999 | 0a3027c3 | Christos Stavrakakis | update the corresponding usage. If a limit is reached, the request will be |
1000 | 0a3027c3 | Christos Stavrakakis | denied with an `overLimit(413)` fault. |
1001 | 4573511a | Christos Stavrakakis | |
1002 | 0a3027c3 | Christos Stavrakakis | The resources that are exported by Cyclades are the following: |
1003 | 0768a1df | Christos Stavrakakis | |
1004 | 0a3027c3 | Christos Stavrakakis | * `cyclades.vm`: Number of virtual machines |
1005 | 0a3027c3 | Christos Stavrakakis | * `cyclades.total_cpu`: Number of virtual machine processors |
1006 | 0a3027c3 | Christos Stavrakakis | * `cyclades.cpu`: Number of virtual machine processors of running VMs |
1007 | 0a3027c3 | Christos Stavrakakis | * `cyclades.total_ram`: Virtual machine memory size |
1008 | 0a3027c3 | Christos Stavrakakis | * `cyclades.ram`: Virtual machine memory size of running VMs |
1009 | 0a3027c3 | Christos Stavrakakis | * `cyclades.disk`: Virtual machine disk size |
1010 | 0a3027c3 | Christos Stavrakakis | * `cyclades.floating_ip`: Number of floating IP addresses |
1011 | 0a3027c3 | Christos Stavrakakis | * `cyclades.network.private`: Number of private virtual networks |
1012 | 426d4ae3 | Constantinos Venetsanopoulos | |
1013 | eab73849 | Constantinos Venetsanopoulos | Cyclades advanced operations |
1014 | eab73849 | Constantinos Venetsanopoulos | ---------------------------- |
1015 | eab73849 | Constantinos Venetsanopoulos | |
1016 | 0a3027c3 | Christos Stavrakakis | Reconciliation mechanism |
1017 | 0a3027c3 | Christos Stavrakakis | ~~~~~~~~~~~~~~~~~~~~~~~~ |
1018 | 0a3027c3 | Christos Stavrakakis | |
1019 | 0a3027c3 | Christos Stavrakakis | Cyclades - Ganeti reconciliation |
1020 | 0a3027c3 | Christos Stavrakakis | ```````````````````````````````` |
1021 | 0a3027c3 | Christos Stavrakakis | |
1022 | 0a3027c3 | Christos Stavrakakis | On certain occasions, such as a Ganeti or RabbitMQ failure, the state of |
1023 | 0a3027c3 | Christos Stavrakakis | Cyclades database may differ from the real state of VMs and networks in the |
1024 | 0a3027c3 | Christos Stavrakakis | Ganeti backends. The reconciliation process is designed to synchronize the |
1025 | 0a3027c3 | Christos Stavrakakis | state of the Cyclades DB with Ganeti. There are two management commands for |
1026 | 0a3027c3 | Christos Stavrakakis | reconciling VMs and Networks that will detect stale, orphans and out-of-sync |
1027 | 0a3027c3 | Christos Stavrakakis | VMs and networks. To fix detected inconsistencies, use the `--fix-all`. |
1028 | 0a3027c3 | Christos Stavrakakis | |
1029 | 0a3027c3 | Christos Stavrakakis | .. code-block:: console |
1030 | 0a3027c3 | Christos Stavrakakis | |
1031 | 0a3027c3 | Christos Stavrakakis | $ snf-manage reconcile-servers |
1032 | 0a3027c3 | Christos Stavrakakis | $ snf-manage reconcile-servers --fix-all |
1033 | 0a3027c3 | Christos Stavrakakis | |
1034 | 0a3027c3 | Christos Stavrakakis | $ snf-manage reconcile-networks |
1035 | 0a3027c3 | Christos Stavrakakis | $ snf-manage reconcile-networks --fix-all |
1036 | 0a3027c3 | Christos Stavrakakis | |
1037 | 0a3027c3 | Christos Stavrakakis | Please see ``snf-manage reconcile-servers --help`` and ``snf-manage |
1038 | 0a3027c3 | Christos Stavrakakis | reconcile--networks --help`` for all the details. |
1039 | 0a3027c3 | Christos Stavrakakis | |
1040 | 0a3027c3 | Christos Stavrakakis | |
1041 | 0a3027c3 | Christos Stavrakakis | Cyclades - Astakos reconciliation |
1042 | 0a3027c3 | Christos Stavrakakis | ````````````````````````````````` |
1043 | 0a3027c3 | Christos Stavrakakis | |
1044 | 0a3027c3 | Christos Stavrakakis | As already mentioned, Cyclades communicates with Astakos for resource |
1045 | 0a3027c3 | Christos Stavrakakis | accounting and quota enforcement. In rare cases, e.g. unexpected |
1046 | 0a3027c3 | Christos Stavrakakis | failures, the two services may get unsynchronized. For this reason there |
1047 | 0a3027c3 | Christos Stavrakakis | are the `reconcile-commissions-cyclades` and `reconcile-resources-cyclades` |
1048 | 0a3027c3 | Christos Stavrakakis | command that will synchronize the state of the two services. The first |
1049 | 0a3027c3 | Christos Stavrakakis | command will detect any pending commissions, while the second command will |
1050 | 0a3027c3 | Christos Stavrakakis | detect that the usage that is reported by Astakos is correct. |
1051 | 0a3027c3 | Christos Stavrakakis | To fix detected inconsistencies, use the `--fix` option. |
1052 | 0a3027c3 | Christos Stavrakakis | |
1053 | 0a3027c3 | Christos Stavrakakis | .. code-block:: console |
1054 | 0a3027c3 | Christos Stavrakakis | |
1055 | 0a3027c3 | Christos Stavrakakis | $ snf-manage reconcile-commissions-cyclades |
1056 | 0a3027c3 | Christos Stavrakakis | $ snf-manage reconcile-commissions-cyclades --fix |
1057 | 0a3027c3 | Christos Stavrakakis | |
1058 | 0a3027c3 | Christos Stavrakakis | $ snf-manage reconcile-resources-cyclades |
1059 | 0a3027c3 | Christos Stavrakakis | $ snf-manage reconcile-resources-cyclades --fix |
1060 | 0a3027c3 | Christos Stavrakakis | |
1061 | 0a3027c3 | Christos Stavrakakis | |
1062 | 0a3027c3 | Christos Stavrakakis | Cyclades resources reconciliation |
1063 | 0a3027c3 | Christos Stavrakakis | ````````````````````````````````` |
1064 | 0a3027c3 | Christos Stavrakakis | |
1065 | 0a3027c3 | Christos Stavrakakis | Reconciliation of pools will check the consistency of available pools by |
1066 | 0a3027c3 | Christos Stavrakakis | checking that the values from each pool are not used more than once, and also |
1067 | 0a3027c3 | Christos Stavrakakis | that the only reserved values in a pool are the ones used. Pool reconciliation |
1068 | 0a3027c3 | Christos Stavrakakis | will check pools of bridges, MAC prefixes, and IPv4 addresses for all networks. |
1069 | 0a3027c3 | Christos Stavrakakis | To fix detected inconsistencies, use the `--fix` option. |
1070 | 0a3027c3 | Christos Stavrakakis | |
1071 | 0a3027c3 | Christos Stavrakakis | |
1072 | 0a3027c3 | Christos Stavrakakis | .. code-block:: console |
1073 | 0a3027c3 | Christos Stavrakakis | |
1074 | 0a3027c3 | Christos Stavrakakis | $ snf-manage reconcile-pools |
1075 | 0a3027c3 | Christos Stavrakakis | $ snf-manage reconcile-pools --fix |
1076 | 0a3027c3 | Christos Stavrakakis | |
1077 | 62c0a9e1 | Stratos Psomadakis | .. _admin-guide-stats: |
1078 | 62c0a9e1 | Stratos Psomadakis | |
1079 | 62c0a9e1 | Stratos Psomadakis | VM stats collecting |
1080 | 62c0a9e1 | Stratos Psomadakis | ~~~~~~~~~~~~~~~~~~~ |
1081 | 62c0a9e1 | Stratos Psomadakis | |
1082 | 62c0a9e1 | Stratos Psomadakis | snf-cyclades-gtools comes with a collectd plugin to collect CPU and network |
1083 | 62c0a9e1 | Stratos Psomadakis | stats for Ganeti VMs and an example collectd configuration. snf-stats-app is a |
1084 | 62c0a9e1 | Stratos Psomadakis | Django (snf-webproject) app that serves the VM stats graphs by reading the VM |
1085 | 62c0a9e1 | Stratos Psomadakis | stats (from RRD files) and serves graphs. |
1086 | 62c0a9e1 | Stratos Psomadakis | |
1087 | 62c0a9e1 | Stratos Psomadakis | The snf-stats-app was originally written by `GRNET NOC <http://noc.grnet.gr>`_ |
1088 | 62c0a9e1 | Stratos Psomadakis | as a WSGI Python app and was ported to a Synnefo (snf-webproject) app. |
1089 | 62c0a9e1 | Stratos Psomadakis | |
1090 | 62c0a9e1 | Stratos Psomadakis | snf-stats-app configuration |
1091 | 62c0a9e1 | Stratos Psomadakis | ``````````````````````````` |
1092 | 62c0a9e1 | Stratos Psomadakis | |
1093 | 62c0a9e1 | Stratos Psomadakis | The snf-stats-app node should have collectd installed. The collectd |
1094 | 62c0a9e1 | Stratos Psomadakis | configuration should enable the network plugin, assuming the server role, and |
1095 | 62c0a9e1 | Stratos Psomadakis | the RRD plugin / backend, to store the incoming stats. Your |
1096 | 62c0a9e1 | Stratos Psomadakis | ``/etc/collectd/collectd.conf`` should look like: |
1097 | 62c0a9e1 | Stratos Psomadakis | |
1098 | 62c0a9e1 | Stratos Psomadakis | .. code-block:: console |
1099 | 62c0a9e1 | Stratos Psomadakis | |
1100 | 62c0a9e1 | Stratos Psomadakis | FQDNLookup true |
1101 | 62c0a9e1 | Stratos Psomadakis | LoadPlugin syslog |
1102 | 62c0a9e1 | Stratos Psomadakis | <Plugin syslog> |
1103 | 62c0a9e1 | Stratos Psomadakis | LogLevel info |
1104 | 62c0a9e1 | Stratos Psomadakis | </Plugin> |
1105 | 62c0a9e1 | Stratos Psomadakis | |
1106 | 62c0a9e1 | Stratos Psomadakis | LoadPlugin network |
1107 | 62c0a9e1 | Stratos Psomadakis | LoadPlugin rrdtool |
1108 | 62c0a9e1 | Stratos Psomadakis | <Plugin network> |
1109 | 62c0a9e1 | Stratos Psomadakis | TimeToLive 128 |
1110 | 62c0a9e1 | Stratos Psomadakis | <Listen "okeanos.io" "25826"> |
1111 | 62c0a9e1 | Stratos Psomadakis | SecurityLevel "Sign" |
1112 | 62c0a9e1 | Stratos Psomadakis | AuthFile "/etc/collectd/passwd" |
1113 | 62c0a9e1 | Stratos Psomadakis | </Listen> |
1114 | 62c0a9e1 | Stratos Psomadakis | |
1115 | 62c0a9e1 | Stratos Psomadakis | ReportStats false |
1116 | 62c0a9e1 | Stratos Psomadakis | MaxPacketSize 65535 |
1117 | 62c0a9e1 | Stratos Psomadakis | </Plugin> |
1118 | 62c0a9e1 | Stratos Psomadakis | |
1119 | 62c0a9e1 | Stratos Psomadakis | |
1120 | 62c0a9e1 | Stratos Psomadakis | <Plugin rrdtool> |
1121 | 62c0a9e1 | Stratos Psomadakis | DataDir "/var/lib/collectd/rrd" |
1122 | 62c0a9e1 | Stratos Psomadakis | CacheTimeout 120 |
1123 | 62c0a9e1 | Stratos Psomadakis | CacheFlush 900 |
1124 | 62c0a9e1 | Stratos Psomadakis | WritesPerSecond 30 |
1125 | 62c0a9e1 | Stratos Psomadakis | RandomTimeout 0 |
1126 | 62c0a9e1 | Stratos Psomadakis | </Plugin> |
1127 | 62c0a9e1 | Stratos Psomadakis | |
1128 | 62c0a9e1 | Stratos Psomadakis | Include "/etc/collectd/filters.conf" |
1129 | 62c0a9e1 | Stratos Psomadakis | Include "/etc/collectd/thresholds.conf" |
1130 | 62c0a9e1 | Stratos Psomadakis | |
1131 | 62c0a9e1 | Stratos Psomadakis | |
1132 | 62c0a9e1 | Stratos Psomadakis | An example collectd config file is provided in |
1133 | 62c0a9e1 | Stratos Psomadakis | ``/usr/share/doc/snf-stats-app/examples/stats-colletcd.conf``. |
1134 | 62c0a9e1 | Stratos Psomadakis | |
1135 | 62c0a9e1 | Stratos Psomadakis | The recommended deployment is to run snf-stats-app using gunicorn with an |
1136 | 62c0a9e1 | Stratos Psomadakis | Apache2 or nginx reverse proxy (using the same configuration as the other |
1137 | 62c0a9e1 | Stratos Psomadakis | Synnefo services / apps). An example gunicorn config file is provided in |
1138 | 62c0a9e1 | Stratos Psomadakis | ``/usr/share/doc/snf-stats-app/examples/stats.gunicorn``. |
1139 | 62c0a9e1 | Stratos Psomadakis | |
1140 | 62c0a9e1 | Stratos Psomadakis | Make sure to edit the settings under |
1141 | 62c0a9e1 | Stratos Psomadakis | ``/etc/synnefo/20-snf-stats-app-settings.conf`` to match your deployment. |
1142 | 62c0a9e1 | Stratos Psomadakis | More specifically, you should change the ``STATS_BASE_URL`` setting (refer |
1143 | 62c0a9e1 | Stratos Psomadakis | to previous documentation on the BASE_URL settings used by the other Synnefo |
1144 | 62c0a9e1 | Stratos Psomadakis | services / apps) and the ``RRD_PREFIX`` and ``GRAPH_PREFIX`` settings. |
1145 | 62c0a9e1 | Stratos Psomadakis | |
1146 | 62c0a9e1 | Stratos Psomadakis | You should also set the ``STATS_SECRET_KEY`` to a random string and make sure |
1147 | 62c0a9e1 | Stratos Psomadakis | it's the same at the ``CYCLADES_STATS_SECRET_KEY`` on the Cyclades host (see |
1148 | 62c0a9e1 | Stratos Psomadakis | below). |
1149 | 62c0a9e1 | Stratos Psomadakis | |
1150 | 62c0a9e1 | Stratos Psomadakis | ``RRD_PREFIX`` is the directory where collectd stores the RRD files. The |
1151 | 62c0a9e1 | Stratos Psomadakis | default setting matches the default RRD directory for the collectd RRDtool |
1152 | 62c0a9e1 | Stratos Psomadakis | plugin. In a more complex setup, the collectd daemon could run on a separate |
1153 | 62c0a9e1 | Stratos Psomadakis | host and export the RRD directory to the snf-stats-app node via e.g. NFS. |
1154 | 62c0a9e1 | Stratos Psomadakis | |
1155 | 62c0a9e1 | Stratos Psomadakis | ``GRAPH_PREFIX`` is the directory where collectd stores the resulting |
1156 | 62c0a9e1 | Stratos Psomadakis | stats graphs. You should create it manually, in case it doesn't exist. |
1157 | 62c0a9e1 | Stratos Psomadakis | |
1158 | 62c0a9e1 | Stratos Psomadakis | .. code-block:: |
1159 | 62c0a9e1 | Stratos Psomadakis | |
1160 | 62c0a9e1 | Stratos Psomadakis | # mkdir /var/cache/snf-stats-app/ |
1161 | 62c0a9e1 | Stratos Psomadakis | # chown www-data:wwwdata /var/cache/snf-stats-app/ |
1162 | 62c0a9e1 | Stratos Psomadakis | |
1163 | 62c0a9e1 | Stratos Psomadakis | The snf-stats-app will typically run as the ``www-data`` user. In that case, |
1164 | 62c0a9e1 | Stratos Psomadakis | make sure that the ``www-data`` user should have read access to the |
1165 | 62c0a9e1 | Stratos Psomadakis | ``RRD_PREFIX`` directory and read / write access to the ``GRAPH_PREFIX`` |
1166 | 62c0a9e1 | Stratos Psomadakis | directory. |
1167 | 62c0a9e1 | Stratos Psomadakis | |
1168 | 62c0a9e1 | Stratos Psomadakis | snf-stats-app, based on the ``STATS_BASE_URL`` setting will export the |
1169 | 62c0a9e1 | Stratos Psomadakis | following URL 'endpoints`: |
1170 | 62c0a9e1 | Stratos Psomadakis | * CPU stats bar: ``STATS_BASE_URL``/v1.0/cpu-bar/<encrypted VM hostname> |
1171 | 62c0a9e1 | Stratos Psomadakis | * Network stats bar: ``STATS_BASE_URL``/v1.0/net-bar/<encrypted VM hostname> |
1172 | 62c0a9e1 | Stratos Psomadakis | * CPU stats daily graph: ``STATS_BASE_URL``/v1.0/cpu-ts/<encrypted VM hostname> |
1173 | 62c0a9e1 | Stratos Psomadakis | * Network stats daily graph: ``STATS_BASE_URL``/v1.0/net-ts/<encrypted VM hostname> |
1174 | 62c0a9e1 | Stratos Psomadakis | * CPU stats weekly graph: ``STATS_BASE_URL``/v1.0/cpu-ts-w/<encrypted VM hostname> |
1175 | 62c0a9e1 | Stratos Psomadakis | * Network stats weekly graph: ``STATS_BASE_URL``/v1.0/net-ts-w/<encrypted VM hostname> |
1176 | 62c0a9e1 | Stratos Psomadakis | |
1177 | 62c0a9e1 | Stratos Psomadakis | You can verify that these endpoints are exported by issuing: |
1178 | 62c0a9e1 | Stratos Psomadakis | |
1179 | 62c0a9e1 | Stratos Psomadakis | .. code-block:: |
1180 | 62c0a9e1 | Stratos Psomadakis | |
1181 | 62c0a9e1 | Stratos Psomadakis | # snf-manage show_urls |
1182 | 62c0a9e1 | Stratos Psomadakis | |
1183 | 62c0a9e1 | Stratos Psomadakis | snf-cyclades-gtools configuration |
1184 | 62c0a9e1 | Stratos Psomadakis | ````````````````````````````````` |
1185 | 62c0a9e1 | Stratos Psomadakis | |
1186 | 62c0a9e1 | Stratos Psomadakis | To enable VM stats collecting, you will need to: |
1187 | 62c0a9e1 | Stratos Psomadakis | * Install collectd on the every Ganeti (VM-capable) node. |
1188 | 62c0a9e1 | Stratos Psomadakis | * Enable the Ganeti stats plugin in your collectd configuration. This can be |
1189 | 62c0a9e1 | Stratos Psomadakis | achived by either copying the example collectd conf file that comes with |
1190 | 62c0a9e1 | Stratos Psomadakis | snf-cyclades-gtools |
1191 | 62c0a9e1 | Stratos Psomadakis | (``/usr/share/doc/snf-cyclades-gtools/examples/ganeti-stats-collectd.conf``) |
1192 | 62c0a9e1 | Stratos Psomadakis | or by adding the following line to your existing (or default) collectd |
1193 | 62c0a9e1 | Stratos Psomadakis | conf file: |
1194 | 62c0a9e1 | Stratos Psomadakis | |
1195 | 62c0a9e1 | Stratos Psomadakis | Include /etc/collectd/ganeti-stats.conf |
1196 | 62c0a9e1 | Stratos Psomadakis | |
1197 | 62c0a9e1 | Stratos Psomadakis | In the latter case, make sure to configure collectd to send the collected |
1198 | 62c0a9e1 | Stratos Psomadakis | stats to your collectd server (via the network plugin). For more details on |
1199 | 62c0a9e1 | Stratos Psomadakis | how to do this, check the collectd example config file provided by the |
1200 | 62c0a9e1 | Stratos Psomadakis | package and the collectd documentation. |
1201 | 62c0a9e1 | Stratos Psomadakis | |
1202 | 62c0a9e1 | Stratos Psomadakis | snf-cyclades-app configuration |
1203 | 62c0a9e1 | Stratos Psomadakis | `````````````````````````````` |
1204 | 62c0a9e1 | Stratos Psomadakis | |
1205 | 62c0a9e1 | Stratos Psomadakis | At this point, stats collecting should be enabled and working. You can check |
1206 | 62c0a9e1 | Stratos Psomadakis | that everything is ok by checking the contents of ``/var/lib/collectd/rrd/`` |
1207 | 62c0a9e1 | Stratos Psomadakis | directory (it will gradually get populated with directories containing RRD |
1208 | 62c0a9e1 | Stratos Psomadakis | files / stats for every Synnefo instances). |
1209 | 62c0a9e1 | Stratos Psomadakis | |
1210 | 62c0a9e1 | Stratos Psomadakis | You should also check that gunicorn and Apache2 are configured correctly by |
1211 | 62c0a9e1 | Stratos Psomadakis | accessing the graph URLs for a VM (whose stats have been populated in |
1212 | 62c0a9e1 | Stratos Psomadakis | ``/var/lib/collectd/rrd``). |
1213 | 62c0a9e1 | Stratos Psomadakis | |
1214 | 62c0a9e1 | Stratos Psomadakis | Cyclades uses the ``CYCLADES_STATS_SECRET_KEY`` setting in |
1215 | 62c0a9e1 | Stratos Psomadakis | ``20-snf-cyclades-app`` to encrypt the instance hostname in the stats graph |
1216 | 62c0a9e1 | Stratos Psomadakis | URL. This settings should be set to a random value and match the |
1217 | 62c0a9e1 | Stratos Psomadakis | ``STATS_SECRET_KEY`` on the Stats host. |
1218 | 62c0a9e1 | Stratos Psomadakis | |
1219 | 62c0a9e1 | Stratos Psomadakis | Cyclades (snf-cyclades-app) fetches the stat graphs for VMs based on four |
1220 | 62c0a9e1 | Stratos Psomadakis | settings in ``20-snf-cyclades-app-api.conf``. The settings are: |
1221 | 62c0a9e1 | Stratos Psomadakis | |
1222 | 62c0a9e1 | Stratos Psomadakis | * CPU_BAR_GRAPH_URL = 'https://stats.host/stats/v1.0/cpu-bar/%s' |
1223 | 62c0a9e1 | Stratos Psomadakis | * CPU_TIMESERIES_GRAPH_URL = 'https://stats.host/stats/v1.0/cpu-ts/%s' |
1224 | 62c0a9e1 | Stratos Psomadakis | * NET_BAR_GRAPH_URL = 'https://stats.host/stats/v1.0/net-bar/%s' |
1225 | 62c0a9e1 | Stratos Psomadakis | * NET_TIMESERIES_GRAPH_URL = 'https://stats.host/stats/v1.0/net-ts/%s' |
1226 | 62c0a9e1 | Stratos Psomadakis | |
1227 | 62c0a9e1 | Stratos Psomadakis | Make sure that you change this settings to match your ``STATS_BASE_URL`` |
1228 | 62c0a9e1 | Stratos Psomadakis | (and generally the Apache2 / gunicorn deployment on your stats host). |
1229 | 62c0a9e1 | Stratos Psomadakis | |
1230 | 62c0a9e1 | Stratos Psomadakis | Cyclades will pass these URLs to the Cyclades UI and the user's browser will |
1231 | 62c0a9e1 | Stratos Psomadakis | fetch them when needed. |
1232 | 62c0a9e1 | Stratos Psomadakis | |
1233 | eab73849 | Constantinos Venetsanopoulos | |
1234 | 2467655e | Christos Stavrakakis | Helpdesk |
1235 | 2467655e | Christos Stavrakakis | -------- |
1236 | 2467655e | Christos Stavrakakis | |
1237 | 2467655e | Christos Stavrakakis | Helpdesk application provides the ability to view the virtual servers and |
1238 | 2467655e | Christos Stavrakakis | networks of all users, along with the ability to perform some basic actions |
1239 | 2467655e | Christos Stavrakakis | like administratively suspending a server. You can perform look-ups by |
1240 | 2467655e | Christos Stavrakakis | user UUID or email, by server ID (vm-$id) or by an IPv4 address. |
1241 | 2467655e | Christos Stavrakakis | |
1242 | 2467655e | Christos Stavrakakis | If you want to activate the helpdesk application you can set to `True` the |
1243 | 2467655e | Christos Stavrakakis | `HELPDESK_ENABLED` setting. Access to helpdesk views (under |
1244 | 2467655e | Christos Stavrakakis | `$BASE_URL/helpdesk`) is only to allowed to users that belong to Astakos |
1245 | 2467655e | Christos Stavrakakis | groups defined in the `HELPDESK_PERMITTED_GROUPS` setting, which by default |
1246 | 2467655e | Christos Stavrakakis | contains the `helpdesk` group. For example, to allow <user_id> |
1247 | 2467655e | Christos Stavrakakis | to access helpdesk view, you should run the following command in the Astakos |
1248 | 2467655e | Christos Stavrakakis | node: |
1249 | 2467655e | Christos Stavrakakis | |
1250 | 2467655e | Christos Stavrakakis | .. code-block:: console |
1251 | 2467655e | Christos Stavrakakis | |
1252 | 2467655e | Christos Stavrakakis | snf-manage group-add helpdesk |
1253 | 2467655e | Christos Stavrakakis | snf-manage user-modify --add-group=helpdesk <user_id> |
1254 | 2467655e | Christos Stavrakakis | |
1255 | 2467655e | Christos Stavrakakis | |
1256 | 426d4ae3 | Constantinos Venetsanopoulos | Cyclades internals |
1257 | 426d4ae3 | Constantinos Venetsanopoulos | ------------------ |
1258 | 426d4ae3 | Constantinos Venetsanopoulos | |
1259 | 426d4ae3 | Constantinos Venetsanopoulos | Asynchronous communication with Ganeti backends |
1260 | 426d4ae3 | Constantinos Venetsanopoulos | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
1261 | 426d4ae3 | Constantinos Venetsanopoulos | Synnefo uses Google Ganeti backends for VM cluster management. In order for |
1262 | 426d4ae3 | Constantinos Venetsanopoulos | Cyclades to be able to handle thousands of user requests, Cyclades and Ganeti |
1263 | 426d4ae3 | Constantinos Venetsanopoulos | communicate asynchronously. Briefly, requests are submitted to Ganeti through |
1264 | 426d4ae3 | Constantinos Venetsanopoulos | Ganeti's RAPI/HTTP interface, and then asynchronous notifications about the |
1265 | 426d4ae3 | Constantinos Venetsanopoulos | progress of Ganeti jobs are being created and pushed upwards to Cyclades. The |
1266 | 426d4ae3 | Constantinos Venetsanopoulos | architecture and communication with a Ganeti backend is shown in the graph |
1267 | 426d4ae3 | Constantinos Venetsanopoulos | below: |
1268 | 426d4ae3 | Constantinos Venetsanopoulos | |
1269 | 426d4ae3 | Constantinos Venetsanopoulos | .. image:: images/cyclades-ganeti-communication.png |
1270 | 426d4ae3 | Constantinos Venetsanopoulos | :width: 50% |
1271 | 426d4ae3 | Constantinos Venetsanopoulos | :target: _images/cyclades-ganeti-communication.png |
1272 | 426d4ae3 | Constantinos Venetsanopoulos | |
1273 | 426d4ae3 | Constantinos Venetsanopoulos | The Cyclades API server is responsible for handling user requests. Read-only |
1274 | 426d4ae3 | Constantinos Venetsanopoulos | requests are directly served by looking up the Cyclades DB. If the request |
1275 | 426d4ae3 | Constantinos Venetsanopoulos | needs an action in the Ganeti backend, Cyclades submit jobs to the Ganeti |
1276 | 426d4ae3 | Constantinos Venetsanopoulos | master using the `Ganeti RAPI interface |
1277 | 426d4ae3 | Constantinos Venetsanopoulos | <http://docs.ganeti.org/ganeti/2.2/html/rapi.html>`_. |
1278 | 426d4ae3 | Constantinos Venetsanopoulos | |
1279 | 5135245b | Christos Stavrakakis | While Ganeti executes the job, `snf-ganeti-eventd`, and `snf-progress-monitor` |
1280 | 5135245b | Christos Stavrakakis | are monitoring the progress of the job and send corresponding messages to the |
1281 | 5135245b | Christos Stavrakakis | RabbitMQ servers. These components are part of `snf-cyclades-gtools` and must |
1282 | 5135245b | Christos Stavrakakis | be installed on all Ganeti nodes. Specially: |
1283 | 426d4ae3 | Constantinos Venetsanopoulos | |
1284 | 426d4ae3 | Constantinos Venetsanopoulos | * *snf-ganeti-eventd* sends messages about operations affecting the operating |
1285 | 426d4ae3 | Constantinos Venetsanopoulos | state of instances and networks. Works by monitoring the Ganeti job queue. |
1286 | 426d4ae3 | Constantinos Venetsanopoulos | * *snf-progress_monitor* sends messages about the progress of the Image deployment |
1287 | 426d4ae3 | Constantinos Venetsanopoulos | phase which is done by the Ganeti OS Definition `snf-image`. |
1288 | 426d4ae3 | Constantinos Venetsanopoulos | |
1289 | 426d4ae3 | Constantinos Venetsanopoulos | Finally, `snf-dispatcher` consumes messages from the RabbitMQ queues, processes |
1290 | 426d4ae3 | Constantinos Venetsanopoulos | these messages and properly updates the state of the Cyclades DB. Subsequent |
1291 | 426d4ae3 | Constantinos Venetsanopoulos | requests to the Cyclades API, will retrieve the updated state from the DB. |
1292 | 426d4ae3 | Constantinos Venetsanopoulos | |
1293 | 426d4ae3 | Constantinos Venetsanopoulos | |
1294 | f936cac5 | Constantinos Venetsanopoulos | List of all Synnefo components |
1295 | f936cac5 | Constantinos Venetsanopoulos | ============================== |
1296 | f936cac5 | Constantinos Venetsanopoulos | |
1297 | f936cac5 | Constantinos Venetsanopoulos | They are also available from our apt repository: ``apt.dev.grnet.gr`` |
1298 | f936cac5 | Constantinos Venetsanopoulos | |
1299 | f936cac5 | Constantinos Venetsanopoulos | * `snf-common <http://www.synnefo.org/docs/snf-common/latest/index.html>`_ |
1300 | f936cac5 | Constantinos Venetsanopoulos | * `snf-webproject <http://www.synnefo.org/docs/snf-webproject/latest/index.html>`_ |
1301 | f936cac5 | Constantinos Venetsanopoulos | * `snf-astakos-app <http://www.synnefo.org/docs/astakos/latest/index.html>`_ |
1302 | f936cac5 | Constantinos Venetsanopoulos | * `snf-pithos-backend <http://www.synnefo.org/docs/pithos/latest/backends.html>`_ |
1303 | f936cac5 | Constantinos Venetsanopoulos | * `snf-pithos-app <http://www.synnefo.org/docs/pithos/latest/index.html>`_ |
1304 | f936cac5 | Constantinos Venetsanopoulos | * `snf-pithos-webclient <http://www.synnefo.org/docs/pithos-webclient/latest/index.html>`_ |
1305 | f936cac5 | Constantinos Venetsanopoulos | * `snf-cyclades-app <http://www.synnefo.org/docs/snf-cyclades-app/latest/index.html>`_ |
1306 | f936cac5 | Constantinos Venetsanopoulos | * `snf-cyclades-gtools <http://www.synnefo.org/docs/snf-cyclades-gtools/latest/index.html>`_ |
1307 | f936cac5 | Constantinos Venetsanopoulos | * `astakosclient <http://www.synnefo.org/docs/astakosclient/latest/index.html>`_ |
1308 | f936cac5 | Constantinos Venetsanopoulos | * `snf-vncauthproxy <https://code.grnet.gr/projects/vncauthproxy>`_ |
1309 | f936cac5 | Constantinos Venetsanopoulos | * `snf-image <http://www.synnefo.org/docs/snf-image/latest/index.html/>`_ |
1310 | f936cac5 | Constantinos Venetsanopoulos | * `snf-image-creator <http://www.synnefo.org/docs/snf-image-creator/latest/index.html>`_ |
1311 | f936cac5 | Constantinos Venetsanopoulos | * `snf-occi <http://www.synnefo.org/docs/snf-occi/latest/index.html>`_ |
1312 | f936cac5 | Constantinos Venetsanopoulos | * `snf-cloudcms <http://www.synnefo.org/docs/snf-cloudcms/latest/index.html>`_ |
1313 | f936cac5 | Constantinos Venetsanopoulos | * `nfdhcpd <https://code.grnet.gr/projects/nfdhcpd>`_ |
1314 | f936cac5 | Constantinos Venetsanopoulos | |
1315 | f936cac5 | Constantinos Venetsanopoulos | |
1316 | e81ad3e5 | Constantinos Venetsanopoulos | Synnefo management commands ("snf-manage") |
1317 | e81ad3e5 | Constantinos Venetsanopoulos | ========================================== |
1318 | e81ad3e5 | Constantinos Venetsanopoulos | |
1319 | e81ad3e5 | Constantinos Venetsanopoulos | Each Synnefo service, Astakos, Pithos and Cyclades are controlled by the |
1320 | e81ad3e5 | Constantinos Venetsanopoulos | administrator using the "snf-manage" admin tool. This tool is an extension of |
1321 | e81ad3e5 | Constantinos Venetsanopoulos | the Django command-line management utility. It is run on the host that runs |
1322 | e81ad3e5 | Constantinos Venetsanopoulos | each service and provides different types of commands depending the services |
1323 | e81ad3e5 | Constantinos Venetsanopoulos | running on the host. If you are running more than one service on the same host |
1324 | e81ad3e5 | Constantinos Venetsanopoulos | "snf-manage" adds all the corresponding commands for each service dynamically, |
1325 | e81ad3e5 | Constantinos Venetsanopoulos | providing a unified admin environment. |
1326 | e81ad3e5 | Constantinos Venetsanopoulos | |
1327 | e81ad3e5 | Constantinos Venetsanopoulos | To run "snf-manage" you just type: |
1328 | e81ad3e5 | Constantinos Venetsanopoulos | |
1329 | e81ad3e5 | Constantinos Venetsanopoulos | .. code-block:: console |
1330 | e81ad3e5 | Constantinos Venetsanopoulos | |
1331 | e81ad3e5 | Constantinos Venetsanopoulos | # snf-manage <command> [arguments] |
1332 | e81ad3e5 | Constantinos Venetsanopoulos | |
1333 | e81ad3e5 | Constantinos Venetsanopoulos | on the corresponding host that runs the service. For example, if you have all |
1334 | e81ad3e5 | Constantinos Venetsanopoulos | services running on different physical hosts you would do: |
1335 | e81ad3e5 | Constantinos Venetsanopoulos | |
1336 | e81ad3e5 | Constantinos Venetsanopoulos | .. code-block:: console |
1337 | e81ad3e5 | Constantinos Venetsanopoulos | |
1338 | e81ad3e5 | Constantinos Venetsanopoulos | root@astakos-host # snf-manage <astakos-command> [argument] |
1339 | e81ad3e5 | Constantinos Venetsanopoulos | root@pithos-host # snf-manage <pithos-command> [argument] |
1340 | e81ad3e5 | Constantinos Venetsanopoulos | root@cyclades-host # snf-manage <cyclades-command> [argument] |
1341 | e81ad3e5 | Constantinos Venetsanopoulos | |
1342 | e81ad3e5 | Constantinos Venetsanopoulos | If you have all services running on the same host you would do: |
1343 | e81ad3e5 | Constantinos Venetsanopoulos | |
1344 | e81ad3e5 | Constantinos Venetsanopoulos | .. code-block:: console |
1345 | e81ad3e5 | Constantinos Venetsanopoulos | |
1346 | e81ad3e5 | Constantinos Venetsanopoulos | root@synnefo-host # snf-manage <{astakos,pithos,cyclades}-command> [argument] |
1347 | e81ad3e5 | Constantinos Venetsanopoulos | |
1348 | e81ad3e5 | Constantinos Venetsanopoulos | Note that you cannot execute a service's command on a host that is not running |
1349 | e81ad3e5 | Constantinos Venetsanopoulos | this service. For example, the following will return an error if Astakos and |
1350 | e81ad3e5 | Constantinos Venetsanopoulos | Cyclades are installed on different physical hosts: |
1351 | e81ad3e5 | Constantinos Venetsanopoulos | |
1352 | e81ad3e5 | Constantinos Venetsanopoulos | .. code-block:: console |
1353 | e81ad3e5 | Constantinos Venetsanopoulos | |
1354 | e81ad3e5 | Constantinos Venetsanopoulos | root@astakos-host # snf-manage <cyclades-command> [argument] |
1355 | e81ad3e5 | Constantinos Venetsanopoulos | Unknown command: 'cyclades-command' |
1356 | e81ad3e5 | Constantinos Venetsanopoulos | Type 'snf-manage help' for usage. |
1357 | e81ad3e5 | Constantinos Venetsanopoulos | |
1358 | e81ad3e5 | Constantinos Venetsanopoulos | This is the complete list of "snf-manage" commands for each service. |
1359 | e81ad3e5 | Constantinos Venetsanopoulos | |
1360 | e81ad3e5 | Constantinos Venetsanopoulos | Astakos snf-manage commands |
1361 | e81ad3e5 | Constantinos Venetsanopoulos | --------------------------- |
1362 | e81ad3e5 | Constantinos Venetsanopoulos | |
1363 | e81ad3e5 | Constantinos Venetsanopoulos | ============================ =========================== |
1364 | e81ad3e5 | Constantinos Venetsanopoulos | Name Description |
1365 | e81ad3e5 | Constantinos Venetsanopoulos | ============================ =========================== |
1366 | e81ad3e5 | Constantinos Venetsanopoulos | fix-superusers Transform superusers created by syncdb into AstakosUser instances |
1367 | 5e1ea6f7 | Giorgos Korfiatis | cleanup-full Cleanup sessions and session catalog |
1368 | a4451f59 | Giorgos Korfiatis | commission-list List pending commissions |
1369 | a4451f59 | Giorgos Korfiatis | commission-show Show details for a pending commission |
1370 | 252eef38 | Giorgos Korfiatis | component-add Register a component |
1371 | 252eef38 | Giorgos Korfiatis | component-list List components |
1372 | 252eef38 | Giorgos Korfiatis | component-modify Modify component attributes |
1373 | 6ef1e2eb | Giorgos Korfiatis | component-show Show component details |
1374 | e81ad3e5 | Constantinos Venetsanopoulos | project-control Manage projects and applications |
1375 | e81ad3e5 | Constantinos Venetsanopoulos | project-list List projects |
1376 | e81ad3e5 | Constantinos Venetsanopoulos | project-show Show project details |
1377 | a69ad12b | Giorgos Korfiatis | quota-list List user quota |
1378 | a69ad12b | Giorgos Korfiatis | quota-verify Check the integrity of user quota |
1379 | e81ad3e5 | Constantinos Venetsanopoulos | reconcile-resources-astakos Reconcile resource usage of Quotaholder with Astakos DB |
1380 | e81ad3e5 | Constantinos Venetsanopoulos | resource-list List resources |
1381 | 5e1ea6f7 | Giorgos Korfiatis | resource-modify Modify a resource's default base quota and boolean flags |
1382 | 90e7da53 | Giorgos Korfiatis | service-export-astakos Export Astakos services and resources in JSON format |
1383 | bd1f667b | Giorgos Korfiatis | service-import Register services |
1384 | e81ad3e5 | Constantinos Venetsanopoulos | service-list List services |
1385 | 5e1ea6f7 | Giorgos Korfiatis | service-show Show service details |
1386 | e81ad3e5 | Constantinos Venetsanopoulos | term-add Add approval terms |
1387 | e81ad3e5 | Constantinos Venetsanopoulos | user-activation-send Send user activation |
1388 | e81ad3e5 | Constantinos Venetsanopoulos | user-add Add user |
1389 | 9577d199 | Kostas Papadimitriou | authpolicy-add Create a new authentication provider policy profile |
1390 | 9577d199 | Kostas Papadimitriou | authpolicy-list List existing authentication provider policy profiles |
1391 | 9577d199 | Kostas Papadimitriou | authpolicy-remove Remove an authentication provider policy |
1392 | 9577d199 | Kostas Papadimitriou | authpolicy-set Assign an existing authentication provider policy profile to a user or group |
1393 | 9577d199 | Kostas Papadimitriou | authpolicy-show Show authentication provider profile details |
1394 | 9577d199 | Kostas Papadimitriou | group-add Create a group with the given name |
1395 | 9577d199 | Kostas Papadimitriou | group-list List available groups |
1396 | e81ad3e5 | Constantinos Venetsanopoulos | user-list List users |
1397 | e81ad3e5 | Constantinos Venetsanopoulos | user-modify Modify user |
1398 | e81ad3e5 | Constantinos Venetsanopoulos | user-show Show user details |
1399 | e81ad3e5 | Constantinos Venetsanopoulos | ============================ =========================== |
1400 | e81ad3e5 | Constantinos Venetsanopoulos | |
1401 | e81ad3e5 | Constantinos Venetsanopoulos | Pithos snf-manage commands |
1402 | e81ad3e5 | Constantinos Venetsanopoulos | -------------------------- |
1403 | e81ad3e5 | Constantinos Venetsanopoulos | |
1404 | e81ad3e5 | Constantinos Venetsanopoulos | ============================ =========================== |
1405 | e81ad3e5 | Constantinos Venetsanopoulos | Name Description |
1406 | e81ad3e5 | Constantinos Venetsanopoulos | ============================ =========================== |
1407 | 3506f6a0 | Sofia Papagiannaki | reconcile-commissions-pithos Display unresolved commissions and trigger their recovery |
1408 | 90e7da53 | Giorgos Korfiatis | service-export-pithos Export Pithos services and resources in JSON format |
1409 | 3506f6a0 | Sofia Papagiannaki | reconcile-resources-pithos Detect unsynchronized usage between Astakos and Pithos DB resources and synchronize them if specified so. |
1410 | e81ad3e5 | Constantinos Venetsanopoulos | ============================ =========================== |
1411 | e81ad3e5 | Constantinos Venetsanopoulos | |
1412 | e81ad3e5 | Constantinos Venetsanopoulos | Cyclades snf-manage commands |
1413 | e81ad3e5 | Constantinos Venetsanopoulos | ---------------------------- |
1414 | e81ad3e5 | Constantinos Venetsanopoulos | |
1415 | bf57a264 | Christos Stavrakakis | ============================== =========================== |
1416 | bf57a264 | Christos Stavrakakis | Name Description |
1417 | bf57a264 | Christos Stavrakakis | ============================== =========================== |
1418 | bf57a264 | Christos Stavrakakis | backend-add Add a new Ganeti backend |
1419 | bf57a264 | Christos Stavrakakis | backend-list List backends |
1420 | bf57a264 | Christos Stavrakakis | backend-modify Modify a backend |
1421 | bf57a264 | Christos Stavrakakis | backend-update-status Update backend statistics for instance allocation |
1422 | bf57a264 | Christos Stavrakakis | backend-remove Remove a Ganeti backend |
1423 | d14155e3 | Giorgos Korfiatis | enforce-resources-cyclades Check and fix quota violations for Cyclades resources |
1424 | bf57a264 | Christos Stavrakakis | server-create Create a new server |
1425 | bf57a264 | Christos Stavrakakis | server-show Show server details |
1426 | bf57a264 | Christos Stavrakakis | server-list List servers |
1427 | bf57a264 | Christos Stavrakakis | server-modify Modify a server |
1428 | bf57a264 | Christos Stavrakakis | server-import Import an existing Ganeti VM into synnefo |
1429 | bf57a264 | Christos Stavrakakis | server-inspect Inspect a server in DB and Ganeti |
1430 | bf57a264 | Christos Stavrakakis | network-create Create a new network |
1431 | bf57a264 | Christos Stavrakakis | network-list List networks |
1432 | bf57a264 | Christos Stavrakakis | network-modify Modify a network |
1433 | bf57a264 | Christos Stavrakakis | network-inspect Inspect network state in DB and Ganeti |
1434 | bf57a264 | Christos Stavrakakis | network-remove Delete a network |
1435 | bf57a264 | Christos Stavrakakis | flavor-create Create a new flavor |
1436 | bf57a264 | Christos Stavrakakis | flavor-list List flavors |
1437 | bf57a264 | Christos Stavrakakis | flavor-modify Modify a flavor |
1438 | bf57a264 | Christos Stavrakakis | image-list List images |
1439 | bf57a264 | Christos Stavrakakis | image-show Show image details |
1440 | bf57a264 | Christos Stavrakakis | pool-create Create a bridge or mac-prefix pool |
1441 | bf57a264 | Christos Stavrakakis | pool-show Show pool details |
1442 | bf57a264 | Christos Stavrakakis | pool-list List pools |
1443 | bf57a264 | Christos Stavrakakis | pool-modify Modify a pool |
1444 | bf57a264 | Christos Stavrakakis | pool-remove Delete a pool |
1445 | f61f3fa7 | Christos Stavrakakis | port-create Create a port connecting a server to a network |
1446 | f61f3fa7 | Christos Stavrakakis | port-inspect Inspect the state of a port in DB and Ganeti |
1447 | f61f3fa7 | Christos Stavrakakis | port-list List ports |
1448 | f61f3fa7 | Christos Stavrakakis | port-remove Delete a port |
1449 | f61f3fa7 | Christos Stavrakakis | floating-ip-create Create a new floating IP |
1450 | f61f3fa7 | Christos Stavrakakis | floating-ip-attach Attach a floating IP to a server |
1451 | 6d86f5b3 | Christos Stavrakakis | floating-ip-detach Detach a floating IP from a server |
1452 | f61f3fa7 | Christos Stavrakakis | floating-ip-list List floating IPs |
1453 | f61f3fa7 | Christos Stavrakakis | floating-ip-remove Delete a floating IP |
1454 | bf57a264 | Christos Stavrakakis | queue-inspect Inspect the messages of a RabbitMQ queue |
1455 | bf57a264 | Christos Stavrakakis | queue-retry Resend messages from Dead Letter queues to original exchanges |
1456 | 90e7da53 | Giorgos Korfiatis | service-export-cyclades Export Cyclades services and resources in JSON format |
1457 | aab200c6 | Dionysis Grigoropoulos | subnet-create Create a subnet |
1458 | aab200c6 | Dionysis Grigoropoulos | subnet-inspect Inspect a subnet in DB |
1459 | aab200c6 | Dionysis Grigoropoulos | subnet-list List subnets |
1460 | aab200c6 | Dionysis Grigoropoulos | subnet-modify Modify a subnet |
1461 | bf57a264 | Christos Stavrakakis | reconcile-servers Reconcile servers of Synnefo DB with state of Ganeti backend |
1462 | bf57a264 | Christos Stavrakakis | reconcile-networks Reconcile networks of Synnefo DB with state of Ganeti backend |
1463 | bf57a264 | Christos Stavrakakis | reconcile-pools Check consistency of pool resources |
1464 | bf57a264 | Christos Stavrakakis | reconcile-commissions-cyclades Detect and resolve pending commissions to Quotaholder |
1465 | bf57a264 | Christos Stavrakakis | reconcile-resources-cyclades Reconcile resource usage of Astakos with Cyclades DB. |
1466 | bf57a264 | Christos Stavrakakis | ============================== =========================== |
1467 | e81ad3e5 | Constantinos Venetsanopoulos | |
1468 | 44cc2a6a | Constantinos Venetsanopoulos | |
1469 | 11716a83 | Giorgos Korfiatis | Astakos helper scripts |
1470 | 11716a83 | Giorgos Korfiatis | ====================== |
1471 | 11716a83 | Giorgos Korfiatis | |
1472 | 11716a83 | Giorgos Korfiatis | Astakos includes two scripts to facilitate the installation procedure. |
1473 | 11716a83 | Giorgos Korfiatis | Running: |
1474 | 11716a83 | Giorgos Korfiatis | |
1475 | 11716a83 | Giorgos Korfiatis | .. code-block:: console |
1476 | 11716a83 | Giorgos Korfiatis | |
1477 | b4109758 | Giorgos Korfiatis | snf-component-register [<component_name>] |
1478 | 11716a83 | Giorgos Korfiatis | |
1479 | 11716a83 | Giorgos Korfiatis | automates the registration of the standard Synnefo components (astakos, |
1480 | 11716a83 | Giorgos Korfiatis | cyclades, and pithos) in astakos database. It internally uses the script: |
1481 | 11716a83 | Giorgos Korfiatis | |
1482 | 11716a83 | Giorgos Korfiatis | .. code-block:: console |
1483 | 11716a83 | Giorgos Korfiatis | |
1484 | 11716a83 | Giorgos Korfiatis | snf-service-export <component_name> <base_url> |
1485 | 11716a83 | Giorgos Korfiatis | |
1486 | 11716a83 | Giorgos Korfiatis | which simulates the export of service and resource definitions of the |
1487 | 11716a83 | Giorgos Korfiatis | standard Synnefo components. |
1488 | 11716a83 | Giorgos Korfiatis | |
1489 | 44cc2a6a | Constantinos Venetsanopoulos | |
1490 | 3506f6a0 | Sofia Papagiannaki | Pithos managing accounts |
1491 | 3506f6a0 | Sofia Papagiannaki | ======================== |
1492 | 3506f6a0 | Sofia Papagiannaki | |
1493 | 3506f6a0 | Sofia Papagiannaki | Pithos provides a utility tool for managing accounts. |
1494 | 3506f6a0 | Sofia Papagiannaki | To run you just type: |
1495 | 3506f6a0 | Sofia Papagiannaki | |
1496 | 3506f6a0 | Sofia Papagiannaki | .. code-block:: console |
1497 | 3506f6a0 | Sofia Papagiannaki | |
1498 | 3506f6a0 | Sofia Papagiannaki | # pithos-manage-accounts <command> [arguments] |
1499 | 3506f6a0 | Sofia Papagiannaki | |
1500 | 3506f6a0 | Sofia Papagiannaki | This is the list of the available commands: |
1501 | 3506f6a0 | Sofia Papagiannaki | |
1502 | 3506f6a0 | Sofia Papagiannaki | ============================ =========================== |
1503 | 3506f6a0 | Sofia Papagiannaki | Name Description |
1504 | 3506f6a0 | Sofia Papagiannaki | ============================ =========================== |
1505 | 3506f6a0 | Sofia Papagiannaki | delete Remove an account from the Pithos DB |
1506 | 3506f6a0 | Sofia Papagiannaki | export-quota Export account quota in a file |
1507 | 3506f6a0 | Sofia Papagiannaki | list List existing/dublicate accounts |
1508 | 3506f6a0 | Sofia Papagiannaki | merge Move an account contents in another account |
1509 | 3506f6a0 | Sofia Papagiannaki | set-container-quota Set container quota for all or a specific account |
1510 | 3506f6a0 | Sofia Papagiannaki | ============================ =========================== |
1511 | 3506f6a0 | Sofia Papagiannaki | |
1512 | e81ad3e5 | Constantinos Venetsanopoulos | |
1513 | bc055d09 | Constantinos Venetsanopoulos | The "kamaki" API client |
1514 | eab73849 | Constantinos Venetsanopoulos | ======================= |
1515 | bc055d09 | Constantinos Venetsanopoulos | |
1516 | bc055d09 | Constantinos Venetsanopoulos | To upload, register or modify an image you will need the **kamaki** tool. |
1517 | bc055d09 | Constantinos Venetsanopoulos | Before proceeding make sure that it is configured properly. Verify that |
1518 | dd04efac | Stavros Sachtouris | *image.url*, *file.url*, *user.url* and *token* are set as needed: |
1519 | bc055d09 | Constantinos Venetsanopoulos | |
1520 | bc055d09 | Constantinos Venetsanopoulos | .. code-block:: console |
1521 | bc055d09 | Constantinos Venetsanopoulos | |
1522 | bc055d09 | Constantinos Venetsanopoulos | $ kamaki config list |
1523 | bc055d09 | Constantinos Venetsanopoulos | |
1524 | 73ebcd68 | Constantinos Venetsanopoulos | To change a setting use ``kamaki config set``: |
1525 | bc055d09 | Constantinos Venetsanopoulos | |
1526 | bc055d09 | Constantinos Venetsanopoulos | .. code-block:: console |
1527 | bc055d09 | Constantinos Venetsanopoulos | |
1528 | 73ebcd68 | Constantinos Venetsanopoulos | $ kamaki config set image.url https://cyclades.example.com/image |
1529 | dd04efac | Stavros Sachtouris | $ kamaki config set file.url https://pithos.example.com/v1 |
1530 | dd04efac | Stavros Sachtouris | $ kamaki config set user.url https://accounts.example.com |
1531 | bc055d09 | Constantinos Venetsanopoulos | $ kamaki config set token ... |
1532 | bc055d09 | Constantinos Venetsanopoulos | |
1533 | c0d88cf3 | Constantinos Venetsanopoulos | To test that everything works, try authenticating the current account with |
1534 | c0d88cf3 | Constantinos Venetsanopoulos | kamaki: |
1535 | dd04efac | Stavros Sachtouris | |
1536 | dd04efac | Stavros Sachtouris | .. code-block:: console |
1537 | dd04efac | Stavros Sachtouris | |
1538 | dd04efac | Stavros Sachtouris | $ kamaki user authenticate |
1539 | dd04efac | Stavros Sachtouris | |
1540 | c0d88cf3 | Constantinos Venetsanopoulos | This will output user information. |
1541 | dd04efac | Stavros Sachtouris | |
1542 | bc055d09 | Constantinos Venetsanopoulos | Upload Image |
1543 | bc055d09 | Constantinos Venetsanopoulos | ------------ |
1544 | bc055d09 | Constantinos Venetsanopoulos | |
1545 | c0d88cf3 | Constantinos Venetsanopoulos | By convention, images are stored in a container called ``images``. Check if the |
1546 | c0d88cf3 | Constantinos Venetsanopoulos | container exists, by listing all containers in your account: |
1547 | bc055d09 | Constantinos Venetsanopoulos | |
1548 | bc055d09 | Constantinos Venetsanopoulos | .. code-block:: console |
1549 | bc055d09 | Constantinos Venetsanopoulos | |
1550 | dd04efac | Stavros Sachtouris | $ kamaki file list |
1551 | bc055d09 | Constantinos Venetsanopoulos | |
1552 | dd04efac | Stavros Sachtouris | If the container ``images`` does not exist, create it: |
1553 | bc055d09 | Constantinos Venetsanopoulos | |
1554 | bc055d09 | Constantinos Venetsanopoulos | .. code-block:: console |
1555 | bc055d09 | Constantinos Venetsanopoulos | |
1556 | dd04efac | Stavros Sachtouris | $ kamaki file create images |
1557 | bc055d09 | Constantinos Venetsanopoulos | |
1558 | c0d88cf3 | Constantinos Venetsanopoulos | You are now ready to upload an image to container ``images``. You can upload it |
1559 | e5d8df8c | Constantinos Venetsanopoulos | with a Pithos client, or use kamaki directly: |
1560 | bc055d09 | Constantinos Venetsanopoulos | |
1561 | bc055d09 | Constantinos Venetsanopoulos | .. code-block:: console |
1562 | bc055d09 | Constantinos Venetsanopoulos | |
1563 | dd04efac | Stavros Sachtouris | $ kamaki file upload ubuntu.iso images |
1564 | bc055d09 | Constantinos Venetsanopoulos | |
1565 | e5d8df8c | Constantinos Venetsanopoulos | You can use any Pithos client to verify that the image was uploaded correctly, |
1566 | c0d88cf3 | Constantinos Venetsanopoulos | or you can list the contents of the container with kamaki: |
1567 | bc055d09 | Constantinos Venetsanopoulos | |
1568 | dd04efac | Stavros Sachtouris | .. code-block:: console |
1569 | dd04efac | Stavros Sachtouris | |
1570 | dd04efac | Stavros Sachtouris | $ kamaki file list images |
1571 | bc055d09 | Constantinos Venetsanopoulos | |
1572 | bc055d09 | Constantinos Venetsanopoulos | The full Pithos URL for the previous example will be |
1573 | c0d88cf3 | Constantinos Venetsanopoulos | ``pithos://u53r-un1qu3-1d/images/ubuntu.iso`` where ``u53r-un1qu3-1d`` is the |
1574 | c0d88cf3 | Constantinos Venetsanopoulos | unique user id (uuid). |
1575 | bc055d09 | Constantinos Venetsanopoulos | |
1576 | bc055d09 | Constantinos Venetsanopoulos | Register Image |
1577 | bc055d09 | Constantinos Venetsanopoulos | -------------- |
1578 | bc055d09 | Constantinos Venetsanopoulos | |
1579 | e5d8df8c | Constantinos Venetsanopoulos | To register an image you will need to use the full Pithos URL. To register as |
1580 | bc055d09 | Constantinos Venetsanopoulos | a public image the one from the previous example use: |
1581 | bc055d09 | Constantinos Venetsanopoulos | |
1582 | bc055d09 | Constantinos Venetsanopoulos | .. code-block:: console |
1583 | bc055d09 | Constantinos Venetsanopoulos | |
1584 | dd04efac | Stavros Sachtouris | $ kamaki image register Ubuntu pithos://u53r-un1qu3-1d/images/ubuntu.iso --public |
1585 | bc055d09 | Constantinos Venetsanopoulos | |
1586 | bc055d09 | Constantinos Venetsanopoulos | The ``--public`` flag is important, if missing the registered image will not |
1587 | dd04efac | Stavros Sachtouris | be listed by ``kamaki image list``. |
1588 | bc055d09 | Constantinos Venetsanopoulos | |
1589 | dd04efac | Stavros Sachtouris | Use ``kamaki image register`` with no arguments to see a list of available |
1590 | bc055d09 | Constantinos Venetsanopoulos | options. A more complete example would be the following: |
1591 | bc055d09 | Constantinos Venetsanopoulos | |
1592 | bc055d09 | Constantinos Venetsanopoulos | .. code-block:: console |
1593 | bc055d09 | Constantinos Venetsanopoulos | |
1594 | dd04efac | Stavros Sachtouris | $ kamaki image register Ubuntu pithos://u53r-un1qu3-1d/images/ubuntu.iso \ |
1595 | bc055d09 | Constantinos Venetsanopoulos | --public --disk-format diskdump --property kernel=3.1.2 |
1596 | bc055d09 | Constantinos Venetsanopoulos | |
1597 | bc055d09 | Constantinos Venetsanopoulos | To verify that the image was registered successfully use: |
1598 | bc055d09 | Constantinos Venetsanopoulos | |
1599 | bc055d09 | Constantinos Venetsanopoulos | .. code-block:: console |
1600 | bc055d09 | Constantinos Venetsanopoulos | |
1601 | dd04efac | Stavros Sachtouris | $ kamaki image list --name-like=ubuntu |
1602 | bc055d09 | Constantinos Venetsanopoulos | |
1603 | eab73849 | Constantinos Venetsanopoulos | |
1604 | eab73849 | Constantinos Venetsanopoulos | Miscellaneous |
1605 | eab73849 | Constantinos Venetsanopoulos | ============= |
1606 | eab73849 | Constantinos Venetsanopoulos | |
1607 | 08ad5b01 | Constantinos Venetsanopoulos | .. _branding: |
1608 | 9c2edbf1 | Olga Brani | |
1609 | 42e767d4 | Olga Brani | Branding |
1610 | 08ad5b01 | Constantinos Venetsanopoulos | -------- |
1611 | 9c2edbf1 | Olga Brani | |
1612 | 08ad5b01 | Constantinos Venetsanopoulos | Since Synnefo v0.14, you are able to adapt the Astakos, Pithos and Cyclades Web |
1613 | 08ad5b01 | Constantinos Venetsanopoulos | UI to your company’s visual identity. This is possible using the snf-branding |
1614 | 08ad5b01 | Constantinos Venetsanopoulos | component, which is automatically installed on the nodes running the API |
1615 | 08ad5b01 | Constantinos Venetsanopoulos | servers for Astakos, Pithos and Cyclades. |
1616 | 9c2edbf1 | Olga Brani | |
1617 | 9c2edbf1 | Olga Brani | Configuration |
1618 | 9c2edbf1 | Olga Brani | ~~~~~~~~~~~~~ |
1619 | 9c2edbf1 | Olga Brani | |
1620 | 77186edf | Kostas Papadimitriou | This can be done by modifing the settings provided by the snf-branding component |
1621 | 77186edf | Kostas Papadimitriou | to match your service identity. The settings for the snf-branding application |
1622 | 77186edf | Kostas Papadimitriou | can be found inside the configuration file ``/etc/synnefo/15-snf-branding.conf`` |
1623 | 77186edf | Kostas Papadimitriou | on the nodes that have Astakos, Pithos and Cyclades installed. |
1624 | 9c2edbf1 | Olga Brani | |
1625 | 08ad5b01 | Constantinos Venetsanopoulos | By default, the global service name is "Synnefo" and the company name is |
1626 | 08ad5b01 | Constantinos Venetsanopoulos | "GRNET". These names and their respective logos and URLs are used throughout |
1627 | 08ad5b01 | Constantinos Venetsanopoulos | the Astakos, Pithos and Cyclades UI. |
1628 | 9c2edbf1 | Olga Brani | |
1629 | 08ad5b01 | Constantinos Venetsanopoulos | **Names and URLs:** |
1630 | 9c2edbf1 | Olga Brani | |
1631 | 08ad5b01 | Constantinos Venetsanopoulos | The first group of branding customization refers to the service's and company's |
1632 | 08ad5b01 | Constantinos Venetsanopoulos | information. |
1633 | 9c2edbf1 | Olga Brani | |
1634 | 08ad5b01 | Constantinos Venetsanopoulos | You can overwrite the company and the service name and URL respectively by |
1635 | 08ad5b01 | Constantinos Venetsanopoulos | uncommenting and setting the following: |
1636 | 9c2edbf1 | Olga Brani | |
1637 | 77186edf | Kostas Papadimitriou | .. code-block:: python |
1638 | 77186edf | Kostas Papadimitriou | |
1639 | 77186edf | Kostas Papadimitriou | # setting used in Astakos Dashboard/Projects pages |
1640 | 77186edf | Kostas Papadimitriou | BRANDING_SERVICE_NAME = 'My cloud' |
1641 | 77186edf | Kostas Papadimitriou | BRANDING_SERVICE_URL = 'http://www.mycloud.synnefo.org/' |
1642 | 9c2edbf1 | Olga Brani | |
1643 | 77186edf | Kostas Papadimitriou | # settings used in Astakos, Pithos, Cyclades footer only if |
1644 | 77186edf | Kostas Papadimitriou | # BRANDING_SHOW_COPYRIGHT is set to True |
1645 | 77186edf | Kostas Papadimitriou | BRANDING_SHOW_COPYRIGHT = True |
1646 | 77186edf | Kostas Papadimitriou | BRANDING_COMPANY_NAME = 'Company LTD' |
1647 | 77186edf | Kostas Papadimitriou | BRANDING_COMPANY_URL = 'https://www.company-ltd.synnefo.org/' |
1648 | 9c2edbf1 | Olga Brani | |
1649 | 9c2edbf1 | Olga Brani | |
1650 | 97a096f1 | Olga Brani | **Copyright and footer options:** |
1651 | 9c2edbf1 | Olga Brani | |
1652 | 08ad5b01 | Constantinos Venetsanopoulos | By default, no Copyright message is shown in the UI footer. If you want to make |
1653 | 08ad5b01 | Constantinos Venetsanopoulos | it visible in the footer of Astakos, Pithos and Cyclades UI, you can uncomment |
1654 | 77186edf | Kostas Papadimitriou | and set to ``True`` the ``BRANDING_SHOW_COPYRIGHT`` setting: |
1655 | 9c2edbf1 | Olga Brani | |
1656 | 77186edf | Kostas Papadimitriou | .. code-block:: python |
1657 | 9c2edbf1 | Olga Brani | |
1658 | 9c2edbf1 | Olga Brani | #BRANDING_SHOW_COPYRIGHT = False |
1659 | 9c2edbf1 | Olga Brani | |
1660 | 77186edf | Kostas Papadimitriou | Copyright message defaults to 'Copyright (c) 2011-<current_year> |
1661 | 08ad5b01 | Constantinos Venetsanopoulos | <BRANDING_COMPANY_NAME>.' but you can overwrite it to a completely custom one by |
1662 | 08ad5b01 | Constantinos Venetsanopoulos | setting the following option: |
1663 | 9c2edbf1 | Olga Brani | |
1664 | 77186edf | Kostas Papadimitriou | .. code-block:: python |
1665 | 77186edf | Kostas Papadimitriou | |
1666 | 77186edf | Kostas Papadimitriou | BRANDING_COPYRIGHT_MESSAGE = 'Copyright (c) 2011-2013 GRNET' |
1667 | 9c2edbf1 | Olga Brani | |
1668 | 97a096f1 | Olga Brani | If you want to include a custom message in the footer, you can uncomment and |
1669 | 97a096f1 | Olga Brani | set the ``BRANDING_FOOTER_EXTRA_MESSAGE`` setting. You can use html markup. |
1670 | 97a096f1 | Olga Brani | Your custom message will appear above Copyright message at the Compute |
1671 | 97a096f1 | Olga Brani | templates and the Dashboard UI. |
1672 | 97a096f1 | Olga Brani | |
1673 | 97a096f1 | Olga Brani | .. code-block:: python |
1674 | 97a096f1 | Olga Brani | |
1675 | 97a096f1 | Olga Brani | #BRANDING_FOOTER_EXTRA_MESSAGE = '' |
1676 | 97a096f1 | Olga Brani | |
1677 | 9c2edbf1 | Olga Brani | |
1678 | 9c2edbf1 | Olga Brani | **Images:** |
1679 | 9c2edbf1 | Olga Brani | |
1680 | 08ad5b01 | Constantinos Venetsanopoulos | The Astakos, Pithos and Cyclades Web UI has some logos and images. |
1681 | 08ad5b01 | Constantinos Venetsanopoulos | |
1682 | 9c2edbf1 | Olga Brani | The branding-related images are presented in the following table: |
1683 | 9c2edbf1 | Olga Brani | |
1684 | 9c2edbf1 | Olga Brani | =============== ============================ ========= |
1685 | 9c2edbf1 | Olga Brani | Image Name/extension convention Usage |
1686 | 9c2edbf1 | Olga Brani | =============== ============================ ========= |
1687 | 9c2edbf1 | Olga Brani | Favicon favicon.ico Favicon for all services |
1688 | 9c2edbf1 | Olga Brani | Dashboard logo dashboard_logo.png Visible in all Astakos UI pages |
1689 | 9c2edbf1 | Olga Brani | Compute logo compute_logo.png Visible in all Cyclades UI pages |
1690 | 08ad5b01 | Constantinos Venetsanopoulos | Console logo console_logo.png Visible in the Cyclades Console Window |
1691 | 08ad5b01 | Constantinos Venetsanopoulos | Storage logo storage_logo.png Visible in all Pithos UI pages |
1692 | 9c2edbf1 | Olga Brani | =============== ============================ ========= |
1693 | 9c2edbf1 | Olga Brani | |
1694 | 08ad5b01 | Constantinos Venetsanopoulos | There are two methods available for replacing all, or individual, |
1695 | 263cb456 | Olga Brani | branding-related images: |
1696 | 9c2edbf1 | Olga Brani | |
1697 | 77186edf | Kostas Papadimitriou | 1. Create a new directory inside ``/usr/share/synnefo/static/`` (e.g. |
1698 | 77186edf | Kostas Papadimitriou | ``mybranding``) and place there some or all of your images. |
1699 | 9c2edbf1 | Olga Brani | |
1700 | 08ad5b01 | Constantinos Venetsanopoulos | If you want to replace all of your images, keep the name/extension |
1701 | 77186edf | Kostas Papadimitriou | conventions as indicated in the above table and change the |
1702 | 77186edf | Kostas Papadimitriou | ``BRANDING_IMAGE_MEDIA_URL`` setting accordingly: |
1703 | 9c2edbf1 | Olga Brani | |
1704 | 77186edf | Kostas Papadimitriou | .. code-block:: python |
1705 | 77186edf | Kostas Papadimitriou | |
1706 | 77186edf | Kostas Papadimitriou | # using relative path |
1707 | 77186edf | Kostas Papadimitriou | BRANDING_IMAGE_MEDIA_URL= '/static/mybranding/images/' |
1708 | 9c2edbf1 | Olga Brani | |
1709 | 77186edf | Kostas Papadimitriou | # or if you already host them in a separate domain (e.g. cdn) |
1710 | 77186edf | Kostas Papadimitriou | BRANDING_IMAGE_MEDIA_URL= 'https://cdn.synnefo.org/branding/images/' |
1711 | 9c2edbf1 | Olga Brani | |
1712 | 9c2edbf1 | Olga Brani | |
1713 | 08ad5b01 | Constantinos Venetsanopoulos | If you wish to replace individual images, **do not uncomment** |
1714 | 08ad5b01 | Constantinos Venetsanopoulos | ``BRANDING_IMAGE_MEDIA_URL``, but instead provide a relative path, pointing to |
1715 | 08ad5b01 | Constantinos Venetsanopoulos | the file inside your directory for each ``BRANDING_<image>_URL`` that you wish |
1716 | 08ad5b01 | Constantinos Venetsanopoulos | to replace. |
1717 | 9c2edbf1 | Olga Brani | |
1718 | 263cb456 | Olga Brani | 2. Upload some or all of your images to a server and replace each |
1719 | 08ad5b01 | Constantinos Venetsanopoulos | ``BRANDING_<image>_URL`` with the absolute url of the image (i.e. |
1720 | 77186edf | Kostas Papadimitriou | ``BRANDING_DASHBOARD_URL = 'https://www.synnefo.com/images/my_dashboard.jpg'``). |
1721 | 9c2edbf1 | Olga Brani | |
1722 | 77186edf | Kostas Papadimitriou | Note that the alternative text for each image tag inside html documents is |
1723 | 08ad5b01 | Constantinos Venetsanopoulos | alt=“BRANDING_SERVICE_NAME {Dashboard, Compute. Console, Storage}” respectively. |
1724 | 9c2edbf1 | Olga Brani | |
1725 | 42e767d4 | Olga Brani | .. note:: Retina optimized images: |
1726 | 9c2edbf1 | Olga Brani | |
1727 | 08ad5b01 | Constantinos Venetsanopoulos | Synnefo UI is optimized for Retina displays. As far as images are concerned, |
1728 | 08ad5b01 | Constantinos Venetsanopoulos | `retina.js <http://retinajs.com/>`_ is used. |
1729 | 9c2edbf1 | Olga Brani | |
1730 | 77186edf | Kostas Papadimitriou | Retina.js checks each image on a page to see if there is a high-resolution |
1731 | 08ad5b01 | Constantinos Venetsanopoulos | version of that image on your server. If a high-resolution variant exists, |
1732 | 08ad5b01 | Constantinos Venetsanopoulos | the script will swap in that image in-place. |
1733 | 9c2edbf1 | Olga Brani | |
1734 | 08ad5b01 | Constantinos Venetsanopoulos | The script assumes you use `Apple's prescribed high-resolution modifier (@2x) |
1735 | 08ad5b01 | Constantinos Venetsanopoulos | <http://developer.apple.com/library/ios/#documentation/2DDrawing/Conceptual/ |
1736 | 08ad5b01 | Constantinos Venetsanopoulos | DrawingPrintingiOS/SupportingHiResScreensInViews/SupportingHiResScreensInViews |
1737 | 08ad5b01 | Constantinos Venetsanopoulos | .html#//apple_ref/doc/uid/TP40010156-CH15-SW1>`_ to denote high-resolution |
1738 | 08ad5b01 | Constantinos Venetsanopoulos | image variants on your server. |
1739 | 9c2edbf1 | Olga Brani | |
1740 | 08ad5b01 | Constantinos Venetsanopoulos | For each of the images that you wish the script to replace, you must have a |
1741 | 08ad5b01 | Constantinos Venetsanopoulos | high-resolution variant in the same folder named correctly and it will be |
1742 | 08ad5b01 | Constantinos Venetsanopoulos | detected automatically. For example if your image is in <my_directory> and is |
1743 | 08ad5b01 | Constantinos Venetsanopoulos | named "my_image.jpg" the script will look in the same directory for an image |
1744 | 08ad5b01 | Constantinos Venetsanopoulos | named "my_image@2x.jpg". |
1745 | 9c2edbf1 | Olga Brani | |
1746 | 08ad5b01 | Constantinos Venetsanopoulos | In case that you don’t want to use a high-resolution image, the |
1747 | 08ad5b01 | Constantinos Venetsanopoulos | normal-resolution image will be visible. |
1748 | 9c2edbf1 | Olga Brani | |
1749 | 08ad5b01 | Constantinos Venetsanopoulos | More branding |
1750 | 08ad5b01 | Constantinos Venetsanopoulos | ~~~~~~~~~~~~~ |
1751 | 9c2edbf1 | Olga Brani | |
1752 | 08ad5b01 | Constantinos Venetsanopoulos | Although, it is not 100% branding-related, further verbal customization is |
1753 | 08ad5b01 | Constantinos Venetsanopoulos | feasible. |
1754 | 9c2edbf1 | Olga Brani | |
1755 | 9c2edbf1 | Olga Brani | **EMAILS** |
1756 | 9c2edbf1 | Olga Brani | |
1757 | 77186edf | Kostas Papadimitriou | The output of all email `*`.txt files will be already customized to contain your |
1758 | 77186edf | Kostas Papadimitriou | company and service names but you can further alter their content if you feel it |
1759 | 77186edf | Kostas Papadimitriou | best fits your needs as simple as creasynnefo template. |
1760 | 017b7d20 | Olga Brani | |
1761 | 77186edf | Kostas Papadimitriou | In order to overwrite one or more email-templates you need to place your |
1762 | 77186edf | Kostas Papadimitriou | modified <email-file>.txt files respecting the following structure: |
1763 | 017b7d20 | Olga Brani | |
1764 | 77186edf | Kostas Papadimitriou | **/etc/synnefo/templates/** |
1765 | 77186edf | Kostas Papadimitriou | **im/** |
1766 | 017b7d20 | Olga Brani | | activation_email.txt |
1767 | 017b7d20 | Olga Brani | | email.txt |
1768 | 017b7d20 | Olga Brani | | invitation.txt |
1769 | 017b7d20 | Olga Brani | | switch_accounts_email.txt |
1770 | 017b7d20 | Olga Brani | | welcome_email.txt |
1771 | 77186edf | Kostas Papadimitriou | **projects/** |
1772 | 017b7d20 | Olga Brani | | project_approval_notification.txt |
1773 | 017b7d20 | Olga Brani | | project_denial_notification.txt |
1774 | 017b7d20 | Olga Brani | | project_membership_change_notification.txt |
1775 | 017b7d20 | Olga Brani | | project_membership_enroll_notification.txt |
1776 | 017b7d20 | Olga Brani | | project_membership_leave_request_notification.txt |
1777 | 017b7d20 | Olga Brani | | project_membership_request_notification.txt |
1778 | 017b7d20 | Olga Brani | | project_suspension_notification.txt |
1779 | 017b7d20 | Olga Brani | | project_termination_notification.txt |
1780 | 77186edf | Kostas Papadimitriou | **registration/** |
1781 | 017b7d20 | Olga Brani | | email_change_email.txt |
1782 | 017b7d20 | Olga Brani | | password_email.txt |
1783 | 017b7d20 | Olga Brani | |
1784 | 017b7d20 | Olga Brani | Feel free to omit any of the above files you do not wish to overwrite. |
1785 | 017b7d20 | Olga Brani | |
1786 | 9c2edbf1 | Olga Brani | Below is a list of all emails sent by Synnefo to users along with a short |
1787 | 9c2edbf1 | Olga Brani | description and a link to their content: |
1788 | 9c2edbf1 | Olga Brani | |
1789 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/email.txt`` |
1790 | 08ad5b01 | Constantinos Venetsanopoulos | Base email template. Contains a contact email and a “thank you” message. |
1791 | 08ad5b01 | Constantinos Venetsanopoulos | (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/email.txt>`_) |
1792 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/activation_email.txt`` Email sent to |
1793 | 08ad5b01 | Constantinos Venetsanopoulos | user that prompts him/her to click on a link provided to activate the account. |
1794 | 08ad5b01 | Constantinos Venetsanopoulos | Extends “email.txt” (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/activation_email.txt>`_) |
1795 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/invitation.txt`` Email sent to an |
1796 | 08ad5b01 | Constantinos Venetsanopoulos | invited user. He/she has to click on a link provided to activate the account. |
1797 | 08ad5b01 | Constantinos Venetsanopoulos | Extends “email.txt” (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/invitation.txt>`_) |
1798 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/switch_accounts_email.txt`` Email |
1799 | 08ad5b01 | Constantinos Venetsanopoulos | sent to user upon his/her request to associate this email address with a |
1800 | 08ad5b01 | Constantinos Venetsanopoulos | shibboleth account. He/she has to click on a link provided to activate the |
1801 | 08ad5b01 | Constantinos Venetsanopoulos | association. Extends “email.txt” (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/switch_accounts_email.txt>`_) |
1802 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/welcome_email.txt`` Email sent to |
1803 | 08ad5b01 | Constantinos Venetsanopoulos | inform the user that his/ her account has been activated. Extends “email.txt” |
1804 | 08ad5b01 | Constantinos Venetsanopoulos | (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/welcome_email.txt>`_) |
1805 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/registration/email_change_email.txt`` |
1806 | 08ad5b01 | Constantinos Venetsanopoulos | Email sent to user when he/she has requested new email address assignment. The |
1807 | 08ad5b01 | Constantinos Venetsanopoulos | user has to click on a link provided to validate this action. Extends |
1808 | 08ad5b01 | Constantinos Venetsanopoulos | “email.txt” (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/registration/email_change_email.txt>`_) |
1809 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/registration/password_email.txt`` Email |
1810 | 08ad5b01 | Constantinos Venetsanopoulos | sent for resetting password purpose. The user has to click on a link provided |
1811 | 08ad5b01 | Constantinos Venetsanopoulos | to validate this action. Extends “email.txt” (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/registration/password_email.txt>`_) |
1812 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/projects/project_approval_notification.txt`` |
1813 | 08ad5b01 | Constantinos Venetsanopoulos | Informs the project owner that his/her project has been approved. Extends |
1814 | 08ad5b01 | Constantinos Venetsanopoulos | “email.txt” (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/projects/project_approval_notification.txt>`_) |
1815 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/projects/project_denial_notification.txt`` |
1816 | 08ad5b01 | Constantinos Venetsanopoulos | Informs the project owner that his/her project application has been denied |
1817 | 08ad5b01 | Constantinos Venetsanopoulos | explaining the reasons. Extends “email.txt” (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/projects/project_denial_notification.txt>`_) |
1818 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/projects/project_membership_change_notification.txt`` |
1819 | 08ad5b01 | Constantinos Venetsanopoulos | An email is sent to a user containing information about his project membership |
1820 | 08ad5b01 | Constantinos Venetsanopoulos | (whether he has been accepted, rejected or removed). Extends “email.txt” (`Link |
1821 | 08ad5b01 | Constantinos Venetsanopoulos | <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/projects/project_membership_change_notification.txt>`_) |
1822 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/projects/project_membership_enroll_notification.txt`` |
1823 | 08ad5b01 | Constantinos Venetsanopoulos | Informs a user that he/she has been enrolled to a project. Extends |
1824 | 08ad5b01 | Constantinos Venetsanopoulos | “email.txt” (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/projects/project_membership_enroll_notification.txt>`_) |
1825 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/projects/project_membership_leave_request_notification.txt`` |
1826 | 08ad5b01 | Constantinos Venetsanopoulos | An email is sent to the project owner to make him aware of a user having |
1827 | 08ad5b01 | Constantinos Venetsanopoulos | requested to leave his project. Extends “email.txt” (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/projects/project_membership_leave_request_notification.txt>`_) |
1828 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/projects/project_membership_request_notification.txt`` |
1829 | 08ad5b01 | Constantinos Venetsanopoulos | An email is sent to the project owner to make him/her aware of a user having |
1830 | 08ad5b01 | Constantinos Venetsanopoulos | requested to join his project. Extends “email.txt” (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/projects/project_membership_request_notification.txt>`_) |
1831 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/projects/project_suspension_notification.txt`` |
1832 | 08ad5b01 | Constantinos Venetsanopoulos | An email is sent to the project owner to make him/her aware of his/her project |
1833 | 08ad5b01 | Constantinos Venetsanopoulos | having been suspended. Extends “email.txt” (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/projects/project_suspension_notification.txt>`_) |
1834 | 08ad5b01 | Constantinos Venetsanopoulos | * ``snf-astakos-app/astakos/im/templates/im/projects/project_termination_notification.txt`` |
1835 | 08ad5b01 | Constantinos Venetsanopoulos | An email is sent to the project owner to make him/her aware of his/her project |
1836 | 08ad5b01 | Constantinos Venetsanopoulos | having been terminated. Extends “email.txt” (`Link <https://code.grnet.gr/projects/synnefo/repository/revisions/master/changes/snf-astakos-app/astakos/im/templates/im/projects/project_termination_notification.txt>`_) |
1837 | 9c2edbf1 | Olga Brani | |
1838 | 9c2edbf1 | Olga Brani | .. warning:: Django templates language: |
1839 | 9c2edbf1 | Olga Brani | |
1840 | 9c2edbf1 | Olga Brani | If you choose to overwrite these email templates, be mindful of the necessary |
1841 | 263cb456 | Olga Brani | information contained in django template variables that must not be omitted, |
1842 | 263cb456 | Olga Brani | such as the activation link for activating one’s account and many more. |
1843 | 263cb456 | Olga Brani | These variables are contained into {{}} inside the templates. |
1844 | 9c2edbf1 | Olga Brani | |
1845 | 9c2edbf1 | Olga Brani | |
1846 | 9b659162 | Christos Stavrakakis | .. RabbitMQ |
1847 | a1c707c9 | Constantinos Venetsanopoulos | |
1848 | 9b659162 | Christos Stavrakakis | RabbitMQ Broker |
1849 | 9b659162 | Christos Stavrakakis | --------------- |
1850 | 9b659162 | Christos Stavrakakis | |
1851 | 9b659162 | Christos Stavrakakis | Queue nodes run the RabbitMQ sofware, which provides AMQP functionality. To |
1852 | 9b659162 | Christos Stavrakakis | guarantee high-availability, more than one Queue nodes should be deployed, each |
1853 | 9b659162 | Christos Stavrakakis | of them belonging to the same `RabbitMQ cluster |
1854 | a1c707c9 | Constantinos Venetsanopoulos | <http://www.rabbitmq.com/clustering.html>`_. Synnefo uses the RabbitMQ |
1855 | a1c707c9 | Constantinos Venetsanopoulos | active/active `High Available Queues <http://www.rabbitmq.com/ha.html>`_ which |
1856 | a1c707c9 | Constantinos Venetsanopoulos | are mirrored between two nodes within a RabbitMQ cluster. |
1857 | a1c707c9 | Constantinos Venetsanopoulos | |
1858 | a1c707c9 | Constantinos Venetsanopoulos | The RabbitMQ nodes that form the cluster, are declared to Synnefo through the |
1859 | a1c707c9 | Constantinos Venetsanopoulos | `AMQP_HOSTS` setting. Each time a Synnefo component needs to connect to |
1860 | a1c707c9 | Constantinos Venetsanopoulos | RabbitMQ, one of these nodes is chosen in a random way. The client that Synnefo |
1861 | a1c707c9 | Constantinos Venetsanopoulos | uses to connect to RabbitMQ, handles connection failures transparently and |
1862 | a1c707c9 | Constantinos Venetsanopoulos | tries to reconnect to a different node. As long as one of these nodes are up |
1863 | a1c707c9 | Constantinos Venetsanopoulos | and running, functionality of Synnefo should not be downgraded by the RabbitMQ |
1864 | a1c707c9 | Constantinos Venetsanopoulos | node failures. |
1865 | 9b659162 | Christos Stavrakakis | |
1866 | 9b659162 | Christos Stavrakakis | All the queues that are being used are declared as durable, meaning that |
1867 | a1c707c9 | Constantinos Venetsanopoulos | messages are persistently stored to RabbitMQ, until they get successfully |
1868 | a1c707c9 | Constantinos Venetsanopoulos | processed by a client. |
1869 | 9b659162 | Christos Stavrakakis | |
1870 | 9b659162 | Christos Stavrakakis | Currently, RabbitMQ is used by the following components: |
1871 | 9b659162 | Christos Stavrakakis | |
1872 | 5135245b | Christos Stavrakakis | * `snf-ganeti-eventd` and `snf-progress-monitor`: |
1873 | 9b659162 | Christos Stavrakakis | These components send messages concerning the status and progress of |
1874 | 9b659162 | Christos Stavrakakis | jobs in the Ganeti backend. |
1875 | a1c707c9 | Constantinos Venetsanopoulos | * `snf-dispatcher`: This daemon, consumes the messages that are sent from |
1876 | a1c707c9 | Constantinos Venetsanopoulos | the above components, and updates the Cyclades DB accordingly. |
1877 | 9b659162 | Christos Stavrakakis | |
1878 | e4404297 | Christos Stavrakakis | |
1879 | 9b659162 | Christos Stavrakakis | Installation |
1880 | 301294a9 | Constantinos Venetsanopoulos | ~~~~~~~~~~~~ |
1881 | 301294a9 | Constantinos Venetsanopoulos | |
1882 | a1c707c9 | Constantinos Venetsanopoulos | Please check the RabbitMQ documentation which covers extensively the |
1883 | a1c707c9 | Constantinos Venetsanopoulos | `installation of RabbitMQ server <http://www.rabbitmq.com/download.html>`_ and |
1884 | a1c707c9 | Constantinos Venetsanopoulos | the setup of a `RabbitMQ cluster <http://www.rabbitmq.com/clustering.html>`_. |
1885 | a1c707c9 | Constantinos Venetsanopoulos | Also, check out the `web management plugin |
1886 | a1c707c9 | Constantinos Venetsanopoulos | <http://www.rabbitmq.com/management.html>`_ that can be useful for managing and |
1887 | a1c707c9 | Constantinos Venetsanopoulos | monitoring RabbitMQ. |
1888 | 9b659162 | Christos Stavrakakis | |
1889 | 9b659162 | Christos Stavrakakis | For a basic installation of RabbitMQ on two nodes (node1 and node2) you can do |
1890 | a1c707c9 | Constantinos Venetsanopoulos | the following: |
1891 | 9b659162 | Christos Stavrakakis | |
1892 | a1c707c9 | Constantinos Venetsanopoulos | On both nodes, install rabbitmq-server and create a Synnefo user: |
1893 | 9b659162 | Christos Stavrakakis | |
1894 | 9b659162 | Christos Stavrakakis | .. code-block:: console |
1895 | 9b659162 | Christos Stavrakakis | |
1896 | 9b659162 | Christos Stavrakakis | $ apt-get install rabbitmq-server |
1897 | 9b659162 | Christos Stavrakakis | $ rabbitmqctl add_user synnefo "example_pass" |
1898 | 9b659162 | Christos Stavrakakis | $ rabbitmqctl set_permissions synnefo ".*" ".*" ".*" |
1899 | 9b659162 | Christos Stavrakakis | |
1900 | a1c707c9 | Constantinos Venetsanopoulos | Also guarantee that both nodes share the same cookie, by running: |
1901 | 9b659162 | Christos Stavrakakis | |
1902 | 9b659162 | Christos Stavrakakis | .. code-block:: console |
1903 | 9b659162 | Christos Stavrakakis | |
1904 | 9b659162 | Christos Stavrakakis | $ scp node1:/var/lib/rabbitmq/.erlang.cookie node2:/var/lib/rabbitmq/.erlang.cookie |
1905 | 9b659162 | Christos Stavrakakis | |
1906 | 9b659162 | Christos Stavrakakis | and restart the nodes: |
1907 | 9b659162 | Christos Stavrakakis | |
1908 | 9b659162 | Christos Stavrakakis | .. code-block:: console |
1909 | 9b659162 | Christos Stavrakakis | |
1910 | 9b659162 | Christos Stavrakakis | $ /etc/init.d/rabbitmq-server restart |
1911 | 9b659162 | Christos Stavrakakis | |
1912 | 9b659162 | Christos Stavrakakis | |
1913 | 9b659162 | Christos Stavrakakis | To setup the RabbitMQ cluster run: |
1914 | 9b659162 | Christos Stavrakakis | |
1915 | 9b659162 | Christos Stavrakakis | .. code-block:: console |
1916 | 9b659162 | Christos Stavrakakis | |
1917 | 9b659162 | Christos Stavrakakis | root@node2: rabbitmqctl stop_app |
1918 | 9b659162 | Christos Stavrakakis | root@node2: rabbitmqctl reset |
1919 | 9b659162 | Christos Stavrakakis | root@node2: rabbitmqctl cluster rabbit@node1 rabbit@node2 |
1920 | 9b659162 | Christos Stavrakakis | root@node2: rabbitmqctl start_app |
1921 | 9b659162 | Christos Stavrakakis | |
1922 | 9b659162 | Christos Stavrakakis | You can verify that the cluster is set up correctly by running: |
1923 | 9b659162 | Christos Stavrakakis | |
1924 | 9b659162 | Christos Stavrakakis | .. code-block:: console |
1925 | 9b659162 | Christos Stavrakakis | |
1926 | 9b659162 | Christos Stavrakakis | root@node2: rabbitmqctl cluster_status |
1927 | 9b659162 | Christos Stavrakakis | |
1928 | 9b659162 | Christos Stavrakakis | |
1929 | bc055d09 | Constantinos Venetsanopoulos | Logging |
1930 | bc055d09 | Constantinos Venetsanopoulos | ------- |
1931 | bc055d09 | Constantinos Venetsanopoulos | |
1932 | bc055d09 | Constantinos Venetsanopoulos | Logging in Synnefo is using Python's logging module. The module is configured |
1933 | bc055d09 | Constantinos Venetsanopoulos | using dictionary configuration, whose format is described here: |
1934 | bc055d09 | Constantinos Venetsanopoulos | |
1935 | bc055d09 | Constantinos Venetsanopoulos | http://docs.python.org/release/2.7.1/library/logging.html#logging-config-dictschema |
1936 | bc055d09 | Constantinos Venetsanopoulos | |
1937 | 4be65f1f | Christos Stavrakakis | The logging configuration dictionary is defined in |
1938 | a1c707c9 | Constantinos Venetsanopoulos | ``/etc/synnefo/10-snf-webproject-logging.conf`` |
1939 | bc055d09 | Constantinos Venetsanopoulos | |
1940 | 6d8a47d0 | Christos Stavrakakis | The administrator can have logging control by modifying the ``LOGGING_SETUP`` |
1941 | 6d8a47d0 | Christos Stavrakakis | dictionary, and defining subloggers with different handlers and log levels. |
1942 | bc055d09 | Constantinos Venetsanopoulos | |
1943 | d189d11c | Constantinos Venetsanopoulos | |
1944 | 21d3d487 | Constantinos Venetsanopoulos | .. _scale-up: |
1945 | 21d3d487 | Constantinos Venetsanopoulos | |
1946 | bc055d09 | Constantinos Venetsanopoulos | Scaling up to multiple nodes |
1947 | bc055d09 | Constantinos Venetsanopoulos | ============================ |
1948 | bc055d09 | Constantinos Venetsanopoulos | |
1949 | 301294a9 | Constantinos Venetsanopoulos | Here we will describe how should a large scale Synnefo deployment look like. Make |
1950 | 301294a9 | Constantinos Venetsanopoulos | sure you are familiar with Synnefo and Ganeti before proceeding with this section. |
1951 | 301294a9 | Constantinos Venetsanopoulos | This means you should at least have already set up successfully a working Synnefo |
1952 | ff6ba888 | Constantinos Venetsanopoulos | deployment as described in the :ref:`Admin's Installation Guide |
1953 | 301294a9 | Constantinos Venetsanopoulos | <quick-install-admin-guide>` and also read the Administrator's Guide until this |
1954 | 301294a9 | Constantinos Venetsanopoulos | section. |
1955 | 2f6143c9 | Constantinos Venetsanopoulos | |
1956 | 301294a9 | Constantinos Venetsanopoulos | Graph of a scale-out Synnefo deployment |
1957 | 301294a9 | Constantinos Venetsanopoulos | --------------------------------------- |
1958 | 2f6143c9 | Constantinos Venetsanopoulos | |
1959 | 301294a9 | Constantinos Venetsanopoulos | Each box in the following graph corresponds to a distinct physical node: |
1960 | 2f6143c9 | Constantinos Venetsanopoulos | |
1961 | 301294a9 | Constantinos Venetsanopoulos | .. image:: images/synnefo-arch2-roles.png |
1962 | 301294a9 | Constantinos Venetsanopoulos | :width: 100% |
1963 | 301294a9 | Constantinos Venetsanopoulos | :target: _images/synnefo-arch2-roles.png |
1964 | 301294a9 | Constantinos Venetsanopoulos | |
1965 | 301294a9 | Constantinos Venetsanopoulos | The above graph is actually the same with the one at the beginning of this |
1966 | 301294a9 | Constantinos Venetsanopoulos | :ref:`guide <admin-guide>`, with the only difference that here we show the |
1967 | 301294a9 | Constantinos Venetsanopoulos | Synnefo roles of each physical node. These roles are described in the |
1968 | 301294a9 | Constantinos Venetsanopoulos | following section. |
1969 | 301294a9 | Constantinos Venetsanopoulos | |
1970 | 21d3d487 | Constantinos Venetsanopoulos | .. _physical-node-roles: |
1971 | 21d3d487 | Constantinos Venetsanopoulos | |
1972 | 301294a9 | Constantinos Venetsanopoulos | Physical Node roles |
1973 | 301294a9 | Constantinos Venetsanopoulos | ------------------- |
1974 | 301294a9 | Constantinos Venetsanopoulos | |
1975 | 301294a9 | Constantinos Venetsanopoulos | As appears in the previous graph, a scale-out Synnefo deployment consists of |
1976 | 301294a9 | Constantinos Venetsanopoulos | multiple physical nodes that have the following roles: |
1977 | 301294a9 | Constantinos Venetsanopoulos | |
1978 | 301294a9 | Constantinos Venetsanopoulos | * **WEBSERVER**: A web server running in front of gunicorn (e.g.: Apache, nginx) |
1979 | 301294a9 | Constantinos Venetsanopoulos | * **ASTAKOS**: The Astakos application (gunicorn) |
1980 | 301294a9 | Constantinos Venetsanopoulos | * **ASTAKOS_DB**: The Astakos database (postgresql) |
1981 | 301294a9 | Constantinos Venetsanopoulos | * **PITHOS**: The Pithos application (gunicorn) |
1982 | 301294a9 | Constantinos Venetsanopoulos | * **PITHOS_DB**: The Pithos database (postgresql) |
1983 | 301294a9 | Constantinos Venetsanopoulos | * **CYCLADES**: The Cyclades application (gunicorn) |
1984 | 301294a9 | Constantinos Venetsanopoulos | * **CYCLADES_DB**: The Cyclades database (postgresql) |
1985 | 301294a9 | Constantinos Venetsanopoulos | * **MQ**: The message queue (RabbitMQ) |
1986 | 301294a9 | Constantinos Venetsanopoulos | * **GANETI_MASTER**: The Ganeti master of a Ganeti cluster |
1987 | 301294a9 | Constantinos Venetsanopoulos | * **GANETI_NODE** : A VM-capable Ganeti node of a Ganeti cluster |
1988 | 2f6143c9 | Constantinos Venetsanopoulos | |
1989 | 301294a9 | Constantinos Venetsanopoulos | You will probably also have: |
1990 | 2f6143c9 | Constantinos Venetsanopoulos | |
1991 | 301294a9 | Constantinos Venetsanopoulos | * **CMS**: The CMS used as a frotend portal for the Synnefo services |
1992 | 21d3d487 | Constantinos Venetsanopoulos | * **NS**: A nameserver serving all other Synnefo nodes and resolving Synnefo FQDNs |
1993 | 301294a9 | Constantinos Venetsanopoulos | * **CLIENT**: A machine that runs the Synnefo clients (e.g.: kamaki, Web UI), |
1994 | 301294a9 | Constantinos Venetsanopoulos | most of the times, the end user's local machine |
1995 | 301294a9 | Constantinos Venetsanopoulos | |
1996 | 301294a9 | Constantinos Venetsanopoulos | From this point we will also refer to the following groups of roles: |
1997 | 301294a9 | Constantinos Venetsanopoulos | |
1998 | 301294a9 | Constantinos Venetsanopoulos | * **SYNNEFO**: [ **ASTAKOS**, **ASTAKOS_DB**, **PITHOS**, **PITHOS_DB**, **CYCLADES**, **CYCLADES_DB**, **MQ**, **CMS**] |
1999 | 301294a9 | Constantinos Venetsanopoulos | * **G_BACKEND**: [**GANETI_MASTER**, **GANETI_NODE**] |
2000 | 301294a9 | Constantinos Venetsanopoulos | |
2001 | 301294a9 | Constantinos Venetsanopoulos | Of course, when deploying Synnefo you can combine multiple of the above roles on a |
2002 | 301294a9 | Constantinos Venetsanopoulos | single physical node, but if you are trying to scale out, the above separation |
2003 | 301294a9 | Constantinos Venetsanopoulos | gives you significant advantages. |
2004 | 301294a9 | Constantinos Venetsanopoulos | |
2005 | 301294a9 | Constantinos Venetsanopoulos | So, in the next section we will take a look on what components you will have to |
2006 | 301294a9 | Constantinos Venetsanopoulos | install on each physical node depending on its Synnefo role. We assume the graph's |
2007 | 301294a9 | Constantinos Venetsanopoulos | architecture. |
2008 | 301294a9 | Constantinos Venetsanopoulos | |
2009 | 301294a9 | Constantinos Venetsanopoulos | Components for each role |
2010 | 301294a9 | Constantinos Venetsanopoulos | ------------------------ |
2011 | 2f6143c9 | Constantinos Venetsanopoulos | |
2012 | 301294a9 | Constantinos Venetsanopoulos | When deploying Synnefo in large scale, you need to install different Synnefo |
2013 | 301294a9 | Constantinos Venetsanopoulos | or/and third party components on different physical nodes according to their |
2014 | 301294a9 | Constantinos Venetsanopoulos | Synnefo role, as stated in the previous section. |
2015 | 301294a9 | Constantinos Venetsanopoulos | |
2016 | 301294a9 | Constantinos Venetsanopoulos | Specifically: |
2017 | 301294a9 | Constantinos Venetsanopoulos | |
2018 | 301294a9 | Constantinos Venetsanopoulos | Role **WEBSERVER** |
2019 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `None` |
2020 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: Apache |
2021 | 301294a9 | Constantinos Venetsanopoulos | Role **ASTAKOS** |
2022 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `snf-webproject`, `snf-astakos-app` |
2023 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: Django, Gunicorn |
2024 | 301294a9 | Constantinos Venetsanopoulos | Role **ASTAKOS_DB** |
2025 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `None` |
2026 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: PostgreSQL |
2027 | 301294a9 | Constantinos Venetsanopoulos | Role **PITHOS** |
2028 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `snf-webproject`, `snf-pithos-app`, `snf-pithos-webclient` |
2029 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: Django, Gunicorn |
2030 | 301294a9 | Constantinos Venetsanopoulos | Role **PITHOS_DB** |
2031 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `None` |
2032 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: PostgreSQL |
2033 | 301294a9 | Constantinos Venetsanopoulos | Role **CYCLADES** |
2034 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `snf-webproject`, `snf-cyclades-app`, `snf-vncauthproxy` |
2035 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: Django Gunicorn |
2036 | 301294a9 | Constantinos Venetsanopoulos | Role **CYCLADES_DB** |
2037 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `None` |
2038 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: PostgreSQL |
2039 | 301294a9 | Constantinos Venetsanopoulos | Role **MQ** |
2040 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `None` |
2041 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: RabbitMQ |
2042 | 301294a9 | Constantinos Venetsanopoulos | Role **GANETI_MASTER** |
2043 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `snf-cyclades-gtools` |
2044 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: Ganeti |
2045 | 301294a9 | Constantinos Venetsanopoulos | Role **GANETI_NODE** |
2046 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `snf-cyclades-gtools`, `snf-network`, `snf-image`, `nfdhcpd` |
2047 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: Ganeti |
2048 | 301294a9 | Constantinos Venetsanopoulos | Role **CMS** |
2049 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `snf-webproject`, `snf-cloudcms` |
2050 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: Django, Gunicorn |
2051 | 301294a9 | Constantinos Venetsanopoulos | Role **NS** |
2052 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `None` |
2053 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: BIND |
2054 | 301294a9 | Constantinos Venetsanopoulos | Role **CLIENT** |
2055 | 301294a9 | Constantinos Venetsanopoulos | * Synnefo components: `kamaki`, `snf-image-creator` |
2056 | 301294a9 | Constantinos Venetsanopoulos | * 3rd party components: `None` |
2057 | 301294a9 | Constantinos Venetsanopoulos | |
2058 | 301294a9 | Constantinos Venetsanopoulos | Example scale out installation |
2059 | 301294a9 | Constantinos Venetsanopoulos | ------------------------------ |
2060 | 301294a9 | Constantinos Venetsanopoulos | |
2061 | 301294a9 | Constantinos Venetsanopoulos | In this section we describe an example of a medium scale installation which |
2062 | 301294a9 | Constantinos Venetsanopoulos | combines multiple roles on 10 different physical nodes. We also provide a |
2063 | 301294a9 | Constantinos Venetsanopoulos | :ref:`guide <i-synnefo>` to help with such an install. |
2064 | 301294a9 | Constantinos Venetsanopoulos | |
2065 | 301294a9 | Constantinos Venetsanopoulos | We assume that we have the following 10 physical nodes with the corresponding |
2066 | 301294a9 | Constantinos Venetsanopoulos | roles: |
2067 | 301294a9 | Constantinos Venetsanopoulos | |
2068 | 301294a9 | Constantinos Venetsanopoulos | Node1: |
2069 | 301294a9 | Constantinos Venetsanopoulos | **WEBSERVER**, **ASTAKOS** |
2070 | 301294a9 | Constantinos Venetsanopoulos | Guide sections: |
2071 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`apt <i-apt>` |
2072 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`gunicorn <i-gunicorn>` |
2073 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`apache <i-apache>` |
2074 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-webproject <i-webproject>` |
2075 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-astakos-app <i-astakos>` |
2076 | 301294a9 | Constantinos Venetsanopoulos | Node2: |
2077 | 301294a9 | Constantinos Venetsanopoulos | **WEBSERVER**, **PITHOS** |
2078 | 301294a9 | Constantinos Venetsanopoulos | Guide sections: |
2079 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`apt <i-apt>` |
2080 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`gunicorn <i-gunicorn>` |
2081 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`apache <i-apache>` |
2082 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-webproject <i-webproject>` |
2083 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-pithos-app <i-pithos>` |
2084 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-pithos-webclient <i-pithos>` |
2085 | 301294a9 | Constantinos Venetsanopoulos | Node3: |
2086 | 301294a9 | Constantinos Venetsanopoulos | **WEBSERVER**, **CYCLADES** |
2087 | 301294a9 | Constantinos Venetsanopoulos | Guide sections: |
2088 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`apt <i-apt>` |
2089 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`gunicorn <i-gunicorn>` |
2090 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`apache <i-apache>` |
2091 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-webproject <i-webproject>` |
2092 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-cyclades-app <i-cyclades>` |
2093 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-vncauthproxy <i-cyclades>` |
2094 | 301294a9 | Constantinos Venetsanopoulos | Node4: |
2095 | 301294a9 | Constantinos Venetsanopoulos | **WEBSERVER**, **CMS** |
2096 | 301294a9 | Constantinos Venetsanopoulos | Guide sections: |
2097 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`apt <i-apt>` |
2098 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`gunicorn <i-gunicorn>` |
2099 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`apache <i-apache>` |
2100 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-webproject <i-webproject>` |
2101 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-cloudcms <i-cms>` |
2102 | 301294a9 | Constantinos Venetsanopoulos | Node5: |
2103 | 301294a9 | Constantinos Venetsanopoulos | **ASTAKOS_DB**, **PITHOS_DB**, **CYCLADES_DB** |
2104 | 301294a9 | Constantinos Venetsanopoulos | Guide sections: |
2105 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`apt <i-apt>` |
2106 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`postgresql <i-db>` |
2107 | 301294a9 | Constantinos Venetsanopoulos | Node6: |
2108 | 301294a9 | Constantinos Venetsanopoulos | **MQ** |
2109 | 301294a9 | Constantinos Venetsanopoulos | Guide sections: |
2110 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`apt <i-apt>` |
2111 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`rabbitmq <i-mq>` |
2112 | 301294a9 | Constantinos Venetsanopoulos | Node7: |
2113 | 301294a9 | Constantinos Venetsanopoulos | **GANETI_MASTER**, **GANETI_NODE** |
2114 | 301294a9 | Constantinos Venetsanopoulos | Guide sections: |
2115 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`apt <i-apt>` |
2116 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`general <i-backends>` |
2117 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`ganeti <i-ganeti>` |
2118 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-cyclades-gtools <i-gtools>` |
2119 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-network <i-network>` |
2120 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-image <i-image>` |
2121 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`nfdhcpd <i-network>` |
2122 | 301294a9 | Constantinos Venetsanopoulos | Node8: |
2123 | 301294a9 | Constantinos Venetsanopoulos | **GANETI_NODE** |
2124 | 301294a9 | Constantinos Venetsanopoulos | Guide sections: |
2125 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`apt <i-apt>` |
2126 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`general <i-backends>` |
2127 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`ganeti <i-ganeti>` |
2128 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-cyclades-gtools <i-gtools>` |
2129 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-network <i-network>` |
2130 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`snf-image <i-image>` |
2131 | 301294a9 | Constantinos Venetsanopoulos | * :ref:`nfdhcpd <i-network>` |
2132 | 301294a9 | Constantinos Venetsanopoulos | Node9: |
2133 | 301294a9 | Constantinos Venetsanopoulos | **GANETI_NODE** |
2134 | 301294a9 | Constantinos Venetsanopoulos | Guide sections: |
2135 | 301294a9 | Constantinos Venetsanopoulos | `Same as Node8` |
2136 | 301294a9 | Constantinos Venetsanopoulos | Node10: |
2137 | 301294a9 | Constantinos Venetsanopoulos | **GANETI_NODE** |
2138 | 301294a9 | Constantinos Venetsanopoulos | Guide sections: |
2139 | 301294a9 | Constantinos Venetsanopoulos | `Same as Node8` |
2140 | 301294a9 | Constantinos Venetsanopoulos | |
2141 | 301294a9 | Constantinos Venetsanopoulos | All sections: :ref:`Scale out Guide <i-synnefo>` |
2142 | 547c78f6 | Constantinos Venetsanopoulos | |
2143 | bc055d09 | Constantinos Venetsanopoulos | |
2144 | bbcd3dd1 | Constantinos Venetsanopoulos | Upgrade Notes |
2145 | bbcd3dd1 | Constantinos Venetsanopoulos | ============= |
2146 | bc055d09 | Constantinos Venetsanopoulos | |
2147 | 457fe4fc | Georgios D. Tsoukalas | .. toctree:: |
2148 | 457fe4fc | Georgios D. Tsoukalas | :maxdepth: 1 |
2149 | 457fe4fc | Georgios D. Tsoukalas | |
2150 | 1cd3daa1 | Constantinos Venetsanopoulos | v0.12 -> v0.13 <upgrade/upgrade-0.13> |
2151 | 09974606 | Georgios D. Tsoukalas | v0.13 -> v0.14 <upgrade/upgrade-0.14> |
2152 | 15151f83 | Christos Stavrakakis | v0.14 -> v0.14.2 <upgrade/upgrade-0.14.2> |
2153 | 0d14df99 | Christos Stavrakakis | v0.14.5 -> v0.14.6 <upgrade/upgrade-0.14.6> |
2154 | d3840a05 | Constantinos Venetsanopoulos | v0.14.7 -> v0.14.8 <upgrade/upgrade-0.14.8> |
2155 | 0ab857d0 | Constantinos Venetsanopoulos | v0.14.9 -> v0.14.10 <upgrade/upgrade-0.14.10> |
2156 | 774f683b | Giorgos Korfiatis | v0.14 -> v0.15 <upgrade/upgrade-0.15> |
2157 | 457fe4fc | Georgios D. Tsoukalas | |
2158 | bbcd3dd1 | Constantinos Venetsanopoulos | |
2159 | 3045e739 | Constantinos Venetsanopoulos | Changelog, NEWS |
2160 | bbcd3dd1 | Constantinos Venetsanopoulos | =============== |
2161 | bbcd3dd1 | Constantinos Venetsanopoulos | |
2162 | 15151f83 | Christos Stavrakakis | |
2163 | 9a80de55 | Christos Stavrakakis | * v0.14.10 :ref:`Changelog <Changelog-0.14.10>`, :ref:`NEWS <NEWS-0.14.10>` |
2164 | 033321fb | Christos Stavrakakis | * v0.14.9 :ref:`Changelog <Changelog-0.14.9>`, :ref:`NEWS <NEWS-0.14.9>` |
2165 | 833880fd | Christos Stavrakakis | * v0.14.8 :ref:`Changelog <Changelog-0.14.8>`, :ref:`NEWS <NEWS-0.14.8>` |
2166 | 833880fd | Christos Stavrakakis | * v0.14.7 :ref:`Changelog <Changelog-0.14.7>`, :ref:`NEWS <NEWS-0.14.7>` |
2167 | 7a59cb8f | Christos Stavrakakis | * v0.14.6 :ref:`Changelog <Changelog-0.14.6>`, :ref:`NEWS <NEWS-0.14.6>` |
2168 | d6a19bac | Christos Stavrakakis | * v0.14.5 :ref:`Changelog <Changelog-0.14.5>`, :ref:`NEWS <NEWS-0.14.5>` |
2169 | 38be3b6e | Christos Stavrakakis | * v0.14.4 :ref:`Changelog <Changelog-0.14.4>`, :ref:`NEWS <NEWS-0.14.4>` |
2170 | cda13b21 | Christos Stavrakakis | * v0.14.3 :ref:`Changelog <Changelog-0.14.3>`, :ref:`NEWS <NEWS-0.14.3>` |
2171 | 15151f83 | Christos Stavrakakis | * v0.14.2 :ref:`Changelog <Changelog-0.14.2>`, :ref:`NEWS <NEWS-0.14.2>` |
2172 | a0f672f1 | Stratos Psomadakis | * v0.14 :ref:`Changelog <Changelog-0.14>`, :ref:`NEWS <NEWS-0.14>` |
2173 | bbcd3dd1 | Constantinos Venetsanopoulos | * v0.13 :ref:`Changelog <Changelog-0.13>`, :ref:`NEWS <NEWS-0.13>` |