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 753220 - Error when attempting to unregister a system using CLI
Summary: Error when attempting to unregister a system using CLI
Keywords:
Status: CLOSED DUPLICATE of bug 737591
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On: 753217
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-11-11 16:15 UTC by Steve Reichard
Modified: 2013-08-16 18:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-13 10:11:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tar'd candlepin and katello logs (190.80 KB, application/x-compressed-tar)
2011-11-11 16:15 UTC, Steve Reichard
no flags Details

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


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