ramverma [Sun, 21 Jul 2019 13:15:10 +0000 (13:15 +0000)]
 
Changing policy decoder to support Tosca
1) Updated PolicyDecoderFileInCsarToPolicy to parse ToscaPolicy &
TocsaPolicyType from the given csar.
2) Change the parameters
3) Tests cases updated/added.
Change-Id: Ic8d652ae8043d5d332f663a6862eb08e282591cf
Issue-ID: POLICY-1889
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Jim Hahn [Fri, 19 Jul 2019 19:19:22 +0000 (15:19 -0400)]
 
Modify policy/distribution to use RestServer from common
This also entailed removing the local copy of RestServerParameters.
Also added an AafFilter, which was missing from the original code.
Change-Id: Ibbdce8c395e0149ab540a3704b3554a9d96b9705
Issue-ID: POLICY-1652
Signed-off-by: Jim Hahn <jrh3@att.com>
liboNet [Fri, 19 Jul 2019 08:48:14 +0000 (16:48 +0800)]
 
Fix proprietary licenses
remove the txt file from generated csar file
Change-Id: Ib8074b70d955440f22ea95781a698fb7e084bfb5
Issue-ID: POLICY-1867
Signed-off-by: liboNet <libo.zhu@intel.com>
ramverma [Wed, 17 Jul 2019 11:03:26 +0000 (11:03 +0000)]
 
Changing policy/distribution to use policy/models
1) Changed policy distribution framework to use entities from
policy/models
2) Changed all the test cases.
3) Commented few test cases which will be fixed along with code fixes.
4) Will be removing the old policy entities once all the pieces are
ready.
Change-Id: I1fd7b975b2e072c0b24e429903c9ca4796173929
Issue-ID: POLICY-1888
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
ramverma [Thu, 11 Jul 2019 16:24:01 +0000 (16:24 +0000)]
 
Removing docs from distribution repo
The documents are moved to policy/parent and hence removing them from
distribution repo.
Change-Id: I96f37b13280be6fc303d2d43e4720d14286de0e5
Issue-ID: POLICY-1898
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Jim Hahn [Mon, 8 Jul 2019 16:07:42 +0000 (12:07 -0400)]
 
Fix distribution due to sonar changes in common
Fixed breakages due to changes made in policy/common to satisfy
sonar.
Change-Id: Ib1e57668f727db1b87a9aa3bc9a8266884f5e994
Issue-ID: POLICY-1791
Signed-off-by: Jim Hahn <jrh3@att.com>
ramverma [Tue, 2 Jul 2019 20:52:48 +0000 (20:52 +0000)]
 
Use ToStringTester from utils-test
Changing ToStringTester from utils to utils-test.
Bumping the policy/common, policy/engine & policy/models version.
Change-Id: Id1f1b3f9a4a378c14d1adf2823aaa4c8626c8fd2
Issue-ID: POLICY-1746
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Pamela Dragosh [Tue, 2 Jul 2019 13:46:58 +0000 (09:46 -0400)]
 
Bump distribution to 2.2.1-SNAPSHOT
Released 2.2.1
Issue-ID: POLICY-1737
Change-Id: I41bf18cc17f3e287d59da86ed3cc21dc8dcafd9a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Jim Hahn [Mon, 1 Jul 2019 18:31:59 +0000 (18:31 +0000)]
 
Merge "Upgrade to released artifacts"
Pamela Dragosh [Mon, 1 Jul 2019 18:11:28 +0000 (14:11 -0400)]
 
Upgrade to released artifacts
Policy/common, models and apex are released
Issue-ID: POLICY-1737
Change-Id: I0cefaad8ad5791d07fe19382c12c5f0421361588
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
shaoqiu [Fri, 28 Jun 2019 05:45:55 +0000 (05:45 +0000)]
 
Add curly braces in shell script file
According to comment:
https://gerrit.onap.org/r/c/policy/xacml-pdp/+/90495/1/packages/policy-xacmlpdp-docker/src/main/docker/policy-pdpx.sh#43
Issue-ID: POLICY-1702
Change-Id: Ie7c37a07dfc33f6b6bca70d9f9c2cb4cfb3377f5
Signed-off-by: shaoqiu <tim.huang@est.tech>
Pamela Dragosh [Thu, 27 Jun 2019 10:34:20 +0000 (10:34 +0000)]
 
Merge "Remove POLICY_DISTRIBUTION_HOME in Dockerfile"
pdragosh [Wed, 26 Jun 2019 17:54:26 +0000 (13:54 -0400)]
 
Fix distribution latest tag
Eliminating the patch - using Rashmi's changes.
Issue-ID: POLICY-1737
Change-Id: I4a790b3da6de823bb744af270f541c0699ed8092
Signed-off-by: pdragosh <pdragosh@research.att.com>
shaoqiu [Wed, 26 Jun 2019 04:08:11 +0000 (04:08 +0000)]
 
Remove POLICY_DISTRIBUTION_HOME in Dockerfile
Update the policy-dist.sh and Dockerfile according to the comments in
commit: https://gerrit.onap.org/r/c/policy/api/+/89972
Issue-ID: POLICY-1702
Change-Id: Ia3d2ce356baac3a657da879fb9ccf5eefd2a9624
Signed-off-by: shaoqiu <tim.huang@est.tech>
Pamela Dragosh [Thu, 20 Jun 2019 20:36:02 +0000 (16:36 -0400)]
 
Upgrade to release 3.0.0 parent
Policy/parent released
Issue-ID: POLICY-1737
Change-Id: Ie2b62644526d49bc13ada05f39fc0551e5c5e428
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Jim Hahn [Mon, 17 Jun 2019 22:04:43 +0000 (18:04 -0400)]
 
Change getCanonicalName to getName in distribution
Per javadocs, getName() should generally be used instead of
Class.getCanonicalName(). This change only applies to classes; it
does not apply to File objects.
Change-Id: I7a575900f6d26065563e4907cd2176f690797021
Issue-ID: POLICY-1646
Signed-off-by: Jim Hahn <jrh3@att.com>
Jim Hahn [Tue, 18 Jun 2019 16:25:03 +0000 (12:25 -0400)]
 
Fix junit tests in distribution
Sonar fix broke some of the junit tests for parameters; fixed
those.
Also fixed some checkstyle errors (e.g., unused imports).
Change-Id: I76c57792b82b9c2ddd27bdbc35910e9b11d86ea5
Issue-ID: POLICY-1791
Signed-off-by: Jim Hahn <jrh3@att.com>
Pamela Dragosh [Fri, 31 May 2019 15:48:36 +0000 (11:48 -0400)]
 
Bump distribution to 2.2.0
Due to dublin branch.
Issue-ID: POLICY-1747
Change-Id: I889d3c5276a070404eeba86d99ca82852d2645e5
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
liamfallon [Wed, 22 May 2019 14:43:05 +0000 (14:43 +0000)]
 
Update INFO.yaml to add Jim and Ram
Issue-ID: POLICY-1775
Change-Id: I9dc75811f0d65ed9533c0485c33bf623da4fda7a
Signed-off-by: liamfallon <liam.fallon@est.tech>
liamfallon [Thu, 16 May 2019 15:09:45 +0000 (15:09 +0000)]
 
Step snapshot version of policy-distribution
Issue-ID: POLICY-1630
Change-Id: Ie107fa87bdce76eec39a8ee5ae55b700236a3017
Signed-off-by: liamfallon <liam.fallon@est.tech>
Pamela Dragosh [Wed, 15 May 2019 20:04:06 +0000 (16:04 -0400)]
 
Upgrade to release versions
Released policy/engine 1.4.0 and apex engine 2.1.0
Issue-ID: POLICY-1630
Change-Id: Ib39c9daae5966791f88885485978c1b4b95738c5
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
liboNet [Thu, 9 May 2019 00:54:06 +0000 (08:54 +0800)]
 
upgrade sdc tosca parse to v1.5.1
update pom.xml to use v1.5.1 for sdc-tosca parse
update Extract file since the DM's change
update the csar file based on new DM
update Test file to reflect the new CSAR file
Change-Id: I90da979ff1cedbdedadacc46386aa5ea0e7b6711
Issue-ID: POLICY-1720
Signed-off-by: liboNet <libo.zhu@intel.com>
ramverma [Mon, 13 May 2019 13:33:23 +0000 (13:33 +0000)]
 
Upgrade policy/parent & policy/common in distribution
Change-Id: Iada6e88ac68f4cea874d2cf832da77657df576e6
Issue-ID: POLICY-1630
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Dmitry Puzikov [Mon, 25 Mar 2019 14:16:04 +0000 (15:16 +0100)]
 
Rebase image on policy-common-alpine
Added exact version of base image
Issue-ID: INT-999
Change-Id: I149b92c6e28d0dd325f9601a6aa979767d0a2e9b
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
Pamela Dragosh [Tue, 16 Apr 2019 13:34:49 +0000 (13:34 +0000)]
 
Merge "One year cert with new component names"
Lianhao Lu [Tue, 16 Apr 2019 02:37:32 +0000 (10:37 +0800)]
 
