Project

General

Profile

Actions

Bug #11784

closed

Hammer content-view remove-version does not work

Added by Greg Koch over 8 years ago. Updated almost 4 years ago.

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

Description

Trying to remove a content-view version by version number fails with error message "content_view_version found more than once"

hammer content-view remove-version --name <content-view-name>  --organization-id 1 --content-view-version <version-number>

Attempting to use Version IDs appears to work, returning with message "The component version has been removed" and creating a task to update the content view (Actions::Katello::ContentView::Update). The task completes without error, but the version still appears in the Katello UI and when using Hammer content-view info

hammer content-view remove-version --name <content-view-name>  --organization-id 1 --content-view-version-id <version-id>

Task raw input:

{"content_view"=>{"id"=>104, "name"=>"xxxxx-cv", "label"=>"xxxxx-cv"},
 "organization"=>{"id"=>1, "name"=>"xxxxxxxx", "label"=>"xxxxxxxx"},
 "locale"=>"en"}

We are using Katello 2.3

Actions #1

Updated by Rimma Ashkinadze over 8 years ago

This appears to be the same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1221122, but the content views are never deleted. It is not just asynchronous.

Actions #2

Updated by Eric Helms over 8 years ago

  • translation missing: en.field_release set to 70
  • Triaged changed from No to Yes
Actions #3

Updated by Eric Helms over 8 years ago

  • translation missing: en.field_release changed from 70 to 86
Actions #4

Updated by Christine Fouant almost 8 years ago

  • Bugzilla link set to 1320146
Actions #5

Updated by Greg Koch almost 8 years ago

This works for us with different command options:

hammer content-view remove --name content-view-name --organization-id 1 --content-view-version-ids 1234

Actions #6

Updated by Christine Fouant almost 8 years ago

in Hammer, 'content-view remove-version' is used to remove a specific content-view component of a composite content view, not to remove versions of a content view from the content view. You would remove a specific version of a content-view using 'content-view remove'.

Actions #7

Updated by Christine Fouant almost 8 years ago

  • Status changed from New to Rejected
  • translation missing: en.field_release changed from 86 to 114
Actions #8

Updated by Jonathon Turel almost 4 years ago

  • Target version changed from Katello Backlog to Katello Recycle Bin
Actions

Also available in: Atom PDF