summaryrefslogtreecommitdiff
path: root/quantumclient
Commit message (Collapse)AuthorAgeFilesLines
* Proxy find_resource_by_name_or_id from neutron client2.2.4.3Matt Riedemann2013-09-301-2/+3
| | | | | | | | | | | | | Change I95a351071e68dfc2d67f3895c87f45ad2221767f gutted quantumclient so it serves as a proxy for neutronclient, but in the process the static method find_resource_by_name_or_id was removed. Nova is using find_resource_by_name_or_id directly so it needs to still exist in quantumclient and proxy through to neutronclient. This is needed for the stable branches which are still using python-quantumclient. Closes-Bug: #1233264 Change-Id: I01b099aa34fedb63967517f288905321816eaf18
* add missing symbols for 3rd party libs2.2.4.2Mark McClain2013-09-272-0/+6
| | | | Change-Id: Id0f758b105b51059c6788afb92ac5840caff6102
* Remove quantumclient and proxy to neutronclient2.2.4.1Mark McClain2013-09-2537-6442/+19
| | | | Change-Id: I95a351071e68dfc2d67f3895c87f45ad2221767f
* Merge "Remove the monkey patching of _ into the builtins."2.2.3Jenkins2013-07-019-2/+8
|\
| * Remove the monkey patching of _ into the builtins.Alex Gaynor2013-06-149-2/+8
| | | | | | | | | | | | | | | | Previous _ was monkey patched into builtins whenever certain modules were imported. This removes that and simply imports it when it is needed. Change-Id: I8b7cdc7a8da21ed3e8bc69b18414dfc89e8935b8
* | Merge "Enables H404 check (multi line docstring) in flake8"Jenkins2013-07-016-289/+114
|\ \
| * | Enables H404 check (multi line docstring) in flake8Akihiro MOTOKI2013-06-176-289/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit ensures docstring follows the docstring convention. Also enables H301 (one import per line) in flake8. There is already no violation the source codes. Change-Id: Icf6ce5bae40b2e6492c060a28587d825a1837b43
* | | Merge "Allow subnet name in lb-vip-create and lb-pool-create"Jenkins2013-06-292-2/+8
|\ \ \
| * | | Allow subnet name in lb-vip-create and lb-pool-createAkihiro MOTOKI2013-06-162-2/+8
| |/ / | | | | | | | | | | | | | | | Fix bug 1168998 Change-Id: I25bf357d069b99db467db43900d293f30c2a7d30
* | | Merge "Support router-interface-add/delete by port_id"Jenkins2013-06-291-28/+51
|\ \ \
| * | | Support router-interface-add/delete by port_idAkihiro MOTOKI2013-06-171-28/+51
| |/ / | | | | | | | | | | | | | | | Fixes bug 1061638 Change-Id: Ie36126a38627a6707e82116fb6b7bd97755f8fd0
* | | Merge "Fix mocking of HTTPClient.request() method."Jenkins2013-06-211-4/+8
|\ \ \
| * | | Fix mocking of HTTPClient.request() method.Roman Podolyaka2013-06-181-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test_extend_list_exceed_max_uri_len test case mocks the request() method of HTTPClient class so that it raises the RequestURITooLong exception. But the real method can't possibly raise it (Client.do_request() does this instead). Mocks should emulate the behavior of methods they stub out and not change it in any way. Fixes bug 1192197. Change-Id: I62b2db111ef251f95eb9aa9c9cc00b53fdbccc68
* | | | Merge "Make --version option print a more detailed client version."Jenkins2013-06-212-1/+24
|\ \ \ \ | |/ / / |/| | |
| * | | Make --version option print a more detailed client version.Carl Baldwin2013-06-212-1/+24
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The python quantum client was printing "quantum 2.0" regardless of the version of the client. This seems to be the version of the API but people expect the version of the client to be printed. I looked at the implementation of --version in nova and keystone. The one in keystone worked and was fairly straight-forward utilizing code from the pbr package. I added this code to version.py rather than __init__.py. Change-Id: I53264b454eb16d5c294ad40ab6494387637950db Fixes: Bug #1190652
* | | Merge "Add metavar for --fixed-ip"Jenkins2013-06-171-1/+1
|\ \ \ | |_|/ |/| |
| * | Add metavar for --fixed-iparosen2013-06-101-1/+1
| |/ | | | | | | | | | | | | | | | | This patch adds a metavar for the --fixed-ip option so that it's more clear that the user needs to pass in ip_address=IP_ADDR. Fixes bug 1188889 Change-Id: I66efd444a2df52603f124637072f194497e241e2
* | Remove class-based import in the code repoAkihiro MOTOKI2013-06-1310-77/+51
|/ | | | | | | | Fixes bug 1167901 This commit also removes backslashes for line break. Change-Id: Id26fdfd2af4862652d7270aec132d40662efeb96
* Merge "Set default columns in ext-list"Jenkins2013-06-0511-75/+14
|\
| * Set default columns in ext-listAkihiro MOTOKI2013-05-2711-75/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously ext-list does not inherits ListCommand base class for listing and cannot specify columns to display. This commit changes ext-list to use ListCommand and adds a unit test for extensions. This also changes the default value of _formatters in ListCommand to {}. By this subclasses no longer override _formatters unless required. Fixes bug 1161866 Change-Id: Ifd9ab54d4e84a2b7a1d7eecd67f6270ec643db1d
* | Merge "CLI support for disabling SNAT"Jenkins2013-06-021-2/+7
|\ \ | |/ |/|
| * CLI support for disabling SNATSalvatore Orlando2013-05-161-2/+7
| | | | | | | | | | | | | | | | blueprint l3-ext-gw-modes Adds the --disable-snat option to the router-gateway-set command Change-Id: I1e6e339e3332d7073f761f407318811f22d283b1
* | Merge "Migrate to pbr."Jenkins2013-05-251-366/+0
|\ \
| * | Migrate to pbr.Clark Boylan2013-05-241-366/+0
| |/ | | | | | | | | | | Fixes bug 1179007 Change-Id: I6d7a6b7c85361e1568719ad11035158f4f6d9b35
* | Merge "Avoid error 414 when retrieving subnet cidrs for ListNetworks"Jenkins2013-05-224-3/+44
|\ \
| * | Avoid error 414 when retrieving subnet cidrs for ListNetworksSalvatore Orlando2013-05-034-3/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 1172537 In order to avoif 414 the list subnet requests will be split in multiple requests. The total URI len for each of these requests will be lower than 8K (the default maximum for eventlet.wsgi.server). The patch tries to submit a single request, and if the URI is too long an exception is raised before the request is sent over the wire; the exception handler will split the subnet id list, and submit the new requests. This patch does not address the case in which the server is configured with a maximum URI length different from 8K. Change-Id: Ia2414cd5374a91d3d12215807037a5d46b836ad6
* | | Merge "Add update method of security group name and description"Jenkins2013-05-223-0/+35
|\ \ \
| * | | Add update method of security group name and descriptionZhenguo Niu2013-05-153-0/+35
| | |/ | |/| | | | | | | | | | | | | | | | | | | make it possible to edit the name and description of security groups. Fixes: bug #918393 Change-Id: I7b9dd3f9ad2f59aee1b37e06350ce8f5e3a40f64
* | | Allow the HTTPClient consumer to pass endpoint_type.Carl Baldwin2013-05-215-6/+34
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes the default behavior of the client. It will now choose publicURL by default rather than adminURL. Now allows the consumer to pass adminURL, internalURL or some other endpoint type when constructing a Client to override this default behavior. Adds --endpoint-type option to the shell client. Defaults to the environment variable OS_ENDPOINT_TYPE or publicURL. This was patterned after the same option in the Nova client. Adds a new exception type to handle the case where a suitable endpoint type is not found in the catalog. Without this, the exception encountered is a KeyError that was not clearly reported to the caller of the quantum command line. Change-Id: Iaffcaff291d433a605d8379dc89c1308096d36c2 Fixes: Bug #1176197
* | Merge "Change variable name of admin_state_down to admin_state"Jenkins2013-05-108-21/+20
|\ \ | |/ |/|
| * Change variable name of admin_state_down to admin_stateAkihiro MOTOKI2013-04-088-21/+20
| | | | | | | | | | | | | | | | | | | | | | | | It is confusing that admin_state_down=False means admin-state is DOWN. It is easy to understand if the variable name matches its value. Also removes 'default=xxx' from options with store_true/false action since store_true/false sets the default value implicitly. Fixes bug 1161853 Change-Id: I3146dd8974990c94e5f9b3b5bf6a8b28a245d64e
* | Fix a comment formatting to make pep8 test passRoman Podolyaka2013-04-191-6/+6
| | | | | | | | | | | | | | | | | | | | New version of pyflakes does checking of doctests. We have a comment that looks like a doctest, but in fact it's not. This makes pep8 test fail. Fixes bug 1170639. Change-Id: Iee4f1bb8fd8284c6d1bb0111e23a61f434f3f457
* | Enable automatic validation of many HACKING rules.Maru Newby2013-04-0812-24/+30
| | | | | | | | | | | | | | | | | | | | * Add hacking to the tox build - a set of flake8 plugins that perform automatic validation of many HACKING.rst rules. * This patch configures hacking in the tox build and performs the mechanical cleanup required to allow the checks to pass. * See https://pypi.python.org/pypi/hacking Change-Id: Ib41313b5aae991e6ffef2a89dd69e83985bdc36d
* | Merge "Fix xml request doesn't work with unicode"Jenkins2013-04-088-30/+250
|\ \
| * | Fix xml request doesn't work with unicodeHe Jie Xu2013-04-078-30/+250
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix bug 1160704 * httplib2 doesn't work with unicode url and params. So encode all unicode to utf-8 before request. * Fix xml serializer doesn't work with unicode * Decode command argument to unicode in main function * Exception's message maybe include unicode, decode message to unicode before logging or print. * Sync the changing of serializer/deserilizer's code with quantum server code https://review.openstack.org/#/c/25482/ https://review.openstack.org/#/c/25046/ https://review.openstack.org/#/c/21410/ * Enable xml test Change-Id: Ib140e34d54cc916e2ea172e4bad9e4a77388723a
* | Add custom TableFormater for keep same empty list behavior as prettytable 0.6He Jie Xu2013-04-081-0/+19
|/ | | | | | | | Fix bug 1165962 And upgrade cliff to 1.3.2, because cliff 1.3.1 depends on prettytable<0.7 Change-Id: I6b38a2d77f6b9bf88d6d64f6c02b98b6c21fda3a
* Switch to flake8 from pep8.Maru Newby2013-04-053-3/+0
| | | | | | | | | * flake8 supports more checks than pep8 (e.g. detection of unused imports and variables), and has an extension mechanism. A plugin to support automatic HACKING validation is planned. * See: http://flake8.readthedocs.org/ Change-Id: I1cba551fadf87f3dbc40a002736c1009e7b9d5b5
* Merge "Reordering of optional and required args in lbaas commands help"Jenkins2013-04-042-17/+17
|\
| * Reordering of optional and required args in lbaas commands helpIlya Shakhat2013-03-212-17/+17
| | | | | | | | | | | | | | | | | | In help info required args are changed to go after optional. The change affects 'lb-healthmonitor-create' and 'lb-member-create' commands. Fixes bug 1157502 Change-Id: I5bb2337796c8b725333ed23a662061a4f276985c
* | Merge "Move tests to project root"Jenkins2013-04-0421-3705/+0
|\ \
| * | Move tests to project rootAlessio Ababilov2013-04-0121-3705/+0
| | | | | | | | | | | | | | | | | | Implements: blueprint tests-in-root Change-Id: I6a1dbc59720abcaafb6fd9b8585f3f6065dcde92
* | | Add public api to get authentication info from clientOleg Bondarev2013-04-022-0/+9
|/ / | | | | | | | | | | | | | | | | auth info (in particular token and endpoint_url) can be reused in different quantum client instances to reduce roundtrips with keystone fixes bug 1150051 Change-Id: I3b2f23f364099bdb08992130d5edb87222e8d387
* | Merge "Handle auth_token and endpoint_url if passed to the http client ↵2.2.1Jenkins2013-03-292-30/+74
|\ \ | | | | | | | | | constructor"
| * | Handle auth_token and endpoint_url if passed to the http client constructorOleg Bondarev2013-03-262-30/+74
| | | | | | | | | | | | | | | | | | Fixes bug 1152427 Change-Id: Ic7811d928fd00cde0a72f451b5ede8351092a54c
* | | Merge "Add exception & gettextutils to openstack.common"Jenkins2013-03-272-0/+175
|\ \ \
| * | | Add exception & gettextutils to openstack.commonRoman Podolyaka2013-03-222-0/+175
| | |/ | |/| | | | | | | | | | | | | These 2 modules are useful for cleaning up of the exceptions hierarchy. Change-Id: I0bb84e1969523be2eea077711acc5702bc63b023
* | | Merge "Don't query the agent with name"Jenkins2013-03-271-0/+1
|\ \ \
| * | | Don't query the agent with namegongysh2013-03-261-0/+1
| | |/ | |/| | | | | | | | | | | | | Bug #1160332 Change-Id: I4da1df900ff29f75e11b91186200d7841602bff4
* | | Update --remote-group-id metavar to REMOTE_GROUPAaron Rosen2013-03-261-1/+1
|/ / | | | | | | | | | | | | | | The metavar value for --remote-group-id was left out in the patch that renamed source_(group_id|ip_prefix) to remote. This patch renames this instance of SOURCE to REMOTE. Change-Id: I99d538e1cdc0b29e62b499c9c8ba8b3a31d77f7a
* | remove remainder argumentgongysh2013-03-262-23/+16
| | | | | | | | | | | | Bug #1160203 Change-Id: I01c6aed18ccd7fe61a5ea4562c79d47222175147