diff options
author | Jorge Hernandez <jh1730@att.com> | 2017-06-05 09:51:55 -0500 |
---|---|---|
committer | Jorge Hernandez <jh1730@att.com> | 2017-06-05 09:51:55 -0500 |
commit | 85e12563d2092018f83b456f5926f2b28f9742c7 (patch) | |
tree | ed4ee62525a83b6b0eeae28ee7078fce24c23781 /packages | |
parent | 68536f36971c101150ec35d44bd445355ffd0384 (diff) |
[POLICY-8] cleaned up unused code
Change-Id: Ifebf67db574e1c4eadf9d50ca0f178ab7ddba033
Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'packages')
26 files changed, 4 insertions, 1045 deletions
diff --git a/packages/base/pom.xml b/packages/base/pom.xml index 3009b857..47486bfb 100644 --- a/packages/base/pom.xml +++ b/packages/base/pom.xml @@ -33,7 +33,7 @@ <packaging>pom</packaging> <name>Base Package</name> - <description>D2 ECOMP Policy Drools PDP Packaging</description> + <description>ONAP Policy Drools PDP Packaging</description> <build> <plugins> @@ -82,7 +82,7 @@ <executable>/bin/bash</executable> <arguments> <argument>-c</argument> - <argument>mkdir -p target ; echo -e 'version="${project.version}"\ndescription="Open ECOMP Drools PDP"\nbuildTag="'"${BUILD_TAG}"'"\ncommit="'"${GIT_COMMIT}"'"\ntimestamp="${maven.build.timestamp}"' >target/build.info</argument> + <argument>mkdir -p target ; echo -e 'version="${project.version}"\ndescription="ONAP Drools PDP"\nbuildTag="'"${BUILD_TAG}"'"\ncommit="'"${GIT_COMMIT}"'"\ntimestamp="${maven.build.timestamp}"' >target/build.info</argument> </arguments> </configuration> </execution> diff --git a/packages/base/src/files/bin/db_upgrade_droolspdp.sh b/packages/base/src/files/bin/db_upgrade_droolspdp.sh deleted file mode 100644 index 382b3b22..00000000 --- a/packages/base/src/files/bin/db_upgrade_droolspdp.sh +++ /dev/null @@ -1,154 +0,0 @@ -#!/bin/bash - -### -# ============LICENSE_START======================================================= -# ONAP POLICY -# ================================================================================ -# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -### - -# -# db_upgrade_droolspdp.sh: Run this script to upgrade drools database to a given release level, -# it is recommended that you switch to the policy user to run this script -# -# Usage : db_upgrade_droolspdp.sh target_db_release_level db_user_id db_user_password -# Example: db_upgrade_droolspdp.sh 151000 policy_user password -# -# Assumption: 1. DB upgrade sql script in $POLICY_HOME/data/mysql folder with read permission -# 2. DB user has privilege to create/drop/alter database table -# -# Note: The default location for db release script is $POLICY_HOME/data/mysql -# The release level is represented as Two-digit-Year+Two-digit-Month+two-digit-Sub-release (151000, 151001) -# Drools database version is represented by record with the_key of 'DROOLS_VERSION' -# - -TARGET_RELEASE="" -CURRENT_RELEASE="" -DB_UPGRADE_USER="" -DB_UPGRADE_PASSWORD="" -DB_UPGRADE_DIR=$POLICY_HOME/data/mysql -DATE=`date +"%Y%m%d%H%M%S"` -LOG="" -ERR="" - -function get_current_release_level -{ - echo "Get current release level started ...@`date`" | tee -a $LOG - # display output vertical - query="select version from support.db_version where the_key = 'DROOLS_VERSION' \G" - CURRENT_RELEASE=`${MYSQL} --skip-column-names --execute "${query}" 2>$ERR | grep -v "*"` - echo "CURRENT_RELEASE: [$CURRENT_RELEASE]" | tee -a $LOG - echo "Get current release level completed ...@`date`" | tee -a $LOG -} - -function evaluate_upgrade_downgrade -{ - echo "CURRENT_RELEASE --> [$CURRENT_RELEASE]" | tee -a $LOG - echo "TARGET_RELEASE --> [$TARGET_RELEASE] " | tee -a $LOG - if [[ "${CURRENT_RELEASE}" < "${TARGET_RELEASE}" ]]; then - # perform db upgrade - UPGRADE_LIST=/tmp/db_upgrade_droolspdp_list.$$ - find ${DB_UPGRADE_DIR} -name "*_upgrade_script.sql" 2>/dev/null | grep "droolspdp" | sort > $UPGRADE_LIST - while read -r file - do - RELEASE=`basename $file | cut -d'_' -f1` - #echo "[$RELEASE] [$TARGET_RELEASE]" | tee -a $LOG - if [ "${RELEASE}" -gt "${CURRENT_RELEASE}" ] && [ "${RELEASE}" -le "${TARGET_RELEASE}" ]; then - run_script "UPGRADE" "${file}" 2>&1 | tee -a $LOG - fi - done < $UPGRADE_LIST - rm -f $UPGRADE_LIST - set_current_release_level $TARGET_RELEASE - elif [[ "${CURRENT_RELEASE}" > "${TARGET_RELEASE}" ]]; then - # perform db downgrade - DOWNGRADE_LIST=/tmp/db_downgrade_list.$$ - find ${DB_UPGRADE_DIR} -name "*_downgrade_script.sql" 2>/dev/null | grep "droolspdp" | sort -r > $DOWNGRADE_LIST - while read -r file - do - RELEASE=`basename $file | cut -d'_' -f1` - #echo "[$RELEASE] [$TARGET_RELEASE]" | tee -a $LOG - if [ "${RELEASE}" -le "${CURRENT_RELEASE}" ] && [ "${RELEASE}" -gt "${TARGET_RELEASE}" ]; then - run_script "DOWNGRADE" "${file}" - fi - done < $DOWNGRADE_LIST - rm -f $DOWNGRADE_LIST - set_current_release_level $TARGET_RELEASE - else - echo "CURRENT DB RELEASE LEVEL THE SAME AS TARGET RELEASE LEVEL, NO ACTION TAKEN ..." | tee -a $LOG - fi -} - -function run_script -{ - action="${1}" - script="${2}" - echo "Perform DB $action use $script ..." | tee -a $LOG - echo "--" | tee -a $LOG - ${MYSQL} --verbose < "${script}" 2>$ERR | tee -a $LOG - echo "--" | tee -a $LOG -} - -function set_current_release_level -{ - RELEASE="${1}" - echo "Set current release level to [$RELEASE] started ...@`date`" | tee -a $LOG - update_statement="insert into support.db_version (the_key, version) values ('DROOLS_VERSION', '${RELEASE}') on duplicate key update version='${RELEASE}';" - ${MYSQL} --execute "${update_statement}" - - echo "" | tee -a $LOG - echo "CURRENT_RELEASE set to: [$RELEASE]" | tee -a $LOG - echo "" | tee -a $LOG - echo "Set current release level completed ...@`date`" | tee -a $LOG -} - -function check_directory -{ - if [ ! -d $DB_UPGRADE_DIR ]; then - echo "ERROR, DIRECTORY NOT EXIST: $DB_UPGRADE_DIR, PROCESS EXIT ..." - exit; - else - if [ ! -d $DB_UPGRADE_DIR/logs ]; then - mkdir $DB_UPGRADE_DIR/logs - fi - fi -} - -# MAIN -#check_directory -LOG=$POLICY_HOME/logs/db_upgrade_droolspdp_$DATE.log -ERR=$POLICY_HOME/logs/db_upgrade_droolspdp_$DATE.err -echo "db_upgrade_droolspdp.sh started ..." | tee -a $LOG -if [ $# -eq 3 ]; then - TARGET_RELEASE="${1}" - DB_UPGRADE_USER="${2}" - DB_UPGRADE_PASSWORD="${3}" - echo "TARGET_RELEASE : $TARGET_RELEASE" | tee -a $LOG - echo "DB_UPGRADE_USER: $DB_UPGRADE_USER" | tee -a $LOG - echo "DB_UPGRADE_DIR : $DB_UPGRADE_DIR" | tee -a $LOG - # - if [ ${#TARGET_RELEASE} -ne 6 ]; then - echo "ERROR, TARGET_RELEASE MUST BE 6 DIGITS: $TARGET_RELEASE" | tee -a $LOG | tee -a $ERR - else - typeset -r MYSQL="mysql -u${DB_UPGRADE_USER} -p${DB_UPGRADE_PASSWORD} "; - get_current_release_level - evaluate_upgrade_downgrade - fi -else - echo "Usage : db_upgrade_droolspdp.sh target_release_level db_user_id db_user_password" | tee -a $LOG - echo "Example: db_upgrade_droolspdp.sh 151000 policy_user password" | tee -a $LOG -fi - -echo "db_upgrade_droolspdp.sh completed ..." | tee -a $LOG diff --git a/packages/base/src/files/bin/db_upgrade_droolspdp_remote.sh b/packages/base/src/files/bin/db_upgrade_droolspdp_remote.sh deleted file mode 100644 index fd8eb548..00000000 --- a/packages/base/src/files/bin/db_upgrade_droolspdp_remote.sh +++ /dev/null @@ -1,172 +0,0 @@ -#!/bin/bash - -### -# ============LICENSE_START======================================================= -# ONAP POLICY -# ================================================================================ -# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -### - -# -# db_upgrade_droolspdp_remote.sh: This script is to perform database schema upgrade on remote db, -# no shecma downgrade will be performed in case db_version is higher then target_version -# -# Logic: 1. Get target schema version from db scripts in $POLICY_HOME/data/mysql -# 2. Get current db schema version from support.db_version table (of target system) -# 3. Apply db upgrade script in order if target_version is HIGHER than db_version -# 4. Print out warning message if target_version is LOWER than db_version -# 4. Print out message if target_version is EQUAL to db_version -# -# -# Usage : db_upgrade_droolspdp_remote.sh db_user_id db_user_password hostname -# Example: db_upgrade_droolspdp_remote.sh policy_user password policydb -# -# Assumption: 1. DB schema upgrade script in $POLICY_HOME/data/mysql folder with read permission -# 2. DB user has privilege to create/drop/alter database table -# -# Note: The default location for db schema upgrade script is $POLICY_HOME/data/mysql -# The release level is represented as Two-digit-Year+Two-digit-Month+two-digit-Sub-release (151000, 151001) -# -# - -TARGET_SCHEMA_VERSION="" -CURRENT_SCHEMA_VERSION="" -DB_UPGRADE_USER="" -DB_UPGRADE_PASSWORD="" -DB_HOSTNAME="" -DB_UPGRADE_DIR=$POLICY_HOME/data/mysql -DATE=`date +"%Y%m%d%H%M%S"` -LOG="" -ERR="" - -function get_current_schema_version -{ - echo "Get current schema version from [${DB_HOSTNAME}] started ...@`date`" | tee -a $LOG - # display output vertical - query="select version from support.db_version where the_key = 'DROOLS_VERSION' \G" - CURRENT_SCHEMA_VERSION=`${MYSQL} --skip-column-names --execute "${query}" 2>$ERR | grep -v "*"` - error_msg=`cat $ERR | grep "doesn't exist"` - if [ "${error_msg}" != "" ]; then - echo "Create support.db_version table ..." | tee -a $LOG - sql="create table support.db_version(the_key varchar(20) not null, version varchar(20), primary key(the_key));" - ${MYSQL} --execute "${sql}" - CURRENT_SCHEMA_VERSION="00" - fi - echo "CURRENT_SCHEMA_VERSION: [$CURRENT_SCHEMA_VERSION]" | tee -a $LOG - echo "Get current schema version from [${DB_HOSTNAME}] completed ...@`date`" | tee -a $LOG -} - -function get_target_schema_version -{ - UPGRADE_LIST=/tmp/db_upgrade_list.$$ - find ${DB_UPGRADE_DIR} -name "*_upgrade_script.sql" 2>/dev/null | grep "droolspdp" | sort -r | head -1 > $UPGRADE_LIST - while read -r file - do - TARGET_SCHEMA_VERSION=`basename $file | cut -d'_' -f1` - echo "TARGET_SCHEMA_VERSION: [$TARGET_SCHEMA_VERSION]" | tee -a $LOG - break - done < $UPGRADE_LIST - rm -f $UPGRADE_LIST -} - -function evaluate_upgrade_downgrade -{ - echo "CURRENT_SCHEMA_VERSION --> [$CURRENT_SCHEMA_VERSION]" | tee -a $LOG - echo "TARGET_SCHEMA_VERSION --> [$TARGET_SCHEMA_VERSION] " | tee -a $LOG - if [[ "${CURRENT_SCHEMA_VERSION}" < "${TARGET_SCHEMA_VERSION}" ]]; then - # perform db upgrade - UPGRADE_LIST=/tmp/db_upgrade_list.$$ - find ${DB_UPGRADE_DIR} -name "*_upgrade_script.sql" 2>/dev/null | grep "droolspdp" | sort > $UPGRADE_LIST - while read -r file - do - DB_VERSION=`basename $file | cut -d'_' -f1` - #echo "[$DB_VERSION] [$TARGET_SCHEMA_VERSION]" | tee -a $LOG - if [ "${DB_VERSION}" -gt "${CURRENT_SCHEMA_VERSION}" ] && [ "${DB_VERSION}" -le "${TARGET_SCHEMA_VERSION}" ]; then - run_script "UPGRADE" "${file}" 2>&1 | tee -a $LOG - fi - done < $UPGRADE_LIST - rm -f $UPGRADE_LIST - set_current_release_level $TARGET_SCHEMA_VERSION - elif [[ "${CURRENT_SCHEMA_VERSION}" > "${TARGET_SCHEMA_VERSION}" ]]; then - # db downgrade - echo "WARNING: Target db schema version is LOWER than current db scema version, please run downgrade script manually." | tee -a $LOG | tee -a $ERR - else - echo "CURRENT SCHEMA VERSION THE SAME AS TARGET SCHEMA VERSION, NO ACTION TAKEN ..." | tee -a $LOG - fi -} - -function run_script -{ - action="${1}" - script="${2}" - echo "Perform DB $action on [${DB_HOSTNAME}] use $script ..." | tee -a $LOG - echo "--" | tee -a $LOG - ${MYSQL} --verbose < "${script}" 2>$ERR | tee -a $LOG - echo "--" | tee -a $LOG -} - -function set_current_release_level -{ - DB_VERSION="${1}" - echo "Set current release level on [${DB_HOSTNAME}] to [$DB_VERSION] started ...@`date`" | tee -a $LOG - update_statement="insert into support.db_version (the_key, version) values ('DROOLS_VERSION', '${DB_VERSION}') on duplicate key update version='${DB_VERSION}';" - ${MYSQL} --execute "${update_statement}" - - echo "" | tee -a $LOG - echo "CURRENT_SCHEMA_VERSION set to: [$DB_VERSION]" | tee -a $LOG - echo "" | tee -a $LOG - echo "Set current release level on [${DB_HOSTNAME}] to [$DB_VERSION] completed ...@`date`" | tee -a $LOG -} - -function check_directory -{ - if [ ! -d $DB_UPGRADE_DIR ]; then - echo "ERROR, DIRECTORY NOT EXIST: $DB_UPGRADE_DIR, PROCESS EXIT ..." - exit; - else - if [ ! -d $DB_UPGRADE_DIR/logs ]; then - mkdir $DB_UPGRADE_DIR/logs - fi - fi -} - -# MAIN -#check_directory -LOG=$POLICY_HOME/logs/db_upgrade_droolspdp_remote_$DATE.log -ERR=$POLICY_HOME/logs/db_upgrade_droolspdp_remote_$DATE.err -echo "db_upgrade_droolspdp_remote.sh started ..." | tee -a $LOG -if [ $# -eq 3 ]; then - DB_UPGRADE_USER="${1}" - DB_UPGRADE_PASSWORD="${2}" - DB_HOSTNAME="${3}" - echo "DB_UPGRADE_USER: $DB_UPGRADE_USER" | tee -a $LOG - echo "DB_UPGRADE_DIR : $DB_UPGRADE_DIR" | tee -a $LOG - echo "DB_HOSTNAME : $DB_HOSTNAME" | tee -a $LOG - # - typeset -r MYSQL="mysql -u${DB_UPGRADE_USER} -p${DB_UPGRADE_PASSWORD} -h ${DB_HOSTNAME}"; - get_target_schema_version - if [ ${#TARGET_SCHEMA_VERSION} -ne 6 ]; then - echo "ERROR, TARGET_SCHEMA_VERSION MUST BE 6 DIGITS: $TARGET_SCHEMA_VERSION" | tee -a $LOG | tee -a $ERR - else - get_current_schema_version - evaluate_upgrade_downgrade - fi -else - echo "Usage : db_upgrade_droolspdp_remote.sh db_user_id db_user_password db_hostname" | tee -a $LOG - echo "Example: db_upgrade_droolspdp_remote.sh policy_user password policydb" | tee -a $LOG -fi - -echo "db_upgrade_droolspdp_remote.sh completed ..." | tee -a $LOG diff --git a/packages/base/src/files/bin/monitor.sh b/packages/base/src/files/bin/monitor.sh index f4fad486..1137628a 100644 --- a/packages/base/src/files/bin/monitor.sh +++ b/packages/base/src/files/bin/monitor.sh @@ -64,7 +64,6 @@ function on() { fi CONTROLLER=$1 - NAGIOS_COMPONENT_SERVICE="Check_${CONTROLLER}-AliveStatus_AP_24094" ${POLICY_HOME}/bin/${CONTROLLER} status if [[ $? != 0 ]]; then @@ -84,7 +83,6 @@ function off() { fi CONTROLLER=$1 - NAGIOS_COMPONENT_SERVICE="Check_${CONTROLLER}-AliveStatus_AP_24094" ${POLICY_HOME}/bin/${CONTROLLER} status if [[ $? != 0 ]]; then @@ -137,10 +135,6 @@ fi . ${POLICY_HOME}/etc/profile.d/env.sh -if [[ ${NAGIOS_NRDP_DISABLED} == true ]]; then - log "Nagios NRDS is disabled." -fi - if flock ${cfg} ; then process_config fi {cfg}>>${POLICY_HOME}/etc/monitor/monitor.cfg.lock diff --git a/packages/base/src/files/data/mysql/160400_droolspdp_downgrade_script.sql b/packages/base/src/files/data/mysql/160400_droolspdp_downgrade_script.sql deleted file mode 100644 index 44f49198..00000000 --- a/packages/base/src/files/data/mysql/160400_droolspdp_downgrade_script.sql +++ /dev/null @@ -1,23 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -drop table if exists drools.sessioninfo; -drop table if exists drools.WORKITEMINFO; -drop table if exists drools.droolspdpentity; diff --git a/packages/base/src/files/data/mysql/160400_droolspdp_upgrade_script.sql b/packages/base/src/files/data/mysql/160400_droolspdp_upgrade_script.sql deleted file mode 100644 index 03e96521..00000000 --- a/packages/base/src/files/data/mysql/160400_droolspdp_upgrade_script.sql +++ /dev/null @@ -1,57 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - --- use BLOB instead of LONGVARBINARY -drop table if exists drools.sessioninfo; -CREATE TABLE drools.SESSIONINFO -( -ID BIGINT NOT NULL, -LASTMODIFICATIONDATE TIMESTAMP, -RULESBYTEARRAY BLOB, -STARTDATE TIMESTAMP default current_timestamp, -OPTLOCK INTEGER, -PRIMARY KEY (ID) -); - -drop table if exists drools.WORKITEMINFO; -CREATE TABLE drools.WORKITEMINFO -( -WORKITEMID BIGINT NOT NULL, -CREATIONDATE TIMESTAMP default current_timestamp, -`NAME` VARCHAR(500), -PROCESSINSTANCEID BIGINT, -STATE BIGINT, -OPTLOCK INTEGER, -WORKITEMBYTEARRAY BLOB, -PRIMARY KEY (WORKITEMID) -); - -drop table if exists drools.droolspdpentity; -CREATE TABLE drools.DROOLSPDPENTITY -( - PDPID VARCHAR(100) NOT NULL, - DESIGNATED BOOLEAN NOT NULL DEFAULT FALSE, - PRIORITY INT NOT NULL DEFAULT 0, - UPDATEDDATE DATE NOT NULL, - GROUPID VARCHAR(100) NOT NULL, - SESSIONID BIGINT NOT NULL -); - - diff --git a/packages/base/src/files/data/mysql/160401_droolspdp_downgrade_script.sql b/packages/base/src/files/data/mysql/160401_droolspdp_downgrade_script.sql deleted file mode 100644 index c8bbe035..00000000 --- a/packages/base/src/files/data/mysql/160401_droolspdp_downgrade_script.sql +++ /dev/null @@ -1,30 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -drop table if exists drools.droolspdpentity; -CREATE TABLE drools.DROOLSPDPENTITY -( - PDPID VARCHAR(100) NOT NULL, - DESIGNATED BOOLEAN NOT NULL DEFAULT FALSE, - PRIORITY INT NOT NULL DEFAULT 0, - UPDATEDDATE DATE NOT NULL, - GROUPID VARCHAR(100) NOT NULL, - SESSIONID BIGINT NOT NULL -); diff --git a/packages/base/src/files/data/mysql/160401_droolspdp_upgrade_script.sql b/packages/base/src/files/data/mysql/160401_droolspdp_upgrade_script.sql deleted file mode 100644 index e7d92216..00000000 --- a/packages/base/src/files/data/mysql/160401_droolspdp_upgrade_script.sql +++ /dev/null @@ -1,30 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -drop table if exists drools.droolspdpentity; -CREATE TABLE drools.DROOLSPDPENTITY -( - PDPID VARCHAR(100) NOT NULL, - DESIGNATED BOOLEAN NOT NULL DEFAULT FALSE, - PRIORITY INT NOT NULL DEFAULT 0, - UPDATEDDATE TIMESTAMP NOT NULL, - GROUPID VARCHAR(100) NOT NULL, - SESSIONID BIGINT NOT NULL -); diff --git a/packages/base/src/files/data/mysql/160700_droolspdp_downgrade_script.sql b/packages/base/src/files/data/mysql/160700_droolspdp_downgrade_script.sql deleted file mode 100644 index c8613bb7..00000000 --- a/packages/base/src/files/data/mysql/160700_droolspdp_downgrade_script.sql +++ /dev/null @@ -1,25 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -drop table if exists drools.droolssessionentity; -drop table if exists drools.droolspdpentity; -drop table if exists drools.sessioninfo; -drop table if exists drools.WORKITEMINFO; - diff --git a/packages/base/src/files/data/mysql/160700_droolspdp_upgrade_script.sql b/packages/base/src/files/data/mysql/160700_droolspdp_upgrade_script.sql deleted file mode 100644 index 3350859e..00000000 --- a/packages/base/src/files/data/mysql/160700_droolspdp_upgrade_script.sql +++ /dev/null @@ -1,68 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -drop table if exists drools.droolssessionentity; -drop table if exists drools.droolspdpentity; - -CREATE TABLE drools.DROOLSPDPENTITY -( - PDPID VARCHAR(100) NOT NULL, - DESIGNATED BOOLEAN NOT NULL DEFAULT FALSE, - PRIORITY INT NOT NULL DEFAULT 0, - UPDATEDDATE TIMESTAMP NOT NULL, - GROUPID VARCHAR(100) NOT NULL, - SESSIONID BIGINT NOT NULL, - PRIMARY KEY(PDPID) -); - -CREATE TABLE drools.DROOLSSESSIONENTITY -( - PDPID VARCHAR(100) NOT NULL, - SESSIONNAME VARCHAR(100) NOT NULL, - SESSIONID BIGINT NOT NULL, - PDPENTITY_pdpId BIGINT NOT NULL, - PRIMARY KEY(PDPID,SESSIONNAME) -); -ALTER TABLE drools.DROOLSSESSIONENTITY ADD CONSTRAINT FK_DROOLSSESSIONENTITY_DROOLSPDPENTITY_PDPID -FOREIGN KEY (PDPID) REFERENCES drools.DROOLSPDPENTITY (PDPID); - -drop table if exists drools.sessioninfo; -CREATE TABLE drools.SESSIONINFO -( -ID BIGINT NOT NULL, -LASTMODIFICATIONDATE TIMESTAMP, -RULESBYTEARRAY BLOB, -STARTDATE TIMESTAMP default current_timestamp, -OPTLOCK INTEGER, -PRIMARY KEY (ID) -); - -drop table if exists drools.WORKITEMINFO; -CREATE TABLE drools.WORKITEMINFO -( -WORKITEMID BIGINT NOT NULL, -CREATIONDATE TIMESTAMP default current_timestamp, -`NAME` VARCHAR(500), -PROCESSINSTANCEID BIGINT, -STATE BIGINT, -OPTLOCK INTEGER, -WORKITEMBYTEARRAY BLOB, -PRIMARY KEY (WORKITEMID) -); diff --git a/packages/base/src/files/data/mysql/161000_droolspdp_downgrade_script.sql b/packages/base/src/files/data/mysql/161000_droolspdp_downgrade_script.sql deleted file mode 100644 index b1ab793c..00000000 --- a/packages/base/src/files/data/mysql/161000_droolspdp_downgrade_script.sql +++ /dev/null @@ -1,47 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -drop table if exists drools.droolssessionentity; -drop table if exists drools.droolspdpentity; - -CREATE TABLE drools.DROOLSPDPENTITY -( - PDPID VARCHAR(100) NOT NULL, - DESIGNATED BOOLEAN NOT NULL DEFAULT FALSE, - PRIORITY INT NOT NULL DEFAULT 0, - UPDATEDDATE TIMESTAMP NOT NULL, - GROUPID VARCHAR(100) NOT NULL, - SESSIONID BIGINT NOT NULL, - PRIMARY KEY(PDPID) -); - -CREATE TABLE drools.DROOLSSESSIONENTITY -( - PDPID VARCHAR(100) NOT NULL, - SESSIONNAME VARCHAR(100) NOT NULL, - SESSIONID BIGINT NOT NULL, - PDPENTITY_pdpId BIGINT NOT NULL, - PRIMARY KEY(PDPID,SESSIONNAME) -); -ALTER TABLE drools.DROOLSSESSIONENTITY ADD CONSTRAINT FK_DROOLSSESSIONENTITY_DROOLSPDPENTITY_PDPID -FOREIGN KEY (PDPID) REFERENCES drools.DROOLSPDPENTITY (PDPID); - -drop table if exists drools.LastSiteEntity; - diff --git a/packages/base/src/files/data/mysql/161000_droolspdp_upgrade_script.sql b/packages/base/src/files/data/mysql/161000_droolspdp_upgrade_script.sql deleted file mode 100644 index 9ef24426..00000000 --- a/packages/base/src/files/data/mysql/161000_droolspdp_upgrade_script.sql +++ /dev/null @@ -1,54 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -DROP TABLE if exists drools.DROOLSSESSIONENTITY; -DROP TABLE if exists drools.DROOLSPDPENTITY; - -CREATE TABLE if not exists drools.DROOLSPDPENTITY -( -pdpId VARCHAR(255) NOT NULL, -designated TINYINT(1) default 0 NOT NULL, -priority INTEGER NOT NULL, -site VARCHAR(50), -updatedDate DATETIME NOT NULL, -PRIMARY KEY (pdpId) -); - -CREATE TABLE if not exists drools.DROOLSSESSIONENTITY -( -sessionName VARCHAR(255) NOT NULL, -pdpId VARCHAR(255) NOT NULL, -sessionId BIGINT NOT NULL, -PDPENTITY_pdpId VARCHAR(255), -PRIMARY KEY (sessionName, pdpId) -); - -ALTER TABLE drools.DROOLSSESSIONENTITY ADD CONSTRAINT FK_DROOLSSESSIONENTITY_PDPENTITY_pdpId -FOREIGN KEY (PDPENTITY_pdpId) -REFERENCES drools.DROOLSPDPENTITY (pdpId); - -drop table if exists drools.LastSiteEntity; - -CREATE TABLE `drools`.`LastSiteEntity` -( `id` INT NOT NULL , -`siteName` VARCHAR(50) NOT NULL -); - - diff --git a/packages/base/src/files/data/mysql/161001_droolspdp_downgrade_script.sql b/packages/base/src/files/data/mysql/161001_droolspdp_downgrade_script.sql deleted file mode 100644 index 983a9f3c..00000000 --- a/packages/base/src/files/data/mysql/161001_droolspdp_downgrade_script.sql +++ /dev/null @@ -1,56 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -set foreign_key_checks=0; - -drop table if exists drools.LastSiteEntity; - -CREATE TABLE `drools`.`LastSiteEntity` -( `id` INT NOT NULL , -`siteName` VARCHAR(50) NOT NULL -); - -drop table if exists drools.DROOLSPDPENTITY; - -CREATE TABLE if not exists drools.DROOLSPDPENTITY -( -pdpId VARCHAR(255) NOT NULL, -designated TINYINT(1) default 0 NOT NULL, -priority INTEGER NOT NULL, -site VARCHAR(50), -updatedDate DATETIME NOT NULL, -PRIMARY KEY (pdpId) -); - -drop table if exists drools.DROOLSSESSIONENTITY; -CREATE TABLE if not exists drools.DROOLSSESSIONENTITY -( -sessionName VARCHAR(255) NOT NULL, -pdpId VARCHAR(255) NOT NULL, -sessionId BIGINT NOT NULL, -PDPENTITY_pdpId VARCHAR(255), -PRIMARY KEY (sessionName, pdpId) -); - -ALTER TABLE drools.DROOLSSESSIONENTITY ADD CONSTRAINT FK_DROOLSSESSIONENTITY_PDPENTITY_pdpId -FOREIGN KEY (PDPENTITY_pdpId) -REFERENCES drools.DROOLSPDPENTITY (pdpId); - -set foreign_key_checks=1; diff --git a/packages/base/src/files/data/mysql/161001_droolspdp_upgrade_script.sql b/packages/base/src/files/data/mysql/161001_droolspdp_upgrade_script.sql deleted file mode 100644 index 2731e1bd..00000000 --- a/packages/base/src/files/data/mysql/161001_droolspdp_upgrade_script.sql +++ /dev/null @@ -1,52 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -set foreign_key_checks=0; - -drop table if exists drools.LastSiteEntity; - -drop table if exists drools.DROOLSPDPENTITY; - -CREATE TABLE if not exists drools.DROOLSPDPENTITY -( -pdpId VARCHAR(255) NOT NULL, -designated TINYINT(1) default 0 NOT NULL, -priority INTEGER NOT NULL, -site VARCHAR(50), -updatedDate DATETIME NOT NULL, -designatedDate DATETIME NOT NULL, -PRIMARY KEY (pdpId) -); - -drop table if exists drools.DROOLSSESSIONENTITY; -CREATE TABLE if not exists drools.DROOLSSESSIONENTITY -( -sessionName VARCHAR(255) NOT NULL, -pdpId VARCHAR(255) NOT NULL, -sessionId BIGINT NOT NULL, -PDPENTITY_pdpId VARCHAR(255), -PRIMARY KEY (sessionName, pdpId) -); - -ALTER TABLE drools.DROOLSSESSIONENTITY ADD CONSTRAINT FK_DROOLSSESSIONENTITY_PDPENTITY_pdpId -FOREIGN KEY (PDPENTITY_pdpId) -REFERENCES drools.DROOLSPDPENTITY (pdpId); - -set foreign_key_checks=1; diff --git a/packages/base/src/files/data/mysql/161002_droolspdp_downgrade_script.sql b/packages/base/src/files/data/mysql/161002_droolspdp_downgrade_script.sql deleted file mode 100644 index 90ed6457..00000000 --- a/packages/base/src/files/data/mysql/161002_droolspdp_downgrade_script.sql +++ /dev/null @@ -1,21 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -drop table if exists drools.IntegrityAuditEntity; diff --git a/packages/base/src/files/data/mysql/161002_droolspdp_upgrade_script.sql b/packages/base/src/files/data/mysql/161002_droolspdp_upgrade_script.sql deleted file mode 100644 index ff99d36a..00000000 --- a/packages/base/src/files/data/mysql/161002_droolspdp_upgrade_script.sql +++ /dev/null @@ -1,41 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -drop table if exists drools.IntegrityAuditEntity; -create table if not exists drools.IntegrityAuditEntity -( - id int not null auto_increment, - persistenceUnit varchar(100) not null, - site varchar(100), - nodeType varchar(100), - resourceName varchar(100) not null, - designated boolean default false, - jdbcDriver varchar(100) not null, - jdbcUrl varchar(100) not null, - jdbcUser varchar(30) not null, - jdbcPassword varchar(30) not null, - createdDate TIMESTAMP NOT NULL default current_timestamp, - lastUpdated TIMESTAMP NOT NULL, - primary key(id) -); - -alter table drools.IntegrityAuditEntity add constraint resourceName_uniq unique(resourceName); - - diff --git a/packages/base/src/files/data/mysql/161003_droolspdp_downgrade_script.sql b/packages/base/src/files/data/mysql/161003_droolspdp_downgrade_script.sql deleted file mode 100644 index ba9ac573..00000000 --- a/packages/base/src/files/data/mysql/161003_droolspdp_downgrade_script.sql +++ /dev/null @@ -1,22 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -drop table if exists drools.SEQUENCE; - diff --git a/packages/base/src/files/data/mysql/161003_droolspdp_upgrade_script.sql b/packages/base/src/files/data/mysql/161003_droolspdp_upgrade_script.sql deleted file mode 100644 index 7f8c17ca..00000000 --- a/packages/base/src/files/data/mysql/161003_droolspdp_upgrade_script.sql +++ /dev/null @@ -1,29 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -drop table if exists drools.SEQUENCE; -CREATE TABLE drools.SEQUENCE -( -SEQ_NAME VARCHAR(50) NOT NULL, -SEQ_COUNT NUMERIC(38), -PRIMARY KEY (SEQ_NAME) -); - -INSERT INTO drools.SEQUENCE (SEQ_NAME,SEQ_COUNT) VALUES ('SEQ_GEN',3050); diff --git a/packages/base/src/files/data/mysql/161004_droolspdp_downgrade_script.sql b/packages/base/src/files/data/mysql/161004_droolspdp_downgrade_script.sql deleted file mode 100644 index 5cabefbf..00000000 --- a/packages/base/src/files/data/mysql/161004_droolspdp_downgrade_script.sql +++ /dev/null @@ -1,22 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP POLICY - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -alter table drools.droolsPdpEntity modify updatedDate datetime not null; -alter table drools.droolsPdpEntity modify designatedDate datetime not null; diff --git a/packages/base/src/files/data/mysql/161004_droolspdp_upgrade_script.sql b/packages/base/src/files/data/mysql/161004_droolspdp_upgrade_script.sql deleted file mode 100644 index 5069aad8..00000000 --- a/packages/base/src/files/data/mysql/161004_droolspdp_upgrade_script.sql +++ /dev/null @@ -1,25 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP POLICY - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -alter table drools.droolsPdpEntity modify updatedDate timestamp not null; -alter table drools.droolsPdpEntity modify designatedDate timestamp not null; - - - diff --git a/packages/base/src/files/data/mysql/170200_droolspdp_downgrade_script.sql b/packages/base/src/files/data/mysql/170200_droolspdp_downgrade_script.sql deleted file mode 100644 index 928a584e..00000000 --- a/packages/base/src/files/data/mysql/170200_droolspdp_downgrade_script.sql +++ /dev/null @@ -1,21 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -alter table drools.IntegrityAuditEntity modify jdbcUrl varchar(100) not null; diff --git a/packages/base/src/files/data/mysql/170200_droolspdp_upgrade_script.sql b/packages/base/src/files/data/mysql/170200_droolspdp_upgrade_script.sql deleted file mode 100644 index 93bb69e3..00000000 --- a/packages/base/src/files/data/mysql/170200_droolspdp_upgrade_script.sql +++ /dev/null @@ -1,21 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Base Package - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -alter table drools.IntegrityAuditEntity modify jdbcUrl varchar(200) not null; diff --git a/packages/base/src/files/etc/profile.d/su.cfg b/packages/base/src/files/etc/profile.d/su.cfg deleted file mode 100644 index ddef1b6c..00000000 --- a/packages/base/src/files/etc/profile.d/su.cfg +++ /dev/null @@ -1,21 +0,0 @@ -### -# ============LICENSE_START======================================================= -# ONAP POLICY -# ================================================================================ -# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. -# ================================================================================ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============LICENSE_END========================================================= -### -# -# name=value pairs for su purposes diff --git a/packages/install/pom.xml b/packages/install/pom.xml index 287a9d75..60da88a4 100644 --- a/packages/install/pom.xml +++ b/packages/install/pom.xml @@ -33,7 +33,7 @@ <packaging>pom</packaging> <name>Installation Package</name> - <description>D2 ECOMP Policy Drools PDP Installation Package</description> + <description>ONAP Policy Drools PDP Installation Package</description> <build> <plugins> @@ -73,12 +73,6 @@ </dependency> <dependency> <groupId>org.openecomp.policy.drools-pdp</groupId> - <artifactId>policy-persistence</artifactId> - <version>${project.version}</version> - <type>zip</type> - </dependency> - <dependency> - <groupId>org.openecomp.policy.drools-pdp</groupId> <artifactId>policy-healthcheck</artifactId> <version>${project.version}</version> <type>zip</type> diff --git a/packages/install/src/files/base.conf b/packages/install/src/files/base.conf index b791f635..9278f0b1 100644 --- a/packages/install/src/files/base.conf +++ b/packages/install/src/files/base.conf @@ -27,42 +27,6 @@ ENGINE_MANAGEMENT_HOST=localhost ENGINE_MANAGEMENT_USER=@1b3rt ENGINE_MANAGEMENT_PASSWORD=31nst@1n -ENGINE_HEALTHCHECK_HOST=0.0.0.0 -ENGINE_HEALTHCHECK_PORT=9697 - -JDBC_DRIVER=org.mariadb.jdbc.Driver -JDBC_URL=jdbc:mysql://localhost:3306/xacml -JDBC_DROOLS_URL=jdbc:mysql://localhost:3306/drools -JDBC_USER=policy_user -JDBC_PASSWORD= - -NAGIOS_CONFIG_NAME=policy -NAGIOS_NRDP_URL= -NAGIOS_NRDP_TOKEN=bbpguvsohehj -NAGIOS_NRDP_DISABLED=true - -# Integrity Monitor properties -site_name=site_1 -fp_monitor_interval=30 -failed_counter_threshold=3 -test_trans_interval=20 -write_fpc_interval=5 -max_fpc_update_interval=60 -test_via_jmx=false -node_type=pdp_drools -# Dependency groups are groups of resources upon which a node operational state is dependent upon. -# Each group is a comma-separated list of resource names and groups are separated by a semicolon. -dependency_groups=site_1.pap_1,site_1.pap_2;site_1.pdp_1,site_1.pdp_2 -resource_name=pdpd_1 - -# The (optional) period of time in seconds between executions of the integrity audit. -# Value < 0 : Audit does not run (default value if property is not present = -1) -# Value = 0 : Audit runs continuously -# Value > 0 : The period of time in seconds between execution of the audit on a particular node -integrity_audit_period_seconds=-1 - -host_port=0.0.0.0:9981 - # To use a Nexus repository for rules artifacts, # following properties must be uncommented and set: #repositoryID=policy-nexus @@ -70,7 +34,6 @@ host_port=0.0.0.0:9981 #repositoryUsername=(nexus username goes here) #repositoryPassword=(password goes here) -# just for testing purposes, modify at installation PDPD_CONFIGURATION_TOPIC=PDPD_CONFIGURATION PDPD_CONFIGURATION_SERVERS= PDPD_CONFIGURATION_API_KEY= diff --git a/packages/pom.xml b/packages/pom.xml index eda86090..9ed60d10 100644 --- a/packages/pom.xml +++ b/packages/pom.xml @@ -33,11 +33,10 @@ <packaging>pom</packaging> <name>Policy Packages</name> - <description>D2 ECOMP Policy Drools PDP Installation Packages</description> + <description>ONAP Policy Drools PDP Installation Packages</description> <modules> <module>base</module> - <!-- <module>root</module> --> <module>install</module> </modules> </project> |