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 1318686

Summary: Unable to update content hosts
Product: Red Hat Satellite Reporter: jcallaha
Component: HammerAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: jcallaha
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, bkearney
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:
Last Closed: 2016-08-04 14:33:07 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:
Attachments:
Description Flags
scenario none

Description jcallaha 2016-03-17 13:59:27 UTC
Created attachment 1137397 [details]
scenario

Description of problem:
When attempting to update a content-host I am given an error stating:
Could not update content host:
  Missing values for system.
However, both a content host name and id were passed in separate requests.

Version-Release number of selected component (if applicable):
Satellite 6.2 Beta Snap 4

How reproducible:
Always

Steps to Reproduce:
1. Register a content host
2. Attempt to update the content host, referring to it by id or name
3. View results

Actual results:
An error is returned stating
Could not update content host:
  Missing values for system.

Expected results:
The content host is updated appropriately. Alternatively, a more appropriate error is returned.

Additional info:
As you can see in the help output, nothing refers to "system". Maybe instead of "system" refer to something more specific to expected parameters.

Comment 4 Justin Sherrill 2016-05-10 17:41:49 UTC
Not able to reproduce on the beta.

[root@satellite ~]# hammer content-host update --name=web9.satlab.com --lifecycle-environment=Library  --organization='Summit 2016'  --release-ver=7.0
Content host updated

Comment 7 jcallaha 2016-08-03 18:10:06 UTC
Verified in Satellite 6.2 GA.

[root@ibm-x3550m3-10 os]# hammer content-host info --id 9e26b79f-9e37-44ec-8ba1-74a43f7379a6 --organization-id 1
Name:                    test1.lab.eng.brq.redhat.com
ID:                      9e26b79f-9e37-44ec-8ba1-74a43f7379a6
Katello Agent Installed: yes
Location:                None
Lifecycle Environment:   Library
Content View:            rhel7
Entitlement Status:      valid
Release Version:         
Autoheal:                true
Security Errata:         0
Bugfix Errata:           0
Enhancement Errata:      0

[root@ibm-x3550m3-10 os]# hammer content-host update --release-ver 1.0 --id 9e26b79f-9e37-44ec-8ba1-74a43f7379a6 --organization-id 1
Content host updated
[root@ibm-x3550m3-10 os]# hammer content-host info --id 9e26b79f-9e37-44ec-8ba1-74a43f7379a6 --organization-id 1
Name:                    test1.lab.eng.brq.redhat.com
ID:                      9e26b79f-9e37-44ec-8ba1-74a43f7379a6
Katello Agent Installed: yes
Location:                None
Lifecycle Environment:   Library
Content View:            rhel7
Entitlement Status:      valid
Release Version:         1.0
Autoheal:                true
Security Errata:         0
Bugfix Errata:           0
Enhancement Errata:      0

[root@ibm-x3550m3-10 os]# hammer content-host update --release-ver 2.0 --name test1.lab.eng.brq.redhat.com --organization-id 1
Content host updated
[root@ibm-x3550m3-10 os]# hammer content-host info --id 9e26b79f-9e37-44ec-8ba1-74a43f7379a6 --organization-id 1
Name:                    test1.lab.eng.brq.redhat.com
ID:                      9e26b79f-9e37-44ec-8ba1-74a43f7379a6
Katello Agent Installed: yes
Location:                None
Lifecycle Environment:   Library
Content View:            rhel7
Entitlement Status:      valid
Release Version:         2.0
Autoheal:                true
Security Errata:         0
Bugfix Errata:           0
Enhancement Errata:      0

Comment 8 Bryan Kearney 2016-08-04 14:33:07 UTC
This was delivered with Satellite 6.2 which was released on 27 July, 2016.