Project

General

Profile

Actions

Bug #14280

closed

Satellite fails to propagate incremental updates to Composite Content views

Added by Brad Buckingham about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1288148
Description of problem:

Customer is using the API to update puppet modules within a content view.

When attempting to update a composite content view with "propagate_all_composites":true set the API throws the error

{"displayMessage":"undefined local variable or method `version' for #<Katello::Api::V2::ContentViewVersionsController:0x0000000f0097b8>","errors":["undefined local variable or method `version' for #<Katello::Api::V2::ContentViewVersionsController:0x0000000f0097b8>"]}[root@nyclxrndsat6 tmp]#

Version-Release number of selected component (if applicable):

6.1.4

How reproducible:

100%

Steps to Reproduce:
1. Using curl, fire an update request at the API

curl -k -H "Content-Type: application/json" -X POST -d '{"description":"Testing incrementel update", "add_content":{"puppet_module_ids":["ae9a384e-e17b-458b-ac54-9868eee69d7a"]}, "propagate_all_composites":true, "content_view_version_environments":[{"environment_ids":["2","3","4"],"content_view_version_id":70}]}' -u 'admin:password' https://satellite.example.com/katello/api/content_view_versions/incremental_update

Actual results:

For a simple content view this work.
For a composite content view this throws the error

{"displayMessage":"undefined local variable or method `version' for #<Katello::Api::V2::ContentViewVersionsController:0x0000000f0097b8>","errors":["undefined local variable or method `version' for #<Katello::Api::V2::ContentViewVersionsController:0x0000000f0097b8>"]}[root@nyclxrndsat6 tmp]#

Expected results:

CCV is updated with the new puppet module.

Additional info:

Actions #1

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Brad Buckingham
  • Pull request https://github.com/Katello/katello/pull/5900 added
Actions #2

Updated by Brad Buckingham about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Eric Helms about 8 years ago

  • translation missing: en.field_release set to 86
Actions

Also available in: Atom PDF