Commit Graph

227 Commits

Author SHA1 Message Date
OpenDev Sysadmins c7bd5c77e7 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:44:46 +00:00
Matt Riedemann c3608eec8e Proxy find_resource_by_name_or_id from neutron client
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
2013-09-30 09:37:49 -07:00
Mark McClain a4cc81bce4 add missing symbols for 3rd party libs
Change-Id: Id0f758b105b51059c6788afb92ac5840caff6102
2013-09-27 15:25:34 -04:00
Mark McClain cbb83121c0 Remove quantumclient and proxy to neutronclient
Change-Id: I95a351071e68dfc2d67f3895c87f45ad2221767f
2013-09-25 19:38:14 -04:00
Jenkins 8ed38707b1 Merge "Remove the monkey patching of _ into the builtins." 2013-07-01 19:42:23 +00:00
Jenkins 20b5770d93 Merge "Enables H404 check (multi line docstring) in flake8" 2013-07-01 19:38:03 +00:00
Jenkins 8218cd1f26 Merge "Allow subnet name in lb-vip-create and lb-pool-create" 2013-06-29 07:12:42 +00:00
Jenkins de986451c7 Merge "Support router-interface-add/delete by port_id" 2013-06-29 07:12:41 +00:00
Chuck Short ca7fb4b26e python3: Introduce py33 to tox.ini
Introduce py33 to tox.ini to make testing with
python3 easier.

Change-Id: Id50ca397612d4948325a0ad0f39451a16b86d5bd
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-06-21 18:30:54 +00:00
Jenkins 418fdf8988 Merge "Fix mocking of HTTPClient.request() method." 2013-06-21 15:22:34 +00:00
Jenkins d1c93e5daf Merge "Make --version option print a more detailed client version." 2013-06-21 15:21:57 +00:00
Carl Baldwin 9389b782a9 Make --version option print a more detailed client version.
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
2013-06-21 03:16:39 +00:00
Roman Podolyaka e7593e1a84 Fix mocking of HTTPClient.request() method.
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
2013-06-18 17:47:13 +03:00
Jenkins cfd1e5045c Merge "Add metavar for --fixed-ip" 2013-06-17 23:17:11 +00:00
Akihiro MOTOKI a5076e6207 Enables H404 check (multi line docstring) in flake8
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
2013-06-17 18:32:54 +09:00
Akihiro MOTOKI 01a82383fc Support router-interface-add/delete by port_id
Fixes bug 1061638

Change-Id: Ie36126a38627a6707e82116fb6b7bd97755f8fd0
2013-06-17 15:16:15 +09:00
Akihiro MOTOKI 1a17997839 Allow subnet name in lb-vip-create and lb-pool-create
Fix bug 1168998

Change-Id: I25bf357d069b99db467db43900d293f30c2a7d30
2013-06-16 19:26:51 +09:00
Jenkins 92d9698ceb Merge "Remove class-based import in the code repo" 2013-06-15 23:33:59 +00:00
Alex Gaynor 2a5fd7e547 Remove the monkey patching of _ into the builtins.
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
2013-06-14 10:47:42 -07:00
Jenkins 12bc22b07a Merge "update to latest pbr & remove distribute from tox" 2013-06-14 15:12:38 +00:00
Jenkins 0edcf764bd Merge "Remove explicit distribute depend." 2013-06-13 22:28:40 +00:00
Mark McClain 5ac0b45029 update to latest pbr & remove distribute from tox
Change-Id: I61eb9902446a4fd975d5ea6fa7909ddcb3f7e761
2013-06-13 15:48:07 -04:00
Akihiro MOTOKI b5a416ac34 Remove class-based import in the code repo
Fixes bug 1167901

This commit also removes backslashes for line break.

Change-Id: Id26fdfd2af4862652d7270aec132d40662efeb96
2013-06-13 05:19:54 +00:00
Jenkins 53adca5747 Merge "Rename README to README.rst" 2013-06-12 01:58:53 +00:00
Monty Taylor 5be031f81f Remove explicit distribute depend.
Causes issues with the recent re-merge with setuptools. Advice from
upstream is to stop doing explicit depends.

Change-Id: I70638f239794e78ba049c60d2001190910a89c90
2013-06-11 11:38:09 -07:00
arosen 2bc41fb43f Add metavar for --fixed-ip
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
2013-06-10 16:15:04 -07:00
Jenkins 068cf76bd2 Merge " Rename requires files to standard names." 2013-06-09 14:30:02 +00:00
Jenkins 245c616aae Merge "Set default columns in ext-list" 2013-06-05 08:20:22 +00:00
Jenkins fc94431938 Merge "CLI support for disabling SNAT" 2013-06-02 13:37:01 +00:00
Dirk Mueller 5326cc713a Rename README to README.rst
README.rst seems to be more standard accross OpenStack
modules.

Change-Id: I82cd80e1e816b9c2e9774ad87c1a68bcf7dd8342
2013-06-01 10:08:50 +02:00
Mark McClain 92811c76f3 add readme for 2.2.2
Change-Id: Id32a4a72ec1d13992b306c4a38e73605758e26c7
2013-05-29 09:32:53 -04:00
Carlos D. Garza ae2a91f255 Rename requires files to standard names.
Rename tools/pip-requires to requirements.txt and tools/test-requires
    to test-requirements.txt. These are standard files, and tools in the
    general world are growing intelligence about them.

    adding test-requirements.txt to quantumclient/openstack/common/setup.py per review instructions.

Change-Id: Ibf991b400bfbeb4222216649901586e01a0255b1
Fixes: bug #1179008
2013-05-28 18:22:04 -05:00
Akihiro MOTOKI b95000665d Set default columns in ext-list
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
2013-05-27 18:15:36 +09:00
Jenkins de7fd2b2c0 Merge "Migrate to pbr." 2013-05-25 04:20:09 +00:00
Clark Boylan 898acc30f7 Migrate to pbr.
Fixes bug 1179007

Change-Id: I6d7a6b7c85361e1568719ad11035158f4f6d9b35
2013-05-24 13:08:00 -07:00
Jenkins 5011a21cb3 Merge "Avoid error 414 when retrieving subnet cidrs for ListNetworks" 2013-05-22 08:58:37 +00:00
Jenkins 1ad1c77f65 Merge "Add update method of security group name and description" 2013-05-22 03:02:57 +00:00
Jenkins 104276566a Merge "Allow the HTTPClient consumer to pass endpoint_type." 2013-05-21 06:13:49 +00:00
Carl Baldwin 06375f089b Allow the HTTPClient consumer to pass endpoint_type.
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
2013-05-21 02:47:48 +00:00
Salvatore Orlando 2815be00b0 CLI support for disabling SNAT
blueprint l3-ext-gw-modes

Adds the --disable-snat option to the router-gateway-set command

Change-Id: I1e6e339e3332d7073f761f407318811f22d283b1
2013-05-16 12:11:33 +02:00
Zhenguo Niu 9dbc2c7997 Add update method of security group name and description
make it possible to edit the name and description of security groups.

Fixes: bug #918393

Change-Id: I7b9dd3f9ad2f59aee1b37e06350ce8f5e3a40f64
2013-05-15 17:36:37 +08:00
Jenkins eba4e345fc Merge "Make flake8 deps consistent with other projects." 2013-05-14 11:32:57 +00:00
Jenkins d477346627 Merge "Improve unit tests for python-quantumclient" 2013-05-13 07:07:25 +00:00
Clark Boylan ce11f7e859 Make flake8 deps consistent with other projects.
Make the flake8 dependencies consistent with openstack/requirements and
the other OpenStack projects.

Fixes bug 1172444.

Change-Id: I04bd814ad51cf53a3fa0026028a36de461da45d4
2013-05-11 12:13:13 -07:00
Jenkins df1ab479b3 Merge "Change variable name of admin_state_down to admin_state" 2013-05-10 10:29:04 +00:00
Salvatore Orlando 7c6327e062 Avoid error 414 when retrieving subnet cidrs for ListNetworks
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
2013-05-03 22:44:22 +02:00
Tatyana Leontovich f42a06e9cc Improve unit tests for python-quantumclient
Partially fixes bug 1137783. Add tests for:
quantumclient.common.utils

Partially Fixes: bug #1137783

Change-Id: I6491eb881d3f465d11a649d55cde7caba77ed19b
2013-04-26 20:24:48 +03:00
Roman Podolyaka b971ef0e3b Fix a comment formatting to make pep8 test pass
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
2013-04-19 12:47:53 +03:00
Maru Newby 3c193c9387 Enable automatic validation of many HACKING rules.
* 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
2013-04-08 23:10:35 +00:00
Jenkins 2a75275085 Merge "Fix xml request doesn't work with unicode" 2013-04-08 22:10:14 +00:00