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'
Created from redmine issue http://projects.theforeman.org/issues/5779
I cannot reproduce this and the code referenced in the trace is no longer present.
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
(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.
Web UI works fine, verified. Satellite-6.0.3-RHEL-6-20140604.0 created bz1105547 for CLI
This was delivered with 6.0.3, which is the Satellite 6 Beta.