Project

General

Profile

Bug #11784

Hammer content-view remove-version does not work

Added by Greg Koch almost 4 years ago. Updated about 1 year ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
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

History

#1 Updated by Rimma Ashkinadze almost 4 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.

#2 Updated by Eric Helms almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 70
  • Triaged changed from No to Yes

#3 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) changed from 70 to 86

#4 Updated by Christine Fouant over 3 years ago

  • Bugzilla link set to 1320146

#5 Updated by Greg Koch over 3 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

#6 Updated by Christine Fouant over 3 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'.

#7 Updated by Christine Fouant over 3 years ago

  • Status changed from New to Rejected
  • Legacy Backlogs Release (now unused) changed from 86 to 114

Also available in: Atom PDF