Bug 990299

Summary: Headpin nightly: CLI Removing custom info for Distributor renders incorrect result string
Product: [Retired] Subscription Asset Manager Reporter: Apurva Bhole <abhole>
Component: katelloAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED WONTFIX QA Contact: SAM QE List <sam-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.3CC: adujicek, omaciel, sthirugn
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-26 20:35:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 971511    

Description Apurva Bhole 2013-07-30 20:09:52 UTC
Description of problem:
"distributor remove_custom_info" command removes the custom info successfully but renders incorrect result string. 

Version-Release number of selected component (if applicable):
katello-common-1.4.2-1.git.990.7b37da3.el6.noarch
katello-headpin-all-1.4.2-1.git.990.7b37da3.el6.noarch
katello-glue-elasticsearch-1.4.2-1.git.990.7b37da3.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-1.4.2-1.git.137.fea0d84.el6.noarch
signo-katello-0.0.9-1.el6.noarch
katello-glue-candlepin-1.4.2-1.git.990.7b37da3.el6.noarch
katello-certs-tools-1.4.2-1.el6.noarch
katello-headpin-1.4.2-1.git.990.7b37da3.el6.noarch
katello-repos-1.4.2-1.el6.noarch
katello-cli-common-1.4.2-1.git.137.fea0d84.el6.noarch
katello-configure-1.4.3-1.git.67.f71e590.el6.noarch
katello-selinux-1.4.3-1.git.4.99dc194.el6.noarch


How reproducible:
everytime

Steps to Reproduce:
1. distributor create --name TestDist --org ACME_Corporation
2. distributor add_custom_info --name TestDist --org ACME_Corporation --keyname FirstKey --value FirstVal
3. distributor remove_custom_info --name TestDist --org ACME_Corporation --keyname FirstKey
4. distributor info --name TestDist --org ACME_Corporation

Actual results:
The custom info is removed but the message shown on terminal is: 
Could not remove Custom Information from Distributor [ TestDist ]

Expected results:
Successfully removed Custom Info [ $keyname ] from Distributor [ TestDist ]

Comment 1 Apurva Bhole 2013-07-30 20:48:19 UTC
This issue also persists when updating custom info for Distributor. 

> distributor update_custom_info --name TestDist --org ACME_Corporation --keyname FirstKey --value newVal

renders: Could not update Custom Information [ FirstKey ] for Distributor [ SecondDist ]

But the custom info does get updated. 
> distributor info --name TestDist --org ACME_Corporation

Comment 2 Ales Dujicek 2013-10-25 12:39:44 UTC
looks like duplicate of bz1001202

Comment 4 Bryan Kearney 2017-06-26 20:35:32 UTC
The release of Satellite 5.8 we are deprecating the support of Subscription Asset Manager. The release notes for 5.8 can be found at https://access.redhat.com/documentation/en-us/red_hat_satellite/5.8/pdf/release_notes/Red_Hat_Satellite-5.8-Release_Notes-en-US.pdf.

I am therefore closing out this bug as WONTFIX. If you believe this to be an error, please feel free tor each out to either Rich Jerrido or Bryan Kearney. Thank you!