Deploying the hello sample virtual application pattern

The sample virtual application pattern is based on the Hello pattern type and includes example registered users and a sender for messaging.

Procedure

  1. Click Patterns > Virtual Application Patterns.
  2. Select Hello Sample Pattern Type 2.1 from the list of pattern types.
    The Sample Hello Application Only template displays.
  3. Select the Sample Hello Application Only virtual application pattern.
  4. Click Deploy the pattern into the cloud in the Actions column for the pattern that you want to deploy, or select the pattern that you want to deploy and click Deploy near the top of the details page.

On the Configure pane of the Deploy Pattern page:

  1. Edit the name for the deployment, if needed. This name displays on the Instances page after the pattern deploys.
  2. Select the environment profile that you want to use for the deployment.
    • If the Deployment type for the selected environment profile is set to Single cloud:
      • Select a Cloud Group and an IP Group.
        Note: You can also set the IP group for each virtual machine on the Distribute pane. You cannot change the Cloud Group for the deployment after you configure it on this pane.
      • The deployment is limited to a single cloud group.
    • If the Deployment type for the selected environment profile is set to Multi cloud, you select the cloud group and IP group for the deployment later, on the Distribute pane.
  3. Set the priority for the deployment.
  4. Optional: To set up SSH access, use one of the following options in the SSH Key section to set the public key:

    The SSH key provides access to the virtual machines in the cloud group for troubleshooting and maintenance purposes. For more information, see Related tasks.

  5. Modify the deployment schedule as needed:
    • Choose Start now, or choose Start later and select a date and time for the deployment to start.
    • Choose Run indefinitely, or choose Run until and select a date and time for the deployment to end.
  6. Modify the component attributes as needed.

    The attributes that display in the pattern configuration column are attributes from the components in the pattern that are not locked from editing. You can modify existing values or set values that were not specified during pattern creation. Be sure that all required fields have values. Components that have a blue dot next to the name contain required attributes that must be set before the pattern is deployed.

  7. When you are finished configuring all of the fields on the Configure tab,
    • if you chose an environment profile that does not have the IP addresses provided by field set to Pattern Deployer and you do not want to modify the placement, click Quick Deploy. If you choose this option, the deployment process starts. Skip to the "Verify that the deployment was successful" section.
    • if you chose an environment profile that has the IP addresses provided by field set to Pattern Deployer, or you want to modify the placement, click Continue to distribute.

On the Distribute pane:

  1. To edit the network or volume settings for a virtual machine, move the mouse pointer over the virtual machine icon and click the pencil icon.
    1. On the IP Groups tab, you can modify the IP group for each of the NICs in the virtual machine. The IP groups that are listed are the IP groups that are associated with the environment profile that you chose for the deployment.
    2. Click OK when you are finished updating the settings.
  2. When you are finished modifying the settings, click Deploy.

Verify that the deployment was successful:

  1. Click the link in the message that displays, or click Patterns > Virtual Application Instances to view the deployed virtual application instance. In the Pattern Type list, select All or Hello Sample Pattern Type.
    Note: The virtual application pattern takes some time to deploy. Wait for the virtual application instance status to change to Running before you proceed to the next step.
  2. Select the virtual application instance.
  3. In the details pane, expand the Middleware perspective section.
  4. Expand the Hello (Hello_plugin-HVM) section.
  5. Click the Log link in the VM Status column to open the log viewer in a new window.
  6. In the log viewer, expand the IWD Agent section and then expand the ../logs/Hello_Plugin-HVM.XXXX.hello section. Click console.log.
    The log includes messages that are sent by users. The following log excerpt shows an example of the output that is included in the log:
    [2014-06-30 04:10:49,592] Hello/HCenter/changed.py 47121262922944 pid=16205 
    INFO Send the request to get a greeting message from Mike to Alice
    [2014-06-30 04:10:49,859] Hello/HCenter/changed.py 47121262922944 pid=16205 
    INFO Receive the message from hello center: Mike, a kind greeting message from Alice has been sent out
  7. From Patterns > Virtual Application Instances, select the application, and click the Manage button.
  8. Change to the new tab in your browser, which shows the Instance Console.
  9. Choose the Operations tab.
  10. Select Hello. Use the operation to send a message to the HelloCenter and get a response back.
  11. Select HCenter. Use the operation to edit the list of registered users, which affects response messages.

What to do next

To explore the hello sample virtual application pattern in more detail, you can create a clone of it and then customize the clone before you deploy it.