Project

General

Profile

Actions

Bug #29948

closed

Unable to re-import subscriptions in large environment (60k+ content hosts)

Added by Jonathon Turel almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Subscriptions
Target version:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1840784

A scenario occurred where we had to re-import subscriptions from Candlepin to Katello in a large customer environment but hit a scaling error:

User.current = User.anonymous_admin
m = Katello::Subscription
m.import_all
m = Katello::Pool
m.import_all

Traceback (most recent call last):
7: from lib/tasks/console.rake:5:in `block in <top (required)>'
6: from (irb):6
5: from katello (3.14.0.20) app/models/katello/glue/candlepin/candlepin_object.rb:40:in `import_all'
4: from katello (3.14.0.20) app/models/katello/glue/candlepin/candlepin_object.rb:44:in `block in import_all'
3: from katello (3.14.0.20) app/models/katello/glue/candlepin/candlepin_object.rb:47:in `block (2 levels) in import_all'
2: from katello (3.14.0.20) app/models/katello/glue/candlepin/pool.rb:192:in `import_managed_associations'
1: from katello (3.14.0.20) app/models/katello/glue/candlepin/pool.rb:169:in `import_hosts'
ActiveRecord::StatementInvalid (PG::ProtocolViolation: ERROR: invalid message format)
: SELECT id, host_id FROM "katello_subscription_facets" WHERE "katello_subscription_facets"."uuid" IN ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97,

Actions #1

Updated by Jonathon Turel almost 4 years ago

  • Subject changed from [6.7] Unable to re-import subscriptions in large environment (60k+ content hosts) to Unable to re-import subscriptions in large environment (60k+ content hosts)
Actions #2

Updated by Jonathon Turel almost 4 years ago

  • Assignee set to Jonathon Turel
  • Target version set to Katello 4.0.0
Actions #3

Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8732 added
Actions #4

Updated by The Foreman Bot almost 4 years ago

  • Fixed in Releases Katello 4.0.0 added
Actions #5

Updated by Jonathon Turel almost 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by Jonathon Turel almost 4 years ago

  • Target version changed from Katello 4.0.0 to Katello 3.16.0
Actions #7

Updated by Jonathon Turel almost 4 years ago

  • Triaged changed from No to Yes
Actions #8

Updated by The Foreman Bot over 3 years ago

  • Pull request https://github.com/Katello/katello/pull/8951 added
Actions

Also available in: Atom PDF