Commit Graph

1436 Commits

Author SHA1 Message Date
Tony Breeds 52e614a7bb Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: Ib26b09734789b398acd8f104081d8679174243b1
2017-09-12 16:02:55 -06:00
Jenkins 3c211f30af Merge "Update the documentation link for doc migration" 2017-07-24 22:51:10 +00:00
Jenkins c2783e9880 Merge "Add SFC cli for OSC plugin" 2017-07-24 11:09:47 +00:00
OpenStack Proposal Bot 9055183d39 Updated from global requirements
Change-Id: I0126609c076ee715b84d357b007ffbef6e0ebfe8
2017-07-23 13:52:20 +00:00
Hangdong Zhang 7345d6ae4e Update the documentation link for doc migration
Change-Id: Ia07630b2626781d89b1957a96706e22a9e28674f
2017-07-22 19:31:28 +09:00
Jenkins 00fc90bae9 Merge "Replace uuid.uuid4() with uuidutils.generate_uuid()" 2017-07-18 19:53:14 +00:00
ritesh.arya 28fc2dcf06 Replace uuid.uuid4() with uuidutils.generate_uuid()
Openstack common has a wrapper for generating uuids.
We should use that function to generate uuids for consistency.

Change-Id: I86ae28e6042d1fac2b08540add8a9e23c9254c86
2017-07-18 12:06:17 +00:00
OpenStack Proposal Bot 37856d9d13 Updated from global requirements
Change-Id: I607d35de1ff5d26747629a5f1dd5c114808b5ed7
2017-07-18 01:56:30 +00:00
OpenStack Proposal Bot dbf952e326 Updated from global requirements
Change-Id: Idcc7808ae5af7fc42dafc0fc04c3ca1d69239288
2017-07-13 14:24:21 +00:00
Mohankumar e1c98e1b7a Add SFC cli for OSC plugin
Implements: blueprint openstackclient-cli-porting

Change-Id: Ifeb62bad26ffeb0bb8b548c56d2d6a620a922f78
2017-07-13 11:03:50 +00:00
Akihiro Motoki f2a4d5253c doc: autogenerate neutron CLI reference
This replaces the doc-migration work. We can avoid the maintenance
cost by generating CLI reference for neutron CLI like this.

This patch introduces a new sphinx directive to render CLI
global options to achieve the goal. This can be migrated to
cliff sphinxext later.

Change-Id: I7089df3f7fc6475ebdd1e71221492baf12f18226
2017-07-10 11:26:25 +00:00
Akihiro Motoki 423890a495 doc: autogenerate OSC plugin command reference
Recently cliff introduced a sphinx extension directive named autoprogram-cliff
which genarates command-line help automatically. By using it, we no longer
need to write command-line help document separately.

Also fixes minor string substitution issue in a BGPVPN command.

Note that the new cliff release with the directive is not released yet,
but there are several number of OSC plugin commands proposed and
having a local copy would help such developers.

Change-Id: I6b1aee89f406ac449fbc43e210c4ca7ad901b19b
2017-07-10 11:25:33 +00:00
Akihiro Motoki c4ec6759b6 doc: Improve network CLI page
* Move OSC first as neutron CLI is deprecated
* Add more information on OSC usage (links to embeded command list
  and the mapping guide)
* Add deprecation notice for neutron CLI

This commit also makes toctree structure simpler
At now, we have two index page unlinked from the top page.
I thought it is good first, but it potentially makes things tricky.
Let's remove such tweaks for easy maintenance.

Change-Id: I7fd79f465fa6c04bf5b13f6578796d4c2d01edfd
2017-07-10 11:25:29 +00:00
Jenkins daceed85e9 Merge "Use entry points to define neutron CLI commands" 2017-07-07 21:16:19 +00:00
Jenkins 935298013f Merge "doc: use new config options of openstackdocstheme" 2017-07-07 21:14:52 +00:00
Jenkins 00e3db3adc Merge "Use flake8-import-order plugin" 2017-07-07 21:14:41 +00:00
Cao Xuan Hoang f4c0468b36 Use flake8-import-order plugin
In reviews we usually check import grouping but it is boring.
By using flake8-import-order plugin, we can avoid this.
It enforces loose checking so it sounds good to use it.
This flake8 plugin is already used in tempest.

Note that flake8-import-order version is pinned to avoid unexpected
breakage of pep8 job.

Setup for unit tests of hacking rules is tweaked to disable
flake8-import-order checks. This extension assumes an actual file
exists and causes hacking rule unit tests.

Change-Id: I61e683ab0119e4ae90b7107f0690528d789e3875
2017-07-06 16:47:49 +07:00
Akihiro Motoki 27cdd7d84d Enable warning-is-error in doc build
Part of doc-migration work

Change-Id: I956975ab28be163ca0b2024456360595e649d740
2017-07-05 09:14:16 +09:00
Akihiro Motoki 6295f85ab2 Use entry points to define neutron CLI commands
It allows us to generate CLI references automatically using cliff.sphinxext
(which will be available in the next release of cliff).
This allows us to avoid maintaining the in-tree CLI refernece manually.

Change-Id: I3950ed8cf50508210c8b3270724e283aea8e1673
2017-07-03 05:26:43 +00:00
Akihiro Motoki 7790167f6f doc: use new config options of openstackdocstheme
The new simple configuration way was introduced in
openstackdocstheme 1.11.0. This commit introduces the new way.

Also drops unnecessary sphinx configurations like latex,
texinfo and manpages.

Change-Id: I587eb8cbd3e64c65dfc7247a01eca90af6adad4e
2017-07-03 01:52:50 +00:00
Jenkins 53e55938d9 Merge "CLI implementation should raise CommandError" 2017-06-30 11:55:42 +00:00
Jenkins 60a1230659 Merge "Call mock.patch.stopall in OSC unit tests" 2017-06-30 11:52:44 +00:00
Jenkins 2513b86893 Merge "move existing content into the new standard structure" 2017-06-29 07:00:28 +00:00
OpenStack Proposal Bot cee7b2d4fb Updated from global requirements
Change-Id: Ib08574e2413af218f70af0e56b08286256ccb79b
2017-06-27 12:22:04 +00:00
Sean Dague 24f508fba7 remove explicit global_request_id handling from session client
The neutron client that inherits from keystonauth1 can now use the
built in 2.21.0 global_request_id handling. This just cleans up some
code in the process.

Change-Id: I6df5c98ebf447d3e3783ef23b4ef4d8e8af94c9b
2017-06-26 11:12:18 +00:00
Jenkins 106bc00917 Merge "switch to openstackdocstheme" 2017-06-26 09:11:18 +00:00
Akihiro Motoki 8cbc51cda4 move existing content into the new standard structure
This patch rearranges and reformats existing content.

Change-Id: Ibcad865d2ae45696628f77b5bd5f0e6b1f6842cf
2017-06-23 00:45:07 +09:00
Akihiro Motoki 06ba42ce53 switch to openstackdocstheme
Change-Id: Ic8f9b6821da7958a895dad6053d2cd1b6761a405
2017-06-18 03:11:30 +09:00
OpenStack Proposal Bot 13ac0901d2 Updated from global requirements
Change-Id: Ib4525d1804cb1d05066d5ddf074ab3d59a951d6b
2017-06-15 15:33:41 +00:00
Akihiro Motoki d6d42af64a CLI implementation should raise CommandError
NeutronClientException is an exception raised from API bindings
and it should not be used in CLI layer.

TrivialFix

Change-Id: I3df4c7352c96f10388df65bd16016b3ceb221248
2017-06-15 09:06:32 +09:00
Akihiro Motoki f4376220d3 Call mock.patch.stopall in OSC unit tests
OSC unit tests inherits osc_lib.test.utils and mock.patch.stopall
(or stop) is not called anywhere.

Change-Id: I1249678be7a7c823ea3824bf08e603864de023fd
2017-06-15 09:02:23 +09:00
zhaojingjing0067370 c579701497 BGP unit test 'auth-type' errors
'auth-type' in position_names is wrong, and it should be modified
to 'auth_type' for bgp peer.

Change-Id: I54a7ab54500c8d3655212e81046becee241a8c18
2017-06-08 16:45:16 +08:00
OpenStack Proposal Bot 41961a25fd Updated from global requirements
Change-Id: I7eeae5666364dd24282036c0f1b981198e645d8b
2017-06-02 22:07:10 +00:00
OpenStack Proposal Bot feb60a9cda Updated from global requirements
Change-Id: I71956aeabab94c6d938846e794dfe34f27f754f6
2017-05-30 13:43:15 +00:00
Jenkins ba535c6950 Merge "Allow global_request_id in Client constructor" 2017-05-26 21:01:46 +00:00
Sean Dague af869a4ca6 Allow global_request_id in Client constructor
This provides the facility to take global_request_id as a construction
parameter for a neutron client, and pass it through the system. This
will be used by Nova and others to set global_request_id so requests
can be tracked across services.

