Commit Graph

102 Commits

Author SHA1 Message Date
OpenDev Sysadmins 05a3cef3be 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
JinLi ee960d5ae5 Base URI return values
Add the status attribute to version

Change-Id: I9115848e9d9b7b7191a85bb83840ee9f5ab3782a
(cherry picked from commit a19c4befdc)
2017-04-12 14:34:06 +00:00
Georg Kunz b16b73a198 Refined installation instructions
Change-Id: Ibdfd0dfaf1290226be2a30682b6efd0d86dcd900
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
(cherry picked from commit 68b3188a4e)
2017-04-07 06:13:40 +00:00
Tin Lam 3830d6d27a 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
(cherry picked from commit 25a8b1634d)
2017-04-06 18:34:58 +00:00
Georg Kunz abbb4e6844 Fixing broken import statement
Uncommenting a previously commented import statement. This import
statement is needed to load the configuration options of the
proton server.

Change-Id: I507070825d9e3d9064d0924eaea4d6e610590c48
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
(cherry picked from commit c99134524a)
2017-04-01 01:23:09 +00:00
Georg Kunz 528172f6e4 Fixing DB test after sqlite_db config option was removed
The sqlite_db config option was deprecated and has now been
removed from oslo.db which breaks this basic test. We use a
simple hardcoded database name instead.

Change-Id: I164f3523d3561340bdc85433075f49e551a6a3da
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
(cherry picked from commit 1b7b3c9474)
2017-03-31 17:28:35 +00:00
Jin Li ec9f6fadea Remove unused import statements
Romove unused import statements from unitest files.
Also comment out unused import statements from non-test files,
keep them there in case they are needed in the future.

Change-Id: Id2d900839ec364c0b9108ef1c81e71ffe51207ff
(cherry picked from commit 458c177871)
2017-03-22 20:24:31 +00:00
Bin Hu 7b51c0828a Cherry Pick - Update Gluon Installation Instruction
Because we already have stable/ocata branch, the installation
instruction needs update so that users will only clone from
stable/ocata branch. Thus the option of cloning from master
branch is removed.

Change-Id: I8307929ad4b0cc55e243a9df083fc6e1cb3acb42
Signed-off-by: Bin Hu <bh526r@att.com>
(cherry picked from commit ec3fcb10d9)
2017-03-04 17:19:26 +00:00
Jenkins d24d3c3490 Merge "Cherry Pick - Fix the module-name typos" into stable/ocata 2017-03-01 20:24:17 +00:00
Jenkins 7817510901 Merge "Cherry Pick - Remove unused logging import" into stable/ocata 2017-03-01 19:55:59 +00:00
yuhui_inspur 4867cd907d Cherry Pick - Fix the module-name typos
Fix the module name 'Glance' -> 'Gluon'.

Change-Id: Ia38fe824c06a9a2f9bef8f3ca6d136002499bc15
2017-03-01 19:20:37 +00:00
Anh Tran c86f9e794b Cherry Pick - Remove unused logging import
Change-Id: Ic71ea287803f792d70105ec24012ee812b078401
2017-03-01 18:49:38 +00:00
Bin Hu 4f681755d0 Cherry Pick - Bug fix: Update the descripton of Base URL Access
When accessing Base URL, a description text will be shown.
Current description text is out of date. This patch updates
the description text to match current Gluon design.

Change-Id: I19613f43a29d66d36168f7bef037bdce541123b8
Signed-off-by: Bin Hu <bh526r@att.com>
2017-03-01 18:42:44 +00:00
Jenkins 236856c034 Merge "Update UPPER_CONSTRAINTS_FILE for stable/ocata" into stable/ocata 2017-02-27 19:28:32 +00:00
Jenkins e666c8787a Merge "Update .gitreview for stable/ocata" into stable/ocata 2017-02-27 19:26:54 +00:00
Jin Li df4cd31fe5 Back port this bug fix to stable/ocata
Return the correct verion in RootController's get method

The RootController's get method returns 'v1' as the default version.
It should have returned "proton" instead

