B.1. Working with the Jobs Framework

B.1.1. Jobs Overview
B.1.2. Jobs and Resource Locking
B.1.3. Locks and Multiple Users
B.1.4. Job Failure and Rollback
B.1.5. Jobs and Events
B.1.6. Job States
B.1.7. Starting A Job
B.1.8. Aborting A Job
B.1.9. Determining the Cause of a Job Failure
B.1.10. Acknowledging Events/Errors

Oracle VM Manager uses a job operations framework that supports a flexible approach to the configuration of physical and virtual objects. Oracle VM Manager maintains an accurate and consistent view of the virtualization environment while users perform separate and simultaneous jobs. Each configuration change (a transaction performed by a single user) is considered a job.

The following sections describe jobs, and how resources are locked and released at the start and conclusion of each job, and how to manage jobs.

B.1.1. Jobs Overview

A job is a configuration change that affects one or more physical or virtual objects. Examples of user operations that can be included in a job are:

  • Adding or deleting a server pool

  • Adding a VNIC to a virtual machine

A single job can contain one or many individual operations. When a job is in progress, a yellow lock appears to the left of the resources included in the job.

B.1.2. Jobs and Resource Locking

A single job can contain one or many individual operations. When a job is in progress, a yellow lock appears to the left of the resources included in the job.

Objects involved in a job are locked to all other Oracle VM Manager users until the job is completed or aborted. Only a user with the same permission level on the object can unlock it. This assures that a consistent and accurate view is maintained for all users.

The state of locked objects cannot be known until the locks are cleared. The state of Oracle VM Manager is always accurately reflected by the state of objects that are not locked.

B.1.3. Locks and Multiple Users

A number of different users may perform jobs simultaneously, provided they are performed on different objects. For example, suppose User A has created a Finance-One server pool and begins a job by moving Oracle VM Servers into another server pool. At the same time, User B modifies the resources of the Commodities server pool. Each user has a separate job pane for jobs, and would see each other's objects as locked. The objects remain locked until the jobs are completed.

Prior to completing a job, a lock can be cleared in two ways:

  • By logging out the user who initiated the lock. This action can be performed by the user, or by an Oracle VM Manager administrator.

  • By direct action of an Oracle VM Manager administrator.

As a job completes, its progress is shown in the Jobs tab. All locks are cleared when a job completes.

B.1.4. Job Failure and Rollback

Job operations are validated by Oracle VM Manager as they are added to the Job tab. The failure of any operation causes the following to happen:

  • The job is cancelled.

  • All operations specified by the job are cancelled.

  • The state of Oracle VM Manager is rolled back to the state it was prior to the start of the job.

  • All locks in the operation are released.

B.1.5. Jobs and Events

When a job operation fails, one or more events may be generated and displayed in Oracle VM Manager. Events are flagged with yellow or red icons in the navigation tree. To clear the errors you need to acknowledge the event. To acknowledge events, see Section B.1.10, “Acknowledging Events/Errors”.

To get information on failed events, click Failed Failed Job icon in the Jobs tab or in the Job Summary pane.

B.1.6. Job States

A job listed in the Job tab can have any of the states defined in Table B.1, “Job states”.

Table B.1. Job states

Job State

Definition

Completed

The job has completed.

In Progress

The job is in progress.

Aborted

The job has been aborted. Oracle VM Manager has rolled-back to its previous state and all locks have been released.

Failed

The job has failed. Oracle VM Manager has rolled-back to its previous state and all locks have been released.


B.1.7. Starting A Job

A job begins when you make any change in Oracle VM Manager. Each change you make appears in the Job Summary pane as a discrete operation. Job operations can be comparatively minor actions, such as renaming a virtual machine. Operations may also have a wider scope, such as the creation of a new network or storage device. Performing any of these actions changes the configuration of Oracle VM Manager. When a new job is started, information about the job is displayed in the Job Summary pane at the bottom of the management pane to show the job's progress.

B.1.8. Aborting A Job

If a job is running or fails to complete, you can abort the job to cancel it. For example, a virtual machine or Oracle VM Server may be in an unresponsive state and fail to respond to a start or stop request. The appropriate action is to abort the job. Administrators can abort the jobs of all users.

If you abort a job, all queued operations roll back to the pre-job state. Some job operations, such as renaming an object, complete quickly. Others, such as adjusting the memory used by a virtual machine, take longer.

There are two ways to abort a job:

  • Using the Jobs tab

  • Using the Job Summary pane.

Both procedures for aborting jobs are listed below.

To abort a job using the Jobs tab

  1. Select the Jobs tab.

  2. Select the job in the Jobs table.

  3. Click Abort Job Abort Job icon in the toolbar.

To abort a job using the Job Summary pane:

  1. Select the job in the Job Summary pane.

  2. Click Abort in the Abort column.

B.1.9. Determining the Cause of a Job Failure

If a job succeeds, all operations associated with it performed in Oracle VM Manager. A Job Succeeded message appears in the Job Progress area.

If a job fails, the state of Oracle VM Manager returns to its pre-job state. Click Details to see high-level information on all operations in the job.

Jobs may hang or remain in progress every time a virtual machine is started or stopped. A virtual machine may be in an unresponsive state for a variety of reasons and consequently fail to respond to a start or stop request. The appropriate action in this case is to abort the job. For example, when starting a PVM virtual machine using PXE type boot with an invalid network URL, this causes the virtual machine status to be in progress indefinitely. To resolve this, abort the virtual machine start job. Edit the virtual machine and provide the correct URL.

B.1.10. Acknowledging Events/Errors

If an object has an error event associated with it you must acknowledge the event to clear the error and return the object to normal operations. For example, this can occur if an Oracle VM Server or virtual machine appear as Stopped (Error) in the status. The object in error is flagged with a red icon in the navigation tree. Oracle VM Servers, virtual machines, repositories and storage objects can have error events associated with them. The following procedures show you how to clear errors and return the object to normal operations.

To acknowledge Oracle VM Server error events:

  1. Click the Servers and VMs tab.

  2. Select the Oracle VM Server in the nagivation tree.

  3. Select Events from the Perspective drop-down list in the management pane.

  4. Select the error event and click Acknowledge Acknowledge icon , or click Acknowledge All Acknowledge All icon to clear all errors.

To acknowledge virtual machine error events:

  1. Click the Servers and VMs tab.

  2. Select the server pool, or Oracle VM Server on which the virtual machine resides in the nagivation tree.

  3. Select Virtual Machines from the Perspective drop-down list in the management pane.

  4. Select the virtual machine in the management pane table. Click Display Selected VM Events... Display Selected VM Events... icon .

  5. The Events dialog box is displayed. Select the error event and click Acknowledge Acknowledge icon , or click Acknowledge All Acknowledge All icon to clear all errors. Click Close.

To acknowledge storage repository error events:

  1. Click the Repositories tab.

  2. Select the repository in the nagivation tree.

  3. Select Events from the Perspective drop-down list in the management pane.

  4. Select the error event and click Acknowledge Acknowledge icon , or click Acknowledge All Acknowledge All icon to clear all errors.

To acknowledge storage error events:

  1. Click the Storage tab.

  2. Select File Servers, SAN Servers, or a storage server in the navigation tree..

  3. Select Events from the Perspective drop-down list in the management pane.

  4. Select the error event and click Acknowledge Acknowledge icon , or click Acknowledge All Acknowledge All icon to clear all errors.