444 Commits

Author SHA1 Message Date
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
Jenkins
4c61a89457 Merge "Abstract Client building into novaclient.client" 2012-01-04 16:45:47 +00: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
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
Rick Harris
3661be6673 Removed v1.0 support.
Change-Id: I6850075a2ac0e1558aa94539e73f4fb939dfb318
2011-12-15 23:10:59 +00:00
Rick Harris
b3f48f7064 Making contrib a Python package
Change-Id: Ibfde2e5cbececeec0b6a17f7d71da207f582a5c7
2011-12-15 22:39:22 +00:00
Jenkins
82d3099a08 Merge "Adding extension framework." 2011-12-15 21:12:38 +00:00
Rick Harris
bb879dd10b Adding extension framework.
Change-Id: If882f7a822ef6b1e58666b3af6f7166ab0a230fe
2011-12-15 19:44:33 +00:00
Julien Danjou
50169b9017 Fix typo in README
Change-Id: If165635e3cf73488b305d0b2c4fc9515b7a0849f
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2011-12-15 11:59:12 +01:00
Brian Waldon
a905e5fe07 Accept 1 and 2 as version choices
- removes all unused imports
- update .gitignore with new venv path

Change-Id: I3e8199b72dc83268115133d7c73335ffb6060f9a
2011-12-14 14:44:26 -05:00
Josh Kearney
6509fe253f Add support for RAX authentication.
Change-Id: Ia9180a3919373d3ec2e794d4dffe21838b23fc95
2011-12-14 12:22:27 -06:00
Monty Taylor
1acbbb0c2d Align run_tests.sh with nova.
We need for run_tests.sh to accept the same inputs and outputs from a CI
perspective. In this case, the easiest way was just to port in run_test.py.
Additionally, we need with_venv.sh to exist.

Change-Id: I25e659ed796c8a70239aab610f5b014b35443b67
2011-12-14 10:31:42 -05:00
Thierry Carrez
ccb5f8f1b4 Switch versioning to common Nova versioning
Use "2012.1" as the version for python-novaclient, to align with
Nova common versioning (starting with Essex-2, python-novaclient
is shipped as a Nova project deliverable. Fixes bug 904182.

Change-Id: I85d742a346bbaae1dc92a476c140f7f862a0828c
essex-2
2011-12-14 11:24:27 +01:00
Julien Danjou
b45ea3ac45 Fix PEP8 error
Change-Id: Ib8f4027af6f0583c60ca937328cc84a34909b4a4
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2011-12-13 17:36:08 +01:00
Monty Taylor
f737a8c3bb Add MANIFEST.in and setup.cfg back.
These files are actually needed - without MANIFEST.in, files are missing
from the source tarball which is used in debian packaging. setup.cfg is
needed for configuration of the sphinx doc build commands.

Additionally, I added listings for the other files in the root to
MANIFEST.in so that the source tarball would be complete.

Change-Id: Ia0f281663b58baaf2ee23f627d4b1887d0eddfe9
2011-12-09 13:38:23 -08:00
Brian Waldon
959c44ff59 Adding 'absolute-limits' and 'rate-limits'
Change-Id: Ie1dff62f3a3dd74e96c8cad7c079b7378d25ae46
2011-12-09 14:19:24 -05:00
Jenkins
11a4ecfe44 Merge "Fixing all remaining pep8 errors" 2011-12-07 20:07:27 +00:00
Brian Waldon
596eb3c0a5 Fixing all remaining pep8 errors
Change-Id: Iaf50bce4a6d458b37bc5e790b7d3ee56085c3e36
2011-12-07 14:37:29 -05:00
Brian Waldon
578fc1cb72 Clean up image-list cli command
- properly determine what server an image was created from
- remove mapping of server id to name in image-list
- remove an extra image list query in imgae-list

Change-Id: Ib7c8fd784d21e658cb57dd9f9f2cd39e1cb11121
2011-12-07 14:18:33 -05:00
Brian Waldon
f866c6ec3f Clean up image-show
- parse server entity to just an id
- parse metadata out into separate rows

Change-Id: I8927b148714a7f5ed64bbb74bd79193e258cb34d
2011-12-07 13:22:45 -05:00
Lorin Hochstein
9067f26077 Updated README.rst
- Changed link from Rackspace API docs to OpenStack API docs
- Fixed Github link
- Added Launchpad link
- Added Gerrit link

Change-Id: I0494e4c4a8722c182c63515cb6079d2c1557b52f
2011-12-01 22:14:12 -05:00
Aaron Lee
b61a8d8c24 Converting rxtx_cap and rxtx_quota to rxtx_factor
And adding myself to AUTHORS

Change-Id: I88d3d4c290ab883cf52945edeec62acbee3761d0
2011-12-01 11:16:43 -06:00
Kiall Mac Innes
2f49282bd0 Gracefully handle failure to cache UUID's. Bug #897885.
Change-Id: I2ef58a218277b2a62c0e24c907250421dccffe9a
2011-11-29 21:55:43 +00:00