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
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
Adds the logic to auto generate binding_urls and user this
binding_url to retrieve ipaddress for port.
Change-Id: I3c83ec3f23fae271c775c9b862bc9ba0c9b9e1ff
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
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
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
In do_post, "status_code != 201" is checked for twice, one of them should be "status_code != 200"
Change-Id: Ia344225f1d5a013183d6af2c7876f4acab401546
Closes-Bug: #1719476
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>
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links
Change-Id: I3d01190d4010d77676173125196fb521b8cf45c7
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
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
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
Currently several warnings are being thrown when running
tox -e docs, this is an attempt to fix those warnings
Change-Id: I26f3e1d83f2bfc7c5d5cd2a9393b24c992ff1122
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
As a follow up to Icd44684b3d05ff6a07665348c08adff8245f2523
Use cors.set_defaults instead of app.set_latent.
Change-Id: I0dfe41ecb95182ce9a66d247f7120dadf3ae4b9f
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
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
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
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