Description of problem: We created tailoring file/policy/scap content including location and organization parameter and tried to see info using hammer CLI of created tailoring file/policy/scap content. But location and organization info found blank. Version-Release number of selected component (if applicable): sat 6.3 snap 21 How reproducible: always Steps to Reproduce: 1. hammer> tailoring-file create --name rhel_1 --scap-file ssg-rhel7-ds-tailoring1.xml --original-filename rhel7_tailoring_file --location-ids 2 --organization-ids 1 Tailoring file successfully created 2. hammer> tailoring-file list ---|----------------- ID | NAME ---|----------------- 1 | tailoring1_rhel7 2 | rhel_1 ---|----------------- 3. hammer> tailoring-file info --id 2 Id: 2 Name: rhel_1 Created at: 2017-10-23 05:38:28 UTC Original filename: rhel7_tailoring_file Tailoring file profiles: 1) Id: 31 Profile id: xccdf_org.ssgproject.content_profile_common_customized_tailoring1 Title: Common Profile for General-Purpose Systems [CUSTOMIZED1] Locations: Organizations: Same behaviour for policy and scap content. Actual results: Locations and organizations parameters was blank. Expected results: Locations and organizations info should display. Additional info:
Created redmine issue http://projects.theforeman.org/issues/21509 from this bug
Upstream bug assigned to oprazak
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21509 has been resolved.
VERIFIED Version Tested: Satellite-6.3 Snap 27 steps: 1. hammer> tailoring-file create --name rhel_2 --scap-file /tmp/ssg-rhel7-ds-tailoring2.xml --original-filename rhel7_tailoring_file --location-ids 2 --organization-ids 1 Tailoring file successfully created 2. hammer> tailoring-file info --id 8 Id: 8 Name: rhel_2 Created at: 2017-12-07 08:05:02 UTC Original filename: rhel7_tailoring_file Tailoring file profiles: 1) Id: 180 Profile id: xccdf_org.ssgproject.content_profile_common_customized_tailoring1 Title: Common Profile for General-Purpose Systems [CUSTOMIZED1] 2) Id: 181 Profile id: xccdf_org.ssgproject.content_profile_common_customized_tailoring2 Title: Common Profile for General-Purpose Systems [CUSTOMIZED2] Locations: Default Location Organizations: Default Organization 3. hammer> policy info --id 1 Id: 1 Name: RHEL 7 policy Created at: 2017-12-02 07:18:50 UTC Period: weekly Weekday: monday Day of month: Cron line: SCAP content Id: 4 SCAP Content profile Id: 23 Tailoring file Id: 1 Tailoring file profile Id: 30 Locations: Default Location Organizations: Default Organization Hostgroups: RHEL 7 Server 64-bit HG 4. hammer> scap-content info --id 2 Id: 2 Title: Red Hat jre default content Created at: 2017-12-01 20:07:01 UTC Original filename: ssg-jre-ds.xml SCAP content profiles: 1) Id: 2 Profile id: xccdf_org.ssgproject.content_profile_stig-java-upstream Title: Java Runtime Environment (JRE) STIG Locations: Default Location Organizations: Default Organization Found location and organization info displayed for policy/tailoring file/scap-content.
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-2018:0336