<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br><div dir="ltr"><div><hr id="stopSpelling">Date: Sun, 16 Mar 2014 05:14:39 -0400<br>From: didi@redhat.com<br>To: giuseppe.ragusa@hotmail.com<br>CC: users@ovirt.org<br>Subject: Re: [Users] Self-hosted-engine setup error<br><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt;color:#000000;"><div></div><blockquote style="border-left:2px solid #1010FF;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Giuseppe Ragusa" <giuseppe.ragusa@hotmail.com><br><b>To: </b>"Yedidyah Bar David" <didi@redhat.com><br><b>Cc: </b>users@ovirt.org<br><b>Sent: </b>Saturday, March 15, 2014 2:15:18 AM<br><b>Subject: </b>RE: [Users] Self-hosted-engine setup error<br><div><br></div>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr">Hi Didi,<br><div><br></div><div><hr id="ecxstopSpelling">Date: Thu, 13 Mar 2014 02:46:50 -0400<br>From: didi@redhat.com<br>To: giuseppe.ragusa@hotmail.com<br>CC: users@ovirt.org<br>Subject: Re: [Users] Self-hosted-engine setup error<br><div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;color:#000000;"><div></div><blockquote style="border-left:2px solid #1010FF;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Giuseppe Ragusa" <giuseppe.ragusa@hotmail.com><br><b>To: </b>users@ovirt.org<br><b>Sent: </b>Thursday, March 13, 2014 2:38:42 AM<br><b>Subject: </b>[Users] Self-hosted-engine setup error<br><div><br></div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style><div dir="ltr">Hi all,<br>while attempting a from-scratch self-hosted-engine installation on CentOS 6.5 (also freshly reinstalled from scratch) on a physical node (oVirt 3.4.0_pre + GlusterFS 3.5.0beta4; NFS storage for engine VM), the process fails almost immediately with:<br><div><br></div>[root@cluster1 ~]# ovirt-hosted-engine-setup --config-append=/root/ovhe-setup-answers.conf<br>[ INFO ] Stage: Initializing<br> Continuing will configure this host for serving as hypervisor and create a VM where you have to install oVirt Engine afterwards.<br> Are you sure you want to continue? (Yes, No)[Yes]:<br>[ INFO ] Generating a temporary VNC password.<br>[ INFO ] Stage: Environment setup<br> Configuration files: ['/root/ovhe-setup-answers.conf']<br> Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20140313010526.log<br> Version: otopi-1.2.0_rc3 (otopi-1.2.0-0.9.rc3.el6)<br>[ INFO ] Hardware supports virtualization<br>[ INFO ] Bridge ovirtmgmt already created<br>[ INFO ] Stage: Environment packages setup<br>[ INFO ] Stage: Programs detection<br>[ INFO ] Stage: Environment setup<br>[ INFO ] Generating VDSM certificates<br>[ ERROR ] Failed to execute stage 'Environment setup': [Errno 2] No such file or directory: '/etc/pki/libvirt/clientcert.pem'</div></blockquote><div><br></div><div>I already got another such report yesterday - seems like a bug in the fix for <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1034634" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1034634</a> .</div><div>I hope to push a fix later today.<br><div><br></div>I look forward to have the fix pushed/merged in actual packages.<br></div><div><br></div><blockquote style="border-left:2px solid #1010FF;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><br>[ INFO ] Stage: Clean up<br>[ INFO ] Stage: Pre-termination<br>[ INFO ] Stage: Termination<br><div><br></div>The /root/ovhe-setup-answers.conf has been saved from a previous installation (before reinstalling) and only minimally edited (removed some lines with UUIDs etc.).<br><div><br></div>The /etc/pki/libvirt dir is completely missing on both nodes; last time I tried the whole setup I do not recall of having such problems, but maybe something was different then.<br><div><br></div>The generated /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20140313010526.log has been saved as:<br><div><br></div>http://pastebin.com/ezAJETBN<br><div><br></div>I hope to be able to progress further to test the whole 2-nodes setup (second node freshly reinstalled too and already up with GlusterFS and waiting to be added to oVirt cluster) and datacenter configuration.<br><div><br></div>Many thanks in advance for any suggestions/help,</div></blockquote><div><br></div><div>For now, you can simply:</div><div>mkdir <span style="font-family:Helvetica, Arial, sans-serif;">/etc/pki/libvirt</span></div><div><br></div><div>This should be enough.<br><div><br></div>The workaround works: the self-hosted-engine installation proceeds now.<br></div><div><br></div><div>Thanks for the report!</div><div>-- <br></div><div><span></span>Didi<br><span></span><br>Many thanks for your kind and prompt assistance,<br>Giuseppe<br><div><br></div></div></div></div>                                            </div>
</blockquote><div><br>Thanks for the report. The workaround is probably not enough, depends on what you</div><div>are trying to do. 'mkdir /etc/pki/libvirt/private' is needed too. Without it, the code that</div><div>copies there a key will create a file 'private' instead of copying it into a directory 'private'.</div><div><br></div><div>Fix [1] was merged to all branches.</div><div><br></div><div>[1] <a href="http://gerrit.ovirt.org/25747" target="_blank">http://gerrit.ovirt.org/25747</a></div><div><br></div><div>Best regards,</div><div><span style="font-size:12pt;">-- </span></div><div><span></span>Didi<br><span></span><br>Hi Didi,<br>the workaround seemed actually to be enough to make the self-hosted-engine setup go through up to the end without any user-visible error, but it left me with a non-running Engine VM afterwards (basically it did not restart up automatically under HA protection).<br><br>I collected all logs and reported it in a separate message with subject "Self-hosted engine setup ok but no engine vm runningū " but got no comments yet.<br><br>If I get no suggestions I will try to perform some "corrective actions" based on my understanding of the problems at hand, but I did not want to "corrupt" the exact state to help in debugging (starting again from scratch with full first node reinstallation is a somewhat lenghty process since I have no local repo mirrors).<br><br>Many thanks again,<br>Giuseppe<br><br></div></div></div></div>
                                           </div></body>
</html>