kamaki
11 years agoAdd interactive shell help (2b continued)
Stavros Sachtouris [Mon, 26 Nov 2012 18:27:47 +0000 (20:27 +0200)]
Add interactive shell help (2b continued)

11 years agoFix sphinx auto-doc syntax warning
Stavros Sachtouris [Mon, 26 Nov 2012 12:12:26 +0000 (14:12 +0200)]
Fix sphinx auto-doc syntax warning

11 years agoDocument with client cli commands showcases
Stavros Sachtouris [Fri, 23 Nov 2012 17:25:45 +0000 (19:25 +0200)]
Document with client cli commands showcases

11 years agoDocument command specs and one-command interface
Stavros Sachtouris [Fri, 23 Nov 2012 16:33:23 +0000 (18:33 +0200)]
Document command specs and one-command interface

11 years agoFix image_cli properties bug
Stavros Sachtouris [Fri, 23 Nov 2012 13:46:12 +0000 (15:46 +0200)]
Fix image_cli properties bug

11 years agoQuick setup guide, remove empty lins in image list
Stavros Sachtouris [Fri, 23 Nov 2012 13:38:35 +0000 (15:38 +0200)]
Quick setup guide, remove empty lins in image list

11 years agoFix quoted-input bug in one-cmd v0.6.1
Stavros Sachtouris [Fri, 23 Nov 2012 10:39:37 +0000 (12:39 +0200)]
Fix quoted-input bug in one-cmd

11 years agoInitialize new documents in docs
Stavros Sachtouris [Fri, 23 Nov 2012 10:13:38 +0000 (12:13 +0200)]
Initialize new documents in docs

11 years agoExpand documentation
Stavros Sachtouris [Thu, 22 Nov 2012 16:22:59 +0000 (18:22 +0200)]
Expand documentation

11 years agoSphinx config file fixes
Kostas Papadimitriou [Thu, 22 Nov 2012 13:36:03 +0000 (15:36 +0200)]
Sphinx config file fixes

- proper path append
- check if snf-common is available

11 years agoFix some docs errors
Stavros Sachtouris [Thu, 22 Nov 2012 13:33:57 +0000 (15:33 +0200)]
Fix some docs errors

11 years agoFix local-path ref, undo register_cli syntax modif
Stavros Sachtouris [Thu, 22 Nov 2012 13:21:45 +0000 (15:21 +0200)]
Fix local-path ref, undo register_cli syntax modif

WAS: register <name> <location>
THEN: register <location> [name]
NOW: register <name> <location>

but can run with --update to update an existing image instead of
replacing it

11 years agoRemove forgoten test from image_cli
Stavros Sachtouris [Wed, 21 Nov 2012 12:35:57 +0000 (14:35 +0200)]
Remove forgoten test from image_cli

11 years agoUpdate version and README
Stavros Sachtouris [Wed, 21 Nov 2012 10:42:26 +0000 (12:42 +0200)]
Update version and README

11 years agoUpdate docs, fix bug when progress not installed
Stavros Sachtouris [Wed, 21 Nov 2012 10:39:52 +0000 (12:39 +0200)]
Update docs, fix bug when progress not installed

11 years agoMerge branch 'develop'
Stavros Sachtouris [Tue, 20 Nov 2012 17:03:43 +0000 (19:03 +0200)]
Merge branch 'develop'

11 years agoPretify print_items
Stavros Sachtouris [Tue, 20 Nov 2012 17:03:02 +0000 (19:03 +0200)]
Pretify print_items

11 years agoPrint id before other info in network_list
Stavros Sachtouris [Tue, 20 Nov 2012 16:25:24 +0000 (18:25 +0200)]
Print id before other info in network_list

11 years agoAdd --update functionality to image register ui
Stavros Sachtouris [Tue, 20 Nov 2012 16:17:44 +0000 (18:17 +0200)]
Add --update functionality to image register ui

11 years agoNew image method: reregister(location[, ...])
Stavros Sachtouris [Tue, 20 Nov 2012 16:07:16 +0000 (18:07 +0200)]
New image method: reregister(location[, ...])

11 years agoAdjust kamaki.clients unittesting
Stavros Sachtouris [Tue, 20 Nov 2012 13:58:29 +0000 (15:58 +0200)]
Adjust kamaki.clients unittesting

11 years agoMove split_line code to cli.utils
Stavros Sachtouris [Tue, 20 Nov 2012 12:13:42 +0000 (14:13 +0200)]
Move split_line code to cli.utils

11 years agoMatch more quoted text
Stavros Sachtouris [Tue, 20 Nov 2012 12:01:45 +0000 (14:01 +0200)]
Match more quoted text

Single quotes have now higher priority than double quotes
and they can be used together. E.g.

[server]: create 'Name "middle name" surname' 43 im@g31d5tr1ng

will push
    Name "middle name" surname
as the name of the VM to the server

11 years agoParse quoted strings in interactive shell
Stavros Sachtouris [Tue, 20 Nov 2012 11:15:09 +0000 (13:15 +0200)]
Parse quoted strings in interactive shell

11 years agoForgot smth
Stavros Sachtouris [Mon, 19 Nov 2012 16:26:28 +0000 (18:26 +0200)]
Forgot smth

11 years agoUnittest parallel server creation
Stavros Sachtouris [Mon, 19 Nov 2012 16:23:25 +0000 (18:23 +0200)]
Unittest parallel server creation

11 years agoFix config-forget bug
Stavros Sachtouris [Mon, 19 Nov 2012 14:42:58 +0000 (16:42 +0200)]
Fix config-forget bug

11 years agoUpgrade progress compatibility to 1.0.2
Stavros Sachtouris [Mon, 19 Nov 2012 12:01:54 +0000 (14:01 +0200)]
Upgrade progress compatibility to 1.0.2

New progress uses a different interface with start and finish methods
that they are now used

11 years agoReload config after config modifications in shell
Stavros Sachtouris [Fri, 16 Nov 2012 16:59:19 +0000 (18:59 +0200)]
Reload config after config modifications in shell

11 years agoThread limit can be set by user
Stavros Sachtouris [Fri, 16 Nov 2012 16:17:54 +0000 (18:17 +0200)]
Thread limit can be set by user

11 years agoGradual thread inc/decrease in up/download
Stavros Sachtouris [Fri, 16 Nov 2012 15:31:35 +0000 (17:31 +0200)]
Gradual thread inc/decrease in up/download

Thread inc/decrease is now generic for all clients that might need it
with the method _watch_thread_limit

Algorithm: set a small thread limit and when reached wait for active threads to
finish. Measure avg time. If avg time decreases, increase thread limit
If avg time increases, decrease thread limit.

11 years agoFix multi-cmd _best_match bug
Stavros Sachtouris [Fri, 16 Nov 2012 14:04:10 +0000 (16:04 +0200)]
Fix multi-cmd _best_match bug

11 years agoRevert "Add cli for quotaholder."
Giorgos Korfiatis [Fri, 16 Nov 2012 13:10:21 +0000 (15:10 +0200)]
Revert "Add cli for quotaholder."

This reverts commit d8a2b1c568dae513aa880435dfc976beefa7ba89.

11 years agoFix forgotten import
Stavros Sachtouris [Fri, 16 Nov 2012 12:14:40 +0000 (14:14 +0200)]
Fix forgotten import

11 years agoAvoid to many threads in upload
Stavros Sachtouris [Fri, 16 Nov 2012 12:10:35 +0000 (14:10 +0200)]
Avoid to many threads in upload

11 years agoAdd cli for quotaholder.
Giorgos Korfiatis [Fri, 16 Nov 2012 11:43:31 +0000 (13:43 +0200)]
Add cli for quotaholder.

11 years agoContext roll-back in case of exit
Stavros Sachtouris [Fri, 16 Nov 2012 10:00:58 +0000 (12:00 +0200)]
Context roll-back in case of exit

11 years agoComplete top-level commands from everywhere
Stavros Sachtouris [Thu, 15 Nov 2012 16:48:28 +0000 (18:48 +0200)]
Complete top-level commands from everywhere

Usage: in kamaki shell, from any context, user can write:

/<command> <subcmds... and params...>

11 years agoFix top-level from top-level call bug
Stavros Sachtouris [Thu, 15 Nov 2012 16:09:49 +0000 (18:09 +0200)]
Fix top-level from top-level call bug

Idea: in pre: add top level commands as /<command>
slightly different registration

11 years agoAccess top-level commands from anywhere in shell
Stavros Sachtouris [Thu, 15 Nov 2012 16:07:30 +0000 (18:07 +0200)]
Access top-level commands from anywhere in shell

Execs top-level commands but doesn't roll back correctly

11 years agoModify history commands
Stavros Sachtouris [Thu, 15 Nov 2012 12:27:08 +0000 (14:27 +0200)]
Modify history commands

11 years agoFix new deep-level bug in shell
Stavros Sachtouris [Thu, 15 Nov 2012 11:50:56 +0000 (13:50 +0200)]
Fix new deep-level bug in shell

