最近的項目中,需要用system center services manager來為使用者呈現服務請求的自動化,在前期使用微軟自己的CSPP(cloud services process pack)做了一下測試,在部署時遇到了一些小問題,這裡跟大家分享一下
具體的部署截圖我就不列舉了,部署是很簡單的,可以參考官方library或者一些部落格文章,我的環境是基于windows server 2012 R2+system center 2012 R2上的;這裡要說明一下SCSM2012 R2使用CSPP for SC2012 SP1是沒有問題的
安裝分為兩部分,上面的CSPP是要在你的SCSM管理伺服器上安裝的,記住是SCSM管理伺服器,不是SCSM DW管理伺服器;第二個是要在orchestrator管理伺服器上安裝的,如果你的SCO是ALL-IN-ONE的話,那麼就直接裝好了,如果是分布式的部署,比如designer和runbook server都拆開了,那麼就要選對機器
<a href="http://blog.51cto.com/attachment/201310/222946646.png" target="_blank"></a>
請注意第二個報錯;提示目前使用者不屬于SCO管理組使用者或不屬于這台伺服器的管理者,可能大家會覺得奇怪,明明部署時把使用者加到了SCO_Admins組裡,甚至現在使用的是域管理者,怎麼還會報錯呢;其實是因為SCO伺服器缺少一個本地使用者組,即“OrchestratorUsersGroup”;知道原因後就好辦了,手動建立一個本地組,注意名稱一定要是上面提到的那個,然後把你安裝賬戶加到這個組裡,重新運作一邊先決條件檢查,就OK了
<a href="http://blog.51cto.com/attachment/201310/223159755.png" target="_blank"></a>
######################################################################
先決條件的問題解決後,再接下來的部署中,可能還會遇到一個問題如下圖:
<a href="http://blog.51cto.com/attachment/201310/223913500.png" target="_blank"></a>
如字面意思所述,無法導入CSPP中的runbook到SCO伺服器上,那麼我們就無法使用SCSM來調用自動化流程建立,更改及退租虛機了;針對于這個報錯,在開發者部落格中是這樣描述的:
The installation of Cloud Services runbooks fails at the step, “Import Cloud services runbooks,” with the error message, “An error occurred while executing the custom action_ImportRunbooks.” The installation log file shows the error, “System.Management.Automation.PSSecurityException: AuthorizationManager check failed.”
To fix the issue
1. Extract all files from “System_Center_Cloud_Services_Process_Pack_Beta.zip” into a folder.
2. Find the folder SCORunbooks under the folder Setup.
3. Right-click on the two PowerShell scripts, ProcessSCORunbook.ps1 and SCO-COM-PowerShell.psm1.
4. On the General tab, click Unblock and Save.
5. Select Setup.exe from the extraction folder used in Step1.
6. Right-click and select Run As Administrator. (Make sure that Setup.exe and the Setup folder are in the same location.)
大家可能對這個right-click之後的“unblock”這個按鈕很困惑。。為什麼找不到這個按鈕呢,其實在新版的作業系統中不必糾結于這個問題,我們直接使用powershell來處理就好
使用unblock-file <file path>即可;然後再以管理者方式運作setup就ok了
本文轉自maomaostyle 51CTO部落格,原文連結:http://blog.51cto.com/maomaostyle/1311064,如需轉載請自行聯系原作者