Mari,

Did you run “docker-compose up -d” ?

You can get the docker-compose.yaml from the policy/docker gerrit repository.

Thanks,

Pam

Pamela Dragosh
Lead Inventive Scientist
ONAP Policy
AT&T Research
[email protected]



From: <[email protected]> on behalf of Mari Muthu 
<[email protected]>
Date: Tuesday, May 9, 2017 at 3:10 AM
To: "[email protected]" <[email protected]>
Subject: Re: [onap-discuss] Docker image is not getting started



On Tue, May 9, 2017 at 11:50 AM, Mari Muthu 
<[email protected]<mailto:[email protected]>> wrote:
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=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=hPTiX8whW5dkUJnVokZI0kOQx05G0vswAfmvYCkmKSM&s=33W1o-xc_oKx9yMrt9MWb4VnRNuZlLyXXQVU0FLFwps&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=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=hPTiX8whW5dkUJnVokZI0kOQx05G0vswAfmvYCkmKSM&s=oQpFCgqWvkbrIL2r0Kbdf19StkB98q7hpurNzRMgxxU&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=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=hPTiX8whW5dkUJnVokZI0kOQx05G0vswAfmvYCkmKSM&s=wPcJ704Lx1PQoKGHJaZqCRc_Mmxu1tXcO3dulBKfppk&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=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=hPTiX8whW5dkUJnVokZI0kOQx05G0vswAfmvYCkmKSM&s=aLwZ1rVEKtwi3DWOAKxWdjU2r4bVVybPmaxayY-x9sU&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=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=hPTiX8whW5dkUJnVokZI0kOQx05G0vswAfmvYCkmKSM&s=j-R5w8mn4V_qPSJHWPAMEtp0lpwFhypESxMm4nR9vC8&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=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=hPTiX8whW5dkUJnVokZI0kOQx05G0vswAfmvYCkmKSM&s=EOrZWKkPHNKUD5HrMwM8S5unNtQz9wLjAiBQ7nfTZNY&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=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=hPTiX8whW5dkUJnVokZI0kOQx05G0vswAfmvYCkmKSM&s=MeLYf2Oey9gAVHCYNrMpEpYEtUVhz5qeK70dAZMc1fo&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=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=hPTiX8whW5dkUJnVokZI0kOQx05G0vswAfmvYCkmKSM&s=Txb03FlA_MGVKbOMiSAkiVBq_z5Xj9vEPQR7oFjdHh0&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=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=hPTiX8whW5dkUJnVokZI0kOQx05G0vswAfmvYCkmKSM&s=j-R5w8mn4V_qPSJHWPAMEtp0lpwFhypESxMm4nR9vC8&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=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=hPTiX8whW5dkUJnVokZI0kOQx05G0vswAfmvYCkmKSM&s=EOrZWKkPHNKUD5HrMwM8S5unNtQz9wLjAiBQ7nfTZNY&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=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=hPTiX8whW5dkUJnVokZI0kOQx05G0vswAfmvYCkmKSM&s=MeLYf2Oey9gAVHCYNrMpEpYEtUVhz5qeK70dAZMc1fo&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=jwTiArcEj6aUX0HjV0M3dT12gUtk7rC07xpgpVZkS_4&m=hPTiX8whW5dkUJnVokZI0kOQx05G0vswAfmvYCkmKSM&s=Txb03FlA_MGVKbOMiSAkiVBq_z5Xj9vEPQR7oFjdHh0&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

Reply via email to