- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Provisioning Workflows
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 09:12 AM
02-05-2024 09:12 AM
Provisioning Workflows
Hi there,
I’m trying to enhance my workflow by adding in pre-provisioning tasks to check for things like hostnames already exist in Active Directory etc.
I’ve added my tasks in the pre-provisioning phases, yet the tasks seem to only run after the provisioning of the VM. (Which the defeats the purpose of the task).
How do I set the order of which tasks in the different phases of a provisioning workflow?
Thank you.
- Tags:
- Workflows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 11:19 AM
02-05-2024 11:19 AM
Re: Provisioning Workflows
Hi Chris,
Sorry if I wasn’t clear.
So I requested a fresh new VM via the catalog which is linked to that workflow where i’ve added in that precheck task in the configuration phase as per the screenshots above.
After i submitted my request via catalog i went to review the history and i can see it has gone straight to the provisioning and not triggered the configuration task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 09:44 AM
02-05-2024 09:44 AM
Re: Provisioning Workflows
This could be handled in the configuration phase. That phase is synchronous with between user order and beginning the clone operations of the system. There are a few posts in here around hostname or IP address with configuration phase that you may find useful for starting points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 10:26 AM
02-05-2024 10:26 AM
Re: Provisioning Workflows
See specifically this:
Only the “Configuration” phase runs before clone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 10:46 AM
02-05-2024 10:46 AM
Re: Provisioning Workflows
Hi Chris,
I have added in the task in the Configuration phase like so
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 07:49 AM
02-06-2024 07:49 AM
Re: Provisioning Workflows
Hi Chris,
V.6.0.2
We have tried powershell also. It’s more of the fact it’s not launching the configuration phase task at all. As it doesn’t execute ansible locally it launches an ansible job inside ansible tower.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 10:12 AM
02-05-2024 10:12 AM
Re: Provisioning Workflows
Hi @cbunge
Thank you for a speedy response.
I have tried adding in the task in all phases of the workflow - but it appears to clone the machine first and then run the task which is what i to prevent depending on the outcome of the task, i.e. something exists already.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 04:18 PM
02-05-2024 04:18 PM
Re: Provisioning Workflows
What version are you on of Morpheus? Does it work if you select the workflow using standard instances? What about different scripting language besides Ansible? Curious if the command bus of Ansible can’t do anything since there is no agent at that stage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 10:46 AM
02-05-2024 10:46 AM
Re: Provisioning Workflows
And then when i’ve triggered the workflow via the catalog it has gone straight to the Provisioning stage.
I am unable to see where it has attempted to run the configuration task when i review the history.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 11:00 AM
02-05-2024 11:00 AM
Re: Provisioning Workflows
When you state “triggered the workflow vai the catalog”, are you stating you’ve kicked off a new VM build? Configuration phase would only execute on a new build just prior to the clone of the system. If you manually run a workflow against a system post, there is no config phase.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 04:56 AM
02-09-2024 04:56 AM
Re: Provisioning Workflows
Have you tried expanding the “Provision” group on the History tab? I notice your screen shot only shows it collapsed. I’m fairly sure I’ve done something similar to what you are trying to do and it worked just fine… The Task would show up before “Deploy Virtual Machine” in the list of things it is doing inside the “Provision” item you are showing collapsed…
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 08:37 AM
02-12-2024 08:37 AM
Re: Provisioning Workflows
Hi @mussont
I have indeed, and still doesn’t show any output for the configuration task.
And i can’t see the output in Ansible Tower side as no job has been launched sadly.