Bug 1381419 - Events tab in UI displays updates available as "UNKNOWN" when there are no updates present for the node.
Summary: Events tab in UI displays updates available as "UNKNOWN" when there are no up...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.0.4.4
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.1.0-alpha
: 4.1.0
Assignee: Moti Asayag
QA Contact: Jiri Belka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-04 04:40 UTC by RamaKasturi
Modified: 2017-02-01 14:33 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-01 14:33:37 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: planning_ack+
masayag: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 67080 0 master MERGED engine: Report upgrade packages list only when relevant 2020-06-25 08:02:21 UTC
oVirt gerrit 67408 0 ovirt-engine-4.0 MERGED engine: Report upgrade packages list only when relevant 2020-06-25 08:02:21 UTC

Description RamaKasturi 2016-10-04 04:40:02 UTC
Description of problem:
When there are no updates available for RHV-H nodes i see that events tab display the message as "Host <host_name> has available updates: <UNKNOWN>".

Version-Release number of selected component (if applicable):
ovirt-engine-4.0.4.4-0.1.el7ev.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install RHV-H node.
2. Add it to the cluster.
3.

Actual results:
When there are no updates present, events tab displays a message "Host <host_name> updates available are "UNKNOWN".

Expected results:
When there are no updates present, events tab should just display a message "Host <host_name> updates available are NONE.

Additional info:

Comment 1 Fabian Deutsch 2016-10-04 08:19:17 UTC
That the suggestion to update is shown is probably caused by bug 1364040.

But this bug is about the "<UNKNOWN>" string, which shoul dnot be shown but rather the nam eof the to be updated package.

Comment 2 Moti Asayag 2016-10-10 07:16:27 UTC
The described bug indicates that ovirt-host-deploy has detected an update available, but the package name is reported as an empty string.

The event logging mechanism replaces the empty string with the <UNKNOWN> string.

I assume that the mentioned host is the NGN, therefore could you provide the following information:

1. /var/log/ovirt-engine/engine.log
2. The relevant file named: /var/log/ovirt-engine/host-deploy/ovirt-host-mgmt*
3. The output of 'dnf check update ovirt-node-ng-image-update' as executed on the node.

Comment 3 RamaKasturi 2016-10-20 09:57:33 UTC
Hi,

  I have put /var/log/ovirt-engine/engine.log, /var/log/ovirt-engine/host-deploy/ovirt-host-mgmt* in the link below.

http://rhsqe-repo.lab.eng.blr.redhat.com/sosreports/HC/1381419/

output of yum check update ovirt-node-ng-image-update:
============================================================

[root@rhsqa-grafton1 ~]# yum check update ovirt-node-ng-image-update
Loaded plugins: imgbased-warning, product-id, search-disabled-repos, subscription-manager
Warning: yum operations are not persisted across upgrades!
check ['update', 'ovirt-node-ng-image-update']

Comment 4 Sandro Bonazzola 2016-12-12 13:53:14 UTC
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.

Comment 5 Jiri Belka 2017-01-27 11:41:58 UTC
not good enough with ovirt-engine-backend-4.1.0.2-0.2.el7.noarch

when no repo has a rpm with has in rpm metadata 'provides: ovirt-node-ng-image-update' the upgradecheck fails with:

~~~
Failed to check for available updates on host dell-r210ii-03 with message 'Command returned failure code 1 during SSH session 'root.63.222''.
~~~

IMO isn't the issue here?

~~~
 Yum: queue package ovirt-node-ng-image-update for install
~~~

Wouldn't be better to get 'yum list updates' equivalent via python module and parse output? This way it won't fail with rc 1. Just guessing loudly...

2017-01-27 12:28:51 DEBUG otopi.context context._executeMethod:128 Stage packages METHOD otopi.plugins.ovirt_host_mgmt.packages.update.Plugin._packagesCheck
2017-01-27 12:28:51 DEBUG otopi.plugins.ovirt_host_mgmt.packages.update update.verbose:94 Yum: queue package ovirt-node-ng-image-update for install
2017-01-27 12:28:51 ERROR otopi.plugins.ovirt_host_mgmt.packages.update update.error:102 Yum: Cannot queue package ovirt-node-ng-image-update: Package ovirt-node-ng-image-update cannot be found
2017-01-27 12:28:51 INFO otopi.plugins.ovirt_host_mgmt.packages.update update.info:98 Yum: Performing yum transaction rollback
2017-01-27 12:28:51 DEBUG otopi.context context._executeMethod:142 method exception
Traceback (most recent call last):
  File "/tmp/ovirt-7pEBIyFC1u/pythonlib/otopi/context.py", line 132, in _executeMethod
    method['method']()
  File "/tmp/ovirt-7pEBIyFC1u/otopi-plugins/ovirt-host-mgmt/packages/update.py", line 110, in _packagesCheck
    packages=self.environment[omgmt.PackagesEnv.PACKAGES],
  File "/tmp/ovirt-7pEBIyFC1u/pythonlib/otopi/miniyum.py", line 851, in install
    **kwargs
  File "/tmp/ovirt-7pEBIyFC1u/pythonlib/otopi/miniyum.py", line 500, in _queue
    package=package,
RuntimeError: Package ovirt-node-ng-image-update cannot be found
2017-01-27 12:28:51 ERROR otopi.context context._executeMethod:151 Failed to execute stage 'Package installation': Package ovirt-node-ng-image-update cannot be found
2017-01-27 12:28:51 DEBUG otopi.transaction transaction.abort:119 aborting 'Yum Transaction'
2017-01-27 12:28:51 INFO otopi.plugins.otopi.packagers.yumpackager yumpackager.info:80 Yum Performing yum transaction rollback
Loaded plugins: product-id
2017-01-27 12:28:51 DEBUG otopi.context context.dumpEnvironment:760 ENVIRONMENT DUMP - BEGIN
2017-01-27 12:28:51 DEBUG otopi.context context.dumpEnvironment:770 ENV BASE/error=bool:'True'
2017-01-27 12:28:51 DEBUG otopi.context context.dumpEnvironment:770 ENV BASE/exceptionInfo=list:'[(<type 'exceptions.RuntimeError'>, RuntimeError('Package ovirt-node-ng-image-update cannot be found',), <traceback object at 0x1c3b1b8>)]'
2017-01-27 12:28:51 DEBUG otopi.context context.dumpEnvironment:774 ENVIRONMENT DUMP - END

Comment 6 Red Hat Bugzilla Rules Engine 2017-01-27 11:42:04 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 7 Martin Perina 2017-01-28 21:07:18 UTC
1. This bug is about displaying "<UNKNOWN>" string instead of an empty list when no package upgrades found

2. It's known limitation that list of packages which we check for upgrade have to contain only existing packages. So if you want this limitation removed, please create RFE to track that

Because of the above moving back to ON_QA

Comment 8 Jiri Belka 2017-01-30 13:16:47 UTC
ok, ovirt-engine-4.1.0.2-0.2.el7.noarch & redhat-release-virtualization-host-4.1-0.6.el7.x86_64

Check for available updates on host dell-r210ii-03 was completed successfully with message 'no updates found.'.


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