463 Commits

Author SHA1 Message Date
Scott Moser
9c6a1ac205 do not require NOVA_VERSION in env, default to 1.1
fixes bug 920474.

the nova client was not defaulting to version 1.1 unless NOVA_VERSION was
set.  This makes version 1.1 the default if NOVA_VERSION is not set in the
environment.

It also makes shell.py usable from a git checkout as in:
  PYTHONPATH=$PWD python novaclient/shell.py image-list

Change-Id: I02b7e060d1c0694639fcb146a7394b92014c140b
2012-01-23 13:31:10 -05:00
Jenkins
94f18f953c Merge "Fix bad api call, 'migrate' is an action." 2012-01-18 06:29:01 +00:00
Anthony Young
2c6c34dd11 Add server.get_vnc_console functionality to python-novaclient
Change-Id: I8784161ba0ff5adff10045097ed691246bee6e63
2012-01-17 15:03:02 -08:00
François Charlier
4b9621cfae Fix bad api call, 'migrate' is an action.
'migrate' was not called the way it is defined in the Nova api now.

Fix bug 907547

Change-Id: I6f304809281e676c22f83492f9d0bb85e9528314
2012-01-17 11:23:30 +01:00
Rick Harris
559949c9b0 Adding rebuild/resize hooks.
References bug 917306

Change-Id: I6a65221b3bf218e631d74616c37fcdaf9bc16976
2012-01-17 08:25:30 +00:00
Jenkins
a2508aa920 Merge "Fix Quota ant SecurityGroup resources refreshing." 2012-01-17 00:21:17 +00:00
Jenkins
317803d245 Merge "Clean FloatingIPDNS resource" 2012-01-17 00:12:05 +00:00
Jenkins
764421b44b Merge "Get ImpLoader from ImpImporter for Py2.6" 2012-01-16 21:25:13 +00:00
jakedahn
d7fb1f33cc Implementing Floating Ip Pools.
See vishy's nova branch: https://review.openstack.org/#change,2892

Change-Id: I6a5bec55edd21f659674f478282e65fd6b1b0b1e
2012-01-10 16:24:43 -08:00
Rick Harris
149b248a27 Get ImpLoader from ImpImporter for Py2.6
Fixes bug 914476

Change-Id: I9fc8b89e66e8d8501262b3f93ce0b60470525426
2012-01-10 21:33:07 +00:00
Jenkins
c747f153ec Merge "PEP8 python-novaclient cleanup" 2012-01-10 12:51:13 +00:00
Jenkins
8651e97afa Merge "Added command-line interfaces for the floating ip DNS api to nova." 2012-01-09 21:49:53 +00:00
Rick Harris
269d43a38d Discover extensions via Python's import paths
Change-Id: I0f3b216737fad26157b20f0cf75c78108e4cfdbc
2012-01-06 16:37:28 -06:00
lzyeval
4ff27703d0 PEP8 python-novaclient cleanup
Fixes bug #911552

The None, True, and False values are singletons.

All variable *comparisons* to singletons should use 'is' or 'is not'.
All variable *evaluations* to boolean should use 'if' or 'if not'.
All Object type comparisons should use isinstance()
instead of comparing types directly

Change-Id: Ia5571e58e2662c652f0e996d8c1a1acb4531623d
2012-01-06 20:16:31 +08:00
Jenkins
138dad3992 Merge "Add tox.ini file." 2012-01-05 19:35:53 +00:00
Chris Behrens
20be4a0add show 409 responses
409s are getting eaten... and nova uses this to return error when not in
the correct state to do an operation.

Change-Id: I76e9e98a89deb19e6b8aa32426fa31d6d66b8fdd
2012-01-04 16:04:17 -08:00
Andrew Bogott
e98407272d Added command-line interfaces for the floating ip DNS api to nova.
For blueprint public-and-private-dns.

Change-Id: Idf89d532559c32cbaf015d17203ee927f18e985b
2012-01-04 12:02:20 -06:00
Jenkins
4c61a89457 Merge "Abstract Client building into novaclient.client" 2012-01-04 16:45:47 +00:00
François Charlier
d17505462d Fix Quota ant SecurityGroup resources refreshing.
The Quota and SecurityGroup resources were not refreshed correctly.

