Bug 1318686 - Unable to update content hosts
Summary: Unable to update content hosts
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high vote
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: jcallaha
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-17 13:59 UTC by jcallaha
Modified: 2019-09-25 21:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-04 14:33:07 UTC
Target Upstream Version:


Attachments (Terms of Use)
scenario (167.61 KB, image/png)
2016-03-17 13:59 UTC, jcallaha
no flags Details

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.


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