Project

General

Profile

Bug #25745

hammer host stop results in unknown parent permission

Added by Marek Hulán 11 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inventory
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

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

Description of problem: Executing `hammer host stop --id <ID>` returns "ERF42-5227 [Foreman::Exception]: unknown parent permission for api/v2/hosts#power"

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

How reproducible: Always

Steps to Reproduce:
1. Use VMware ESXi 6.7 as a compute resource
2. Create a VM as a managed host.
3. Execute `hammer host stop --id <ID>`

Actual results: ERF42-5227 [Foreman::Exception]: unknown parent permission for api/v2/hosts#power and the VM remains powered on.

Expected results: The VM is powered off gracefully.

Additional info:

Associated revisions

Revision 77b316f3 (diff)
Added by Marek Hulán 11 months ago

Fixes #25745 - fix permission lookup on custom actions

History

#1 Updated by The Foreman Bot 11 months ago

  • Assignee set to Marek Hulán
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6359 added

#2 Updated by Tomer Brisker 11 months ago

  • Subject changed from hammer host stop results in unknown parent permission to hammer host stop results in unknown parent permission
  • Fixed in Releases 1.21.0 added

#3 Updated by Marek Hulán 11 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF