Bug 1357942 - ovirt-imagio-daemon shouldn't be enabled by default
Summary: ovirt-imagio-daemon shouldn't be enabled by default
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-distribution
Classification: oVirt
Component: ovirt-imageio-daemon
Version: 4.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.0.4
: 1.0.4
Assignee: Amit Aviram
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-19 16:06 UTC by Sandro Bonazzola
Modified: 2016-09-26 12:37 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-09-26 12:37:51 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.0.z+
rule-engine: exception+
rule-engine: planning_ack+
amureini: devel_ack+
acanan: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 61236 0 None MERGED service: Only start the daemon if the vdsm cert exists 2020-07-01 16:37:35 UTC

Description Sandro Bonazzola 2016-07-19 16:06:16 UTC
# yum install vdsm
# reboot

After reboot:
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: Traceback (most recent call last):
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: File "/usr/bin/ovirt-imageio-daemon", line 14, in <module>
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: server.main(sys.argv)
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: File "/usr/lib/python2.7/site-packages/ovirt_imageio_daemon/server.py", line 48, in main
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: start(config)
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: File "/usr/lib/python2.7/site-packages/ovirt_imageio_daemon/server.py", line 68, in start
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: secure_server(config, image_server)
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: File "/usr/lib/python2.7/site-packages/ovirt_imageio_daemon/server.py", line 90, in secure_server
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: keyfile=config.key_file, server_side=True)
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: File "/usr/lib64/python2.7/ssl.py", line 913, in wrap_socket
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: ciphers=ciphers)
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: File "/usr/lib64/python2.7/ssl.py", line 526, in __init__
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: self._context.load_cert_chain(certfile, keyfile)
lug 19 17:48:22 minidell.home ovirt-imageio-daemon[2942]: IOError: [Errno 2] No such file or directory
lug 19 17:48:22 minidell.home systemd[1]: ovirt-imageio-daemon.service: main process exited, code=exited, status=1/FAILURE
lug 19 17:48:22 minidell.home systemd[1]: Failed to start oVirt ImageIO Daemon.
lug 19 17:48:22 minidell.home systemd[1]: Startup finished in 498ms (kernel) + 2.449s (initrd) + 38.105s (userspace) = 41.053s.
lug 19 17:48:22 minidell.home systemd[1]: Unit ovirt-imageio-daemon.service entered failed state.
lug 19 17:48:22 minidell.home systemd[1]: ovirt-imageio-daemon.service failed.
lug 19 17:48:22 minidell.home systemd[1]: ovirt-imageio-daemon.service holdoff time over, scheduling restart.
lug 19 17:48:22 minidell.home systemd[1]: start request repeated too quickly for ovirt-imageio-daemon.service
lug 19 17:48:22 minidell.home systemd[1]: Failed to start oVirt ImageIO Daemon.
lug 19 17:48:22 minidell.home systemd[1]: Unit ovirt-imageio-daemon.service entered failed state.
lug 19 17:48:22 minidell.home systemd[1]: ovirt-imageio-daemon.service failed.

ovirt-imagio-daemon service should be enabled only if the host is configured.

See fedora guidelines for services that should be enabled by default: https://fedoraproject.org/wiki/Packaging:DefaultServices

Comment 1 Fabian Deutsch 2016-07-22 09:22:13 UTC
We are also seeing this on NGN on the RC builds

Comment 3 Amit Aviram 2016-08-09 07:56:58 UTC
ovirt-imageio has only a master branch as long as there are no new features, moving to MODIFIED.

Comment 4 Amit Aviram 2016-09-01 12:49:04 UTC
The RPMS of the version of imageio that contains this fix wasn't collected yet to QE repos, it will only be updated in the next build. until then, moving back to "modified".

Comment 5 Natalie Gavrielov 2016-09-18 08:32:58 UTC
Sandro / Amit,

I didn't quit get the scenario described (just a restart while installing vdsm?) and where this log from..?
can you please elaborate?

Comment 6 Amit Aviram 2016-09-18 09:36:31 UTC
Hi
You need to have a host with VDSM installed, but without it being attached to an oVirt environment (you can yum/dnf install vdsm in a fresh host, and verify that ovirt-imageio-daemon is not active)

The example that Sandro attached is allegedly in a fresh host.

Comment 7 Natalie Gavrielov 2016-09-18 11:03:41 UTC
Thanks Amit!

Verified, Versions tested:
vdsm-4.18.13-1.el7ev.x86_64
ovirt-imageio-daemon-0.4.0-0.el7ev.noarch

[root@green-vdsb ~]# service ovirt-imageio-daemon status
Redirecting to /bin/systemctl status  ovirt-imageio-daemon.service
● ovirt-imageio-daemon.service - oVirt ImageIO Daemon
   Loaded: loaded (/usr/lib/systemd/system/ovirt-imageio-daemon.service; disabled; vendor preset: disabled)
   Active: inactive (dead)


Note You need to log in before you can comment on or make changes to this bug.