Bug 1006730

Summary: "unhandled internal exception: Invalid type [normal] specified." when using client.configchannel.create() API
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: APIAssignee: Tomas Lestach <tlestach>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 560   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-09 09:12:19 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:
Bug Depends On:    
Bug Blocks: 462714    

Description Jan Hutař 2013-09-11 08:04:33 UTC
Description of problem:
Getting "unhandled internal exception: Invalid type [normal] specified." when using client.configchannel.create() API


Version-Release number of selected component (if applicable):
spacewalk-java-2.0.2-34.el5sat


How reproducible:
once out of many


Steps to Reproduce:
I do not have a way how to reproduce, but seen this when calling client.configchannel.create() API call


Actual results:
xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: Invalid type [normal] specified. Make sure you specify one of the following types in your expression [central, central, global, local, local_override, local, local, local_override, sandbox, server_import, server_import]'>


Expected results:
Should work

Comment 3 Tomas Lestach 2013-09-11 09:05:14 UTC
Well, one thing is I have no idea, how you managed to reproduce it.

Second thing is the error message you're getting. Because if I simulate a non-existing config channel type, I'm getting:
xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: Invalid type [normalp] specified. Make sure you specify one of the following types in your expression [central, global, local, local_override, normal, sandbox, server_import]'>

Note the difference in supported types.
- you have duplicates there: central, local (3 times), local_override, server_import
- and you miss : normal
(what does not correspond with the source code at all)

Note: I checked the affected machined and the content of the rhnConfigChannelType looks good:
# echo "select id, label from rhnConfigChannelType" | spacewalk-sql -i
 id |     label      
----+----------------
  1 | normal
  2 | local_override
  3 | server_import
(3 rows)

Comment 5 Tomas Lestach 2018-04-09 09:12:19 UTC
We have re-reviewed this bug, as part of an ongoing effort to improve Satellite/Proxy feature and bug updates, review and backlog.

This is a low priority bug and has no currently open customer cases. While this bug may still valid, we do not see it being implemented prior to the EOL of the Satellite 5.x product. As such, this is being CLOSED DEFERRED. 

Closing now to help set customer expectations as early as possible. You are welcome to re-open this bug if needed.