Statistics
| Branch: | Tag: | Revision:

root @ 0252fb8b

# Date Author Comment
0252fb8b 03/15/2013 02:30 pm Christos Stavrakakis

snf-manage: Accept Ganeti server/network names

Make management commands relevant with servers and networks to accept
as arguments their Ganeti names, besides their database ID.

For example if BACKEND_PREFIX_ID='snf-', they following two commands are
both valid:...

86bda7aa 03/14/2013 04:18 pm Christos Stavrakakis

Merge branch 'feature-list-command' into develop

92f20714 03/14/2013 03:58 pm Christos Stavrakakis

Use --deleted=True|False in flavor-modify

d09a166e 03/14/2013 03:58 pm Christos Stavrakakis

Add --dry-run option to snf-manage network-create

225cea18 03/14/2013 03:58 pm Christos Stavrakakis

Move common code for mngmt commands to webproject

Move cyclades functions that are useful for all managament commands, like
pprint_table or parse_filters, to snf-webproject.

b0e7f310 03/14/2013 03:58 pm Christos Stavrakakis

Add ListCommand to be used for all *-list commands

Create a generic ListCommand to be user for all *-list management
commands. ListCommand handles must tasks that are common to all
management commands, like retrieving objects from db, filtering
results and formating output to a pretty table, json or csv....

d99e4e80 03/12/2013 03:55 pm Christos Stavrakakis

Merge branch 'feature-astakos-client' into develop

be284f6a 03/12/2013 03:54 pm Christos Stavrakakis

Turn multiple if statements to if-elif statement

d7e1e346 03/12/2013 03:54 pm Ilias Tsitsimpis

Better handling of log messages

Never, ever log tokens

4490d7b5 03/12/2013 03:54 pm Ilias Tsitsimpis

Create AstakosClient Class

66208bc7 03/12/2013 03:54 pm Ilias Tsitsimpis

Correct unit tests to run with AstakosClient class

949baf4d 03/12/2013 03:54 pm Ilias Tsitsimpis

Add retry option to AstakosClient

864eb390 03/12/2013 03:54 pm Ilias Tsitsimpis

TestAuthenticate now works with AstakosClient

d4789cd4 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement unit tests for getDisplayNmaes

bc5032a4 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement getTokenFromCookie function

98752f06 03/12/2013 03:54 pm Ilias Tsitsimpis

Move token argument

Remove token argument from class initialization
method and make it a mandatory argument to all
the other class methods.

e169a337 03/12/2013 03:54 pm Ilias Tsitsimpis

Rename conn variable to conn_class

8f2d7ede 03/12/2013 03:54 pm Ilias Tsitsimpis

Better handling of default parameter values

7eb32034 03/12/2013 03:54 pm Ilias Tsitsimpis

Better format for logging messages

aaf0a42c 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement getUUIDs/getUUID methods

3f8d6b11 03/12/2013 03:54 pm Ilias Tsitsimpis

Add getServices method

1c26b500 03/12/2013 03:54 pm Ilias Tsitsimpis

Query Astakos `/service/api/user_catalogs'

6f64b6d0 03/12/2013 03:54 pm Ilias Tsitsimpis

More log messages in AstakosClient

Log retries.
Log hashed tokens.

8fe6475a 03/12/2013 03:54 pm Ilias Tsitsimpis

Create more Exception Classes for AstakosClient

  • AstakosClientEInvalid:
    Invalid X-Auth-Token, 401
  • AstakosClientEMethod:
    Method not allowed, 400
  • AstakosClientENotFound:
    Not Found, 404
1c322fee 03/12/2013 03:54 pm Ilias Tsitsimpis

Add snf-astakos-client to ci's config file

996061fa 03/12/2013 03:54 pm Ilias Tsitsimpis

Add options to AstakosClient for objpool pool_size

Refs: #3419

f93cc364 03/12/2013 03:54 pm Ilias Tsitsimpis

Create utils and errors modules for astakosclient

  • Move retry decorator to utils module.
  • Rename exceptions to be more intuitive.
  • Add 403 Forbidden exception.
  • Move exceptions to errors class
83325b42 03/12/2013 03:54 pm Ilias Tsitsimpis

Run setup.py through flake8

cbc0b438 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement low-level _callAstakos function

This function will handle all requests to Astakos.
On top of this we should build high level wrapper
functions to handle more specific calls/requests
to Astakos. _callAstakos function should log
every single action.

f8388a90 03/12/2013 03:54 pm Ilias Tsitsimpis

Separate actual _doRequest from _callAstakos

Creating a new function `_doRequest' to handle
the actual requests to astakos service makes
it easy to mock it later for unit testing
our module.

57ba2dfc 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement the mocked _doRequest for unit testing

When unit testing our astakos-client module we have to
replace it's _doRequest function with some dummy ones.
In this commit we create this dummy functions that are
going to be used through our tests.

bc56a641 03/12/2013 03:54 pm Ilias Tsitsimpis

First test for _callAstakos, raise socket error

The first unit test for _callAstakos function, checks
the answer when there is no internet connection
(should raise a socket exception).

b2a2fe7a 03/12/2013 03:54 pm Ilias Tsitsimpis

Add more unit tests for _callAstakos function

52c4fcef 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement a simple `retry' decorator

f54cf5e4 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement `authenticate' function

454a1ad4 03/12/2013 03:54 pm Ilias Tsitsimpis

Add unit tests for `authenticate' function

354517d8 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement getDisplayNames function

344d5c90 03/12/2013 03:54 pm Ilias Tsitsimpis

In unit tests change user info from string to dict

d071e6f1 03/12/2013 03:54 pm Ilias Tsitsimpis

Unit test user_catalogs without POST method

426e4bda 03/11/2013 06:45 pm Christos Stavrakakis

Merge branch 'release-0.13' into develop

Conflicts:
version

d8db7692 03/11/2013 06:41 pm Christos Stavrakakis

Bump version

f3463a00 03/11/2013 06:31 pm Kostas Papadimitriou

Fix shibboleth logging

6653db48 03/11/2013 06:31 pm Kostas Papadimitriou

Improve memory choices display in vm create view

Apply human readable (MB, GB) conversion

7edb6d06 03/11/2013 06:31 pm Christos Stavrakakis

Add --dry-run option to flavor-create

Add --dry-run option to flavor-create management command. Also, do not
crash if flavor already exists.

Refs #3366

b336e6fa 03/11/2013 06:18 pm Georgios D. Tsoukalas

Fix+move HTTP quotaholder client in synnefo.lib

Allow per-service configuration of the (http) quotaholder client.
Kamaki is no longer needed in service (or ganeti) nodes,
because the client has been moved to snf-common.

Also fix the default quotaholder settings for pithos backend to be disabled...

cf1984d8 03/11/2013 05:17 pm Christos Stavrakakis

Add --dry-run option to flavor-create

Add --dry-run option to flavor-create management command. Also, do not
crash if flavor already exists.

Refs #3366

576e059b 03/08/2013 07:00 pm Constantinos Venetsanopoulos

Update the Quick Install Admin Guide

Update the following sections in the guide:

  • Ganeti: Don't build package; use GRNET's until 2.7 is out
  • gevent: Make it a prerequisite on both nodes
379dccfe 03/08/2013 04:27 pm Christos Stavrakakis

Bump version

e18c1749 03/08/2013 04:22 pm Christos Stavrakakis

Bypass commissioning for orphan networks

Cyclades public networks do not have an owner, and since can not use
the commissioning system. Also, make snf-dispatcher instead of failing
for networks without userid to just a log a warning. This does not apply for...

d25cd9dd 03/08/2013 02:29 pm Christos Stavrakakis

Merge branch 'release-0.13' into develop

Conflicts:
version

695d94d0 03/08/2013 02:28 pm Christos Stavrakakis

Bump version

e0a81f2e 03/08/2013 12:51 pm Giorgos Korfiatis

Inform user we are working in the background

Print a message about astakos-quota calculating all user quotas,
which on a big system takes some time.

92a8abc9 03/07/2013 07:01 pm Kostas Papadimitriou

Astakos activation fix

Additional check to avoid verified inactive users reactivation

a99a9151 03/07/2013 07:01 pm Kostas Papadimitriou

Classic login form fix

hide prompt for additional login methods if no such methods exist

5df4c364 03/07/2013 07:01 pm Kostas Papadimitriou

Astakos logging fixes

Removed with_logging wrapper which inconsistently extracted user/request
arguments. Logging statements placed explicitly within login/logout
methods.

Fix admin notification logging

a53ee093 03/07/2013 07:01 pm Kostas Papadimitriou

Include auth providers basic logging support

Add logging statements on some important auth providers operations.

Complete auth providers logging support will be merged from the
feature-astakos-authpolicies branch which also includes additional auth
providers improvements.

d443e1dd 03/07/2013 06:21 pm Stratos Psomadakis

Fix bugs in UserCache

Fix an infinite loop bug in UserCache.fetch_names(), and correct the
*-list commands to only call fetch_names(), when invoked with the
--displayname option.

e6c4bd78 03/07/2013 05:10 pm Christos Stavrakakis

Merge branch 'release-0.13' into develop

Conflicts:
snf-cyclades-app/synnefo/api/management/commands/cyclades-export-quota.py
snf-cyclades-app/synnefo/api/management/commands/network-list.py
snf-cyclades-app/synnefo/api/management/commands/server-inspect.py...

9e595d7f 03/07/2013 05:03 pm Christos Stavrakakis

Bump version

cb0c401a 03/07/2013 04:52 pm Giorgos Korfiatis

astakos-quota: allow syncing with --user

22a8a5e1 03/07/2013 04:40 pm Dimitris Aragiorgis

snf-deploy doc update

Change the commands. The latest version is:

snf-deploy vcluster image network dhcp create

snf-deploy prepare ns hosts check apt nfs

snf-deploy synnefo

snf-deploy backend create network storage

Signed-off-by: Dimitris Aragiorgis <>

88f4d3b3 03/07/2013 03:14 pm Georgios D. Tsoukalas

Add 'default' capacity to user-set-initial-quota

60c67b41 03/07/2013 02:07 pm Stratos Psomadakis

Fix log string format

5a5a1f65 03/07/2013 02:03 pm Stratos Psomadakis

Fix print alignment for snf-mange cmds

pprint_table misbehaved when handling unicode 'strings', breaking the
alignment of the output of several snf-manage cmds, and raising a
unicode encode exception, when printing non 'ascii' unicode strings.

Calculate correctly the max column width by applying len() directly to...

2b1e7b83 03/07/2013 02:03 pm Stratos Psomadakis

Add negative caching in ImageCache

Refs #3375

4500650c 03/07/2013 02:03 pm Stratos Psomadakis

Improve server-list usability

Refs #3375

8283d6c1 03/07/2013 02:03 pm Stratos Psomadakis

Improve perf for snf-manage cyclades commands

When the snf-manage {server, network}-list commands are invoked with the
--displayname option, batch the UUID-to-displayname requests to astakos,
instead of issuing a request for each (unique) UUID.

Refs #3375

f4366b6c 03/07/2013 02:03 pm Stratos Psomadakis

Correctly instantiate pithos backend pool

Plankton should explicitly pass quotaholder related args to the pithos
backend pool constructor (after the feature of deregistering images
without deleting them is implemented, plankton should only pass
quotaholder_enable=false to the constructor)....

7856a37a 03/07/2013 02:03 pm Stratos Psomadakis

pep8 fixes

9bd540f5 03/06/2013 08:04 pm Dimitris Aragiorgis

Some renaming in snf-deploy commands

Signed-off-by: Dimitris Aragiorgis <>

0c29b5ba 03/06/2013 08:04 pm Dimitris Aragiorgis

Add apt command in snf-deploy

Signed-off-by: Dimitris Aragiorgis <>

2bbf1544 03/06/2013 05:44 pm Georgios D. Tsoukalas

Fix UUID bug breaking image list and VM creation

latest_uuid(uuid) returned the latest version with the given uuid.
This is called from pithos backend method get_uuid(),
which is called from plankton backend method get_image().

For the use in get_image() the uuid alone is not enough,...

db8cfc97 03/06/2013 04:20 pm Giorgos Korfiatis

List quotas for a specified user

Refs #3389

9efc25a1 03/06/2013 03:26 pm Giorgos Korfiatis

Fix calculation of initial quotas

Also add all_quotas method in AstakosUser

Refs #3388

09a8fb8e 03/06/2013 02:27 pm Giorgos Korfiatis

Merge branch 'tmp-quota-opt2' into release-0.13

Refs #3388

Improve performance of quota operations

ad977592 03/06/2013 02:26 pm Giorgos Korfiatis

Rename option --force to --no-confirm for clarity

bb535968 03/06/2013 11:47 am Constantinos Venetsanopoulos

Major update of the snf-deploy.rst

9b1e6145 03/05/2013 10:22 pm Christos Stavrakakis

FIx bug in snf-burnin

"create_network" function of kamaki client, has default dchp=False.
However, "test_002_connect_to_network", expects to that created NICs
will have an IPv4 address, and "test_003a_setup_interface_A" tries
to configure eth1 to this IP, which fails....

b9f8f48a 03/05/2013 07:45 pm Kostas Papadimitriou

Astakos feedback form fixes

- Include uuid in email
- Response redirect after on successful form submission

f76c5e52 03/05/2013 07:45 pm Kostas Papadimitriou

Cyclades feedback email fixes

- Include user uuid and email as user info

95b36b00 03/05/2013 07:01 pm Christos Stavrakakis

Fix typo

0bfeb27e 03/05/2013 06:54 pm Christos Stavrakakis

Fix bug in snf-burnin about flavor names

Since version 0.13 flavors have been renamed in order to include the
disk_template. This commit fixes the corresponding check in snf-burnin.

210f4d0e 03/05/2013 06:09 pm Kostas Papadimitriou

Revert astakos authenticated api

Include groups, auth_token information in authenticated api response.
These attributes are required by cyclades helpdesk app.

6c45fa84 03/05/2013 06:09 pm Kostas Papadimitriou

Helpdesk app fixes

- Do not use autocomplete feature (usernames are now stored in astakos
db)
- Translate provided username to retrieve user uuid
- UI: Display network operstate in as badge. Hide deleted vms in nics
lists.

8d1636b5 03/05/2013 06:06 pm Giorgos Korfiatis

Set initial user quota from the command line

Refs #3373

Add option --set-capacity in user-set-initial-quota that sets
initial quota for a specified user/resource pair.

Importing from a file requires option --from-file.

7d36f85e 03/05/2013 05:09 pm Christos Stavrakakis

Add type assertions in pprint_table args

Add assertions about the types of "table" and "headers" arguments.

Refs #3365

da0b2fcf 03/05/2013 05:02 pm Georgios D. Tsoukalas

Fix default example urls in deb config files

97341ccb 03/05/2013 05:02 pm Georgios D. Tsoukalas

Fix serious inefficiency in pithos 0.13 migration

As was run on production during migration.

The migration looped over all rows (node, muser) from versions,
and update muser in each one.

However, the tuples (node, muser) are not unique in the table,
and more important, the muser values are much fewer than the nodes...

db4873f8 03/05/2013 04:56 pm Christos Stavrakakis

Fix TypeError in pprint_table

Convert all fields of table and headers to strings before counting their
length or right-aligning them.

Refs #3365

c219e23a 03/05/2013 04:21 pm Stratos Psomadakis

Remove snf-pithos-tools from $PROJECTS

56b9989a 03/05/2013 03:41 pm Giorgos Korfiatis

Add display options in user-list

Refs #3374

Add options --uuid, --displayname, --active, and --filter-by.
filter_results() is copied locally to avoid importing from cyclades.

2a6fc999 03/05/2013 01:47 pm Giorgos Korfiatis

Improve performance of user-list

Refs #3374

Prefetch auth providers for all users and store them
in a per-user dictionary.

997413f2 03/05/2013 09:46 am Kostas Papadimitriou

Classic signup form fix

Expand form content by default when classic module is the only one set.

55870b72 03/05/2013 09:35 am Kostas Papadimitriou

Fix astakos stale session messages

Consume session messages in get_services api response. When get_services is
loaded from an astakos page, messages should have already been consumed
in the html response. When get_services is loaded from another
domain/service we consume them in get_services view so that no stale...

398c10a2 03/05/2013 09:13 am Kostas Papadimitriou

New setting to redirect after successful login

redirect to ASTAKOS_LOGIN_SUCCESS_URL after successful login when no
next parameter is set. Defaults to /im/landing

01e056b7 03/04/2013 08:18 pm Kostas Papadimitriou

Change default TEMPLATE_DIRS setting

Refs #3363

/var/lib/* is commonly used to store application generated data and not
as a place to configure installed software.

For every Synnefo app, the administrator is free to install a modified
copy of a template under /etc/synnefo/templates....

aacb777e 03/04/2013 08:15 pm Kostas Papadimitriou

Reverse view typo

astakos.im.views.home does not exist

a5cb2e20 03/04/2013 03:18 pm Constantinos Venetsanopoulos

Make snf-pithos-tools obsolete

Move the directory under contrib and remove the corresponding
entry from `devflow.conf'.

f6d5af41 03/01/2013 08:10 pm Constantinos Venetsanopoulos

Fix a small typo in snf-deploy.rst

21d3d487 03/01/2013 07:56 pm Constantinos Venetsanopoulos

Update the intro section of the snf-deploy doc