Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

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

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

  1. From the BMC Cloud Lifecycle Management Administration Console, click the vertical Workspaces menu on the left side of the window, and click Service Catalog.
  2. In the Service Catalog, click Create a New Serviceservicecatalog_newservice_button.png.
  3. Enter the service name.
  4. 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.

      Note

      After you select the type and save the service, you cannot change the type.

  5. Enter a description of the service.
  6. 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

  1. From the BMC Cloud Lifecycle Management Administration Console, click the vertical Workspaces menu on the left side of the window, and click Service Catalog.
  2. From the Service Catalog, edit or create a service.
    In the Service Offering tab, a default service offering is available, which you can edit.
  3. Click Create a New Service Offering.
  4. 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.

  5. Add a Base Customer Price to define the amount charged to the customer for the service offering.
  6. Add a Base Deployment Cost to define the amount that it costs to provide the service offering.
  7. 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.

With RHEL 6.3 and later versions, NTP is installed with RHEL template. You need to configure NTP server or client as per your environment.

Create option for NTP configuration

To create NTP configuration option:

  1. Launch BMC Cloud Lifecycle Management Administration console and click Service Catalog from workspace.
    Option Editor.PNG
  2. Click Option Editor. This displays Option Editor window.
    OptionEditor1.PNG
  3. Click Add AddSign.PNG to add a New Option.
    OccNTP1.png
  4. Enter the Option Name, Option Type and Option Description.

    Ensure that you have selected the Option Type as post-deploy action.

  5. Click OK to create this option. 

Once you have created the option, you need to create the option choices for NTP configuration option.

For NTP option, NTP Server and NTP Client option choices are created.

Create option choice for NTP server

To create option choice with in NTP configuration option:

  1. Navigate to the Option Editor and select the created option name to create option choice.
    OC1.PNG
  2. Click Add AddSign.PNG to add a new option choice.
    OCconfig.png
  3. Enter Option Choice and Description.
  4. Click OK.
  5. 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

  1. Open Option Editor.
  2. Select the option created for the RHEL6.3 NTP service blueprint .
  3. Select the option choice for NTP server and click Option Choice Blueprint Configuration Editor BLC.PNG.
  4. Click Add AddSign.PNG to add new blueprint configuration for the selected option choice.
  5. Select Parameter from the blueprint configuration list.
    BC1.PNG
  6. Enter the Parameter name along with Label and Description.
    2.jpg

    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.

  7. Click OK.
  8. Repeat step 5 to 7 to add Subnet Mask LAN parameter name along with Label and Description.
  9. Once you created both the parameters, Click Add AddSign.PNG to add new blueprint configuration for the selected option choice.
  10. Select Custom Action from the blueprint configuration list.
    OCconfig1.png
  11. Select Action Type as Script.
    4.jpg
  12. Enter NSH script name NTPServerInstallationRHEL6.3 in Action.

    NSH script name must be same as you have imported in BMC Server Automation.

  13. Click OK to complete the process for NTP server option choice blueprint configuration.

     

Configure option choice for RHEL 6.3 NTP client

  1. Open Option Editor.
  2. Select the option created for the RHEL6.3 NTP service blueprint .
  3. Select the option choice for NTP client and click Option Choice Blueprint Configuration Editor BLC.PNG.
  4. Click Add AddSign.PNG to add new blueprint configuration for the selected option choice.
  5. Select Parameter from the blueprint configuration list.
    BC2.PNG
  6. Enter the Parameter name along with Label and Description.
    a.jpg

    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.

  7. Click OK.
  8. Repeat step 5 to 7 to add Second NTP Server IP parameter name along with Label and Description.
  9. Once you created both the parameters, Click Add AddSign.PNG to add new blueprint configuration for the selected option choice.
  10. Select Custom Action from the blueprint configuration list.
    OCconfig1.png
  11. Select Action Type as Script.
    c.jpg
  12. Enter NSH script name NTPClientInstallationRHEL6.3 in Action.

    NSH script name must be same as you have imported in BMC Server Automation.

  13. Click OK to complete the process for NTP client option choice blueprint configuration.

