Project

General

Profile

Actions

Bug #25717

closed

Bootdisk provision_method not available in API (docs)

Added by Bernhard Suttner over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

In the apipie documentation, the provision_method bootdisk doesn't exist - therefore hammer cli can't deploy with bootdisk.

I added some logging entries. The registries/foreman/plugin.rb#provision_method is called AFTER models/host/managed.rb#provison_method. Means, the bootdisk plugin "registers" as a plugin but at this time, the apipie already got the available provison_methods from host/managed.rb

See:
----
2018-12-17T22:11:33 [W|app|] Creating scope :path_of. Overwriting existing method Taxonomy.path_of.
2018-12-17T22:11:39 [W|app|] Creating scope :path_of. Overwriting existing method Hostgroup.path_of.
2018-12-17T22:11:39 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2018-12-17T22:11:41 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2018-12-17T22:11:41 [E|app|] YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY return registered: {} -- registered_provision_methods
2018-12-17T22:11:41 [E|app|] YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY return registered: {} -- registered_provision_methods

2018-12-17T22:11:43 [W|app|] Scoped order is ignored, it's forced to be batch order.

2018-12-17T22:11:45 [E|app|] XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX with bootdisk -- provision_method
---

I changed the provision_method in registries/foreman/plugin.rb and added the following line:
Host::Managed.provision_methods.keys

Unfortunately, this doesn't work as expected. The bootdisk plugin is still missing:
2018-12-17T22:11:45 [E|app|] XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX with bootdisk -- provision_method
2018-12-17T22:11:45 [E|app|] YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY return registered: {} -- registered_provision_methods


Related issues 6 (1 open5 closed)

Related to Foreman - Bug #22557: provision_method in host create API should list possible values in param typeClosedTomáš Strachota02/12/2018Actions
Related to Katello - Bug #17208: Unable to filter Errata's applicable content hosts by environment using corresponding env dropdownClosedAndrew Kofink11/03/2016Actions
Related to Hammer CLI - Bug #26099: Unable to build VM with bootdisk option using hammer-cli-foremanResolvedActions
Blocks Katello - Bug #25820: Use string in `add_controller_action_scope`ClosedIvan NecasActions
Blocks OpenSCAP - Bug #25821: Use string in `add_controller_action_scope`ClosedIvan NecasActions
Blocks Foreman - Refactor #25822: Ensure api controllers are not loaded until plugins are registered NewActions
Actions

Also available in: Atom PDF