- 21 Mar, 2013 1 commit
-
-
Christos Stavrakakis authored
Until now, a server's public NetworkInterface was not created in the DB until the arrival of the message from Ganeti hooks. However, the IPv4 address of the NIC is reserved before sending the OP_INSTANCE_CREATE job to Ganeti. This drawback of this approach is that if the Ganeti hooks never run (building ERROR), Cyclades will never associate the IPv4 address with a machine and therefore this address will never be released. This commit fixes this issue by creating the VM's public NIC in DB when creating the server. Also the NetworkInterface model is extended with a 'state' field to indicate if the NIC is active or still building. Finally, the corresponding API calls are modified in order to return only 'ACTIVE' NICs.
-
- 20 Mar, 2013 3 commits
-
-
Christos Stavrakakis authored
Move UserCache from synnefo.management.common to synnefo.lib.astakos. Also, update ListCommand with 'astakos_url' and 'astakos_token' class attributes, which must be declared only when 'user_uuid_field' is used.
-
Christos Stavrakakis authored
-
Olga Brani authored
-
- 15 Mar, 2013 1 commit
-
-
Christos Stavrakakis authored
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: * snf-manage server-show 2 * snf-manage server-show snf-2
-
- 14 Mar, 2013 5 commits
-
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
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. Also, implement server-list, network-list, backend-list and flavor-list as subclasses of this command.
-
Christos Stavrakakis authored
Move cyclades functions that are useful for all managament commands, like pprint_table or parse_filters, to snf-webproject.
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
-
- 12 Mar, 2013 30 commits
-
-
Christos Stavrakakis authored
-
Christos Stavrakakis authored
-
Ilias Tsitsimpis authored
* Move retry decorator to utils module. * Rename exceptions to be more intuitive. * Add 403 Forbidden exception. * Move exceptions to errors class
-
Ilias Tsitsimpis authored
Refs: #3419
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
* AstakosClientEInvalid: Invalid X-Auth-Token, 401 * AstakosClientEMethod: Method not allowed, 400 * AstakosClientENotFound: Not Found, 404
-
Ilias Tsitsimpis authored
Log retries. Log hashed tokens.
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
Remove token argument from class initialization method and make it a mandatory argument to all the other class methods.
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
Never, ever log tokens
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
-
Ilias Tsitsimpis authored
The first unit test for _callAstakos function, checks the answer when there is no internet connection (should raise a socket exception).
-
Ilias Tsitsimpis authored
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.
-