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 1668275

Summary: pxeless provisioning fails: boot_files_uri wrong number of arguments
Product: Red Hat Satellite Reporter: Ales Dujicek <adujicek>
Component: Discovery PluginAssignee: Lukas Zapletal <lzap>
Status: CLOSED DUPLICATE QA Contact: Jitendra Yejare <jyejare>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: inecas, lzap, rabajaj, sshtein
Target Milestone: ReleasedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-24 07:42:12 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:

Description Ales Dujicek 2019-01-22 10:49:08 UTC
Description of problem:

discovered host pxeless provisioning fails

production.log:

2019-01-18T15:14:01 [I|app|5deced14] Deploying TFTP iPXE configuration for mac52540089aaba.mylab.redhat.com
2019-01-18T15:14:01 [I|app|5deced14] Fetching required TFTP boot files for mac52540089aaba.mylab.redhat.com
2019-01-18T15:14:01 [I|app|5deced14] Processed 5 tasks from queue 'Host::Managed Main', completed 5/5
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (10) update event on name mac52540089aaba, mac52540089aaba.mylab.redhat.com
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (10) update event on root_pass , $5$TEzp7Xm9i415znbV$wdMBJD9qKVBYn1opO5DLfqjkzNg92SgUe8mxpnd41q5
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (10) update event on architecture_id , 1
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (10) update event on operatingsystem_id , 1
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (10) update event on ptable_id , 92
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (10) update event on build false, true
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (10) update event on comment , 
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (10) update event on disk , 
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (10) update event on owner_id 1, 3
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (10) update event on managed false, true
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (10) update event on grub_pass , $6$w60RBn3QcVoMAh88$OCcdu4fjwy/K/09qSH3.oNPnDV/aUbz9HC4X7VrkDJfXFmpkNzdxJEaHHmEm/dChlI6KlZn3AJ1vDA809OyPq.
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (10) update event on pxe_loader , PXELinux BIOS
2019-01-18T15:14:01 [I|aud|5deced14] Nic::Managed (11) update event on name mac52540089aaba, mac52540089aaba.mylab.redhat.com
2019-01-18T15:14:01 [I|aud|5deced14] Nic::Managed (11) update event on domain_id , 1
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on host_id 10
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on uuid 
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on content_view_id 2
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on lifecycle_environment_id 2
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on kickstart_repository_id 6
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on content_source_id 1
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on installable_security_errata_count 0
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on installable_enhancement_errata_count 0
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on installable_bugfix_errata_count 0
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on applicable_rpm_count 0
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on upgradable_rpm_count 0
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on applicable_module_stream_count 0
2019-01-18T15:14:01 [I|aud|5deced14] Host::Base (6) create event on upgradable_module_stream_count 0
2019-01-18T15:14:01 [I|app|] Started GET "/tasks/98467fbb-9384-4fdd-ab76-dad8f7cde988" for 10.34.131.97 at 2019-01-18 15:14:01 +0100
2019-01-18T15:14:01 [W|app|5deced14] Reloading kernel on mac52540089aaba.mylab.redhat.com task failed with the following error: wrong number of arguments (given 3, expected 1)
ArgumentError: wrong number of arguments (given 3, expected 1)
/usr/share/foreman/app/models/operatingsystem.rb:283:in `boot_files_uri'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-14.0.0/app/models/host/managed_extensions.rb:48:in `setKexec'
/usr/share/foreman/app/models/concerns/orchestration.rb:222:in `execute'
/usr/share/foreman/app/models/concerns/orchestration.rb:145:in `block in process'
/usr/share/foreman/app/models/concerns/orchestration.rb:137:in `each'
/usr/share/foreman/app/models/concerns/orchestration.rb:137:in `process'
...

probably introduced here:
https://github.com/theforeman/foreman/commit/ef1bbc264a#diff-ca0b1ebc260d7633163da1e5450eabb9L268

see also:
https://github.com/theforeman/foreman_discovery/blob/develop/app/models/host/managed_extensions.rb#L48


Version-Release number of selected component (if applicable):
6.5 snap 12
foreman-1.20.1.7-1.el7sat.noarch
tfm-rubygem-foreman_discovery-14.0.0-1.el7sat.noarch

How reproducible:
always

Comment 4 Ivan Necas 2019-01-23 16:22:00 UTC
lzap: looks like related to this https://github.com/theforeman/foreman_discovery/pull/468. Do you think this change would be backportable to (sat 6.5/Foreman 1.20) or do we need to come with different fix there?

Comment 5 Lukas Zapletal 2019-01-24 07:42:12 UTC

*** This bug has been marked as a duplicate of bug 1666010 ***