4400 Commits

Author SHA1 Message Date
Akihiro Motoki
c19d982399 Fix func tests: Ensure to pass OS_CLOUD envvar
Our functional tests depend on OS_CLOUD (or other OS_* envvars)
to retrieve authentication information.
Functional test failure is caused by the lack of OS_CLOUD envvar.
This commit updates the job playbook to pass OS_CLOUD.

Change-Id: I903ce599082cc923f02e26a2058bbfa7eb9bb2d6
2017-12-27 02:52:15 +09:00
OpenStack Proposal Bot
9c23fc8025 Updated from global requirements
Change-Id: Ieb1a29ba275784f67f0d943fab5f3b59cd9fc28e
2017-12-23 10:11:57 +00:00
Zuul
8c5f755569 Merge "Send 'changes-since' instead of 'changes_since' query parameter" 2017-12-13 02:57:49 +00:00
Zuul
21b656ca4a Merge "Add support for endpoing filter commands" 2017-12-13 02:18:43 +00:00
Daniel Speichert
116526275d Send 'changes-since' instead of 'changes_since' query parameter
Per API reference, only 'changes-since' is accepted and the variant
with underscore is ignored, making the CLI functionality broken.

[dtroyer] added release note and fixed unit tests.

Change-Id: I0c596531a8af03da17d5ce39d75b12e941403aa5
Closes-Bug: 1732216
2017-12-11 18:07:45 -06:00
Zuul
58e5abf294 Merge "Fix credentials in create, update and list." 2017-12-11 22:45:54 +00:00
Dean Troyer
1d914dd9ad Fix SDK Connection creation alternative to Profile
Do a dummy import to determine which SDK is installed (Pre/post merge).

This solves the DevStack error "Cloud defaults was not found" in -tips jobs.

Depends-On: Ia111f127fbdceac2afe20fd9d1fe032145cdd72c
Change-Id: I60c2d418dd5a393eee2cc2a5c2fdebfffdabf2d3
2017-12-07 08:10:23 -06:00
Zuul
396cde37a3 Merge "Remove a bunch of things we promised to remove in 2H 2017" 2017-12-04 22:08:50 +00:00
Dean Troyer
b0a75d739a Make functional-tips job voting
Depends-on: I57cf95763d54ad2060a4ce2af91c3ba18ca04db0
Change-Id: I6cc4421e4b55df84f494ab9bb18092dcc111baeb
2017-12-04 15:25:54 -06:00
Andreas Jaeger
0bf69a9462 Remove -U from pip install
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.

With tools/tox_install.sh - which a previous change of mine removed -
the -U was not harmful, but with the current set up, it might cause
upgrades, so remove it.

Change-Id: I9f818d4b78e7540498a1501be14cd63ac3e891b3
2017-12-02 19:21:22 +01:00
Zuul
5cf1190879 Merge "openstack subnet create fails when tags is None" 2017-12-02 01:35:39 +00:00
Carlos Konstanski
dab49df461 openstack subnet create fails when tags is None
In network/v2/_tag.py lines 105 and 110: obj.tags can be None, in
which case set(obj.tags) throws a NoneType exception.

Change-Id: I1e965ec947844cbf84676fab27a2261fc0c0ea49
Closes-Bug: #1735836
2017-12-01 15:17:03 -07:00
Monty Taylor
8b32b53a0f
Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: Ie7c06ead39c8597ec9326f223625d1fa0d5208d1
2017-12-01 10:26:50 -06:00
Monty Taylor
01d3b42a06
Make py27 and py35 versions and template of unit-tips jobs
Make py27 and py35 versions of the tips job, and a project-template to
hold them so it's easy for other projects to use both (or more, we ever
add them) The base tox job knows how to install siblings based on
required-projects, which makes it easy to piggyback on them.

Remove the irrelevant-files sections, as these are specified in the
base openstack-tox jobs.

Using the unit-tips or functional-tips tox env is no longer neccessary.
For the gate it's actually important to not do the sibling processing by
hand in tox as the base tox job version of the logic does all the
right things to deal with constraints and whatnot. Leave them for local
developer convenience.

Leave the osc-tox-unit-tips job for now, since there are some other
repos using it. Once we switch them to the template, we can remove the
job.

Change-Id: I599b18218c10cb08e508cca3b3bbc9c88b8f809c
2017-12-01 10:26:46 -06:00
Monty Taylor
b061b9c34e
Add cliff and keystoneauth to tips jobs
Both of these can severely break openstackclient. Add them to the
required-projects list of the tips jobs. We should then add at least
osc-tox-unit-tips but maybe also osc-functional-devstack-tips to both
cliff and keystoneauth so that it's symmetrical.

