Ovirt engine-setup fails, "Cannot get JAVA_HOME"

--_000_BCF08373E16D3843B036DB74CC2BC62804FC4441VINZCLORTHOdeus_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello folks, After a long, long time compiling permutations, I went to finish setup of o= virt-engine on my Gentoo testbed. Running engine-setup, I receive an error = after answering all prompts: [ ERROR ] Failed to execute stage 'Setup validation': Cannot get JAVA_HOME = ([u'\x1b[01m\x1b[31;06m!!! ERROR: The vm could not be found\x1b[0m']) This machine has icedtea-bin-7.2.5.3, and # echo $JAVA_HOME yields /etc/jav= a-config-2/current-system-vm which is linked to the icedtea-bin VM director= y. Any thoughts to get me started? Thanks, Carter Kindley Network Qualified Technician Deus Machine, LLC This email has been scanned for viruses and private content. =0D =0D This message has been secured for compliance with the DM Cloud Mail Filter = Service. =0D =0D For details on inbound and outbound filtering please contact your account s= pecialist or primary technician.= --_000_BCF08373E16D3843B036DB74CC2BC62804FC4441VINZCLORTHOdeus_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"> <meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri","sans-serif";} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"EN-US" link=3D"blue" vlink=3D"purple"> <div class=3D"WordSection1"> <p class=3D"MsoNormal">Hello folks,<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">After a long, long time compiling permutations, I we= nt to finish setup of ovirt-engine on my Gentoo testbed. Running engine-set= up, I receive an error after answering all prompts:<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">[ ERROR ] Failed to execute stage 'Setup validation'= : Cannot get JAVA_HOME ([u'\x1b[01m\x1b[31;06m!!! ERROR: The vm could not b= e found\x1b[0m'])<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">This machine has icedtea-bin-7.2.5.3, and # echo $JA= VA_HOME yields /etc/java-config-2/current-system-vm which is linked to the = icedtea-bin VM directory. Any thoughts to get me started?<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">Thanks,<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">Carter Kindley<o:p></o:p></p> <p class=3D"MsoNormal">Network Qualified Technician<o:p></o:p></p> <p class=3D"MsoNormal">Deus Machine, LLC<o:p></o:p></p> </div> <br>This email has been scanned for viruses and private content. =0D <p>=0D This message has been secured for compliance with the DM Cloud Mail Filter = Service. =0D <p>=0D For details on inbound and outbound filtering please contact your account s= pecialist or primary technician. </body> </html> --_000_BCF08373E16D3843B036DB74CC2BC62804FC4441VINZCLORTHOdeus_--

----- Original Message -----
From: "Carter Kindley" <Carter.Kindley@deusmachine.com> To: users@ovirt.org Sent: Tuesday, March 3, 2015 3:06:44 AM Subject: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
Hello folks,
After a long, long time compiling permutations, I went to finish setup of ovirt-engine on my Gentoo testbed. Running engine-setup, I receive an error after answering all prompts:
[ ERROR ] Failed to execute stage 'Setup validation': Cannot get JAVA_HOME ([u'\x1b[01m\x1b[31;06m!!! ERROR: The vm could not be found\x1b[0m'])
This machine has icedtea-bin-7.2.5.3, and # echo $JAVA_HOME yields /etc/java-config-2/current-system-vm which is linked to the icedtea-bin VM directory. Any thoughts to get me started?
The jre to use is determined by the script java-home (usually in /usr/share/ovirt-engine/bin, not sure about gentoo and/or your $PREFIX). IIRC only openjdk 1.7.0 is supported. If you look at this script, you see that if you put in its directory a script called java-home.local it will be called instead, thus letting you override that. Just add there a script outputting the JAVA_HOME you want and retry. Best, -- Didi

Thanks, Didi! That really helped. I could not figure out what was getting parsed to set JAVA_HOME, thanks for indicating those scripts. In my environment there is a java-home.local; it pulls the home by running # exec java-config --select-vm=icedtea-7 --jre-home , which outputs a warning message because I have icedtea-bin-7 installed. I could change this script, or emerge icedtea-7 from sources (which is what I'll do, since I am not partial to binary builds). OVirt isn't in the main portage tree; I should contact the overlay maintainer to correct this script. Cheers, Carter Kindley Network Qualified Technician Deus Machine, LLC -----Original Message----- From: Yedidyah Bar David [mailto:didi@redhat.com] Sent: Monday, March 2, 2015 11:05 PM To: Carter Kindley Cc: users@ovirt.org Subject: Re: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME" ----- Original Message -----
From: "Carter Kindley" <Carter.Kindley@deusmachine.com> To: users@ovirt.org Sent: Tuesday, March 3, 2015 3:06:44 AM Subject: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
Hello folks,
After a long, long time compiling permutations, I went to finish setup of ovirt-engine on my Gentoo testbed. Running engine-setup, I receive an error after answering all prompts:
[ ERROR ] Failed to execute stage 'Setup validation': Cannot get JAVA_HOME ([u'\x1b[01m\x1b[31;06m!!! ERROR: The vm could not be found\x1b[0m'])
This machine has icedtea-bin-7.2.5.3, and # echo $JAVA_HOME yields /etc/java-config-2/current-system-vm which is linked to the icedtea-bin VM directory. Any thoughts to get me started?
The jre to use is determined by the script java-home (usually in /usr/share/ovirt-engine/bin, not sure about gentoo and/or your $PREFIX). IIRC only openjdk 1.7.0 is supported. If you look at this script, you see that if you put in its directory a script called java-home.local it will be called instead, thus letting you override that. Just add there a script outputting the JAVA_HOME you want and retry. Best, -- Didi This email has been scanned for viruses and private content. This message has been secured for compliance with the DM Cloud Mail Filter Service. For details on inbound and outbound filtering please contact your account specialist or primary technician.

On 03/03/2015 11:30 PM, Carter Kindley wrote:
Thanks, Didi!
That really helped. I could not figure out what was getting parsed to set JAVA_HOME, thanks for indicating those scripts. In my environment there is a java-home.local; it pulls the home by running # exec java-config --select-vm=icedtea-7 --jre-home , which outputs a warning message because I have icedtea-bin-7 installed. I could change this script, or emerge icedtea-7 from sources (which is what I'll do, since I am not partial to binary builds). OVirt isn't in the main portage tree; I should contact the overlay maintainer to correct this script.
might be that iced-tea won't pass the check of validJre in the script above-mentioned. 2 options: 1. install openjdk 7 2. force use your JRE with OVIRT_ENGINE_JAVA_HOME=/path/to/icedtea when invoking engine-setup
Cheers,
Carter Kindley Network Qualified Technician Deus Machine, LLC
-----Original Message----- From: Yedidyah Bar David [mailto:didi@redhat.com] Sent: Monday, March 2, 2015 11:05 PM To: Carter Kindley Cc: users@ovirt.org Subject: Re: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
----- Original Message -----
From: "Carter Kindley" <Carter.Kindley@deusmachine.com> To: users@ovirt.org Sent: Tuesday, March 3, 2015 3:06:44 AM Subject: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
Hello folks,
After a long, long time compiling permutations, I went to finish setup of ovirt-engine on my Gentoo testbed. Running engine-setup, I receive an error after answering all prompts:
[ ERROR ] Failed to execute stage 'Setup validation': Cannot get JAVA_HOME ([u'\x1b[01m\x1b[31;06m!!! ERROR: The vm could not be found\x1b[0m'])
This machine has icedtea-bin-7.2.5.3, and # echo $JAVA_HOME yields /etc/java-config-2/current-system-vm which is linked to the icedtea-bin VM directory. Any thoughts to get me started? The jre to use is determined by the script java-home (usually in /usr/share/ovirt-engine/bin, not sure about gentoo and/or your $PREFIX). IIRC only openjdk 1.7.0 is supported. If you look at this script, you see that if you put in its directory a script called java-home.local it will be called instead, thus letting you override that. Just add there a script outputting the JAVA_HOME you want and retry.
Best, -- Didi
This email has been scanned for viruses and private content.
This message has been secured for compliance with the DM Cloud Mail Filter Service.
For details on inbound and outbound filtering please contact your account specialist or primary technician. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