Fix more sonar issues
Fixed the sonar issues: S134, S3725, S2129.
Issue-ID: POLICY-1638
Change-Id: I1a91b8e5e071a770faf8182e8ac1ada04b63599e
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
jhh [Mon, 15 Apr 2019 23:19:40 +0000 (18:19 -0500)]
 
One year cert with new component names
Change-Id: Ide8130ead1e5aff8d8346cb24f82233e64d4c144
Issue-ID: POLICY-1580
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Lianhao Lu [Fri, 12 Apr 2019 00:53:46 +0000 (08:53 +0800)]
 
Fix sonnar issues
Change-Id: Ic9ad2d733ace26fdd085a03af901783192d72a79
Issue-ID: POLICY-1638
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Lianhao Lu [Thu, 11 Apr 2019 02:26:45 +0000 (10:26 +0800)]
 
Gracefully release resource in file reception plugin
In the FileSystemReception plugin, we need to shutdown the thread pool
to release the resources gracefully.
Change-Id: I800e4070d7bf8c052d964139117a68dc48c50f76
Issue-ID: POLICY-1631
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Lianhao Lu [Thu, 11 Apr 2019 01:49:42 +0000 (09:49 +0800)]
 
Change logging from FlexLogger to SLF4J
Replace the FlexLogger with SLF4J in forward plugins.
Change-Id: I20077f1a400cd1a28b4b32f877d20d5628af881c
Issue-ID: POLICY-1346
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Lianhao Lu [Wed, 10 Apr 2019 06:40:11 +0000 (14:40 +0800)]
 
Add multi-thread support in FileSystemReceptionHander
By adding multi-thread support in FileSystemReceptionHander, we can have
a more thorough s3p test to test performance & stablity in multithread
situations.
Change-Id: Id263435531e26dcbadfbda6f82b26ac54a72ba1a
Issue-ID: POLICY-1274
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Lianhao Lu [Wed, 10 Apr 2019 04:39:16 +0000 (12:39 +0800)]
 
Add a new policy file log forwarder.
By introducing the new file log policy forwarder, we now could remove
dependency to external pap/pdp engine during s3p test, and focus only
on the performance and stability of the pssd instead.
Change-Id: I769d4f4a5425c82fa84e5fae20f08b6527bd5d70
Issue-ID: POLICY-1274
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Jorge Hernandez [Sun, 17 Mar 2019 05:19:56 +0000 (00:19 -0500)]
 
Add NSS libraries to images
Alpine OpenJDK was updated 2 days ago (3/14), this
upgrade seems to break java applications that depend on libnss*.so
OS libraries, which seem are no longer installed with the jdk.
Added some other libraries to aid when debugging.
Change-Id: I97e58b963420a43e91f9596ed72a82185a20d859
Issue-ID: POLICY-1604
Signed-off-by: Jorge Hernandez <jorge.hernandez-herrero@att.com>
Jessica Wagantall [Fri, 15 Mar 2019 20:53:39 +0000 (13:53 -0700)]
 
Update INFO.yaml file
Update missing information blocks and
indentation to pass verify job.
Change-Id: I6bfa10c8a3d214884882edd3ee9d0e8d02245113
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
ning.xi [Wed, 6 Mar 2019 03:32:53 +0000 (03:32 +0000)]
 
Use Alpine as base docker image in distribution
Issue-ID: POLICY-1550
Change-Id: I16801ad4fa0c2db578a9d1e41adef053df5074be
Signed-off-by: ning.xi <ning.xi@est.tech>
Pamela Dragosh [Fri, 1 Mar 2019 15:44:53 +0000 (15:44 +0000)]
 
Merge "Changes directory structure of S3P Tests"
Pamela Dragosh [Thu, 28 Feb 2019 16:10:03 +0000 (11:10 -0500)]
 
Update INFO.yaml Liam's email
est.tech
Issue-ID: POLICY-1556
Change-Id: I2d49ebac72911e59e0d0f12546652280593e0a26
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Bilal A [Wed, 27 Feb 2019 18:52:05 +0000 (13:52 -0500)]
 
Changes directory structure of S3P Tests
Changes Include:
a) Moving performance and stability tests into two separate directories.
Change-Id: Ib98713b2c37658de16c5eb6ee8918b867bdf5b8a
Issue-ID: POLICY-1462
Signed-off-by: Bilal A <bilal@research.att.com>
jh7358 [Mon, 18 Feb 2019 14:37:38 +0000 (09:37 -0500)]
 
Use gson by default
Add a property to force the REST server to use gson instead of jackson.
Change-Id: I0dd762e0f9b4a4809f68e5b5498e16136f611d12
Issue-ID: POLICY-1525
Signed-off-by: Jim Hahn <jrh3@att.com>
ramverma [Thu, 7 Feb 2019 12:02:07 +0000 (12:02 +0000)]
 
