Project

General

Profile

Bug #14026

Unable to remove content-view versions using hammer

Added by Rimma Ashkinadze about 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

I have been trying to remove older content view versions using hammer (and possibly automate this), but although it returns correctly, nothing actually happens.

$ hammer content-view info --id 27
Warning: Option --id is deprecated. This option will be removed in Katello 2.5, Use --uuid
ID: 27
Name: epel-6-x86_64-cv
Label: epel-6-x86_64-cv
Composite: false
Description:
Content Host Count: 0
Organization: XXX
Yum Repositories:
1) ID: 755
Name: EPEL 6 Server x86_64
Label: 6_Server_x86_64
Docker Repositories:

Puppet Modules:

Lifecycle Environments:
1) ID: 1
Name: Library
2) ID: 4
Name: Staging
3) ID: 2
Name: Development
4) ID: 5
Name: Production
5) ID: 3
Name: QA
Versions:
1) ID: 871
Version: 9.1
Published: 2015/10/20 17:38:58
2) ID: 847
Version: 9.0
Published: 2015/10/12 18:57:14
3) ID: 915
Version: 10.0
Published: 2015/11/11 17:58:57
4) ID: 453
Version: 5.0
Published: 2015/05/19 16:01:29
5) ID: 1100
Version: 11.0
Published: 2016/03/02 15:56:36
6) ID: 658
Version: 6.0
Published: 2015/07/07 13:55:01
7) ID: 738
Version: 7.0
Published: 2015/08/31 18:30:39
8) ID: 784
Version: 8.0
Published: 2015/09/09 20:53:39
Components:

Activation Keys:

$ hammer content-view remove-version --name epel-6-x86_64-cv --organization-id 1 --content-view-version-id 453
Warning: Option --id is deprecated. This option will be removed in Katello 2.5, Use --uuid
The component version has been removed

$ hammer content-view info --id 27Warning: Option --id is deprecated. This option will be removed in Katello 2.5, Use --uuid
ID: 27
Name: epel-6-x86_64-cv
Label: epel-6-x86_64-cv
Composite: false
Description:
Content Host Count: 0
Organization: XXX
Yum Repositories:
1) ID: 755
Name: EPEL 6 Server x86_64
Label: 6_Server_x86_64
Docker Repositories:

Puppet Modules:

Lifecycle Environments:
1) ID: 1
Name: Library
2) ID: 4
Name: Staging
3) ID: 2
Name: Development
4) ID: 5
Name: Production
5) ID: 3
Name: QA
Versions:
1) ID: 871
Version: 9.1
Published: 2015/10/20 17:38:58
2) ID: 847
Version: 9.0
Published: 2015/10/12 18:57:14
3) ID: 915
Version: 10.0
Published: 2015/11/11 17:58:57
4) ID: 453
Version: 5.0
Published: 2015/05/19 16:01:29
5) ID: 1100
Version: 11.0
Published: 2016/03/02 15:56:36
6) ID: 658
Version: 6.0
Published: 2015/07/07 13:55:01
7) ID: 738
Version: 7.0
Published: 2015/08/31 18:30:39
8) ID: 784
Version: 8.0
Published: 2015/09/09 20:53:39
Components:

Activation Keys:

History

#1 Updated by Rimma Ashkinadze about 6 years ago

The correct syntax is hammer content-view remove --name ${cv} --organization-id 1 --content-view-version-ids ${id}

#2 Updated by Oleh Fedorenko over 2 years ago

  • Category set to Hammer
  • Project changed from Hammer CLI to Katello

#3 Updated by Chris Roberts over 2 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello Recycle Bin
  • Status changed from New to Closed

If this is still an issue, please reopen and let us know but a lot of changes have gone into hammer over 4 years.

Also available in: Atom PDF