Wednesday, 2 April 2014

Windows Azure Pack: VM Cloud Automation not triggering SMA runbooks

Hello,

For the last couple of weeks I've been extensively working with Windows Azure Pack. I'm implementing minimal deployment architecture as described on this Technet page: Windows Azure Pack architecture. During deployment I ran into numerous problems and mostly managed to solve them, but I've spent ample amount of time. I will try to point on some of the issues in a few blog articles to follow. Here is the first one in the series.

Issue #1: VM Cloud Automation not triggering SMA runbooks

Background:
SMA feature is installed on a separate machine and Service Management Automation endpoint is successfully registered in WAP Service Management Portal:



Service Management Automation endpoint has also been registered in VM Clouds section of the WAP Service Management Portal:



Actions have been linked with Runbooks:



 However, they are not being triggered and there are no meaningful logs recorded in the Event logs.

If you take a look at the following picture from Technet you will see that Runbooks should be triggered from SPF machine:


This process is described here in more detail.

The solution in my case was to add SPF Application Pool Identity account to the local group smaAdminGroup on the SMA machine.

This is excerpt from the IIS log from SMA machine before:

2014-04-02 08:04:47 172.20.14.44 GET /00000000-0000-0000-0000-000000000000/Runbooks() $filter=RunbookName%20eq%20'Demo-Managing-VirtualMachineManager' 9090 CLOUD\scspf-svc 172.20.14.42 Microsoft+ADO.NET+Data+Services - 401 2 5 0
2014-04-02 08:04:47 172.20.14.44 GET /00000000-0000-0000-0000-000000000000/Runbooks() $filter=RunbookName%20eq%20'Demo-Managing-VirtualMachineManager' 9090 - 172.20.14.42 Microsoft+ADO.NET+Data+Services - 401 2 5 15


and after:

2014-04-02 08:11:19 172.20.14.44 GET /00000000-0000-0000-0000-000000000000/Runbooks() $filter=RunbookName%20eq%20'Demo-Managing-VirtualMachineManager' 9090 - 172.20.14.42 Microsoft+ADO.NET+Data+Services - 401 2 5 31
2014-04-02 08:11:19 172.20.14.44 GET /OrchestratorService.svc/Runbooks() $filter=RunbookName%20eq%20'Demo-Managing-VirtualMachineManager' 9090 CLOUD\scspf-svc 172.20.14.42 Microsoft+ADO.NET+Data+Services - 200 0 0 31
2014-04-02 08:11:19 172.20.14.44 POST /00000000-0000-0000-0000-000000000000/Runbooks(guid'508bf1fe-7afc-4630-9ac6-05749bbb61a0')/Start - 9090 - 172.20.14.42 Microsoft+ADO.NET+Data+Services - 401 2 5 0
2014-04-02 08:11:19 172.20.14.44 POST /OrchestratorService.svc/Runbooks(guid'508bf1fe-7afc-4630-9ac6-05749bbb61a0')/Start/ - 9090 CLOUD\scspf-svc 172.20.14.42 Microsoft+ADO.NET+Data+Services - 200 0 0 656


I hope this information helps someone.

Regards,
Dinko


1 comment:

  1. I owe you a beer. This was the exact same problem I was having, and I had no idea how to troubleshoot it. Thanks!

    ReplyDelete