Hi Keong, When you are running the traversal image, can you add this flag -e DISABLE_UPDATE_QUERY=true and then run the container. Then you shouldn't see any issues with trying to run the built docker images. The updateQueryData shell script is responsible for creating widgets in AAI but it needs the haproxy to be up in order to successfully work. The code was changed to handle this scenario a little differently in heat and oom so that’s why this code was there. Later, we had this script disabled in both oom and heat and ensured but left it out.
Here is a jira task for cleaning it up. https://jira.onap.org/browse/AAI-1529 Also, are you just trying to start the traversal microservice locally or planning to deploy all of AAI locally? If you are planning to just do a simple test, then in resources, you will need to run this command to start locally. mvn -pl aai-resources -PrunAjsc Traversal: mvn -pl aai-traversal -PrunAjsc If you are planning to deploy all of AAI locally, then please follow this tutorial. https://wiki.onap.org/display/DW/How+to+Docker+setup+on+Single+VM Thanks, Harish -----Original Message----- From: [email protected] <[email protected]> On Behalf Of Keong Lim Sent: Tuesday, August 21, 2018 12:38 AM To: [email protected] Subject: Re: [onap-discuss] How to build aai-resources and aai-traversal docker images and push to local docker repository? #aai #docker Hi Harish, I ran that mvn command to build the docker images in aai/resources and aai/traversal and both seemed to give BUILD SUCCESS. However, when I run those containers, there are errors in the logs. Both containers give: === chown: cannot access '/var/chef': No such file or directory === The aai-traversal container has lots of these logs: === tee: /opt/app/aai-traversal/logs/misc/updateQueryData.sh.log.2018-08-20: No such file or directory Begin putTool for widget action-1.0.json /opt/app/aai-traversal/bin/install/updateQueryData.sh[52]: /opt/app/aai-traversal/logs/misc/updateQueryData.sh.log.2018-08-20: cannot create [No such file or directory] updateQueryData.sh: failed for service-design-and-creation/models/model/af593b4b-490e-4665-ad74-2f6351c0a7ce /opt/app/aai-traversal/resources/etc/scriptdata/widget-model-json/action-1.0.json on cmd 1 === Do I need to build more components? Or install more software? Thanks, Keong -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11978): https://lists.onap.org/g/onap-discuss/message/11978 Mute This Topic: https://lists.onap.org/mt/24818784/21656 Mute #aai: https://lists.onap.org/mk?hashtag=aai&subid=2740164 Mute #docker: https://lists.onap.org/mk?hashtag=docker&subid=2740164 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