----- Original Message -----
From: "Carter Kindley" <Carter.Kindley@deusmachine.com> To: users@ovirt.org Sent: Tuesday, March 3, 2015 11:30:59 PM Subject: Re: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
Thanks, Didi!
That really helped. I could not figure out what was getting parsed to set JAVA_HOME, thanks for indicating those scripts. In my environment there is a java-home.local;
Probably added by Alon.
it pulls the home by running # exec java-config --select-vm=icedtea-7 --jre-home , which outputs a warning message because I have icedtea-bin-7 installed. I could change this script, or emerge icedtea-7 from sources (which is what I'll do, since I am not partial to binary builds).
Seems simplest to me.
OVirt isn't in the main portage tree; I should contact the overlay maintainer to correct this script.
That's Alon, iiuc... Alon - any problem using the binary build? Best regards, -- Didi
Cheers,
Carter Kindley Network Qualified Technician Deus Machine, LLC
-----Original Message----- From: Yedidyah Bar David [mailto:didi@redhat.com] Sent: Monday, March 2, 2015 11:05 PM To: Carter Kindley Cc: users@ovirt.org Subject: Re: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
----- Original Message -----
From: "Carter Kindley" <Carter.Kindley@deusmachine.com> To: users@ovirt.org Sent: Tuesday, March 3, 2015 3:06:44 AM Subject: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
Hello folks,
After a long, long time compiling permutations, I went to finish setup of ovirt-engine on my Gentoo testbed. Running engine-setup, I receive an error after answering all prompts:
[ ERROR ] Failed to execute stage 'Setup validation': Cannot get JAVA_HOME ([u'\x1b[01m\x1b[31;06m!!! ERROR: The vm could not be found\x1b[0m'])
This machine has icedtea-bin-7.2.5.3, and # echo $JAVA_HOME yields /etc/java-config-2/current-system-vm which is linked to the icedtea-bin VM directory. Any thoughts to get me started?
The jre to use is determined by the script java-home (usually in /usr/share/ovirt-engine/bin, not sure about gentoo and/or your $PREFIX). IIRC only openjdk 1.7.0 is supported. If you look at this script, you see that if you put in its directory a script called java-home.local it will be called instead, thus letting you override that. Just add there a script outputting the JAVA_HOME you want and retry.
Best, -- Didi
This email has been scanned for viruses and private content.
This message has been secured for compliance with the DM Cloud Mail Filter Service.
For details on inbound and outbound filtering please contact your account specialist or primary technician. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hey folks, Icedtea-7 allows engine-setup to complete - almost... The setup now fails on cleanup: "[ ERROR ] Failed to execute stage 'Closing up': Command '/usr/bin/systemctl' failed to execute". The log files indicate that systemctl is attempting to start a unit file (presumably ovirt-engine.service) which does not exist. I'm happy to write my own, but it would be awesome to see what is used as best practice from the oVirt community. Thanks so much for the responses already. I appreciate it! Carter Kindley Network Qualified Technician Deus Machine, LLC -----Original Message----- From: Yedidyah Bar David [mailto:didi@redhat.com] Sent: Tuesday, March 3, 2015 11:16 PM To: Carter Kindley; Alon Bar-Lev Cc: users@ovirt.org Subject: Re: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME" ----- Original Message -----
From: "Carter Kindley" <Carter.Kindley@deusmachine.com> To: users@ovirt.org Sent: Tuesday, March 3, 2015 11:30:59 PM Subject: Re: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
Thanks, Didi!
That really helped. I could not figure out what was getting parsed to set JAVA_HOME, thanks for indicating those scripts. In my environment there is a java-home.local;
Probably added by Alon.
it pulls the home by running # exec java-config --select-vm=icedtea-7 --jre-home , which outputs a warning message because I have icedtea-bin-7 installed. I could change this script, or emerge icedtea-7 from sources (which is what I'll do, since I am not partial to binary builds).
Seems simplest to me.
OVirt isn't in the main portage tree; I should contact the overlay maintainer to correct this script.
That's Alon, iiuc... Alon - any problem using the binary build? Best regards, -- Didi
Cheers,
Carter Kindley Network Qualified Technician Deus Machine, LLC
-----Original Message----- From: Yedidyah Bar David [mailto:didi@redhat.com] Sent: Monday, March 2, 2015 11:05 PM To: Carter Kindley Cc: users@ovirt.org Subject: Re: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
----- Original Message -----
From: "Carter Kindley" <Carter.Kindley@deusmachine.com> To: users@ovirt.org Sent: Tuesday, March 3, 2015 3:06:44 AM Subject: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
Hello folks,
After a long, long time compiling permutations, I went to finish setup of ovirt-engine on my Gentoo testbed. Running engine-setup, I receive an error after answering all prompts:
[ ERROR ] Failed to execute stage 'Setup validation': Cannot get JAVA_HOME ([u'\x1b[01m\x1b[31;06m!!! ERROR: The vm could not be found\x1b[0m'])
This machine has icedtea-bin-7.2.5.3, and # echo $JAVA_HOME yields /etc/java-config-2/current-system-vm which is linked to the icedtea-bin VM directory. Any thoughts to get me started?
The jre to use is determined by the script java-home (usually in /usr/share/ovirt-engine/bin, not sure about gentoo and/or your $PREFIX). IIRC only openjdk 1.7.0 is supported. If you look at this script, you see that if you put in its directory a script called java-home.local it will be called instead, thus letting you override that. Just add there a script outputting the JAVA_HOME you want and retry.
Best, -- Didi
This email has been scanned for viruses and private content.
This message has been secured for compliance with the DM Cloud Mail Filter Service.
For details on inbound and outbound filtering please contact your account specialist or primary technician. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
This email has been scanned for viruses and private content. This message has been secured for compliance with the DM Cloud Mail Filter Service. For details on inbound and outbound filtering please contact your account specialist or primary technician.

