Bug 1136530 - system-profile-transition rpm should have no dist tag
Summary: system-profile-transition rpm should have no dist tag
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Transitions
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Tomas Lestach
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks: stargate-GA-tracker
TreeView+ depends on / blocked
 
Reported: 2014-09-02 18:56 UTC by Lukas Pramuk
Modified: 2017-02-23 21:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-01 12:27:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.