<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Aug 22, 2014 at 10:24 AM, Sandro Bonazzola <span dir="ltr"><<a href="mailto:sbonazzo@redhat.com" target="_blank">sbonazzo@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><div><br>
><br>
> So where is the vdsmd part configuration information?<br>
> DO I have to check vdsm logs or host-deploy logs for this kind of problem?<br>
<br>
</div></div>Both of them I guess.<br>
<br>
<br>
><br>
> Gianluca<br>
<div><div><br>
<br>
--<br>
Sandro Bonazzola<br>
Better technology. Faster innovation. Powered by community collaboration.<br>
See how it works at <a href="http://redhat.com" target="_blank">redhat.com</a><br>
</div></div></blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">ok, I think I have understood the problem.</div><div class="gmail_extra">I remember I successfully completed an AIO install on the same environment around 10 or11 of August so there had to be something different in my way of proceeding.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">In order to rerun many times engine-setup and with different options I setup an environment where on a clean CentOS 6.5 I installed the necessary oVirt packages.</div>
<div class="gmail_extra">Then I shutdown the server and save its disk to use it as a starting point for recurring installations.</div><div class="gmail_extra">It seems that the workflow</div><div class="gmail_extra">- install ovirt packages</div>
<div class="gmail_extra">- shutdown and reboot server</div><div class="gmail_extra">- run engine-setup</div><div class="gmail_extra"><br></div><div class="gmail_extra">creates this kind of problem.</div><div class="gmail_extra">
Possibly because as part of the install I have services marked to be started at boot, even if no configuration has been made for them yet....</div><div class="gmail_extra">So as soon as the packages are installed the services have not been started yet, but they will do on next reboot both if you will run engine-setup before shutdown or not....</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">As soon as installation completes I have these new services configured at boot</div><div class="gmail_extra"><div class="gmail_extra">cgconfig <span style="white-space:pre-wrap">        </span>0:off<span style="white-space:pre-wrap">        </span>1:off<span style="white-space:pre-wrap">        </span>2:on<span style="white-space:pre-wrap">        </span>3:on<span style="white-space:pre-wrap">        </span>4:on<span style="white-space:pre-wrap">        </span>5:on<span style="white-space:pre-wrap">        </span>6:off<br>
</div><div class="gmail_extra">iscsi <span style="white-space:pre-wrap">        </span>0:off<span style="white-space:pre-wrap">        </span>1:off<span style="white-space:pre-wrap">        </span>2:off<span style="white-space:pre-wrap">        </span>3:on<span style="white-space:pre-wrap">        </span>4:on<span style="white-space:pre-wrap">        </span>5:on<span style="white-space:pre-wrap">        </span>6:off<br>
</div><div class="gmail_extra">iscsid <span style="white-space:pre-wrap">        </span>0:off<span style="white-space:pre-wrap">        </span>1:off<span style="white-space:pre-wrap">        </span>2:off<span style="white-space:pre-wrap">        </span>3:on<span style="white-space:pre-wrap">        </span>4:on<span style="white-space:pre-wrap">        </span>5:on<span style="white-space:pre-wrap">        </span>6:off<br>
</div><div class="gmail_extra">ksm <span style="white-space:pre-wrap">        </span>0:off<span style="white-space:pre-wrap">        </span>1:off<span style="white-space:pre-wrap">        </span>2:off<span style="white-space:pre-wrap">        </span>3:on<span style="white-space:pre-wrap">        </span>4:on<span style="white-space:pre-wrap">        </span>5:on<span style="white-space:pre-wrap">        </span>6:off<br>
</div><div class="gmail_extra">ksmtuned <span style="white-space:pre-wrap">        </span>0:off<span style="white-space:pre-wrap">        </span>1:off<span style="white-space:pre-wrap">        </span>2:off<span style="white-space:pre-wrap">        </span>3:on<span style="white-space:pre-wrap">        </span>4:on<span style="white-space:pre-wrap">        </span>5:on<span style="white-space:pre-wrap">        </span>6:off<br>
</div><div class="gmail_extra">
libvirt-guests <span style="white-space:pre-wrap">        </span>0:off<span style="white-space:pre-wrap">        </span>1:off<span style="white-space:pre-wrap">        </span>2:on<span style="white-space:pre-wrap">        </span>3:on<span style="white-space:pre-wrap">        </span>4:on<span style="white-space:pre-wrap">        </span>5:on<span style="white-space:pre-wrap">        </span>6:off</div>
<div class="gmail_extra">libvirtd <span style="white-space:pre-wrap">        </span>0:off<span style="white-space:pre-wrap">        </span>1:off<span style="white-space:pre-wrap">        </span>2:off<span style="white-space:pre-wrap">        </span>3:on<span style="white-space:pre-wrap">        </span>4:on<span style="white-space:pre-wrap">        </span>5:on<span style="white-space:pre-wrap">        </span>6:off</div>
<div class="gmail_extra">sanlock <span style="white-space:pre-wrap">        </span>0:off<span style="white-space:pre-wrap">        </span>1:off<span style="white-space:pre-wrap">        </span>2:on<span style="white-space:pre-wrap">        </span>3:on<span style="white-space:pre-wrap">        </span>4:on<span style="white-space:pre-wrap">        </span>5:on<span style="white-space:pre-wrap">        </span>6:off<br>
</div>
<div class="gmail_extra">supervdsmd <span style="white-space:pre-wrap">        </span>0:off<span style="white-space:pre-wrap">        </span>1:off<span style="white-space:pre-wrap">        </span>2:on<span style="white-space:pre-wrap">        </span>3:on<span style="white-space:pre-wrap">        </span>4:on<span style="white-space:pre-wrap">        </span>5:on<span style="white-space:pre-wrap">        </span>6:off</div>
<div class="gmail_extra">vdsmd <span style="white-space:pre-wrap">        </span>0:off<span style="white-space:pre-wrap">        </span>1:off<span style="white-space:pre-wrap">        </span>2:on<span style="white-space:pre-wrap">        </span>3:on<span style="white-space:pre-wrap">        </span>4:on<span style="white-space:pre-wrap">        </span>5:on<span style="white-space:pre-wrap">        </span>6:off</div>
<div class="gmail_extra">wdmd <span style="white-space:pre-wrap">        </span>0:off<span style="white-space:pre-wrap">        </span>1:off<span style="white-space:pre-wrap">        </span>2:on<span style="white-space:pre-wrap">        </span>3:on<span style="white-space:pre-wrap">        </span>4:on<span style="white-space:pre-wrap">        </span>5:on<span style="white-space:pre-wrap">        </span>6:off<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">so after restart of the server, this creates problems.....</div><div class="gmail_extra">Instead if I run engine-setup right after install I don't get this error.</div>
<div class="gmail_extra">But now I get</div><div class="gmail_extra"><div class="gmail_extra">[ INFO ] Starting engine service</div><div class="gmail_extra">[ INFO ] Restarting httpd</div><div class="gmail_extra">[ INFO ] Restarting nfs services</div>
<div class="gmail_extra">[ ERROR ] Failed to execute stage 'Closing up': No permission to read file: /etc/pki/vdsm/keys/vdsmkey.pem</div><div class="gmail_extra">[ INFO ] Stage: Clean up</div><div class="gmail_extra">
Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20140822110116-nwyf6c.log</div><div><br></div><div>and in fact, also executing from command line</div><div><br></div><div>[root@ovirtita setup]# vdsClient -s 0 getVdsCapabilities</div>
<div>
<div>Traceback (most recent call last):</div><div> File "/usr/share/vdsm/vdsClient.py", line 2744, in <module></div><div> serv.do_connect(hostPort)</div><div> File "/usr/share/vdsm/vdsClient.py", line 187, in do_connect</div>
<div> self.s = vdscli.connect(hostPort, self.useSSL, self.truststore)</div><div> File "/usr/lib64/python2.6/site-packages/vdsm/vdscli.py", line 108, in connect</div><div> raise Exception("No permission to read file: %s" % f)</div>
<div>Exception: No permission to read file: /etc/pki/vdsm/keys/vdsmkey.pem</div></div><div><br></div><div>The file actually is not there, there is no problem of permissions....</div><div><br></div><div><div>[root@ovirtita setup]# ll /etc/pki/vdsm/keys/</div>
<div>total 4</div><div>-rw-------. 1 vdsm kvm 10 Aug 21 22:34 libvirt_password</div></div><div><br></div><div>Which part should have created the file?</div></div><div class="gmail_extra">
<br></div><div class="gmail_extra">After failure:</div><div class="gmail_extra"><div class="gmail_extra"># service vdsmd status</div><div class="gmail_extra">VDS daemon is not running</div><div><br></div><div>no logs from vdsm (probably never started yet because of the above problem):</div>
<div><div>[root@ovirtita exported-artifacts]# ll /var/log/vdsm/</div><div>total 4</div><div>drwxr-xr-x. 2 vdsm kvm 4096 Aug 21 22:34 backup</div><div>-rw-r--r--. 1 vdsm kvm 0 Aug 22 12:18 connectivity.log</div><div>-rw-r--r--. 1 vdsm kvm 0 Aug 22 12:18 mom.log</div>
<div>-rw-r--r--. 1 root root 0 Aug 22 12:18 supervdsm.log</div><div>-rw-r--r--. 1 vdsm kvm 0 Aug 22 12:18 vdsm.log</div><div>[root@ovirtita exported-artifacts]# ll /var/log/vdsm/backup/</div><div>total 0</div></div>
<div><br></div><div>Also,</div><div><div>[root@ovirtita exported-artifacts]# ll /var/log/ovirt-engine/host-deploy/</div><div>total 0</div></div><div><br></div></div><div class="gmail_extra"><div>engine-setup log here</div>
<div><a href="https://drive.google.com/file/d/0BwoPbcrMv8mvaWNqakhnS19jZTQ/edit?usp=sharing" target="_blank">https://drive.google.com/file/d/0BwoPbcrMv8mvaWNqakhnS19jZTQ/edit?usp=sharing</a><br></div><div><br></div><div><br>
</div></div><div>my current setup of packages is:</div><div><div>[root@ovirtita setup]# rpm -qa|egrep "engine|vdsm|ovirt"</div><div>vdsm-python-zombiereaper-4.16.0-231.git7f489da.el6.noarch</div><div>vdsm-xmlrpc-4.16.0-231.git7f489da.el6.noarch</div>
<div>ovirt-engine-setup-plugin-websocket-proxy-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div><div>ovirt-host-deploy-java-1.3.0-0.0.master.20140821183616.git82dce3c.el6.noarch</div><div>ovirt-engine-setup-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div>
<div>ovirt-release-master-001-0.0.master.noarch</div><div>ovirt-engine-sdk-python-3.6.0.0-1.20140820.gitc625968.el6.noarch</div><div>ovirt-engine-userportal-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div><div>
ovirt-engine-backend-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div><div>ovirt-host-deploy-1.3.0-0.0.master.20140821183616.git82dce3c.el6.noarch</div><div>ovirt-image-uploader-3.6.0-0.0.master.20140808125503.git066ed25.el6.noarch</div>
<div>ovirt-engine-lib-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div><div>ovirt-engine-extensions-api-impl-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div><div>ovirt-engine-dbscripts-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div>
<div>ovirt-engine-tools-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div><div>ovirt-host-deploy-offline-1.3.0-0.0.master.20140821183616.git82dce3c.el6.x86_64</div><div>ovirt-iso-uploader-3.6.0-0.0.master.20140812133505.gita6b721e.el6.noarch</div>
<div>vdsm-python-4.16.0-231.git7f489da.el6.noarch</div><div>ovirt-engine-setup-base-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div><div>vdsm-yajsonrpc-4.16.0-231.git7f489da.el6.noarch</div><div>vdsm-jsonrpc-java-1.0.3-0.0.master.20140821162323.git93bec39.el6.noarch</div>
<div>ovirt-engine-jboss-as-7.1.1-1.el6.x86_64</div><div>ovirt-engine-restapi-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div><div>ovirt-engine-webadmin-portal-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div>
<div>vdsm-jsonrpc-4.16.0-231.git7f489da.el6.noarch</div><div>ovirt-engine-setup-plugin-allinone-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div><div>ovirt-engine-setup-plugin-ovirt-engine-common-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div>
<div>ovirt-engine-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div><div>ovirt-engine-extensions-api-impl-javadoc-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div><div>vdsm-cli-4.16.0-231.git7f489da.el6.noarch</div>
<div>ovirt-engine-websocket-proxy-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div><div>ovirt-engine-cli-3.6.0.0-1.20140820.gite160c94.el6.noarch</div><div>ovirt-engine-setup-plugin-ovirt-engine-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch</div>
<div>vdsm-4.16.0-231.git7f489da.el6.x86_64</div></div><div><br></div><div><br></div><div>Gianluca<br></div><div><br></div></div></div>