Change-Id: I723e5e1486c026aaad58a0c09267740c33e830e9
Closes-Bug: #1661108
(cherry picked from commit 6316e37eb5)
2017-02-21 18:21:41 +00:00
Doug Hellmann 9b68566dd9 Update UPPER_CONSTRAINTS_FILE for stable/ocata
Change-Id: Ia257efedd1495c1c367459771ea80a99494c7e0c
2017-02-20 10:20:54 -05:00
Doug Hellmann 11fd736914 Update .gitreview for stable/ocata
Change-Id: I6a1f525b629b12fd6275e01eb525627b4b03f4cf
2017-02-20 10:20:49 -05:00
Jenkins 47fc9747f3 Merge "Updating the ODL shim layer to port binding model" 2017-02-15 21:26:26 +00:00
Jenkins aa7edbf878 Merge "Using config option to bind to etcd server" 2017-02-15 21:26:04 +00:00
Bin Hu e95afc3f3f Gluon Documentation Update
This is a set of documentation for Gluon in Ocata Release, including
- README.rst for overview of Gluon project, and related resources
- In doc/source: updated
  * index.rst for overall documentation
  * contributing.rst with license header information
  * readme.rst       with license header information
  * installation.rst that covers Gluon installation procedure
  * usage.rst        that is Gluon's User Guide
- In doc/source/installation: added for details of installation procedure
  * install_etcd.rst
  * install_gluon.rst
  * install_contrail.rst
- In doc/source/devref: updated Developers' Guide, including
  * index.rst             with current developer documentation
  * high_level_design.rst with updated high level design of Gluon Ocata
  * repo_structure.rst    with current repository structure

Change-Id: I1aa04d3a85bbda6c5a8114115c34042e43a4a0c9
Signed-off-by: Bin Hu <bh526r@att.com>
2017-02-15 07:58:18 -08:00
Georg Kunz 617efa3616 Updating the ODL shim layer to port binding model
This patch modifies the ODl shim layer to comply with the revised
port and interface binding model in Gluon.

Change-Id: Ib4c7800203165474b4b72ac40ab5ef363d831d0c
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
2017-02-13 17:55:48 +01:00
Georg Kunz ade1ed78e2 Using config option to bind to etcd server
In OPNFV Apex deployments, the etcd server listens only at a
specific host IP address, not localhost. As a result, the Gluon
plugin cannot talk to etcd in such deployments.

This fix (mis-)uses the Neutron bind_host configuration option
to allow the Gluon ML2 plugin wrapper to idenify the IP etcd
is listening on. This should be replaced by a proper config
option later on.

Change-Id: Ib9d958c267d0364889e1213f9fc7c93b4fd04d89
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
2017-02-13 17:28:49 +01:00
Jenkins abe3b0836d Merge "Contrail ML2 mechanism driver info" 2017-02-10 15:35:51 +00:00
Kamil Renczewski ada9471d3f Contrail ML2 mechanism driver info
This commit adds information about how to install ML2 Mechanism Driver for Contrail

Change-Id: Id8d9f4706900ecfcd8ab8da4a70bccafa007557b
Implements: blueprint gluon-contrail-integration
2017-02-09 23:47:47 +00:00
Bin Hu 467ca53879 Updated Requirements and py35 Support
(1) Updated requirements.txt
(2) Updated test-requirements.txt
(3) updated setup.cfg for py35
(4) updated tox.ini for py35

Change-Id: I9f0be2b903fe9f25af458e032d0c1953cfcdd13b
Signed-off-by: Bin Hu <bh526r@att.com>
2017-02-09 10:47:28 -08:00
Jenkins bfb0f6a42d Merge "Gluon Access Control Blueprint - updates" 2017-02-08 18:21:26 +00:00
Jenkins 4c15d2a8b2 Merge "Sample policy.json and proton.conf files" 2017-02-07 22:15:01 +00:00
Jenkins eeaa40d9fa Merge "Test case for api.baseObject module" 2017-02-07 22:10:52 +00:00
Kamal Hussain 3c007e31d6 Gluon Access Control Blueprint - updates
Contains updates for the policy.json and proton.conf files

Change-Id: I7472c238c09f5cdaab161a5cbf07df12e44f78f4
Implements: blueprint gluon-auth
2017-02-07 15:55:50 -06:00
Kamal Hussain 3e374a9864 Sample policy.json and proton.conf files
Contains sample files of policy.json and
proton.conf.

Change-Id: I95e0f49cf6d7f56c02b7b6eca49579d59ef54503
Implements: blueprint gluon-auth
2017-02-07 15:10:42 -06:00
Jin Li 0f7bc907bf Test case for api.baseObject module
This patch contains unit test cases for all class inside
the gluon.api.baseObject.py module

Change-Id: I38be22ba9c12af04676f935f4b5201ca12b5503d
2017-02-02 18:33:50 -08:00
Jin Li c5f334fa1a Test case for DataBaseModelGenerator
This commit provides unit test case for
particleGenerator/DataBaseModelGenerator.py

Change-Id: I7e6276bc7601f878bde021302267c22932bc5be1
2017-02-01 18:32:02 -08:00
Jenkins 8ba391dd77 Merge "Unit testing for db.sqlalchemy.api.py" 2017-01-27 16:05:34 +00:00
Jenkins 893a87fe53 Merge "Remove white space between print ()" 2017-01-24 18:55:53 +00:00
Jenkins 4756f935a9 Merge "Remove execute permission bits from API spec doc" 2017-01-24 18:53:16 +00:00
Thomas Hambleton 1ef4f87b28 Update code to comply with Gluon API Spec
Many changes to support new Gluon API Spec.

Summary of changes:
- gluon-api-tool: New command line tool to validate an API Model.
- Restructured models directory
  - Removed proton directory
  - Created a directory for the base objects file
  - Created directory for net-l3vpn and change filename to api.yaml
  - Created directory for a test API
- Updated manager code to automatically create default interface
  object when a port object is created.
- Updated shim layer code to track the interface object and to
  handle service binding to interface instead of port
- Added new API types and validation logic
- Updated API and Database generator code to process the new
  model constructs
- Updated the test cases to complete with the new model format.
- Reworked code to support parent/child API relationships.  The
  SubObjectController now works for one level.

Change-Id: I995b46076e9fded11e4eda789dacd41a1a3b43c7
Implements: blueprint gluon-api-spec
2017-01-22 10:39:27 -06:00
Paul Carver f763f99836 Remove execute permission bits from API spec doc
RST files don't need execute permission. This commit simply removes
the execute permission bits from gluon_api_spec.rst.

Change-Id: If65954410f59535f93c3980f4c27f833d932191f
2017-01-20 09:59:15 -05:00
Anusree 6c965e3e72 Remove white space between print ()
There was a white space between print and ()

Change-Id: I944321fb8a5e78510f924d2a8c364a258add9ceb
2017-01-19 23:06:51 +00:00
Darla Ahlert 66a4889ee9 Unit testing for db.sqlalchemy.api.py
Unit tests for db/sqlalchemy/api.py

Change-Id: I28f5d7d997e150e0269cf08e2039265e13c83ec4
Co-Authored-By: Jin Li <jl7351@att.com>
2017-01-19 11:54:15 -06:00
Jenkins ce980f3865 Merge "Gluon RBAC using keystone and oslo.policy" 2017-01-19 17:45:52 +00:00
Jenkins bf4fc5aa1d Merge "Support keystone authentication on cli" 2017-01-19 17:45:02 +00:00
Jenkins 205a9fee94 Merge "Catch the right type of exceptions" 2017-01-18 18:21:39 +00:00
Kamal Hussain ae61dd568e Support keystone authentication on cli
Contains changes to support keystone
authentication for cli (protonclient).  This is
required since we enabled keystone support on REST
APIs.

Change-Id: I63ebc7f801bce172bb930d270f93dcab36dbb516
Implements: blueprint gluon-auth
2017-01-17 14:40:43 -06:00
Kamal Hussain 2bcb838b29 Gluon RBAC using keystone and oslo.policy
Contains code for intergrating keystone and
oslo.policy with Gluon.

Change-Id: Ib619a554a131d6e96cf0ce1312b2844593eb8c83
Implements: blueprint gluon-auth
2017-01-16 16:54:02 -06:00
Georg Kunz eb89344383 Config option for model handlers and backends
The model handlers and their corresponding backends can now be
specified in the configuration file of the shim layer. For every
model handler, one particular backend can be specified in a
dict.

Change-Id: I5866e921850b9bfc16f5815744f692bfe432b330
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
2017-01-16 23:30:44 +01:00
Jin Li 6e34beb89a Catch the right type of exceptions
The function get_table_class() catches the ValueError exception.
Change it to catch  TypeError and KeyError because these two are
the only possible exceptions threw inside the function.

test case of this change is covered in: 
https://review.openstack.org/#/c/419210/

Change-Id: I4b28d9bcee1dcff9f91b3535ea8dc07750e28abb
Closes-Bug: #1655784
2017-01-12 00:23:23 +00:00
Jenkins 5cda5853c3 Merge "Add entry point to our Neutron plugin" 2017-01-10 19:14:09 +00:00
Jenkins 210e5725f6 Merge "Test case for particleGenerator.generator" 2017-01-10 19:07:09 +00:00
Ian Wells 308342001e Add entry point to our Neutron plugin
This allows Neutron to load it by short name as well as with the full
path -

core_drivers = path.to.GluonPluginClass (before)
core_drivers = gluon (new)

so that it can be used from Neutron using the modern stevedore
discovery mechanism.  The old mechanism will, at some point,
be deprecated.

Change-Id: I9b357e58ac76474e15d6d273dd710d106cea00dd
2017-01-10 19:05:21 +00:00