Actions
Bug #20242
closedcertain subscriptions cause client cert to not be used (forbidden)
Status:
Closed
Priority:
Normal
Assignee:
Category:
Subscriptions
Target version:
Description
A user on irc reported getting forbidden when tryin to sync the cdn. Refreshing the manifest or importing it had not fixed the problem.
Upon further inspection it seemed like katello was using a nil entitlement certificate:
> Katello::Product.find(16).name "Red Hat Enterprise Linux Server" > Katello::Product.find(16).product_certificate nil
this code here:
https://github.com/Katello/katello/blob/master/app/lib/katello/resources/candlepin.rb#L675-L679
product_subscription = subscriptions.find do |sub| sub["product"]["id"] == id || sub["providedProducts"].any? { |provided| provided["id"] == id } || sub["derivedProvidedProducts"].any? { |provided| provided["id"] == id } end
was finding this product:
=> {"product"=>{"id"=>"RH00003S"}, "providedProducts"=>[{"id"=>"180"}, {"id"=>"127"}, {"id"=>"273"}, {"id"=>"274"}, {"id"=>"205"}, {"id"=>"272"}, {"id"=>"240"}, {"id"=>"93"}, {"id"=>"86"}, {"id"=>"182"}, {"id"=>"91"}, {"id"=>"317"}, {"id"=>"69"}, {"id"=>"133"}, {"id"=>"176"}, {"id"=>"201"}, {"id"=>"246"}, {"id"=>"70"}, {"id"=>"84"}, {"id"=>"271"}, {"id"=>"318"}], "derivedProvidedProducts"=>[], "certificate"=>nil}
whch corresponded with "Red Hat Enterprise Linux Server, Premium (Physical or Virtual Nodes)".
I am not sure why it has no certificate on it though.
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6859 added
Updated by Justin Sherrill over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|fe84298f403f708a255b4d85d7df414901d91fd6.
Updated by Justin Sherrill over 7 years ago
- Translation missing: en.field_release set to 267
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release changed from 267 to 281
Actions