3820 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
b69b539a42 Updated from global requirements
Change-Id: I7b0e46de18f10cde110e1957c12210bc3271e7f9
2017-01-25 00:55:54 +00:00
Jenkins
414c99b3aa Merge "Use image client for images instead of compute" 2017-01-25 00:12:36 +00:00
Artom Lifshitz
98f803e0f0 Use image client for images instead of compute
With the deprecation of the Nova proxy APIs in microversion 2.36 [1],
any operation that uses a microversion higher than 2.36 and works with
images will fail because the /images endpoint will return 404. This
patch updates openstackclient to query images using the image client
in places where previously the compute client was used.

[1] http://docs.openstack.org/developer/nova/api_microversion_history.html#id33

Change-Id: Ia66e44e530799ce6531922dcf6a84e38528c8725
Closes-bug: 1630161
2017-01-24 16:56:35 +00:00
Jenkins
0ef6fc0ae8 Merge "Functional tests debug support" 2017-01-24 16:44:03 +00:00
Jenkins
bfad2abf23 Merge "Fix OSC networking commands help errors" 2017-01-24 15:35:33 +00:00
Jenkins
1ef0dae8b1 Merge "Update container format choices" 2017-01-24 15:30:08 +00:00
Jenkins
11ef43da49 Merge "Functional tests - port" 2017-01-24 06:06:31 +00:00
Jenkins
c9de2d67e9 Merge "Handle 403 error on creating trust" 2017-01-24 04:16:28 +00:00
Brian Rosmaita
80c62021c8 Update container format choices
The choices for valid container formats is out of date in the
image v1 and v2 help text.  This patch adds 'ova' and 'docker'
and does some minor refactoring to align the container_format
option with the disk_format option.

Change-Id: Icdea5fab801abd651baf45cf96c920c7df79f11b
Closes-bug: #1658138
2017-01-23 23:04:49 -05:00
Hongbin Lu
5cf77bb672 Handle 403 error on creating trust
Currently, creating trust requires permission to list roles, but
non-admin users don't have permission to do that by default. This
commit adds exception handling on listing roles, and continue to
create trust if server returns 403.

Closes-Bug: #1658582
Change-Id: I4f016b76cb46ae07ef65ed54780881bbcd6210d3
2017-01-24 01:50:36 +00:00
Jenkins
30ddab2341 Merge "SDK refactor: Prepare security group commands" 2017-01-24 01:24:26 +00:00
Jenkins
0d7f27bc00 Merge "Update devref about "--no-property"" 2017-01-23 21:54:00 +00:00
Abhishek Raut
ab88573ebb SDK refactor: Prepare security group commands
Prepare the OSC "security group" commands for the SDK refactor.

Change-Id: If9918fad2474f9b4d68424f2806f0de61fd58b2e
Partially-Implements: blueprint network-command-sdk-support
2017-01-23 19:18:23 +00:00
Jenkins
d5745eaaa7 Merge "TrivialFix in helpMessage for readability" 2017-01-23 09:41:53 +00:00
Ankur Gupta
5caac0e563 Add meter rule to OSC
Implement network feature meter label rules into
OpenStack Client.

Allows for creation of rules to meter
network traffic.

Partially Implements: blueprint neutron-client-metering

Change-Id: If18c078d7e80c122583417669f820f02c84d6237
2017-01-23 00:24:35 +00:00
Rui Chen
274687d852 Update devref about "--no-property"
Update the example about "--no-property" and "--property"
to make help message order more reasonable, that help make
users aware of the processing order, and update the help
details when both "--no-property" and "--property" appear
in the same command.

Change-Id: I998cdaf2f8c881dce219581ff328a639e8e358ee
Implements: blueprint allow-overwrite-set-options
2017-01-22 06:30:35 +00:00
Rui Chen
4d9da2c40a Fix OSC networking commands help errors
OSC networking commands need to authenticate to get
service catalog, then decide to show nova-network or
neutron command help message. Fake token and fake
auth_type in prepare_to_run_command() casue os-cloud-config
use AdminToken auth plugin, but pass all the auth information
(include: username, password and so on) to it, that casue the
class initialization error. Pop the fake token and url, then
try to load auth plugin again to fix the issue.

Change-Id: I8b140f0b0a60681fc2a35a013bb0c84ff8cb9589
Closes-Bug: #1650026
2017-01-22 06:30:31 +00:00
Rui Chen
fd0ac815de Functional tests debug support
Pass OS_* options into tox debug venv in order to
debug functional tests in local, and install ipdb
to make code-debug more convenient.

Change-Id: Ib926948f2b9a52921cf7487fe16ef716481e3ceb
2017-01-22 06:30:15 +00:00
jiahui.qiang
4f4af3d67d Switch to use cleanup method in functional test
Switch the delete command in subnet and router functional tests. Because
addCleanup will also work when an assertion fails ,except the test is for
testing delete command.

Change-Id: I33634f5148c4895c7cf4d4773a9c33c8368850c7
2017-01-21 18:22:26 +08:00
Jenkins
607f31d3db Merge "Fix port command for SDK >0.9.10" 2017-01-21 06:18:14 +00:00
Jenkins
bf3f12f596 Merge "Error in the return of command 'volume qos create'" 2017-01-21 06:18:08 +00:00
Jenkins
64c509cf76 Merge "Functional test for volume snapshot" 2017-01-19 01:20:35 +00:00
Jenkins
854e515ce6 Merge "Fix functional test for creating subnet" 2017-01-18 23:53:32 +00:00
Jenkins
a61c7cbba9 Merge "Fill the missing colon" 2017-01-18 21:10:19 +00:00
Huanxuan Ao
4a8e7dbe6b Fix functional test for creating subnet
subnet create failed by some bad random
subnet range, so retry it with new random
range when the test failed.

Change-Id: If528ff419b51dd5c5232f81d4b26abae542bd820
2017-01-18 19:33:05 +00:00
jiahui.qiang
f96cff1a6d Functional test for router
Refactor functional tests for testing more command options.

Change-Id: I6200045c6228e245fc48a4d48d4b3796dede61b5
2017-01-19 01:26:08 +08:00
Jenkins
8d453e2641 Merge "Add plugin adoption for trove" 2017-01-18 03:21:47 +00:00
jiahui.qiang
b201a11b42 Functional test for subnet
Refactor functional tests for testing more command options.

Change-Id: I030652f6f3ab3dada12252599b20969f03a5df02
2017-01-18 10:52:16 +08:00
jiahui.qiang
9fd145edbf Functional test for volume qos
Refactor functional tests for testing more command options.

Change-Id: I6d5a82eb0e84f72e8da76b17c952e4daae9dbc08
2017-01-18 09:00:53 +08:00
YAMAMOTO Takashi
61a22a285a Remove the fixed set of choices for network_type
So that it can specify out-of-tree ML2 type drivers.

Closes-Bug: #1657311
Change-Id: I2445fb165b86cf5937d8aa09ba0fd5564eb1f8f4
2017-01-18 09:38:23 +09:00
Trevor McCasland
ab1f637f55 Add plugin adoption for trove
With I308a6c6f3f5ce7dbb814ec0fd8ecb1734a2f137f merged in the
python-troveclient project, trove can now say it has adopted the
plugin.

What commands that actually get implemented for this cycle, is to be
determined. Another patch adding more commands to the docs will be
proposed later when they get merged.

Change-Id: If2c2545dd5d1510cc6eece698e34ad0f8c1b970f
2017-01-17 19:26:48 +00:00
Jenkins
08ca61ba07 Merge "Fix quota set command error for SDK > 0.9.10" 2017-01-17 17:23:54 +00:00
jiahui.qiang
89d9449dcf Error in the return of command server show, create
The raw output in the command 'openstack server create'(also in show) is
used in display table directily. the item like
os-extended-volumes:volumes_attached and security_groups needs to convert.

the worry output:
  os-extended-volumes:volumes_attached | [{u'id': u'c3525de9-1cbf-4ac8-8b7a-ca295c46633b'}]
  security_groups                      | [{u'name': u'default'}]

