How to upgrade Redhat Atomic Host ?

In this article I am going to show how to upgrade the RHEL Atomic Host.

Step 1 : I have installed the RHEL Atomic host on VMware workstation.

Step 2 : Checked the current version using below commands.

-bash-4.2# atomic status -p
============================================================
* DEFAULT ON BOOT
—————————————-
version    7.0.0
timestamp  2014-11-01 20:22:01
id         dcf0c846ff87f251d48439f6c90948f1183654a9b9d46b28c3f5e0f42c1ddf8e.0
osname     rhel-atomic-host
refspec    rhel-atomic-host-beta-ostree:rhel-atomic-host/7/x86_64/standard
============================================================

-bash-4.2# rpm-ostree status
VERSION   ID             OSNAME               REFSPEC
* 7.0.0     dcf0c846ff     rhel-atomic-host     rhel-atomic-host-beta-ostree:rhel-atomic-host/7/x86_64/standard

Step 3 : Registered the system using subscription manager.

-bash-4.2# subscription-manager list

+——————————————-+
Installed Product Status
+——————————————-+
Product Name:   Red Hat Enterprise Linux Server
Product ID:     69
Version:        7.0
Arch:           x86_64
Status:         Subscribed
Status Details:
Starts:         03/05/2015
Ends:           04/03/2015

Product Name:   Red Hat Enterprise Linux Atomic Host Beta
Product ID:     272
Version:        7-Beta
Arch:           x86_64
Status:         Subscribed
Status Details:
Starts:         03/05/2015
Ends:           04/03/2015

Step 4 : Issue the below command to start the upgrade process.

-bash-4.2# atomic upgrade
Updating from: rhel-atomic-host-beta-ostree:rhel-atomic-host/7/x86_64/standard

613 metadata, 3173 content objects fetched; 122756 KiB transferred in 652 seconds
Copying /etc changes: 10 modified, 4 removed, 35 added
Transaction complete; bootconfig swap: yes deployment count change: 1
Changed:

Step 5 : After completion of upgrade rebooted the server and checked the status using below command.

-bash-4.2# atomic status -p
============================================================
* DEFAULT ON BOOT
—————————————-
version    7.0.1
timestamp  2014-12-11 19:27:46
id         18a9998c80adb6986bf3c7c9eb31c1f9d408d074fdac0ee37a6074ea2be218b4.0
osname     rhel-atomic-host
refspec    rhel-atomic-host-beta-ostree:rhel-atomic-host/7/x86_64/standard
============================================================
NON-DEFAULT ROLLBACK TARGET
—————————————-
version    7.0.0
timestamp  2014-11-01 20:22:01
id         dcf0c846ff87f251d48439f6c90948f1183654a9b9d46b28c3f5e0f42c1ddf8e.0
osname     rhel-atomic-host
refspec    rhel-atomic-host-beta-ostree:rhel-atomic-host/7/x86_64/standard
============================================================

Step 6 : I can see the newer version of docker as well.

-bash-4.2# docker version
Client version: 1.3.2
Client API version: 1.15
Go version (client): go1.3.1
Git commit (client): 39fa2fa/1.3.2
OS/Arch (client): linux/amd64
Server version: 1.3.2
Server API version: 1.15
Go version (server): go1.3.1
Git commit (server): 39fa2fa/1.3.2

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s