Change-Id: I5b0a9efc07bc7ef05673256df5785aca931f64d8
2012-01-04 16:08:18 +01:00
François Charlier
ee4696aaa1 Clean FloatingIPDNS resource
create() and get() are not needed here :
 - it's not the role of the resource to call 'create'.
 - 'get' is here to refresh the resource. There's no mean to retrieve
 for sure the resource (get by IP address *or* by name only).

Change-Id: I97f4c26264b4abd0c1c8cdd91acc23ab6d6d008e
2012-01-03 17:17:31 +01:00
Monty Taylor
c879ee8cc5 Install a good version of pip in the venv.
Change-Id: Ie318fa032fb6e88f250b1e67dbd903648cf8ea5b
2012-01-02 14:02:36 -08:00
Jenkins
b99d66d3ad Merge changes I4c483825,Iba6ef2c1
* changes:
  utils.find_resource fixes + fix for volumes
  Add list() method to ManagerWithFind
2011-12-31 00:09:33 +00:00
Monty Taylor
b921f21afe Add tox.ini file.
Adds support for using tox to do multi-version unittesting.

Change-Id: I4476c44dd99b22d6ef96696848363d994670bf7d
2011-12-30 14:54:19 -08:00
Jenkins
97d7b16f03 Merge "Fix typo in endpoint_name help string" 2011-12-30 18:38:25 +00:00
François Charlier
d18954f4a8 Add missing returns and remove superfluous ones
Some methods which should have returned  objects dit not return and some
methods which don't  return anything used return ... Fixed  all that and
added tests to detect two returns which were missing.

Fixes bug 892058

Change-Id: If59468cfe1c7b1ab74ed0bfc6f81590dfd5dd668
2011-12-30 17:40:02 +01:00
Julien Danjou
af7c33ec43 Fix typo in endpoint_name help string
Change-Id: Ibee3175b26af3eec033cdf2f35e49f268eef3796
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2011-12-30 17:24:52 +01:00
Jenkins
b8e6ec895e Merge "python-novaclient missing pep8 in pip-requires" 2011-12-29 22:43:04 +00:00
Andrew Bogott
c9d87f9bac Add the python api for floating IP DNS.
For blueprint public-and-private-dns.

Change-Id: I73d64f9e0ea6a1c913f427d1fd07b76d19e9f6a3
2011-12-29 16:22:25 -06:00
Brian Waldon
e0174b51bd Abstract Client building into novaclient.client
This prevents clients of the pythonic api from having to know the
internal module structure.

Change-Id: Idd5c522ac3ff6c2d7915f96ed327323ec83d54fc
2011-12-29 15:40:49 -05:00
Brian Waldon
90212e9317 Remove unused imports and fix NameError on exc
Change-Id: Ie35ccd7abaada74acb298ace97ae88eb0e0cce1e
2011-12-29 11:10:04 -05:00
Andrew Bogott
2438869655 Improve the test framework to handle urls with args.
Now a url like 'os-foo-bar/blah?arg1=apple&arg2=orange' will
invoke a fake function like 'os_foo_bar_blah' and receive
the arguments (arg1=apple, arg2=orange) as part of its
kwargs.

Change-Id: If2905ed0f335128ccd4100997354dfe12e0017fd
2011-12-28 17:42:12 -06:00
Jenkins
f849419ab2 Merge "Simplifying get_console_output client interface." 2011-12-28 23:24:20 +00:00
Jenkins
01a2b6ca5f Merge "Removing cache-busting query param (fresh)" 2011-12-28 23:20:11 +00:00
jakedahn
d2e054f07a Simplifying get_console_output client interface.
Now instead of doing server.get_console_output()[0]['output']
You can do: server.get_console_output()

Change-Id: Ic8a3f435fa0111feaa0d5cd42943dd2c7c243fb9
2011-12-28 15:12:37 -08:00
Brian Waldon
d7f04e19fe Removing cache-busting query param (fresh)
Change-Id: I9154baef778fd2790f4933918f3a48ec94fc7214
2011-12-28 17:12:43 -05:00
jakedahn
4d5946afab Adding return statement to get_console_output
fixes bug 909483