Change-Id: Ie0f3e9d7e221c9cdd3c5d726148f456246186ff4
2017-12-01 10:19:34 -06:00
Dean Troyer
2c2c16ba55 Remove a bunch of things we promised to remove in 2H 2017
Change-Id: I060559fe13e354fe87551cd9dd82774bddb54640
2017-11-30 15:35:42 -06:00
Dean Troyer
3a672eae7b Release note cleanup
Change-Id: Iea05a9b696a225b41bb5bf0c52498969e32acf66
2017-11-29 16:38:44 -06:00
Zuul
ae2ae4e60e Merge "Set correct designate endpoint in docs" 2017-11-29 16:56:42 +00:00
Zane Bitter
c778c7d631 Set correct designate endpoint in docs
Change-Id: Id2ecf65f3e5afef9b6231565cac2d797650e38a7
Closes-Bug: #1726726
2017-11-28 18:16:01 -05:00
Zuul
249851ae7d Merge "Fix file mode on network-topology.rst" 2017-11-28 22:53:19 +00:00
Zuul
878410db8d Merge "Replace %r with %s on printing string variable" 2017-11-28 21:35:55 +00:00
Monty Taylor
5176951d59
Make osc-tox-unit-tips work on other repos
We want to run osc-tox-unit-tips on changes to os-client-config and
python-openstacksdk - but the tox role defaults to using
zuul.project.src_dir as the working directory. We want it to always be
the openstackclient source dir.

Change-Id: Ic7a49b79fb9141d9d0b8da40e10c85b107564edc
2017-11-26 14:50:55 -06:00
Akihiro Motoki
0626f95579 Allow port list to shown undefined attributes
At now, OSC command implementation extracts resource attributes based on
a predefined column list, so if a user specifies an unknown attribute
not defined in the column lists, such attribute will be ignored.

In case of 'port list', the neutron port defines many attributes and
it is not a good idea to show all attributes even in the long mode
from the perspective of user experience.

This commit consumes osc_lib.utils.calculate_headers_and_attrs()
function to show undefined port attributes if requested in -c option.

Closes-Bug: #1707848
Depends-On: I6c6bc3c6e3c769c96869fd76b9d9c1661280850e
Change-Id: I130a6aed41d80603698b6cab0c9a1d1dc59df743
2017-11-24 22:45:06 +00:00
Zuul
c47b1ff063 Merge "Updated from global requirements" 2017-11-21 19:54:21 +00:00
OpenStack Proposal Bot
4cff01a2be Updated from global requirements
Change-Id: I6d09649d109445bee8ec541a1366dfcf49fd6563
2017-11-21 15:52:35 +00:00
Brian Haley
cc52022447 Fix file mode on network-topology.rst
doc/source/contributor/specs/network-topology.rst was
executable, change mode to 0644.

Change-Id: I7e9c8a86ee8563f47da3f59c189b5bd5f3846344
2017-11-21 10:02:46 -05:00
Jose Castro Leon
12ee186108 Add support for endpoing filter commands
Implements the commands that allow to link and endpoint to
a project for endpoint filter management.

Implements: blueprint keystone-endpoint-filter

Change-Id: Iecf61495664fb8413d35ef69f07ea929d190d002
2017-11-21 07:58:48 +01:00
Matt Riedemann
d0917cd14b Remove hard-coded policy choices for creating a server group
The hard-coded choices for the server group policy make it impossible
to create a server group with the soft-affinity or
soft-anti-affinity policy rules which were added in compute API
microversion 2.15. This removes the hard-coded choices so that the
policy is restricted on the server side rather than the client side.

Change-Id: Ib3dc39422ac1015872d56ae2fdeddf0f29613494
Closes-Bug: #1732938
2017-11-19 18:45:28 -05:00
Zuul
ddb94ea2a4 Merge "Prepare for os-clinet-config to go away" 2017-11-17 21:44:02 +00:00
Zuul
45260c41de Merge "Add logic to handle old and new sdk constructor" 2017-11-17 21:33:29 +00:00
yangweiwei
0f749cacc2 Fix credentials in create, update and list.
Now, keystone has supported serverl auth method, like 'totp'.
Before we use this method, we should create the credential first.
And we need create it with type 'totp'. But now we cannot create
credential with this method.

Also, I think the type should not have constrains. We can create
any type in keystone project. So, we should do these actions too.
The type would be more which We cannot control.

