HPE Morpheus Enterprise Software
1856318 Members
7715 Online
104111 Solutions
New Discussion

Re: Provision Workflow for custom instance

 
Ibrahim-GCC
Regular Advisor

Provision Workflow for custom instance

We have created a custom instance type and calling the provision workflow (which has tasks attached). The tasks added in the workflow are Provision, Start, Stop, Shutdown & startup. As we tried to start & restart the instance it is hitting the tasks for respective functions. However, if we try to stop the instance it’s not hitting the task in the workflow. Could you please let us know where to add the task to enable this functionality.

We have created one more task for deletion but in the Morpheus we don’t see any option to add task in the provisioning workflow. Could you please let us know where to add the task to enable this functionality in the workflow.

12 REPLIES 12
cbunge
HPE Pro

Re: Provision Workflow for custom instance

@ibrahim I’m not really sure what your ask is.

If you want scripts to run when you delete a VM, you put them in the Teardown phase.

Not applicable

Re: Provision Workflow for custom instance

The “Stop Server” action you executed was on a linux vm instance?

Ibrahim-GCC
Regular Advisor

Re: Provision Workflow for custom instance


I am not able to attach the current log file.

Not applicable

Re: Provision Workflow for custom instance

Could you trigger just the stop server action and share the screenshot and logs from morpheus-ui current file please?

Not applicable

Re: Provision Workflow for custom instance

is that workflow attached to the layout of that instance type?

cbunge
HPE Pro

Re: Provision Workflow for custom instance

How are you determining the stop script is not executing?

For details on what the phases do you can see this link.

Teardown = Deletion.

Not applicable

Re: Provision Workflow for custom instance

Hi @ibrahim

If you put the script in Shutdown phase it will execute it when the action Stop Server is triggered.

Example:

Provisioning workflow:

Task:

provisioning workflow attached to layour:

Actions → Stop Server triggered from instance details page. The task is executed prior to the shutdown

Logs:

Hope this helps.

Thanks,
Anish.

Ibrahim-GCC
Regular Advisor

Re: Provision Workflow for custom instance

Hi @aabraham ,

If you see in the above screenshot, I have already added in the shutdown phase however its only triggering during our restart server phase only.

Regards,
Ibrahim K

Ibrahim-GCC
Regular Advisor

Re: Provision Workflow for custom instance

Ibrahim-GCC
Regular Advisor

Re: Provision Workflow for custom instance

Hi Cbunge,

Do we have any method for stop script which is available for deletion = teardown?

Ibrahim-GCC
Regular Advisor

Re: Provision Workflow for custom instance

Yes,

Ibrahim-GCC
Regular Advisor

Re: Provision Workflow for custom instance

@cbunge - My request is we have the option to put the vm delete script in teardown phase. Is there any same option is available for stop a VM?