4300 Commits

Author SHA1 Message Date
Zuul
c393472339 Merge "Rehome test units lib" 2017-11-06 00:48:32 +00:00
Sławek Kapłoński
07f0c7aa55 Display Network QoS rule type details
Neutron API now supports getting details of supported
QoS rule type.
This patch adds support for this feature to OpenStack client.

Change-Id: I74d16563ce2236a7c899f5994f1dab43ace02138
Depends-On: I448b5d4f8e4ef42eafe50d9d6c63d0be666f98fc
Related-Bug: #1686035
2017-11-05 17:52:08 -06:00
Dongcan Ye
9ca99b9919 Network: Add supports rbac target-all-projects
Add a boolean option "target-all-projects",
which allows creating rbac policy for all projects.

Change-Id: Ie3af83a1bba7dd66e83b0595bb276bf8fd105831
Closes-Bug: #1728525
Closes-Bug: #1704834
2017-11-05 01:16:48 -05:00
OpenStack Proposal Bot
7744046d6a Updated from global requirements
Change-Id: I9935e5f3eeab0e0d8a56f5983822ad96c79a7526
2017-11-03 01:07:54 +00:00
Pierre Hanselmann
a4d56e615d Rehome test units lib
Rehoming deprecated libs for the ones provided in osc-lib.

Change-Id: Idb4a27f2c8edf48909ef010e3c7a1a5c0c16efc5
2017-11-02 13:44:16 +01:00
Zuul
2c14b4b2ee Merge "Zuul job updates" 2017-11-01 04:18:41 +00:00
Zuul
a51ac0a889 Merge "Added AddNetwork command to server" 2017-10-30 04:21:41 +00:00
James E. Blair
b7388dc9e3 Zuul: add file extension to playbook path
Zuul now supports including the file extension on the playbook path
and omitting the extension is now deprecrated.  Update references
to include the extension.

Change-Id: Ia1747b6c97140b7e12972c7f7b14cb0620ead084
2017-10-29 04:39:26 -07:00
Lin Yang
5b034ef653 Add python-rsdclient into plugin list
Intel RSD is new architecture that disaggregates compute, storage,
and network resources, and provide the ability to dynamically compose
resources based on workload-specific demands [1]. The python-rsdclient
project provide specific RSD plugin to allow user to invoke RSD API
through OpenStackClient. So Added it into existing plugin list.

[1] https://www.intel.com/content/www/us/en/architecture-and-technology/rack-scale-design-overview.html

Change-Id: Ic49efddfb003c89ece6d782905b27fb46402b3ab
2017-10-27 16:00:22 -07:00
Dean Troyer
40976f0062 Add server rescue unit tests
Added to support the new options to server rescue command.

Change-Id: Ia9dca85e05488fa8d5f57cd5e8920e94b8f65c22
2017-10-27 20:19:17 +00:00
Zuul
d215982ce0 Merge "Add missing parameters on openstack server rescue" 2017-10-27 18:29:07 +00:00
Dean Troyer
90230c3766 Zuul job updates
* Add unit-tips job to run unit tests with the same project master branches
  as the functional-tips job (mostly useful for the unit.integ tests)
* Add irrelevant-files to the osc-functional-devstack-base job
* Comment out the functional-n-net job as it is horribly broken for now
  until the replacement package-installed OpenStack is ready

Change-Id: I5acdcb0a2f0f0dfe488740ae0add36366cc0ee21
2017-10-27 12:40:24 -05:00
Jose Castro Leon
fd23ebfbf3 Add missing parameters on openstack server rescue
Change-Id: I27afca9e826378dbcb7feb7528e0c65c528b04b0
Closes-Bug: #1703278
2017-10-27 14:52:04 +00:00
Hongbin Lu
e3ad82164d Added AddNetwork command to server
Currently, if users want to add another NIC to a running instance,
they need to (i) create a neutron port and (ii) add the port to the
server via teh AddPort command. It would be more convenient to have
a single command to achieve the equivalent.

Novaclient already support adding network to an instance via the
interface-attach command. This patch introduces a similar capability
in OSC.

Change-Id: Ia3e39c57ae7ecb96aae1b66adc52c289daccb6ec
2017-10-26 15:34:04 +00:00
Stephen Finucane
21212cabd5 Convert 'server' commands to use autoprogram
Convert the remaining server commands.

Change-Id: Ief84abb899be9fd60ce4d546abefc226e0ae4f81
2017-10-26 09:34:04 +00:00
Zuul
8efed05e82 Merge "Native DevStack jobs" 2017-10-25 16:34:17 +00:00
Dean Troyer
676159555f Native DevStack jobs
Convert legacy DevStack jobs to native Zuul v3 form, plus some
test-job-related docs updates.

Change-Id: Ia8c08be81605da885b9eee799fc58129305dfc41
2017-10-24 17:35:55 -05:00
Zuul
c5d3d9b318 Merge "Add wrapper around ostestr" 2017-10-23 19:26:33 +00:00
Monty Taylor
ef595fcfc4 Add wrapper around ostestr
The functional tests assume that an openrc file has been sourced. Make a
simple wrapper that will do that.

Change-Id: I42584aaebcbca99a8c922f6ff90c8bbce57bbfbb
2017-10-23 08:34:15 -05:00
Zuul
e83a0941a3 Merge "Allow creating security rules without protocol" 2017-10-21 17:20:10 +00:00
Zuul
6c0b966813 Merge "auto-generate docs for v3 identity resources" 2017-10-21 04:54:11 +00:00
Zuul
3abba6ede9 Merge "Accept 0 for --min-disk and --min-ram" 2017-10-21 00:40:48 +00:00
ShogoAdachi
4464109c77 Accept 0 for --min-disk and --min-ram
The current openstackclient implementation cannot accept 0
for --min-disk and --min-ram with the "openstack image set" command.
If theses options get set to 0, the option parser in openstackclient
wrongly interprets 0 as no option value. The 0 is valid for these
options if administrators want to make it the default(no minimum
requirements).

This patch fix the parser so that it avoids only 'None'.

Change-Id: Ie8ee37484c02c26f54adc56263fcd167c0ce7eb3
Closes-bug: #1719499
2017-10-20 19:48:37 +00:00
Dean Troyer
161c79f703 Move more jobs in-repo
Now consume the merged openstackclient-plugin-jobs template in
openstack/openstackclient repo.

Change-Id: I60f2c8ad443c802e13de8f185647faa68e07bfe2
2017-10-19 15:53:57 -05:00
Dean Troyer
c901620a03 Attempt to de-race qos policy
We're getting about 1-in-6 failures on qos policy delete now, with the message
that the policy is in use by a network.  It shouldn't be, this is possibly
due to the small window where the policy is set as the default.  Let's
remove that and shore up the test using --share instead.

Change-Id: I8d669bd3c5c88dadd2927aee89e5ef72cf4001c4
2017-10-18 14:03:51 -05:00
Daniel Speichert
82f45d9bd2 Allow creating security rules without protocol
In order to create a rule for any protocol, the client
must not specify the protocol in the API call. This
is currently impossible because protocol defaults to TCP.

In order not to change the default behavior, a "new" protocol
name is added: "any", which makes this CLI skip sending the
protocol field altogether.

Change-Id: I58853d3745f3631007e5e9780c0c5c2526b730a3
Closes-Bug: 1712242
2017-10-17 13:36:40 -04:00
Zuul
09faba2713 Merge "Move base functional test job in-repo" 2017-10-17 14:10:51 +00:00
Dean Troyer
4733621ecb Move base functional test job in-repo
Depends-On: I26ed12133c75a69182c56b6ecf483fcdc37d98f3
Change-Id: Ib46eed6e038a502926bf92297120e2d494ef5b20
2017-10-15 23:52:55 +00:00
Ian Wienand
358544d40e Switch to $USER in post_test_hooks
As a first step to zuul migration, switch to $USER from a static
"jenkins" username.

Change-Id: I26ed12133c75a69182c56b6ecf483fcdc37d98f3
2017-10-16 10:50:13 +11:00
Jenkins
33403348a2 Merge "Optimize getting endpoint list" 2017-10-13 18:25:45 +00:00
Rodolfo Alonso Hernandez
885b1149c3 Avoid default mutable values in arguments
Mutable values shouldn't be used as default values in function
arguments [1].

[1] http://docs.python-guide.org/en/latest/writing/gotchas/

Change-Id: I3c7f915f0409c77f4c430467365eb1bcfd7757b3
2017-10-10 14:04:40 +01:00
Hongbin Lu
599fa78262 Be robust on import plugin module
On loading external plugin, OSC should be robust on importing the
plugin module so that commands from other modules can continue to
execute.

Closes-Bug: #1722008
Change-Id: Ibe716681c7f78fabee31b7ef281af2588d68ab30
2017-10-07 17:07:24 -04:00
Steve Martinelli
0d94a76d95 auto-generate docs for v3 identity resources
skipped shared v2/v3 identity resources.

Change-Id: I9e1fb5dee5506780fd79a0cbfbde059d0ccd1489
2017-10-06 00:57:04 +00:00
OpenStack Proposal Bot
a87bd58fb4 Updated from global requirements
Change-Id: I79e4ddb75c7cf7088d6f0abc79f9f07dcd165535
2017-10-05 13:51:35 +00:00
Hongbin Lu
de23ab8d75 Support creating unaddress neutron port
Introduce an option '--no-fixed-ip' on port create command.
If this option is specified and '--fixed-ip' is unspecified,
OSC will send a request to neutron with 'fixed_ips' as an empty
list, which will create an unaddress neutron port.

Note: The use cases of unaddress port was outlined in:
https://specs.openstack.org/openstack/neutron-specs/specs/liberty/unaddressed-port.html

(dtroyer: add Depends-On for Zuul v3 test)

Depends-On: I39e8e49243ab0bda631600715c971c55a34e2fd9
Change-Id: Ibe38598acbbcd0d353c952fc2a6fa67780762151
Closes-Bug: #1717829
2017-09-29 18:49:22 +00:00
Jenkins
a452c9d825 Merge "Support icmp-type and icmp-code to be set as zero" 2017-09-27 05:49:50 +00:00
Jenkins
2476a995cf Merge "Fix 'project purge' deletes ALL images problem" 2017-09-27 05:27:52 +00:00
Jenkins
2c77aba363 Merge "Add "volume service list --host" functional test case" 2017-09-26 23:15:31 +00:00
Jenkins
fe28472b74 Merge "Update the documentation link for doc migration" 2017-09-26 23:14:49 +00:00
Anton Frolov
f6f5ce03c5 Optimize getting endpoint list
Currently ListEndpoint.take_action method unconditionally iterates
over all endpoints and issue GET /v3/services/<ep.service_id>
request for each endpoint. In case of HTTPS keystone endpoint this
can take significant amout of time, and it only getting worse in
case of multiple regions.

This commit change this logic to making just two GET requests: first
it gets endpoint list, then it gets service list, searching service
in the list instead of issuing GET /v3/services/<id> request.

Change-Id: I22b61c0b45b0205a2f5a4608c2473cb7814fe3cf
Closes-Bug: 1719413
2017-09-26 14:31:07 -07:00
gvrangan
221b7052ab Support icmp-type and icmp-code to be set as zero
When icmp-type or icmp-code are set to 0, the current implementation
ignores the value, this fix will allow the value to be copied and
displayed

Change-Id: I96133a57883d22e98fcbb9fe0328d9e050472469
Signed-off-by: gvrangan <venkatrangang@hcl.com>
2017-09-26 21:00:14 +00:00
lihaijing
254dbf3294 Fix 'project purge' deletes ALL images problem
Closes-Bug: #1717130
Change-Id: I33c6fc7897dfee85d1c197a1267bde4abfa5bbd9
2017-09-26 20:49:32 +00:00
lingyongxu
41352cb375 Update the documentation link for doc migration
This patch is proposed according to the Direction 10 of doc
migration(https://etherpad.openstack.org/p/doc-migration-tracking).

Change-Id: Ieca93d77bfc5e54486312f16122cc12c5bda0934
2017-09-21 10:47:31 +00:00
OpenStack Proposal Bot
953d74b5d6 Updated from global requirements
Change-Id: I9509fb386bc28eaaeab8d27f4cfc7109ec261b73
2017-09-21 03:50:03 +00:00
Jenkins
f88d2f53ba Merge "Add functional test cases for "volume qos associate/disassociate"" 2017-09-19 12:51:14 +00:00
Jenkins
763288f605 Merge "Unroll the network qos policy functional tests" 2017-09-19 12:51:07 +00:00
Jenkins
a060ba8217 Merge "Add python-zunclient plugin" 2017-09-19 08:53:55 +00:00
lihaijing
844623ccc4 Add "volume service list --host" functional test case
Change-Id: I467252d9fc6083fb891a8701d7992f16ce42556f
2017-09-19 14:06:27 +08:00
lihaijing
edebe558ee Add functional test cases for "volume qos associate/disassociate"
Change-Id: I07b25bebb8a0ea18cdf042357be65c4ec6e1cfed
Closes-Bug: #1717874
2017-09-18 12:30:12 +00:00
Jenkins
39c00ab8b7 Merge "Useless line of code in shell.py" 2017-09-18 04:03:15 +00:00