Actions
Bug #33654
closedUpdating CV version sometimes throws an error - This content view version doesn't have a history.
Description
2021-10-07T04:54:46 [I|app|cafabd79] Processing by Katello::Api::V2::ContentViewVersionsController#update as JSON
04:54:46 rails.1 | 2021-10-07T04:54:46 [I|app|cafabd79] Parameters: {"description"=>"abcd", "api_version"=>"v2", "id"=>"41", "content_view_version"=>{}}
04:54:46 rails.1 | 2021-10-07T04:54:46 [E|app|cafabd79] Katello::HttpErrors::BadRequest: This content view version doesn't have a history.
04:54:46 rails.1 | cafabd79 | /home/vagrant/katello/app/controllers/katello/api/v2/content_view_versions_controller.rb:69:in `update'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/abstract_controller/base.rb:195:in `process_action'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/rendering.rb:30:in `process_action'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/audited-4.10.0/lib/audited/sweeper.rb:14:in `around'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:139:in `run_callbacks'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/abstract_controller/callbacks.rb:41:in `process_action'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/rescue.rb:22:in `process_action'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in `block in instrument'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in `instrument'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/actionpack-6.0.3.7/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
04:54:46 rails.1 | cafabd79 | /home/vagrant/foreman/.vendor/ruby/2.5.0/gems/activerecord-6.0.3.7/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
04:54:46 rails.1 | cafabd79 | /home/vagrant/katello/app/controllers/katello/concerns/api/api_controller.rb:50:in `process_action'
Updated by Samir Jha about 3 years ago
Happens when the CV publish task fails for some reason and the history record that is created in plan remains in status in progress cause the finalize never ran.
Updated by Andrew Dewar about 3 years ago
- Target version set to Katello 4.3.0
- Triaged changed from No to Yes
Updated by The Foreman Bot about 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Samir Jha
- Pull request https://github.com/Katello/katello/pull/9759 added
Updated by The Foreman Bot about 3 years ago
- Fixed in Releases Katello 4.4.0 added
Updated by Samir Jha about 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|edb22ae79877564ebb3f293945261432865292d7.
Actions