Bug 1730085

Summary: pre-upgrade Repos validations fail on permission error
Product: Red Hat OpenStack Reporter: Amit Ugol <augol>
Component: openstack-tripleo-validationsAssignee: Gaƫl Chamoulaud <gchamoul>
Status: CLOSED ERRATA QA Contact: Amit Ugol <augol>
Severity: medium Docs Contact:
Priority: medium    
Version: 15.0 (Stein)CC: beth.white, gchamoul, jjoyce, jrist, jschluet, mbarnett, scorcora, slinaber, tvignaud
Target Milestone: rcKeywords: Triaged
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-10.5.1-0.20190820150507.77085bb.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 11:23:52 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: 1462840    

Description Amit Ugol 2019-07-15 19:18:51 UTC
Description of problem:
"repos" validation returns failure because /var/cache/dnf/expired_repos.json can't be touched.

Version-Release number of selected component (if applicable):
openstack-tripleo-validations-10.4.1-0.20190701170405.10b4d77.el8ost.noarch

How reproducible:
100%

Steps to Reproduce:
Run the repos validation.

Actual results:
[FAILED] - repos
    Task 'repos : List repositories' failed:
    Host: compute-1
    Message: Command `yum repolist -v` exited with code: 1: non-zero return code
    stdout:
        Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, uplo
adprofile
        Not root, Subscription Management repositories not updated
        DNF version: 4.0.9
        cachedir: /var/cache/dnf
        ...
        trim
        ...
    stderr:
        [Errno 13] Permission denied: '/var/cache/dnf/expired_repos.json'
    Task 'repos : List repositories' failed:
    Host: controller-1
    Message: Command `yum repolist -v` exited with code: 1: non-zero return code

Expected results:
Test should work fully.

Comment 17 errata-xmlrpc 2019-09-21 11:23:52 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.

https://access.redhat.com/errata/RHEA-2019:2811