Bug 1098738 - add content host to host collection - error calling System.readable(org)
Summary: add content host to host collection - error calling System.readable(org)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Walden Raines
QA Contact: Ales Dujicek
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-17 20:33 UTC by Tom McKay
Modified: 2019-09-25 20:32 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:06:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 5779 0 None None None 2016-04-22 15:51:07 UTC

Description Tom McKay 2014-05-17 20:33:09 UTC
ArgumentError: wrong number of arguments (1 for 0)
/home/thomasmckay/code/katello/app/models/katello/authorization/system.rb:27:in `readable'
/home/thomasmckay/code/katello/app/controllers/katello/api/v2/host_collections_controller.rb:117:in `add_systems'

Comment 1 Tom McKay 2014-05-17 20:33:11 UTC
Created from redmine issue http://projects.theforeman.org/issues/5779

Comment 3 Walden Raines 2014-06-03 18:36:06 UTC
I cannot reproduce this and the code referenced in the trace is no longer present.

Comment 4 Ales Dujicek 2014-06-04 11:33:04 UTC
no issues using API:

$ curl -X PUT -u... .../katello/api/v2/host_collections/2/add_systems/ -d "system_ids=ced4206d-8f19-4f5f-acac-734a6161cb9b"
{"displayMessages":{"success":["Successfully added 1 Content Host(s)."],"error":[]}}


but cannot add host to collection using CLI:

# hammer --csv content-host list --organization-id 1
ID,Name
ca084bdf-ad39-495e-9a40-793580936b3f,cloud-qe-9.idm.lab.bos.redhat.com
ced4206d-8f19-4f5f-acac-734a6161cb9b,intel-s5000phb-01.rhts.eng.bos.redhat.com

# hammer host-collection add-content-host --organization-id 1 --id 2 --system-id ca084bdf-ad39-495e-9a40-793580936b3f
Could not add content host:
  Couldn't find Katello::System with id=0

# hammer host-collection add-content-host --organization-id 1 --id 2 --system intel-s5000phb-01.rhts.eng.bos.redhat.com
Could not add content host:
  Error: system found more than once


version: Satellite-6.0.3-RHEL-6-20140529.0

Comment 7 Walden Raines 2014-06-05 22:31:34 UTC
(In reply to Ales Dujicek from comment #4)
> no issues using API:
> 
> $ curl -X PUT -u... .../katello/api/v2/host_collections/2/add_systems/ -d
> "system_ids=ced4206d-8f19-4f5f-acac-734a6161cb9b"
> {"displayMessages":{"success":["Successfully added 1 Content
> Host(s)."],"error":[]}}
> 
> 
> but cannot add host to collection using CLI:
> 
> # hammer --csv content-host list --organization-id 1
> ID,Name
> ca084bdf-ad39-495e-9a40-793580936b3f,cloud-qe-9.idm.lab.bos.redhat.com
> ced4206d-8f19-4f5f-acac-734a6161cb9b,intel-s5000phb-01.rhts.eng.bos.redhat.
> com
> 
> # hammer host-collection add-content-host --organization-id 1 --id 2
> --system-id ca084bdf-ad39-495e-9a40-793580936b3f
> Could not add content host:
>   Couldn't find Katello::System with id=0
> 
> # hammer host-collection add-content-host --organization-id 1 --id 2
> --system intel-s5000phb-01.rhts.eng.bos.redhat.com
> Could not add content host:
>   Error: system found more than once
> 
> 
> version: Satellite-6.0.3-RHEL-6-20140529.0


The issue mentioned here is not related to this bug.  Please open a new bug against the CLI.  This bug is fur the Web UI.

Comment 9 Ales Dujicek 2014-06-06 11:42:16 UTC
Web UI works fine, verified.

Satellite-6.0.3-RHEL-6-20140604.0

created bz1105547 for CLI

Comment 10 Bryan Kearney 2014-07-02 14:06:35 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.


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