Project

General

Profile

Actions

Bug #7322

closed

Unable to unregister with subscription-manager < 0.96 (RHEL 6.1, RHEL 5.7)

Added by Martin Bacovsky about 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Client/Agent
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1136056
Description of problem:

System is unable to unregiter via older subcription-manager (probably < 0.96)

On RHEL 5.7:
  1. subscription-manager unregister
    Traceback (most recent call last):
    File "/usr/lib64/python2.4/logging/handlers.py", line 71, in emit
    if self.shouldRollover(record):
    File "/usr/lib64/python2.4/logging/handlers.py", line 149, in shouldRollover
    msg = "%s\n" % self.format(record)
    File "/usr/lib64/python2.4/logging/__init__.py", line 617, in format
    return fmt.format(record)
    File "/usr/lib64/python2.4/logging/__init__.py", line 405, in format
    record.message = record.getMessage()
    File "/usr/lib64/python2.4/logging/__init__.py", line 272, in getMessage
    msg = str(self.msg)
    AttributeError: RemoteServerException instance has no attribute 'args'
    Remote server error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information.

On RHEL 6.1 the output was different, but the issue on the server was the same.

In server production.log

Error occurred while parsing request parameters.
Contents:

NoMethodError (undefined method `each' for nil:NilClass):
lib/middleware/catch_json_parse_errors.rb:9:in `call'

From the investigation it seems that rhsm sends some whitespaces instead of empty body which causes parsing error.

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

Satellite 6 6.0.4
Client: RHEL 5.7
subscription-manager-0.95.5.21-1.el5

How reproducible:
Always

Steps to Reproduce:
1. cold install 5.7 or 6.1
2. install bootstrap RPM from satellite server (http://sat6.example.com/pub/katello-ca-consumer-sat6.example.com-1.0-1.noarch.rpm)
3. subscription-manager register
4. subscription-manager unregister

Actual results:
Traceback (see above)

Expected results:
Information that the system was unregistered

Additional info:

Actions #1

Updated by Martin Bacovsky about 10 years ago

  • Category set to 125
  • Target version set to 55
Actions #2

Updated by The Foreman Bot about 10 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/4632 added
  • Pull request deleted ()
Actions #3

Updated by Eric Helms about 10 years ago

  • Triaged changed from No to Yes
Actions #4

Updated by Eric Helms about 10 years ago

  • Target version changed from 55 to 56
Actions #5

Updated by Anonymous about 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Eric Helms about 10 years ago

  • Translation missing: en.field_release set to 14
Actions

Also available in: Atom PDF