Bug 1369595

Summary: 'Platform Updates Available' is always set to 'Yes' in the CFME Red Hat Updates table
Product: Red Hat CloudForms Management Engine Reporter: Jerome Marc <jmarc>
Component: ApplianceAssignee: Šimon Lukašík <slukasik>
Status: CLOSED CANTFIX QA Contact: Jan Krocil <jkrocil>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: abellott, cpelland, gtanzill, hkataria, jhardy, jmarc, mpovolny, obarenbo, slukasik
Target Milestone: GAKeywords: ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: updates:ui
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1371190 (view as bug list) Environment:
Last Closed: 2017-03-09 12:44:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1371190    
Attachments:
Description Flags
Screenshot showing CloudForms appliance update list none

Description Jerome Marc 2016-08-23 21:48:03 UTC
Description of problem:
The column 'Platform Updates Available' is always displaying 'Yes' in the CFME Appliance Update screen.

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


How reproducible:
Always

Steps to Reproduce:
1. Ensure your appliance is up-to-date with latest packages applied
2. Select all servers, click 'Check for Update' and 'Refresh List'

Actual results:
'Platform Updates Available' always displays 'Yes'

Expected results:
'Platform Updates Available' should displays 'No' as there is no update available

Additional info:

Comment 2 Šimon Lukašík 2016-08-29 07:57:41 UTC
Hello Jerome, thanks for bug report.

What exact steps are meant by:

  1. Ensure your appliance is up-to-date with latest packages applied

Did you try to run `yum update` locally from the command-line or did you clicked on the 'Apply CFME Update` button in the Configuration Tab?

Comment 4 Jerome Marc 2016-08-31 18:02:15 UTC
Created attachment 1196482 [details]
Screenshot showing CloudForms appliance update list

See sceenshot attached, the appliances are updated from the command line (yum update) to the latest but the list still shows 'Yes' under 'Platforms Update'. What is the logic/command behind this row in the list?

Comment 5 Jan Krocil 2016-09-13 06:02:25 UTC
Hey Jerome, Simon,
I just tested this scenario with 5.6.1.2 and was not able to reproduce the issue.

Jerome,
the UI is updated based on "yum check-update" exit code.

Run "yum update -y" in your terminal, then "yum check-update && echo $?" to check that the exit code was 0.
If you go to the UI afterwards, select the very same appliance where you ran those commands and click "Check for Updates", the "Platform Updates Available" should absolutely positively say "No". Can you confirm? If you still see this issue, we need to investigate further. Otherwise, please close this ticket.

Thanks in advance,
Jan

Comment 6 Jerome Marc 2016-09-15 18:44:28 UTC
Hi Jan,

Thanks for the troubleshooting steps. It appears that the 'yum check-update' fails on the appliances with the following error:

failure: repodata/repomd.xml from rhel-7-server-tus-rpms: [Errno 256] No more mirrors to try.
https://cdn.redhat.com/content/tus/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

Comment 7 Jan Krocil 2016-09-15 19:15:34 UTC
Hi Jerome,
you need to disable the repository that is not available and it should work then.

Comment 8 Jerome Marc 2016-09-22 00:14:58 UTC
I was able to run a 'yum update' successfully after removing the repository on the appliance with:

# yum-config-manager --disable rhel-7-server-tus-rpms

Comment 9 Jerome Marc 2016-09-22 15:23:55 UTC
The UI now behaves as expected and the column 'Platform Updates Available' displays the correct value.

I would like to know the cause of having to disable rhel-7-server-tus-rpms as this step involved going to all appliances manually (SSH connection) and running the command as root.

Will other customers experience the same issue? i haven't found any article on Red Hat Customer Portal for the CloudForms appliance.