3559 Commits

Author SHA1 Message Date
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
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
Dean Troyer
819526591e Fix quota show --default command
Work around a bug in OpenStack SDK 0.9.11 and 0.9.12 that causes
quota show --default to fail.  This can be removed when the proposed
SDK fix (https://review.openstack.org/420301) is reelased and in the
minimum SDK version in global requirements.

quota set --network is still broken, I can't fix it at the moment...

Closes-bug: 1656572
Change-Id: Ice77e14782c33e672176afbab36bba95b73d7a11
2017-01-14 13:55:19 -06:00
Steve Martinelli
a76d38119b Fix network functional tests for sdk 0.9.12
it seems the SDK returns "is_default", but doesn't actually set
it based on --default or --is-default

I already had these functioanl tests mostly converted to JSON, so I dumped
that in here too to make the is_default stuff cleaner.

Change-Id: I47ca62f57c73aa7fa984ca54742fc86b6bb837c4
2017-01-14 13:45:59 -06:00
Dean Troyer
339af2c20b Fix floating IP delete and show by IP
The floating IP delete and show commands did not work using IP addresses
as the selector, only ID.  The SDK floating_ip resource does not support
but OSC does, so we have to do it ourselves.

Now with more SDK 0.9.10 support!

Change-Id: Iea1b57cded6b16a56a06af87ab8f1fa001a3485e
Closes-bug: 1656402
2017-01-14 10:55:12 -06:00
Huanxuan Ao
7329e640db Fix subnet creating failure in functional test
Noticed sometimes floating ip func test failed[1].

The first mumber of the address seems like cannot
bigger than 223. So specify subnet ranges as the
random number between 0 to 233, maybe it will safer
for our functional tests.

[1]: http://logs.openstack.org/50/418650/12/check/gate-osc-dsvm-functional-ubuntu-xenial/e163f68/console.html#_2017-01-14_06_58_35_930306

Change-Id: I44a23bce851dcf2009c8d77059cf75ed80145fb0
2017-01-14 21:26:16 +08:00
Jenkins
339ab40ee6 Merge "fix functional tests for network agents" 2017-01-13 22:18:39 +00:00
Jenkins
d9f236b258 Merge "Fix security group rule list for NEtwork v2" 2017-01-13 21:05:32 +00:00
Steve Martinelli
14ff3ba19e fix functional tests for network agents
As of SDK v0.9.11 the get_agent method no longer supports
the "ignore_missing" parameter.

Change-Id: Id655bf8499ed1a102a6bf583927cf66139581ab0
2017-01-13 12:07:27 -08:00
Dean Troyer
5988ee61d8 Fix security group rule list for NEtwork v2
Fix the formatting of Port Range in the security group rule list command
for Network v2 to handle SDK changes.

Change-Id: Id954cbfaedbb74f60125ebda91f80db751759933
2017-01-13 12:00:49 -06:00
Jenkins
f8e2cf80a1 Merge "Install from /opt/stack/new instead of git.o.o" 2017-01-13 14:43:44 +00:00
Monty Taylor
64385002ea Install from /opt/stack/new instead of git.o.o
Installing directly from the git url will bypass any depends-on
processing zuul may have done on the dependent repos.

Change-Id: I3dadacf7a855cc4efad701f0a6275d6cd60efd72
2017-01-13 02:29:38 +00:00
Jenkins
1880527e60 Merge "Fix quota show output" 2017-01-13 00:05:32 +00:00
Jenkins
ff120c847d Merge "unskip network qos rule type functional test" 2017-01-12 23:44:01 +00:00
Reedip
024bd3bd66 Fix quota show output
Currently Quota Show expects dictionary to be returned
for Network client, similar to Volume and Compute clients, but
Network Object is being returned, causing the "openstack quota show"
to fail.
This patch takes care of this issue.

Depends-On: Ie0e045ff4888615d68804fd739d5b995ca11e9a1
Change-Id: Ic507997cba09fcfa84dd1151d6922f56a7c5187b
Closes-Bug:#1655537
2017-01-12 22:10:32 +00:00
Jenkins
a9af66e04b Merge "Fix image member unit tests occasional failures" 2017-01-12 19:54:46 +00:00
Steve Martinelli
511b7880ea unskip network qos rule type functional test
with the SDK at 0.9.12 the below test fails with:

'minimum_bandwidth' not in

+-----------------+
| Type            |
+-----------------+
| dscp_marking    |
| bandwidth_limit |
+-----------------+

So remove 'minimum_bandwidth' from the asserted fields.

Change-Id: I24ff691ae5a946d901afa763973305025829280b
Closes-Bug: 1653137
2017-01-12 14:16:48 -05:00
Dean Troyer
96f3c7e783 Fix image member unit tests occasional failures
Let's try just unrolling the member status tests and not getting
too fancy here.

Change-Id: I30022ebd2da6d6cf1abba424d7d7fa679285f291
2017-01-12 10:50:07 -06:00
Pavlo Shchelokovskyy
e637e9c6c8 Fix flavor create help re swap size units
nova actually expects and uses swap size in MB, while in openstackclient
currently help states that swap must be specified in GB and passes this
value to nova without changes.

Fix the help string.

Change-Id: I95f46246c072961ce77f818d80d75e6a51f728d0
Closes-Bug: #1656018
2017-01-12 18:27:14 +02:00
Rodolfo Alonso Hernandez
4b2355b3e3 Fix Network QoS rule CLI attrs parsing
Allows to set zero values in the CLI parameters for
Network QoS rule.

Change-Id: Ie0e045ff4888615d68804fd739d5b995ca11e9a1
Closes-Bug: #1655947
2017-01-12 13:21:07 +00:00
Jenkins
c8c29e8c2e Merge "Add unit test for multi volume types delete" 2017-01-12 03:13:22 +00:00
Jenkins
2fb5ac0cc4 Merge "Add support for Network QoS rule commands" 2017-01-11 23:37:00 +00:00
Jenkins
3c031bbb68 Merge "Add two consistency group commands" 2017-01-11 23:12:38 +00:00
Huanxuan Ao
28f9a9c621 Add unit test for multi volume types delete
Missing unit test for multi volume types delete
in volume v2 (v1 has been done), this patch add
it.

Change-Id: I5fe67196408157f8bdfe6399ba1e559cea3dc559
2017-01-11 22:30:04 +00:00
Jenkins
365d4c9ef8 Merge "Error handling for delete commands in identity" 2017-01-11 22:28:19 +00:00
Jenkins
08fc39e9b0 Merge "Add support for Glance 'update image members' feature" 2017-01-11 22:28:06 +00:00
Jenkins
e2f745b692 Merge "add support for running tests with master dependencies" 2017-01-11 22:27:25 +00:00
Jenkins
afba7832a6 Merge "Fix filter error in os volume list" 2017-01-11 19:01:13 +00:00
Steve Martinelli
d98b72c245 add support for running tests with master dependencies
we can create a new infra job that points to the new test hook,
which should install the master version of the SDK, osc-lib
and os-client-config.

Change-Id: Ib6391893b2302bdc514525d5ddda886fe8c60100
2017-01-11 18:56:07 +00:00
OpenStack Proposal Bot
89b7488d2f Updated from global requirements
Change-Id: I3f06e0a50c4d8232796f2e42ce07eb40a139d1c4
2017-01-10 09:42:23 +00:00
Jenkins
b55b1d2b94 Merge "Make 'object save' fast again" 2017-01-09 22:12:26 +00:00
Rodolfo Alonso Hernandez
6b114cd98f Add support for Network QoS rule commands
Added following commands:
  - network qos rule create --type minimum-bandwidth
                                   dscp-marking
                                   limit-bandwidth
  - network qos rule delete
  - network qos rule list
  - network qos rule set
  - network qos rule show

Closes-Bug: 1609472
Depends-On: I2e8869750024a8ccbc7777b95fe8ef6e26ec0885
Depends-On: Ife549ff6499217ca65e2554be8ef86ea7866b2d8

Change-Id: Ib3e1951f0917f5f23c8d9e0a380d19da2b3af5f0
2017-01-09 18:05:30 +00:00
Jordan Pittier
1cdc1319d6 Make 'object save' fast again
'openstack object save' is critically slow to download big objects. While
we 'stream' (chunked download) the data, the default chunks_size
is 1 byte [1], which is terribly inefficient.

[1] : http://docs.python-requests.org/en/master/api/#requests.Response.iter_content

Closes-Bug: 1654645


Change-Id: I2223e5897346acd2f2c1fae638d1193cff833c19
2017-01-09 16:19:29 +00:00
Nir Magnezi
142c5faae3 Fix Octavia gate breakage caused by _get_columns()
The above mentioned function tries to extract keys() from an item which
is type class.

This patch fixes the issue by converting item to dict by using
to_dict().

Change-Id: Ida520ae9fe64171d105f486ba06eda127a24547b
Closes-Bug: #1654887
2017-01-09 16:44:08 +02:00
jiahui.qiang
51ea68ae94 Fix filter error in os volume list
This patch fixed a bug of unable to filter volume list by '--project',
'--user' in "openstack volume list".
Modify uint test for 'volume list' to check parameter of list method.

Change-Id: I1fc4296c4c7eca0f7a803dbfd5e15e3bc0d6403f
2017-01-09 00:03:11 +08:00
Jenkins
1957690754 Merge "Functional tests - flavor" 2017-01-08 15:01:50 +00:00
Jenkins
6084538658 Merge "Remove unneeded methods from OS_Config class" 2017-01-08 15:01:42 +00:00
Jenkins
4b2ceece28 Merge "OSC Network Meter" 2017-01-08 05:55:52 +00:00
Jenkins
4811b95d1e Merge "Add options to allow filtering on agent list" 2017-01-08 03:54:19 +00:00
Jenkins
33602fb4f4 Merge "Fix network service provider functional test" 2017-01-07 11:11:04 +00:00
Steve Martinelli
29146ab684 add domain id to expected IdP fields, unskip tests
commit Id18b8b2fe853b97631bc990df8188ed64a6e1275 added domain IDs
to an Identity provider, our functional tests have a hard match
on what to expect when 'showing' an idp, the domain ID was missing.

Change-Id: I87a1fd762918551c533668a9aa94f7c6268b79d6
2017-01-07 00:24:52 -05:00
Steve Martinelli
a6bfea9c6f skip tests related to SDK 0912 and keystone IdP change
the gate is super wedged, i will skip tests and unskip them
as necessary.

Change-Id: Ia4469738c876ec1293f91b96dcc7d15365f4f37d
2017-01-07 00:09:32 -05:00
Dean Troyer
f825c9b81b Functional tests - flavor
* Rework functional tests to remove resource create/delete from
  setupClass() and teardownClass() methods.
* Add tests for more command options
* Use JSON output

Change-Id: Ib99ef954fe8e1170c7445940180d80b8b9c0a92c
2017-01-06 14:03:39 -06:00
Jenkins
8cf99c3866 Merge "Fix "ip availability show" command" 2017-01-06 17:58:49 +00:00
Zhou Zhihong
2e78c11c8d Add options to allow filtering on agent list
Add options to allow filtering via --agent-type
and --host on agent list

Change-Id: I1800f0777aa92a76b4b95f64f8acc18454809e81
Closes-Bug: #1641868
Partially-Implements: blueprint network-commands-options
2017-01-05 22:23:01 -08:00