Statistics
| Branch: | Tag: | Revision:

root / snf-deploy @ 72cbea06

# Date Author Comment
5dc97d69 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Add command project-modify

Add a management command that directly modifies an initialized project.

bf644f91 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Refactor resource-modify

Remove interactive operations, rename default-quota to base-default.

ba8c50e5 02/13/2014 04:20 pm Giorgos Korfiatis

astakos: Modify resource project default

Add support in resource-modify for changing the project_default.

f507ab25 02/03/2014 03:29 pm Dimitris Aragiorgis

deploy: Fix snf-ganeti-eventd setup

Enable eventd during prepare() so that after restarting it, init
script will not fail.

Signed-off-by: Dimitris Aragiorgis <>

9dc95427 01/30/2014 03:17 pm Giorgos Korfiatis

Merge branch 'release-0.15' into develop

Conflicts:
snf-deploy/snfdeploy/__init__.py
version

c0aaf871 01/29/2014 08:34 am Ilias Tsitsimpis

snf-deploy: Fix ASTAKOS_AUTH_URL for cyclades.conf

Add the '/astakos' prefix to the ASTAKOS_AUTH_URL path.

0efc6bb7 01/29/2014 08:28 am Dimitris Aragiorgis

Add missing dhcp_queue option in nfdhcpd template

Since 0.12.0 nfdhcpd serves DHCPv6 requests in order to supply DNS
related info. So we have to define a new NFQUEUE to mangle the
corresponding packets.

Signed-off-by: Dimitris Aragiorgis <>

de1dcc91 01/29/2014 08:09 am Dimitris Aragiorgis

deploy: Fix cyclades configure()

CYCLADES_NODE_IP is needed for customizing cyclades.conf
template for UI_MEDIA_URL.

Signed-off-by: Dimitris Aragiorgis <>

8d693406 01/29/2014 08:08 am Dimitris Aragiorgis

deploy: workaround for java console Issue

Java VncViewer class has an issue with self-signed certificates.
With existing deployment it does not work if UI_MEDIA_URL uses
FQDN. Use the node's IP instead.

NOTE: In a linux (Debian) client add the following in...

080880d9 01/29/2014 08:03 am Dimitris Aragiorgis

deploy: workaround for java console Issue

Java VncViewer class has an issue with self-signed certificates.
With existing deployment it does not work if UI_MEDIA_URL uses
FQDN. Use the node's IP instead.

NOTE: In a linux (Debian) client add the following in...

18405a2c 01/28/2014 11:20 am Dionysis Grigoropoulos

snf-deploy: Fix ownership of snf_pithos database

3de93ef3 01/27/2014 05:48 pm Dimitris Aragiorgis

Add missing dhcp_queue option in nfdhcpd template

Since 0.12.0 nfdhcpd serves DHCPv6 requests in order to supply DNS
related info. So we have to define a new NFQUEUE to mangle the
corresponding packets.

Signed-off-by: Dimitris Aragiorgis <>

9a48ef23 01/27/2014 05:36 pm Dimitris Aragiorgis

deploy: add missing ganeti collectd setup

Signed-off-by: Dimitris Aragiorgis <>

68269100 01/21/2014 04:40 pm Giorgos Korfiatis

snf-deploy: Stamp pithos most recent database migration

This is necessary so that future migrations know where to start upgrading.

96160b2f 01/20/2014 05:16 pm Ilias Tsitsimpis

snf-deploy: Fix ASTAKOS_AUTH_URL for cyclades.conf

Add the '/astakos' prefix to the ASTAKOS_AUTH_URL path.

38cfb0c3 01/16/2014 12:48 pm Sofia Papagiannaki

snf-deploy: Stamp pithos most recent database migration

This is necessary so that future migrations know where to start upgrading.

368bac96 01/09/2014 05:14 pm Dimitris Aragiorgis

deploy: minor fix for vncauthproxy

/var/lib/vncauthproxy dir is created by package itself.
Thus mkdir -p to avoid error.

Signed-off-by: Dimitris Aragiorgis <>

e23023e8 01/09/2014 04:06 pm Dimitris Aragiorgis

deploy: Fix vncauthproxy

Add users files.

TODO: use vncauthproxy-passwd with correct conf settings

Signed-off-by: Dimitris Aragiorgis <>

