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.
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
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.
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)