----- Original Message -----
From: "Carter Kindley" <Carter.Kindley@deusmachine.com> To: "Yedidyah Bar David" <didi@redhat.com> Cc: users@ovirt.org Sent: Thursday, March 5, 2015 2:22:31 AM Subject: RE: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
Hey folks,
Icedtea-7 allows engine-setup to complete - almost...
The setup now fails on cleanup: "[ ERROR ] Failed to execute stage 'Closing up': Command '/usr/bin/systemctl' failed to execute". The log files indicate that systemctl is attempting to start a unit file (presumably ovirt-engine.service) which does not exist. I'm happy to write my own, but it would be awesome to see what is used as best practice from the oVirt community.
Adding Alon again :-) Perhaps the unit files are not packaged for gentoo? Please attach setup log files just to make sure this indeed is the problem. Thanks, -- Didi

----- Original Message -----
From: "Yedidyah Bar David" <didi@redhat.com> To: "Carter Kindley" <Carter.Kindley@deusmachine.com>, "Alon Bar-Lev" <alonbl@redhat.com> Cc: users@ovirt.org Sent: Wednesday, March 11, 2015 7:37:25 AM Subject: Re: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
----- Original Message -----
From: "Carter Kindley" <Carter.Kindley@deusmachine.com> To: "Yedidyah Bar David" <didi@redhat.com> Cc: users@ovirt.org Sent: Thursday, March 5, 2015 2:22:31 AM Subject: RE: [ovirt-users] Ovirt engine-setup fails, "Cannot get JAVA_HOME"
Hey folks,
Icedtea-7 allows engine-setup to complete - almost...
The setup now fails on cleanup: "[ ERROR ] Failed to execute stage 'Closing up': Command '/usr/bin/systemctl' failed to execute". The log files indicate that systemctl is attempting to start a unit file (presumably ovirt-engine.service) which does not exist. I'm happy to write my own, but it would be awesome to see what is used as best practice from the oVirt community.
Adding Alon again :-) Perhaps the unit files are not packaged for gentoo?
Please attach setup log files just to make sure this indeed is the problem.
Since 3.5 only devenv is working under Gentoo, too much binary dependencies.
participants (4)
-
Alon Bar-Lev
-
Carter Kindley
-
Roy Golan
-
Yedidyah Bar David