Bug 768421

Summary: headpin CLI product list and provider list fail with Invalid verb 'sync'
Product: Red Hat Satellite Reporter: Eric Sammons <esammons>
Component: katello-agentAssignee: Tom McKay <tomckay>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0.0CC: bkearney, tomckay
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
headpin
Last Closed: 2012-04-27 00:32:13 UTC Type: ---
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: 703617, 747354    

Description Eric Sammons 2011-12-16 16:00:58 UTC
Description of problem:
When attempting to report from the headpin cli product lists and provider lists Invalid verb 'sync' is returned.

Version-Release number of selected component (if applicable):
katello-cli-headpin-0.1.12-2.el6.noarch

Steps to Reproduce:
1. headpin -u [adminuser] -p [password] shell
2. headpin> product list --org [org]
3. headpin> provider list --org [org]
  
Actual results:
headpin> product list --org RedHat_QE --provider="Red Hat"
Invalid verb 'sync'. Verbs for resource type 'organizations' can be one of delete, read, delete_systems, update_systems, create, update, read_systems, register_systems
headpin> provider list --org RedHat_QE
Invalid verb 'sync'. Verbs for resource type 'organizations' can be one of delete, read, delete_systems, update_systems, create, update, read_systems, register_systems

Expected results:
Appropriate list returned.

Comment 1 Tom McKay 2011-12-19 15:31:37 UTC
commit c22ca64b30ae277a04316209d0fa57b82013bdae
Author: Tom McKay <thomasmckay>
Date:   Mon Dec 19 10:29:11 2011 -0500

    Bug 768421 - headpin CLI product list and provider list fail with Invalid verb 'sync'
    https://bugzilla.redhat.com/show_bug.cgi?id=768421
    + Fenced katello-only code for provider sync, create, etc.

Comment 4 Eric Sammons 2012-01-23 15:21:46 UTC
headpin> product list --org Org-AhFPd6pUscy6iia8
------------------------------------------------------------------------------------------------------------------------------------------
                                 Product List For Organization Org-AhFPd6pUscy6iia8, Environment 'Locker'

 Id          Name                                                                     Provider Id   Provider Name  
------------------------------------------------------------------------------------------------------------------------------------------
 83          Red Hat Enterprise Linux High Availability for RHEL Server               2             Red Hat        
 RH1149049   High-Availability 8 sockets                                              2             Red Hat        
 90          Red Hat Enterprise Linux Resilient Storage for RHEL Server               2             Red Hat        
 RH0197329   Red Hat Enterprise Linux Server Premium 1-2 sockets Unlimited guests     2             Red Hat        
 RH0197181   Red Hat Enterprise Linux Server Self-support 1-2 sockets Up to 1 guest   2             Red Hat        
 69          Red Hat Enterprise Linux Server                                          2             Red Hat        
 RH1316844   Resilient Storage 8 sockets                                              2             Red Hat        


VERIFIED:

# rpm -qa|grep 'katello\|thumbslug\|candlepin'
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-common-0.1.34-2.el6.noarch
candlepin-0.5.10-1.el6.noarch
thumbslug-0.0.21-1.el6.noarch
katello-cli-headpin-0.1.13-2.el6.noarch
candlepin-tomcat6-0.5.10-1.el6.noarch
katello-common-0.1.180-2.el6.noarch
katello-headpin-0.1.126-2.el6.noarch
katello-configure-0.1.52-2.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-trusted-ssl-cert-1.0-1.noarch
katello-certs-tools-1.0.1-2.el6.noarch
katello-glue-candlepin-0.1.180-2.el6.noarch
katello-headpin-all-0.1.126-2.el6.noarch