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:
hammer -u admin -p changeme policy create --name='RHEL 7 policy' --organization-ids "1" --location-ids "2" --period='weekly' --weekday='monday' --scap-content-id="4" --scap-content-profile-id="24" --deploy-by puppet
Could not create the policy:
Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs.
Version-Release number of selected component (if applicable):
Satellite 6.7 snap 1
How reproducible: always
Steps to Reproduce:
[root@sgi-uv20-01 ~]# hammer scap-content info --id 4
Id: 4
Title: Red Hat rhel7 default content
Created at: 2019-11-08 20:24:24 UTC
Original filename: ssg-rhel7-ds.xml
SCAP content profiles:
Id: 16
Profile id: xccdf_org.ssgproject.content_profile_stig-rhel7-disa
Title: DISA STIG for Red Hat Enterprise Linux 7
Id: 17
Profile id: xccdf_org.ssgproject.content_profile_ospp
Title: United States Government Configuration Baseline
Id: 18
Profile id: xccdf_org.ssgproject.content_profile_pci-dss
Title: PCI-DSS v3.2.1 Control Baseline for Red Hat Enterprise Linux 7
Id: 19
Profile id: xccdf_org.ssgproject.content_profile_rht-ccp
Title: Red Hat Corporate Profile for Certified Cloud Providers (RH CCP)
Id: 20
Profile id: xccdf_org.ssgproject.content_profile_C2S
Title: C2S for Red Hat Enterprise Linux 7
Id: 21
Profile id: xccdf_org.ssgproject.content_profile_ospp42
Title: OSPP - Protection Profile for General Purpose Operating Systems v. 4.2
Id: 22
Profile id: xccdf_org.ssgproject.content_profile_cjis
Title: Criminal Justice Information Services (CJIS) Security Policy
Id: 23
Profile id: xccdf_org.ssgproject.content_profile_standard
Title: Standard System Security Profile for Red Hat Enterprise Linux 7
Id: 24
Profile id: xccdf_org.ssgproject.content_profile_rhelh-vpp
Title: VPP - Protection Profile for Virtualization v. 1.0 for Red Hat Enterprise Linux Hypervisor (RHELH)
Id: 25
Profile id: xccdf_org.ssgproject.content_profile_hipaa
Title: Health Insurance Portability and Accountability Act (HIPAA)
Id: 26
Profile id: xccdf_org.ssgproject.content_profile_nist-800-171-cui
Title: Unclassified Information in Non-federal Information Systems and Organizations (NIST 800-171)
Locations:
Default Location
Organizations:
Default Organization
[root@sgi-uv20-01 ~]# hammer -u admin -p changeme policy create --name='RHEL 7 policy' --organization-ids "1" --location-ids "2" --period='weekly' --weekday='monday' --scap-content-id="4" --scap-content-profile-id="24" --deploy-by puppet
Could not create the policy:
Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs.
Actual results:
Could not create the policy:
Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs.
Expected results:
Should be created successfully.
Additional info:
Creating via UI works.
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-2020:1454
Description of problem: hammer -u admin -p changeme policy create --name='RHEL 7 policy' --organization-ids "1" --location-ids "2" --period='weekly' --weekday='monday' --scap-content-id="4" --scap-content-profile-id="24" --deploy-by puppet Could not create the policy: Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs. Version-Release number of selected component (if applicable): Satellite 6.7 snap 1 How reproducible: always Steps to Reproduce: [root@sgi-uv20-01 ~]# hammer scap-content info --id 4 Id: 4 Title: Red Hat rhel7 default content Created at: 2019-11-08 20:24:24 UTC Original filename: ssg-rhel7-ds.xml SCAP content profiles: Id: 16 Profile id: xccdf_org.ssgproject.content_profile_stig-rhel7-disa Title: DISA STIG for Red Hat Enterprise Linux 7 Id: 17 Profile id: xccdf_org.ssgproject.content_profile_ospp Title: United States Government Configuration Baseline Id: 18 Profile id: xccdf_org.ssgproject.content_profile_pci-dss Title: PCI-DSS v3.2.1 Control Baseline for Red Hat Enterprise Linux 7 Id: 19 Profile id: xccdf_org.ssgproject.content_profile_rht-ccp Title: Red Hat Corporate Profile for Certified Cloud Providers (RH CCP) Id: 20 Profile id: xccdf_org.ssgproject.content_profile_C2S Title: C2S for Red Hat Enterprise Linux 7 Id: 21 Profile id: xccdf_org.ssgproject.content_profile_ospp42 Title: OSPP - Protection Profile for General Purpose Operating Systems v. 4.2 Id: 22 Profile id: xccdf_org.ssgproject.content_profile_cjis Title: Criminal Justice Information Services (CJIS) Security Policy Id: 23 Profile id: xccdf_org.ssgproject.content_profile_standard Title: Standard System Security Profile for Red Hat Enterprise Linux 7 Id: 24 Profile id: xccdf_org.ssgproject.content_profile_rhelh-vpp Title: VPP - Protection Profile for Virtualization v. 1.0 for Red Hat Enterprise Linux Hypervisor (RHELH) Id: 25 Profile id: xccdf_org.ssgproject.content_profile_hipaa Title: Health Insurance Portability and Accountability Act (HIPAA) Id: 26 Profile id: xccdf_org.ssgproject.content_profile_nist-800-171-cui Title: Unclassified Information in Non-federal Information Systems and Organizations (NIST 800-171) Locations: Default Location Organizations: Default Organization [root@sgi-uv20-01 ~]# hammer -u admin -p changeme policy create --name='RHEL 7 policy' --organization-ids "1" --location-ids "2" --period='weekly' --weekday='monday' --scap-content-id="4" --scap-content-profile-id="24" --deploy-by puppet Could not create the policy: Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs. Actual results: Could not create the policy: Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs. Expected results: Should be created successfully. Additional info: Creating via UI works.