Bug #28262
closedInternal Server Error while creating scap policy using hammer
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1770430
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.
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@foreman ~]# 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.
Updated by Ondřej Pražák almost 5 years ago
- Related to Bug #28251: 500 Internal Server Error while uploading report from proxy to satellite added
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Pražák
- Pull request https://github.com/theforeman/foreman_openscap/pull/426 added
Updated by The Foreman Bot almost 5 years ago
- Fixed in Releases foreman_openscap 2.0.2 added
Updated by Ondřej Pražák almost 5 years ago
- Subject changed from Internal Server Error while creating scap policy using hammer to Internal Server Error while creating scap policy using hammer
- Status changed from Ready For Testing to Closed