Bug #17821

Unable to put host in 'Build' mode if power management is not configured

Added by Shimon Shtein 9 months ago. Updated 9 months ago.

Status:New
Priority:Normal
Assigned To:Shimon Shtein
Category:Unattended installations
Target version:Team Ivan Iteration 7
Difficulty: Bugzilla link:1350164
Found in release: Pull request:
Story points-
Velocity based estimate-

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1350164

Description of problem:

Created a host through Satellite on RHEV-M. When power management is not configured 'Build' button fails to show review dialog which gives option to put host in build mode.

Version-Release number of selected component (if applicable):

Satellite 6.2 Snap 17

How reproducible:

Each time

Steps to Reproduce:
1. Setup RHEV-M where power management not configured.
2. Create host and either cancel build or wait for build process to complete.
3. Try to put host in build mode by selecting Host from All Host tab and clicking on 'Build' button. This fails to show review tab which has two options 'Cancel' or 'Build' hence not possible to again put host in build mode.

Actual results:

The review page does not load as power management is not configured, in production.log it fails with error as below,

| Foreman::Exception: ERF42-9958 [Foreman::Exception]: Unknown power management support - can't continue

Expected results:

The review tab should work, as it works on Satellite 6.1.9

Additional info:

Attaching production.log snip to know full traceback

History

#1 Updated by Shimon Shtein 9 months ago

  • Subject changed from Unable to put host in 'Build' mode if power management is not configured on RHEV to Unable to put host in 'Build' mode if power management is not configured
  • Assigned To set to Shimon Shtein
  • Target version set to Team Ivan Iteration 7

This is due to code in HostsController#setBuild that tries to reboot the host without checking first that the host has valid power control.

Also available in: Atom PDF