Change-Id: Id9db251c315f989e1dc5b1b6231ab328014213e3
2017-01-17 17:49:16 +08:00
jiahui.qiang
f353253122 Error in the return of command 'volume qos create'
This patch fixed a 'volume qos create' display mistake in argument
of 'specs'[1]. For command such as:

 $ openstack volume qos create hello

 [1]https://bugs.launchpad.net/python-openstackclient/+bug/1656767
Closes-bug:#1656767

Change-Id: Ia9fce833d318d9b52b97c12cfb89e2d3c5465fbe
2017-01-17 15:19:22 +08:00
Jenkins
e853d93a04 Merge "functional test for volume" 2017-01-17 06:03:18 +00:00
Jenkins
1d9935aaa1 Merge "Update functional test for aggregate." 2017-01-17 01:22:10 +00:00
jiahui.qiang
dc3b83590a Functional test for volume snapshot
Refactor functional tests in volume snapshot.

Change-Id: I2fcc468096b3a26c83b8af1e379a62c80eb9c63e
2017-01-17 08:33:12 +08:00
zhiyong.dai
2476a26d99 Update functional test for aggregate.
Add the following functional tests :
    option: "--no-property"
    command: "aggregate set --zone",
             "aggregate add host",
             "aggregate remove host".

Change-Id: Ia9c31facb5f0f5b92b8df950fd4021b8ecc924c5
2017-01-16 20:58:33 +00:00
OpenStack Proposal Bot
603543bb71 Updated from global requirements
Change-Id: Ic8eef0aa955d747ae7edf19761f8d682cf95d63f
2017-01-16 17:28:09 +00:00
Dean Troyer
4d3cfb9142 Release 3.7.0 cleanup
Change-Id: I75d9e2473461e316086cfad8c886c6b7d22ecd5e
2017-01-15 11:01:32 -06:00
Jenkins
c7d3f4eae9 Merge "SDK refactor: Prepare network agent commands" 2017-01-15 16:12:56 +00:00
Huanxuan Ao
0340275fa9 Fix quota set command error for SDK > 0.9.10
A bug in OpenStack SDK 0.9.11 and 0.9.12 that causes
quota set command to fail. This can be removed when
the proposed SDK fix (https://review.openstack.org/#/c/419911/)
is released and in the minimum SDK version in global requirements.

Closes-Bug: #1655445
Change-Id: I63132f5f762f0120282f8b92e72512763063e3c6
2017-01-15 20:00:53 +08:00
Huanxuan Ao
b860ba0e42 SDK refactor: Prepare network agent commands
Prepare the OSC "network agent" commands for the SDK refactor.

Partially-Implements: blueprint network-command-sdk-support
Closes-bug: #1656542
Change-Id: I6745f5ffb04b009487e6cb36d1807dce9b248b4c
2017-01-15 19:29:51 +08:00
OpenStack Proposal Bot
d9361cbb70 Updated from global requirements
Change-Id: Idb49f1e126d1dab070894e2fc70c78b9984f988a
2017-01-15 09:28:59 +00:00
Jenkins
368666194b Merge "Fix quota show --default command" 2017-01-15 05:51:42 +00:00
Steve Martinelli
4c5cea46be unskip port test
seems like we fixed this one when fixing other tests but never
unskipped it.

Change-Id: Id1a3d11b581b6f72ad62a8699899b6163c3870bb
2017-01-14 18:36:28 -05:00
Jenkins
bbdf58298a Merge "Use git+file urls instead of directories" 2017-01-14 23:25:22 +00:00
Jenkins
d35374e33f Merge "Fix network functional tests for sdk 0.9.12" 2017-01-14 23:11:28 +00:00
Jenkins
1d41bb460f Merge "Fix floating IP delete and show by IP" 2017-01-14 21:25:22 +00:00
Monty Taylor
63cdf079b1 Use git+file urls instead of directories
The /opt/stack/new directories are owned by the wrong user, so python
setup.py egg_info fails because it can't create the egg_info dir.
Changing the invocation to use git+file:// urls solves the problem.

Additionally, make a correction to test collection.

Change-Id: I39da0b26417dce1a72b15dedc02d10284329307f
2017-01-14 20:40:17 +00:00