2 answers
- 10-1
Chandrakiran Barad, Daniel Rose, James Forsyth,My solution was very tactical: I went yesterday back to the single-VM AAI, which btw, works now out-of-the-box as it seems (No need to create directories and copy script files anymore).
The steps I took where:
- Save the cloud-init script from /var/lib/cloud/instance/user-data.txt to another server or your laptop. It will get lost in the next step otherwise
- In Openstack, in the instances list, check AAI1 and from the drop down, select "rebuild server". Note: Once you do that, AAI 1 is gone. You get a clean Ubuntu server back
Compare the saved user-data.txt with the user-data section in the previous HEAT template, the one which only had one AAI server. I had such a template from previous attempts. I'll attach it as reference Make sure the exact same files are generated in /opt/config in user-data.txt. I think there where only one or two different lines, no big deal. IIRR, it was the sdc address, like in
echo "__sdc_ip_addr__" > /opt/config/sdc_ip_addr.txt
you need to replace "__sdc_ip_addr__ of course with what has been defined as sdc_ip_addr: in your environment file (by default: 10.0.3.1)
- replace aai_install2.sh by aai_install.sh (two times)
- scp user-data.txt to the rebuild aai server (it might still named vm1-aai1 or so, don't mind) as /root/init.sh.
- log as root into the aai server and run "bash init.sh"
- Wait a while
- After waiting, I got a working AAI server.
- Chandrakiran Barad
Hi Josef,
Thank you.
Please share the previous heat template and it would be very much helpful if you provide the /root/init.sh file here.
- Josef Reisinger
That's what I used
#!/bin/bash # Create configuration files mkdir -p /opt/config echo "https://nexus.onap.org/content/sites/raw" > /opt/config/nexus_repo.txt echo "nexus3.onap.org:10001" > /opt/config/nexus_docker_repo.txt echo "docker" > /opt/config/nexus_username.txt echo "docker" > /opt/config/nexus_password.txt echo "1.1.0-SNAPSHOT" > /opt/config/artifacts_version.txt echo "10.0.100.1" > /opt/config/dns_ip_addr.txt echo "AUTO" > /opt/config/dmaap_topic.txt echo "1.0-STAGING-latest" > /opt/config/docker_version.txt echo "release-1.0.0" > /opt/config/gerrit_branch.txt echo "aai_instance_1" > /opt/config/aai_instance.txt echo "openstack" > /opt/config/cloud_env.txt echo "8.8.8.8" > /opt/config/external_dns.txt echo "10.0.3.1" > /opt/config/sdc_ip_addr.txt # Download and run install script curl -k https://nexus.onap.org/content/sites/raw/org.openecomp.demo/boot/1.1.0-SNAPSHOT/aai_install.sh -o /opt/aai_install.sh cd /opt chmod +x aai_install.sh ./aai_install.sh
- Chandrakiran Barad
Thanks Josef Reisinger. Appreciate much. Did you remove the hbase from second aai vm2 before installing on first vm ? i can see hbase is still pointing to the second vm. Please help.
Add your comment... - 10-1
looks like AAI bug: AAI-11 - robot_vm: demo.sh failing - '200' does not match '^(201|412)$' on vanilla openstack Closed . work around would be to edit /var/opt/OpenECOMP_ETE/robot/resources/demo_preload.robot line 57 change it to
Should Match Regexp ${status_string} ^(200|201|412)$
- Chandrakiran Barad
I tried the work around and this time it passed :
root@vm1-robot:/opt# ./demo.sh init
Starting Xvfb on display :89 with res 1280x1024x24
Executing robot tests at log level TRACE
==============================================================================
OpenECOMP ETE
==============================================================================
OpenECOMP ETE.Robot
==============================================================================
OpenECOMP ETE.Robot.Testsuites
==============================================================================
OpenECOMP ETE.Robot.Testsuites.Demo :: Executes the VNF Orchestration Test ...
==============================================================================
Initialize Customer And Models | PASS |
------------------------------------------------------------------------------
OpenECOMP ETE.Robot.Testsuites.Demo :: Executes the VNF Orchestrat... | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
OpenECOMP ETE.Robot.Testsuites | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
OpenECOMP ETE.Robot | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
OpenECOMP ETE | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output: /share/logs/demo/InitDemo/output.xml
Log: /share/logs/demo/InitDemo/log.html
Report: /share/logs/demo/InitDemo/report.html
root@vm1-robot:/opt#But still subscriber name is not populated in the drop down list. it is still empty.
- Daniel Rose
James Forsyth or Venkata Harish Kajur can you check this?
Add your comment...
I am trying to deploy service instance in VID. When i select the SDC service models and click on deploy, new page opens.
on the next page provided instance name. For Subscriber name , no data is loaded. Drop down box is empty.
Without subscriber name , deploy of service instance is failing. Asking for subscriber name.
How to debug this issue.
I stumbled across the exact same issue this morning after running /opt/demo.sh init
Tutorial: Creating a Service Instance from a Design Model
specifically demo.sh init does this step so if you can run that again on your vm and attach the output that would help us debug
As mentioned in other question: robot_vm: demo.sh failing - '200' does not match '^(201|412)$' on vanilla openstack , demo.sh init works fine for first time and fails second time :
root@vm1-robot:/opt# ./demo.sh init
Starting Xvfb on display :89 with res 1280x1024x24
Executing robot tests at log level TRACE
==============================================================================
OpenECOMP ETE
==============================================================================
OpenECOMP ETE.Robot
==============================================================================
OpenECOMP ETE.Robot.Testsuites
==============================================================================
OpenECOMP ETE.Robot.Testsuites.Demo :: Executes the VNF Orchestration Test ...
==============================================================================
Initialize Customer And Models | PASS |
------------------------------------------------------------------------------
OpenECOMP ETE.Robot.Testsuites.Demo :: Executes the VNF Orchestrat... | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
OpenECOMP ETE.Robot.Testsuites | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
OpenECOMP ETE.Robot | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
OpenECOMP ETE | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output: /share/logs/demo/InitDemo/output.xml
Log: /share/logs/demo/InitDemo/log.html
Report: /share/logs/demo/InitDemo/report.html
root@vm1-robot:/opt# ./demo.sh init
Starting Xvfb on display :89 with res 1280x1024x24
Executing robot tests at log level TRACE
==============================================================================
OpenECOMP ETE
==============================================================================
OpenECOMP ETE.Robot
==============================================================================
OpenECOMP ETE.Robot.Testsuites
==============================================================================
OpenECOMP ETE.Robot.Testsuites.Demo :: Executes the VNF Orchestration Test ...
==============================================================================
Initialize Customer And Models | FAIL |
'200' does not match '^(201|412)$'
------------------------------------------------------------------------------
OpenECOMP ETE.Robot.Testsuites.Demo :: Executes the VNF Orchestrat... | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
OpenECOMP ETE.Robot.Testsuites | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
OpenECOMP ETE.Robot | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
OpenECOMP ETE | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output: /share/logs/demo/InitDemo/output.xml
Log: /share/logs/demo/InitDemo/log.html
Report: /share/logs/demo/InitDemo/report.html
root@vm1-robot:/opt#
Attaching log : log.html
Chandrakiran Barad also can you try to fetch /opt/eteshare/logs/demo/InitDemo/output.xml from robot and look for the error? Perhaps we can do some workaround.
kranthi guttikonda no errors found in output.xml file. After applying workaround suggested by Daniel Rose, ./demo.sh init passes. But still subscriber name is not listed on VID.
Attaching Output.xml : output.xml
Josef Reisinger did you find any work around to get the subscriber name listed on VID ? Please help.