Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add some descriptions for the purpose of the steps.

...

Info

The source of the new startODL.sh script, gerrit change 25475, has been merged into sdnc/oam project on December 15th, 2017.

Skip this section if your SDN-C image includes this change.


Do the following to get the new startODL.sh script which provides the configuration of ODL clustering for SDN-C cluster.

#PurposeCommand Examples
1Get the shared new startODL.sh script content

Go to gerrit change 25475

click on installation/sdnc/src/main/scripts/startODL.sh under the Files section to view the details of the changes

click on the Download button to download the startODL_new.sh.zip file

open the sh file inside the zip file, and copy the content (to be used in step 2)

2Create new startODL.sh on the Kubernetes node VM

mkdir -p /home/ubuntu/cluster/scripts

vi /home/ubuntu/cluster/script/startODL.sh

paste the copied content from step 1 to this file

3Give execution permission to the new startODL.sh scriptchmod 777 /home/ubuntu/cluster/script/startODL.sh

...

#PurposeCommand and Examples
1Get the shared templates code git fetch command

Go to gerrit change 25467

Click Download downward arrow, and click the click board in the same line as Checkout to get the git commands (which includes the git fetch and checkout commands).

Expand
titleAn example of the git commands with patch set 19

git fetch https://gerrit.onap.org/r/oom refs/changes/67/25467/19 && git checkout FETCH_HEAD

2Fetch the shared template to the oom directory on the Kubernetes node VM

cd {$OOM}

run the git commands got from step 1

3Link the new startODL.sh

vi kubernetes/sdnc/templates/sdnc-statefulset.yaml

do the following changes:

PurposeChanges
Info

Skip this change if you have skipped the get new startODL.sh script section

mount point for new startODL.sh script

FieldAdded Value

.spec.template.spec.containers.volumeMounts

(of container sdnc-controller-container)

- mountPath: /opt/onap/sdnc/bin/startODL.sh
name: sdnc-startodl

 .spec.template..spec.volumes

- name: sdnc-startodl
hostPath:
path: /home/ubuntu/cluster/script/startODL.sh

mount point for ODL

test bundle

deploy directory

(ODL automatically install bundles/pacakges under its deploy directory, this mount point provides capability to drop a bundle/package in the Kubernetes node at /home/ubuntu/cluster/deploy directory and it will automativally be installed in the sdnc pods.)

FieldAdded Value

.spec.template.spec.containers.volumeMounts

(of container sdnc-controller-container)

- mountPath: /opt/opendaylight/current/deploy
name: sdnc-deploy

 .spec.volumes

- name: sdnc-deploy
hostPath:
path: /home/ubuntu/cluster/deploy

4Enable cluster configuration

vi kubernetes/sdnc/values.yaml

change the following fields with the new value:

fieldnew valueold value
enableODLClustertruefalse
numberOfODLReplicas31
numberOfDbReplicas21

...