CI failed to use javac 1.8

This job just failed after merged cause it didn't find javac http://jenkins.ovirt.org/job/ovirt-engine_3.6_check-merged-fc23-x86_64/88/co... An excerpt from the error: ``` *08:55:42* [INFO] ------------------------------------------------------------------------*08:55:42* [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jboss-modules-maven-plugin: Compilation failure*08:55:42* [ERROR] Unable to locate the Javac Compiler in:*08:55:42* [ERROR] /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.92-4.b14.fc23.x86_64/jre/../lib/tools.jar*08:55:42* [ERROR] Please ensure you are using JDK 1.4 or above and*08:55:42* [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).*08:55:42* [ERROR] In most cases you can change the location of your Java*08:55:42* [ERROR] installation by setting the JAVA_HOME environment variable.*08:55:42* [ERROR] -> [Help 1] ```

Might be related to new vms installed recently. Barak, can you have a look? Maybe puppet didn't run.. On Jul 17, 2016 1:25 PM, "Roy Golan" <rgolan@redhat.com> wrote:
This job just failed after merged cause it didn't find javac
http://jenkins.ovirt.org/job/ovirt-engine_3.6_check-merged-fc23-x86_64/88/co...
An excerpt from the error:
```
*08:55:42* [INFO] ------------------------------------------------------------------------*08:55:42* [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jboss-modules-maven-plugin: Compilation failure*08:55:42* [ERROR] Unable to locate the Javac Compiler in:*08:55:42* [ERROR] /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.92-4.b14.fc23.x86_64/jre/../lib/tools.jar*08:55:42* [ERROR] Please ensure you are using JDK 1.4 or above and*08:55:42* [ERROR] not a JRE (the com.sun.tools.javac.Main class is required).*08:55:42* [ERROR] In most cases you can change the location of your Java*08:55:42* [ERROR] installation by setting the JAVA_HOME environment variable.*08:55:42* [ERROR] -> [Help 1]
```
_______________________________________________ Infra mailing list Infra@ovirt.org http://lists.ovirt.org/mailman/listinfo/infra

On 17 July 2016 at 13:38, Eyal Edri <eedri@redhat.com> wrote:
Might be related to new vms installed recently.
Barak, can you have a look? Maybe puppet didn't run..
This is a standard-CI job, so probably unrelated to VM configuration.
On Jul 17, 2016 1:25 PM, "Roy Golan" <rgolan@redhat.com> wrote:
This job just failed after merged cause it didn't find javac
This sounds similar to a failure sradco saw, please ask her how was it solved. -- Barak Korren bkorren@redhat.com RHEV-CI Team

Looking deeper into this, I see the following difference in the Mock setup logs between this run and the last successful one: For this run, these are the java packages that are installed: DEBUG util.py:417: java-1.8.0-openjdk-headless x86_64 1:1.8.0.92-4.b14.fc23 updates 32 M For the previous run we got this: DEBUG util.py:421: java-1.8.0-openjdk x86_64 1:1.8.0.92-4.b14.fc23 updates 226 k DEBUG util.py:421: java-1.8.0-openjdk-devel x86_64 1:1.8.0.92-4.b14.fc23 updates 9.7 M DEBUG util.py:421: java-1.8.0-openjdk-headless x86_64 1:1.8.0.92-4.b14.fc23 updates 32 M So I'm guessing something changed in the upstream FC23 where the dep structure changed and java-*-devel is not installed as a dep of the packages we do require in 'check-merged.packages'. I suppose the solution aught to be to add a 'check-merged.packages.fc23' file and ensure 'java-1.8.0-openjdk-devel' is installed. On 17 July 2016 at 14:03, Barak Korren <bkorren@redhat.com> wrote:
On 17 July 2016 at 13:38, Eyal Edri <eedri@redhat.com> wrote:
Might be related to new vms installed recently.
Barak, can you have a look? Maybe puppet didn't run..
This is a standard-CI job, so probably unrelated to VM configuration.
On Jul 17, 2016 1:25 PM, "Roy Golan" <rgolan@redhat.com> wrote:
This job just failed after merged cause it didn't find javac
This sounds similar to a failure sradco saw, please ask her how was it solved.
-- Barak Korren bkorren@redhat.com RHEV-CI Team
-- Barak Korren bkorren@redhat.com RHEV-CI Team

