Commit Graph

148 Commits

Author SHA1 Message Date
OpenDev Sysadmins f27f7f93a0 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:19 +00:00
Zuul d04678ecf5 Merge "Change state_path to use its default value" into stable/pike 2017-11-22 21:54:06 +00:00
JinLi 0bbb1cfe3d Change state_path to use its default value
State_path is defined in gluon/conf/config.py, its default value is $gluon_home/gluon.
In the [default] section of the /etc/proton/proton.conf file, its value overrided to
/opt/proton/ which can cause confusion. This patch changes it back to use default value
for state_path defined in gluon/conf/config.py.

Change-Id: I6af2d7e04e51b0476430975c10cc01fca24c9d9d
(cherry picked from commit 0bbfe4f360)
2017-11-22 19:47:47 +00:00
Jin Li 0694d80b8b Remove confusing else statement
The append_model() function in the generator.py file has a confusing else
statement. There is no need for setting
model['file_version'] = yaml_dict['file_version'] as entering the else
statement implies they are equal.

Change-Id: I5278677ac5890350dfac6d58cc8b04ff91f33849
(cherry picked from commit a0bffe14c0)
2017-11-22 19:47:25 +00:00
JinLi 9f43bfed7d Change status code to 200
In do_post, "status_code != 201" is checked for twice, one of them should be "status_code != 200"

Change-Id: Ia344225f1d5a013183d6af2c7876f4acab401546
Closes-Bug: #1719476
(cherry picked from commit 27f386ab68)
2017-09-27 16:28:17 +00:00
Bin Hu bad0b7def5 Updated Gluon Documentation for Pike Release
Updated documentation includes:
- doc/source/devref
  * Update on Gluon Authentication and Authorization
  * Version Management in Gluon API Specification and updated examples
  * Updated examples for Proton Version Management
  * Updated repo structure
- doc/source/installation
  * Updated installation guide for etcd and gluon
- doc/source/usage.rst
  * Updated user guide
- releasenotes/source
  * Updated release notes

Change-Id: I836690ccb5c538031e624f5f547b5f2c594ca4ad
Signed-off-by: Bin Hu <bh526r@att.com>
(cherry picked from commit 0e99426b9e)
2017-08-29 21:42:32 +00:00
shangxiaobj 4c4d05c106 Replace http with https for doc links in gluon
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links

Change-Id: I3d01190d4010d77676173125196fb521b8cf45c7
(cherry picked from commit 4acc278260)
2017-08-29 03:51:20 +00:00
JinLi 49b561e648 Modify proton.cof and move files around
Change [keystone_authentication] to [keystone_authtoken] in proton.conf
doc/samples/proton.conf.sample is for documentation purpose, move to doc/samples
etc/proton/proton.conf is for installation to copy to /etc/proton, move to etc/proton

Change-Id: I68058c731accd5d883317f26adec2db310b74ba1
(cherry picked from commit f6201e9533)
2017-08-29 02:38:26 +00:00
JinLi d90e457515 Add version number into URL
When backend driver generates url, it need to add the version
number into the url.
Before: /proton/net-l3vpn/ports/<id>
After: /proton/net-v3vpn/v1.0/ports/<id>

Change-Id: I4ccccc0312ad8613d55abb0daadf8160f704ed17
(cherry picked from commit 8668c8d613)
2017-08-26 07:24:06 +00:00
JinLi 1be7fe9028 Policies in yaml
Implement functions allowing to define object_level policies in
model's yaml file

Change-Id: I4a4b70edf95c56d8dba7ee669d5ccc8bd387c4d8
(cherry picked from commit ecd29999cb)
2017-08-26 01:19:58 +00:00
zhaojingjing0067370 acbada80bc Function delete_port() takes exactly 3 arguments (4 given) in handle_port_delete()
When deleting net-l3vpn port, TypeError: delete_port() takes exactly 3 arguments (4 given).
delete_port() is called in File "/usr/lib/python2.7/site-packages/gluon/shim/api_models/net_l3vpn.py",
line 229, in handle_port_delete self.backend.delete_port(key, self.model, deleted_obj).

Change-Id: I1cb080104cfa1decdc3b8f45d102636d3d1e6af7
(cherry picked from commit 83ed959007)
2017-08-24 14:35:05 +00:00
JinLi 2ad2d10e36 Gluon object-level authorization
Implements object-level authorization. e.g. create-port, list-port

Change-Id: I70c022108dd7019cd169dca02bdb3d47d48b6717
(cherry picked from commit 69c47a7d4b)
2017-08-23 18:49:18 +00:00
Omar Tleimat 6e32bf7428 Resolve warnings in Sphinx documentation
Currently several warnings are being thrown when running
tox -e docs, this is an attempt to fix those warnings

Change-Id: I26f3e1d83f2bfc7c5d5cd2a9393b24c992ff1122
(cherry picked from commit 2fe5276a56)
2017-08-20 05:35:17 +00:00
zhaojingjing0067370 643718c5c4 The para into "add_model()“ should be changed to model in function ”build_api()“.
There is "model = load_model_for_service(service)" in function ”build_api()“.
And ”model“ can be used more reasonably in the function.