Change-Id: Ic5e425319f7fe97b6f04f324f085632147cf13d0
2011-12-28 13:46:34 -08:00
lzyeval
61fb88280a python-novaclient missing pep8 in pip-requires
Fixes bug #909210

Change-Id: I5be35665aa057997c7911aa903c4a123b8329111
2011-12-28 10:42:01 +08:00
Jenkins
eee43516b8 Merge "Allow to not specify image if block_device_mapping is set" 2011-12-27 20:09:25 +00:00
Julien Danjou
3758c260a0 utils.find_resource fixes + fix for volumes
Nova volumes do not have a name property but a displayName one, therefore we
modify find_resource() so it looks for this. Then, we modify the test suite
for utils.py so it uses the novaclient.base.ManagerWithFind class for its
FakeManager rather than implementing its own find() method. This way we are
sure that the utils.py functions work correctly with ManagerWithFind and its
way to search in objects list.

FakeResource class is now used, whereas it was not before.

Change-Id: I4c4838250e6987e05022e1607e8d099eb8fb7fff
Signed-off-by: Julien Danjou <julien@danjou.info>
2011-12-22 12:03:59 +01:00
Julien Danjou
3fcf4a1374 Add list() method to ManagerWithFind
ManagerWithFind.find() method wants to use self.list() but Manager does not
provides it. Therefore, it's better to implement it as an interface here,
and raise a NotImplementedError.

Change-Id: Iba6ef2c1f789c2eb12b210d42261d63796db3407
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2011-12-22 10:07:00 +01:00
Rick Harris
88bdfdd12f Extensions can now modify resources.
Change-Id: I0d9c1050428d0ccf2e2b18053d75e0465463c08b
2011-12-21 19:25:39 +00:00
Jesse Andrews
68d0abb061 more work towards standardize config
Change-Id: I63ca85c56a61b8412bdc8bf30d6a179b134faff4
blueprint: cli-auth
2011-12-21 09:59:53 -08:00
Julien Danjou
6ba0c64cc2 Allow to not specify image if block_device_mapping is set
Change-Id: Ibdd900264f2e80e9d9c04de6d3bcb60b546fa3f2
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2011-12-21 10:02:55 +01:00
Jake Dahn
26ba43db9d Adding support for the os-getConsoleOutput server action.
Change-Id: I8b4a82ba42e00e5b312d7cad79c2f9725c6b48a7
2011-12-20 15:39:28 -08:00
Jenkins
450952b598 Merge "Add 'discover' command for Keystone discovery and version listing" 2011-12-20 18:54:57 +00:00
Ziad Sawalha
49284dc5cd Add 'discover' command for Keystone discovery and version listing
Added @unauthenticated decorator to mark subcommands that do not
need authentication. And checks to skip authentication for these
commands.
Added novaclient.keystone to setup.py

Change-Id: Id2fd60af305c30a950bdbae8f897192bfae4d797
2011-12-20 12:33:50 -06:00
lzyeval
487032ae07 User friendly help message
Fixes bug #892066

Change-Id: Ibeb86c5a9ae0f1dcc313c77fdf923a2eb37de505
2011-12-20 13:50:13 +08:00
Jenkins
e20dcd8cd7 Merge "standardize environmental settings for cli auth" 2011-12-19 20:19:37 +00:00
Julien Danjou
1e8c0bfa3f Do no depends on argparse for Python >= 2.7
Python >= 2.7 has argparse has a builtin module, so there's no need to add
it to the this list of requirements.

Change-Id: I647cec70a564b1d184f0cb2aca6caf4d6478c403
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2011-12-19 17:25:48 +01:00
Jesse Andrews
95f277a09f standardize environmental settings for cli auth
a first pass at common configuration between cli tools
https://blueprints.launchpad.net/openstack-common/+spec/cli-auth

Change-Id: Ie1354268ef647fb265ad9f30e730ddcac990e7f7
2011-12-16 00:11:02 -08:00