Commit Graph

165 Commits

Author SHA1 Message Date
OpenDev Sysadmins 829fc3a742 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 5ce0314f79 Merge "wrong spelling of 'openstack'" 2019-01-10 16:16:43 +00:00
wangqiangbj 9c6f3ff5b7 wrong spelling of 'openstack'
Change-Id: Id400ddffdffe9c534eaa40522038f94a5ed22f92
2019-01-10 17:55:46 +08:00
wangqiangbj b64129d435 fix typos
Change-Id: I8a58467fa86b0e7a3e18e33dcb57f147b728bf32
2019-01-09 21:03:33 +08:00
Zuul de6af9bbff Merge "Update auth_uri option to www_authenticate_uri" 2018-12-07 19:15:37 +00:00
LeopardMa 30c55cb81b Change openstack-dev to openstack-discuss
Change-Id: I7179d695647abfa9702f494553bf4206bc31c75d
2018-12-04 03:06:57 -05:00
huang.zhiping 4dca41b155 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ibfd7165f5d8d3d9035df51fc670313126c5d3a06
2018-06-09 01:13:57 +08:00
melissaml d1e7f7e180 Update auth_uri option to www_authenticate_uri
Option auth_uri from group keystone_authtoken is deprecated[1].
Use option www_authenticate_uri from group keystone_authtoken.

[1]https://review.openstack.org/#/c/508522/

Change-Id: Icbc6b3dd809e1f302d3cac9731f4845bc4df9f62
2018-04-18 21:21:12 +08:00
Zuul a2ef179412 Merge "Auto generate backend for core plug_in" 2018-01-08 23:35:22 +00:00
JinLi 731ed8c5d4 Auto generate backend for core plug_in
Adds the logic to auto generate binding_urls and user this
binding_url to retrieve ipaddress for port.

Change-Id: I3c83ec3f23fae271c775c9b862bc9ba0c9b9e1ff
2018-01-04 23:36:54 +00:00
Jin Li 3fa2a729ac Add ipaddress to BaseServiceBinding
If we need to add ip address when we are doing bindings,
we should add ip address as an attribute to BaseServiceBinding.
By adding it to the BaseServiceBinding, we will enforce all bindings
to have a consistent name across all services.

For example, in ietf-sfc we have both sfDataPlaneLocator and
sffDataPlaneLocator which extends BaseServiceBinding.They named their
ip address attribute “ip”. For net-l3vpn, they have vpnBinding extends
BaseServiceBinding, and it name its ip address attribute “ipaddress”.
This inconsistence in naming the ip attribute causes some troubles
in auto generating the backend.

Change-Id: I9f3f53937ae25e5e1dbfc5939db18d476c137f86
2018-01-04 15:24:50 -08:00
Zuul 8b721a0531 Merge "Remove confusing else statement" 2017-11-22 19:10:53 +00:00
Jin Li a0bffe14c0 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
2017-11-22 18:50:16 +00:00
JinLi 0bbfe4f360 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
2017-11-13 18:46:45 -08:00
JinLi 27f386ab68 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
2017-09-25 15:55:24 -07:00
Bin Hu 0e99426b9e 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>
2017-08-29 13:46:19 -07:00
Jenkins ee99e05e3c Merge "Replace http with https for doc links in gluon" 2017-08-29 03:50:26 +00:00
shangxiaobj 4acc278260 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
2017-08-28 19:38:59 -07:00
JinLi f6201e9533 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
2017-08-28 17:13:10 -07:00
Jenkins adab3f1ca8 Merge "Add version number into URL" 2017-08-26 07:19:21 +00:00
Jenkins 5b46ab1021 Merge "Policies in yaml" 2017-08-26 01:17:10 +00:00
JinLi 8668c8d613 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
2017-08-25 17:25:38 -07:00
JinLi ecd29999cb Policies in yaml
Implement functions allowing to define object_level policies in
model's yaml file

Change-Id: I4a4b70edf95c56d8dba7ee669d5ccc8bd387c4d8
2017-08-25 16:09:57 -07:00
Jenkins 4925187f65 Merge "Function delete_port() takes exactly 3 arguments (4 given) in handle_port_delete()" 2017-08-24 14:26:17 +00:00
zhaojingjing0067370 83ed959007 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
2017-08-24 14:48:01 +08:00
Jenkins e43336b05c Merge "Gluon object-level authorization" 2017-08-23 18:29:08 +00:00
JinLi 69c47a7d4b Gluon object-level authorization
Implements object-level authorization. e.g. create-port, list-port

Change-Id: I70c022108dd7019cd169dca02bdb3d47d48b6717
2017-08-23 10:55:35 -07:00
Jenkins d8b4fa5a56 Merge "Resolve warnings in Sphinx documentation" 2017-08-18 22:51:52 +00:00
Jenkins 04e39bfb95 Merge "The para into "add_model()“ should be changed to model in function ”build_api()“." 2017-08-16 18:43:24 +00:00
Omar Tleimat 2fe5276a56 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
2017-08-16 09:36:34 -07:00
Jenkins bb19c88fda Merge "Improve README" 2017-08-09 18:40:54 +00:00
zhaojingjing0067370 32b6ba1803 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
2017-08-09 11:03:10 +08: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