On Fri, Aug 22, 2014 at 10:24 AM, Sandro Bonazzola <sbonazzo@redhat.com> wrote:

>
> So where is the vdsmd part configuration information?
> DO I have to check vdsm logs or host-deploy logs for this kind of problem?

Both of them I guess.


>
> Gianluca


--
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com


ok, I think I have understood the problem.
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.

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.
Then I shutdown the server and save its disk to use it as a starting point for recurring installations.
It seems that the workflow
- install ovirt packages
- shutdown and reboot server
- run engine-setup

creates this kind of problem.
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....
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....

As soon as installation completes I have these new services configured at boot
cgconfig       0:off 1:off 2:on 3:on 4:on 5:on 6:off
iscsi           0:off 1:off 2:off 3:on 4:on 5:on 6:off
iscsid         0:off 1:off 2:off 3:on 4:on 5:on 6:off
ksm             0:off 1:off 2:off 3:on 4:on 5:on 6:off
ksmtuned       0:off 1:off 2:off 3:on 4:on 5:on 6:off
libvirt-guests 0:off 1:off 2:on 3:on 4:on 5:on 6:off
libvirtd       0:off 1:off 2:off 3:on 4:on 5:on 6:off
sanlock         0:off 1:off 2:on 3:on 4:on 5:on 6:off
supervdsmd     0:off 1:off 2:on 3:on 4:on 5:on 6:off
vdsmd           0:off 1:off 2:on 3:on 4:on 5:on 6:off
wdmd           0:off 1:off 2:on 3:on 4:on 5:on 6:off

so after restart of the server, this creates problems.....
Instead if I run engine-setup right after install I don't get this error.
But now I get
[ INFO  ] Starting engine service
[ INFO  ] Restarting httpd
[ INFO  ] Restarting nfs services
[ ERROR ] Failed to execute stage 'Closing up': No permission to read file: /etc/pki/vdsm/keys/vdsmkey.pem
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20140822110116-nwyf6c.log

and in fact, also executing from command line

[root@ovirtita setup]# vdsClient -s 0 getVdsCapabilities
Traceback (most recent call last):
  File "/usr/share/vdsm/vdsClient.py", line 2744, in <module>
    serv.do_connect(hostPort)
  File "/usr/share/vdsm/vdsClient.py", line 187, in do_connect
    self.s = vdscli.connect(hostPort, self.useSSL, self.truststore)
  File "/usr/lib64/python2.6/site-packages/vdsm/vdscli.py", line 108, in connect
    raise Exception("No permission to read file: %s" % f)
Exception: No permission to read file: /etc/pki/vdsm/keys/vdsmkey.pem

The file actually is not there, there is no problem of permissions....

[root@ovirtita setup]# ll /etc/pki/vdsm/keys/
total 4
-rw-------. 1 vdsm kvm 10 Aug 21 22:34 libvirt_password

Which part should have created the file?

After failure:
# service vdsmd status
VDS daemon is not running

no logs from vdsm (probably never started yet because of the above problem):
[root@ovirtita exported-artifacts]# ll /var/log/vdsm/
total 4
drwxr-xr-x. 2 vdsm kvm  4096 Aug 21 22:34 backup
-rw-r--r--. 1 vdsm kvm     0 Aug 22 12:18 connectivity.log
-rw-r--r--. 1 vdsm kvm     0 Aug 22 12:18 mom.log
-rw-r--r--. 1 root root    0 Aug 22 12:18 supervdsm.log
-rw-r--r--. 1 vdsm kvm     0 Aug 22 12:18 vdsm.log
[root@ovirtita exported-artifacts]# ll /var/log/vdsm/backup/
total 0

Also,
[root@ovirtita exported-artifacts]# ll /var/log/ovirt-engine/host-deploy/
total 0

my current setup of packages is:
[root@ovirtita setup]# rpm -qa|egrep "engine|vdsm|ovirt"
vdsm-python-zombiereaper-4.16.0-231.git7f489da.el6.noarch
vdsm-xmlrpc-4.16.0-231.git7f489da.el6.noarch
ovirt-engine-setup-plugin-websocket-proxy-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-host-deploy-java-1.3.0-0.0.master.20140821183616.git82dce3c.el6.noarch
ovirt-engine-setup-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-release-master-001-0.0.master.noarch
ovirt-engine-sdk-python-3.6.0.0-1.20140820.gitc625968.el6.noarch
ovirt-engine-userportal-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-engine-backend-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-host-deploy-1.3.0-0.0.master.20140821183616.git82dce3c.el6.noarch
ovirt-image-uploader-3.6.0-0.0.master.20140808125503.git066ed25.el6.noarch
ovirt-engine-lib-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-engine-extensions-api-impl-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-engine-dbscripts-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-engine-tools-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-host-deploy-offline-1.3.0-0.0.master.20140821183616.git82dce3c.el6.x86_64
ovirt-iso-uploader-3.6.0-0.0.master.20140812133505.gita6b721e.el6.noarch
vdsm-python-4.16.0-231.git7f489da.el6.noarch
ovirt-engine-setup-base-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
vdsm-yajsonrpc-4.16.0-231.git7f489da.el6.noarch
vdsm-jsonrpc-java-1.0.3-0.0.master.20140821162323.git93bec39.el6.noarch
ovirt-engine-jboss-as-7.1.1-1.el6.x86_64
ovirt-engine-restapi-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-engine-webadmin-portal-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
vdsm-jsonrpc-4.16.0-231.git7f489da.el6.noarch
ovirt-engine-setup-plugin-allinone-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-engine-setup-plugin-ovirt-engine-common-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-engine-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-engine-extensions-api-impl-javadoc-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
vdsm-cli-4.16.0-231.git7f489da.el6.noarch
ovirt-engine-websocket-proxy-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
ovirt-engine-cli-3.6.0.0-1.20140820.gite160c94.el6.noarch
ovirt-engine-setup-plugin-ovirt-engine-3.6.0-0.0.master.20140816103500.gitb920a2d.el6.noarch
vdsm-4.16.0-231.git7f489da.el6.x86_64


Gianluca