Bug 1440217 - openstack minor update - list_updates=$(yum list updates) never returns empty string
Summary: openstack minor update - list_updates=$(yum list updates) never returns empty...
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
Target Milestone: z3
: 10.0 (Newton)
Assignee: Alex Schultz
QA Contact: Yurii Prokulevych
Depends On: 1439952 1440213
TreeView+ depends on / blocked
Reported: 2017-04-07 15:13 UTC by Alex Schultz
Modified: 2020-05-14 16:00 UTC (History)
8 users (show)

Fixed In Version: openstack-tripleo-heat-templates-5.2.0-18.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1440213
Last Closed: 2017-06-28 14:48:28 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Launchpad 1680634 0 None None None 2017-04-07 15:13:51 UTC
OpenStack gerrit 456359 0 None None None 2017-04-12 19:02:13 UTC
Red Hat Product Errata RHBA-2017:1585 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 10 director Bug Fix Advisory 2017-06-28 18:42:51 UTC

Description Alex Schultz 2017-04-07 15:13:52 UTC
Cloned for OSP10

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

Description of problem:
openstack minor update - list_updates=$(yum list updates) never returns empty string

list_updates=$(yum list updates)

if [[ "$list_updates" == "" ]]; then
    echo "No packages require updating"
    exit 0

The if condition never fulfills!

This can be easily tested:
[root@undercloud-4 ~]# list_updates=$(yum list updates)
[root@undercloud-4 ~]# echo $list_updates
Loaded plugins: search-disabled-repos

Expected results:
This should be `yum -q list updates`, and the if condition will be reached

Additional info:

Comment 4 Yurii Prokulevych 2017-06-26 15:04:47 UTC
Verified with openstack-tripleo-heat-templates-5.2.0-20.el7ost.noarch

Comment 6 errata-xmlrpc 2017-06-28 14:48:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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


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