Actions
Bug #36094
closedUsing pulp with S3-storage throws exception on smartproxy overview-page
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' ...
Actions