Hi Anuruddha et al, Thanks. Renaming the mysql file worked, and I was able to build the docker image. However I'm getting a JAVA_HOME error when I run the image locally.
docker run wso2am-kubernetes-pattern-1:2.1.0 Initializing wso2am-2.1.0 in default profile on kubernetes platform... Successfully updated localMemberHost with 172.17.0.2 Creating directory /mnt/172.17.0.2 Creating symlink [Target] /mnt/wso2am-2.1.0, [Link] /mnt/ 172.17.0.2/wso2am-2.1.0 /usr/local/bin/init.sh: line 94: /etc/profile.d/set_java_home.sh: No such file or directory Starting wso2am-2.1.0 with [Startup Args] , [CARBON_HOME] /mnt/ 172.17.0.2/wso2am-2.1.0 Error: JAVA_HOME is not defined correctly. CARBON cannot execute /opt/java/bin/java I have copied the jdk-8u131-linux-x64.tar.gz to PUPPET_HOME/modules/wso2base/files and also to PUPPET_HOME/modules/wso2am_runtime/files The wso2am-2.1.0.zip is copied to PUPPET_HOME/modules/wso2am_runtime/files The dependency jars, kubernetes membership scheme jar and mysql jar are copied to : PUPPET_HOME/modules/wso2am_runtime/files/configs/repository/components/lib Can you please verify my dependency file-paths above are correct? The paths are not defined in the github guide [1] step 7. Please let me know if I have done any configuration mistake. Thanks, Dileepa On Fri, Jun 30, 2017 at 4:38 PM, Anuruddha Liyanarachchi < anurudd...@wso2.com> wrote: > Hi Dileepa, > > Your mysql connector jar is different than what puppet is trying to copy. > Rename your mysql jar to mysql-connector-java-5.1.36-bin.jar. > > mysql-connector-java-5.1.36.jar != mysql-connector-java-5.1.36-bin.jar > > > On Fri, Jun 30, 2017 at 12:57 PM, Dileepa Jayakody < > dileepajayak...@gmail.com> wrote: > >> Hi Pubudu, >> >> Thanks. Checking out v1.0.0 from puppet-base resolved above error. >> However, I'm getting a new error, related to the mysql jar file. >> >> Notice: /Stage[main]/Wso2base::Configure/Wso2base::Push_templates[ >> repository/conf/carbon.xml]/File[/mnt/wso2am-2.1.0/ >> repository/conf/carbon.xml]/content: content changed >> '{md5}5c92af40d406b3368ceafd3b582017bd' to '{md5}326757437935bb13c3d71d8a >> e692d04b' >> Error: /Stage[main]/Wso2base::Configure/Wso2base::Push_files[ >> repository/components/lib/mysql-connector-java-5.1.36- >> bin.jar]/File[/mnt/wso2am-2.1.0/repository/components/lib/ >> mysql-connector-java-5.1.36-bin.jar]: Could not evaluate: Could not >> retrieve information from environment production source(s) >> puppet:///modules/wso2am_runtime/configs/repository/componen >> ts/lib/mysql-connector-java-5.1.36-bin.jar, >> puppet:///modules/wso2base/configs/repository/components/lib >> /mysql-connector-java-5.1.36-bin.jar, puppet:///files/configs/reposi >> tory/components/lib/mysql-connector-java-5.1.36-bin.jar >> >> ERROR: Docker image wso2am-traffic-manager-kubernetes-pattern-3:2.1.0 >> creation failed >> >> >> As in the guide step 7, I have copied the following jars to >> *PUPPET_HOME/modules* >> jackson-annotations-2.5.4.jar >> jackson-databind-2.5.4.jar >> jackson-core-2.5.4.jar >> kubernetes-membership-scheme-1.0.0.jar >> mysql-connector-java-5.1.36.jar >> >> jdk-8u131-linux-x64.tar.gz >> wso2am-2.1.0.zip >> >> I also tried executing the build as per the older guide by copying the >> jdk to PUPPET_HOME/modules/wso2base/files and the dependencies, >> kubernetes-membership-schemes to PUPPET_HOME/modules/wso2am/wso >> 2am_runtime/files/configs/repository/components/lib >> >> Still I'm getting the same error. :( >> >> Any idea what I might be doing wrong here? >> >> Thanks, >> Dileepa >> >> >> On Fri, Jun 30, 2017 at 3:10 PM, Pubudu Gunatilaka <pubu...@wso2.com> >> wrote: >> >>> Hi Dileepa, >>> >>> Could you please check the tag of the wso2base module? By default, it >>> refers the master branch and this has to point to v1.0.0 [1]. In your setup >>> check the git branch in <Puppet_Home>/modules/wso2base. You need to >>> check out this to [1]. >>> >>> We are having discussions to remove puppet scripts when creating Docker >>> images. Hopefully, with K8 release we will remove puppet and allow users to >>> provide configuration files. All you need is to have a docker image for the >>> product with relevant configurations to run on K8s. >>> >>> [1] - https://github.com/wso2/puppet-base/tree/v1.0.0 >>> >>> Thank you! >>> >>> On Fri, Jun 30, 2017 at 2:39 PM, Dileepa Jayakody < >>> dileepajayak...@gmail.com> wrote: >>> >>>> Hi Pubudu, Isuru, >>>> >>>> Thanks, yes manifests have been deleted by mistake. Now the >>>> PUPPET_HOME/manifests directory has site.pp. >>>> But now when I build again I'm getting another error by the puppet >>>> agent. >>>> >>>> log; >>>> >>>> 172.17.0.2 - - [30/Jun/2017 14:34:07] "GET >>>> /modules/wso2am_runtime/templates/repository/deployment/serv >>>> er/synapse-configs/default/api/_UserInfoAPI_.xml.erb HTTP/1.1" 200 - >>>> Running Puppet agent... >>>> Error: Must pass install_java to Class[Wso2base] at >>>> /etc/puppet/modules/wso2am_runtime/manifests/init.pp:165 on node >>>> d01e4f05b24b.mitrai.local >>>> Error: Must pass install_java to Class[Wso2base] at >>>> /etc/puppet/modules/wso2am_runtime/manifests/init.pp:165 on node >>>> d01e4f05b24b.mitrai.local >>>> The command '/bin/sh -c bash /usr/local/bin/image-config.sh' returned >>>> a non-zero code: 1 >>>> >>>> ERROR: Docker image wso2am-gateway-manager-kubernetes-pattern-3:2.1.0 >>>> creation failed >>>> Cleaning... >>>> >>>> Any idea what might be the issue here? >>>> >>>> Regards, >>>> Dileepa >>>> >>>> On Fri, Jun 30, 2017 at 2:11 PM, Pubudu Gunatilaka <pubu...@wso2.com> >>>> wrote: >>>> >>>>> Hi Dileepa, >>>>> >>>>> Based on the log it looks like you are missing the manifest files in >>>>> puppet-home. You need to have the following files in the puppet home >>>>> location. >>>>> >>>>> 1. hieradata >>>>> 2. hiera.yaml >>>>> 3. manifests >>>>> 4. modules >>>>> >>>>> Please make sure you have the above files in your setup. >>>>> >>>>> Thank you! >>>>> >>>>> On Fri, Jun 30, 2017 at 1:06 PM, Dileepa Jayakody < >>>>> dileepajayak...@gmail.com> wrote: >>>>> >>>>>> Hi Pubudu, >>>>>> >>>>>> We followed the latest guide given above, but we are getting an error >>>>>> at step 9, building the docker image. >>>>>> The log : >>>>>> >>>>>> 2.17.0.2 - - [30/Jun/2017 12:44:29] "GET >>>>>> /hieradata/dev/wso2/hieradata/wso2am_runtime/pattern-7/default.yaml >>>>>> HTTP/1.1" 200 - >>>>>> 172.17.0.2 - - [30/Jun/2017 12:44:29] "GET >>>>>> /hieradata/dev/wso2/hieradata/wso2am_runtime/pattern-7/README.md >>>>>> HTTP/1.1" 200 - >>>>>> 172.17.0.2 - - [30/Jun/2017 12:44:29] "GET >>>>>> /hieradata/dev/wso2/hieradata/wso2is_prepacked/pattern-1/default.yaml >>>>>> HTTP/1.1" 200 - >>>>>> 172.17.0.2 - - [30/Jun/2017 12:44:29] code 404, message File not found >>>>>> >>>>>> >>>>>> >>>>>> *172.17.0.2 - - [30/Jun/2017 12:44:29] "GET /manifests/ HTTP/1.1" 404 >>>>>> -The command '/bin/sh -c bash /usr/local/bin/image-config.sh' returned a >>>>>> non-zero code: 8Docker image >>>>>> wso2am-gateway-manager-kubernetes-pattern-3:2.1.0 created.*Build >>>>>> process completed in 0 minutes and 12 seconds >>>>>> Cleaning... >>>>>> >>>>>> >>>>>> Although it says the image is created, when we try to list the images >>>>>> we don't see it. >>>>>> docker images >>>>>> REPOSITORY >>>>>> TAG IMAGE ID CREATED SIZE >>>>>> <none> >>>>>> <none> bb1fbd050e82 20 minutes ago 232MB >>>>>> <none> >>>>>> <none> e115a82ab1c9 30 minutes ago 232MB >>>>>> <none> >>>>>> <none> 63f7208ec0ca 41 minutes ago 232MB >>>>>> <none> >>>>>> <none> 8d7232ae31d9 42 minutes ago 232MB >>>>>> <none> >>>>>> <none> 82d067d96a24 43 minutes ago 232MB >>>>>> <none> >>>>>> <none> 849952ec5cfc 44 minutes ago 232MB >>>>>> <none> >>>>>> <none> f0940512761d 45 minutes ago 232MB >>>>>> <none> >>>>>> <none> ce7f1779b174 45 minutes ago 232MB >>>>>> <none> >>>>>> <none> f9011faab51b 45 minutes ago 232MB >>>>>> <none> >>>>>> <none> 6b2550bd75b4 45 minutes ago 232MB >>>>>> <none> >>>>>> <none> 9331674976a6 About an hour ago 232MB >>>>>> >>>>>> I think it fails to execute the image-config.sh due to some reason. >>>>>> Any idea how to resolve this? >>>>>> >>>>>> Thanks, >>>>>> Dileepa >>>>>> >>>>>> On Wed, Jun 28, 2017 at 11:01 PM, Dileepa Jayakody < >>>>>> dileepajayak...@gmail.com> wrote: >>>>>> >>>>>>> Hi Pubudu, >>>>>>> >>>>>>> Thank you very much for the pointer. We will try out the new >>>>>>> kubernetes artifacts and get back to you with our findings. >>>>>>> >>>>>>> Regards, >>>>>>> Dileepa >>>>>>> >>>>>>> On Wed, Jun 28, 2017 at 8:00 PM, Pubudu Gunatilaka <pubu...@wso2.com >>>>>>> > wrote: >>>>>>> >>>>>>>> Hi Dileepa, >>>>>>>> >>>>>>>> What you have followed is very old and we haven't tested those >>>>>>>> Kubernetes artifacts with APIM 2.1.0. We are currently in the process >>>>>>>> of >>>>>>>> updating Kubernetes artifacts for the APIM 2.1.0. You can find the >>>>>>>> latest >>>>>>>> artifacts in [1]. Please follow this and let us know if you find any >>>>>>>> issues. >>>>>>>> >>>>>>>> The reason for the above behavior is that it keeps waiting for the >>>>>>>> service to be active. Do you see any wso2am pods in the deployment? >>>>>>>> Kubernetes data model has been changed and it is always better to try >>>>>>>> the >>>>>>>> latest artifacts as we have tested some of the patterns with the new >>>>>>>> deployment model [1]. >>>>>>>> >>>>>>>> [1] - https://github.com/wso2/kubernetes-apim/tree/2.1.0 >>>>>>>> >>>>>>>> Thank you! >>>>>>>> >>>>>>>> On Tue, Jun 27, 2017 at 7:00 PM, Dileepa Jayakody < >>>>>>>> dileepajayak...@gmail.com> wrote: >>>>>>>> >>>>>>>>> Hi All, >>>>>>>>> >>>>>>>>> We have been following the kubernetes deployment guide for WSO2 >>>>>>>>> products [1] to deploy APIM 2.1.0 in kubernetes on Google cloud. We >>>>>>>>> have >>>>>>>>> also followed the blog post [2] as a reference. >>>>>>>>> When I execute the final deploy command by running >>>>>>>>> $KUBERNETES_HOME/wso2am/deploy.sh it keeps on idling at message : >>>>>>>>> *Waiting >>>>>>>>> wso2am to launch on http://104.198.75.29:32003 >>>>>>>>> <http://104.198.75.29:32003>* >>>>>>>>> >>>>>>>>> When we try to access above given URL, we get a connection >>>>>>>>> time-out. Further we have also created firewall rules in GC to open >>>>>>>>> ports : >>>>>>>>> 9443,9763,8280,8243. >>>>>>>>> But cannot access any of these endpoints, and can't access the >>>>>>>>> carbon mgt console. >>>>>>>>> >>>>>>>>> Also in the kubernetes service deployed in GC we can't see any >>>>>>>>> external endpoint exposed. >>>>>>>>> >>>>>>>>> Appreciate if someone can please give us any tip to resolve this >>>>>>>>> and get the deployment working. >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> Dileepa >>>>>>>>> >>>>>>>>> >>>>>>>>> [1] https://docs.wso2.com/display/KA100/Deploying+and+Undeployin >>>>>>>>> g+a+WSO2+Product+on+Kubernetes >>>>>>>>> [2] http://rushmin.blogspot.com/2016/11/deploying-wso2-products- >>>>>>>>> in-google.html >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Dev mailing list >>>>>>>>> Dev@wso2.org >>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> *Pubudu Gunatilaka* >>>>>>>> Committer and PMC Member - Apache Stratos >>>>>>>> Software Engineer >>>>>>>> WSO2, Inc.: http://wso2.com >>>>>>>> mobile : +94774078049 <%2B94772207163> >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> *Pubudu Gunatilaka* >>>>> Committer and PMC Member - Apache Stratos >>>>> Software Engineer >>>>> WSO2, Inc.: http://wso2.com >>>>> mobile : +94774078049 <%2B94772207163> >>>>> >>>>> >>>> >>> >>> >>> -- >>> *Pubudu Gunatilaka* >>> Committer and PMC Member - Apache Stratos >>> Software Engineer >>> WSO2, Inc.: http://wso2.com >>> mobile : +94774078049 <%2B94772207163> >>> >>> >> > > > -- > *Thanks and Regards,* > Anuruddha Lanka Liyanarachchi > Software Engineer - WSO2 > Mobile : +94 (0) 712762611 > Tel : +94 112 145 345 > a <thili...@wso2.com>nurudd...@wso2.com >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev