Project

General

Profile

Actions

Bug #10536

closed

traceback when registering a content host

Added by Christine Fouant almost 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1136081
Description of problem:
There's a ugly traceback in /var/log/foreman/production.log when registering a content host

Version-Release number of selected component (if applicable):
Satellite-6.0.4-RHEL-6-20140829.0-Satellite-x86_64

How reproducible:
always

Steps to Reproduce:
1. Call:
$ curl -s -H "Content-Type:application/json" -H "Accept:application/json,version=2" -k -u admin:changeme -X POST -d'{"name":"mysystem", "facts":{"fact1":1}, "type":"system", "organization_id":1}' https://$(hostname)/katello/api/systems

Actual results:
1.) command output look good and it looks like the content host was created: {"id":29,"uuid":"f8967d2f-32c2-4808-9325-69e7112e24fa","name":"mysystem","description":"Initial Registration Params","location":"None","content_view":{"id":1,"name":"Default Organization View","label":"Default_Organization_View","description":null,"organization_id":1,"default":true,"created_at":"2014-09-01T10:26:12Z","updated_at":"2014-09-01T10:26:12Z","composite":null,"next_version":1,"organization":"Default_Organization","environments":["Library"],"versions":[1],"versions_details":[{"version":1,"published":"2014-09-01 10:26:12 UTC","environments":["Library"]}]},"content_view_id":1,"distribution":" ","katello_agent_installed":false,"content_overrides":[],"entitlementStatus":"valid","autoheal":true,"href":"/consumers/f8967d2f-32c2-4808-9325-69e7112e24fa","release":null,"checkin_time":null,"created":"2014-09-01T15:27:30.452+0000","installedProducts":[],"service_level":"","release_ver":null,"permissions":{"editable":true},"products":[],"host":null,"hostCollections":[],"customInfo":[],"environment":{"id":1,"name":"Library","label":"Library","description":null,"organization":{"name":"Default_Organization","label":"Default_Organization"},"created_at":"2014-09-01T10:26:11Z","updated_at":"2014-09-01T10:26:11Z","library":true,"prior":null,"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}},"activation_keys":[]}

2.) checking /var/log/foreman/production.log there's a pulp error (full traceback attached)
[ERROR 2014-09-01 11:27:31 pulp_rest #13841] RestClient.get "https://hp-sl2x170zg6-01.rhts.eng.bos.redhat.com/pulp/api/v2/consumers/f8967d2f-32c2-4808-9325-69e7112e24fa/profiles/rpm//", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Authorization"=>"OAuth oauth_consumer_key=\"katello\", oauth_nonce=\"9YRutAQTth4Sakzi4MGce9C19aHScoPtFF6xCtWFxE\", oauth_signature=\"YaczXdRkP9DHTvxADzbnr9qdzu8%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1409585251\", oauth_version=\"1.0\"", "accept"=>"application/json", "content_type"=>"application/json", "pulp-user"=>"admin-bc8ca035" | \n# => 404 NotFound | application/json 714 bytes

Expected results:
no traceback

Actions #1

Updated by The Foreman Bot almost 9 years ago

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

Updated by Christine Fouant almost 9 years ago

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

Updated by Eric Helms almost 9 years ago

  • translation missing: en.field_release set to 31
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF