Bug 1199137
| Summary: | hammer content-host info having blank "Release Version" every time | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Pavel Moravec <pmoravec> |
| Component: | Hammer | Assignee: | Adam Price <adprice> |
| Status: | CLOSED ERRATA | QA Contact: | sthirugn <sthirugn> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.0.8 | CC: | bbuckingham, bkearney, cwelton, jcallaha, sthirugn |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://projects.theforeman.org/issues/9666 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-07-27 11:00:03 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
Pavel Moravec
2015-03-05 14:01:11 UTC
Created redmine issue http://projects.theforeman.org/issues/9666 from this bug Moving to POST since upstream bug http://projects.theforeman.org/issues/9666 has been closed ------------- Anonymous Applied in changeset commit:hammer-cli-katello|f4d85a9cd96a398bec1e1081ad025b2526ad536f. Failed QA Satellite 6.1.0 snap 6. Version tested: RHEL 66 RHEL 71 hammer> content-host update --release-ver=7.0 --name=qe-blade-08.idmqe.lab.eng.bos.redhat.com --organization-id=323 Content host updated hammer> content-host info --name=qe-blade-08.idmqe.lab.eng.bos.redhat.com --organization-id=323 Name: qe-blade-08.idmqe.lab.eng.bos.redhat.com ID: 8ffd05f5-6e79-4741-9e02-fbfc23f46b3e Katello Agent Installed: no Description: Initial Registration Params Location: None Lifecycle Environment: Library Content View: rhel7 Entitlement Status: partial Release Version: Autoheal: true Security Errata: 0 Bugfix Errata: 0 Enhancement Errata: 0 (In reply to jcallaha from comment #5) > Failed QA > Satellite 6.1.0 snap 6. > > Version tested: > RHEL 66 > RHEL 71 > > hammer> content-host update --release-ver=7.0 > --name=qe-blade-08.idmqe.lab.eng.bos.redhat.com --organization-id=323 > Content host updated > hammer> content-host info --name=qe-blade-08.idmqe.lab.eng.bos.redhat.com > --organization-id=323 > Name: qe-blade-08.idmqe.lab.eng.bos.redhat.com > ID: 8ffd05f5-6e79-4741-9e02-fbfc23f46b3e > Katello Agent Installed: no > Description: Initial Registration Params > Location: None > Lifecycle Environment: Library > Content View: rhel7 > Entitlement Status: partial > Release Version: > Autoheal: true > Security Errata: 0 > Bugfix Errata: 0 > Enhancement Errata: 0 Would it be possible to get credentials to that sat6 machine where I could run few tests (like follow reproducer, fiddle with hammer .rb sources, enable hammer debugs)? I can restrict my activity to NA night time, if desired. Pavel, I am unable to reproduce this bug upstream, I'll try with Satellite6 next. In the meantime, if you want more out from hammer, run the commands with the global --verbose and --debug flags like so: hammer --verbose --debug content-host info --organization acme --name host1 Recreated in Satellite 6.1.1 27 Aug Build hammer> content-host update --release-ver=7.0 --name=ibm-x3550m3-07.lab.eng.brq.redhat.com --organization-id=1 Content host updated hammer> content-host info --name=ibm-x3550m3-07.lab.eng.brq.redhat.com --organization-id=1 Name: ibm-x3550m3-07.lab.eng.brq.redhat.com ID: ce0f9286-2240-423a-8a51-d3df14ad7e52 Katello Agent Installed: no Description: Initial Registration Params Location: None Lifecycle Environment: Dev Content View: testview Entitlement Status: valid Release Version: Autoheal: true Security Errata: 0 Bugfix Errata: 0 Enhancement Errata: 0 The satellite is rhsm-qe-1.rhq.lab.eng.bos.redhat.com. Please ping me on irc (jcallaha) for credentials. I can confirm the bug is _not_ fixed. As the upstream fix: https://github.com/Katello/hammer-cli-katello/pull/283/files is not backported / cherry-picked properly: # grep Release /usr/share/gems/gems/hammer_cli_katello-0.0.7.17/lib/hammer_cli_katello/content_host.rb field :releaseVer, _("Release Version") # rpm -qf /usr/share/gems/gems/hammer_cli_katello-0.0.7.17/lib/hammer_cli_katello/content_host.rb rubygem-hammer_cli_katello-0.0.7.17-1.el7sat.noarch # testing blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1318686 Verified in satellite-6.2.0-6.2.beta.el7sat.noarch Before release version update: hammer> content-host info --name=$host --organization='Default Organization' Name: $host ID: 5fd99b91-12d2-4d5d-9598-c6a85e809c99 Katello Agent Installed: yes Description: Location: None Lifecycle Environment: QE Content View: rhel7cv Entitlement Status: valid Release Version: Autoheal: true Security Errata: 27 Bugfix Errata: 32 Enhancement Errata: 4 After release version update: hammer> content-host info --name=$host --organization='Default Organization' Name: $host ID: 5fd99b91-12d2-4d5d-9598-c6a85e809c99 Katello Agent Installed: yes Description: Location: None Lifecycle Environment: QE Content View: rhel7cv Entitlement Status: valid Release Version: 7Server Autoheal: false Security Errata: 27 Bugfix Errata: 32 Enhancement Errata: 4 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 |