Bug 753220

Summary: Error when attempting to unregister a system using CLI
Product: Red Hat Satellite Reporter: Steve Reichard <sreichar>
Component: Content ManagementAssignee: Ivan Necas <inecas>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: bkearney, scollier
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-13 10:11:02 UTC Type: ---
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: 753217    
Bug Blocks: 747354    
Attachments:
Description Flags
tar'd candlepin and katello logs none

Description Steve Reichard 2011-11-11 16:15:48 UTC
Created attachment 533106 [details]
tar'd candlepin and katello logs

Description of problem:

Since the manifest I have has limited subscriptions, I attempted to free up a used one. Using the GUI was not successful (BZ 753205). So I turned to the CLI and encountered an error attempting to get info on the system (753217), and the intent behind this BZ, I got an error attempting to unregister the systems :

[root@cf-se3 log]# katello --username=admin --password=admin shell
katello> system list --org=RefArch
------------------------------------------------------------------------------------------------------------------------------------
                                                  Systems List For Org [ RefArch ]

 Name                                   
------------------------------------------------------------------------------------------------------------------------------------
 dhcp-118.cloud.lab.eng.bos.redhat.com  
 dev                                    
katello> system info --org=RefArch --name=dhcp-118.cloud.lab.eng.bos.redhat.com
------------------------------------------------------------------------------------------------------------------------------------
                                               System Information For Org [ RefArch ]
------------------------------------------------------------------------------------------------------------------------------------

error: zero length field name in format (more in the log file)
katello>  system unregister --org=RefArch --name=dhcp-118.cloud.lab.eng.bos.redhat.com
{u'displayMessage': u'Runtime Error org.mozilla.javascript.UniqueTag cannot be cast to org.mozilla.javascript.Function at org.fedoraproject.candlepin.policy.js.JsRules.init:64'}
error: operation failed: {u'displayMessage': u'Runtime Error org.mozilla.javascript.UniqueTag cannot be cast to org.mozilla.javascript.Function at org.fedoraproject.candlepin.policy.js.JsRules.init:64'}
katello> exit
[root@cf-se3 log]# 


I tar'd the candlepin and katello directories in /var/log and those are attached. 

Version-Release number of selected component (if applicable):

[root@cf-se3 log]# /pub/scripts/post_install_configuration_scripts/cf-se-versions 
Red Hat Enterprise Linux Server release 6.1 (Santiago)
Linux cf-se3.cloud.lab.eng.bos.redhat.com 2.6.32-131.17.1.el6.x86_64 #1 SMP Thu Sep 29 10:24:25 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
PyYAML-3.09-14.el6_1.x86_64
package epel-release is not installed
facter-1.5.9-1.el6.noarch
js-1.70-12.el6_0.x86_64
mongodb-1.6.4-3.el6_0.x86_64
mongodb-server-1.6.4-3.el6_0.x86_64
puppet-2.6.11-1.el6_1.noarch
pymongo-1.9-8.el6_1.x86_64
katello-0.1.97-1.el6.x86_64
katello-all-0.1.97-1.el6.x86_64
katello-cli-0.1.10-1.el6.noarch
katello-configure-0.1.8-1.el6.noarch
package katello-repos is not installed
[root@cf-se3 log]# 



How reproducible:

This occurred both during the initial encounter and on a separate system when reproduced to enter this data.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ivan Necas 2012-02-13 10:11:02 UTC
Fixed in katello-cli-0.1.11-1

*** This bug has been marked as a duplicate of bug 737591 ***

Comment 2 Mike McCune 2013-08-16 18:19:38 UTC
getting rid of 6.0.0 version since that doesn't exist