Statistics
| Branch: | Tag: | Revision:

root / snf-common / synnefo / util @ ff5edb80

# Date Author Comment
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.

9c6d629f 02/19/2014 06:19 pm Giorgos Korfiatis

Remove keypath, use common dict operations instead

Replace get_path with dict indexing. Remove unused setting
`CYCLADES_CUSTOMIZE_SERVICES' that used set_path. Remove the util/keypath.py
module.

2a811e37 02/19/2014 06:19 pm Giorgos Korfiatis

Revert "common: Do not encode key paths as string"

This reverts commit b10f66b9a20fb9dca0a56c88d5d224f1e3fa25ea.

362dadaa 02/13/2014 03:19 pm Giorgos Korfiatis

astakos: Adapt to new project/app scheme

b10f66b9 02/10/2014 01:36 pm Giorgos Korfiatis

common: Do not encode key paths as string

Handle explicitly key paths as lists of keys. This allows the key
to be any python object, as is the case in python dicts.

Provide utility unpack() to convert from a string representation to
a list of keys. It assumes that a key is either a string or an integer...

91884d63 11/29/2013 02:26 pm Giorgos Korfiatis

Add some missing Copyright notices

Also add 2013 in package COPYRIGHT files.

3c98e3a5 11/22/2013 04:44 pm Giorgos Korfiatis

common: Support parsing, printing inf numbers

By convention, infinite is represented by 2**63-1, the max value for
a signed 64 bit field.

f8af937f 10/30/2013 03:38 pm Kostas Papadimitriou

common: Handle non existent entry point dependencies

1c1c2b9e 06/03/2013 04:11 pm Georgios D. Tsoukalas

common: add list index support in keypath util

b253c438 06/03/2013 11:50 am Georgios D. Tsoukalas

common: get/set/del path utility for nested dicts

44f510e1 05/22/2013 06:51 pm Giorgos Korfiatis

astakos: Support units in resource-related commands

Add library synnefo.util.units for parsing numerical values
with an optional unit suffix and printing integer values based
on a given style.

Styles `b', `kb', `mb', etc allow printing in the respective multiples...

1052bb2b 04/08/2013 11:07 am Christos Stavrakakis

Remove obsolete Ganeti RAPI client from snf-common

This Ganeti RAPI client has been moved to snf-cyclades-app.

d2b8ec7b 04/08/2013 11:07 am Christos Stavrakakis

Move common test code to snf_django.lib.testing

f09da76e 03/15/2013 07:49 pm Kostas Papadimitriou

Common synnefo testing utils lib

New synnefo.util.testing lib added. Currently including helper decorator and
context processor to override django settings.

dd1089b7 02/14/2013 04:27 pm Giorgos Korfiatis

udec: decode an object into a unicode object

9e20fcee 02/08/2013 11:53 am Christos Stavrakakis

Remove mac2eui64 dependency

Import mac2eui64 code which is already shipped under util/mac2eui64 instead
of shipping it as a seperate script.

74d988b0 02/01/2013 04:00 pm Christos Stavrakakis

pep8 fixes to snf-common

ef67f714 01/29/2013 06:19 pm Christos Stavrakakis

Grammar fix

3a6e0fd0 01/29/2013 11:26 am Georgios D. Tsoukalas

uenc: convert to repr(utf8) if encoding fails.

aff28f5f 01/25/2013 07:58 pm Georgios D. Tsoukalas

uenc: utility function for encoding unicode to str

1. Motivation.

Too often a programmer outputs an object that can either be str or
unicode. The default python encoding of 'ascii' cannot handle all of
unicode text, but this will not crash until such a text is encountered....

aaf73e65 01/25/2013 12:46 pm Georgios D. Tsoukalas

strbigdec: smart big decimal number-to-string

473e2b08 01/17/2013 04:37 pm Christos Stavrakakis

Remove devflow form build dependency

0e573e6b 10/05/2012 10:55 am Christos Stavrakakis

Restore Ganeti RAPI client to snf-common

Temporary commit in order to restore Ganeti RAPI client to snf-common
until snf-cyclades-app 0.11 is released.

3524241a 10/03/2012 12:22 pm Christos Stavrakakis

Pool Ganeti RAPI clients

- Move Ganeti RAPI client from snf-common to snf-cyclades-app/logic.
- Create GanetiRapiClientPool for pooling GanetiRapiClient objects
- Create context manager in db.models for pool handling
- Update code using the RAPI client

db2eb7c8 09/07/2012 05:36 pm Dimitris Aragiorgis

Remove add_reserved_ips from rapi client

In order to be compatible with grnet and upstream ganeti

Signed-off-by: Dimitris Aragiorgis <>

9ef880a4 09/07/2012 05:35 pm Dimitris Aragiorgis

Update rapi to reflect to the upstream ganeti

reserved_ips->add_reserved_ips
Remove Network*All()

Signed-off-by: Dimitris Aragiorgis <>

2adcd773 08/31/2012 04:47 pm Kostas Papadimitriou

Do not send reserved_ips argument

In rapi CreateNetwork method

76cc5746 08/06/2012 05:49 pm Kostas Papadimitriou

Include common date utc formatting methods

bedc4f11 07/23/2012 11:39 am Christos Stavrakakis

Fix bug in RAPI

None tags in gnt-network create does not validate.

78548bed 07/23/2012 11:36 am Christos Stavrakakis

Pass tags to ganeti CreateNetwork RAPI call

a3ad611d 06/01/2012 11:43 am Dimitris Aragiorgis

Import Ganeti v2.5 rapi client.

Import latest version of ganeti rapi client. Include rapi calls for
managing networks that also support chain-job.

Signed-off-by: Dimitris Aragiorgis <>

2035039b 02/24/2012 05:49 pm Giorgos Verigakis

Switch to the logging middleware

0fb30b27 02/23/2012 03:16 pm Kostas Papadimitriou

Fixed version extraction from git describe

Refs #2022

88506db0 02/14/2012 07:20 pm Kostas Papadimitriou

Updated changelogs for snf-common and snf-webproject

5c285c17 02/14/2012 02:19 pm Kostas Papadimitriou

Entry points utils improvements

- Skip entry points for python distributions names existing in
``SYNNEFO_EXCLUDE_PACKAGES`` environmental variable
- Avoid duplicate entries in list setting objects

9b59a383 01/20/2012 12:38 pm Kostas Papadimitriou

Include vcs information in version files

84e75610 01/19/2012 12:42 pm Kostas Papadimitriou

Improved get_component_version

first try to retrieve version from version module, fallback to
vcs_info

c5aecff5 01/19/2012 12:35 pm Kostas Papadimitriou

vcs_info change

added --tags in `git describe`

bed8ed73 01/18/2012 06:30 pm Kostas Papadimitriou

Added helper function to collect all default_settings

d9300506 01/18/2012 06:03 pm Kostas Papadimitriou

Remove commit id from vcs_version

07d104d8 01/13/2012 02:11 pm Kostas Papadimitriou

Improved packaging

- Improved automatic version tagging from git repo.
- Added auto generated synnefo.<package>.version module to contain each
package version.

2ce0636e 01/12/2012 03:06 pm Kostas Papadimitriou

Initial commit for snf-webproject

- new package snf-webproject
- moved basic django related settings in snf-webproject
- added new entry point utils to ease the extension mechanism of
snf-webproject (urlpatterns, middleware, static_files, installed_apps)...

cfcedbb1 01/09/2012 05:50 pm Kostas Papadimitriou

snf-common fixes

7fb619a0 01/09/2012 05:06 pm Kostas Papadimitriou

Added snf-common package

split out of some commonly used code in a seperate package