Creating a RHEL 6.3 service offering
This topic describes the tasks that you must perform in BMC Cloud Lifecycle Management to create the service offering that the end user could then use to provision the application infrastructure (for example, an OS and an application package). It includes the following topics:
- Prerequisites
- To create the service and the service offering
- To create options and option choices for the service offering
- Create option for NTP configuration
- To make the provisioning request
- Before executing the post-deployment option
- To execute the post-deployment option
- To validate the provisioned components
- Where to go next
Prerequisites
Ensure that you have added software with BLPackage as per the given sequence.
To create the service and the service offering
In the BMC Cloud Lifecycle Management Administrator console, you must add a service and a service offering.
To create a service
- From the BMC Cloud Lifecycle Management Administration Console, click the vertical Workspaces menu on the left side of the window, and click Service Catalog.
- In the Service Catalog, click Create a New Service
.
- Enter the service name.
- For Type, select a service type.
- Business service — Services that customers use and that show the customer view of services, such as email or an online store.
Technical service — Supporting IT and infrastructure resources required to support business services that are not visible to customers, such as servers, applications, and network CIs.
- Enter a description of the service.
- Do one of the following actions:
- To create the service offering, click Apply.
- To create the service offering later, click Save to save your selections and close the window.
To create a service offering
- From the BMC Cloud Lifecycle Management Administration Console, click the vertical Workspaces menu on the left side of the window, and click Service Catalog.
- From the Service Catalog, edit or create a service.
In the Service Offering tab, a default service offering is available, which you can edit. - Click Create a New Service Offering.
In the General Information tab, define the options described in the following table.
Option
Description
Default Service Offering
Enable this option to make the selected service offering the default for the service. Unless users select a different service offering, the default service offering is used.
Name
A short, descriptive name for the service offering.
Description
A more detailed description of the service offering.
Service Blueprint
Specify the software and hardware to associate with the service offering by selecting one of the available blueprints.
Service Deployment Definition
Specify how to deploy the selected service blueprint. From the list, select a service deployment definition that is available for the chosen service blueprint.
- Add a Base Customer Price to define the amount charged to the customer for the service offering.
- Add a Base Deployment Cost to define the amount that it costs to provide the service offering.
- Click Apply.
This action activates the Options tab. You now also can create a requestable offering (for example, a request definition or a post-deploy action). For additional information, see Creating-a-requestable-offering in the BMC Cloud Lifecycle Management online technical documentation.
To create options and option choices for the service offering
In the BMC Cloud Lifecycle Management Administrator console, you can add following options and option choices for the service offering.
Option name | Option choice name |
---|---|
NTP configuration | Configure NTP server |
Configure NTP client | |
TFTP installation | Install TFTP |
TFTP configuration | Configure TFTP |
For the RHEL6.3 NTP and TFTP service blueprint, you need to create two separate options to configure NTP and TFTP. These options are post-deployment option to configure NTP and install and configure TFTP.
With configure NTP option, You need to create two separate option choices for NTP server and NTP client.
Create option for NTP configuration
To create NTP configuration option:
- Launch BMC Cloud Lifecycle Management Administration console and click Service Catalog from workspace.
- Click Option Editor. This displays Option Editor window.
- Click Add
to add a New Option.
Enter the Option Name, Option Type and Option Description.
- Click OK to create this option.
Once you have created the option, you need to create the option choices for NTP configuration option.
Create option choice for NTP server
To create option choice with in NTP configuration option:
- Navigate to the Option Editor and select the created option name to create option choice.
- Click Add
to add a new option choice.
- Enter Option Choice and Description.
- Click OK.
- Repeat step 1 to 4 to create option choice for NTP client.
This creates the option choices for NTP server and NTP client.
Configure option choice for RHEL 6.3 NTP server
- Open Option Editor.
- Select the option created for the RHEL6.3 NTP service blueprint .
- Select the option choice for NTP server and click Option Choice Blueprint Configuration Editor
.
- Click Add
to add new blueprint configuration for the selected option choice.
- Select Parameter from the blueprint configuration list.
Enter the Parameter name along with Label and Description.
Parameter
Description
LAN Network
The network range of the NTP clients which are allowed to connect to this machine.
Subnet Mask LAN
The subnet mask of the network range of the clients.
- Click OK.
- Repeat step 5 to 7 to add Subnet Mask LAN parameter name along with Label and Description.
- Once you created both the parameters, Click Add
to add new blueprint configuration for the selected option choice.
- Select Custom Action from the blueprint configuration list.
- Select Action Type as Script.
Enter NSH script name NTPServerInstallationRHEL6.3 in Action.
Click OK to complete the process for NTP server option choice blueprint configuration.
Configure option choice for RHEL 6.3 NTP client
- Open Option Editor.
- Select the option created for the RHEL6.3 NTP service blueprint .
- Select the option choice for NTP client and click Option Choice Blueprint Configuration Editor
.
- Click Add
to add new blueprint configuration for the selected option choice.
- Select Parameter from the blueprint configuration list.
Enter the Parameter name along with Label and Description.
Parameter
Description
First NTP Server IP
IP address of the first NTP server in the LAN.
Second NTP Server IP
IP address of the Second NTP server in the LAN.
- Click OK.
- Repeat step 5 to 7 to add Second NTP Server IP parameter name along with Label and Description.
- Once you created both the parameters, Click Add
to add new blueprint configuration for the selected option choice.
- Select Custom Action from the blueprint configuration list.
- Select Action Type as Script.
Enter NSH script name NTPClientInstallationRHEL6.3 in Action.
- Click OK to complete the process for NTP client option choice blueprint configuration.
Create option for TFTP installation
To create TFTP installation option:
- Launch BMC Cloud Lifecycle Management Administration console and click Service Catalog from workspace.
- Click Option Editor. This displays Option Editor window.
- Click Add
to add a New Option.
- Enter the Option Name, Option Type and Option Description.
- Click OK to create this option.
Once you have created the option, you need to create an option choice.
Create option choice for TFTP installation
To create option choice:
- Navigate to the Option Editor and select the created option name to create option choice.
- Click Add
to add a new option choice.
- Enter Option Choice and Description.
- Click OK.
This creates the option choices for TFTP installation.
Configure option choice for RHEL 6.3 TFTP installation
- Open Option Editor.
- Select the TFTP installation option.
- Select the option choice for TFTP and click Option Choice Blueprint Configuration Editor
.
- Click Add
to add new blueprint configuration for the selected option choice.
- Select Software packages from the blueprint configuration list.
- Enter RHEL 6.3 NTP software package from Available software package from product catalog list.
- Click OK.
This completes the process for install TFTP option choice blueprint configuration.
Create option for TFTP Configuration
To create TFTP configuration option:
- Launch BMC Cloud Lifecycle Management Administration console and click Service Catalog from workspace.
- Click Option Editor. This displays Option Editor window.
- Click Add
to add a New Option.
- Enter the Option Name, Option Type and Option Description.
- Click OK to create this option.
Once you have created the option, you need to create an option choice.
Create option choice for TFTP configuration
To create option choice:
- Navigate to the Option Editor and select the created option name to create option choice.
- Click Add
to add a new option choice.
- Enter Option Choice and Description.
- Click OK.
This creates the option choices for TFTP configuration.
Configure option choice for RHEL 6.3 TFTP configuration
- Open Option Editor.
- Select the option created for the RHEL6.3 TFTP service blueprint .
- Select the option choice for TFTP configuration and click Option Choice Blueprint Configuration Editor
.
- Click Add
to add new blueprint configuration for the selected option choice.
- Select Custom Action from the blueprint configuration list.
- Select Action Type as Script.
- Enter NSH script name TFTPInstallationRHEL6.3 in Action.
- Click OK to complete the process for TFTP option choice blueprint configuration.
To make the provisioning request
- Access Workspaces > Service Instances to display the Service Instances workspace, and click New Service Request.
- In the New Service Request dialog box, click the server provisioning service you want to display the Submit Request dialog box.
- Enter the data in the required fields to complete the request for an instance of the service request. You can click Next to review the details.
- Click Submit. The request is added to the Pending Activity list in the Service Instances window.
The request status is displayed in the Pending Activity list of the Service Instances window. You can double-click on the service request to see its detailed information.
For more detailed procedures, see Requesting cloud services.
Before executing the post-deployment option
Once provisioning is complete, you need to execute post-deployment option to install and configure NTP and TFTP with RHEL6.3.
To execute post-deployment option:
- From the BMC Cloud Lifecycle Management Administration Console, click the vertical Workspaces menu on the left side of the window, and click Service Instances.
- In the Service Catalog, click My Services > Servers.
- Check the assigned IP address for the host machine you provisioned.
Connect to given IP using SSH client and run the following command:
route -n- Copy the IP address and SubnetMask from your own network range. You need to provide this input while running the post installation option for NTP.
To execute the post-deployment option
- From the BMC Cloud Lifecycle Management Administration Console, click the vertical Workspaces menu on the left side of the window, and click Service Instances.
- In the Service Catalog, click My Services > Servers.
- Double-click on RHEL6.3 Server and click Post-Deployment
.
- Select NTP or TFTP post-deployment option to execute.
To add parameters
While running post-deployment options for NTP Server, you need to specify the following Parameters:
Parameter | Description |
---|---|
LAN Network | The network range of the NTP clients which are allowed to connect to this machine. This input collected using route -n command. |
Subnet Mask LAN | The subnet mask of the network range of the clients. This input collected using route -n command. |
While running post-deployment options for NTP Client, you need to specify the following Parameters:
Parameter | Description |
---|---|
First NTP Server IP | IP address of the first NTP server in the LAN. |
Second NTP Server IP | IP address of the Second NTP server in the LAN (if any). |
To validate the provisioned components
After provisioning the blueprint, you can validate the NTP and TFTP components setup in your environment.
Component name | How to verify | Results |
---|---|---|
NTP installation | To check if NTP rpm has been installed successfully, run the following command: rpm -qa | grep -iw ntp | It displays following output: ntp-4.2.2p1-15.el5_7.1 |
NTPD service | To check if NTPD service is running, run the following command: service ntpd status | It displays following output: ntpd (pid 30927) is running... |
NTP listening port | To check if NTP is listening on port 123 with UDP protocol, run the following command: netstat -apun | grep -i ntp | It displays the following output: udp 0 0 10.129.62.82:123 0.0.0.0:* 30927/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 30927/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 30927/ntpd udp 0 0 :::123 :::* 30927/ntpd |
NTP client server communication | To check if NTP client is able to able to communicate with NTP server, run the following command: ntpdate -b ntpserverip or ntpdate -b 10.129.62.26 | If communication is established, it displays the following output: ntpdate[31346]: step time server 10.129.62.26 offset -0.003250 sec If communication is not established, it displays the following output: ntpdate[31260]: the NTP socket is in use, exiting |
Start NTP service | To start NTP service, run the following command: service ntpd start | Starts the NTP service. |
Stop NTP service | To stop NTP service, run the following command: service ntpd stop | Stops the NTP service. |
xinetd and tftp-server installation | To check xinetd and tftp-server installation, run the following command: rpm -qa | grep -i tftp-server rpm -qa | grep -i xinetd | It displays the following output: xinetd-2.3.14-17.el5.x86_64 tftp-server-0.49-2.x86_64 |
xinetd service port | To check if xinetd service port is listening on port 69, run the following command: netstat -aunp | grep 69 | It displays the following output: udp 0 0 0.0.0.0:69 0.0.0.0:* xxxx/xinetd |
xinetd service status | To check if xinetd service is running, run the following command: service xinetd status | It displays the following output: xinetd (pid xxxx) is running |
Verify TFTP server | To verify TFTP server, run the following command from TFTP client: tftp tftp-server-ip for ex tftp 10.128.76.337 | It displays the TFTP server status. |
Where to go next
Once you have created the service offering, the cloud end user can request a service offering from the My Cloud Services Console. To view a list of tasks the cloud end user can perform to manage your cloud services, see Managing-cloud-services.