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 1136530

Summary: system-profile-transition rpm should have no dist tag
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: TransitionsAssignee: Tomas Lestach <tlestach>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Pramuk <lpramuk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: cperry, ggainey, mkollar
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-01 12:27:26 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: 1125243    

Description Lukas Pramuk 2014-09-02 18:56:36 UTC
Description of problem:
system-profile-transition rpm should have no dist tag. hammer import content-host command shows build instruction how to create on Sat6 an rpm for systems transition. Built rpm "system-profile-transition-*.rpm" has dist tag!
Just imagine situation Sat6 is on RHEL7 machine, therefore rpm will have dist tag "el7" according building OS. This rpm is going to be installed on Sat5 clients, which have various OSes.

Version-Release number of selected component (if applicable):
rubygem-hammer_cli_import-0.10.2-1.1.el6sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. @sat6 obtain wrong build instruction:
# hammer import content-host --csv-file=/tmp/export/system-profiles.csv --export-directory=/root/content-hosts

2. @sat6 build the rpm:
# rpmbuild -ba --define "_topdir /root/content-hosts" /root/content-hosts/SPECS/system-profile-transition-*.spec

3. @sat6 built rpm has dist tag:
# ls /root/content-hosts/RPMS/noarch/
system-profile-transition-<fqdn>-1409658421-0.0.1-1.el7.noarch.rpm

Actual results:
built rpm has dist tag

Expected results:
built rpm should have no dist tag

Comment 1 Grant Gainey 2014-09-02 19:01:40 UTC
Needs to be fixed for GA

Comment 2 RHEL Program Management 2014-09-02 19:03:01 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 4 Grant Gainey 2014-09-02 19:07:48 UTC
Note: system-profile-transition RPM doesn't go on client, it goes onto the Sat5 machine.  But the RHEL7-Sat6/RHEL6-Sat5 scenario is the most likely one.

Comment 6 Tomas Lestach 2014-09-03 09:04:52 UTC
hammer-cli-import.git: 861f44cb8c37e90bbf10c9b6e271b93b5c8c2f63

Comment 8 Lukas Pramuk 2014-09-07 20:03:08 UTC
VERIFIED. rubygem-hammer_cli_import-0.10.4-1.1.el6sat.noarch

@SAT6:
1) Run import of content hosts:
# hammer import content-host --csv-file /tmp/exports/system-profiles.csv --export-directory /root/content-hosts
...
To build the system-profile-transition rpm, run:

	cd /root/content-hosts/SPECS && 
	  rpmbuild -ba --define "_topdir /root/content-hosts" system-profile-transition-<SAT6_FQDN>-1410118621-0.0.1.spec

Then find your system-profile-transition-<SAT6_FQDN>-1410118621 package
	in /root/content-hosts/RPMS/noarch/ directory.
Summary
  Created 59 systems.

2) Follow provided hints to build the system profile transition rpm:
# cd /root/content-hosts/SPECS && rpmbuild -ba --define "_topdir /root/content-hosts" <SAT6_FQDN>-1410118621-0.0.1.spec

3) Look for the built rpm:
# ls /root/content-hosts/RPMS/noarch/
system-profile-transition-<SAT6_FQDN>-1410118621-0.0.1-1.noarch.rpm

>>> the system profile transition rpm has no dist tag <<<

@SAT5:
You can install the system profile transition rpm (SAT5 OS can differ from SAT6 OS)

Comment 9 Grant Gainey 2014-10-01 12:27:26 UTC
Released as part of Sat 6.0 GA