Commit Graph

192 Commits

Author SHA1 Message Date
OpenDev Sysadmins b342ceaac2 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:50:56 +00:00
Yi Yang 84afe597d7 Refactor GBP resource mapping with Neutron RESTful APIs
1. Decouple GBP resource mapping from neutron plugins and use
Neutron RESTful APIs instead.

2. Move neutron_client related calls to neutron_api_mixin for
easier removing in the future.

3. Add mock_neutronv2_api to provide methods to patch the
Neutron RESTful API calls with WSGI calls.

4. Modify the existing 'UT' for the resource mapping driver, by
patching the RESTful APIs with the WSGI calls, to ensure the
test scenarios are still examined and passed.

5. Modify the existing 'UT' for the APIC mapping driver, by
patching the RESTful APIs with the WSGI calls, to ensure the
test scenarios are still examined and passed.

Change-Id: I9ec6d159b87e77fcd034b2ff6d4e5c0969798b34
Author: Yi Yang <yyos1999@gmail.com>
Co-Authored-By: Yapeng Wu <yapengwu@gmail.com>
Co-Authored-By: Ivar Lazzaro <ivarlazzaro@gmail.com>
Co-Authored-By: Robert Kukura <kukura@noironetworks.com>
2015-04-17 00:32:54 -04:00
Sumit Naiksatam c33954fb86 Setting up feature branch
Adding the correct branch reference for gitreview configuration.

Change-Id: Id1a709fcbd62f9c696c999a437d94dea1e13524a
2015-04-15 16:13:51 -07:00
Sumit Naiksatam b11a05ad1f Updating constants referenced from Neutron
Change-Id: I6d78180c45cb00ec98f5cb675ae1041826edd36b
Closes-bug: 1443662
2015-04-14 22:22:40 -07:00
Magesh GV bab6b4a82d Update GBP to work with Neutron Master (Post Juno)
Change-Id: I0262d4736e1deb990058cd7256a86badc0b9d9fd
Closes-bug: 1433530
2015-04-11 16:28:50 +05:30
Jenkins 275dab7eec Merge "fix redirect action for external policies" 2015-04-04 04:33:12 +00:00
Ivar Lazzaro eeee4ba634 fix redirect action for external policies
Service chains are now formed also when one of the
consumers is an External Policy.

In the current patch, external Policies providing a redirect
rule don't trigger the chain instantiation, need some
discussion to understand whether it makes sense and
how to test it.

Change-Id: I71323de7272b74f673ef9c368c6d60272e3dc6de
Partially Closes-Bug: 1432779
2015-04-02 20:18:20 +02:00
Jenkins e00e04e2a5 Merge "Add GBP APIs to interact with Neutron RESTful Client" 2015-03-31 23:24:37 +00:00
Magesh GV 1ea0d81437 Add oslosphinx to requirements.txt
oslosphinx is required in requirements file for building the
gbp documents

Change-Id: If205bd2b895881df34492521d34c4201b15c8bab
Closes-bug: 1438012
2015-03-30 10:43:20 +05:30
Jenkins 274924952b Merge "Adding GBP integration and functional gate" 2015-03-29 02:51:34 +00:00
Sumit Naiksatam 84939e8228 Adding GBP integration and functional gate
This patch implements the hooks so that functional and integration
tests can be run in the group-based-policy repo.

Currently, the configured devstack for this job is enabled to run GBP
exercise scripts, which result in complete end-to-end integration
testing of the GBP service and client components along with integration
with Neutron and Nova.

A placeholder functional test case is also added. A functional test suite
will be added in a separate commit.

Change-Id: Id705e5755b9662f6e297f29836d6983d66f845a8
2015-03-28 12:36:53 -07:00
Sumit Naiksatam 4a506354f3 Update the oslosphinx version
Change-Id: I431c0cb4ead24f1d3205ab0e356b6410a40376d1
Closes-bug: 1437146
2015-03-26 21:33:02 -07:00
Yi Yang 07ba164fd7 Add GBP APIs to interact with Neutron RESTful Client
1. Add GBP APIs to interact with Neutron RESTful client to:
    CRUD networks
    CRUD subnets
    CRUD ports
    CRUD security groups
    CRD security group rules
    CRUD routers
    add/remove router interfaces

2. Add UT for the above APIs

Change-Id: If7d73284ad9e7e09bd261e5ba0d82d67ec99ec49
Signed-off-by: Yi Yang <yyos1999@gmail.com>
Author: Yi Yang <yyos1999@gmail.com>
Co-Authored-By: Yapeng Wu <yapengwu@gmail.com>
2015-03-26 10:53:04 -04:00
Jenkins 5e9db631bc Merge "Add Neutron Client Utilities" 2015-03-25 10:06:11 +00:00
Sumit Naiksatam 4fc10548e7 Adding policy.json entry to setup.cfg
Change-Id: I008363523b55ab43c27aab201696d67a6ea5853e
Closes-bug: 1433424
2015-03-19 22:46:26 -07:00
Yapeng Wu 4f2ffb3943 Add Neutron Client Utilities
Add neutron client utilities for wrapper class:
    neutron client configuration
    neutron admin token utils
    neutron client wrapper class