Fix docker build in policy/distribution
policyLoger.properties file was removed as part of moving to slf4j
for logging. But the assembly.xml file was still refering to it. Since
the file was not there the /bin directory was missing from the
created package. Resulting in docker builds failing.
Change-Id: Ia800c949d180d592aa0adb6cf61773b37329be48
Issue-ID: POLICY-1346
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
ramverma [Tue, 5 Feb 2019 15:34:35 +0000 (15:34 +0000)]
 
Change policy/distribution logging to slf4j
1) Changed logging from FlexLogger to SLF4J with logback
2) Fixed test cases of distribution REST endpoints having
   infinite while loop
Change-Id: I1551873b3d348f9a7d2b4f8dfc3ae5dd6462bdb8
Issue-ID: POLICY-1346
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
ramverma [Fri, 25 Jan 2019 15:26:52 +0000 (15:26 +0000)]
 
Fix compilation error on policy-distribution
Change-Id: Ic190774c74c11a2d11c3b3b7e0144f69cd8770e8
Issue-ID: POLICY-1428
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
ramverma [Tue, 22 Jan 2019 12:39:39 +0000 (12:39 +0000)]
 
Fix issues in policy-distribution
1) Creating a new thread for watching directory path for new file.
2) Updating distribution statistics from FileSystemReceptionHandler.
Change-Id: Ic539f2cad015f0756407fe910f309a2ea661a764
Issue-ID: POLICY-1437
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
liboNet [Tue, 22 Jan 2019 00:45:03 +0000 (08:45 +0800)]
 
Remove properietary license from CSAR
Remove these license from the Artifacts/Information directory
which will NOT impact the test in S3p and reception-plugins
Change-Id: I6551d37b704b2191b865af8c69f01eae685d0adb
Issue-ID: POLICY-1433
Signed-off-by: liboNet <libo.zhu@intel.com>
liboNet [Sat, 5 Jan 2019 05:31:04 +0000 (13:31 +0800)]
 
Fix Noncompliant usage sonar issue
remove the Thread.sleep about such noncompliant usage
rename the funciton name for codestyle's alignment
Change-Id: I71b66143d7d68fa58a1a60de70e1836fde7df8c4
Issue-ID: POLICY-1256
Signed-off-by: liboNet <libo.zhu@intel.com>
liamfallon [Wed, 19 Dec 2018 19:11:01 +0000 (19:11 +0000)]
 
Fix checkstyle issues in distribution
Some fixes for minor checkstyle issues.
Issue-ID: POLICY-1221
Change-Id: I86577f47283a6fa97be25d7550ed9c2d7ec026a9
Signed-off-by: liamfallon <liam.fallon@est.tech>
liboNet [Wed, 19 Dec 2018 22:57:56 +0000 (06:57 +0800)]
 
Fix lineEnding issue for policy-keystore
. separate the etc/ssl from etc in assembly
. fix the JVM property typo by using trustStorePassword
Change-Id: I0e00bf211de96939346c46e0486361e29f9e20f7
Issue-ID: POLICY-1385
Signed-off-by: liboNet <libo.zhu@intel.com>
liboNet [Tue, 18 Dec 2018 01:22:00 +0000 (09:22 +0800)]
 
add Https support for distribution endpoints
. add the https into the RestServerParameters interface
. update CommonTestData to support https interface
. add two cases for healthcheck and statistic https validation
. update the package script to use JVM properties
. add keystore and truststore to resources dir
. update the keystore path for consistency
Change-Id: I04b2a3e1afef84eafbb6a22e6fe2122a5a181883
Issue-ID: POLICY-1221
Signed-off-by: liboNet <libo.zhu@intel.com>
liboNet [Tue, 27 Nov 2018 00:10:33 +0000 (08:10 +0800)]
 
Fix policy format with vCPE service
. change the capital and lower-case letter
. add missing fields in ConfigBody policyName and templateVersion
that are requried by OOF
. add '=' into default operator once no such info in the input CSAR
. based on the vCPE service, which includes several CPs, some may do
NOT connect any VDU. so need deal with such case.
. add new test case to cover complicated service includes 5 policies
. change the resource's type from String to List as requried by OOF
which needs such format to deal with all kind of policies beides hpa
. improve the code style
Change-Id: Id39b1a0511c362c5ae9dce409af18b032832de80
Issue-ID: POLICY-1282
Signed-off-by: liboNet <libo.zhu@intel.com>
Pamela Dragosh [Fri, 23 Nov 2018 19:50:58 +0000 (14:50 -0500)]
 
