Quantcast
Channel: Cloud Training Program
Viewing all articles
Browse latest Browse all 31

[New Feature] Work requests for the Compute service: Oracle Cloud (OCI)

$
0
0

Recent Oracle Update [May 29, 2019]: You can track the status of long-running operations in the Compute service (like Create Instance, Custom Image,  Instance Pool, Updating & Deleting Instance Pool) using work requests.

This post covers:

  • How to create a Compute Instance on Oracle Cloud (OCI).
  • Viewing the State of a Compute Work Request
  • Required IAM Policy
  • Operations that Generate Work Requests
  • Different Work Request States

Create a Compute (Linux/Windows) Instance in Oracle Cloud

1) Log in to the Oracle Cloud account.
Note: If you haven’t registered for the Oracle Cloud Free Trial account yet, then, please Download Step by Step Activity Guide to Register for Oracle Cloud Trial Account

2) Go to the Navigation Menu under Core Infrastructure, click Compute then Instance

Compute Console

3) Select the Compartment, in which you want to create the Compute machine

A compartment is a  logical container within your account used to store Oracle Cloud Infrastructure (OCI) Resources created within that compartment (such as compute, storage, and network) and you impose some policies to that compartment, which restricts who can use the resources created within than compartment other than administrators of your account.

By default, your instance launches in the current compartment, and the resources you choose also come from the current compartment.

To know more about the Compartment, check here

Create Compute Instance in OCI

4) To create a Linux or Windows Machine, click on Create Instance. Fill up the required details

  • When you click Change Image Source, the Browse All Images dialog box opens with the operating system or image source options (To create windows machine, select windows Image)
  • Choose instance type: Select Virtual Machine or Bare Metal Machine.
  • When you click Change Shape, the Browse All Shapes dialog box opens with a list of the virtual machine (VM) or bare metal shapes that are available for the instance type that you selected.

Create_Linux_Machine

  • Add SSH key: The public key portion of the key pair that you want to use for SSH access to the instance. You can drag and drop single key files into the box.

Note: SSH Keys are required only for Linux Machine and not for Windows Machine.

To know how to generate the SSH keys, please download the free Guide from here

SSH Keys

Note: If you are new to Networking, & want to learn more about the Networking Basic Concepts like VCN, Subnet, Security List, IGW, DRG. Then please check here 

VCN in OCI

Once you click Create, you will see your Compute Linux Instance will start provisioning, & its status will change to Available in few minutes

Create Instance in OCI

Create Instance Oracle Cloud InfrastructureAfter the instance is provisioned, details about it appear in the instance list. To view additional details, including IP addresses, click the instance name.

To know more about how to connect to the Compute Instance, check here

Viewing the State of a Compute Work Request

Many of the operations that you can perform in the Compute service do not take effect immediately.

For example, when you create an instance, it might take several minutes for the instance to transition from the provisioning state to running. When you launch a long-running operation, the Compute service spawns a work request.

A work request is an activity log that enables you to track each step in the operation’s progress. If an operation fails, a work request can help you determine which step of the process had an error.

  • Work requests are retained for 12 hours.

Work Request in ComputeRequired IAM Policy

To use Oracle Cloud Infrastructure, you must be given the required type of access in a Policy written by an administrator, whether you’re using the Console or the REST API with an SDK, CLI, or other tools.

To enable users to list all work requests in a tenancy, use the following policy:

Allow group SupportTeam to inspect work-requests in tenancy

Operations that Generate Work Requests

These long-running operations spawn work requests:

  • Creating an instance
  • Creating a custom image
  • Importing or exporting an image
  • Creating an instance pool
  • Updating an instance pool
  • Deleting an instance pool

Different Types of Work Request States

The work request statuses are:

  • ACCEPTED: The request is in the work request queue to be processed.
  • IN_PROGRESS: A work request record exists for the specified request, but there is no associated WORK_COMPLETED record.
  • SUCCEEDED: A work request record exists for this request and an associated WORK_COMPLETED record has the state SUCCEEDED.
  • FAILED: A work request record exists for this request and an associated WORK_COMPLETED record has the state FAILED.
  • CANCELING: The work request is in the process of canceling.
  • CANCELED: The work request has been canceled.

Related/References

Next Task For You

Begin your journey towards becoming an Oracle Cloud Certified Architect Associate by Joining the FREE Masterclass on How To Become Oracle Certified Cloud Architect Associate in 8 Weeks.

Click on the image below to Register for the FREE Masterclass NOW!

FREE Community

Click on the below image to join our FREE Telegram Group.

Telegram Group OCI

The post [New Feature] Work requests for the Compute service: Oracle Cloud (OCI) appeared first on Oracle Trainings.


Viewing all articles
Browse latest Browse all 31

Trending Articles