cloudstack-cloudmonkey.git
13 months agocloudmonkey: update precache against latest CloudStack master master
Rohit Yadav [Sun, 20 Nov 2016 09:01:35 +0000 (14:31 +0530)] 
cloudmonkey: update precache against latest CloudStack master

This includes 542 APIs discovered by cloudmonkey caching system

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
18 months agoMerge pull request #13 from phillipkent/fix_bug_windows_readline 5.3.3
Rohit Yadav [Fri, 15 Jul 2016 11:16:05 +0000 (16:46 +0530)] 
Merge pull request #13 from phillipkent/fix_bug_windows_readline

fix bug in using readline in WindowsI found a bug with use of 'readline' for Python 2.7 on Windows 7. Cloudmonkey fails to run with this error:

File c:\python27\lib\site-packages\cloudmonkey\cloudmonkey.py  line 70 module>
            If libedit in readline.__doc__
TypeError:  argument of type NoneType is not iterable

It requires modification of cloudmonkey.py at line 70.

The error and fix are the same as reported here:
http://bugs.python.org/issue18852
https://hg.python.org/cpython/rev/3070fdd58645

Note: I haven't tested this for Cloudmonkey in other Windows versions, or other Python versions.

* pr/13:
  fix bug in using readline in Windows

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
20 months agofix bug in using readline in Windows 13/head
Phillip Kent [Tue, 26 Apr 2016 10:21:01 +0000 (11:21 +0100)] 
fix bug in using readline in Windows

21 months agoMerge pull request #11 from phillipkent/fix_urllib_quote_plus
Rohit Yadav [Thu, 7 Apr 2016 11:29:12 +0000 (16:59 +0530)] 
Merge pull request #11 from phillipkent/fix_urllib_quote_plus

Update requester.pyurllib.quote_plus() requires the option safe="*" (that is, the * character is not encoded) to be consistent with CloudStack's internal encoder/decoder. Without this, API calls containing the * character will fail API authentication.

* pr/11:
  Update requester.py

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
23 months agoREADME: add pip install method using git repo
Rohit Yadav [Wed, 10 Feb 2016 21:08:47 +0000 (22:08 +0100)] 
README: add pip install method using git repo

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoMerge pull request #12 from 'waegemae/master'
Rohit Yadav [Tue, 19 Jan 2016 14:47:59 +0000 (15:47 +0100)] 
Merge pull request #12 from 'waegemae/master'

Allow 'sync' as a verb without overriding the cloudmonkey sync implementation

BUG-ID: CLOUDSTACK-9233
Reviewed-by: Frank Maximus frank.maximus@nuagenetworks.net
Reported-by :Eric Waegeman eric.waegeman@nuagenetworks.net

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoCHANGES: update changes file
Rohit Yadav [Tue, 19 Jan 2016 14:27:23 +0000 (15:27 +0100)] 
CHANGES: update changes file

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: print csv rows based on what's available
Rohit Yadav [Tue, 19 Jan 2016 14:24:01 +0000 (15:24 +0100)] 
cloudmonkey: print csv rows based on what's available

This fails if the row item has any additional key than the first row with error:
Error on parsing and printing dict contains fields not in fieldnames

The fix is to start with an empty dictionary fill it based on known keys and
then ask csv to print that row

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: manually print csv header
Rohit Yadav [Tue, 19 Jan 2016 14:22:22 +0000 (15:22 +0100)] 
cloudmonkey: manually print csv header

Python 2.6 and below don't have 'writeheader' method, so simply
print the header manually

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoSummary: Allow 'sync' as a verb without overriding the cloudmonkey sync implementation 12/head
Eric Waegeman [Wed, 13 Jan 2016 14:48:38 +0000 (15:48 +0100)] 
Summary: Allow 'sync' as a verb without overriding the cloudmonkey sync implementation

BUG-ID: CLOUDSTACK-9233
Reviewed-by: Frank Maximus <frank.maximus@nuagenetworks.net>
Reported-by :Eric Waegeman <eric.waegeman@nuagenetworks.net>

2 years agocloudmonkey: return autocompletion suggestions sorted by name
Rohit Yadav [Tue, 12 Jan 2016 18:29:52 +0000 (23:59 +0530)] 
cloudmonkey: return autocompletion suggestions sorted by name

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: zsh styled history invocation using !
Rohit Yadav [Fri, 8 Jan 2016 16:56:11 +0000 (22:26 +0530)] 
cloudmonkey: zsh styled history invocation using !

- Can run historic command with history !<num> or just !<num> on the shell
- Instead of running the history command, print on prompt and waits for user
  action
- history c or history clear to clear history

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoUpdate requester.py 11/head
Phillip Kent [Sat, 19 Dec 2015 15:47:56 +0000 (15:47 +0000)] 
Update requester.py

urllib.quote_plus() requires the option safe="*" (that is, the * character is not encoded) to be consistent with CloudStack's internal encoder/decoder. Without this, API calls containing the * character will fail API authentication.

2 years agocloudmonkey: add new command history to see history
Rohit Yadav [Wed, 16 Dec 2015 11:18:03 +0000 (16:48 +0530)] 
cloudmonkey: add new command history to see history

Adds new cloudmonkey command 'history' to list history, clear history and
list last 'n' lines from the history

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoRevert "Fix some parameters are double encoded" 5.3.2
Rohit Yadav [Wed, 19 Aug 2015 08:59:05 +0000 (14:29 +0530)] 
Revert "Fix some parameters are double encoded"

This breaks API, api expects only single encoding. Tested against 4.5.1.

... "(UI uses javascript to encode on
the fly, see ui/scripts/accounts.js:1852), such as registerSSHKeyPair/publickey.
I did a quick search for other cases, bu there may be more parameters."

This reverts commit 6bd92395592c133a63b8087bf4acc9cb3a1aac0d.

2 years agoCHANGES: update changes since 5.3.1
Rohit Yadav [Fri, 14 Aug 2015 08:52:01 +0000 (14:22 +0530)] 
CHANGES: update changes since 5.3.1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: update precache
Rohit Yadav [Fri, 14 Aug 2015 08:47:07 +0000 (14:17 +0530)] 
cloudmonkey: update precache

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoCHANGES: update changelog wrt 5.3.2
Rohit Yadav [Tue, 11 Aug 2015 04:53:16 +0000 (10:23 +0530)] 
CHANGES: update changelog wrt 5.3.2

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoFIX responses /contain/ word "response", but may not exactly match
Nuno Tavares [Mon, 3 Aug 2015 09:06:23 +0000 (11:06 +0200)] 
FIX responses /contain/ word "response", but may not exactly match

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #8

2 years agorequester: handle error when no response is found in the API response
Rohit Yadav [Tue, 14 Jul 2015 07:53:23 +0000 (13:23 +0530)] 
requester: handle error when no response is found in the API response

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoremove whitespace. This close #7
pdion891 [Sat, 4 Jul 2015 12:31:42 +0000 (08:31 -0400)] 
remove whitespace. This close #7

2 years agoremove docker.io from image path, update doc
Pierre-Luc Dion [Tue, 30 Jun 2015 12:35:53 +0000 (08:35 -0400)] 
remove docker.io from image path, update doc

Signed-off-by: pdion891 <pdion891@apache.org>
2 years agocleanup, remove commented lines
Pierre-Luc Dion [Tue, 30 Jun 2015 12:35:27 +0000 (08:35 -0400)] 
cleanup, remove commented lines

Signed-off-by: pdion891 <pdion891@apache.org>
2 years agoUpdate contribution howto, add Docker howto
Pierre-Luc Dion [Mon, 29 Jun 2015 11:09:36 +0000 (07:09 -0400)] 
Update contribution howto, add Docker howto

Signed-off-by: pdion891 <pdion891@apache.org>
2 years agobuild cloudmonkey at docker build
Pierre-Luc Dion [Mon, 29 Jun 2015 10:57:54 +0000 (06:57 -0400)] 
build cloudmonkey at docker build

Signed-off-by: pdion891 <pdion891@apache.org>
2 years agoinitial Dockerization files
Pierre-Luc Dion [Sat, 20 Jun 2015 14:39:10 +0000 (10:39 -0400)] 
initial Dockerization files

Signed-off-by: pdion891 <pdion891@apache.org>
2 years agocloudmonkey: aggregate keys from response items to print table's header
Rohit Yadav [Mon, 29 Jun 2015 21:40:14 +0000 (23:40 +0200)] 
cloudmonkey: aggregate keys from response items to print table's header

In case a response item lacks sufficient keys, cloudmonkey's tabular output
would print multiple table headers. The fix finds superset of keys of the items
and prints it before proceeding. For items which lack a key, empty values are
printed

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: fix csv output to correctly output UTF8 strings
Rohit Yadav [Fri, 19 Jun 2015 12:56:20 +0000 (15:56 +0300)] 
cloudmonkey: fix csv output to correctly output UTF8 strings

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoCHANGES: add note on csv output display
Rohit Yadav [Fri, 5 Jun 2015 15:16:38 +0000 (17:16 +0200)] 
CHANGES: add note on csv output display

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: add a new output format CSV
Rohit Yadav [Fri, 5 Jun 2015 15:10:15 +0000 (17:10 +0200)] 
cloudmonkey: add a new output format CSV

With CSV, it's possible to now export CloudStack data to an excel sheet for
example :)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: pep8-tify code
Rohit Yadav [Fri, 22 May 2015 17:44:00 +0000 (18:44 +0100)] 
cloudmonkey: pep8-tify code

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoProvide signatureversion as config.option for backward compatibility;
Nuno Tavares [Fri, 22 May 2015 14:05:07 +0000 (16:05 +0200)] 
Provide signatureversion as config.option for backward compatibility;

Follow specification: only provide signatureversion=&expires= in URL if signatureversion=3
http://docs.cloudstack.apache.org/en/latest/dev.html?highlight=signatureversion

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #6