Create label for architecture to ref
Creating a label so architecture document can reference this
new application.
Issue-ID: POLICY-1163
Change-Id: Ie3cef673f179240d562dc02411d38c9dfc038252
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
ramverma [Thu, 22 Nov 2018 11:33:03 +0000 (11:33 +0000)]
 
policy/distribution documents
Change-Id: I1c3e083a9ce050ce67acd5f68d0dcf498927592a
Issue-ID: POLICY-1260
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Lianhao Lu [Tue, 20 Nov 2018 05:59:49 +0000 (13:59 +0800)]
 
Added additional supporting scripts for s3p test
clean_policy.sh: remove policies correspdoing to s3p csar files.
list_failed_policy.sh: try to get failed policies from pdp in s3p test.
Issue-ID: POLICY-837
Change-Id: I742437f740eee191875b25eccd03f00574bc0dcc
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Pamela Dragosh [Tue, 13 Nov 2018 15:19:07 +0000 (10:19 -0500)]
 
Fix unchecked cast sonar issue
Removed the unused variable. We are reasonably
sure that the cast is ok.
Fixed the JUnit tests, removed useless imports,
unused variables and raw types.
Issue-ID: POLICY-1256
Change-Id: Iad7dbbf02a4dd48648fc9d5c20595c9f0f8d7acb
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Lianhao Lu [Tue, 13 Nov 2018 03:41:16 +0000 (11:41 +0800)]
 
s3p: Remove temporary workaround
Since bug POLICY-1254 has been fixed, remove the workaround for it.
Change-Id: I40a706b439b8db8530299921c8a59ef04e0d250d
Issue-ID: POLICY-837
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Lianhao Lu [Tue, 13 Nov 2018 03:25:29 +0000 (11:25 +0800)]
 
FileSystemReceptionHandler: Fix sonar issues
Fixed 6 code smell issues reported by sonar.
Change-Id: I537df24f0f0624470efd8675f01ecd433aed1cb0
Issue-ID: POLICY-1256
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Liam Fallon [Mon, 12 Nov 2018 14:59:33 +0000 (14:59 +0000)]
 
Merge "Fix virtual_binding error under VDU requirements"
liboNet [Fri, 9 Nov 2018 21:32:42 +0000 (05:32 +0800)]
 
Fix virtual_binding error under VDU requirements
virtual_binding will bind CP to a VDU but virtual_link
use the node name instead of the name of node's propertiy
add new test case to cover s3p
the picvendorId's path has been changed based on demo repo
Change-Id: I0ca400eab4d16284f14cb568fe3da5b409dd9222
Issue-ID: POLICY-1254
Signed-off-by: liboNet <libo.zhu@intel.com>
Lianhao Lu [Fri, 9 Nov 2018 06:57:30 +0000 (14:57 +0800)]
 
Make FileSystemReceptionHandler more tolerant
Make FileSystemReceptionHandler tolerant of exceptions thrown when
parsing tosca template and be able to handle new incoming csar.
Also added the unit test for FileSystemReceptionHandler.
Change-Id: I0f1647f6f952576a8e61adca4d027990706d1411
Issue-ID: POLICY-837
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Pamela Dragosh [Fri, 9 Nov 2018 13:02:39 +0000 (08:02 -0500)]
 
Fix sonar/checkstyle issues
The main pom.xml was incorrect, so these issues have
creeped into the source code.
Issue-ID: POLICY-1256
Change-Id: Ic0b52f3a28f869252120991b0c1946ef8402bcc5
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Lianhao Lu [Wed, 7 Nov 2018 09:59:37 +0000 (17:59 +0800)]
 
Added JMeter scripts for perf test
Change-Id: I4286c6defdef331ee5c40399d17381d3c8b8a544
Issue-ID: POLICY-836
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Lianhao Lu [Wed, 7 Nov 2018 08:39:31 +0000 (16:39 +0800)]
 
Added JMeter scripts for stability test
Added the scripts and JMeter scenario for stability test
Change-Id: If495321e54e56d688cfadd53894a0361f283079d
Issue-ID: POLICY-837
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Lianhao Lu [Wed, 7 Nov 2018 03:46:28 +0000 (11:46 +0800)]
 
S3P: added FileSystemReceptionHandler plugin
For S3P test, we need to add a new FileSystemRecpetionHandler plugin
which monitors a local directory for newly come csar files.
This patch added the plugin code as well as the configuration file for
s3p to use.
Change-Id: I8f1e65489abde15ae32c54d819bbc6e7cbdf36d0
Issue-ID: POLICY-837
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
liamfallon [Wed, 31 Oct 2018 18:23:28 +0000 (18:23 +0000)]
 
