Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1402692

Summary: Typo in MissingSeachOptions leads to Error: uninitialized constant HammerCLIForeman::MissingSeachOptions
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: HammerAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.3.0CC: bbuckingham, dhlavacd, ehelms, inecas, mhulan, oshtaier, tstrachota
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:17 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:

Description Sachin Ghai 2016-12-08 07:33:59 UTC
Description of problem:


 ~]# hammer -u admin -p changeme template update --name "PXELinux global default" --locked "false"
Can't read /etc/scl/prefixes/devtoolset-4, devtoolset-4 is probably not installed.
Can't source enable, skipping.
Config template updated

~]# hammer -u admin -p changeme repository list --organization='Default Organization'
Can't read /etc/scl/prefixes/devtoolset-4, devtoolset-4 is probably not installed.
Can't source enable, skipping.
Error: uninitialized constant HammerCLIForeman::MissingSeachOptions
Did you mean?  HammerCLIForeman::MissingSearchOptions



~]# hammer -u admin -p changeme repository list --organization-id=1
Can't read /etc/scl/prefixes/devtoolset-4, devtoolset-4 is probably not installed.
Can't source enable, skipping.
Error: uninitialized constant HammerCLIForeman::MissingSeachOptions
Did you mean?  HammerCLIForeman::MissingSearchOptions

looks hammer is completely broken.


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

How reproducible:


Steps to Reproduce:
1. run any hammer cmd
2.
3.

Actual results:

~]# hammer -u admin -p changeme repository list --organization-id=1
Can't read /etc/scl/prefixes/devtoolset-4, devtoolset-4 is probably not installed.
Can't source enable, skipping.
Error: uninitialized constant HammerCLIForeman::MissingSeachOptions
Did you mean?  HammerCLIForeman::MissingSearchOptions

Expected results:


Additional info:

Comment 8 Chris Brown 2017-06-20 20:14:01 UTC
Verified in Satellite 6.3 Snap 3. See below for results.



[root@lenovo-x3850-02 ~]# hammer -u admin -p changeme template update --name "PXELinux global default" --locked "false"
Provisioning template updated


[root@lenovo-x3850-02 ~]# hammer -u admin -p changeme repository list --organization='Default Organization'
---|---------------------------------------------------------------------------------|--------------------------------------------------------|--------------|---------------------------------------------------------------------------------
ID | NAME                                                                            | PRODUCT                                                | CONTENT TYPE | URL                                                                             
---|---------------------------------------------------------------------------------|--------------------------------------------------------|--------------|---------------------------------------------------------------------------------
28 | capsule                                                                         | product                                                | yum          | http://sat-r220-02.lab.eng.rdu2.redhat.com/pulp/repos/Sat6-CI/QA/Satellite_6_...
5  | Red Hat CloudForms Tools for RHEL 6 RPMs x86_64 6Server                         | Red Hat Enterprise Linux Server                        | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/cf-tools/1/os  
4  | Red Hat Enterprise Linux Load Balancer for RHEL 6 Server - Fastrack RPMs x86_64 | Red Hat Enterprise Linux Load Balancer for RHEL Server | yum          | https://cdn.redhat.com/content/fastrack/rhel/server/6/x86_64/loadbalancer/os    
2  | Red Hat Satellite 5.8 ELS for RHEL 6 System Z RPMs s390x                        | Red Hat Satellite - Extended Life Cycle Support        | yum          | https://cdn.redhat.com/content/dist/rhel/system-z/6/6Server/s390x/satellite-e...
8  | Red Hat Satellite 6.2 for RHEL 7 Server Source RPMs x86_64                      | Red Hat Satellite                                      | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/satellite/6....
1  | Red Hat Satellite Capsule 6.2 for RHEL 7 Server RPMs x86_64                     | Red Hat Satellite Capsule                              | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-capsule/...
7  | Red Hat Satellite Capsule 6.2 for RHEL 7 Server Source RPMs x86_64              | Red Hat Satellite Capsule                              | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-capsule/...
3  | Red Hat Satellite Proxy 5.8 ELS for RHEL 6 System Z RPMs s390x                  | Red Hat Satellite Proxy - Extended Life Cycle Support  | yum          | https://cdn.redhat.com/content/dist/rhel/system-z/6/6Server/s390x/satellite-p...
6  | Red Hat Satellite Tools 6.2 for RHEL 7 Server RPMs x86_64                       | Red Hat Enterprise Linux Server                        | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6....
9  | Red Hat Satellite Tools 6.2 for RHEL 7 Server Source RPMs x86_64                | Red Hat Enterprise Linux Server                        | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6....
---|---------------------------------------------------------------------------------|--------------------------------------------------------|--------------|---------------------------------------------------------------------------------


[root@lenovo-x3850-02 ~]# hammer -u admin -p changeme repository list --organization-id=1
---|---------------------------------------------------------------------------------|--------------------------------------------------------|--------------|---------------------------------------------------------------------------------
ID | NAME                                                                            | PRODUCT                                                | CONTENT TYPE | URL                                                                             
---|---------------------------------------------------------------------------------|--------------------------------------------------------|--------------|---------------------------------------------------------------------------------
28 | capsule                                                                         | product                                                | yum          | http://sat-r220-02.lab.eng.rdu2.redhat.com/pulp/repos/Sat6-CI/QA/Satellite_6_...
5  | Red Hat CloudForms Tools for RHEL 6 RPMs x86_64 6Server                         | Red Hat Enterprise Linux Server                        | yum          | https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/cf-tools/1/os  
4  | Red Hat Enterprise Linux Load Balancer for RHEL 6 Server - Fastrack RPMs x86_64 | Red Hat Enterprise Linux Load Balancer for RHEL Server | yum          | https://cdn.redhat.com/content/fastrack/rhel/server/6/x86_64/loadbalancer/os    
2  | Red Hat Satellite 5.8 ELS for RHEL 6 System Z RPMs s390x                        | Red Hat Satellite - Extended Life Cycle Support        | yum          | https://cdn.redhat.com/content/dist/rhel/system-z/6/6Server/s390x/satellite-e...
8  | Red Hat Satellite 6.2 for RHEL 7 Server Source RPMs x86_64                      | Red Hat Satellite                                      | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/satellite/6....
1  | Red Hat Satellite Capsule 6.2 for RHEL 7 Server RPMs x86_64                     | Red Hat Satellite Capsule                              | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-capsule/...
7  | Red Hat Satellite Capsule 6.2 for RHEL 7 Server Source RPMs x86_64              | Red Hat Satellite Capsule                              | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-capsule/...
3  | Red Hat Satellite Proxy 5.8 ELS for RHEL 6 System Z RPMs s390x                  | Red Hat Satellite Proxy - Extended Life Cycle Support  | yum          | https://cdn.redhat.com/content/dist/rhel/system-z/6/6Server/s390x/satellite-p...
6  | Red Hat Satellite Tools 6.2 for RHEL 7 Server RPMs x86_64                       | Red Hat Enterprise Linux Server                        | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6....
9  | Red Hat Satellite Tools 6.2 for RHEL 7 Server Source RPMs x86_64                | Red Hat Enterprise Linux Server                        | yum          | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6....
---|---------------------------------------------------------------------------------|--------------------------------------------------------|--------------|---------------------------------------------------------------------------------

Comment 10 Satellite Program 2018-02-21 16:54:17 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336