31d179f3 01/09/2014 12:29 pm Dimitris Aragiorgis

Fix add_rapi_user method of Master component

..which broke after applying pep8 fixes.

Signed-off-by: Dimitris Aragiorgis <>

632ea467 01/08/2014 08:50 pm Dimitris Aragiorgis

More pep8 fixes related to snf-deploy

Those fixes concern errors that are introduced in latest
pep8 version (and not the wheezy's one).

Signed-off-by: Dimitris Aragiorgis <>

d4f28d8f 01/08/2014 08:25 pm Dimitris Aragiorgis

pep8 fixes related to snf-deploy refactor

Signed-off-by: Dimitris Aragiorgis <>

3c3bccab 01/08/2014 05:08 pm Dimitris Aragiorgis

Huuuuge snf-deploy refactor

Introduce the concept of Roles and Components.

Roles are ns, mq, db, nfs, astakos, cyclades, pithos, cms, stats,
ganeti, master, and client.

Each role consists of various SynnefoComponents which should define:

  • commands to check installation prerequisites (check)...
68d6d24b 01/08/2014 05:06 pm Dimitris Aragiorgis

deploy: Factor out utils from fabfile

Signed-off-by: Dimitris Aragiorgis <>

5ffa5e6d 12/18/2013 01:26 pm Dimitris Aragiorgis

Setup pithos with oa2 secret of conf files

This was forgotten when we removed the hard-coded secret.

Signed-off-by: Dimitris Aragiorgis <>

b7245b84 12/17/2013 12:40 pm Dimitris Aragiorgis

Add oa2_secret to conf files

This secret is used during registering pithos view in astakos.
Make this setting configurable.

Signed-off-by: Dimitris Aragiorgis <>

c62a2729 12/17/2013 09:58 am Dionysis Grigoropoulos

snf-deploy: Typo fixes

6d28ce6a 12/10/2013 02:33 pm Ilias Tsitsimpis

snf-deploy: Update kamaki register command

The --location has to be `pithos://USER_UUID/CONTAINER/PATH'
or `/CONTAINER/PATH'.

f92dffed 12/09/2013 05:53 pm Christos Stavrakakis

docs: Update kamaki image register command

c6e90126 12/04/2013 08:13 pm Christos Stavrakakis

snf-deploy: Fix Ganeti specs to allow zero nics

952a28c0 12/04/2013 03:49 pm Sofia Papagiannaki

snf_deploy: Setup oa2 app

fe7d0186 12/03/2013 09:47 pm Sofia Papagiannaki

astakos oa2: rename settings and url prefixes

Change setting and url prefixes from `oa2` to
`oauth2`

0cfa5e03 12/03/2013 12:40 am Stratos Psomadakis

snf-deploy: Add stats support

fba7aaf4 12/02/2013 09:30 pm Stratos Psomadakis

snf-deploy: Fix for vncauthproxy>1.4

9f41ab1e 12/02/2013 02:12 pm Ilias Tsitsimpis

snf-deploy: Support newer version of kamaki CLI

Command Line Interface of kamaki has changed the way it handles
pithos containers. A new command `container' has been created.

This commit changes the command snf-deploy is using the create
a new container from...

ee995ae2 11/26/2013 01:11 pm Christos Stavrakakis

Merge branch 'master' into develop

Conflicts:
ci/schemas/one_node_wheezy/wheezy.conf
docs/admin-guide.rst
snf-cyclades-app/synnefo/api/actions.py
snf-cyclades-app/synnefo/api/servers.py
snf-cyclades-app/synnefo/logic/backend.py
snf-cyclades-app/synnefo/logic/callbacks.py...

f7d0f914 11/26/2013 11:02 am Christos Stavrakakis

snf-deploy: Default packages should be wheezy

38fd3090 11/22/2013 04:44 pm Christos Stavrakakis

snf-deploy: Set quota for existing users

Add new action 'set_user_quota' to set base quota for existing users.

d61d6007 11/22/2013 04:44 pm Giorgos Korfiatis

astakos: Rename --limit to --default-quota

Use a more descriptive name for this resource-modify option. Also change
resource-list column `limit' to `default_quota'.

657040ad 11/22/2013 03:46 pm Dimitris Aragiorgis

Get the latest ganeti packages from wheezy repo

Signed-off-by: Dimitris Aragiorgis <>

Conflicts:
ci/schemas/one_node_wheezy/wheezy.conf
snf-deploy/conf/wheezy.conf

da83b041 11/21/2013 06:01 pm Dimitris Aragiorgis

Get the latest ganeti packages from wheezy repo

Signed-off-by: Dimitris Aragiorgis <>

0a9b5fff 11/19/2013 01:00 pm Christos Stavrakakis

deploy: Install vncauthproxy before cyclades

Install snf-vncauthproxy beforing installing Cyclades, because Cyclades
depends on vncauthproxy.

5083fc47 11/15/2013 02:13 pm Christos Stavrakakis

Rename 'cpu' and 'ram' resources

Rename CPU and RAM relative resources to avoid data migrations.
Specifically, the resources that are renamed are the following:

  • cpu -> total_cpu
  • ram -> total_ram
  • active_cpu -> cpu
  • active_ram -> ram
03f01e0d 11/14/2013 09:52 am Dimitris Aragiorgis

deploy: update ganeti and nfqueue packages

Use latest custom 2.8.2 ganeti which consists of ganeti-haskell,
ganeti-htools, snf-ganeti.

nfqueue-bindings-python is replaced by python-nfqueue in
wheezy. Use our custom package which supports an extra method...

a1dae38d 11/12/2013 01:34 pm Christos Stavrakakis

Merge branch 'feature-cyclades-networks' into develop

Conflicts:
snf-cyclades-app/synnefo/api/management/commands/server-inspect.py
snf-cyclades-app/synnefo/app_settings/urls.py
snf-cyclades-app/synnefo/logic/backend.py
snf-cyclades-app/synnefo/logic/backend_allocator.py...

afea072d 11/11/2013 03:29 pm Christos Stavrakakis

deploy: Install snf-ganeti 2.8 from unstable

c1c9c36b 11/11/2013 03:29 pm Christos Stavrakakis

snf-deploy: Enable file disk template

3672c171 11/08/2013 03:19 pm Christos Stavrakakis

snf-deploy Create network as floating IP pool

23f46a1b 11/07/2013 09:32 pm Christos Stavrakakis

snf-deploy: Fix creation of initial networks

d88c9628 10/30/2013 01:05 am Christos Stavrakakis

snf-deploy: Enable file disk template

6ce03057 10/29/2013 04:48 pm Giorgos Korfiatis

Trim trailing slash from ASTAKOS_AUTH_URL

Endpoints no more end in slash.

afbdd032 10/29/2013 04:15 pm Ilias Tsitsimpis

snf-deploy: Use the new AstakosClient

5a390037 10/23/2013 04:54 pm Dimitris Aragiorgis

deploy: chown root.www-data /var/log/gunicorn

Signed-off-by: Dimitris Aragiorgis <>

ca1de37b 10/22/2013 05:47 pm Ilias Tsitsimpis

snf-deploy: pep8 fixes

106d0dcc 10/22/2013 04:57 pm Ilias Tsitsimpis

snf-deploy: Add fabric as a dependency

3bae85da 10/22/2013 04:37 pm Dimitris Aragiorgis

deploy: use execute() instead of fab

This way we have a unique execution environment between
snf-deploy script and fabfile. Arguments and options
are handled way more easily. Get rid of the twisted code
that was passing command line arguments to fabric.
...

dcce60bd 10/22/2013 04:33 pm Dimitris Aragiorgis

deploy: just move fabfile into python module

This prepares the refactor that will take place in the following ones.

Signed-off-by: Dimitris Aragiorgis <>

2b4f7cc5 10/09/2013 07:31 pm Christos Stavrakakis

deploy: Install snf-ganeti 2.8 from unstable

59d1ee86 10/09/2013 11:40 am Christos Stavrakakis

deploy: Install vncauthproxy before cyclades

Install snf-vncauthproxy beforing installing Cyclades, because Cyclades
depends on vncauthproxy.

c0dc9e93 10/08/2013 04:02 pm Dimitris Aragiorgis

snf-deploy: Remove packages.conf

This is not needed any more because we have squeeze and wheezy ones

Signed-off-by: Dimitris Aragiorgis <>

04660f63 10/08/2013 04:02 pm Dimitris Aragiorgis

snf-deploy: fix snf-deploy ganeti

A typo and explicitely install drbd8-utils package for ganeti.

Signed-off-by: Dimitris Aragiorgis <>

2242394d 10/08/2013 04:02 pm Dimitris Aragiorgis

snf-deploy: fix strange behaviour of openssl

When used remotely via ssh it produces a strange (stdin)= before
the real output.

Signed-off-by: Dimitris Aragiorgis <>

093d25d8 10/08/2013 04:02 pm Dimitris Aragiorgis

snf-deploy: Fix image_dir setup

Signed-off-by: Dimitris Aragiorgis <>

b2334d13 10/08/2013 04:02 pm Dimitris Aragiorgis

snf-deploy: fix case of local binary package

ganeti-htools is a binary package that ends with amd64.deb
Thus we should not not search only for *all.deb

Signed-off-by: Dimitris Aragiorgis <>

09ab7b18 10/04/2013 05:26 pm Christos Stavrakakis

Revert "snf-deploy: Make public network a FIP pool"

This reverts commit d25a778a0d7890cefc354a1860f8996a0eb1fcaa.

d25a778a 10/04/2013 04:46 pm Christos Stavrakakis

snf-deploy: Make public network a FIP pool

c3139cfd 10/04/2013 04:46 pm Christos Stavrakakis

deploy: Set default quota for floating IPs

440cc444 10/03/2013 05:55 pm Ilias Tsitsimpis

snf-deploy: Change email backend file location

Change Django's filebased email backend location
from '/var/log/gunicorn/synnefo-mail/' to
'/var/tmp/synnefo-mail/'. We do this due to permission
errors.

ed0dd751 10/03/2013 05:55 pm Ilias Tsitsimpis

snf-deploy: Change email backend file location

Change Django's filebased email backend location
from '/var/log/gunicorn/synnefo-mail/' to
'/var/tmp/synnefo-mail/'. We do this due to permission
errors.

a307c2e5 10/02/2013 02:18 pm Ilias Tsitsimpis

deploy: Exit with message and not with code

7f857fcc 10/02/2013 02:17 pm Ilias Tsitsimpis

deploy: Exit with message and not with code

86de48b4 10/02/2013 02:16 pm Ilias Tsitsimpis

snf-deploy: Exit when fab command fails

The previous approach (using the return value from
os.system for sys.exit) was false. For more information, see
`how-to-bypass-the-0-255-range-limit-for-sys-exit-in-python'
on stackoverflow.

d38bdeb7 10/02/2013 02:06 pm Ilias Tsitsimpis

snf-deploy: Exit when fab command fails

The previous approach (using the return value from
os.system for sys.exit) was false. For more information, see
`how-to-bypass-the-0-255-range-limit-for-sys-exit-in-python'
on stackoverflow.

09aa843b 10/02/2013 12:50 pm Christos Stavrakakis

deploy: Add python-django to wheezy conf files

0500dae6 10/02/2013 12:21 pm Christos Stavrakakis

snf-deploy: Manually install django

Manually install python-django in order to get the correct version.

7435e91f 10/01/2013 06:59 pm Christos Stavrakakis

deploy: python-django squeeze-backports

0a70d2c5 10/01/2013 06:16 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.8' into develop

Merge hotfix-0.14.8 which ports Synnefo to wheezy and Django 1.4.5

Conflicts:
ci/ci_squeeze.conf
ci/ci_wheezy.conf
ci/schemas/one_node_squeeze/packages.conf
ci/schemas/one_node_squeeze/squeeze.conf
ci/schemas/one_node_squeeze/wheezy.conf...

b3adfb20 10/01/2013 04:44 pm Christos Stavrakakis

deploy: Fix parsing of the service token

eb765213 10/01/2013 02:56 pm Giorgos Korfiatis

astakos: Store base URL in component

Deployer should provide it when adding a new component. Service endpoints
originating from a component are expected to match its base URL; otherwise,
a warning is issued during service registration. Re-registration with...

f58f96a5 09/30/2013 05:22 pm Ilias Tsitsimpis

snf-deploy: Return the correct exit code

snf-deploy uses os.system to execute it's fabfile. We have
to use sys.exit() for the python script to return with the
same exit code as the one returned by fabric script.

38dcf43f 09/30/2013 05:20 pm Ilias Tsitsimpis

snf-deploy: Return the correct exit code

snf-deploy uses os.system to execute it's fabfile. We have
to use sys.exit() for the python script to return with the
same exit code as the one returned by fabric script.

e11296b4 09/30/2013 04:05 pm Ilias Tsitsimpis

snf-deploy: Remove misplaced `raise'

508d6d51 09/30/2013 04:04 pm Ilias Tsitsimpis

snf-deploy: Remove misplaced `raise'

7aa13555 09/30/2013 03:43 pm Ilias Tsitsimpis

snf-deploy Use symbolic debian_base_url

For debian_base_url use a link that always resolves
to the latest image.

2ede0463 09/30/2013 03:43 pm Ilias Tsitsimpis

snf-deploy: Abort has been changed to True

By default abort when a command is failed to be executed.

0e6e73d3 09/30/2013 03:39 pm Ilias Tsitsimpis

snf-deploy: Abort has been changed to True

By default abort when a command is failed to be executed.

6be91b06 09/30/2013 03:39 pm Ilias Tsitsimpis

snf-deploy Use symbolic debian_base_url

For debian_base_url use a link that always resolves
to the latest image.

d82d3e82 09/30/2013 01:32 pm Ilias Tsitsimpis

snf-deploy: Remove old keys before generating new

When creating new ssh keys if the key already exists,
ssh-keygen prompts the user if he want to overwrite it.
To avoid prompting the user, delete all the old keys,
before generating new ones (the user has...

9772cb94 09/30/2013 01:31 pm Ilias Tsitsimpis

snf-deploy: Add `generated' note to resolv.conf

Add a note on top of /etc/resolv.conf file to inform users
that this file has been changed by snf-deploy and the
immutable bit has been used.

Conflicts:
snf-deploy/fabfile.py

28991d59 09/30/2013 01:29 pm Ilias Tsitsimpis

snf-deploy: Add `generated' note to resolv.conf

Add a note on top of /etc/resolv.conf file to inform users
that this file has been changed by snf-deploy and the
immutable bit has been used.

02905e15 09/30/2013 01:29 pm Ilias Tsitsimpis

snf-deploy: Remove old keys before generating new

When creating new ssh keys if the key already exists,
ssh-keygen prompts the user if he want to overwrite it.
To avoid prompting the user, delete all the old keys,
before generating new ones (the user has...

f1800130 09/30/2013 12:15 pm Ilias Tsitsimpis

deploy: Pep8 fixes

Conflicts:
snf-deploy/fabfile.py

f4cb5d92 09/30/2013 12:14 pm Ilias Tsitsimpis

deploy: Modify dir for filebased email_backend

Allow user to modify the directory that will
be used for the filebased email backend by Django.

Also move the EMAIL_BACKEND option from astakos to
common.

2a2c6c0a 09/25/2013 03:56 pm Ilias Tsitsimpis

deploy: Modify dir for filebased email_backend

Allow user to modify the directory that will
be used for the filebased email backend by Django.

Also move the EMAIL_BACKEND option from astakos to
common.

215f94f4 09/25/2013 03:56 pm Ilias Tsitsimpis

deploy: Pep8 fixes

b249aba9 09/25/2013 03:43 pm Christos Stavrakakis

ci: Fix addition of Ganeti RAPI user

'openssl' 1.0.1e-2 prefixes the output with "(stdin)= ". Because of this
registration of a new Ganeti RAPI user failed. This commit fixes this by
removing the prefix, before adding it to Ganeti RAPI users file.

cbf73c9d 09/25/2013 12:18 pm Ilias Tsitsimpis

deploy: Install rabbitmq from Debian repos

Now that squeeze-backports has 2.8.4-1~bpo60+1 and
wheezy has 2.8.4-1 version we can install rabbitmq-server
from the official Debian repos.

26f6ab93 09/24/2013 05:39 pm Christos Stavrakakis

ci: Fix database engine

90422c05 09/24/2013 04:44 pm Ilias Tsitsimpis

deploy: For local command set capture flag to True

fabric: Changed in version 1.0: Changed the default value of capture
from True to False.

bf0e2a03 09/24/2013 04:44 pm Ilias Tsitsimpis

deploy: Don't use hardcoded version of postgresql

c2a749b4 09/24/2013 04:44 pm Ilias Tsitsimpis

deploy: For local command set capture flag to True

fabric: Changed in version 1.0: Changed the default value of capture
from True to False.