Change-Id: I26ed5314d0c27e8ddf0c32a2f38b91648de5e577
(cherry picked from commit 32b6ba1803)
2017-08-20 05:20:35 +00:00
Jenkins bb19c88fda Merge "Improve README" 2017-08-09 18:40:54 +00:00
zhangdebo1987 de18b6efae Improve README
1.Update links.
2.Fix a linefeed problem.

Change-Id: I4e0dfd4f765ca1f0e09dea5a274be40813fc0347
2017-08-04 08:46:44 +08:00
Nir Magnezi 056b07ea71 Stop using deprecated CORS.set_latent()
As a follow up to Icd44684b3d05ff6a07665348c08adff8245f2523
Use cors.set_defaults instead of app.set_latent.

Change-Id: I0dfe41ecb95182ce9a66d247f7120dadf3ae4b9f
2017-08-01 13:03:22 +03:00
Jenkins 224ebeab8f Merge "Set environment variables for protonclient" 2017-07-26 22:39:06 +00:00
Jenkins cdf947e48e Merge "Add configuration option for policy.json file path For user authorizations, oslo_policy need to load the rules and policies defined in the policy.json file. When the oslo_policy enforcer is initializing it will look for the path of this file in cfg.CONF. Gluon needs to add this configuration option to its configuration." 2017-07-26 22:36:13 +00:00
JinLi 081c86f494 Set environment variables for protonclient
protonclient requires user credentials to be set up as environment
variable when keystone is enable for authentication. Add an openrc
file to help setting up this variables.

Change-Id: Idea1112a61b030d869371642575147cf6aa46d18
2017-07-26 12:41:35 -07:00
JinLi e1b0fdaad1 Add configuration option for policy.json file path
For user authorizations, oslo_policy need to load the rules and policies defined in the policy.json file. When the oslo_policy
enforcer is initializing it will look for the path of this file in
cfg.CONF. Gluon needs to add this configuration option to its
configuration.

Change-Id: I248d5c00a7259bb62bacf20d3ea2975293500c5e
2017-07-26 12:37:24 -07:00
Jenkins 8f35d65a1c Merge "Rule to code" 2017-07-26 18:32:23 +00:00
Jenkins 12c6c26736 Merge "Update formatting in Contrail docs" 2017-07-26 18:32:18 +00:00
Hangdong Zhang b42d94e851 Update the documentation link for doc migration
Change-Id: Ia6fc477b73ba8c4ceca47ddf38bad6c5bfe30330
2017-07-24 15:31:14 +08:00
JinLi 8fefd47b22 Rule to code
This patch only moves rule definitions from policy.json to code.
Policies definitions e.g. "create_ports" or "get_ports" will
still be defined in the policy.json file.

In the future, policy definitions will be auto generated from model's
yaml files[1]. Then policy definitions will be removed from the
policy.json file.

[1] https://github.com/openstack/gluon/blob/master/doc/source/devref/gluon-auth.rst#defining-authorization-rules

Change-Id: I266ea81d1df198e775a93902984d9865fc6201a0
2017-07-13 17:07:51 -07:00
Kamil Renczewski 5dc0497be7 Update formatting in Contrail docs
Change-Id: If8fd3bd867f9cb1313e3e16914f6fc4571289059
2017-07-12 16:34:53 +02:00
Jenkins 0d9ad1373c Merge "Update documentation for Contrail installation" 2017-07-07 13:35:34 +00:00
Kamil Renczewski 03211a2f05 Update documentation for Contrail installation
Change-Id: I9b959d1bf468a1d0fd7ce06e4e55f1e903c30fea
2017-07-05 17:48:41 +02:00
JinLi d435203e6c Fix incorrect commands adding Gluon service to Keystone
The commands in appendix of gluon-auth.rst are not right and
cause errors when running in terminal. The changes reference
ocata doc:
https://docs.openstack.org/ocata/install-guide-obs/neutron-controller-install.html

Change-Id: If7a703add8d378dc9184f50dcc6dea56e69b3876
Closes-Bug: #1698245
2017-06-27 19:05:39 -07:00
Jenkins 81d1dbe31e Merge "Moving hardcoded constants to config file" 2017-06-14 18:14:47 +00:00
JinLi 9c8902cc26 Moving hardcoded constants to config file
This is the first commit that starts the process of moving hardcoded
constants into config files. There will be more commits in future
as we identify more hardcoded constants in our code.

Change-Id: I0605567c8fa34cb0e809525b4b9194ebd02751eb
2017-06-13 12:21:14 -07:00
Jenkins b27d384d4d Merge "Proton Version Management" 2017-05-31 21:21:15 +00:00
Tin Lam 5fff618917 Fix doc gate failure
This patch set fixes the blocking documentation gate failure for Gluon.

