Hello Mari,
Install and init scripts run automatically after the VMs are created. No manual
intervention should be required. Did you run “docker ps -a” before running the
scripts manually, to verify if containers where actually running?
One thing that we noticed is that sometimes it may take a little longer to
instantiate ONAP, depending on hardware and network resources. So please give
it some more time.
As a rule of thumb, if you need to execute operations manually, please run the
<component_name>_vm_init script in /opt (e.g. policy_vm_init.sh). These scripts
set some environmental variables that are used later in docker-compose up.
Based on the logs you attached to the previous email, you run
/opt/docker/docker-compose up –d, but docker-compose needs this instruction to
work
export DOCKER_REPOSITORY=${NEXUS_DOCKER_REPO}
In your case, DOCKER_REPOSITORY is not set.
Please try to rebuild the stack and see if errors appear again.
Thanks,
Marco
From: <[email protected]> on behalf of Mari Muthu
<[email protected]>
Date: Tuesday, May 9, 2017 at 2:20 AM
To: "[email protected]" <[email protected]>
Subject: [onap-discuss] Docker image is not getting started
Dear All,
Have started all VM...the docker pull is success. All relevant files are
downloaded...but, docker image is not running..have executed manually shell
scripts and rebooted..but still docker image is not starting..Could any one
help?
The example, have given from Policy VM...The same is applicable for all...
Have used 16GB RAM, 2 VCPU, 160GB VM from dev-stack
ubuntu@vm1-policy:/opt/config$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$ sudo docker images
---> Download sucess
REPOSITORY TAG
IMAGE ID CREATED SIZE
openecomp/policy/policy-pe latest
2ffa01f2a8a2 5 weeks ago 1.42GB
nexus3.onap.org:10001/openecomp/policy/policy-pe<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_openecomp_policy_policy-2Dpe&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=zqzDdfPjZ2jC0nitL8EgZlET4FUF9fpD9OVNOihyWWI&s=6sEnDANbBAkzP-KwTY1_8xnqs31qNPNAty47BroQjXc&e=>
1.0-STAGING-latest 2ffa01f2a8a2 5 weeks ago 1.42GB
nexus3.onap.org:10001/openecomp/policy/policy-drools<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_openecomp_policy_policy-2Ddrools&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=zqzDdfPjZ2jC0nitL8EgZlET4FUF9fpD9OVNOihyWWI&s=ZtydfQoooe2CQz1ABosv6vmtXmAV4gCJxeZztp9UqJY&e=>
1.0-STAGING-latest 389f86326698 5 weeks ago 1.35GB
openecomp/policy/policy-drools latest
389f86326698 5 weeks ago 1.35GB
openecomp/policy/policy-db latest
4f0ed6e92fed 5 weeks ago 1.14GB
nexus3.onap.org:10001/openecomp/policy/policy-db<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_openecomp_policy_policy-2Ddb&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=zqzDdfPjZ2jC0nitL8EgZlET4FUF9fpD9OVNOihyWWI&s=avoJccpdw-8gv5j4OaLdlWchx-rLRSA7ZChKAqMPIOE&e=>
1.0-STAGING-latest 4f0ed6e92fed 5 weeks ago 1.14GB
openecomp/policy/policy-nexus latest
82c38af9208a 5 weeks ago 982MB
nexus3.onap.org:10001/openecomp/policy/policy-nexus<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_openecomp_policy_policy-2Dnexus&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=zqzDdfPjZ2jC0nitL8EgZlET4FUF9fpD9OVNOihyWWI&s=IKChfLOHhhdSlNW55BulEeHyENR3WmgpNlhP9RJhKpY&e=>
1.0-STAGING-latest 82c38af9208a 5 weeks ago 982MB
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$
ubuntu@vm1-policy:/opt/config$ cd /etc/init.d/
ubuntu@vm1-policy:/etc/init.d$
ubuntu@vm1-policy:/etc/init.d$ sudo ./policy_serv.sh status
Stopped
ubuntu@vm1-policy:/etc/init.d$ sudo ./policy_serv.sh start
Starting policy_serv.sh
ubuntu@vm1-policy:/etc/init.d$
ubuntu@vm1-policy:/etc/init.d$
ubuntu@vm1-policy:/etc/init.d$ sudo ./policy_serv.sh status
Running
ubuntu@vm1-policy:/etc/init.d$
ubuntu@vm1-policy:/etc/init.d$
ubuntu@vm1-policy:/etc/init.d$ sudo ./policy_serv.sh status
Running
ubuntu@vm1-policy:/etc/init.d$
ubuntu@vm1-policy:/etc/init.d$
ubuntu@vm1-policy:/etc/init.d$ sudo ./policy_serv.sh status
Running
ubuntu@vm1-policy:/etc/init.d$
ubuntu@vm1-policy:/etc/init.d$
ubuntu@vm1-policy:/etc/init.d$
ubuntu@vm1-policy:/etc/init.d$
ubuntu@vm1-policy:/etc/init.d$
ubuntu@vm1-policy:/etc/init.d$ sudo ./policy_serv.sh status
Stopped
ubuntu@vm1-policy:/etc/init.d$ vi policy_serv.sh
ubuntu@vm1-policy:/etc/init.d$ cd /var/log/
apt/ dist-upgrade/ fsck/ landscape/
ntpstats/ unattended-upgrades/ upstart/
ubuntu@vm1-policy:/etc/init.d$ cd /var/log/
apt/ dist-upgrade/ fsck/ landscape/
ntpstats/ unattended-upgrades/ upstart/
ubuntu@vm1-policy:/etc/init.d$ cd /var/log/
ubuntu@vm1-policy:/var/log$ vi /etc/init.d/policy_serv.sh
ubuntu@vm1-policy:/var/log$
ubuntu@vm1-policy:/var/log$
ubuntu@vm1-policy:/var/log$ ls
alternatives.log boot.log cloud-init-output.log dmesg.0
fontconfig.log landscape policy_serv.sh.err S20policy_serv.sh.log
unattended-upgrades
apt btmp dist-upgrade dmesg.1.gz fsck
lastlog policy_serv.sh.log syslog upstart
auth.log cloud-init.log dmesg dpkg.log kern.log
ntpstats S20policy_serv.sh.err udev wtmp
ubuntu@vm1-policy:/var/log$ cat policy_serv.sh.
cat: policy_serv.sh.: No such file or directory
ubuntu@vm1-policy:/var/log$ cat policy_serv.sh.err
ubuntu@vm1-policy:/var/log$
ubuntu@vm1-policy:/var/log$
ubuntu@vm1-policy:/var/log$ cat policy_serv.sh.log
Already up-to-date.
Login Succeeded
1.0-STAGING-latest: Pulling from openecomp/policy/policy-db
Digest: sha256:2990e9de2d22daf91f447022f9cef66b08af936df11a2f5c95a2ee76942418f5
Status: Image is up to date for
nexus3.onap.org:10001/openecomp/policy/policy-db:1.0-STAGING-latest<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_openecomp_policy_policy-2Ddb-3A1.0-2DSTAGING-2Dlatest&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=zqzDdfPjZ2jC0nitL8EgZlET4FUF9fpD9OVNOihyWWI&s=epO7wXQFNTs26JQgkEpuMGYxMwSVYPejFB4CnSbRgqs&e=>
1.0-STAGING-latest: Pulling from openecomp/policy/policy-pe
Digest: sha256:851f9ca8359383612b2f42626e34a5cdfba85779a7941a58ee4e55ca10ec6c09
Status: Image is up to date for
nexus3.onap.org:10001/openecomp/policy/policy-pe:1.0-STAGING-latest<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_openecomp_policy_policy-2Dpe-3A1.0-2DSTAGING-2Dlatest&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=zqzDdfPjZ2jC0nitL8EgZlET4FUF9fpD9OVNOihyWWI&s=z1wKHHj2JpkiINUDViYbHu7y906dPfbHApx1jaPjsZA&e=>
1.0-STAGING-latest: Pulling from openecomp/policy/policy-drools
Digest: sha256:d66d8fa636ae07e25e0118fe2e9a55458296523351e53d839cdf906b182f2475
Status: Image is up to date for
nexus3.onap.org:10001/openecomp/policy/policy-drools:1.0-STAGING-latest<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_openecomp_policy_policy-2Ddrools-3A1.0-2DSTAGING-2Dlatest&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=zqzDdfPjZ2jC0nitL8EgZlET4FUF9fpD9OVNOihyWWI&s=SH1Fw2PTutEv7HaaWXBPcbvxjevsmMp9Cij-fvMKdXo&e=>
1.0-STAGING-latest: Pulling from openecomp/policy/policy-nexus
Digest: sha256:2dc022c78bd4e8455709def01f753bf2a69f17e137955f650670568ebe1c1ecc
Status: Image is up to date for
nexus3.onap.org:10001/openecomp/policy/policy-nexus:1.0-STAGING-latest<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_openecomp_policy_policy-2Dnexus-3A1.0-2DSTAGING-2Dlatest&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=zqzDdfPjZ2jC0nitL8EgZlET4FUF9fpD9OVNOihyWWI&s=KQ7vePxwaqCXtw8QbaEqY9V94I7fEYYqyiEjPzbg_HQ&e=>
Already up-to-date.
Login Succeeded
1.0-STAGING-latest: Pulling from openecomp/policy/policy-db
Digest: sha256:2990e9de2d22daf91f447022f9cef66b08af936df11a2f5c95a2ee76942418f5
Status: Image is up to date for
nexus3.onap.org:10001/openecomp/policy/policy-db:1.0-STAGING-latest<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_openecomp_policy_policy-2Ddb-3A1.0-2DSTAGING-2Dlatest&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=zqzDdfPjZ2jC0nitL8EgZlET4FUF9fpD9OVNOihyWWI&s=epO7wXQFNTs26JQgkEpuMGYxMwSVYPejFB4CnSbRgqs&e=>
1.0-STAGING-latest: Pulling from openecomp/policy/policy-pe
Digest: sha256:851f9ca8359383612b2f42626e34a5cdfba85779a7941a58ee4e55ca10ec6c09
Status: Image is up to date for
nexus3.onap.org:10001/openecomp/policy/policy-pe:1.0-STAGING-latest<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_openecomp_policy_policy-2Dpe-3A1.0-2DSTAGING-2Dlatest&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=zqzDdfPjZ2jC0nitL8EgZlET4FUF9fpD9OVNOihyWWI&s=z1wKHHj2JpkiINUDViYbHu7y906dPfbHApx1jaPjsZA&e=>
1.0-STAGING-latest: Pulling from openecomp/policy/policy-drools
Digest: sha256:d66d8fa636ae07e25e0118fe2e9a55458296523351e53d839cdf906b182f2475
Status: Image is up to date for
nexus3.onap.org:10001/openecomp/policy/policy-drools:1.0-STAGING-latest<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_openecomp_policy_policy-2Ddrools-3A1.0-2DSTAGING-2Dlatest&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=zqzDdfPjZ2jC0nitL8EgZlET4FUF9fpD9OVNOihyWWI&s=SH1Fw2PTutEv7HaaWXBPcbvxjevsmMp9Cij-fvMKdXo&e=>
1.0-STAGING-latest: Pulling from openecomp/policy/policy-nexus
Digest: sha256:2dc022c78bd4e8455709def01f753bf2a69f17e137955f650670568ebe1c1ecc
Status: Image is up to date for
nexus3.onap.org:10001/openecomp/policy/policy-nexus:1.0-STAGING-latest<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_openecomp_policy_policy-2Dnexus-3A1.0-2DSTAGING-2Dlatest&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=zqzDdfPjZ2jC0nitL8EgZlET4FUF9fpD9OVNOihyWWI&s=KQ7vePxwaqCXtw8QbaEqY9V94I7fEYYqyiEjPzbg_HQ&e=>
ubuntu@vm1-policy:/var/log$
ubuntu@vm1-policy:/var/log$
ubuntu@vm1-policy:/var/log$
ubuntu@vm1-policy:/var/log$
ubuntu@vm1-policy:/var/log$
ubuntu@vm1-policy:/var/log$
ubuntu@vm1-policy:/var/log$
ubuntu@vm1-policy:/var/log$
ubuntu@vm1-policy:/var/log$ cd /opt/
ubuntu@vm1-policy:/opt$ ll
total 24
drwxr-xr-x 5 root root 4096 May 8 12:42 ./
drwxr-xr-x 22 root root 4096 May 8 12:42 ../
drwxr-xr-x 2 root root 4096 May 8 11:53 config/
drwxr-xr-x 2 root root 4096 May 8 12:42 docker/
drwxr-xr-x 10 root root 4096 May 8 12:42 policy/
-rwxr-xr-x 1 root root 1479 May 8 11:53 policy_vm_init.sh*
ubuntu@vm1-policy:/opt$ cat policy_vm_init.sh
#!/bin/bash
NEXUS_USERNAME=$(cat /opt/config/nexus_username.txt)
NEXUS_PASSWD=$(cat /opt/config/nexus_password.txt)
NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt)
export DOCKER_REPOSITORY=${NEXUS_DOCKER_REPO}
cd /opt/policy
git pull
chmod +x config/drools/drools-tweaks.sh
if [ -e /opt/config/public_ip.txt ]
then
IP_ADDRESS=$(cat /opt/config/public_ip.txt)
else
IP_ADDRESS=$(ifconfig eth0 | grep "inet addr" | tr -s ' ' | cut -d' ' -f3 |
cut -d':' -f2)
fi
echo $IP_ADDRESS > config/pe/ip_addr.txt
docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
docker pull $NEXUS_DOCKER_REPO/openecomp/policy/policy-db:$DOCKER_IMAGE_VERSION
docker tag $NEXUS_DOCKER_REPO/openecomp/policy/policy-db:$DOCKER_IMAGE_VERSION
openecomp/policy/policy-db:latest
docker pull $NEXUS_DOCKER_REPO/openecomp/policy/policy-pe:$DOCKER_IMAGE_VERSION
docker tag $NEXUS_DOCKER_REPO/openecomp/policy/policy-pe:$DOCKER_IMAGE_VERSION
openecomp/policy/policy-pe:latest
docker pull
$NEXUS_DOCKER_REPO/openecomp/policy/policy-drools:$DOCKER_IMAGE_VERSION
docker tag
$NEXUS_DOCKER_REPO/openecomp/policy/policy-drools:$DOCKER_IMAGE_VERSION
openecomp/policy/policy-drools:latest
docker pull
$NEXUS_DOCKER_REPO/openecomp/policy/policy-nexus:$DOCKER_IMAGE_VERSION
docker tag
$NEXUS_DOCKER_REPO/openecomp/policy/policy-nexus:$DOCKER_IMAGE_VERSION
openecomp/policy/policy-nexus:latest
/opt/docker/docker-compose up -d
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$ sudo service docker status
docker start/running, process 882
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$ sudo service docker restart
docker stop/waiting
docker start/running, process 2544
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$ sudo service docker status
docker start/running, process 2544
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$ ll
total 24
drwxr-xr-x 5 root root 4096 May 8 12:42 ./
drwxr-xr-x 22 root root 4096 May 8 12:42 ../
drwxr-xr-x 2 root root 4096 May 8 11:53 config/
drwxr-xr-x 2 root root 4096 May 8 12:42 docker/
drwxr-xr-x 10 root root 4096 May 8 12:42 policy/
-rwxr-xr-x 1 root root 1479 May 8 11:53 policy_vm_init.sh*
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$
ubuntu@vm1-policy:/opt$ cd docker/
ubuntu@vm1-policy:/opt/docker$ ll
total 8
drwxr-xr-x 2 root root 4096 May 8 12:42 ./
drwxr-xr-x 5 root root 4096 May 8 12:42 ../
-rwxr-xr-x 1 root root 0 May 8 12:42 docker-compose*
ubuntu@vm1-policy:/opt/docker$ cd ..
ubuntu@vm1-policy:/opt$ cd policy/
ubuntu@vm1-policy:/opt/policy$ ll
total 84
drwxr-xr-x 10 root root 4096 May 8 12:42 ./
drwxr-xr-x 5 root root 4096 May 8 12:42 ../
drwxr-xr-x 4 root root 4096 May 8 12:42 config/
-rwxr-xr-x 1 root root 2315 May 8 12:42 docker_build.sh*
-rw-r--r-- 1 root root 1513 May 8 12:42 docker-compose.yml
-rwxr-xr-x 1 root root 2118 May 8 12:42 docker_merge.sh*
-rwxr-xr-x 1 root root 1699 May 8 12:42 docker_verify.sh*
drwxr-xr-x 8 root root 4096 May 9 05:53 .git/
-rw-r--r-- 1 root root 36 May 8 12:42 .gitignore
-rw-r--r-- 1 root root 95 May 8 12:42 .gitreview
-rw-r--r-- 1 root root 681 May 8 12:42 LICENSE.txt
drwxr-xr-x 2 root root 4096 May 8 12:42 policy-base/
drwxr-xr-x 2 root root 4096 May 8 12:42 policy-db/
drwxr-xr-x 2 root root 4096 May 8 12:42 policy-drools/
drwxr-xr-x 2 root root 4096 May 8 12:42 policy-nexus/
drwxr-xr-x 2 root root 4096 May 8 12:42 policy-os/
drwxr-xr-x 2 root root 4096 May 8 12:42 policy-pe/
-rw-r--r-- 1 root root 5548 May 8 12:42 pom.xml
-rw-r--r-- 1 root root 1245 May 8 12:42 README.md
-rw-r--r-- 1 root root 391 May 8 12:42 version.properties
ubuntu@vm1-policy:/opt/policy$
ubuntu@vm1-policy:/opt/policy$
ubuntu@vm1-policy:/opt/policy$
ubuntu@vm1-policy:/opt/policy$
ubuntu@vm1-policy:/opt/policy$
ubuntu@vm1-policy:/opt/policy$ /opt/docker/docker-compose up -d
ubuntu@vm1-policy:/opt/policy$
ubuntu@vm1-policy:/opt/policy$
ubuntu@vm1-policy:/opt/policy$
ubuntu@vm1-policy:/opt/policy$
ubuntu@vm1-policy:/opt/policy$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
ubuntu@vm1-policy:/opt/policy$
Thanks and Regards,
Mari Muthu D
_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss