.. ============LICENSE_START========================================== .. =================================================================== .. Copyright © 2017 AT&T Intellectual Property. All rights reserved. .. =================================================================== .. Licensed under the Creative Commons License, Attribution 4.0 Intl. (the "License"); .. you may not use this documentation except in compliance with the License. .. You may obtain a copy of the License at .. .. https://creativecommons.org/licenses/by/4.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============================================ .. ECOMP is a trademark and service mark of AT&T Intellectual Property. ========================= APPC Available Properties ========================= Overview ======== The current list of properties that can be overwritten from all default.properties files to `appc.properties `_ are listed below. Please note that some properties have default values since some code requires it to be defined as part of the building/compilation process. - The only defined property values in appc.properties are the following: - "appc.demo.\*" properties (needed for demo) - "appc.provider.vfodl.url" property (needed for demo) - "appc.service.logic.module.name" property (needed for demo) - "appc.topology.dg.\*" properties (needed for demo) Properties List =============== The following features have properties that can be defined by the user as explained below: **DMaaP Event Bus** APPC sends asynchronous responses using the DMaaP. It also receives requests from DMaaP (see the `APPC API Guide `_ for further details). The DMaaP Adapter Bundle handles all DMaaP operations (send / receive messages), and requires the following properties configured in */opt/openecomp/appc/data/properties/appc.properties*. - **dmaap.poolMembers property**: - Applies to the following features: appc-command-executor-core, appc-license-manager-core, appc-lifecycle-management-core, appc-request-handler-core, and appc-workflow-management-core (all part of the appc-dispatcher package) - Defines the DMaaP IP or URL location of the DMaaP Pool Members involved in the DMaaP Communication of that feature in specific (NOTE: More than one Pool Member can be defined in the form of a comma-delimited list) - **appc.ClosedLoop.\* properties** & **appc.ClosedLoop1607.\* properties**: - Applies to the following feature: appc-event-listener-bundle - These properties define in which DMaaP will the appc-event-listener feature will listen in - **appc.LCM.\* properties**: - Applies to the following features: appc-event-listener-bundle, appc-command-executor-core, appc-license-manager-core, appc-request-handler-core, appc-workflow-management-core, and appc-lifecycle-management-core - These properties define in which DMaaP will the appc-event-listener feature will listen in. These properties are especifically used to define LCM (LifeCycle Management) actions, and are only used as part of JUnit Test Cases. - **Other properties**: - \*poolMembers, event.pool.members - Applies to the following features: appc-netconf-adapter-bundle, appc-dg-common, appc-dmaap-adapter-bundle - These properties can be defined to use the features defined above. They are used to point to current DMaaP listener - **Example**: .. code:: bash ### Asynchronous responses ### dmaap.topic.write= // e.g. async_demo dmaap.poolMembers= :,: # e.g. 192.168.1.10:3904 ### DG events (asynchronous) in case of failures ### DCAE.event.topic.write= // e.g. event_demo DCAE.event.pool.members=:,: # e.g. 192.168.1.10:3904 ### LCM API (rpc) – synchronous ### # The following properties are required for sending an LCM request over DMaaP appc.LCM.provider.url=https://localhost:8443/restconf/operations/appc-provider-lcm appc.LCM.poolMembers=:,: # e.g. 192.168.1.10:3904 appc.LCM.topic.read= # e.g. test123 appc.LCM.topic.write= # e.g. APPC-LCM-TEST appc.LCM.client.name= # e.g name1 appc.LCM.client.name.id= # e.g 0 appc.LCM.provider.user= # e.g. admin appc.LCM.provider.pass= # e.g. admin **AAI Adaptor (SDNC-based)** APPC connects with ONAP AAI using the SDNC AAI service (sdnc-aai-service-.zip). To initialize AAI services on an APPC instance, the following AAI properties need to be configured in */opt/openecomp/appc/data/properties/aaiclient.properties*. The current default properties for AAI are located in `aaiclient.properties `_. - **Example**: .. code:: bash org.onap.ccsdk.sli.adaptors.aai.ssl.trust= # Default value is /opt/openecomp/appc/data/stores/truststore.openecomp.client.jks - this default keystore currently exists in that path org.onap.ccsdk.sli.adaptors.aai.ssl.trust.psswd= # Default value for the default keystore is adminadmin org.onap.ccsdk.sli.adaptors.aai.uri= # Default value is https://aai.api.simpledemo.openecomp.org:8443 **Database Connection** APPC uses the SDNC dblib service (*sdnc-dblib-.zip*) for all database operations. The SQL driver used to connect to the MySQL Database is the MariaDB Driver/Connector. This library uses the file, */opt/openecomp/appc/data/properties/dblib.properties*, which contains the requisite database properties, such as host, user and password. The current default properties for dblib are located in `dblib.properties `_. NOTE: The values in the default dblib.properties (link referenced above) are the default ones. These values do not need to be changed and can be left as is in order to connect to the default MySQL Database Docker Container when deploying APPC using docker-compose. .. code:: bash org.onap.ccsdk.sli.jdbc.hosts= org.onap.ccsdk.sli.jdbc.url=jdbc:mysql://:3306/ org.onap.ccsdk.sli.jdbc.database= org.onap.ccsdk.sli.jdbc.user= org.onap.ccsdk.sli.jdbc.password= org.onap.ccsdk.sli.jdbc.connection.name= org.onap.ccsdk.sli.jdbc.limit.init= # default is 10 org.onap.ccsdk.sli.jdbc.limit.min= # default is 10 org.onap.ccsdk.sli.jdbc.limit.max= # default is 20 **APPC Transactions Database Connection** Applies to the following features: appc-dg-common, appc-command-executor-core, appc-request-handler-core, appc-workflow-management-core. .. code:: bash # appcctl is the default name of the APPC Database Table, equivalent to sdnctl org.openecomp.appc.db.url.appcctl=jdbc:mysql://:3306/appcctl org.openecomp.appc.db.user.appcctl=appcctl org.openecomp.appc.db.pass.appcctl=appcctl **Service Logic Interpreter (SLI) - SVCLOGIC** APPC uses the SDNC SLI service (*sdnc-sli-.zip*) to execute the DG. To initialize SLI services, the following properties need to be configured in */opt/openecomp/appc/data/properties/svclogic.properties*. The database operations performed from the DG also use this database configuration. The current default properties for SLI are located in `svclogic.properties `_. .. code:: bash org.onap.ccsdk.sli.dbtype = jdbc # Note : the next 4 fields are only used if org.onap.ccsdk.sli.dbtype = jdbc org.onap.ccsdk.sli.jdbc.url=jdbc:mysql://:3306/ # jdbc:mysql://localhost:3306/sdnctl org.onap.ccsdk.sli.jdbc.database= # e.g. sdnctl org.onap.ccsdk.sli.jdbc.user= # e.g. sdnctl org.onap.ccsdk.sli.jdbc.password= **IaaS (Infracstructure as a Service) Adapter** The APPC IaaS Adapter is the southbound adapter of APPC which is responsible of executing VIM-based actions (i.e. OpenStack actions). To initialize the IaaS Adapter service, the following properties need to be configured in */opt/openecomp/appc/data/properties/appc.properties*. The current default properties for the IaaS adaptor are located in `here `_. Note: The IaaS Adapter currently supports the OpenStack VIM *only*, and uses the CDP Libraries to implement the code necessary to run VIM-based LCM actions. - **provider1.\* properties**: - Applies to the following features: appc-rest-adapter-bundle, appc-chef-adapter-bundle, appc-iaas-adapter-bundle, appc-ansible-adapter-bundle, appc-rest-healthcheck-adapter-bundle - These properties need to be defined in order to use OpenStack-based API executions. For example, the APPC function "restart" is in charge of restarting a VM when requested. Therefore, properties such as OpenStack credentials, tenant name, VM ID, and others pre-defined in the appc.properties need to be defined with the information of the OpenStack Environment you are deploying APPC from. - **test.\* properties**: - Applies to the following features: appc-rest-adapter-bundle, appc-chef-adapter-bundle, appc-iaas-adapter-bundle - These are properties that test OpenStack-based APPC API requests - **Example**: .. code:: bash # Provider (VIM) configuration provider1.type= # default value is OpenStackProvider for OpenStack conn. provider1.name= # default value is OpenStack for OpenStack conn. provider1.identity= # The VIM authentication URL provider1.tenant1.name= # The Tenant Name of the VIM provider1.tenant1.userid= # The VIM username provider1.tenant1.password= # The VIM password **Other Properties** - **appc.sdc.\* properties**: - Used to connect to a SDC instance. Applies to the following feature: appc-sdc-listener-bundle - These properties are used to test integration between the SDC ONAP component & APPC. Properties such as pointing to the DMaaP listener & topic, SDC credentials to authenticate into the SDC component, define the RESTCONF URL, and others are mapped here. - **restconf.user, restconf.pass properties**: - Applies to the following features: appc-netconf-adapter-bundle, appc-dg-common - These properties can be defined to define the RESTCONF credentials needed to execute APPC API requests from the features impacted above. **Notes** - When changing a property, please make sure to restart the APPC Docker Container so that the changes kick in using "docker stop " and then "docker start ". - When deploying APPC using the `docker-compose.yml `_ script, please make sure that the *SDNC_CONFIG_DIR* environment variable in the appc container configuration parameters points to */opt/openecomp/appc/data/properties* (default parameter value).