Bug 1006730 - "unhandled internal exception: Invalid type [normal] specified." when using client.configchannel.create() API
"unhandled internal exception: Invalid type [normal] specified." when using c...
Status: NEW
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API (Show other bugs)
560
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Tomas Lestach
Red Hat Satellite QA List
:
Depends On:
Blocks: 462714
  Show dependency treegraph
 
Reported: 2013-09-11 04:04 EDT by Jan Hutař
Modified: 2015-08-10 15:45 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jan Hutař 2013-09-11 04:04:33 EDT
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 05:05:14 EDT
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)

Note You need to log in before you can comment on or make changes to this bug.