Bug 1402692 - Typo in MissingSeachOptions leads to Error: uninitialized constant HammerCLIForeman::MissingSeachOptions
Summary: Typo in MissingSeachOptions leads to Error: uninitialized constant HammerCLIF...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
high
high vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-08 07:33 UTC by Sachin Ghai
Modified: 2019-04-01 20:26 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:54:17 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


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