I am attempting to use the Event Broker mechanism to have an email sent to our vRA Admin group when a VM is deleted. Currently, the conditions I am using are:
Run based on Conditions: All of the following:
Data > Lifecycle state > Lifecycle State Name Equals Constant: Disposing
Data > Lifecycle state > Lifecycle State Phase Equals Constant: PRE
When I watch the system being destroyed, I see it entering the "Disposing" Lifecycle state, but I never see the Orchestrator script being run. There are also no errors logged in vRA in the Monitoring > Log area...
Suggestions for making this fire correctly? is there a set of conditions I could use that would allow me to do this?
Thanks in advance...
Roger
Your first condition is invalid. It needs to be "VMPSMasterWorkflow32.Disposing" and not just "Disposing".
Your first condition is invalid. It needs to be "VMPSMasterWorkflow32.Disposing" and not just "Disposing".
Well, that kind of worked... at least I'm getting a different error now... I'm wondering if VMPSMasterWorkflow32.Disposing has a PRE stage... The documentation says it does...
System.Data.Services.DataServiceException: Resource not found for the segment 'VirtualMachineExts'.
at System.Data.Services.Providers.DataServiceExecutionProviderWrapper.GetSingleResultFromRequest(SegmentInfo segmentInfo)
at System.Data.Services.DataService`1.CompareETagAndWriteResponse(RequestDescription description, IDataService dataService, IODataResponseMessage responseMessage)
at System.Data.Services.DataService`1.SerializeResponseBody(RequestDescription description, IDataService dataService, IODataResponseMessage responseMessage)
at System.Data.Services.DataService`1.HandleRequest()
Any suggestions?
Try POST as I know for sure that combination works.
ACK!!! I forgot to put the Extensibility.Lifecycle.Properties.VMPSMasterWorkflow32.Disposing * entry into the properties....
PRE, EVENT and POST are all stages of Disposing...
more to come.....
System.Data.Services.DataServiceException: Resource not found for the segment 'VirtualMachineExts'.
at System.Data.Services.Providers.DataServiceExecutionProviderWrapper.GetSingleResultFromRequest(SegmentInfo segmentInfo)
at System.Data.Services.DataService`1.CompareETagAndWriteResponse(RequestDescription description, IDataService dataService, IODataResponseMessage responseMessage)
at System.Data.Services.DataService`1.SerializeResponseBody(RequestDescription description, IDataService dataService, IODataResponseMessage responseMessage)
at System.Data.Services.DataService`1.HandleRequest()
More digging...
Are you getting the payload at this point?
I am not... I also tried POST
I also tried POST and MachineType equals Virtual Machine
Same error... suggestion?
So is it invoking your workflow at this point and failing or is it not even invoking it to begin with?
Not getting to the workflow... I've opened a ticket with support
It would seem that one needs to use the right Topic to have the appropriate Lifecycle State to be active... I was using LifeCycle and should have been using Provisioning...
Live and Learn.
Now if I could only get my admin system to behave.....