2 years agoFIX some parameters are double encoded (UI uses javascript to encode on the fly,...
Nuno Tavares [Fri, 22 May 2015 14:01:48 +0000 (16:01 +0200)] 
FIX some parameters are double encoded (UI uses javascript to encode on the fly, see ui/scripts/accounts.js:1852), such as registerSSHKeyPair/publickey. I did a quick search for other cases, bu there may be more parameters.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoFIX split for paramter=value where value could be anything. An example case where...
Nuno Tavares [Fri, 22 May 2015 14:00:43 +0000 (16:00 +0200)] 
FIX split for paramter=value where value could be anything. An example case where value can contain the "=" sign: registerSSHKeyPair (publickey)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: send better error messages if none if sent in headers
Rohit Yadav [Fri, 22 May 2015 09:18:53 +0000 (10:18 +0100)] 
cloudmonkey: send better error messages if none if sent in headers

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoIn the specific case of a "create networkoffering" with no services, the parameter...
Nuno Tavares [Fri, 15 May 2015 10:27:27 +0000 (12:27 +0200)] 
In the specific case of a "create networkoffering" with no services, the parameter 'supportedservices' gets stripped off because it's empty. However, the API requires it as mandatatory - and yes, the UI allows you to create a n.o. with no services.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This closes #4

2 years agoFix KeyError: 'TERM' when no TERM exist
Hiroshi Miura [Fri, 8 May 2015 06:42:53 +0000 (06:42 +0000)] 
Fix KeyError: 'TERM' when no TERM exist

- There is no TERM variable called from script
  in docker guest.
  It cause KeyError: 'TERM'.

This closes #3

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: bump up version to 5.3.2 for next release
Rohit Yadav [Thu, 23 Apr 2015 15:00:17 +0000 (17:00 +0200)] 
cloudmonkey: bump up version to 5.3.2 for next release

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoCLOUDSTACK-8396: Add a new XML display output mode
Rohit Yadav [Thu, 23 Apr 2015 14:53:44 +0000 (16:53 +0200)] 
CLOUDSTACK-8396: Add a new XML display output mode

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: for https requests use TLSv1
Rohit Yadav [Tue, 14 Apr 2015 09:11:14 +0000 (14:41 +0530)] 
cloudmonkey: for https requests use TLSv1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: update precache using 4.5 branch
Rohit Yadav [Tue, 31 Mar 2015 10:21:41 +0000 (15:51 +0530)] 
cloudmonkey: update precache using 4.5 branch

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: make code pep8 compliant
Rohit Yadav [Tue, 31 Mar 2015 10:16:11 +0000 (15:46 +0530)] 
cloudmonkey: make code pep8 compliant

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agorequester: unicode string improvements when printing spinner
Rohit Yadav [Thu, 5 Mar 2015 05:36:37 +0000 (11:06 +0530)] 
requester: unicode string improvements when printing spinner

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoMakefile: upgrade packages when installing
Rohit Yadav [Thu, 5 Mar 2015 05:05:59 +0000 (10:35 +0530)] 
Makefile: upgrade packages when installing

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoCHANGES: update changes for 5.3.1 5.3.1
Rohit Yadav [Thu, 26 Feb 2015 10:38:46 +0000 (16:08 +0530)] 
CHANGES: update changes for 5.3.1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agoCLOUDSTACK-8270: get rid of buggy dot completer, use spinning cursor to wait
Rohit Yadav [Fri, 20 Feb 2015 12:29:31 +0000 (17:59 +0530)] 
CLOUDSTACK-8270: get rid of buggy dot completer, use spinning cursor to wait

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: do a case-insensitive missing api arg search
Rohit Yadav [Tue, 3 Feb 2015 09:31:00 +0000 (15:01 +0530)] 
cloudmonkey: do a case-insensitive missing api arg search

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 years agocloudmonkey: don't break on command parsing, just print error and return
Rohit Yadav [Tue, 3 Feb 2015 07:02:53 +0000 (12:32 +0530)] 
cloudmonkey: don't break on command parsing, just print error and return

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: fix CHANGES with arg changes
Rohit Yadav [Mon, 12 Jan 2015 05:10:23 +0000 (10:40 +0530)] 
CHANGES: fix CHANGES with arg changes

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: in case both -b and -n are passed, block for async api
Rohit Yadav [Mon, 12 Jan 2015 05:08:30 +0000 (10:38 +0530)] 
cloudmonkey: in case both -b and -n are passed, block for async api

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: fix async api block/unblock options to be more intuitive
Rohit Yadav [Mon, 12 Jan 2015 05:04:29 +0000 (10:34 +0530)] 
cloudmonkey: fix async api block/unblock options to be more intuitive

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: print key when value is dictionary
Rohit Yadav [Thu, 8 Jan 2015 11:54:11 +0000 (17:24 +0530)] 
cloudmonkey: print key when value is dictionary

Thanks to Geoff for finding this, the output print method did not output
key in case the value is a dictionary object

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: change version to 5.3.1
Rohit Yadav [Mon, 15 Dec 2014 06:01:47 +0000 (11:31 +0530)] 
cloudmonkey: change version to 5.3.1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: make filtered output uniform across display outputs
Rohit Yadav [Thu, 11 Dec 2014 13:12:04 +0000 (18:42 +0530)] 
cloudmonkey: make filtered output uniform across display outputs

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: add -a or --async flag to let cloudstack not block on async apis
Rohit Yadav [Wed, 10 Dec 2014 17:04:21 +0000 (22:34 +0530)] 
cloudmonkey: add -a or --async flag to let cloudstack not block on async apis

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: fix server profile loading using -p flag
Rohit Yadav [Wed, 10 Dec 2014 16:45:42 +0000 (22:15 +0530)] 
cloudmonkey: fix server profile loading using -p flag

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: add -p option to allow overriding profile
Rohit Yadav [Wed, 10 Dec 2014 11:14:32 +0000 (16:44 +0530)] 
cloudmonkey: add -p option to allow overriding profile

- -p or --profile overrides current selected profile for cloudmonkey
- this won't write the new profile/selection to config thereby allowing many
  cloudmonkey instances run both in interpretor and bash modes with different
  profile sharing common ui and core config options

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: move to markdown format for Github friendly viewing 5.3
Rohit Yadav [Tue, 9 Dec 2014 12:59:14 +0000 (18:29 +0530)] 
CHANGES: move to markdown format for Github friendly viewing

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: add list of changes for 5.3.1
Rohit Yadav [Tue, 9 Dec 2014 12:55:14 +0000 (18:25 +0530)] 
CHANGES: add list of changes for 5.3.1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: don't output empty line after every output
Rohit Yadav [Tue, 9 Dec 2014 08:19:44 +0000 (13:49 +0530)] 
cloudmonkey: don't output empty line after every output

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: fix the weirdest readline import error ever
Rohit Yadav [Fri, 5 Dec 2014 08:19:48 +0000 (13:49 +0530)] 
cloudmonkey: fix the weirdest readline import error ever

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agorequester: pass verifysslcert option while user logs in
Rohit Yadav [Wed, 3 Dec 2014 17:39:49 +0000 (23:09 +0530)] 
requester: pass verifysslcert option while user logs in

Thanks to Yuri Kogun <ykogun@outlook.com> for reporting this issue on the
user ML.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: for account param use listAccounts
Rohit Yadav [Thu, 13 Nov 2014 22:20:37 +0000 (03:50 +0530)] 
cloudmonkey: for account param use listAccounts

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCLOUDSTACK-7935: keep colons in the request to ACS
Remi Bergsma [Tue, 18 Nov 2014 11:00:12 +0000 (12:00 +0100)] 
CLOUDSTACK-7935: keep colons in the request to ACS

ACS does not decode %3A to colon and thus some requests break
This closes #1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: autocomplete when cursor is not at the end, auto add space
Rohit Yadav [Wed, 12 Nov 2014 18:12:08 +0000 (23:42 +0530)] 
cloudmonkey: autocomplete when cursor is not at the end, auto add space

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: for username/password auth, have option to configure domain
Rohit Yadav [Wed, 12 Nov 2014 17:39:58 +0000 (23:09 +0530)] 
cloudmonkey: for username/password auth, have option to configure domain

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: Fix cloudmonkey command line arg cleaning 5.3.0
Rohit Yadav [Tue, 4 Nov 2014 13:01:43 +0000 (18:31 +0530)] 
cloudmonkey: Fix cloudmonkey command line arg cleaning

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agorequester: don't send out empty key/value args
Rohit Yadav [Tue, 4 Nov 2014 13:00:27 +0000 (18:30 +0530)] 
requester: don't send out empty key/value args

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: Add config 'verifysslcert' to enable/disable SSL cert checking
Rohit Yadav [Tue, 4 Nov 2014 11:15:21 +0000 (16:45 +0530)] 
cloudmonkey: Add config 'verifysslcert' to enable/disable SSL cert checking

This config is per server profile basis, default is true

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: fix set command issue, close stdout/err when exiting cloudmonkey
Rohit Yadav [Mon, 3 Nov 2014 16:44:23 +0000 (22:14 +0530)] 
cloudmonkey: fix set command issue, close stdout/err when exiting cloudmonkey

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: fix error handling and unicode string conversions
Rohit Yadav [Sat, 1 Nov 2014 07:55:29 +0000 (13:25 +0530)] 
cloudmonkey: fix error handling and unicode string conversions

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: fix readline issue across OSX and Linux
Rohit Yadav [Fri, 31 Oct 2014 19:06:28 +0000 (00:36 +0530)] 
cloudmonkey: fix readline issue across OSX and Linux

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agorequester: better requests error handling
Rohit Yadav [Fri, 31 Oct 2014 16:52:26 +0000 (22:22 +0530)] 
requester: better requests error handling

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agorequester: cleanup url encoding, use requests, better error logging
Rohit Yadav [Fri, 31 Oct 2014 16:52:26 +0000 (22:22 +0530)] 
requester: cleanup url encoding, use requests, better error logging

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: Fix unicode and string handling in pipes and shell executions
Rohit Yadav [Fri, 31 Oct 2014 12:49:40 +0000 (18:19 +0530)] 
cloudmonkey: Fix unicode and string handling in pipes and shell executions

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: add Ctrl+R reverse search support back to OSX
Rohit Yadav [Fri, 31 Oct 2014 12:33:49 +0000 (18:03 +0530)] 
cloudmonkey: add Ctrl+R reverse search support back to OSX

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agorequester: fix unicode param encoding bug
Rohit Yadav [Fri, 31 Oct 2014 12:33:24 +0000 (18:03 +0530)] 
requester: fix unicode param encoding bug

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: duplicate filter break output, print using unique ones
Rohit Yadav [Fri, 31 Oct 2014 09:33:38 +0000 (15:03 +0530)] 
cloudmonkey: duplicate filter break output, print using unique ones

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agorequester: stderr and json loads fixes
Rohit Yadav [Fri, 31 Oct 2014 09:29:09 +0000 (14:59 +0530)] 
requester: stderr and json loads fixes

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoprinter: fix color printer rules to accommodate json output
Rohit Yadav [Fri, 31 Oct 2014 09:28:44 +0000 (14:58 +0530)] 
printer: fix color printer rules to accommodate json output

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: Feature and bugfixes updated for 5.3.0
Rohit Yadav [Fri, 31 Oct 2014 00:53:00 +0000 (06:23 +0530)] 
CHANGES: Feature and bugfixes updated for 5.3.0

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoprecache: updated new precache with response information for each API
Rohit Yadav [Fri, 31 Oct 2014 00:49:13 +0000 (06:19 +0530)] 
precache: updated new precache with response information for each API

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: autocomplete filter options
Rohit Yadav [Fri, 31 Oct 2014 00:47:59 +0000 (06:17 +0530)] 
cloudmonkey: autocomplete filter options

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: add unicode support finally! :sunglasses:
Rohit Yadav [Thu, 30 Oct 2014 23:29:37 +0000 (04:59 +0530)] 
cloudmonkey: add unicode support finally! :sunglasses:

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agorequester: refactor code, make it unicode friendly
Rohit Yadav [Thu, 30 Oct 2014 20:25:43 +0000 (01:55 +0530)] 
requester: refactor code, make it unicode friendly

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agorequester: remove double URL encoding, use urllib.quote instead of quote_plus
Rohit Yadav [Thu, 30 Oct 2014 19:56:20 +0000 (01:26 +0530)] 
requester: remove double URL encoding, use urllib.quote instead of quote_plus

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoprecache: re-update precache against latest API changes
Rohit Yadav [Thu, 30 Oct 2014 19:25:52 +0000 (00:55 +0530)] 
precache: re-update precache against latest API changes

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: autocomplete true/false for boolean arg types
Rohit Yadav [Thu, 30 Oct 2014 14:17:51 +0000 (19:47 +0530)] 
cloudmonkey: autocomplete true/false for boolean arg types

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: mask sensitive data, tell users that it's hidden data
Rohit Yadav [Thu, 30 Oct 2014 10:39:58 +0000 (16:09 +0530)] 
cloudmonkey: mask sensitive data, tell users that it's hidden data

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: show partial chars when printing current profile when set is called
Rohit Yadav [Thu, 30 Oct 2014 10:34:06 +0000 (16:04 +0530)] 
cloudmonkey: show partial chars when printing current profile when set is called

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: update changes for version 5.3.0
Rohit Yadav [Thu, 30 Oct 2014 10:20:51 +0000 (15:50 +0530)] 
CHANGES: update changes for version 5.3.0

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCLOUDSTACK-7669: Return non-zero exit code during single command run on shell
Rohit Yadav [Thu, 30 Oct 2014 10:06:50 +0000 (15:36 +0530)] 
CLOUDSTACK-7669: Return non-zero exit code during single command run on shell

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: update precached api dictionary
Rohit Yadav [Thu, 30 Oct 2014 09:46:50 +0000 (15:16 +0530)] 
cloudmonkey: update precached api dictionary

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoconfig: from 5.3.0 set paramcompletion to true, it's good enough to use now
Rohit Yadav [Wed, 29 Oct 2014 19:14:40 +0000 (00:44 +0530)] 
config: from 5.3.0 set paramcompletion to true, it's good enough to use now

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: update param completion if any list API is called
Rohit Yadav [Wed, 29 Oct 2014 19:12:06 +0000 (00:42 +0530)] 
cloudmonkey: update param completion if any list API is called

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: Add info that automatic upgrades are possible since 5.0.0 release
Rohit Yadav [Wed, 29 Oct 2014 13:28:31 +0000 (18:58 +0530)] 
CHANGES: Add info that automatic upgrades are possible since 5.0.0 release

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoconfig: if profile is missing, use the default server profile name
Rohit Yadav [Wed, 29 Oct 2014 13:25:23 +0000 (18:55 +0530)] 
config: if profile is missing, use the default server profile name

This can happen in case a user is upgrading from older cloudmonkey release

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agoCHANGES: note changes since 5.2.0
Rohit Yadav [Wed, 29 Oct 2014 13:16:09 +0000 (18:46 +0530)] 
CHANGES: note changes since 5.2.0

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: scan though api result to print after uuids in completion options
Rohit Yadav [Wed, 29 Oct 2014 11:19:11 +0000 (16:49 +0530)] 
cloudmonkey: scan though api result to print after uuids in completion options

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
3 years agocloudmonkey: use list heuristic for own list verb api for both id and ids
Rohit Yadav [Wed, 29 Oct 2014 11:18:43 +0000 (16:48 +0530)] 
cloudmonkey: use list heuristic for own list verb api for both id and ids

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>