Set new master version for Dublin
Issue-ID: POLICY-1232
Change-Id: Ib72ebd05fb88de05c356f05ee7ca2a4e4d00881c
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
liboNet [Thu, 1 Nov 2018 06:38:08 +0000 (14:38 +0800)]
 
use https instead of http to do forward
use https instead of http
set default as the value of pdpGroup
Change-Id: I9c4fa901bfc00be465b6ba9777d4c35c0ac93eb3
Issue-ID: POLICY-1237
Signed-off-by: liboNet <libo.zhu@intel.com>
liboNet [Wed, 31 Oct 2018 02:03:49 +0000 (10:03 +0800)]
 
Add more logics about fields value for OOF model
To align with OOF/Policy/SO, need add below:
. resource should be set as name field of SDC resource.
. identity should be set as a concatenation of PolicyType + "_" + Resource
. value of flavorDirective's type, expected from OOF, is "flavor_directives"
. policyScope should add the name of service from SDC to align with that from SO.
. Update the Testcase
Change-Id: I57f461ef51e0f50e6096c9c9ba84c5832cb13656
Issue-ID: POLICY-1227
Signed-off-by: liboNet <libo.zhu@intel.com>
ramverma [Wed, 24 Oct 2018 13:56:47 +0000 (14:56 +0100)]
 
Fix refering to snapshot in policy/distribution
Issue-ID: POLICY-1213
Change-Id: I7262a00ec35549e63127f8a3730ca8aa75da09aa
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Jorge Hernandez [Tue, 16 Oct 2018 17:51:22 +0000 (17:51 +0000)]
 
Merge "Fix NullPointerException of PolicyScope field"
liboNet [Wed, 17 Oct 2018 00:14:23 +0000 (08:14 +0800)]
 
Fix NullPointerException of PolicyScope field
add HPA into PolicyScope to fix the NullPointerException
Change-Id: I160e630d982257c57e1f950906c231c895872c71
Issue-ID: POLICY-1200
Signed-off-by: liboNet <libo.zhu@intel.com>
ramverma [Tue, 16 Oct 2018 11:39:27 +0000 (12:39 +0100)]
 
Fixing bug in policy-distribution
Fixing bug in distributor due to which malformed xml
was being sent to apex-pdp for updating the policy.
And due to which the parser in apex-pdp use to fail.
Change-Id: I5feaad0eeb06c820904acacd5cc47858b14eb963
Issue-ID: POLICY-1201
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Pamela Dragosh [Fri, 12 Oct 2018 14:24:06 +0000 (10:24 -0400)]
 
Add version tag for release
Maven does not like the version being inherited from parent.
So must explicitly set it.
Issue-ID: POLICY-1189
Change-Id: I4097368f5084c6da724df185cfb58bd88a668130
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Mon, 8 Oct 2018 20:43:50 +0000 (16:43 -0400)]
 
Upgrade to released 1.3.0 artifacts
policy/common and policy/engine are released.
Issue-ID: POLICY-1189
Change-Id: I9ea1222fc3330493595cd9545a2728d48b9e044e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
liboNet [Tue, 9 Oct 2018 21:54:53 +0000 (05:54 +0800)]
 
Remove properietary license from CSAR
Remove these license in zip file from the Artifacts/Deployments
directory which will NOT impact the test
reduce the size of csar file by using zip -9 compression
Change-Id: I234da7c13f0ce00fc2f1edbc16aac279bf90752d
Issue-ID: POLICY-1185
Signed-off-by: liboNet <libo.zhu@intel.com>
liboNet [Mon, 8 Oct 2018 18:48:59 +0000 (02:48 +0800)]
 
Remove properietary license from CSAR
Remove these license from the Artifacts/Information directory
which will NOT impact the test
Change-Id: I3280ca902616248313fe357cfa0cda9bc254b178
Issue-ID: POLICY-1185
Signed-off-by: liboNet <libo.zhu@intel.com>
liboNet [Sun, 30 Sep 2018 20:01:30 +0000 (04:01 +0800)]
 
Update the schema parse based on newer version
the schema format of HPA requirement has been modified
so that the parse needs update too based on the wiki:
https://wiki.onap.org/display/DW/Specifying+HPA+
Capability+Requirements+using+TOSCA-based+VNF+Descriptors
Change-Id: I48b39797e70d686ed0b9b2e7001b9a00068e76fd
Issue-ID: POLICY-1160
Signed-off-by: liboNet <libo.zhu@intel.com>
liboNet [Sat, 29 Sep 2018 22:27:50 +0000 (06:27 +0800)]
 
