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.

Bug 1379006

Summary: API post to provisioning_templates give a 505 Internal Server Error is the wrong template_kind_type is provided
Product: Red Hat Satellite Reporter: Rick Dixon <rdixon>
Component: ProvisioningAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.2CC: andrew.schofield, bbuckingham, jcallaha, kabbott, mhulan
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 2 Marek Hulan 2016-10-06 06:34:49 UTC
Created redmine issue http://projects.theforeman.org/issues/16813 from this bug

Comment 3 Marek Hulan 2016-10-06 06:39:47 UTC
This needs patches from both linked redmine issues 13704 and 16813

Comment 4 Bryan Kearney 2016-10-06 08:08:12 UTC
Upstream bug assigned to mhulan

Comment 5 Bryan Kearney 2016-10-06 08:08:16 UTC
Upstream bug assigned to mhulan

Comment 6 Bryan Kearney 2016-10-07 12:08:13 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16813 has been resolved.

Comment 7 Stanislav Tkachenko 2017-01-24 15:58:44 UTC
Verified on Satellite 6.3 Snap 8.0 / Foreman 1.13.2.2-1

> 2017-01-24 17:56:33 - nailgun.client - DEBUG - Making HTTP POST request to https://sat6.com/api/v2/provisioning_templates with options {'verify': False, 'auth': ('admin', 'changeme'), 'headers': {'content-type': 'application/json'}} and data {"provisioning_template": {"template_kind_name": "QLvGEXWyaG", "snippet": false, "template_kind_id": 1, "template": "\ud85f\udf0c\uac67\ub6d6\ud867\udfed\ud840\ude71\ud855\udf53\u1152\uff22\ud840\udc85\u659e\ud128\ud868\udff0\ud862\ude1f\ud84b\udfe3\ud847\udff5\ud855\udd35\ud843\ude35\ud85d\udcb2\ud85f\udf72\ud845\udfe5\ud842\udc20\u7554\ud866\uddc8", "name": "DzsDgbGsjrfo"}}.

> 2017-01-24 17:56:34 - nailgun.client - WARNING - Received HTTP 404 response: {"message":"Could not find template_kind with name: QLvGEXWyaG"}

Comment 8 Satellite Program 2018-02-21 16:54:17 UTC
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