Adding suspend and resume operator actions
This topic describes how to implement the functionality to suspend or resume provisioned VMs or servers from the BMC Cloud Lifecycle Management My Cloud Services Console. Although each implementation of suspend and resume must be customized to the particular environment, you can use these instructions as a guide.
The customization involves:
- Adding a Suspend and Resume item to the Operator Actions menu of the My Cloud Services Console
- Creating a dialog box that displays when the Suspend or Resume menu item is chosen
- Creating workflows that are triggered when the user clicks the button in the dialog box
- Creating an active link that launches the Suspend or Resume workflow
This topic contains the following sections:
Before you begin
- To implement Suspend Resume functionality, you must be familiar with the BMC Remedy Import Tool and BMC Remedy Developer Studio.
- To obtain the suspend resume installation files for the OpenStack resource provider, download and extract the OpenStack Provider 4.1.1 Suspend-Resume for CLM 4.1.00.zip file. You can download the file from BMC Communities.
- Ensure that you have Administrative privileges on the computer(s) on which you are running the .arx and the .def files.
- Ensure that the BMC Remedy Import Tool and BMC Remedy Developer Studio is installed on your computer(s) where you need to import the .arx and the .def files respectively.
To import the suspend and resume data files
Use BMC Remedy Import Tool to create a custom operator action that enables users to use the Suspend Resume feature. Perform the following steps to import the suspend or resume data files for adding Suspend and Resume menu-item to the Operator Actions menu in the BMC Cloud Lifecycle Management My Cloud Services Console:
- Log onto the BMC Remedy Import Tool.
- Select File > New Mapping.
- It displays the Import Mappings screen.
Enter the field values as applicable for importing the respective .arx data files:
- Click Auto Map
.
Click Import > Start Import.
This creates an entry in the following forms for the respective instance when the data file is imported.Form Name
Instance
CMF:OperatorActions
Suspend
CMF:LocaleStringOperatorActions
Suspend
CMF:OperatorActions
Resume
CMF:LocaleStringOperatorActions
Resume
To create Suspend Resume active links
You must create active links in BMC Remedy AR System that launches the BMC AR workflows which handles the Suspend Resume requests. You can use the BMC Remedy Developer Studio to import the respective .def files for suspend and resume, to create the active links.
Creating active link for Suspend operation
Perform the following steps to import the .def file for the Suspend operation:
- Logon to the BMC Remedy Developer Studio as an Administrator.
- Click File > Import. This displays the Import window as shown in the figure below:
- Select ObjectDefinitions and click Next.
- Click Next.
The Import Objects window is displayed, as shown in the following figure: In the Import File field, browse and select the suspend.deffile.
- Click Next. This displays the selected object details in the Object Selection as shown in the figure below:
Click Finish. This will create the active link for the Suspend operation.
Creating active link for Resume operation
Perform steps 1-7 to create the active link for the Resume operation.
Where to go from here
Registering-the-OpenStack-Provider-instance