Project

General

Profile

Actions

Bug #36094

closed

Using pulp with S3-storage throws exception on smartproxy overview-page

Added by Markus Bucher over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Tooling
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

If pulpcore is configured to use S3 storage backend, the pulp-API does not give information about storage-health:

irb(main):007:0> SmartProxy.first.ping_pulp3["storage"]
=> nil

The section on the Smart-Proxy overview-page therefore throws an unhandled exception: Oops, we're sorry but something went wrong undefined method `[]' for nil:NilClass

2023-02-14T14:19:44 [I|app|574ba35f] Processing by SmartProxiesController#pulp_storage as HTML
2023-02-14T14:19:44 [I|app|574ba35f]   Parameters: {"id"=>"1-or2-orcharhino-atix-training-de"}
2023-02-14T14:19:44 [W|app|574ba35f] undefined method `[]' for nil:NilClass
2023-02-14T14:19:44 [I|app|574ba35f] Backtrace for 'undefined method `[]' for nil:NilClass' error (NoMethodError): undefined method `[]' for nil:NilClass
 574ba35f | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.3.1/app/models/katello/concerns/smart_proxy_extensions.rb:222:in `pulp_disk_usage'
 574ba35f | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.3.1/app/controllers/katello/concerns/smart_proxies_controller_extensions.rb:29:in `pulp_storage'
 574ba35f | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
 574ba35f | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.7/lib/abstract_controller/base.rb:195:in `process_action'
 574ba35f | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.7/lib/action_controller/metal/rendering.rb:30:in `process_action'
 574ba35f | /opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.7/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
...

Related issues 1 (1 open0 closed)

Related to Katello - Tracker #36121: Support S3 cloud storage backendNew

Actions
Actions #1

Updated by Ian Ballou over 1 year ago

  • Status changed from New to Need more information

Markus, Foreman and Katello don't officially support the S3 backend yet. In fact, we haven't started planning our support for it. I'm guessing that other issues will pop up, so what do you think about making a main S3 backend support RFE tracker and attaching this to it?

Actions #2

Updated by Markus Bucher over 1 year ago

Actions #3

Updated by The Foreman Bot over 1 year ago

  • Status changed from Need more information to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10455 added
Actions #4

Updated by Quinn James over 1 year ago

  • Category set to Tooling
  • Target version set to Katello 4.9.0
  • Triaged changed from No to Yes
Actions #5

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.9.0 added
Actions #6

Updated by Markus Bucher over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF