Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1435988

Summary: [RFE] expose the status of service running on the host (image-io, mom, vm-console)
Product: [oVirt] ovirt-imageio Reporter: Natalie Gavrielov <ngavrilo>
Component: DaemonAssignee: Daniel Erez <derez>
Status: CLOSED WONTFIX QA Contact: Pavel Stehlik <pstehlik>
Severity: medium Docs Contact:
Priority: medium    
Version: ---CC: amureini, bugs, derez, michal.skrivanek, mperina, msivak, ngavrilo, oourfali, tnisan, ylavi
Target Milestone: ---Keywords: FutureFeature, Reopened
Target Release: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1419853 Environment:
Last Closed: 2017-06-30 12:16:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1419853    

Description Natalie Gavrielov 2017-03-26 13:23:40 UTC
Following issue #1419853:

-----------------------------------------------------------------------------
Detecting whether the daemon is running on an host (and use the host that has this running daemon to perform the upload/download) will help solving bug 1419853.
-----------------------------------------------------------------------------

+++ This bug was initially created as a clone of Bug #1419853 +++

Description of problem:
Try to upload an image using the GUI, when one of the host's ovirt-imageio-daemon is down and the other one is up - operation fails and the disk is in "paused by the system" status.

Version-Release number of selected component:

Engine:
ovirt-engine-4.1.0.3-0.1.el7.noarch
ovirt-imageio-common-1.0.0-0.el7ev.noarch
ovirt-imageio-proxy-1.0.0-0.el7ev.noarch

Hosts:
vdsm-4.19.4-21.git310b0a0.el7.centos.x86_64
ovirt-imageio-common-1.0.0-1.el7.noarch
ovirt-imageio-daemon-1.0.0-1.el7.noarch


How reproducible:
100% (2 out of 2)

Steps to Reproduce:
Have an environment with two hosts - one with ovirt-imageio-daemon running and the other daemon not.
Try to upload an image using the UI.

Actual results:
The transfer failed:
engine.log:
2017-02-07 10:34:48,307+02 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.AddImageTicketVDSCommand] (DefaultQuartzScheduler2) [edb72b48-af00-46dc-8ac9-3bb224608421] Failed in 'AddImageTicketVDS' method
2017-02-07 10:34:48,320+02 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (DefaultQuartzScheduler2) [edb72b48-af00-46dc-8ac9-3bb224608421] EVENT_ID: VDS_BROKER_COMMAND_FAILURE(10,802), Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: VDSM green-vdsb.qa.lab.tlv.redhat.com command AddImageTicketVDS failed: Cannot communicate with image daemon: 'reason=Error communicating with ovirt-imageio-daemon: [Errno 111] Connection refused'

Expected results:
For the upload to succeed - since there is another host with a daemon running. 

Additional info:
Tried to resume the upload twice, first time failed with the same error, second time succeeded - since it used the other daemon.