Change-Id: Ic1e1b2ea8c65ba9d29940d1e9034857bfc78d0c6
2017-05-31 03:42:37 -05:00
JinLi 618e637f8a Proton Version Management
This patch impletements the Proton Version Management specifications
located here: https://review.openstack.org/#/c/456772/

Change-Id: I7581b55dbaac170439ac9274454a5e2c553fa7ca
2017-05-23 15:53:24 -07:00
Jenkins b82abe1579 Merge "Replace six.iteritems() with .items()" 2017-05-23 17:41:29 +00:00
Jenkins 771ade900d Merge "Update to use os-testr to get better report" 2017-05-23 17:40:46 +00:00
Tin Lam 2ce4b26667 Remove sqlite_db parameter from set_defaults
oslo.db removed the deprecated sqlite_db option in its set_defaults()
method in [0].  This patch set updates the code and fixes the gating error.

[0] cc64f70105

Change-Id: If31a15fe594243162315cd75f561d11e20fc3241
2017-05-22 21:21:38 -05:00
Jenkins 98a7264bd3 Merge "Adding initial version of the SFC to Gluon" 2017-05-01 23:45:44 +00:00
Georg Kunz 0ca4eaa01d Adding initial version of the SFC to Gluon
This is an initial version of a Gluon API model for the IETF SFC
model.

Note: This is is a simplified version targeting the Gluon demo at the
Boston OpenStack summit. It does not fully represent the IETF SFC model.
The model is supposed to be extended in future releases.

Change-Id: I243f10be4f39baa6bce767283070e2a4915ef93a
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
2017-04-30 22:06:17 +02:00
Jin Li 7843037629 Proton Version Management
Add Proton versioning specifications into doc folder.

Change-Id: Iac04b61184601f9c8a96d44a370dbbac48bd73b3
2017-04-26 19:31:13 +00:00
loooosy 373d7f0721 Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators. We can
use dict.items instead, as it will return
iterators in PY3 as well. And dict.items/keys
will more readable.
2.In py2, the performance
about list should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: Ida473d702a89e067c350c5cfde6c1982fb466577
2017-04-15 15:11:53 +08:00
Tin Lam 92627678c4 Update to use os-testr to get better report
Change-Id: Iee2e7683672a1551d8a6409fab8b2166c50722b7
2017-04-14 22:32:45 -05:00
Jenkins 629fd57ac5 Merge "Extending L3VPN model to configure BGP peerings" 2017-04-12 18:47:48 +00:00
Georg Kunz 4eee5af002 Extending L3VPN model to configure BGP peerings
This patchset extends the existing L3VPN model with additional
objects which allow to configure BGP peerings between SDN controllers
or data center gateways.

Change-Id: Id4d8e572f75e7246e9fa7006c792df31b13cea2f
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
2017-04-12 20:33:05 +02:00
Bin Hu 4630cc62d1 Support all API YAML Models by default
Service API Models are defined in gluon/models directory, where each
sub-directory is a model of NFV networking service. An exemplary structure
looks like:

    gluon/models/net-l3vpn/api.yaml

A more generic example looks like:

    gluon/models/<service>/<name>.yaml

Currently, in gluon/cmd/config.py, service model is net-l3vpn only by
default. When a new service model is added, we need to add the new
service model in "service_list" of proton.conf, and restart the service
by something like:

    proton-server --config-file proton.conf

If some user forgets to add it to proton.conf, even if new service model
is defined appropriately, Proton Server only loads net-l3vpn by default.

This patch changes the default model to be all models under gluon/models
directory. This means that if a user adds a service model definition, he
does not have to change proton.conf. By simply restarting proton-server,
all models will be loaded by default. The user needs to change proton.conf
ONLY IF he has specific needs of supporting specific service(s).

So this patch improves usability of adding / removing new service models
on-demand.

The original work is credited to Thomas Hambleton.

Change-Id: If2e5b7225105ca0dbbda4bb85090ce3c86e0e7f8
Signed-off-by: Bin Hu <bh526r@att.com>
2017-04-12 09:49:01 -07:00
Jenkins b7b7bc331a Merge "Base URI return values" 2017-04-12 14:32:29 +00:00
JinLi a19c4befdc Base URI return values
Add the status attribute to version

Change-Id: I9115848e9d9b7b7191a85bb83840ee9f5ab3782a
2017-04-10 12:25:57 -07:00
Jenkins f7b3540413 Merge "Refined installation instructions" 2017-04-06 19:02:18 +00:00
Tin Lam 25a8b1634d Remove translation of log messages from gluon
The i18n team has decided not to translate the logs because it's not
very helpful.  See [1] and [2].  This removes the uses of _LE, _LI,
and _LW translation markers to simplify logging.  Currently these
markers are causing the gate to fail for gluon.

[1] http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I2ed70abf5d9cd6a762b724113c10bc6ca70b5188
2017-04-05 23:01:31 -05:00
Georg Kunz 68b3188a4e Refined installation instructions
Change-Id: Ibdfd0dfaf1290226be2a30682b6efd0d86dcd900
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
2017-04-04 00:23:13 +02:00