Change-Id: Ie0482da3133fb515e4bb8e45f8c54f509589cc5e
Closes-bug: #1731848
2017-11-17 11:39:15 +08:00
Andreas Jaeger
d7f906b526 Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: Ia0c8d7dc346182fde095eebb82eeeb70fc1b9770
2017-11-16 20:46:56 +01:00
Dean Troyer
7d85ecaa33 Prepare for os-clinet-config to go away
We used that module in a test functional for module list, it is being absorbed
into python-openstacksdk and having it listed in this test breaks -tips jobs.

Change-Id: I98fdf5a5d1b3c6e30cb4c5f5fec3dd8e43e53145
2017-11-16 12:38:17 -06:00
Monty Taylor
80da4d6cf8
Add logic to handle old and new sdk constructor
SDK is removing Profile, but currently has compat code to support this
invocation in OSC. While the intent is to protect people from upgrade
breakage, it's python, and packaging things have a tendency to get
strange. By putting in a little belt and suspenders if block here, we
can hopefully protect folks who upgrade sdk for some reason without
upgrading python-openstackclient.

Change-Id: Id678e97a2b99dbbfc772acc8c6ba283db551723d
2017-11-16 08:09:11 -06:00
OpenStack Proposal Bot
c0f910d613 Updated from global requirements
Change-Id: I714dbe5326ed99c4edab6c63ecea4dc6a72b57e7
2017-11-16 11:25:40 +00:00
Zuul
c161a76a5f Merge "Network: Add interfaces info in router show" 2017-11-16 01:45:55 +00:00
Zuul
67c8da4499 Merge "Show detailed message of neutron exception" 2017-11-16 00:03:34 +00:00
Zuul
10ef6d5177 Merge "Add RemoveNetwork command to server" 2017-11-15 23:35:01 +00:00
ycx
e7ef9e8556 Network: Add interfaces info in router show
Add a list of interfaces info in the output of
'openstack router show'.
The information of router interface are:
IP address, subnet ID and port ID.

Co-Authored-By: Dongcan Ye <hellochosen@gmail.com>

Change-Id: I1252986122122defffe795292b83dc4e84481c7e
Closes-Bug: #1675489
2017-11-15 22:28:46 +00:00
OpenStack Proposal Bot
aafbb69cfb Updated from global requirements
Change-Id: I2c8a5132f6078609ad0d46093642a1b361115c5c
2017-11-15 01:53:52 +00:00
Hongbin Lu
8b31e2bc48 Show detailed message of neutron exception
This patch improves the error message by retrieving the more details
from the exception instance. Otherwise, the real error message won't
be displayed (unless using --debug in the command).

Change-Id: I8ba694bda86f7cc8362e301b2044d9b610dde49c
2017-11-14 23:25:52 +00:00
Hongbin Lu
809355894f Add RemoveNetwork command to server
This command will detach a server from a network. All server's
neutron ports that belongs to the specified networks will be removed.

Change-Id: I83a064ed62ab00c6f1016900b9cf30f1c15b8382
2017-11-14 00:13:08 +00:00
Hongbin Lu
7ef2867ff6 Replace %r with %s on printing string variable
Change-Id: Idd8c15255f024bba7079d3a9a29545dec0c91b58
2017-11-13 15:23:16 +00:00
OpenStack Proposal Bot
4742d4df70 Updated from global requirements
Change-Id: Icf2e8d6cca0194de127ef0dfaee5db04381b5cd1
2017-11-12 21:18:50 +00:00
Zuul
b230ba73cd Merge "Be robust on import plugin module" 2017-11-08 05:17:21 +00:00
Zuul
5311fc36fd Merge "Add python-rsdclient into plugin list" 2017-11-07 07:22:24 +00:00
Zuul
d12fd10cc1 Merge "Neutron agent delete: remove the wrong argument" 2017-11-07 06:59:54 +00:00
Zuul
c2ebe678f9 Merge "Network: Add supports rbac target-all-projects" 2017-11-07 00:20:07 +00:00
npraveen35
6c8e5177bc Neutron agent delete: remove the wrong argument
The take_action() function was calling get_agent() with the wrong
attribute, causing agent deletion to fail. It turns out calling
get_agent() isn't necessary; this removes the call entirely and moves
the 'ignore_missing' argument to the delete_agent() function.

Change-Id: Iaa3754a3be0765112f396495fa5fb2e32e6eae4e
Closes-Bug: #1711301
2017-11-06 16:31:27 +00:00
Zuul
e8a87e1478 Merge "Display Network QoS rule type details" 2017-11-06 04:04:54 +00:00