Statistics
| Branch: | Tag: | Revision:

root / snf-deploy @ dc7159be

# Date Author Comment
ce452992 01/09/2014 06:38 pm Dimitris Aragiorgis

deploy: fix typo

Signed-off-by: Dimitris Aragiorgis <>

c873d856 01/09/2014 04:45 pm Dimitris Aragiorgis

deploy: Add Achipelago support (WIP)

Add a new nfs mount point /srv/archip and define new components
Archip, ArchipGaneti to include in pithos, cyclades, ganeti and
master roles.

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

ccd1fef8 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.

5814efde 09/24/2013 12:31 pm Christos Stavrakakis

deploy: Do not import services twice

Commit 65c656c resulted in double importing services, since this
was already fixed in commmit 3c62626.

2a73a699 09/24/2013 12:27 pm Christos Stavrakakis

deploy: Do not import services twice

Commit 65c656c resulted in double importing services, since this
was already fixed in commmit 3c62626.

fcd9eee0 09/24/2013 11:03 am Christos Stavrakakis

Revert "deploy: Fix --dhcp option of network-create cmd"

This reverts commit 73607c335593146f3f4bf31960c9a7042598d510.

e083e94c 09/24/2013 10:55 am Dimitris Aragiorgis

deploy: Support both wheezy and squeeze packages

Signed-off-by: Dimitris Aragiorgis <>

0fd77bd5 09/24/2013 10:55 am Dimitris Aragiorgis

snf-deploy: some minor fixes and typos

Signed-off-by: Dimitris Aragiorgis <>

24aebd56 09/24/2013 10:55 am Ilias Tsitsimpis

snf-deploy: Fix pithos_url in register

New version of kamaki accepts the location of
images to register as container:file instead of the old
one "pithos://uuid/location".

b29b8213 09/24/2013 10:55 am Christos Stavrakakis

deploy: Fix importing services to astakos

Use snf-manage service-export and service-import management commands to
import services and corresponding resources to astakos. Also, remove old
temporary files that were used for this procedure.

0b0d69f5 09/24/2013 10:55 am Christos Stavrakakis

deploy: By default use only file disk template

By default snf-deploy will not enable lvm and drbd storage. So, the
default setting for flavors should include only 'file' disk template.

21b14236 09/24/2013 10:55 am Ilias Tsitsimpis

snf-deploy: Use filebased email_backend

Change the email backend from dummy to a filebased one.

bbc3b7e7 09/24/2013 10:55 am Ilias Tsitsimpis

snf-deploy: Remove ssh keys

Remove ssh keys from snf-deploy package.
We can now generate new keys running `snf-deploy keygen'.

b91452fa 09/24/2013 10:55 am Giorgos Korfiatis

deploy: Automate service registration

Use script snf-service-export to assist registering service definitions
in astakos. Remove call to resource-import; its usage is covered by
service-import.

e66eb6d6 09/24/2013 10:55 am Dimitris Aragiorgis

deploy: minor updates

Hard code latest kamaki version that does not break deploy.
snf-manage network-create --dhcp

Signed-off-by: Dimitris Aragiorgis <>

f9b1abe8 09/24/2013 10:55 am Dimitris Aragiorgis

Add os per node

This is needed for heterogeneous setups.
Depending on os the corresponding sources file is added
and the proper synnefo packages are installed (~wheezy or ~squeeze)

Signed-off-by: Dimitris Aragiorgis <>

4baa4696 09/24/2013 10:55 am Dimitris Aragiorgis

deploy: Refactor nfs

Switch to nfs v3.
Explicitly use IP in /etc/exports and not subnet.

Subnet and gateway are only used by vlcuster and thus
move them from nodes.conf to vcluster.conf.

Signed-off-by: Dimitris Aragiorgis <>

c0c8263a 09/24/2013 10:55 am Dimitris Aragiorgis

deploy: some fixes

kamaki register image
tmp wheezy sources for ganeti htools (not used any more)
import_service

Signed-off-by: Dimitris Aragiorgis <>