Bug 1150434
| Summary: | Multiple Centos in Operation System | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Jakub Bittner <j.bittner> | ||||
| Component: | Content Management | Assignee: | Justin Sherrill <jsherril> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Katello QA List <katello-qa-list> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.0.4 | CC: | bkearney, chrobert, cwelton, jaudet, jmontleo, milan.zelenka, mmccune, riehecky, toracat | ||||
| Target Milestone: | Unspecified | Keywords: | Triaged | ||||
| Target Release: | Unused | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| URL: | http://projects.theforeman.org/issues/7621 | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1212645 (view as bug list) | Environment: | |||||
| Last Closed: | 2015-02-20 18:32:07 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: | 1212645 | ||||||
| Attachments: |
|
||||||
|
Description
Jakub Bittner
2014-10-08 10:04:48 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. We fond that after every sync the Centos 7 operation system is being added to Operating System (3 times). So after 2 sync of Centos Product, you will have at least 9 Centos 7 operation systems I can confirm this with Fedora 20 too. I can confirm the same behaviour. Every sync of each repository (CentOS / Fedora) will add new item into "Operating system" tab... Satellite 6.0.4 I will try it in latest Katello (2.0.0)... It looks like Katello bug #7621 here: http://projects.theforeman.org/issues/7621 Reproduced this as well in our environment. Will investigate a fix. Connecting redmine issue http://projects.theforeman.org/issues/7621 from this bug
You can clean out the duplicate CentOS operating systems via a hammer command combination. This will delete all but the 1st ID found in the database:
# hammer --output csv os list | tail -n +2 | grep "CentOS 7" | sort | tail -n +2 | awk -F "," '{print $1}' | xargs -n 1 hammer os delete --id
You can change the grep "CentOS 7" to whatever dupe OS listings are showing up
An upcoming release will include the patch here:
https://github.com/Katello/katello/pull/4686.patch
which will stop the duplicates from showing up.
Moving to POST since upstream bug http://projects.theforeman.org/issues/7621 has been closed ------------- Justin Sherrill Applied in changeset commit:katello|7bf74589a76ac5d8295a0aeb2032e4c7fb5fe407. 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/RHBA-2015:0247 |