You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/03/09 14:20:57 UTC

[GitHub] [cloudstack] ravening opened a new issue #3950: Docker build fails in master

ravening opened a new issue #3950: Docker build fails in master
URL: https://github.com/apache/cloudstack/issues/3950
 
 
   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Docker
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master branch.
   -->
   
   ~~~
   4.14 master
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   Ubuntu
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   git clone https://github.com/apache/cloudstack.git
   cd tools/docker
   docker build -f Dockerfile -t simulator ../..
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   It should create a new docker image with name `simulator`
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   The docker build fails as it cant locate openjdk package in ubuntu16
   
   ```
   E: Unable to locate package openjdk-11-jdk
   The command '/bin/sh -c apt-get -y update && apt-get install -y     genisoimage     libffi-dev     libssl-dev     git     sudo     ipmitool     maven     openjdk-11-jdk     python-dev     python-setuptools     python-pip     python-mysql.connector     supervisor' returned a non-zero code: 100
   ```
   ~~~
   
   Should we use Ubuntu:18.04 or latest?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [cloudstack] weizhouapache commented on issue #3950: Docker build fails in master

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #3950: Docker build fails in master
URL: https://github.com/apache/cloudstack/issues/3950#issuecomment-596759286
 
 
   @ravening we do need to use ubuntu 18.04 instead of ubuntu 16.04
   there are some difference between mysql version in ubuntu 18.04 and ubuntu 16.04, so extra command/change are needed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [cloudstack] DaanHoogland edited a comment on issue #3950: Docker build fails in master

Posted by GitBox <gi...@apache.org>.
DaanHoogland edited a comment on issue #3950: Docker build fails in master
URL: https://github.com/apache/cloudstack/issues/3950#issuecomment-596980586
 
 
   @ravening I said try with that *reverted*, maybe it should be applied on 4.13? or Wei's new changes must go on 4.13 as well?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [cloudstack] ravening commented on issue #3950: Docker build fails in master

Posted by GitBox <gi...@apache.org>.
ravening commented on issue #3950: Docker build fails in master
URL: https://github.com/apache/cloudstack/issues/3950#issuecomment-596656524
 
 
   @DaanHoogland I already have the changes mentioned in #3651 in my local branch and its still failing.
   Below are the logs I found in the working docker image from 4.13
   ```
   ========> WARNING: Provided file does not exist: /root/developer/../utils/conf/db.properties.override
   ========> WARNING: Provided file does not exist: /root/developer/developer-prefill.sql.override
   ========> Initializing database=cloud with host=localhost port=3306 username=cloud password=cloud
   ============> Running query: drop database if exists `cloud`
   ============> Running query: create database `cloud`
   ============> Running query: GRANT ALL ON cloud.* to 'cloud'@`localhost` identified by 'cloud'
   ============> Running query: GRANT ALL ON cloud.* to 'cloud'@`%` identified by 'cloud'
   ```
   
   
   But I dont see that while building image in 4.14 and below is the error I see
   ```
   Step 12/15 : RUN find /var/lib/mysql -type f -exec touch {} \; &&     (/usr/bin/mysqld_safe &);     sleep 5;     mvn -Pdeveloper -pl developer -Ddeploydb;     mvn -Pdeveloper -pl developer -Ddeploydb-simulator;
      MARVIN_FILE=`find /root/tools/marvin/dist/ -name "Marvin*.tar.gz"`;     pip install $MARVIN_FILE
    ---> Running in 0edc5833c9a0
   2020-03-09T16:16:55.284684Z mysqld_safe Logging to syslog.
   2020-03-09T16:16:55.294813Z mysqld_safe Logging to '/var/log/mysql/error.log'.
   2020-03-09T16:16:55.370564Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
   WARNING: An illegal reflective access operation has occurred
   WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.s
   ecurity.ProtectionDomain)
   ```
   
   And because of this reason, I get db connection excpetion and the mgt server wont start

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [cloudstack] weizhouapache commented on issue #3950: Docker build fails in master

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #3950: Docker build fails in master
URL: https://github.com/apache/cloudstack/issues/3950#issuecomment-596795432
 
 
   fixed in #3955 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [cloudstack] DaanHoogland commented on issue #3950: Docker build fails in master

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #3950: Docker build fails in master
URL: https://github.com/apache/cloudstack/issues/3950#issuecomment-596980586
 
 
   @ravening I said try with that *reverted*, maybe it should be applied on 4.13? or Wei's new chenges must go on 4.13 as well?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [cloudstack] DaanHoogland commented on issue #3950: Docker build fails in master

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #3950: Docker build fails in master
URL: https://github.com/apache/cloudstack/issues/3950#issuecomment-596611462
 
 
   @ravening I recently merged #3651 so you might want to try locally reverting that. I tested it for the DB only and that did run. please send in a PR for the `FROM Ubuntu:18.04` if this was not the issue. If it was, I'll revert.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [cloudstack] ravening commented on issue #3950: Docker build fails in master

Posted by GitBox <gi...@apache.org>.
ravening commented on issue #3950: Docker build fails in master
URL: https://github.com/apache/cloudstack/issues/3950#issuecomment-597029902
 
 
   @weizhouapache yes the changes you mentioned works fine. 
   @DaanHoogland I didnt see this issue in 4.13 as its still using ubuntu 16 and java 8

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services