Change-Id: I22290d75a6628491c25c7b4cbd0cdfa4a2ab6749
Co-Authored-By: Yi Yang <yyos1999@gmail.com>
Co-Authored-By: Yapeng Wu <yapengwu@gmail.com>
Signed-off-by: Yapeng Wu <yapengwu@gmail.com>
2015-03-19 21:50:18 -04:00
Robert Kukura 985f435acb Avoid exception deleting PTG with no subnets
The resource_mapping driver's PTG cleanup code no longer assumes PTG
has at least one subnet, which can occur when subnet allocation fails
when the PTG is created. Unit test for subnet exhaustion added.

Closes-bug: 1416177
Change-Id: I45529255723282b6e0d8a884cac2bd604ea9b61a
2015-03-16 16:01:36 -04:00
Robert Kukura 75dd238e50 Properly handle driver exceptions during postcommit
If any exception is raised by a driver's create_<resource>_postcommit
method, the partially-created resource is deleted before returning the
exception to the client.

If any exception is raised by a driver's delete_<resource>_postcommit
method, the exception is logged, but is not returned to the client.

Also, the log messages are made more consistent and readable.

Closes-bug: 1407321
Partial-bug: 1416177
Change-Id: I7c3096ae436f23d68d695b813f7d8d0b2588dbfe
2015-03-16 15:27:34 -04:00
Yapeng Wu 99318bb8d3 Change endpoint register URL and information
ODL GBP driver changes endpoint register/unregister URLs.
The endpoint register "port-name" has replaced "neutron-port-id".

Change-Id: I1681b5290cf321afd0caca54094e8ac2f425ff9c
Closes-Bug: 1428662
2015-03-05 09:35:01 -05:00
Jenkins 3c35515495 Merge "Fix Network Service Policy Implementation" 2015-03-04 05:38:57 +00:00
magesh 74c1fecebd Fix Network Service Policy Implementation
1) Adds validation for supported NSP parameters in RMD
2) Fixes issue with unset/cleanup of NSP from PTG
3) Prevent deletion of in use NSP

Change-Id: Ic67c705d239741f35792ed0e4b06f48663df63ff
Closes-Bug: 1423689
Closes-Bug: 1426902
Partial-Bug: 1421413
2015-03-04 10:45:57 +05:30
Robert Kukura 574534a53b Reject update of L2Policy's L3Policy
The resource_mapping policy driver rejects L2Policy updates that
attempt to change the l3_policy_id attribute.

Closes-Bug: 1417724
Change-Id: Ib744bb03bb0ad561dcf9961b9a29c8d484c7367d
2015-03-03 20:38:31 -05:00
Jenkins 010adb3dad Merge "L3Policy create should have validity check for IP pool" 2015-03-04 00:17:46 +00:00
Krishna Kothapalli 3f185c7f74 L3Policy create should have validity check for IP pool
Change-Id: I8d3a68b427557da99d1f2d8b778e11f155f470f1
Closes-Bug: 1417210
2015-03-03 16:01:38 -08:00
Jenkins df6ddba7ff Merge "Remove spaces in stackname in ServiceChainInstance create" 2015-03-03 22:06:37 +00:00
Magesh GV 58e7431eb1 Fix DB constraints for Network Service Policy
Change-Id: I0bed58b836330016f1e9a35d467904a736341dba
Closes-Bug:1423791
Partial-Bug: 1421413
2015-03-04 00:45:54 +05:30
Magesh GV 022acfe887 Remove spaces in stackname in ServiceChainInstance create
Heat throws an error if the stack name has space in between.
Remove any space before invoking Heat Api in ServiceChainInstance

Change-Id: I0b43a135ec7697b00d459f52568f66ad239b01e0
Closes-Bug: #1427523
2015-03-03 16:59:43 +05:30
Magesh GV 2cb2c9fc13 Ignore NotFound Exception in Delete ServiceChainInstance
When cleaning up services in a service chain instance, NotFound
exception is safely ignored rather than propagating the exception

Change-Id: If974bdc31efd44feb77fa5eac09dba31f221ce16
Closes-Bug: 1420058
2015-02-19 09:46:02 +05:30
Robert Kukura 8922c5ffb9 Reject deletion of in-use L2Policy or L3Policy
Before deleting an L2Policy, check that no PolicyTargetGroups
reference it. Before deleting an L3Policy, ensure that no L2Policies
reference it. Raise exceptions if they are in-use.

Closes-bug: 1415244
Closes-bug: 1407323

Change-Id: Ie5d3c8a01a57a331eed46354c80ed28acad0fd04
2015-02-12 17:40:47 -05:00
Jenkins d5447f538c Merge "L3P check subnet mask smaller than pool subnet" 2015-02-12 19:48:29 +00:00
Krishna Kothapalli 3fe372144e L3P check subnet mask smaller than pool subnet
Closes-Bug: 1416156

Change-Id: Ie55892a4847dd98de171958848fc008e6cc1981b
2015-02-10 14:38:52 -08:00
Jenkins fc4daaf5d0 Merge "Prevent deletion of in use ServiceChain Resources" 2015-02-09 20:10:34 +00:00
Jenkins 5e4c2c8c04 Merge "Making gpdb abbreviation consistent across files" 2015-02-05 03:08:44 +00:00
Mohammad Banikazemi 174b15d773 Making gpdb abbreviation consistent across files
Change-Id: Ice4941f22533778428572541af0b829b57f983ff
2015-02-04 16:58:27 -05:00
Yi Yang 972d716e20 Add UT support for ODL manager
Test ODL manager for following methods:
  register/unregister endpoints
  create/update tenant
  create/delete action
  create/delete classifier
  create/update/delete l3 context
  create/update/delete l2 bridge domain
  create/update/delete l2 flood domain
  create/update/delete endpoint group
  create/update/delete subnet
  create/update contract

Change-Id: Ifc066591a1e676b59239673ed3310a358bdd3f73
Closes-Bug: 1409573
Signed-off-by: Yi Yang <yyos1999@gmail.com>
Author: Yi Yang <yyos1999@gmail.com>
2015-01-31 14:11:27 -05:00
Jenkins 13852a70c9 Merge "Add unit tests for OneConvergence GBP Driver" 2015-01-28 05:40:45 +00:00
magesh ec1cfed93a Prevent deletion of in use ServiceChain Resources
Change-Id: Icf1cf7c6e5782c561f1c8b9482af1cfaa9197b8e
Closes-Bug: 1412350
2015-01-27 14:56:33 +05:30
Jenkins b3f60dfd0f Merge "Add more UT support for ODL mapping driver" 2015-01-26 19:07:54 +00:00
Magesh GV 9f97979e16 Add unit tests for OneConvergence GBP Driver
Also fixes the issues observed in UTs

Change-Id: Ic5fcad4a75786f216aece7f5816dc46badc08996
Closes-bug: 1411555
2015-01-16 14:40:10 +05:30
Magesh GV 7ec3e875bd Add ordering of service chain nodes and specs
Change-Id: I4b6067c88ca68db036ca03daa67b4f3dd477584a
Closes-bug: 1411237
2015-01-15 19:08:08 +05:30
Magesh GV 6784abfce7 Fix rendering issue with GBP usage documentation
Change-Id: I08a77c08bff7114f4fbb59a5637868734f079a9f
Closes-bug: 1409644
2015-01-12 14:53:52 +05:30
Yi Yang e75c9e2ce2 Add more UT support for ODL mapping driver
Test ODL mapping driver in following scenarios:
  create/update/delete external segment
  create/update/delete policy target
  create/update/delete l3 policy
  create/update/delete l2 policy
  create/update/delete policy target group
  create/update/delete policy action
  create/update/delete policy classifier
  create/update policy rule
  create DHCP policy target if needed

Change-Id: I3cfc0417680532a9f9862d16cbe82466d9b61291
Closes-Bug: 1407526
Signed-off-by: Yi Yang <yyos1999@gmail.com>
Author: Yi Yang <yyos1999@gmail.com>
2015-01-08 22:33:51 +00:00
Sumit Naiksatam bf58165d23 Open Kilo development
Bump pre-version to 2015.1 to formally open master branch to Kilo
development.

Change-Id: I314aa619d3ddd44cefdc3a3ff958822eda69897e
2015-01-06 02:48:47 -08:00
Jenkins 68e8c3c858 Merge "Enforce parent redirect in all update scenarios" 2015-01-05 18:53:13 +00:00
Jenkins 105b2bb564 Merge "Fixed some errors in the GBP usage document" 2015-01-05 18:35:20 +00:00
Magesh GV cf2b00324d Enforce parent redirect in all update scenarios
1) Fixes Parent redirect enforcement when Parent ruleset is created after
   the child ruleset is asoociated with PTGs
2) Fixes child ruleset add/delete on parent ruleset update

Change-Id: I2771d6ce2fc3dcac3e9ec3f7a9556933cd9aae48
Closes-bug: 1407636
2015-01-05 19:56:07 +05:30
Magesh GV 1c7ccbef95 Fixed some errors in the GBP usage document
Change-Id: Ie473c3912508c46cfc11954203359afe1bf3c464
Closes-Bug: 1407608
2015-01-05 15:33:17 +05:30
Magesh GV 5e65c3e2da Fixed the member count check for LB PoolMember
Also fixes the stack state check when delete fails temporarily

Change-Id: I0a9adae954716d2cc47f1eb942401300814c3cbf
Closes-bug: #1400533
2015-01-05 12:51:20 +05:30
Jenkins 588983f476 Merge "Adding usage documentation" 2015-01-05 05:27:02 +00:00
Jenkins 9f48ae1df7 Merge "Wait for resource cleanup in Servicechain Instance Delete" 2015-01-05 04:55:19 +00:00