Beginner question - Valid "Provisioning Entry Points"


#1

I am new to manageIQ automation. I am stuck with an basic question:

What are valid Provisioning Entry Points to use in the service catalog?

Reason for asking:
With entry point /Infrastructure/VM/Provisioning/StateMachines/VMProvision_Template/clone_to_template the method
/Infrastructure/VM/Provisioning/StateMachines/VMProvision_Template/update_provision_status fails with
Method STDERR: <code: prov.message = status>:24:in <main>': undefined methodmessage=’ for nil:NilClass (NoMethodError)

When running update_provision_status I see no value in $evm.root[‘miq_provision’]

But I don’t know where this is supposed to be set.

Thanx for looking at a beginner question!


#2

Hi @marioland,

You will want to use an instance from Service/Provisioning/StateMachines/ServiceProvision_Template namespace.

For a catalog item you can use: default, clone_to_service or CatalogItemInitialization.
For a catalog bundle: CatalogBundleInitialization

I also recommend checking out the following items:
Chapter 17 - Working with Services here:
https://pemcg.gitbooks.io/introduction-to-cloudforms-automation/content/chapter17/working_with_services.html

Section 17.3 - Catalog{Item,Bundle}Initialization
https://pemcg.gitbooks.io/introduction-to-cloudforms-automation/content/chapter17/catalogiteminitialization.html


#3

Thank you. This worked :slight_smile: