IP Library › Granted Patent US 10,949,111
Granted Patent B2
US 10,949,111 · App. 16/202,227 · Granted Mar 16, 2021

Updating operating system images of inactive compute instances

Inventors: David Sariel (Raanana, IL); Arie Bregman (Raanana, IL)
Assignee: Red Hat Israel, Ltd.
G06F3/0647G06F3/0604G06F3/067G06F8/65G06F9/4418G06F9/45541
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,949,111
App. No.
16/202,227
Granted
Mar 16, 2021
Kind
B2
Abstract

Updating inactive compute instances is disclosed. It is determined that a first compute instance that boots from an operating system image on a first storage device is in an inactive state. It is determined that updates to the operating system image on the first storage device exist. The operating system image is copied from the first storage device to a second storage device. The operating system image on the second storage device is updated with the updates to generate an updated operating system image on the second storage device. The updated operating system image is copied form the second storage device to the first storage device in place of the operating system image.

Claims (56)

1. A method comprising:

determining that a first compute instance that boots from an operating system image on a first storage device is in an inactive state;

accessing an automatic update indicator that indicates that the first compute instance is to be updated if updates to the operating system image on the first storage device exist;

determining that updates to the operating system image on the first storage device exist;

copying the operating system image from the first storage device to a second storage device based on the automatic update indicator;

updating the operating system image on the second storage device with the updates to generate an updated operating system image on the second storage device; and

copying the updated operating system image from the second storage device to the first storage device in place of the operating system image.

2. The method of claim 1 wherein the inactive state comprises one of a suspended state or a shutdown state.

3. The method of claim 1 wherein the first compute instance comprises a virtual machine or a bare metal machine.

4. The method of claim 1 wherein updating the operating system image on the second storage device further comprises:

initiating a second compute instance from the operating system image on the second storage device; and

initiating an update of the operating system image on the second storage device to generate the updated operating system image on the second storage device.

5. The method of claim 4 wherein the second compute instance comprises a virtual machine.

6. The method of claim 4 wherein initiating the update of the operating system image on the second storage device comprises issuing a YUM update command to a package manager of the operating system image on the second storage device.

7. The method of claim 1 wherein the inactive state comprises a powered off state, and further comprising sending instructions to a base management controller associated with the first compute instance to turn on power to the first storage device.

8. The method of claim 1 further comprising:

after updating the operating system image on the second storage device and prior to copying the updated operating system image to the first storage device, accessing state information associated with the first compute instance; and

based on the state information determining that the first compute instance remains in the inactive state.

9. The method of claim 1 further comprising:

determining that a second compute instance that boots from an operating system image on a third storage device is in an inactive state;

determining that updates to the operating system image on the third storage device exist;

copying the operating system image from the third storage device to a fourth storage device;

updating the operating system image on the fourth storage device with the updates to generate an updated operating system image on the fourth storage device;

accessing state information associated with the second compute instance;

based on the state information associated with the second compute instance determining that the second compute instance has changed from the inactive state to an active state; and

in response to determining that the second compute instance has changed from the inactive state to the active state, canceling the updates to the operating system image on the third storage device by inhibiting the copying of the updated operating system image from the fourth storage device to the third storage device.

10. A computing device, comprising:

a memory; and

a processor device coupled to the memory to:

determine that a first compute instance that boots from an operating system image on a first storage device is in an inactive state;

access an automatic update indicator that indicates that the first compute instance is to be updated if updates to the operating system image on the first storage device exist;

determine that updates to the operating system image on the first storage device exist;

copy the operating system image from the first storage device to a second storage device based on the automatic update indicator;

update the operating system image on the second storage device with the updates to generate an updated operating system image on the second storage device; and

copy the updated operating system image from the second storage device to the first storage device in place of the operating system image.

11. The computing device of claim 10 wherein to update the operating system image on the second storage device, the processor device is further to:

initiate a second compute instance from the operating system image on the second storage device; and

initiate an update of the operating system image on the second storage device to generate the updated operating system image on the second storage device.

12. The computing device of claim 10 wherein the inactive state comprises a powered off state, and wherein the processor device is further to send instructions to a base management controller associated with the first compute instance to turn on power to the first storage device.

13. The computing device of claim 10 wherein the processor device is further to:

after updating the operating system image on the second storage device and prior to copying the updated operating system image to the first storage device, access state information associated with the first compute instance; and

based on the state information determine that the first compute instance remains in the inactive state.

14. A non-transitory computer program product stored on a computer-readable storage medium and including instructions configured to cause a processor device to:

determine that a first compute instance that boots from an operating system image on a first storage device is in an inactive state;

access an automatic update indicator that indicates that the first compute instance is to be updated if updates to the operating system image on the first storage device exist;

determine that updates to the operating system image on the first storage device exist;

copy the operating system image from the first storage device to a second storage device based on the automatic update indicator;

update the operating system image on the second storage device with the updates to generate an updated operating system image on the second storage device; and

copy the updated operating system image from the second storage device to the first storage device in place of the operating system image.

15. The computer program product of claim 14 wherein to update the operating system image on the second storage device, the instructions further cause the processor device to:

initiate a second compute instance from the operating system image on the second storage device; and

initiate an update of the operating system image on the second storage device to generate the updated operating system image on the second storage device.

16. The computer program product of claim 14 wherein the inactive state comprises a powered off state, and wherein the instructions further cause the processor device to send instructions to a base management controller associated with the first compute instance to turn on power to the first storage device.

17. The computer program product of claim 14 wherein the instructions further cause the processor device to:

after updating the operating system image on the second storage device and prior to copying the updated operating system image to the first storage device, access state information associated with the first compute instance; and

based on the state information determine that the first compute instance remains in the inactive state.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 28, 2018
From: SARIEL, DAVID; BREGMAN, ARIE
To: RED HAT ISRAEL, LTD.
Reel/Frame 047603/0307 →
Continuity (1)
Related Publication 20200167094A1 · May 28, 2020