Bug 1368615

Summary: Upgrade-manager fails to check updates on RHGS/Gluster Node
Product: [oVirt] ovirt-engine Reporter: SATHEESARAN <sasundar>
Component: Frontend.WebAdminAssignee: Sahina Bose <sabose>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.2.7CC: bmcclain, bugs, knarra, sabose, somlo
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
rule-engine: planning_ack+
rule-engine: devel_ack+
sasundar: testing_ack+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: no gerrit references Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-10 06:30:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description SATHEESARAN 2016-08-20 02:35:54 UTC
Description of problem:
-----------------------
After adding RHGS 3.1.3 node to 3.6 cluster in RHV 4.0.2-7, there was the event mentioning that - "Failed to check for available updates on host RHGS-Node-1 with message 'Command returned failure code 1 during SSH session 'root.eng.blr.redhat.com''.

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHV 4.0.2-7

How reproducible:
-----------------
Always

Steps to Reproduce:
-------------------
1. Add RHGS/Gluster node to 3.6 cluster in RHV 4.0
2. Check for events tab for that node after sometime

Actual results:
---------------
The event - "Failed to check for available updates on host RHGS-Node-1 with message 'Command returned failure code 1 during SSH session 'root.eng.blr.redhat.com''." was seen

Expected results:
-----------------
Upgrade manager should look for updates and there shouldn't be any failure messages on RHGS/Gluster node

Comment 1 SATHEESARAN 2016-08-20 02:46:25 UTC
I see the exception in engine.log

<snip>
2016-08-19 18:37:12,281 ERROR [org.ovirt.engine.core.bll.host.HostUpgradeManager] (DefaultQuartzScheduler7) [] Failed to refresh host 'RHGS-Node-2' packages 'ovirt-imageio-daemon, ioprocess, mom, python-ioproces
s, libvirt, qemu-kvm, ovirt-vmconsole-host, qemu-img, ovirt-imageio-common, ovirt-vmconsole, vdsm-cli, sanlock, lvm2, vdsm' availability.
2016-08-19 18:37:12,281 ERROR [org.ovirt.engine.core.bll.host.HostUpgradeManager] (DefaultQuartzScheduler7) [] Exception: java.io.IOException: Command returned failure code 1 during SSH session 'root@dhcp37-162.
lab.eng.blr.redhat.com'
        at org.ovirt.engine.core.uutils.ssh.SSHClient.executeCommand(SSHClient.java:526) [uutils.jar:]
        at org.ovirt.engine.core.uutils.ssh.SSHDialog.executeCommand(SSHDialog.java:317) [uutils.jar:]
        at org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase.execute(VdsDeployBase.java:563) [bll.jar:]
        at org.ovirt.engine.core.bll.host.HostUpgradeManager.isUpdateAvailable(HostUpgradeManager.java:44) [bll.jar:]
        at org.ovirt.engine.core.bll.host.AvailableUpdatesFinder.isUpdateAvailable(AvailableUpdatesFinder.java:26) [bll.jar:]
        at org.ovirt.engine.core.bll.VdsEventListener.isUpdateAvailable(VdsEventListener.java:558) [bll.jar:]
        at org.ovirt.engine.core.vdsbroker.ResourceManager.isUpdateAvailable(ResourceManager.java:510) [vdsbroker.jar:]
        at org.ovirt.engine.core.vdsbroker.VdsManager.availableUpdates(VdsManager.java:307) [vdsbroker.jar:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_101]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_101]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_101]
        at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_101]
        at org.ovirt.engine.core.utils.timer.JobWrapper.invokeMethod(JobWrapper.java:77) [scheduler.jar:]
        at org.ovirt.engine.core.utils.timer.JobWrapper.execute(JobWrapper.java:51) [scheduler.jar:]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz.jar:]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_101]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_101]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_101]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_101]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_101]

2016-08-19 18:37:12,281 ERROR [org.ovirt.engine.core.vdsbroker.VdsManager] (DefaultQuartzScheduler7) [] Failed to check if updates are available for host 'RHGS-Node-2'
</snip>

Comment 2 Sahina Bose 2017-11-29 14:26:20 UTC
The changes in 4.2 around upgrade ensures that host is updated via ovirt-host package, and not individual packages.

Given this change, moving this to ON_QA

Comment 3 SATHEESARAN 2018-05-09 06:42:21 UTC
Tested with RHV 4.2.3

Update manager finds out when the update is available.

Events as generated when checking for update on RHGS Node:

<snip>
"Host RHGS_Node1 has available updates: tzdata, redhat-release-server, subscription-manager-rhsm-certificates, subscription-manager-rhsm, krb5-libs, subscription-manager, selinux-policy, selinux-policy-targeted."
</snip>

'redhat-release-server' update will in turn update all the gluster packages.

Comment 4 Sandro Bonazzola 2018-05-10 06:30:54 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.