Deploying a specific version of Red Hat Enterprise Linux Atomic Host
Environment
- Red Hat Enterprise Linux Atomic Host 7.x
Issue
As a customer, I would like the ability to move to any released version of Red Hat Enterprise Linux Atomic Host.
Resolution
Red Hat Enterprise Linux Atomic Host release version commit IDs
In order to move to arbitrary releases of Red Hat Enterprise Linux Atomic Host, you must provide the full release commit ID. The table below lists the commit IDs for all Red Hat Enterprise Linux Atomic Host releases:
| Red Hat Enterprise Linux Atomic Host Version | Version Commit ID |
|---|---|
| 7.1.0 | 5799825b36f738bf5b21b3d9e98bd437a137e232be3780a787403288fd242f03 |
| 7.1.1 | 1673cf05ffd9f914348ec923cce863590209250006bc89ba6a32d2e55b143ee9 |
| 7.1.1-1 | 21bd99f9f37727358454866bf4f0d51fe53c2f03fc74f2e69c75cbef0383a3f1 |
| 7.1.2 | 203dd666d35e1866e753f62503189c98788c38f83fe04dc04fed9e100010c552 |
| 7.1.3 | 690b8691cc259906821b8b09327f132928f26acfb5488ab2fe772e7bfc71e521 |
| 7.1.3.1 | 34b9bb94a759bdaefcac25d74bc23dcbfc6834461d20bf2342ec1b3907521536 |
| 7.1.4 | 23e5e89ba5ee33fbdcf76f4fb7802db16019b661ddb5dab42c24a399f02d762c |
| 7.1.5 | 8060f80ffd480b3806c83dd36c2ec6023384716572cf07037eaf49a781c2cd29 |
| 7.1.6 | 23d96474f6775c27cf258e9872330b23f20e80ff4e0b61426debd00ca11a953f |
| 7.2 | ec85fba1bf789268d5fe954aac09e6bd58f718e47a2fcb18bf25073b396e695d |
| 7.2.1 | aaf67b91fafac29039841a6e4f6276cb957be63377806205a8f87d4afac985b6 |
| 7.2.2 | a9036292783ddfd389459d9bab69df5a655a0d6bb4dc6239a0aeff0f5d356f2e |
| 7.2.2-1 | 04019d7e50b22c19b717e657b58c0e33333eb92448fb99fe478c922d6e8bbe95 |
| 7.2.2-2 | 8b2cf24b420d659179dc866eab1bb341748839204ba56ed46a86218010789e91 |
| 7.2.3 | d620e841861c746b5a296337c1659e6625abfeff96844099d48540fc93717656 |
| 7.2.3-1 | 644fcc603549e996f051b817ba75a746f23f392cfcc7e05ce00342dec6084ea8 |
| 7.2.4 | b060975ce3d5abbf564ca720f64a909d1a4d332aae39cb4de581611526695a0c |
| 7.2.5 | 9bfe1fb65094d43e420490196de0e9aea26b3923f1c18ead557460b83356f058 |
| 7.2.6 | b672bf8a457cb28e003dee20c53749636ef5fce3e4743afe4aaad269d3aaa62a |
| 7.2.6-1 | dae35767902aad07b087d359be20f234d244da79fdd4734cd2fbc3ee39b12cf8 |
| 7.2.7 | 347c3f5eb641e69fc602878c646cf42c4bcd5d9f36847a1f24ff8f3ec80f17b1 |
| 7.3.0 | 90c9735becfff1c55c8586ae0f2c904bc0928f042cd4d016e9e0e2edd16e5e97 |
| 7.3.1 | 42cfe1ca3305defb16dfd59cd0be5c539f19ea720dba861ed11e13941423ae86 |
| 7.3.2 | 96826a0d917d7ff10f9fd0289581649f2ffbddd76f3b80efd3d95cc11915cacb |
| 7.3.2-1 | 69a74a4ed6954492a7c82279f6efe59bffb8952e95577f8359a6717d57a36774 |
| 7.3.3 | bfc591ba1a4395c6b8e54d34964b05df4a61e0d82d20cc1a2fd817855c7e2da5 |
| 7.3.4 | 4be47184245cc6d1c97a7bb2546c776e9124e3532ca4804a85227f8ebff24432 |
| 7.3.4-1 | d6c7a5639cdeb6c21cf40d80259d516d047176e35411c8684cae40a93eedbed0 |
| 7.3.5 | 0ccf9138962e5c2c3794969a228e751d13bb780f5b0a1f15f4a9649df06ba80a |
| 7.3.6 | e073a47baa605a99632904e4e05692064302afd8769a15290d8ebe8dbfd3c81b |
| 7.4.0 | 846fb0e18e65bd9a62fc9d952627413c6467c33c2d726449a1d7ad7690bbb93a |
| 7.4.1 | e83c16780259c5272684221e2a6007300d94bbfdc5432f9ab6025300f447145b |
| 7.4.2-1 | 36d9eb2d9b734e5e8552dcdbbe029bb250c00262dffc49f614b1c7a61eb53555 |
| 7.4.3 | 13fe9e86d640fd257afe831e4b33ad1eb6183d7de2a550dc7397a7b4b1f6ef25 |
| 7.4.4 | 91b59e14c4eef641f388cbc5b2cbbdd4653a89f4053d684217d9c1c9394c3dd3 |
| 7.4.5 | 6cb4d618030f69aa4a5732aa0795cb7fe2c167725273cffa11d0357d80e5eef0 |
| 7.5.0 | 5df677dcfef08a87dd0ace55790e184a35716cf11260239216bfeba2eb7c60b0 |
| 7.5.1.1 | c28680604bc84f472804a8f8c787917496739bc61529cbee7c474f68d4daeb81 |
| 7.5.2 | 7eae04224d894f6f0b57bf3c77f78c749d64813bd1543290f4b0276c81082617 |
| 7.5.3 | 03d524a16c8d76897f097565ca7452c1a5e2541f8c2beab145adf622499c7c64 |
Determining the Version Commit ID from the command line.
In addition to the table above, the version commit ID for all releases versions of RHEL Atomic Host can be found with the following commands:
# ostree pull --depth=-1 --commit-metadata-only rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
# ostree log rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
commit 9bfe1fb65094d43e420490196de0e9aea26b3923f1c18ead557460b83356f058 <=== Version ID
Date: 2016-06-18 15:21:12 +0000
Version: 7.2.5
[...]
Moving to arbitrary versions of Red Hat Enterprise Linux Atomic Host
There are two methods for switching to an arbitrary version of Red Hat Enterprise Linux Atomic Host. Both are described below.
NOTE: - Modified configuration files will not be modified when switching to an arbitrary release. If the configuration format or arguments have changed, config files will need to be adjusted to match.
Method 1a: Using the atomic command to move to a specific version (supported in RHEL AH versions 7.2.4 and newer)
This method uses the built-in atomic commands to simplify moving to a specific version.
-bash-4.2# atomic host status
TIMESTAMP (UTC) VERSION ID OSNAME REFSPEC
* 2016-05-06 05:57:30 7.2.4 b060975ce3 rhel-atomic-host rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
2016-04-12 14:20:45 7.2.3-1 644fcc6035 rhel-atomic-host rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
Then, use atomic host deploy to move to the desired version:
# atomic host deploy <version commit ID>
# systemctl reboot
Method 1b: Moving to an specific version manually without locking it down (supported in all RHEL AH versions)
This method is the manual version of the atomic host deploy command above. It allows you to move to a particular version of Atomic Host, but atomic host upgrade will still move to the latest version. To do it, you will need to use a release refspec. The refspec can be seen when the atomic host status command is run.
# atomic host status
TIMESTAMP (UTC) VERSION ID OSNAME REFSPEC
* 2015-12-03 19:40:36 7.2.1 aaf67b91fa rhel-atomic-host rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
# ostree pull rhel-atomic-host-ostree <version commit ID>
# ostree reset rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard <version commit ID>
# ostree admin deploy rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
# systemctl reboot
Method 2: Manually moving to a specific version and locking a system to an specific version (supported in all versions of RHEL AH)
This method "locks you in" to a particular release, requiring an atomic host rollback before being able to upgrade again. This method is ideal if you do not want the Atomic Host to be upgraded inadvertently.
# ostree pull rhel-atomic-host-ostree <version commit ID>
# ostree admin deploy <version commit ID>
# systemctl reboot
Any attempt to upgrade will show that the Atomic Host has no upgrade available:
# atomic host upgrade
Updating from: <version commit ID>
No upgrade available.
To "unlock" the Atomic Host, rollback and reboot. Once rebooted, the system will upgrade normally.
# atomic host rollback
# systemctl reboot
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.