I would think you want to let the pom.xml handle the docker build for you but 
someone from AAI team can provide better guidance (or a pointer to where in the 
aai wiki to look)

Brian


From: FREEMAN, BRIAN D
Sent: Thursday, April 25, 2019 11:15 AM
To: Ambica Chattoraj <[email protected]>; 
[email protected]; Chandrashekhar Thakare 
<[email protected]>; [email protected]; Thiruveedula, Bharath 
<[email protected]>
Cc: Michael O'Brien <[email protected]>
Subject: RE: [E] [onap-discuss] aai-graphadmin pod start error in k8 using helm

I suspect your build line isnt quite right since there is no docker-entry.sh 
file in the right spot in the path.

Check you Dockerfile

using the command “docker build –t <image  name>”  in the below path:
~/src/aai/graphadmin/src/main/docker


Brian


From: Ambica Chattoraj 
<[email protected]<mailto:[email protected]>>
Sent: Thursday, April 25, 2019 10:50 AM
To: FREEMAN, BRIAN D <[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>; Chandrashekhar 
Thakare <[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>; Thiruveedula, Bharath 
<[email protected]<mailto:[email protected]>>
Cc: Michael O'Brien <[email protected]<mailto:[email protected]>>
Subject: RE: [E] [onap-discuss] aai-graphadmin pod start error in k8 using helm

Hi Brian,

We have  used the below manifest for Casablanca


https://gerrit.onap.org/r/gitweb?p=integration.git;a=blob;f=version-manifest/src/main/resources/docker-manifest.csv;h=fc2c204cc73d1cdddad64eac23d6bda6ce9e8347;hb=refs/heads/casablanca<https://urldefense.proofpoint.com/v2/url?u=https-3A__gerrit.onap.org_r_gitweb-3Fp-3Dintegration.git-3Ba-3Dblob-3Bf-3Dversion-2Dmanifest_src_main_resources_docker-2Dmanifest.csv-3Bh-3Dfc2c204cc73d1cdddad64eac23d6bda6ce9e8347-3Bhb-3Drefs_heads_casablanca&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=Dqfx2VJu7RegVf2x8_R-XHAg493X83c6Ynm-lU2oJ24&s=1tPc79zflnMCBhacAg64W3LvaUvH1simMdpu369kYvM&e=>

and the name of the Cassandra chart is “aai-cassandra”. Should we go ahead with 
this approach?

And also I have build the image of graphadmin/resource/traversal  from below 
code (made schema changes and then built an image)

git clone 
https://gerrit.onap.org/r/aai/graphadmin<https://urldefense.proofpoint.com/v2/url?u=https-3A__gerrit.onap.org_r_aai_graphadmin&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=Dqfx2VJu7RegVf2x8_R-XHAg493X83c6Ynm-lU2oJ24&s=KW2piQsJ6bFCXL_r79wwA-Vu1fHtN8UKNuO6jPjvGG0&e=>
 -b casablanca

using the command “docker build –t <image  name>”  in the below path:
~/src/aai/graphadmin/src/main/docker

Now while deploying the image in k8 I am getting the below error:-
(Multiple dev-aai-aai-graphadmin-create-db-schema is getting created)

dev-aai-aai-6695cb547c-rrttc                         0/1       Init:0/1         
  6          1h
dev-aai-aai-babel-58bdbf88d4-6vsz5                   2/2       Running          
  0          1h
dev-aai-aai-cassandra-0                              1/1       Running          
  0          1h
dev-aai-aai-cassandra-1                              1/1       Running          
  0          1h
dev-aai-aai-cassandra-2                              1/1       Running          
  0          1h
dev-aai-aai-champ-857b84d6b4-rz2pb                   2/2       Running          
  0          1h
dev-aai-aai-data-router-6bb448b695-stpkv             2/2       Running          
  0          1h
dev-aai-aai-elasticsearch-669f4664c-fflkw            1/1       Running          
  0          1h
dev-aai-aai-gizmo-6d8c67cf7d-jfbcq                   2/2       Running          
  0          1h
dev-aai-aai-graphadmin-85478bbf98-pxgxd              0/2       Init:0/1         
  6          1h
dev-aai-aai-graphadmin-create-db-schema-2mg8r        0/1       Error            
  0          15m
dev-aai-aai-graphadmin-create-db-schema-6dksr        0/1       Error            
  0          27m
dev-aai-aai-graphadmin-create-db-schema-d2bv2        0/1       Error            
  0          21m
dev-aai-aai-graphadmin-create-db-schema-drqr7        0/1       Error            
  0          56m
dev-aai-aai-graphadmin-create-db-schema-hl8pp        0/1       Error            
  0          45m
dev-aai-aai-graphadmin-create-db-schema-kwxgw        0/1       Error            
  0          33m
dev-aai-aai-graphadmin-create-db-schema-lk8sd        0/1       Error            
  0          9m
dev-aai-aai-graphadmin-create-db-schema-nbkpr        0/1       Error            
  0          3m
dev-aai-aai-graphadmin-create-db-schema-qmf82        0/1       Error            
  0          39m
dev-aai-aai-graphadmin-create-db-schema-qtght        0/1       Error            
  0          51m
dev-aai-aai-graphadmin-create-db-schema-tspsz        0/1       Error            
  0          1h
dev-aai-aai-graphadmin-create-db-schema-ttptf        0/1       Error            
  0          59m
dev-aai-aai-graphadmin-create-db-schema-vf4cw        0/1       Error            
  0          1h
dev-aai-aai-graphadmin-create-db-schema-vw8j5        0/1       Error            
  0          1h
dev-aai-aai-graphadmin-create-db-schema-vxvf6        0/1       Error            
  0          1h
dev-aai-aai-graphadmin-create-db-schema-zdc55        0/1       Error            
  0          1h
dev-aai-aai-modelloader-75545c785-dt9sx              2/2       Running          
  0          1h
dev-aai-aai-resources-6b96bc4d56-jxr4r               0/2       Init:0/1         
  6          1h
dev-aai-aai-search-data-77f9f97dd-r464l              2/2       Running          
  0          1h
dev-aai-aai-sparky-be-5c6c5b4b88-m4mwb               0/2       Init:0/1         
  0          1h
dev-aai-aai-spike-65bf598b56-zt7z2                   0/2       Init:0/1         
  6          1h
dev-aai-aai-traversal-554b58fb56-glns5               0/2       Init:0/1         
  6          1h
dev-aai-aai-traversal-update-query-data-c9vt7        0/1       Init:0/1         
  6          1h


While checking the logs of the pods-
kubectl logs -f  -n onap dev-aai-aai-graphadmin-create-db-schema-2mg8r
/bin/bash: docker-entrypoint.sh: No such file or directory


Can you please help us on this.

Regards,
Ambica

From: FREEMAN, BRIAN D [mailto:[email protected]]
Sent: Thursday, April 25, 2019 7:34 PM
To: [email protected]<mailto:[email protected]>; 
Chandrashekhar Thakare 
<[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>; Thiruveedula, Bharath 
<[email protected]<mailto:[email protected]>>; 
Ambica Chattoraj 
<[email protected]<mailto:[email protected]>>
Cc: Michael O'Brien <[email protected]<mailto:[email protected]>>
Subject: RE: [E] [onap-discuss] aai-graphadmin pod start error in k8 using helm


In Casablanca you might want to pull in version 1.0.4 – unless Harish is trying 
to point you at a particular earlier version for some reason.

Brian

https://gerrit.onap.org/r/gitweb?p=oom.git;a=blob;f=kubernetes/aai/charts/aai-graphadmin/values.yaml;h=a0c85ed191980b9f2d02b696ad1d490ef8c34da3;hb=refs/heads/casablanca<https://urldefense.proofpoint.com/v2/url?u=https-3A__gerrit.onap.org_r_gitweb-3Fp-3Doom.git-3Ba-3Dblob-3Bf-3Dkubernetes_aai_charts_aai-2Dgraphadmin_values.yaml-3Bh-3Da0c85ed191980b9f2d02b696ad1d490ef8c34da3-3Bhb-3Drefs_heads_casablanca&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=Dqfx2VJu7RegVf2x8_R-XHAg493X83c6Ynm-lU2oJ24&s=cNKiQ5PCvPyDY1fQ9tdPzGYeEY1IgbUUI9iDSVtp0IA&e=>

  31 image: onap/aai-graphadmin:1.0.4

From: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> On Behalf Of 
Chandra
Sent: Thursday, April 25, 2019 9:53 AM
To: [email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>; Thiruveedula, Bharath 
<[email protected]<mailto:[email protected]>>; 
Ambica Chattoraj 
<[email protected]<mailto:[email protected]>>
Cc: Michael O'Brien <[email protected]<mailto:[email protected]>>
Subject: Re: [E] [onap-discuss] aai-graphadmin pod start error in k8 using helm

Hi Keong,
Is there any dependency on image versions being pulled up to resolve this 
issue? Is there any stable versions need to be pulled up?


From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Keong Lim
Sent: 25 April 2019 17:28
To: Thiruveedula, Bharath 
<[email protected]<mailto:[email protected]>>; 
onap-discuss <[email protected]<mailto:[email protected]>>; 
Ambica Chattoraj 
<[email protected]<mailto:[email protected]>>
Cc: Michael O'Brien <[email protected]<mailto:[email protected]>>
Subject: Re: [E] [onap-discuss] aai-graphadmin pod start error in k8 using helm
Importance: Low

The shared Cassandra charts by Mahendra were recently merged.
If the name is “aai-cassandra” then that is the older charts.
If the name is “cassandra" then that is the newer charts.
So it depends on exactly when you pulled the OOM repository.


Keong

From: Thiruveedula, Bharath [mailto:[email protected]]
Sent: Thursday, April 25, 2019 12:36 AM
To: onap-discuss 
<[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>
Cc: Michael O'Brien <[email protected]<mailto:[email protected]>>; 
Keong Lim <[email protected]<mailto:[email protected]>>
Subject: Re: [E] [onap-discuss] aai-graphadmin pod start error in k8 using helm

Hi,

I am facing same issue. I can see graphadmin-create-db-schema pod is dependent 
on cassandra pod. But it is not clear whether is it "cassandra" from common?

Best Regards
Bharath T

On Wed, Apr 24, 2019 at 6:35 PM Ambica 
<[email protected]<mailto:[email protected]>> wrote:

Hi Brien,

I have followed the below steps:

1) pulled image from nexus3.org.onap -->/onap/aai-graphadmin:1.0-STAGING-latest
2) created container using "docker run -d -p 8449:8449 <image-name>"
3) inside the graphadmin container added attributes and new edgerules-
     in resources/schema/onap/oxm/v14 and  resources/schema/onap/dbedgerules/v14
4) then did "docker commit container-name new-image-name"

What is the  difference   when image is built from Dockerfile and when image is 
created doing docker commit on container.

5)Used the above image and deployed on k8's environment using helm.

The below two pods are not running:

dev-aai-aai-graphadmin-96779b95b-5sq7q   ---stays in init mode
dev-aai-aai-graphadmin-create-db-schema-fm9t8     ----stays in running mode 
instead of completed[Error:The graphadmin microservice is started and does not 
execute the createDbSchema script.]

Please help me through this. I am stuck here for a very long time.

Regards,
Ambica
________________________________
From: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> on behalf of 
Ambica <[email protected]<mailto:[email protected]>>
Sent: Friday, April 19, 2019 8:01 PM
To: KAJUR, HARISH V; 
[email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Subject: Re: [onap-discuss] aai-graphadmin pod start error in k8 using helm

I wanted a new image that would reflect the changes made in aai_oxm_v14.xml and 
Dbedgerules_v14.json file in aai-graphadmin .

Can we create a new image from a modified container using DockerFile.If Yes,
Can you please share the commands.

Regards,
Ambica
________________________________
From: KAJUR, HARISH V <[email protected]<mailto:[email protected]>>
Sent: Friday, April 19, 2019 7:24 PM
To: Ambica Chattoraj; 
[email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Subject: RE: [onap-discuss] aai-graphadmin pod start error in k8 using helm


Hi Ambica,



I sent the link as a reference as they are facing an similar issue due to the 
fact they are trying to mount a directory on the host machine to a file inside 
the container.



This was the error that you are seeing right:



kubelet, onap-k8s-2.mgmt  Error: Error response from daemon: cannot mount 
volume over existing file, file exists 
/var/lib/docker/overlay/a7a05a40cfc65adfb4a7646794fb5dd9b2abf03a57c4b9550adde1949e4b948f/merged/opt/app/aai-graphadmin/resources/etc/auth/realm.properties



Note:-There is no folder 
"a7a05a40cfc65adfb4a7646794fb5dd9b2abf03a57c4b9550adde1949e4b948f" in 
/var/lib/docker/overlay.



From this error, it seems to be the case that within the container there is a 
file called: /opt/app/aai-graphadmin/resources/etc/auth/realm.properties

But for some reason, you seem to be mounting an directory on that location as 
that could be the reason causing it.

If that isn’t the case, I would suggest you go do the following on the new 
image and old image:



docker run -it --rm --entrypoint=/bin/bash 
nexus3.onap.org:10001/onap/aai-graphadmin:1.0-STAGING-latest<https://urldefense.proofpoint.com/v2/url?u=http-3A__nexus3.onap.org-3A10001_onap_aai-2Dgraphadmin-3A1.0-2DSTAGING-2Dlatest&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=dLZ2q7jf6HtmFqMFLh2orBsLB6-9h7ZZO1sU7mJIwxk&s=vVJLPefMStCAdYjpQWFSkTvCYFUHZKlfyaMUxFXJOSk&e=>



Then go to the /opt/app/aai-graphadmin folder and look at all the sub 
directories and files and try to identify the difference between 
1.0-STAGING-latest and your committed container.

If you see that one is a file in the 1.0-STAGING-latest and the image you 
created is a directory, that could be the culprit.

Also, why did you commit the running container to create a new image instead of 
just creating an new docker image from Dockerfile?



Thanks,

Harish



From: Ambica Chattoraj 
<[email protected]<mailto:[email protected]>>
Sent: Friday, April 19, 2019 3:53 AM
To: KAJUR, HARISH V <[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Subject: Re: [onap-discuss] aai-graphadmin pod start error in k8 using helm



Hi Harsh,



From the link you have forwarded it is unclear what exactly need to be run. The 
commands specified are for running the image .



Can you please tell where exactly i need to remove/make changes inside the 
container .so that when creating new image doing commit does not use the 
previous mount location.



Thanks & Regards,

Ambica

________________________________

From: KAJUR, HARISH V <[email protected]<mailto:[email protected]>>
Sent: Thursday, April 18, 2019 10:41 PM
To: [email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>; Ambica Chattoraj
Subject: RE: [onap-discuss] aai-graphadmin pod start error in k8 using helm



Hi Ambica,

From the error that you are getting, you seem to be voluming a directory where 
a file already exists in the container.
You can volume a file to file or a directory from host to directory in 
container but if you try to volume from host a directory where there is an file 
in the container it doesn't work.
Please look at this stackoverflow question as a reference:

https://stackoverflow.com/questions/33903621/docker-cannot-mount-volume-over-existing-file-file-exists<https://urldefense.proofpoint.com/v2/url?u=https-3A__stackoverflow.com_questions_33903621_docker-2Dcannot-2Dmount-2Dvolume-2Dover-2Dexisting-2Dfile-2Dfile-2Dexists&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=f44eG3iZaja2ozEA2yRZnQ&m=AuENRpNSVsn61GXaf8hwXngEKc_2k_BeJEtU_lhr7zM&s=lv19luxnwxZoUJWrVgA59VY0S0-s6GkAbTnTAtic8aM&e=>

Please take a look inside your docker container from your new image to the old 
image on the path that its complaining to see when you did the docker commit.

Thanks,
Harish

-----Original Message-----
From: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> On Behalf Of 
Keong Lim
Sent: Thursday, April 18, 2019 10:42 AM
To: Ambica <[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>
Subject: Re: [onap-discuss] aai-graphadmin pod start error in k8 using helm

Hi Ambica,

Sorry I will be on leave for Easter. I don't know what is happening with the 
overlay filesystem in this case.
Maybe Harish can help you debug it.

Keong

============================================================================================================================

Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at 
http://www.techmahindra.com/Disclaimer.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.techmahindra.com_Disclaimer.html&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=f44eG3iZaja2ozEA2yRZnQ&m=AuENRpNSVsn61GXaf8hwXngEKc_2k_BeJEtU_lhr7zM&s=w5f-9NwakN63S01O4VRFYJ2OCQufF_f3eVGTJ4_TnKs&e=>
 externally 
http://tim.techmahindra.com/tim/disclaimer.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__tim.techmahindra.com_tim_disclaimer.html&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=f44eG3iZaja2ozEA2yRZnQ&m=AuENRpNSVsn61GXaf8hwXngEKc_2k_BeJEtU_lhr7zM&s=l7DPkOAvrL69ooGOIzUVsKlxkuDezk8RR8soPYt2ckk&e=>
 internally within TechMahindra.

============================================================================================================================


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16734): https://lists.onap.org/g/onap-discuss/message/16734
Mute This Topic: https://lists.onap.org/mt/31322705/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to