Bug 1470565 - Not able to delete content-view version using hammer command
Not able to delete content-view version using hammer command
Status: NEW
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Views (Show other bugs)
6.2.8
All All
high Severity high (vote)
: Unspecified
: --
Assigned To: satellite6-bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-13 04:36 EDT by Preetesh Sharma
Modified: 2017-07-19 04:32 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Preetesh Sharma 2017-07-13 04:36:44 EDT
Description of problem: Not able to delete content-view version using hammer command.

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


How reproducible:

[root@redhat ~]# hammer shell
Welcome to the hammer interactive shell
Type 'help' for usage information
hammer> content-view version list
[Foreman] Password for admin: 
---|-------------------------------|---------|-----------------------
ID | NAME                          | VERSION | LIFECYCLE ENVIRONMENTS
---|-------------------------------|---------|-----------------------
3  | test 2.0                      | 2.0     | Library               
2  | test 1.0                      | 1.0     |                       
1  | Default Organization View 1.0 | 1.0     | Library               
---|-------------------------------|---------|-----------------------

hammer> content-view remove-version --id 2.0 --content-view-version-id 1
The component version has been removed
hammer> exit

This will show that component has removed but its not. To remove content-view version we need to execute below command.

# hammer content-view remove --content-view-version-ids <content-view-version-id> --id <content-view-id>

[root@redhat ~]# hammer shell

hammer> content-view remove --content-view-version-ids 2 --id 2
[........................................................................................................................................] [100%]
hammer>

Actual results: Command executes successfully but still content-view version is present in satellite.


Expected results: content-view version must be deleted completely.
Comment 1 Marek Hulan 2017-07-19 04:32:52 EDT
This seems like content view specific command. The "--id 2.0" in the command looks suspicious, shouldn't it be "--id 2"? Nevertheless this needs reproducing, at least it should print an error if it does not delete anything.

Note You need to log in before you can comment on or make changes to this bug.