11 years agoSTART FEAT. DEV. cmd accessibility in shell
Stavros Sachtouris [Wed, 14 Nov 2012 15:46:14 +0000 (17:46 +0200)]
START FEAT. DEV. cmd accessibility in shell

shell commands should be accessible from all contexts e.g.:
[kamaki] server   #new context
[server] /config list   #call command from top context
...
[server] ../config list   #call command from previous context

This feature will be developed in following commits

11 years agoUse CLIErrors in shell
Stavros Sachtouris [Wed, 14 Nov 2012 15:26:40 +0000 (17:26 +0200)]
Use CLIErrors in shell

11 years agoColors off if stdout is not a tty
Stavros Sachtouris [Wed, 14 Nov 2012 15:04:36 +0000 (17:04 +0200)]
Colors off if stdout is not a tty

11 years agoImprove print_list/dict
Stavros Sachtouris [Wed, 14 Nov 2012 15:01:59 +0000 (17:01 +0200)]
Improve print_list/dict

11 years agoApply total error handling
Stavros Sachtouris [Wed, 14 Nov 2012 13:10:29 +0000 (15:10 +0200)]
Apply total error handling

11 years agoColors are off by default
Stavros Sachtouris [Wed, 14 Nov 2012 12:14:18 +0000 (14:14 +0200)]
Colors are off by default

11 years agoComplete UI/cli interface refactoring, minor bugs
Stavros Sachtouris [Wed, 14 Nov 2012 11:38:03 +0000 (13:38 +0200)]
Complete UI/cli interface refactoring, minor bugs

11 years agoVarious configurations (not finished yet)
Stavros Sachtouris [Tue, 13 Nov 2012 17:02:40 +0000 (19:02 +0200)]
Various configurations (not finished yet)

11 years agoAdjust interactive shell to new kamaki order
Stavros Sachtouris [Tue, 13 Nov 2012 15:54:02 +0000 (17:54 +0200)]
Adjust interactive shell to new kamaki order

11 years agoComplete new structure in one command (exprmtal)
Stavros Sachtouris [Tue, 13 Nov 2012 12:52:47 +0000 (14:52 +0200)]
Complete new structure in one command (exprmtal)

11 years agoAllow clis to overide command load implementation
Stavros Sachtouris [Mon, 12 Nov 2012 17:19:05 +0000 (19:19 +0200)]
Allow clis to overide command load implementation

Still buggy and experimental, but if a cli don't use the command
decorator, but implement another way of loading class info to
a _commands list of CommandTrees, kamaki can still use this cli.

This will allow clis to extent CommandTrees in order to provide
commands and command informationon demmand (dynamically)

11 years agoPre-call parisng and errors, new cmd-spec system
Stavros Sachtouris [Fri, 9 Nov 2012 16:01:41 +0000 (18:01 +0200)]
Pre-call parisng and errors, new cmd-spec system

Test firsth in one-command enviroment
cmd-spec system has been initialized, but not finished

11 years agoStart refactoring main CLI
Stavros Sachtouris [Fri, 9 Nov 2012 13:45:27 +0000 (15:45 +0200)]
Start refactoring main CLI

Aims:
- cleaner cli load-point code
- move more argument logic to argument module
- move command loading to the seperate service cli modules:
    each command spec module will provide a mechanism for loading
    command interfaces (all of them or specific cmds)

11 years agoExtract json-encoded error info in clients
Stavros Sachtouris [Fri, 9 Nov 2012 11:44:58 +0000 (13:44 +0200)]
Extract json-encoded error info in clients

11 years agoMinor improvements to server_wait behavior
Stavros Sachtouris [Fri, 9 Nov 2012 11:11:47 +0000 (13:11 +0200)]
Minor improvements to server_wait behavior

11 years agoUpdate Pithos+ support documentation
Stavros Sachtouris [Thu, 8 Nov 2012 17:23:57 +0000 (19:23 +0200)]
Update Pithos+ support documentation

11 years agoFix bug with deep-pathed commands
Stavros Sachtouris [Thu, 8 Nov 2012 15:29:20 +0000 (17:29 +0200)]
Fix bug with deep-pathed commands

FEATURE: subcommands of a callable command are not allowed. e.g.:

if the following exist as callable commands:
cmd1_cmd2
cmd1_cmd2_cmd3

then cmd1_cmd2 is resolved, but cmd1_cmd2_cmd3 is not

UNFIXED: There is still a case of syntax-error or --help call where the best
possible help message is not resolved:

cmd1_cmd2_cmd3 where cmd1_cmd2 is not a command

11 years agoFix minor wait_server bug, discover a cli bug
Stavros Sachtouris [Thu, 8 Nov 2012 13:20:21 +0000 (15:20 +0200)]
Fix minor wait_server bug, discover a cli bug

CLI bug: deep-level commands malfunction

11 years agoNEW server method: wait_server + cli command
Stavros Sachtouris [Thu, 8 Nov 2012 12:48:27 +0000 (14:48 +0200)]
NEW server method: wait_server + cli command

wait for server to reach state (e.g. while building)

11 years agoModify KeyValueArgument and CmdConfigArgument
Stavros Sachtouris [Wed, 7 Nov 2012 14:26:56 +0000 (16:26 +0200)]
Modify KeyValueArgument and CmdConfigArgument

KeyValueArgument now accepts only one key=value pair but can be
repeated:
    --property key1=val1 --property key2=val2

CmdCondigArguemtn sets global prefix by default
    -o account=user@domain.org
is now equivalent to
    -o global.account=user@domain.org

11 years agoCopy os/users image tags at server_create
Stavros Sachtouris [Wed, 7 Nov 2012 13:19:28 +0000 (15:19 +0200)]
Copy os/users image tags at server_create

11 years agoEnhance confiug options documentation
Stavros Sachtouris [Wed, 7 Nov 2012 12:18:17 +0000 (14:18 +0200)]
Enhance confiug options documentation

11 years agoA little bit more error handling
Stavros Sachtouris [Tue, 6 Nov 2012 17:58:32 +0000 (19:58 +0200)]
A little bit more error handling

11 years agoHandle json-formated server error responses
Stavros Sachtouris [Tue, 6 Nov 2012 17:44:56 +0000 (19:44 +0200)]
Handle json-formated server error responses

11 years agoPropagate error handling corrections up to CLIs
Stavros Sachtouris [Tue, 6 Nov 2012 17:08:18 +0000 (19:08 +0200)]
Propagate error handling corrections up to CLIs

11 years agoRestore verbose and debug functionality in clients
Stavros Sachtouris [Tue, 6 Nov 2012 14:49:41 +0000 (16:49 +0200)]
Restore verbose and debug functionality in clients

11 years agoModernize clients and clients.connection error hdl
Stavros Sachtouris [Tue, 6 Nov 2012 14:34:56 +0000 (16:34 +0200)]
Modernize clients and clients.connection error hdl

11 years agoError handling reform start from connection
Stavros Sachtouris [Mon, 5 Nov 2012 17:38:05 +0000 (19:38 +0200)]
Error handling reform start from connection

11 years agoFix unresolved httplib request url - path issue
Stavros Sachtouris [Mon, 5 Nov 2012 17:05:53 +0000 (19:05 +0200)]
Fix unresolved httplib request url - path issue

minor unitest fixes

11 years agoRestore color dummys v0.6
Stavros Sachtouris [Mon, 5 Nov 2012 15:46:43 +0000 (17:46 +0200)]
Restore color dummys

11 years agoAdd object-version arg to store info
Stavros Sachtouris [Mon, 5 Nov 2012 14:53:39 +0000 (16:53 +0200)]
Add object-version arg to store info

11 years agoRemove sensitice info from tests
Stavros Sachtouris [Mon, 5 Nov 2012 14:44:56 +0000 (16:44 +0200)]
Remove sensitice info from tests

11 years agoMinor improvements in pithos unitesting
Stavros Sachtouris [Mon, 5 Nov 2012 14:35:59 +0000 (16:35 +0200)]
Minor improvements in pithos unitesting

11 years agotest pithos upload with binary random files
Stavros Sachtouris [Mon, 5 Nov 2012 14:04:24 +0000 (16:04 +0200)]
test pithos upload with binary random files

11 years agoSync progressbar to threads, adjust ctrl-c handler
Stavros Sachtouris [Mon, 5 Nov 2012 13:55:08 +0000 (15:55 +0200)]
Sync progressbar to threads, adjust ctrl-c handler

In pithos download/upload ctrl-c is caught when multithreading,
and wait for active threads to finish before exiting

11 years agoUse standard threading instead of gevent/greenlets
Stavros Sachtouris [Fri, 2 Nov 2012 17:28:22 +0000 (19:28 +0200)]
Use standard threading instead of gevent/greenlets

gevent depedency is not needed after that

11 years agoUpdate documentation
Stavros Sachtouris [Fri, 2 Nov 2012 15:10:11 +0000 (17:10 +0200)]
Update documentation

11 years agoMake all source pep8 compliant
Stavros Sachtouris [Fri, 2 Nov 2012 11:16:53 +0000 (13:16 +0200)]
Make all source pep8 compliant

11 years agopep8 kamaki.cli.commands
Stavros Sachtouris [Thu, 1 Nov 2012 13:20:14 +0000 (15:20 +0200)]
pep8 kamaki.cli.commands

11 years agopep8 part of kamaki (from root to cli)
Stavros Sachtouris [Wed, 31 Oct 2012 17:02:42 +0000 (19:02 +0200)]
pep8 part of kamaki (from root to cli)

11 years agoGet rid of old file
Stavros Sachtouris [Wed, 31 Oct 2012 16:06:16 +0000 (18:06 +0200)]
Get rid of old file

11 years agopep8 setup.py
Stavros Sachtouris [Wed, 31 Oct 2012 14:35:01 +0000 (16:35 +0200)]
pep8 setup.py

11 years agoIntriduce store cat to cli
Stavros Sachtouris [Wed, 31 Oct 2012 14:19:43 +0000 (16:19 +0200)]
Intriduce store cat to cli

cat prints a remote file to console
this used to be achieved by calling download with only one
parameter, which is not supported anymore

11 years agoRemove forgoten debug print message
Stavros Sachtouris [Wed, 31 Oct 2012 14:06:32 +0000 (16:06 +0200)]
Remove forgoten debug print message

11 years agoPropagate failed connection to server
Stavros Sachtouris [Wed, 31 Oct 2012 13:28:56 +0000 (15:28 +0200)]
Propagate failed connection to server

11 years agoMinor bugs
Stavros Sachtouris [Wed, 31 Oct 2012 11:16:26 +0000 (13:16 +0200)]
Minor bugs

11 years agoRemove sensitive info from code
Stavros Sachtouris [Wed, 31 Oct 2012 10:04:29 +0000 (12:04 +0200)]
Remove sensitive info from code

11 years agoRemove some merging trash
Stavros Sachtouris [Wed, 31 Oct 2012 09:55:45 +0000 (11:55 +0200)]
Remove some merging trash

11 years agoMerge branch 'master' of https://code.grnet.gr/git/kamaki
Stavros Sachtouris [Wed, 31 Oct 2012 09:50:40 +0000 (11:50 +0200)]
Merge branch 'master' of https://code.grnet.gr/git/kamaki

Conflicts:
kamaki/__init__.py
kamaki/cli.py
kamaki/clients/__init__.py
kamaki/clients/astakos.py
kamaki/clients/compute.py
kamaki/clients/cyclades.py
kamaki/clients/image.py
kamaki/clients/pithos.py
kamaki/clients/storage.py
kamaki/config.py
kamaki/utils.py
setup.py

11 years agoRemove too much progressbar warnings
Stavros Sachtouris [Tue, 30 Oct 2012 16:51:56 +0000 (18:51 +0200)]
Remove too much progressbar warnings

11 years agoMove progressbar check to ProgressBarArgument
Stavros Sachtouris [Tue, 30 Oct 2012 16:48:37 +0000 (18:48 +0200)]
Move progressbar check to ProgressBarArgument

11 years agoCatch progressbar missing in download
Stavros Sachtouris [Tue, 30 Oct 2012 16:42:34 +0000 (18:42 +0200)]
Catch progressbar missing in download

11 years agoDont create ProgressBar if progress not installed
Stavros Sachtouris [Tue, 30 Oct 2012 16:39:55 +0000 (18:39 +0200)]
Dont create ProgressBar if progress not installed

11 years agoCommit uncommited pithos_cli changes
Stavros Sachtouris [Tue, 30 Oct 2012 16:36:35 +0000 (18:36 +0200)]
Commit uncommited pithos_cli changes

11 years agoMake ansicollors and progressbar optional
Stavros Sachtouris [Tue, 30 Oct 2012 16:17:03 +0000 (18:17 +0200)]
Make ansicollors and progressbar optional

Actually, setuptools don't support "optional", so they are
just not installed

11 years agoRemove request depedancy
Stavros Sachtouris [Tue, 30 Oct 2012 16:11:17 +0000 (18:11 +0200)]
Remove request depedancy

11 years agoAdd snf-common dependency
Stavros Sachtouris [Tue, 30 Oct 2012 16:06:31 +0000 (18:06 +0200)]
Add snf-common dependency

11 years agoAlmost complete kamaki.client settings
Stavros Sachtouris [Tue, 30 Oct 2012 15:54:24 +0000 (17:54 +0200)]
Almost complete kamaki.client settings

There are some issues:
- in Pithos: big-file handling, binnary file up/download
- in Cyclades: some methods need extra access to be tested
- in Image: remove_members, list_shared not checked properly