Hide Forgot
This was discovered in a foreman discovery plugin, where the controllers were wrapped in explicit transactions (which itself should not be considered harmful). However, trying to do this, the post_commit orchestration gets triggered even if the pre_commit phase fails and rolls back. I'm filling this bug in mainly for tracking the limitations of the current orchestration that has not simple solution without rethinking the way we do the provisioning orchestration. Triage: Fixed upstream, we want this in 6.2.z, please ack as this can be pain when error occurs during New Host form (orchestration triggers which is unexpected). QA: Try to provision discovered host with DNS proxy down (turn off the feature and restart proxy), it should rollback successfully.
Moving to POST since upstream bug http://projects.theforeman.org/issues/12256 has been closed
Verification steps: 1. Setup satellite with livbirt CR 2. Turn off dns in proxy by: # satellite-installer --foreman-proxy-dns false # systemctl restart foreman-proxy 3. Provision a host in subscription-manager using PXE option Observations/Results: 1. Discovery menu showed failed status (see screenshot) 2. Host is discovered in Satellite6 UI. Trying to auto provision the host shows the failure as expected (see screenshot)
That does not cover it: 1) Setup Satellite with Capsule correctly (with DNS and everything) 2) Check the PXE provisioning works (New Host, MAC, Submit, OK) 3) Discover a host 4) Disable DNS on capsule (installer or foreman-proxy/settings.d/dns.yaml set to false and restart) 5) Provision the discovered host A standard error should be reported.
Verified in satellite-6.2.1-1.2.el7sat.noarch 1) Setup Satellite with Capsule correctly (with DNS and everything) 2) Check the PXE provisioning works (New Host, MAC, Submit, OK) 3) Discover a host 4) Make sure the host is shown in Hosts -> Discovered hosts 4) Disable DNS on capsule (installer or foreman-proxy/settings.d/dns.yaml set to false and restart) 5) Provision the discovered host via UI 6) An error message is shown in the UI which is captured in the attachment `discovered host provision with no dns` A standard error should be reported.
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/RHBA-2016:1615
*** Bug 1357583 has been marked as a duplicate of this bug. ***