Create option for TFTP installation

To create TFTP installation option:

  1. Launch BMC Cloud Lifecycle Management Administration console and click Service Catalog from workspace.
    Option Editor.PNG
  2. Click Option Editor. This displays Option Editor window.
    OptionEditor1.PNG
  3. Click Add AddSign.PNG to add a New Option.
    tftp1.png
  4. Enter the Option Name, Option Type and Option Description.
  5. 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:

  1. Navigate to the Option Editor and select the created option name to create option choice.
    TFTP2.PNG
  2. Click Add AddSign.PNG to add a new option choice.
    OCTFTp.png
  3. Enter Option Choice and Description.
  4. Click OK.

This creates the option choices for TFTP installation.

Configure option choice for RHEL 6.3 TFTP installation

  1. Open Option Editor.
  2. Select the TFTP installation option.
  3. Select the option choice for TFTP and click Option Choice Blueprint Configuration Editor BLC.PNG.
  4. Click Add AddSign.PNG to add new blueprint configuration for the selected option choice.
  5. Select Software packages from the blueprint configuration list.
    OCTFTp1.png
  6. Enter RHEL 6.3 NTP software package from Available software package from product catalog list.
  7. Click OK.

This completes the process for install TFTP option choice blueprint configuration.

Create option for TFTP Configuration

To create TFTP configuration option:

  1. Launch BMC Cloud Lifecycle Management Administration console and click Service Catalog from workspace.
    Option Editor.PNG
  2. Click Option Editor. This displays Option Editor window.
    OptionEditor1.PNG
  3. Click Add AddSign.PNG to add a New Option.
    OCTFTp2.png
  4. Enter the Option Name, Option Type and Option Description.
  5. 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:

  1. Navigate to the Option Editor and select the created option name to create option choice.
    TFTP2.PNG
  2. Click Add AddSign.PNG to add a new option choice.
    OCTFTP3.png
  3. Enter Option Choice and Description.
  4. Click OK.

This creates the option choices for TFTP configuration.

Configure option choice for RHEL 6.3 TFTP configuration

  1. Open Option Editor.
  2. Select the option created for the RHEL6.3 TFTP service blueprint .
  3. Select the option choice for TFTP configuration and click Option Choice Blueprint Configuration Editor BLC.PNG.
  4. Click Add AddSign.PNG to add new blueprint configuration for the selected option choice.
  5. Select Custom Action from the blueprint configuration list.
    BC3tftp.PNG
  6. Select Action Type as Script.
    Cust1.png
  7. Enter NSH script name TFTPInstallationRHEL6.3 in Action.
  8. Click OK to complete the process for TFTP option choice blueprint configuration.

To make the provisioning request

  1. Access Workspaces > Service Instances to display the Service Instances workspace, and click New Service Request.

    serviceinstances_request1.png
  2. In the New Service Request dialog box, click the server provisioning service you want to display the Submit Request dialog box.

    serviceinstances_request_submit.png
  3. 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.
  4. 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:

  1. From the BMC Cloud Lifecycle Management Administration Console, click the vertical Workspaces menu on the left side of the window, and click Service Instances.
  2. In the Service Catalog, click My Services > Servers.
  3. Check the assigned IP address for the host machine you provisioned.
    IP.PNG
  4. Connect to given IP using SSH client and run the following command:

    route -n
  5. 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

  1. From the BMC Cloud Lifecycle Management Administration Console, click the vertical Workspaces menu on the left side of the window, and click Service Instances.
  2. In the Service Catalog, click My Services > Servers.
  3. Double-click on RHEL6.3 Server and click Post-DeploymentPDICON.PNG.
  4. 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:

server.png

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:

clienjt.png

 

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).

TFTP post-deployment option does not require any parameters.

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.

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*