Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

And after it is executed...

Voilà!

Installation in Casablanca

We have described the installation procedure prior to Casablanca, and we now turn to the procedure beginning in Casablanca.  As we mentioned earlier, OpenDaylight is configured in Casablanca to install the CCSDK features upon booting up rather than afterwards in a bash script, and "component meta-features" are used rather than the individual features. OpenDaylight boots up much more quickly using this procedure.  Features to install at boot time are configured in $ODL_HOME/etc/org.apache.karaf.features.cfg in two parameters: featuresRepositories and featuresBoot.  We begin by looking in the Dockerfile for the starting point for the CCSDK container: onap/ccsdk-odl-oxygen-image:*{project.version)."

Image Added

In "onap/ccsdk-odl-oxygen-image," the file $ODL_HOME/etc/org.apache.karaf.features.cfg sets these values for the two parameters:

#
# Comma separated list of features repositories to register by default
#
featuresRepositories = file:${karaf.home}/etc/290021b0-51f7-4e02-8efa-007cad16f73a.xml

#
# Comma separated list of features to install at startup
#
featuresBoot = 0af5d86a-980c-48a9-a02d-bdac71ff8529


These universally unique identifiers (UUIDs) are used to identify the startup features.  featuresRepositories references the file $ODL_HOME/etc/290021b0-51f7-4e02-8efa-007cad16f73a.xml, shown here.

root@6cd44c751205:/opt/opendaylight/current/etc# cat $ODL_HOME/etc/290021b0-51f7-4e02-8efa-007cad16f73a.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
     <features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="290021b0-51f7-4e02-8efa-007cad16f73a">
     <repository>mvn:org.apache.karaf.features/framework/4.1.5/xml/features</repository>
     <repository>mvn:org.opendaylight.integration/features-index/0.8.1/xml/features</repository>
     <repository>mvn:org.apache.karaf.features/standard/4.1.5/xml/features</repository>
     <feature name="0af5d86a-980c-48a9-a02d-bdac71ff8529" version="0.0.0">
           <feature prerequisite="false" dependency="false">framework</feature>
          <feature prerequisite="false" dependency="false">standard</feature>
          <feature prerequisite="false" dependency="false">ssh</feature>
          <bundle>mvn:org.apache.aries.quiesce/org.apache.aries.quiesce.api/1.0.0</bundle>
          <bundle>mvn:org.osgi/org.osgi.service.event/1.3.1</bundle>
          <bundle>mvn:org.bouncycastle/bcprov-jdk15on/1.59</bundle>
          <bundle>mvn:org.bouncycastle/bcpkix-jdk15on/1.59</bundle>
          <bundle>mvn:org.bouncycastle/bcprov-ext-jdk15on/1.59</bundle>
          <bundle>mvn:org.apache.felix/org.apache.felix.metatype/1.1.6</bundle>
          <bundle>mvn:org.opendaylight.odlparent/karaf.branding/3.1.0</bundle>
     </feature>
</features>

The featuresBoot value of 0af5d86a-980c-48a9-a02d-bdac71ff8529 references the name of the feature in the xml file and pulls in all of the features and bundles included in that file.