Bug 1467925

Summary: Host provisioning is in infinite loop w/ 6.3
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: ProvisioningAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, bkearney, dmoessne, ehelms, inecas, mhulan, rplevka, sshtein, swadeley, tstrachota, zhunting
Target Milestone: UnspecifiedKeywords: 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: 2018-02-21 16:42:04 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:
Bug Depends On:    
Bug Blocks: 1490499    

Description Sachin Ghai 2017-07-05 14:20:33 UTC
Description of problem:
I'm trying to provision a host using satellite6.3 snap4 on libvirt CR. Host
is getting provisioned but on next boot it again starts the provisioning.

-- 
# Inform the build system that we are done.
echo "Informing Foreman that we are built"
wget -q -O /dev/null --no-check-certificate http://SAT_SERVER.redhat.com/unattended/provision?token=aff922ea-d868-4d94-8ed4-54573177b8e0
) 2>&1 | tee /root/install.post.log
-- 

ideally it should be like:

# Inform the build system that we are done.
echo "Informing Foreman that we are built"
wget -q -O /dev/null --no-check-certificate http://SAT_SERVER.redhat.com/unattended/built
) 2>&1 | tee /root/install.post.log 


Version-Release number of selected component (if applicable):
sat6.3 snap4

How reproducible:


Steps to Reproduce:
1. create a host on libvirt
2.
3.

Actual results:
 Host is getting provisioned but on next boot it again starts the provisioning.

Expected results:


Additional info:

As per dev Daniel Lobato :

we are probably hitting http://projects.theforeman.org/issues/19745

It was fixed on
https://github.com/Katello/katello/commit/d3541c40379d9dab7f4511199c0f9a0b1228d183

Comment 8 Marek Hulan 2017-08-18 10:49:04 UTC
*** Bug 1482890 has been marked as a duplicate of this bug. ***

Comment 9 Roman Plevka 2017-09-27 19:57:55 UTC
VERIFIED
this has been in since snap #16.

now, testing on snap #17:

```
# Inform the build system that we are done.
echo "Informing Foreman that we are built"
wget -q -O /dev/null --no-check-certificate http://dell-pe-fm120-1b.rhts.eng.bos.redhat.com/unattended/built
) 2>&1 | tee /root/install.post.log
```

- provisioning works as expected, the /built endpoint now renders correctly, updates the host files on tftp to boot from local by default and flips the host.build status to 'installed' successfully.

Comment 10 Bryan Kearney 2018-02-21 16:40:00 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 11 Bryan Kearney 2018-02-21 16:42:04 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336