APPC Cloud Provider Setup in appc.properties

Each ONAP deployment could be different and may connect to different cloud providers.  Even if the Cloud Provider is always OpenStack the Identity URL and credentials may be different.  Therefore, the appc.properties file will need to be updated with the Cloud  Provider and it's details on each deployment.  The default proeprties if not updated will likely result in the below error when trying to execute an action on a VNF/VM:

"no server found using the vserver self-link"


If the above error does occur the default property values are likely still in place.  Use the below example as a basis for the properties that will need to be updated with your environment.  The appc.properties file can be found in the /opt/onap/appc/data/properties directory.

Default in appc.properties:

###                                                                                                                                               
###
###
OpenStack credentials (these properties also are used in
appc-rest-adapter-bundle, appc-chef-adapter-bundle, appc-iaas-adapter-bundle)
###
###                                                                                                                                               
###

provider1.type=OpenStackProvider
provider1.name=OpenStack
provider1.identity=http://localhost:8181/apidoc/explorer/index.html
provider1.tenant1.name=default
provider1.tenant1.domain=Default
provider1.tenant1.userid=admin
provider1.tenant1.password=admin

Required Updates for Your Environment (Example):

###                                                                                                                                               
###
###
OpenStack credentials (these properties also are used in
appc-rest-adapter-bundle, appc-chef-adapter-bundle, appc-iaas-adapter-bundle)
###
###                                                                                                                                               
###

provider1.type=OpenStackProvider
provider1.name=OpenStack
provider1.identity=http://10.12.25.2:5000/v3
provider1.tenant1.name=APPC
provider1.tenant1.domain=Default
provider1.tenant1.userid=APPC-admin
provider1.tenant1.password=myonapadminpassword



In the example above the APPC tenant name will be used (That is the Project in OpenStack Horizon), the username and password are examples of a username and password setup in OpenStack for APPC.