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
Needs to be fixed for GA
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.
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.
hammer-cli-import.git: 861f44cb8c37e90bbf10c9b6e271b93b5c8c2f63
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)
Released as part of Sat 6.0 GA