Versions Compared

Key

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

...

Code Block
languagediff
themeDJango


diff --git a/bootstrap/vagrant-onap/lib/sdncVagrantfile b/bootstrap/vagrant-onap/lib/sdncVagrantfile
index a69ce180664e5f..ff582fe667d3bf 100755100644
--- a/bootstrap/vagrant-onap/lib/sdncVagrantfile
+++ b/bootstrap/vagrant-onap/lib/sdncVagrantfile
@@ -313,7 +313,7 @@
 configuration source /var/onap/functions= {
 source /var/onap/ccsdk
 
-sdnc_src_folder=$git_src_folder/openecomp/sdnc
+sdnc_src_folder=$git_src_folder/onap/sdnc
 sdnc_repos=("sdnc/adaptors" "sdnc/architecture" "sdnc/core" "sdnc/features" \
 "sdnc/northbound" "sdnc/oam" "sdnc/parent" "sdnc/plugins")
 
@@ -45,9 +45,11 @@ function get_sdnc_images {
     if [[ "$build_image" == "True" ]]; then
 'nexus_password'      => 'docker',
   'dmaap_topic'         => 'AUTO',
   'artifacts_version'   => '1.0.0',
-  'docker_version'      => '1.0-STAGING-latest',
+  'docker_version'      => 'latest',
  _build_sdnc_images
 # Parameters for DCAE elseinstantiation
-   'dcae_zone'     pull_openecomp_image sdnc-image openecomp/sdnc-image:latest
-    => 'iad4',
   pull_openecomp_image admportal-sdnc-image openecomp/admportal-sdnc-image:latest
-'dcae_state'           pull_openecomp_image dgbuilder-sdnc-image openecomp/dgbuilder-sdnc-image:latest
+        pull_onap_image sdnc-image onap/sdnc-image:latest=> 'vi',
@@ -302,6 +302,11 @@ end
 
 Vagrant.configure("2") do |config|
 
+   if provider == :virtualbox  pull_onap_image admportal-sdnc-image onap/admportal-sdnc-image:latest
+        pull_onap_image ccsdk-dgbuilder-image onap/ccsdk-dgbuilder-image:latest&& "sdnc".eql?(requested_machine)
+     config.vm.network "forwarded_port", guest: 8282, host: 8181, protocol: "tcp", auto_correct: true
+        pull_onap_image sdnc-ueb-listener-image onap/sdnc-ueb-listener-image:latest
+        pull_onap_image sdnc-dmaap-listener-image onap/sdnc-dmaap-listener-image:latest
     fi
     pull_docker_image mysql/mysql-server:5.6
 }

Deployment

Start Deployment

cd integration/bootstrap/vagrant-onap

...

config.vm.network "forwarded_port", guest: 8281, host: 8101, protocol: "tcp", auto_correct: true
+   end
+
   # PROXY definitions
     if ENV['http_proxy'] != nil and ENV['https_proxy'] != nil and ENV['no_proxy'] != nil
       if not Vagrant.has_plugin?('vagrant-proxyconf')
@@ -340,6 +345,7 @@ Vagrant.configure("2") do |config|
         # Common Settings:
 
         nodeconfig.vm.provider "virtualbox" do |vbox|
+          vbox.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
           vbox.customize ['modifyvm', :id, '--nictype1', 'virtio']
           vbox.customize ['modifyvm', :id, '--audio', 'none']
           vbox.customize ['modifyvm', :id, '--vram', '1']




Deployment

Start Deployment

cd integration/bootstrap/vagrant-onap

./tools/run.sh sdnc

This will configur and start the guess VM

configure and start the sdnc docker resources on the guest VM. 

and finnaly the SDNC will start

Tip
titlewait

Once the vagrant has completed running it will still take some time for SDNC to come up.   Have patience.  


Connetion to you deployment

Basic Usage of Vagrant and Docker

check running vm instances

From the Base OS use the following command to see the running VM'  ID and name for of the running commands.  

vagrant global-status

Configure Port Forwarding

...

Credentials: admin/Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U

Basic Usage of Vagrant and Docker

// check running vm instances

vagrant global-status

//  ssh to the vm

vagrant ssh ${vm-id}

// check docker images

docker images

...

ssh to the vm

The follow command  will open a ssh terminal to running vm.  The vm name or id can be used.   

vagrant ssh sdnc

For addition details use the -h options

vagrant ssh -h

check docker images

Once you have ssh to the running VM you execute the docker commands 

docker images

check running docker instances

docker

...

ps

...

-a//

ssh to the docker instance

docker

...

exec

...

-i

...

-t

...

${docker-instance}

...

bash
vagrant@sdnc:~$ docker exec -i -t sdnc_controller_container bash


Reference:

[1] ONAP integration: https://git.onap.org/integration/

...