How to create a virtual machine through the service item

Hi, Im working on evm 5.6.

before I through Provide the service item to create it virtual machine. But when it is created half, it will be split into two services, Can’t meet my needs.

Now I create openstack service item, like this

But its value cannot be modified, So I through provider automte method

And created the service dialogs, like this

But when I will cloud_tenant were added, service provision errors, like this

INFO -- :  <AEMethod [/ManageIQ/Cloud/VM/Provisioning/StateMachines/Methods/check_provisioned]> Starting
INFO -- :  <AEMethod check_provisioned> ProvisionCheck returned <error> for state <finished> and status <Error>
INFO -- :  <AEMethod [/ManageIQ/Cloud/VM/Provisioning/StateMachines/Methods/check_provisioned]> Ending
INFO -- :  Method exited with rc=MIQ_OK
INFO -- :  Followed  Relationship [miqaedb:/Cloud/VM/Provisioning/StateMachines/Methods/CheckProvisioned#create]
INFO -- :  Processed  State=[CheckProvisioned] with Result=[error]
WARN -- :  Error in State=[CheckProvisioned]
INFO -- :  In State=[CheckProvisioned], invoking [on_error] method=[update_provision_status(status => '[NoMethodError]: undefined method `[]' for nil:NilClass')]
INFO -- :  Updated namespace [Cloud/VM/Provisioning/StateMachines/VMProvision_vm/update_provision_status  CloudForms_Essentials/Cloud/VM/Provisioning/StateMachines]
INFO -- :  Invoking [inline] method [/CloudForms_Essentials/Cloud/VM/Provisioning/StateMachines/VMProvision_VM/update_provision_status] with inputs [{}]

Then I have a few questions, Can I put the VM Provision Dialogs added to Service Dialogs? If can do the best, I don’t have many trouble.

Who know how to do? Thank.

@blomquisg can you review this question from @anyisalin and forward to a SME if necessary.
Copying @ramrexx since it appears you may be able to help.

@anyisalin - I am not sure how you initially created the catalog item but have a look at “Creating the Service Catalog Item” for help with creating the item and hooking it up to the CatalogItemInitialization state machine.

1 Like