Add user and password into client setting
SDC will do authorization based on the input configuration.
Change-Id: Ie4b3eca8d24a669e14e9752f7d7f67a222fdc3d1
Issue-ID: POLICY-1158
Signed-off-by: liboNet <libo.zhu@intel.com>
Pamela Dragosh [Tue, 25 Sep 2018 10:41:32 +0000 (10:41 +0000)]
 
Merge "AIOOBE when ApexPdpPolicyForwarder#forward"
Liam Fallon [Tue, 25 Sep 2018 08:01:20 +0000 (08:01 +0000)]
 
Merge "Add .casr suffix to downloaded csar file"
Alexis de Talhouët [Sun, 23 Sep 2018 04:27:17 +0000 (00:27 -0400)]
 
AIOOBE when ApexPdpPolicyForwarder#forward
Change-Id: Iebc19d2e734ead405ac398a1011dcd42990b20b8
Issue-ID: POLICY-1147
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Alexis de Talhouët [Sun, 23 Sep 2018 04:32:31 +0000 (00:32 -0400)]
 
Enable TRACE log for distribution
Change-Id: I2eceec9d4f015bd6ecd961d47ed0a8fbe41f40ab
Issue-ID: POLICY-1147
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Alexis de Talhouët [Sun, 23 Sep 2018 03:53:51 +0000 (23:53 -0400)]
 
Add .casr suffix to downloaded csar file
SdcToscaParserFactory is looking file file type of .yaml .yml .zip or .csar
As no suffix was provided, .tmp was being appended, hence the process was
failing to parse the csar file.
Change-Id: Ia87bb1e2402f94e44f6cbf3e28beb2adea52db4d
Issue-ID: POLICY-1146
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
ramverma [Fri, 21 Sep 2018 10:09:58 +0000 (11:09 +0100)]
 
Adding retry logic for SDC Client in Distribution
* SdcReceptionHandler in distribution tries to initialize & start the
SDC Client when distribution framework comes up. If by any chance the
SDC service is not up then currently the SdcReceptionHandler throws an
exception to the distribution activator and the distribution framework
goes down. And the health check fails.
* This review fixes it by adding a retry mechanism in
SdcReceptionHandler for all lifecycle methods of SdcClient (init, start,
stop). After failure the same operation is retried again with some
delay. The delay is passed as parameter from configuration json file.
The minimum default value for the delay is kept as 30 seconds.
* Adding SdcClientHandler timer task for performing the retries
asynchronously.
Change-Id: Ibb6d936fcf4872c82f87e2cd04a00583b81c92ff
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Liam Fallon [Wed, 19 Sep 2018 13:37:25 +0000 (13:37 +0000)]
 
Merge "Fix sonar & add test cases for models"
ramverma [Tue, 18 Sep 2018 19:15:02 +0000 (20:15 +0100)]
 
Fix sonar & add test cases for models
* As per jacoco, the try-with-resources coverage issue is fixed in 0.8.0
release - https://www.jacoco.org/jacoco/trunk/doc/changes.html
* Adding openpojo test for all the models in distribution-model
* Removed jacoco version from distribution pom as oparent 1.2.1 already
comes with jacoco 0.8.2
Change-Id: I55e2891a0dad1f10113730b46f10d760a883bea6
Issue-ID: POLICY-922
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
mmis [Tue, 18 Sep 2018 11:55:42 +0000 (12:55 +0100)]
 
Enable passing config file to start script
Issue-ID: POLICY-923
Change-Id: I8803b5a94e33d0175a84665dd3b253c7220451ea
Signed-off-by: mmis <michael.morris@ericsson.com>
ramverma [Mon, 17 Sep 2018 14:55:06 +0000 (15:55 +0100)]
 
Fix sonar bug in distribution
Change-Id: I6bcb6f6af1020ceb22dd92d6633717d2a183d5b8
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
ramverma [Sat, 15 Sep 2018 01:09:03 +0000 (02:09 +0100)]
 
Fix sonar bugs in distribution
Change-Id: I42e568cab649da74e2a179fe487c32feec9c88fa
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Liam Fallon [Fri, 14 Sep 2018 19:15:49 +0000 (19:15 +0000)]
 
Merge "Enabling docker image push"
mmis [Fri, 14 Sep 2018 08:00:25 +0000 (09:00 +0100)]
 
Aligned decoder with forwarder for opt. policies
Changed decoder for optimization policies to generate instance of
OptimizationPolicy (instead of PdpxPolicy) as expected by the forwarder.
Without this change there is a mismatch between the decoder and the
forwarder.
Added parameters for configuring the static elements of the optimization
policies and setting of these elements.
Issue-ID: POLICY-927
Change-Id: Ib91a905dc89eed13622fb88e4dd19b3cb9f62c75
Signed-off-by: mmis <michael.morris@ericsson.com>
Pamela Dragosh [Fri, 14 Sep 2018 16:31:02 +0000 (16:31 +0000)]
 
Merge "Adding more hpa feature support for Polices"
liboNet [Sat, 15 Sep 2018 04:29:04 +0000 (12:29 +0800)]
 
Adding more hpa feature support for Polices
* Add hugePage feature parse
* Add SRIOV feature parse
* Add pciePassthrough feature parse
* Add more test cases and resources
Change-Id: Ib45515a26e3fdac742a631b3a13d739fd1784d2f
Issue-ID: POLICY-927
Signed-off-by: liboNet <libo.zhu@intel.com>
mmis [Fri, 14 Sep 2018 15:27:45 +0000 (16:27 +0100)]
 
Enabling docker image push
Change-Id: I619b0f6e0ff9a31cfeafbd9c23dc93739e065d0c
Issue-ID: POLICY-923
Signed-off-by: mmis <michael.morris@ericsson.com>
ramverma [Fri, 14 Sep 2018 14:20:55 +0000 (15:20 +0100)]
 
Fix sonar bugs in distribution
Change-Id: I20c1246efc3ce0ad6d874e6a0b5c8230c96b9425
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Liam Fallon [Fri, 14 Sep 2018 10:15:40 +0000 (10:15 +0000)]
 
Merge "Adding statistics endpoint to distribution"
ramverma [Thu, 13 Sep 2018 20:29:44 +0000 (21:29 +0100)]
 
Fix all sonar issues in distribution
Change-Id: I93c77f929217c185c422fc8f16e9ac2fefe0fd42
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
ramverma [Thu, 13 Sep 2018 22:05:39 +0000 (23:05 +0100)]
 
Adding statistics endpoint to distribution
* Adding statistics endpoint in DistributionRestController
* Adding DistributionStatisticsManager to hold all stats.
* Adding StatisticsReport class to represent distribution stats report.
* Updating stats at each step in SdcReceptionHandler.
* Adding test cases for all code changes.
Change-Id: I0b0f97aecc64b18314367fdff6d3ca7bee06efc7
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
ramverma [Thu, 13 Sep 2018 15:31:35 +0000 (16:31 +0100)]
 
Adding policy decoder to extract file from csar
* Adding decoder configuration parameters infrastructure to support
plugin based architecture. Adding a new policy decoder after this will be just
creating a new decoder class and its corresponding parameter class.
* Adding a new decoder which extracts policy file from given csar. It is
written in a generic way to extract file for any pdp like apex, drools.
* Adding configuration parameters for the new decoder. The policy file name and
policy type is passed as parameter to the decoder.
* Fixing few broken package declaration in pdpx decoder tests.
* Adding test cases for all code changes.
Change-Id: I95e68cebce0f9747ca63b090f9b9116ce8836939
Issue-ID: POLICY-1101
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Liam Fallon [Wed, 12 Sep 2018 19:39:59 +0000 (19:39 +0000)]
 
Merge "Adding code for dynamically generate Polices"
liboNet [Tue, 11 Sep 2018 03:07:04 +0000 (11:07 +0800)]
 
Adding code for dynamically generate Polices
* Update sdc tosca version to 1.4.1
* Define the objects to represents the policy
  used by OOF/Mutlicloud/AAI etc
* Integration into the distribution framework
  to update PdpxPolicy and add new File
  PolicyDecoderCsarPdpx to do decoder from CSAR
* Add two Test case including 2 VNFs, each VNF
  maps to 1 policy, so to generate 2 polices
* use @SerializedName make the variable name
  different with that in the out json field
Change-Id: Icc7175082063db8a245bbe576085cdf5a4b51adc
Issue-ID: POLICY-927
Signed-off-by: liboNet <libo.zhu@intel.com>
ramverma [Tue, 11 Sep 2018 11:55:27 +0000 (12:55 +0100)]
 
Adding policy forwarder for apex-pdp
* Adding policy forwarder for apex-pdp
* Adding ApexPdpPolicy to hold policies related to apex-pdp
* Adding forwarder parameter for configuring apex-pdp forwarder
* Adding test cases for all code changes.
Change-Id: Ic1cb9bfc11b2b95321ea2d81882c588b025d33fb
Issue-ID: POLICY-1101
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
mmis [Wed, 12 Sep 2018 08:49:04 +0000 (09:49 +0100)]
 
Removed thoughtworks web-stub dependency
Dependency is unused and so can be removed
Change-Id: Ib9036e90b1851210f39b627c20fb90c5c88e7e1a
Issue-ID: POLICY-926
Signed-off-by: mmis <michael.morris@ericsson.com>