Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1168061

Summary: Moving Satellite from one OS to another OS causes operatingsystem < 0
Product: Red Hat Satellite Reporter: David Joo <djoo>
Component: WebUIAssignee: Tomer Brisker <tbrisker>
WebUI sub component: Foreman QA Contact: Og Maciel <omaciel>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: dcleal, omaciel, sthirugn, tbrisker
Version: UnspecifiedKeywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 05:19:59 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: 1128069, 1201213    
Bug Blocks:    
Attachments:
Description Flags
Screenshot none

Description David Joo 2014-11-26 01:29:41 UTC
Created attachment 961439 [details]
Screenshot

Description of problem:
When you move the satellite host, that gets automatically registered to Satellite 6, to another Operating System, this will cause host count in Operating System to go < 0.


Version-Release number of selected component (if applicable):
Satellite 6.0.6
foreman-1.6.0.49-1.el6sat.noarch
katello-1.5.0-30.el6sat.noarch


How reproducible:
Every time


Steps to Reproduce:
1. Install Satellite 6, and upgrade to latest and greatest
2. Wait until the Host that runs satellite 6 registers itself to the Satellite
3. Move the Satellite from one OS to another using "All Host" - > "Choose Satellite 6 host" -> "Manage Host" -> "Operating System" -> Change to whatever you want.

Actual results:

This will cause -1 on the automatically registered OS, then put +2 on OS that you moved Satellite to.


Expected results:
-1 on the automatically registered OS, then put +1 on OS that you moved the satellite to.


Additional info:

Comment 1 RHEL Program Management 2014-11-26 01:33:37 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.

Comment 6 Og Maciel 2015-05-21 21:13:59 UTC
Ok, so here's how I verified this BZ:

* I had a Satellite 6.1 system installed on RHEL 6.6
* I synchronized Red Hat content for RHEL 6Server and 7Server
* Created content views for each OS version, added corresponding repositories, published and promoted to Library+1 lifecycle environment
* Created activation keys for each content view
* I manually registered and subscribed my satellite using the activation key for RHEL 6Server content
* I then used the web UI to select the satellite system from the Hosts > All hosts menu
* Clicked the Edit button
* Clicked the Manage button
* Selected RHEL 7.1 as my OS (and other attributes related to the OS, such as Media, etc)
* Saved

I then browsed the Operating Systems page and saw that the number of hosts listed under RHEL 7.1 had gone up by +1 and the by -1 for RHEL 6.6

Comment 7 Bryan Kearney 2015-08-11 13:37:15 UTC
This bug is slated to be released with Satellite 6.1.

Comment 8 errata-xmlrpc 2015-08-12 05:19:59 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/RHSA-2015:1592