oslo spec I65de8261746b25d45e105394f4eeb95b9cb3bd42

Change-Id: I7ed48ad247676c71a3a7b12585572c398dda06e0
2017-05-26 08:38:28 -04:00
Jenkins b2bdca3c3a Merge "Machine-readable output for JSON/YAML format" 2017-05-25 00:00:46 +00:00
OpenStack Proposal Bot d6327431ad Updated from global requirements
Change-Id: I42d4fb6f4fc127a327ab5d543d03c354bbed33e5
2017-05-18 12:54:54 +00:00
Jenkins 34d0e79c0b Merge "FWaaS UT: Fake rule should return value returned from API" 2017-05-18 02:49:41 +00:00
OpenStack Proposal Bot 030b8ad4a7 Updated from global requirements
Change-Id: I37500788354e3d7a46002177012c592ff0e7e8da
2017-05-16 00:20:25 +00:00
Jenkins b2122ced3b Merge "Drop deprecated neutronclient.i18n wrapper" 2017-05-15 22:13:34 +00:00
Akihiro Motoki e40669237b Machine-readable output for JSON/YAML format
Currently even if machine-readable format like JSON or YAML is specified,
formatted output is displayed. When machine-readable format is used,
they should not be converted by formatters.

Change-Id: I5f1e90ff60f30380106e1aa730f96a1f72c7a166
Closes-Bug: #1687955
2017-05-14 21:44:16 +00:00
Akihiro Motoki 632671e4d9 FWaaS UT: Fake rule should return value returned from API
In FWaaS UT, fwaas.fakes.FirewallRule is expected to return the same
values returned from the API, but it returns 'any' for 'protocol'.
In FWaaS API definition, JSON null (None in python) means 'any',
so it should be None rather than 'any'.

This commit fixes it and related codes in test_firewall.py.
_generate_data() generates expected formatted data from API data.
The same logic is also needed in _update_expect_response(). This commit
introduces a common function _replace_display_columns to do this.

Change-Id: If4fa6b26f72003b6c94020a762a5c19d17b338cd
2017-05-14 21:38:22 +00:00
Akihiro Motoki c66f9726c0 Drop deprecated neutronclient.i18n wrapper
In favor of the private i18n wrapper (_i18n), the public 'i18n' wrapper
has been deprecated for several releases. Each neutron CLI plugin
(not OSC plugin) should use its own i18n wrapper and the usage of
neutronclient.i18n wrapper was deprecated. It is time to drop this.

Also fixes test_exception.py which still consumed neutronclient.i18n.

Change-Id: I27a8ace2f31bea5e1d6bf8a5ebbbfa52a3228e73
2017-05-14 20:10:47 +00:00
OpenStack Proposal Bot 5a7e65db3d Updated from global requirements
Change-Id: I773de629c1ada3116b9a15f8e4a8a9ee9f24d0ea
2017-05-03 12:23:01 +00:00
M V P Nitesh 235c4e60aa Now empty tags are not added to Networks
Added a check if the tag values is empty or not before adding that tag
to the network.

Change-Id: I92659da97fe829a7715d0bef5570a4d9c5db95da
Closes-Bug: #1603292
2017-05-01 19:56:50 +00:00
Armando Migliaccio 2e60acdff2 Be explicit about the identity plugin required in unit tests
This change fixes UT failures introduced by os-client-config===1.27.0
(and [1] in particular) that was masking the fact that these tests
were not specifying the required 'token' identity plugin.

[1] e6755872ad

Change-Id: I9521a7e1bff39c1d25b998ca12c450890517fd2f
2017-05-01 12:55:32 -07:00
Jenkins ad804c89e7 Merge "Do not append .json to sending URL" 2017-04-21 02:54:42 +00:00
Jenkins ce607ad718 Merge "Supports adding tags for port, router, subnet, subnetpool" 2017-04-19 03:14:42 +00:00
huangtianhua fbef092b6f Supports adding tags for port, router, subnet, subnetpool
Neutron supports adding tags for several resources:
network, port, subnet, subnetpool, router,
but neutronclient only support to add tags for network,
support for others .

Change-Id: Iae8da2fa0e18e14ba27ce5232db8da5fe6eb0b86
Closes-Bug: #1676697
2017-04-19 00:28:38 +00:00