Bug 1303570
Summary: | All package/package-groups commands along with host-name raises failed with error: found more than one host | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> | ||||
Component: | Hosts | Assignee: | satellite6-bugs <satellite6-bugs> | ||||
Status: | CLOSED ERRATA | QA Contact: | Sachin Ghai <sghai> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | Nightly | CC: | bbuckingham, jyejare, mmccune | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | http://projects.theforeman.org/issues/13495 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-07-27 11:16:10 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: | 1136091 | ||||||
Attachments: |
|
Description
Sachin Ghai
2016-02-01 10:43:39 UTC
Created attachment 1120062 [details]
debug logs while installing a package
Looks like 3 hosts with same domain name are fetched via api instead of one specified: == [ INFO 2016-02-01 05:43:52 HammerCLIKatello::HostPackage::InstallCommand] Called with options: {"option_host_name"=>"cloud-qe-3.idmqe.lab.eng.bos.redhat.com", "option_packages"=>["zsh"]} [ INFO 2016-02-01 05:43:52 API] GET /api/hosts [DEBUG 2016-02-01 05:43:52 API] Params: { "name" => "cloud-qe-3.idmqe.lab.eng.bos.redhat.com" } [DEBUG 2016-02-01 05:43:52 API] Headers: { :params => { "name" => "cloud-qe-3.idmqe.lab.eng.bos.redhat.com" } } [DEBUG 2016-02-01 05:43:52 API] Response: { "total" => 3, "subtotal" => 3, "page" => 1, "per_page" => 20, "search" => nil, "sort" => { "by" => nil, "order" => nil }, Created redmine issue http://projects.theforeman.org/issues/13495 from this bug Upstream bug component is Hosts In Sat 6.2 beta snap 6.1, I see the issue is reproducible with errata installation as well. Output: [root@qeblade36 ~]# hammer host errata apply --errata-ids <errata_id> --host <hostname> Could not apply errata: Error: found more than one host So making it as a blocker for beta. This bug is blocking 1126091 from verifying. WORKAROUND: For any use of "hammer host package/errata/package-group" commands please use the --host-id parameter instead of the --host name parameter. This bug will be resolved in the GA release of Satellite 6.2.0 I attempted to reproduce this one with Satellite 6.2 Beta Snap 9.x; however, it appears to be working correctly on my configuration. Note: my configuration only has 2 hosts; however, I still anticipated receiving the error. Moving the bz to ON_QA for verification. hammer> host package install --host rhel7-client1.example.com --packages bear [.............................................................................] [100%] bear-4.1-1.noarch hammer> host package-group install --host rhel7-client1.example.com --groups mammals [.............................................................................] [100%] No new packages installed hammer> host errata apply --host rhel7-client1.example.com --errata-ids RHEA-2012:0002 [.............................................................................] [100%] walrus-5.21-1.noarch Verified with sat6.2 GA snap10 I can install package/package-groups on selected host by passing --host option. ~]# hammer -u admin -p changeme host package install --host shost.idmqe.lab.eng.bos.redhat.com --packages zsh [......................................................................................................] [100%] zsh-5.0.2-14.el7.x86_64 [root@cloud-qe-3 ~]# hammer -u admin -p changeme host package-group install --host shost.idmqe.lab.eng.bos.redhat.com --groups 'Development Tools' [......................................................................................................] [100%] 1:doxygen-1.8.5-3.el7.x86_64 cscope-15.8-7.el7.x86_64 patch-2.7.1-8.el7.x86_64 systemtap-2.8-10.el7.x86_64 Hammer host errataapply works too. [root@cloud-qe-3 ~]# hammer -u admin -p changeme host errata list --host shost.idmqe.lab.eng.bos.redhat.com -------------------------------------|----------------|----------|-------------|------------ ID | ERRATUM ID | TYPE | TITLE | INSTALLABLE -------------------------------------|----------------|----------|-------------|------------ 1bcca16f-9cac-4577-81d9-b919483c6934 | RHEA-2012:0002 | security | Sea_Erratum | -------------------------------------|----------------|----------|-------------|------------ [root@cloud-qe-3 ~]# hammer -u admin -p changeme host errata apply --host shost.idmqe.lab.eng.bos.redhat.com --errata-ids RHEA-2012:0002 [......................................................................................................] [100%] walrus-5.21-1.noarch 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/RHBA-2016:1501 |