More info: This patch sorted this out for master: https://gerrit.ovirt.org/#/c/46516/ I guess we can't just use it for 3.6 because we still need to support el6 and java 1.7. On 17 July 2016 at 14:29, Barak Korren <bkorren@redhat.com> wrote:
Looking deeper into this, I see the following difference in the Mock setup logs between this run and the last successful one:
For this run, these are the java packages that are installed:
DEBUG util.py:417: java-1.8.0-openjdk-headless x86_64 1:1.8.0.92-4.b14.fc23 updates 32 M
For the previous run we got this:
DEBUG util.py:421: java-1.8.0-openjdk x86_64 1:1.8.0.92-4.b14.fc23 updates 226 k DEBUG util.py:421: java-1.8.0-openjdk-devel x86_64 1:1.8.0.92-4.b14.fc23 updates 9.7 M DEBUG util.py:421: java-1.8.0-openjdk-headless x86_64 1:1.8.0.92-4.b14.fc23 updates 32 M
So I'm guessing something changed in the upstream FC23 where the dep structure changed and java-*-devel is not installed as a dep of the packages we do require in 'check-merged.packages'.
I suppose the solution aught to be to add a 'check-merged.packages.fc23' file and ensure 'java-1.8.0-openjdk-devel' is installed.
On 17 July 2016 at 14:03, Barak Korren <bkorren@redhat.com> wrote:
On 17 July 2016 at 13:38, Eyal Edri <eedri@redhat.com> wrote:
Might be related to new vms installed recently.
Barak, can you have a look? Maybe puppet didn't run..
This is a standard-CI job, so probably unrelated to VM configuration.
On Jul 17, 2016 1:25 PM, "Roy Golan" <rgolan@redhat.com> wrote:
This job just failed after merged cause it didn't find javac
This sounds similar to a failure sradco saw, please ask her how was it solved.
-- Barak Korren bkorren@redhat.com RHEV-CI Team
-- Barak Korren bkorren@redhat.com RHEV-CI Team
-- Barak Korren bkorren@redhat.com RHEV-CI Team

On 17 July 2016 at 14:50, Barak Korren <bkorren@redhat.com> wrote:
More info:
This patch sorted this out for master: https://gerrit.ovirt.org/#/c/46516/ I guess we can't just use it for 3.6 because we still need to support el6 and java 1.7.
jdk8 is supported and installed on el6 and is supported on jbos EAP 6.4 which I think we use for 3.6. JDK 1.7 is EOF (without taking redhat long term support into consideration here)
On 17 July 2016 at 14:29, Barak Korren <bkorren@redhat.com> wrote:
Looking deeper into this, I see the following difference in the Mock setup logs between this run and the last successful one:
For this run, these are the java packages that are installed:
DEBUG util.py:417: java-1.8.0-openjdk-headless x86_64 1:1.8.0.92-4.b14.fc23 updates 32 M
For the previous run we got this:
DEBUG util.py:421: java-1.8.0-openjdk x86_64 1:1.8.0.92-4.b14.fc23 updates 226 k DEBUG util.py:421: java-1.8.0-openjdk-devel x86_64 1:1.8.0.92-4.b14.fc23 updates 9.7 M DEBUG util.py:421: java-1.8.0-openjdk-headless x86_64 1:1.8.0.92-4.b14.fc23 updates 32 M
So I'm guessing something changed in the upstream FC23 where the dep structure changed and java-*-devel is not installed as a dep of the packages we do require in 'check-merged.packages'.
I suppose the solution aught to be to add a 'check-merged.packages.fc23' file and ensure 'java-1.8.0-openjdk-devel' is installed.
On 17 July 2016 at 14:03, Barak Korren <bkorren@redhat.com> wrote:
On 17 July 2016 at 13:38, Eyal Edri <eedri@redhat.com> wrote:
Might be related to new vms installed recently.
Barak, can you have a look? Maybe puppet didn't run..
This is a standard-CI job, so probably unrelated to VM configuration.
On Jul 17, 2016 1:25 PM, "Roy Golan" <rgolan@redhat.com> wrote:
This job just failed after merged cause it didn't find javac
This sounds similar to a failure sradco saw, please ask her how was it solved.
-- Barak Korren bkorren@redhat.com RHEV-CI Team
-- Barak Korren bkorren@redhat.com RHEV-CI Team
-- Barak Korren bkorren@redhat.com RHEV-CI Team

On 18 July 2016 at 09:31, Roy Golan <rgolan@redhat.com> wrote:
On 17 July 2016 at 14:50, Barak Korren <bkorren@redhat.com> wrote:
More info:
This patch sorted this out for master: https://gerrit.ovirt.org/#/c/46516/ I guess we can't just use it for 3.6 because we still need to support el6 and java 1.7.
jdk8 is supported and installed on el6 and is supported on jbos EAP 6.4 which I think we use for 3.6. JDK 1.7 is EOF (without taking redhat long term support into consideration here)
AFAIK 3.6 is still supposed to support it. Sandro? In any case since engine has a *.packages.el6 file already, we can just add 'java-1.8.0-openjdk-devel' to the general *.packages file. -- Barak Korren bkorren@redhat.com RHEV-CI Team
participants (3)
-
Barak Korren
-
Eyal Edri
-
Roy Golan