<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 21, 2015 at 5:44 PM, Gianluca Cecchi <span dir="ltr"><<a href="mailto:gianluca.cecchi@gmail.com" target="_blank">gianluca.cecchi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Wed, Oct 21, 2015 at 4:58 PM, Simone Tiraboschi <span dir="ltr"><<a href="mailto:stirabos@redhat.com" target="_blank">stirabos@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><div><br></div></span><div>Ok, I will crosscheck the output...</div></div></div></div></blockquote><div><br></div></span><div><div class="gmail_quote"><div>That question is:</div> Add lines for the appliance itself and for this host to /etc/hosts on the engine VM?<br> Note: ensuring that this host could resolve the engine VM hostname is still up to you<br></div></div></div></div></div></blockquote><div><br></div><div><br></div></span><div>You are right. I misunderstood the message meaning.. <br></div><span class=""><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I run it through screen and I'm not able to scroll through the output of it....</div></div></div></div></blockquote><div> </div></span><div><div>1. Hit your screen prefix combination ( C-a / control + A by default), then hit Escape .</div><div>2. Move up/down with the arrow keys to scrool the output buffer.</div><div>3. When you're done, hit Return twice to get back to the end of the scroll buffer.</div></div></div></div></div></blockquote><div><br></div><div><br></div></span><div>Ok, thank you very much! I never used screen before and didn't find this useful infromation.</div><span class=""><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div></div></div><span>
> Can I re-run using the answer file? In this case do I have to pre-insert sh<br>
> engine hostname inside /etc/hosts of hypervisor?<br>
<br>
</span>Yes.<br>
<br><br></blockquote><div><br></div></span><div>What is the supposed command for using answer file?</div></div></div></div></blockquote><div><br></div></span><div>hosted-engine --deploy --config-append=/var/lib/ovirt-hosted-engine-setup/answers/answers-20151021154529.conf</div></div></div></div></blockquote><div><br></div></span><div>OK. It went successfull fro engine point of view.</div><div><br></div><div>One note: I chose spice as protocol for the sh engine and while I was able to connect to it using root user, I wasn't using a normal user.</div><div>I got:</div><div><br></div><div> [g.cecchi@ovc71 ~]$ remote-viewer --spice-ca-file=/etc/pki/vdsm/libvirt-spice/ca-cert.pem spice://localhost?tls-port=5900 --spice-host-subject="C=EN, L=Test, O=Test, CN=Test"</div><div><br></div><div>** (remote-viewer:1633): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-1N7zvOm2Zf: Connection refused</div><div>GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.</div><div><br></div><div>(remote-viewer:1633): GSpice-WARNING **: loading ca certs from /etc/pki/vdsm/libvirt-spice/ca-cert.pem failed</div><div>(/usr/bin/remote-viewer:1633): Spice-Warning **: ssl_verify.c:428:openssl_verify: Error in certificate chain verification: self signed certificate in certificate chain (num=19:depth1:/C=EN/L=Test/O=Test/CN=TestCA)</div><div><br></div><div>(remote-viewer:1633): GSpice-WARNING **: main-1:0: SSL_connect: error:00000001:lib(0):func(0):reason(1)</div><div><br></div><div><br></div><div>It seems that the hypervisor phase was stalled in some way and then failed:</div><div><br></div><div><div>[ INFO ] Engine is still not reachable, waiting...</div><div>[ INFO ] Engine replied: DB Up!Welcome to Health Status!</div><div>[ INFO ] Connecting to the Engine</div><div>[ INFO ] Waiting for the host to become operational in the engine. This may take several minutes...</div><div>[ INFO ] Still waiting for VDSM host to become operational...</div><div>[ INFO ] Still waiting for VDSM host to become operational...</div></div><div>..</div><div><div>[ INFO ] Still waiting for VDSM host to become operational...</div><div>[ ERROR ] Timed out while waiting for host to start. Please check the logs.</div><div>[ ERROR ] Unable to add hosted_engine_1 to the manager</div><div>[ INFO ] Saving hosted-engine configuration on the shared storage domain</div><div>[ INFO ] Shutting down the engine VM</div><div>[ INFO ] Enabling and starting HA services</div><div> Hosted Engine successfully set up</div><div>[ INFO ] Stage: Clean up</div><div>[ INFO ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20151021173522.conf'</div><div>[ INFO ] Generating answer file '/etc/ovirt-hosted-engine/answers.conf'</div><div>[ INFO ] Stage: Pre-termination</div><div>[ INFO ] Stage: Termination</div></div><div><br></div><div>During this waiting phase on hypervisor I got:</div><div><br></div><div><div>[root@ovc71 ~]# systemctl status vdsmd</div><div>vdsmd.service - Virtual Desktop Server Manager</div><div> Loaded: loaded (/usr/lib/systemd/system/vdsmd.service; enabled)</div><div> Active: active (running) since Wed 2015-10-21 17:10:55 CEST; 22min ago</div><div> Main PID: 506 (vdsm)</div><div> CGroup: /system.slice/vdsmd.service</div><div> ├─319 /usr/libexec/ioprocess --read-pipe-fd 29 --write-pipe-fd 23 --max-threads 10 --m...</div><div> ├─506 /usr/bin/python /usr/share/vdsm/vdsm</div><div> └─943 /usr/libexec/ioprocess --read-pipe-fd 57 --write-pipe-fd 56 --max-threads 10 --m...</div><div><br></div><div>Oct 21 17:10:56 ovc71.localdomain.local python[506]: DIGEST-MD5 client step 1</div><div>Oct 21 17:10:56 ovc71.localdomain.local python[506]: DIGEST-MD5 ask_user_info()</div><div>Oct 21 17:10:56 ovc71.localdomain.local python[506]: DIGEST-MD5 client step 1</div><div>Oct 21 17:10:56 ovc71.localdomain.local python[506]: DIGEST-MD5 ask_user_info()</div><div>Oct 21 17:10:56 ovc71.localdomain.local python[506]: DIGEST-MD5 make_client_response()</div><div>Oct 21 17:10:56 ovc71.localdomain.local python[506]: DIGEST-MD5 client step 2</div><div>Oct 21 17:10:56 ovc71.localdomain.local python[506]: DIGEST-MD5 parse_server_challenge()</div><div>Oct 21 17:10:56 ovc71.localdomain.local python[506]: DIGEST-MD5 ask_user_info()</div><div>Oct 21 17:10:56 ovc71.localdomain.local python[506]: DIGEST-MD5 make_client_response()</div><div>Oct 21 17:10:56 ovc71.localdomain.local python[506]: DIGEST-MD5 client step 3</div></div><div><br></div><div>Inside vdsm.log under /var/log/vdsm/ I saw many loops of type</div><div><br></div><div><div>Thread-160::DEBUG::2015-10-21 17:31:23,084::fileSD::173::Storage.Misc.excCmd::(getReadDelay) /usr/bi</div><div>n/dd if=/rhev/data-center/mnt/ovc71.localdomain.local:_NFS__DOMAIN/f538db13-330f-4a73-bf6d-1f7e3af12</div><div>370/dom_md/metadata iflag=direct of=/dev/null bs=4096 count=1 (cwd None)</div><div>Thread-160::DEBUG::2015-10-21 17:31:23,091::fileSD::173::Storage.Misc.excCmd::(getReadDelay) SUCCESS</div><div>: <err> = '0+1 records in\n0+1 records out\n311 bytes (311 B) copied, 0.000233708 s, 1.3 MB/s\n'; <r</div><div>c> = 0</div><div>Reactor thread::INFO::2015-10-21 17:31:30,028::protocoldetector::72::ProtocolDetector.AcceptorImpl::</div><div>(handle_accept) Accepting connection from <a href="http://127.0.0.1:40382" target="_blank">127.0.0.1:40382</a></div><div>Reactor thread::DEBUG::2015-10-21 17:31:30,034::protocoldetector::82::ProtocolDetector.Detector::(__</div><div>init__) Using required_size=11</div><div>Reactor thread::INFO::2015-10-21 17:31:30,035::protocoldetector::118::ProtocolDetector.Detector::(ha</div><div>ndle_read) Detected protocol xml from <a href="http://127.0.0.1:40382" target="_blank">127.0.0.1:40382</a></div><div>Reactor thread::DEBUG::2015-10-21 17:31:30,035::bindingxmlrpc::1297::XmlDetector::(handle_socket) xm</div><div>l over http detected from ('127.0.0.1', 40382)</div><div>BindingXMLRPC::INFO::2015-10-21 17:31:30,036::xmlrpc::73::vds.XMLRPCServer::(handle_request) Startin</div><div>g request handler for <a href="http://127.0.0.1:40382" target="_blank">127.0.0.1:40382</a></div><div>Thread-284::INFO::2015-10-21 17:31:30,037::xmlrpc::84::vds.XMLRPCServer::(_process_requests) Request</div><div> handler for <a href="http://127.0.0.1:40382" target="_blank">127.0.0.1:40382</a> started</div><div>Thread-284::INFO::2015-10-21 17:31:30,043::xmlrpc::92::vds.XMLRPCServer::(_process_requests) Request</div><div> handler for <a href="http://127.0.0.1:40382" target="_blank">127.0.0.1:40382</a> stopped</div><div>Thread-160::DEBUG::2015-10-21 17:31:33,095::fileSD::173::Storage.Misc.excCmd::(getReadDelay) /usr/bin/dd if=/rhev/data-center/mnt/ovc71.localdomain.local:_NFS__DOMAIN/f538db13-330f-4a73-bf6d-1f7e3af12370/dom_md/metadata iflag=direct of=/dev/null bs=4096 count=1 (cwd None)</div></div><div><div>Thread-160::DEBUG::2015-10-21 17:31:33,104::fileSD::173::Storage.Misc.excCmd::(getReadDelay) SUCCESS: <err> = '0+1 records in\n0+1 records out\n311 bytes (311 B) copied, 0.00030368 s, 1.0 MB/s\n'; <rc> = 0</div><div>Thread-160::DEBUG::2015-10-21 17:31:43,109::fileSD::173::Storage.Misc.excCmd::(getReadDelay) /usr/bin/dd if=/rhev/data-center/mnt/ovc71.localdomain.local:_NFS__DOMAIN/f538db13-330f-4a73-bf6d-1f7e3af12370/dom_md/metadata iflag=direct of=/dev/null bs=4096 count=1 (cwd None)</div><div>Thread-160::DEBUG::2015-10-21 17:31:43,116::fileSD::173::Storage.Misc.excCmd::(getReadDelay) SUCCESS: <err> = '0+1 records in\n0+1 records out\n311 bytes (311 B) copied, 0.00109833 s, 283 kB/s\n'; <rc> = 0</div><div>Reactor thread::INFO::2015-10-21 17:31:45,067::protocoldetector::72::ProtocolDetector.AcceptorImpl::(handle_accept) Accepting connection from <a href="http://127.0.0.1:40384" target="_blank">127.0.0.1:40384</a></div><div>Reactor thread::DEBUG::2015-10-21 17:31:45,072::protocoldetector::82::ProtocolDetector.Detector::(__init__) Using required_size=11</div><div>Reactor thread::INFO::2015-10-21 17:31:45,073::protocoldetector::118::ProtocolDetector.Detector::(handle_read) Detected protocol xml from <a href="http://127.0.0.1:40384" target="_blank">127.0.0.1:40384</a></div><div>Reactor thread::DEBUG::2015-10-21 17:31:45,073::bindingxmlrpc::1297::XmlDetector::(handle_socket) xml over http detected from ('127.0.0.1', 40384)</div><div>BindingXMLRPC::INFO::2015-10-21 17:31:45,074::xmlrpc::73::vds.XMLRPCServer::(handle_request) Starting request handler for <a href="http://127.0.0.1:40384" target="_blank">127.0.0.1:40384</a></div><div>Thread-285::INFO::2015-10-21 17:31:45,074::xmlrpc::84::vds.XMLRPCServer::(_process_requests) Request handler for <a href="http://127.0.0.1:40384" target="_blank">127.0.0.1:40384</a> started</div><div>Thread-285::INFO::2015-10-21 17:31:45,080::xmlrpc::92::vds.XMLRPCServer::(_process_requests) Request handler for <a href="http://127.0.0.1:40384" target="_blank">127.0.0.1:40384</a> stopped</div></div><div><br></div><div>Full vdsm.log in gzip format here:</div><div><a href="https://drive.google.com/file/d/0BwoPbcrMv8mvbjRqQ1ZuTzhsUEU/view?usp=sharing" target="_blank">https://drive.google.com/file/d/0BwoPbcrMv8mvbjRqQ1ZuTzhsUEU/view?usp=sharing</a><br></div><div><br></div><div>Exactly what kind of check does the install run to veryfy hypervisor is up ?</div></div></div></div></blockquote><div><br></div><div>It pools engine REST API checking the host status for 10 minutes till it become 'up' or 'non_operational'. In your case it reached the 10 minutes timeout.</div><div>Please check engine and host-deploy logs on the engine VM.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Can I simply restart the hypervisor and see what happens? I remember similar thinigs in all-in-one setups where initial setup failed the vdsm part but then a restart was ok.....</div></div></div></div></blockquote><div><br></div><div>It's better to understood what was wrong.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="HOEnZb"><font color="#888888"><div><br></div><div>Gianluca</div><div><br></div></font></span></div></div></div>
</blockquote></div><br></div></div>