Bug 1342713
| Summary: | yum: duplicate empty file created without .repo extension | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Jonathan Holloway <jholloway> |
| Component: | gdeploy | Assignee: | Sachidananda Urs <surs> |
| Status: | CLOSED ERRATA | QA Contact: | Manisha Saini <msaini> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rhgs-3.1 | CC: | rcyriac, rhinduja, sasundar, smohan |
| Target Milestone: | --- | Keywords: | ZStream |
| Target Release: | RHGS 3.1.3 Async | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | gdeploy-2.0.1-1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-02-07 11:33:30 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: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1351522 | ||
|
Description
Jonathan Holloway
2016-06-04 00:44:49 UTC
I've submitted a pull request that fixes the issue. Please see: "Fixing extra empty repo file without .repo extension (BZ 1342713) #95" @ https://github.com/gluster/gdeploy/pull/95 Pre-patch result: [root@server0 yum.repos.d]# ls download* rhsqe* server1.example.com_rel-eng_RHGS_3.1-u3-RHEL-7_latest_Server-RH-Gluster-3-Server_x86_64_os server1.example.com_rel-eng_RHGS_3.1-u3-RHEL-7_latest_Server-RH-Gluster-3-Server_x86_64_os.repo server2.example.com_brew_glusterfs-3.7-latest-el7rhgs server2.example.com_brew_glusterfs-3.7-latest-el7rhgs.repo Post-patch result: [root@server0 yum.repos.d]# ls download* rhsqe* server1.example.com_rel-eng_RHGS_3.1-u3-RHEL-7_latest_Server-RH-Gluster-3-Server_x86_64_os.repo server2.exampl.com_brew_glusterfs-3.7-latest-el7rhgs.repo (In reply to Jonathan Holloway from comment #2) > I've submitted a pull request that fixes the issue. > Please see: "Fixing extra empty repo file without .repo extension (BZ > 1342713) #95" @ https://github.com/gluster/gdeploy/pull/95 > > > Pre-patch result: > [root@server0 yum.repos.d]# ls download* rhsqe* > server1.example.com_rel-eng_RHGS_3.1-u3-RHEL-7_latest_Server-RH-Gluster-3- > Server_x86_64_os > server1.example.com_rel-eng_RHGS_3.1-u3-RHEL-7_latest_Server-RH-Gluster-3- > Server_x86_64_os.repo > server2.example.com_brew_glusterfs-3.7-latest-el7rhgs > server2.example.com_brew_glusterfs-3.7-latest-el7rhgs.repo > > > Post-patch result: > [root@server0 yum.repos.d]# ls download* rhsqe* > server1.example.com_rel-eng_RHGS_3.1-u3-RHEL-7_latest_Server-RH-Gluster-3- > Server_x86_64_os.repo > server2.exampl.com_brew_glusterfs-3.7-latest-el7rhgs.repo Jonathan can you please add the condition: when: repolist is defined and repolist|length > 0 (In reply to Sachidananda Urs from comment #3) > (In reply to Jonathan Holloway from comment #2) > Jonathan can you please add the condition: > > when: repolist is defined and repolist|length > 0 Hey Sac, In the template task, I only modified the name to include "create/". It looks like the "when:" line is just cut-off in the comparison view, but it's still there in the full code. Cheers Patch merged upstream: https://github.com/gluster/gdeploy/pull/95 This also affects the HCI project where there are empty files created under /etc/yum.repos.d/ while creating a repo using gdeploy Verified this Bug on [root@dhcp37-206 yum.repos.d]# rpm -qa | grep gdeploy gdeploy-2.0.1-3.el7rhgs.noarch [root@dhcp37-206 yum.repos.d]# rpm -qa | grep ansible ansible-2.2.0-0.50.prerelease.el7.noarch glusterfs-3.8.4-5.el7rhgs.x86_64 Steps: 1.Create repo.conf with the following [hosts] dhcp37-206.lab.eng.blr.redhat.com [yum1] action=install gpgcheck=no repos=http://download-node-02.eng.bos.redhat.com/rel-eng/RHGS/3.2.0-RHEL-7/2016-11-14.1/Server-RH-Gluster-3.2-NFS/x86_64/os/ packages=glusterfs-ganesha update=yes 2.Run gdeploy -c repo.conf Only 1 .repo file is created in /etc/yum.repos.d [root@dhcp37-206 yum.repos.d]# ls download-node-02.eng.bos.redhat.com_rel-eng_RHGS_3.2.0-RHEL-7_2016-11-14.1_Server-RH-Gluster-3.2-NFS_x86_64_os.repo Hence marking this Bug as Verified 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://rhn.redhat.com/errata/RHSA-2017-0260.html |