Hey Yang, Regarding the first error, usually I get the same error when I have leftovers from previous executions and most of the times they are solved when $ vagrant destroy command is executed [1]. The second execution printed a message about building ONAP Docker images from source code and this building process has not implemented yet [2], we have collected most of the build instructions in separated files and it’s necessary to call all these get_*_images functions from there. Anyway, there is a way to control the workflow of the vagrant-onap tool thru persistent configuration values or parameters [3], Shashank made a great job explaining these concepts with examples [4]. So, for OOM you have to choose the following values in etc/settings.yaml file:
build_image: "False" skip_install: "False" At this point you should be able to access to the Rancher and Kubernetes Dashboards using their port forwarded ports[5], but nothing has been deployed there yet given the default configuration values. Regards/Saludos Victor Morales PS: You can also control the verbosity level of the execution thru the “debug” value in the settings file. [1] https://git.onap.org/integration/tree/bootstrap/vagrant-onap/tools/run.sh#n99 [2] https://git.onap.org/integration/tree/bootstrap/vagrant-onap/lib/oom#n166 [3] http://onap.readthedocs.io/en/latest/submodules/integration.git/bootstrap/vagrant-onap/doc/source/features/configure_execution.html [4] http://onap.readthedocs.io/en/latest/submodules/integration.git/bootstrap/vagrant-onap/doc/source/features/example_usage.html [5] https://git.onap.org/integration/tree/bootstrap/vagrant-onap/Vagrantfile#n162 From: yanghc <[email protected]> Date: Monday, January 29, 2018 at 1:12 AM To: Victor Morales <[email protected]>, "[email protected]" <[email protected]> Subject: RE: [onap-discuss] [integration] Problem with install ONAP on vagrant Hi Morales, Thanks a lot for your advice. I’ve tried to install OOM instead of all-in-one using vagrant, but still had some problems while installing OOM. At the first time, I executed following steps, and the message “Interface adapter number is already in use” was showed at the end. Please see the attached file “vagrant_libvirt.out” for more detail. The environment : Ubuntu 16.04.4 with 16 processor and 64 G RAM The steps: $ sudo apt-get install git $ git clone https://git.onap.org/integration $ wget -q https://releases.hashicorp.com/vagrant/2.0.1/vagrant_2.0.1_x86_64.deb $ sudo dpkg -i vagrant_2.0.1_x86_64.deb $ cd integration/bootstrap/vagrant-onap $ ./tools/setup_libvirt.sh $ sudo usermod -a -G libvirtd $USER $ echo "export VAGRANT_DEFAULT_PROVIDER=libvirt" >> ~/.profile $ su - $USER $./tools/run.sh oom I tried to fix it with executing following steps : $ mkdir ~/tmp $ cd tmp $ git clone https://github.com/vagrant-libvirt/vagrant-libvirt $ cd vagrant-libvirt/ $ modify the file “vagrant-libvirt.gemspec” : - gem.add_runtime_dependency 'nokogiri', '~> 1.6.0' + gem.add_runtime_dependency 'nokogiri', '~> 1.7.1' $ /opt/vagrant/embedded/bin/gem build vagrant-libvirt.gemspec $ vagrant plugin install ~/tmp/vagrant-libvirt/vagrant-libvirt-0.0.40.gem And then re-run “./tools/run.sh oom”. Please see the attached file “vagrant_libvirt-2.out” for more detail. It seemed like working well, although the following message came out all the time. The message is “/home/yanghc/.vagrant.d/gems/2.4.2/gems/nokogiri-1.6.8.1/lib/nokogiri/xml/document.rb:44: warning: constant ::Fixnum is deprecated” But after the installation, I couldn’t find the portal instance. Did I miss any steps ? BTW, it would be more friendly if adding following two steps at the end of setup_libvirt.sh. sudo usermod -a -G libvirtd $USER echo "export VAGRANT_DEFAULT_PROVIDER=libvirt" >> ~/.profile Best regards, H.C. Yang From: Morales, Victor [mailto:[email protected]] Sent: Thursday, January 25, 2018 1:47 AM To: yanghc <[email protected]>; [email protected] Subject: Re: [onap-discuss] [integration] Problem with install ONAP on vagrant Hi Yang, It looks like the * _wait_for_sdc* method (line 141026 of your log) of lib/aai script is not able to reach the SDC endpoint. I recently updated that script [1] but I’m still having my doubts about the install_aai method[2] which keep waiting for complete the execution of deploy_vm2.sh[3] and deploy_vm1[4] scripts. OTOH, as you noticed I haven’t tested the All-in-One configuration in a while, if you want to test all ONAP services I recommend to use the OOM option available in master[5] $ ./tools/run.sh oom That’s require more hardware (16 vCPUs and 64 GB RAM)[6] therefore I recommend to use libvirt vagrant provider instead of virtualbox[7]. Regards/Saludos Victor Morales [1] https://gerrit.onap.org/r/#/c/28801/ [2] https://git.onap.org/integration/tree/bootstrap/vagrant-onap/lib/aai#n102 [3] https://git.onap.org/aai/test-config/tree/deploy_vm2.sh#n25 [4] https://git.onap.org/aai/test-config/tree/deploy_vm1.sh#n78 [5] https://git.onap.org/integration/tree/bootstrap/vagrant-onap/lib/oom [6] https://git.onap.org/integration/tree/bootstrap/vagrant-onap/Vagrantfile#n157 [7] https://git.onap.org/integration/tree/bootstrap/vagrant-onap/tools/setup_libvirt.sh From: <[email protected]<mailto:[email protected]>> on behalf of yanghc <[email protected]<mailto:[email protected]>> Date: Tuesday, January 23, 2018 at 11:48 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [onap-discuss] [integration] Problem with install ONAP on vagrant Hi, I tried to install ONAP “all-in-one” following the page https://wiki.onap.org/display/DW/ONAP+on+Vagrant , but build failure for aai service. Can anyone give me some help to solve this problem ? Eep The steps : $ wget -q https://releases.hashicorp.com/vagrant/2.0.1/vagrant_2.0.1_x86_64.deb $ sudo dpkg -i vagrant_2.0.1_x86_64.deb # echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" >> /etc/apt/sources.list $ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - $ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add - $ sudo apt-get update -y $ sudo apt-get install -y virtualbox-5.1 dkms $ sudo apt install -y nfs-kernel-server $ git clone https://git.onap.org/integration $ git checkout 1.0.0-Amsterdam $ cd integration/bootstrap/vagrant-onap $ modify tools/run.sh, replace “all_in_one” to “all-in-one” $ ./tools/run.sh all-in-one The environment : Ubuntu 14.04.4 LTS with 16 processor and 64 G RAM The installation log : please see the attached. Best regards, H.C. Yang -- 本信件可能包含工研院機密資訊,非指定之收件者,請勿使用或揭露本信件內容,並請銷毀此信件。 This email may contain confidential information. Please do not use or disclose it in any way and delete it if you are not the intended recipient. -- 本信件可能包含工研院機密資訊,非指定之收件者,請勿使用或揭露本信件內容,並請銷毀此信件。 This email may contain confidential information. Please do not use or disclose it in any way and delete it if you are not the intended recipient.
_______________________________________________ onap-discuss mailing list [email protected] https://lists.onap.org/mailman/listinfo/onap-discuss
