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 1653558

Summary: creating host on libvirt compute resource fails to retrieve provision template due to ISE: Net::HTTPNotFound
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: Compute Resources - libvirtAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WORKSFORME QA Contact: Jan Hutař <jhutar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: jhutar, lzap, mhulan
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 11:59:58 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:
Attachments:
Description Flags
foremain-tail
none
VM screenshot with the error none

Description Jan Hutař 2018-11-27 06:26:49 UTC
Created attachment 1508759 [details]
foremain-tail

Description of problem:
When creating host on libvirt compute resource, it fails to retrieve provision template due to ISE: Net::HTTPNotFound


Version-Release number of selected component (if applicable):
satellite-6.5.0-5.beta.el7sat.noarch


How reproducible:
always


Steps to Reproduce:
1. Setup provisioning
2. Create libvirt CR
3. Attempt to create a host in that compute resource


Actual results:
VM fails to boot into the anaconda with "failed to fetch kickstart from ...". See attached screenshot.


Expected results:
Should work


Additional info:
On the Satellite, there is:
==> /var/log/foreman/production.log <==
2018-11-27T07:22:36 [I|app|] Started GET "/unattended/provision?token=26ddb4cf-067c-4fe8-b97e-02eac53bef96&url=http%3A%2F%2Fsatellite.nodhcp.local%3A8000" for satellite.nodhcp.local at 2018-11-27 07:22:36 +0100
2018-11-27T07:22:36 [I|app|1125d] Processing by UnattendedController#host_template as TEXT
2018-11-27T07:22:36 [I|app|1125d]   Parameters: {"token"=>"26ddb4cf-067c-4fe8-b97e-02eac53bef96", "url"=>"http://satellite.nodhcp.local:8000", "kind"=>"provision", "unattended"=>{}}
2018-11-27T07:22:36 [E|app|1125d] unattended: unable to find a host that matches the request from 192.168.11.3
2018-11-27T07:22:36 [I|app|1125d]   Rendering text template
2018-11-27T07:22:36 [I|app|1125d]   Rendered text template (0.0ms)
2018-11-27T07:22:36 [I|app|1125d] Completed 404 Not Found in 11ms (Views: 0.3ms | ActiveRecord: 5.2ms)

Comment 1 Jan Hutař 2018-11-27 06:27:49 UTC
Created attachment 1508760 [details]
VM screenshot with the error

Comment 2 Jan Hutař 2018-11-27 06:47:20 UTC
I was able to test bug 1356126, so this is not blocking it.

Comment 5 Marek Hulan 2018-12-03 12:55:04 UTC
Jan, are you sure your VM can correctly resolve http://satellite.nodhcp.local:8000? The Net::HTTPNotFound means some server resolved under this name returned 404. Based on the port, I suppose you're fetching the KS via capsule. Could you provide capsule logs with debug log level from the time the server asks for the template? Could you please also give us production.log with debug log level set? It may be, that the token is expired or was not found for whatever reason. If you have the reproducer, we can take a look together.

Comment 6 Jan Hutař 2018-12-14 14:11:41 UTC
Hello. I need to recreate the setup and retry.

Comment 9 Lukas Zapletal 2019-01-16 09:46:02 UTC
I think that this is expired token, we report 404 on expired tokens which is confusing. Maybe to change that some time in the future.

Comment 10 Jan Hutař 2019-01-24 11:59:58 UTC
I can not reproduce this now. Discussed it with Marek and we decided to close it.