Thanks Ahmad, it worked. root@lxh-onap-sdc:/opt# curl http://localhost:8181/sdc1/rest/healthCheck { "sdcVersion": "1.0.0", "siteMode": "unknown", "componentsInfo": [ { "healthCheckComponent": "BE", "healthCheckStatus": "UP", "version": "1.0.0", "description": "OK" }, { "healthCheckComponent": "ES", "healthCheckStatus": "UP", "description": "OK" }, { "healthCheckComponent": "TITAN", "healthCheckStatus": "UP", "description": "OK" }, { "healthCheckComponent": "DE", "healthCheckStatus": "UP", "description": "OK" }, { "healthCheckComponent": "FE", "healthCheckStatus": "UP", "version": "1.0.0", "description": "OK" } ]
On May 8, 2017, at 14:26, Ahmad, Munir <[email protected]<mailto:[email protected]>> wrote: This wont be a clean fix but if you want to continue past this step then modify /root/chef-solo/cache/cookbooks/sdc-normatives/recipes/upgrade_Normatives.rb from inside the sdc-BE container by hardcoding the IPs and restart the container then watch the logs it should be successful. 7: bash "upgrade-normatives" do 8: cwd "#{working_directory}" 9: code <<-EOH 10: tar xvfz /tmp/normatives.tar.gz 11: cd normatives/scripts/import/tosca/ 12: /bin/chmod +x upgradeNormative.py importGroupTypes.py 13: python upgradeNormative.py -i 10.0.3.1 --debug=true > /var/lib/jetty/logs/upgradeNormative.log 14: python importGroupTypes.py -i 10.0.3.1 > /var/lib/jetty/logs/importGroupTypes.log 15: EOH 16: end 17: From: Ethan Lynn <[email protected]<mailto:[email protected]>> Date: Monday, May 8, 2017 at 2:20 PM To: "Ahmad, Munir" <[email protected]<mailto:[email protected]>> Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: [onap-discuss] Failed to setup SDC Hi Ahmad, Ifconfig -a returns following: root@lxh-onap-sdc:/opt# ifconfig -a docker0 Link encap:Ethernet HWaddr 02:42:4b:2d:9e:37 inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0 inet6 addr: fe80::42:4bff:fe2d:9e37/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5252582 errors:0 dropped:0 overruns:0 frame:0 TX packets:7860787 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1300378870 (1.3 GB) TX bytes:659601364 (659.6 MB) eth0 Link encap:Ethernet HWaddr fa:16:3e:f4:ea:16 inet addr:10.0.3.1 Bcast:10.0.255.255 Mask:255.255.0.0 inet6 addr: fe80::f816:3eff:fef4:ea16/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9037622 errors:0 dropped:0 overruns:0 frame:0 TX packets:5900258 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2103958596 (2.1 GB) TX bytes:1414489002 (1.4 GB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:40 errors:0 dropped:0 overruns:0 frame:0 TX packets:40 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:5001 (5.0 KB) TX bytes:5001 (5.0 KB) veth1e44863 Link encap:Ethernet HWaddr da:a0:fd:84:bb:a5 inet6 addr: fe80::d8a0:fdff:fe84:bba5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4479 errors:0 dropped:0 overruns:0 frame:0 TX packets:4490 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:313778 (313.7 KB) TX bytes:236354 (236.3 KB) veth39ae382 Link encap:Ethernet HWaddr 72:b1:f9:fa:6b:0b inet6 addr: fe80::70b1:f9ff:fefa:6b0b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1312 errors:0 dropped:0 overruns:0 frame:0 TX packets:1390 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:704027 (704.0 KB) TX bytes:709549 (709.5 KB) veth6167efb Link encap:Ethernet HWaddr da:b6:f5:ab:dc:48 inet6 addr: fe80::d8b6:f5ff:feab:dc48/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5233432 errors:0 dropped:0 overruns:0 frame:0 TX packets:7840574 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1370395155 (1.3 GB) TX bytes:656856655 (656.8 MB) veth637e467 Link encap:Ethernet HWaddr e6:c1:fd:69:bf:85 inet6 addr: fe80::e4c1:fdff:fe69:bf85/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:38 errors:0 dropped:0 overruns:0 frame:0 TX packets:60 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3511 (3.5 KB) TX bytes:5411 (5.4 KB) vethd7b90e7 Link encap:Ethernet HWaddr a2:1e:b4:4d:c5:57 inet6 addr: fe80::a01e:b4ff:fe4d:c557/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13321 errors:0 dropped:0 overruns:0 frame:0 TX packets:14327 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2498547 (2.4 MB) TX bytes:1797351 (1.7 MB) On May 8, 2017, at 14:18, Ahmad, Munir <[email protected]<mailto:[email protected]>> wrote: Hi Ethan, Can you run ifconfig –a and send the output? I think you HOST_IP is blank From: <[email protected]<mailto:[email protected]>> on behalf of Ethan Lynn <[email protected]<mailto:[email protected]>> Date: Monday, May 8, 2017 at 2:15 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [onap-discuss] Failed to setup SDC I saw following error when I try to setup ONAP env on openstack, Is there anyone encounter this? Is there any changes related to sdc container? normatives/scripts/import/tosca/importPolicyTypes.py STDERR: ---- End output of "bash" "/tmp/jetty/chef-script20170508-470-1b3qqzw" ---- Ran "bash" "/tmp/jetty/chef-script20170508-470-1b3qqzw" returned 1 Resource Declaration: --------------------- # In /root/chef-solo/cache/cookbooks/sdc-normatives/recipes/upgrade_Normatives.rb 7: bash "upgrade-normatives" do 8: cwd "#{working_directory}" 9: code <<-EOH 10: tar xvfz /tmp/normatives.tar.gz 11: cd normatives/scripts/import/tosca/ 12: /bin/chmod +x upgradeNormative.py importGroupTypes.py 13: python upgradeNormative.py -i "#{node['HOST_IP']}" --debug=true > /var/lib/jetty/logs/upgradeNormative.log 14: python importGroupTypes.py -i "#{node['HOST_IP']}" > /var/lib/jetty/logs/importGroupTypes.log 15: EOH 16: end 17: Compiled Resource: ------------------ # Declared in /root/chef-solo/cache/cookbooks/sdc-normatives/recipes/upgrade_Normatives.rb:7:in `from_file' bash("upgrade-normatives") do action [:run] retries 0 retry_delay 2 default_guard_interpreter :default command "upgrade-normatives" backup 5 cwd "/tmp" returns 0 user nil code " tar xvfz /tmp/normatives.tar.gz\n cd normatives/scripts/import/tosca/\n /bin/chmod +x upgradeNormative.py importGroupTypes.py\n python upgradeNormative.py -i \"10.0 .3.1\" --debug=true > /var/lib/jetty/logs/upgradeNormative.log\n python importGroupTypes.py -i \"10.0.3.1\" > /var/lib/jetty/logs/importGroupTypes.log\n" interpreter "bash" declared_type :bash cookbook_name "sdc-normatives" recipe_name "upgrade_Normatives" end Platform: --------- x86_64-linux [2017-05-08T15:40:22+00:00] INFO: Running queued delayed notifications before re-raising exception [2017-05-08T15:40:22+00:00] ERROR: Running exception handlers [2017-05-08T15:40:22+00:00] ERROR: Exception handlers complete [2017-05-08T15:40:22+00:00] FATAL: Stacktrace dumped to /root/chef-solo/cache/chef-stacktrace.out [2017-05-08T15:40:22+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2017-05-08T15:40:22+00:00] ERROR: bash[upgrade-normatives] (sdc-normatives::upgrade_Normatives line 7) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' ---- Begin output of "bash" "/tmp/jetty/chef-script20170508-470-1b3qqzw" ---- STDOUT: normatives/import/ normatives/import/tosca/ root@lxh-onap-sdc:/opt# docker exec -it sdc-BE cat /var/lib/jetty/logs/importGroupTypes.log Number of arguments: 3 arguments. be host = 10.0.3.1 , be port = 8080 , user = jh0003 in create normative element groupTypes ../../../import/tosca/group-types//groupTypes.zip [('groupTypesZip', (10, '../../../import/tosca/group-types//groupTypes.zip'))] http response= 503 response buffer <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 503 </title> </head> <body> <h2>HTTP ERROR: 503</h2> <p>Problem accessing /sdc2/rest/v1/catalog/uploadType/grouptypes. Reason: <pre> Service Unavailable</pre></p> <hr /><a href="http://eclipse.org/jetty<https://urldefense.proofpoint.com/v2/url?u=http-3A__eclipse.org_jetty&d=DwMGaQ&c=uilaK90D4TOVoH58JNXRgQ&r=up9Omq7NCNKkP4VoMfzsYPYkeRuQmKh7eeF2fTMIAm4&m=kS8cXeuguTFSIEkFtnTOiTTLu1OAhdZjlUH6paw6PRY&s=aKjnhhO5k9LyUUBKA4sC9bT1yVvS4DSCsm4eJVdEWbg&e=>">Powered by Jetty:// 9.3.15.v20161220</a><hr/> </body> </html> ---------------------------------------- groupTypes | 503 ---------------------------------------- status=1.
_______________________________________________ onap-discuss mailing list [email protected] https://lists.onap.org/mailman/listinfo/onap-discuss
