Project

General

Profile

Actions

Bug #33654

closed

Updating CV version sometimes throws an error - This content view version doesn't have a history.

Added by Samir Jha over 2 years ago. Updated over 2 years ago.

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

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'

Actions #1

Updated by Samir Jha over 2 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.

Actions #2

Updated by Andrew Dewar over 2 years ago

  • Target version set to Katello 4.3.0
  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot over 2 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
Actions #4

Updated by The Foreman Bot over 2 years ago

  • Fixed in Releases Katello 4.4.0 added
Actions #5

Updated by Samir Jha over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF