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:
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.