Statistics
| Branch: | Tag: | Revision:

root / snf-deploy / snfdeploy @ 954ff0d8

# Date Author Comment
954ff0d8 02/28/2014 02:19 pm Dimitris Aragiorgis

deploy: Fix case where node doesn't have authorized_keys

Since we are inserting ssh keys, we first backup existing
authorized_keys and append them later to our uploaded file.

If authorized_keys did not exist, neither will authorized_keys.bak .
So `test -e` in the initialize method of SSH component will...

ff5edb80 02/28/2014 01:00 pm Giorgos Korfiatis

Update Copyright for project-related changes

Update Copyright for files merged into develop in 2014 concerning the new
projects mechanism.

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

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

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.

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

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

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

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

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

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

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

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

deploy: Exit with message and not with code

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.

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.

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

24dc98e2 09/20/2013 09:50 am Dimitris Aragiorgis

deploy: Support both wheezy and squeeze packages

Signed-off-by: Dimitris Aragiorgis <>

fea067c8 09/20/2013 09:50 am Dimitris Aragiorgis

snf-deploy: some minor fixes and typos

Signed-off-by: Dimitris Aragiorgis <>

f1b4fdfc 09/20/2013 09:50 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 <>

9f93a6fb 09/20/2013 09:50 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 <>

4b36944e 09/19/2013 03:54 pm Ilias Tsitsimpis

snf-deploy: Remove ssh keys

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

3c626269 09/17/2013 10:46 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.

eaae0a32 09/13/2013 10:28 pm Erethon

snf-deploy: fix a bug in --disable-colors option

bd9b6f21 08/27/2013 11:25 am Christos Stavrakakis

deploy: Performance tune for postgresql

Turn off fsync, synchronous_commit and full_pages_writer to speed up
postgresql. DB is not no longer crash-safe, but this is no needed for
tests.

Also, introduce 'testing_vm' setting to distinquish between the type of...

8f5ea521 08/20/2013 08:33 am Dimitris Aragiorgis

Add --no-keys-inject option

This skips key injection in nodes

Signed-off-by: Dimitris Aragiorgis <>

8780d2fa 08/20/2013 08:33 am Dimitris Aragiorgis

Pass key_inject in setup_env

Signed-off-by: Dimitris Aragiorgis <>

7d6fed3a 08/20/2013 08:33 am Dionysis Grigoropoulos

snf-deploy: Update snfdeploy/lib.py to be pep8 compliant

511edaaa 08/20/2013 08:33 am Dimitris Aragiorgis

Fix missing things for disable_colors

Signed-off-by: Dimitris Aragiorgis <>

0ac84a9a 08/20/2013 08:33 am Dimitris Aragiorgis

Add snf-deploy tree

Signed-off-by: Dimitris Aragiorgis <>

1bc6d467 08/20/2013 08:33 am Dionysis Grigoropoulos

snf-deploy: Add option (--disable-colors) to disable color printing in terminal