Workshop Exercise - Simulate conversion failure

Table of Contents

Optional Exercise

This is an optional exercise. It is not required to successfully complete the workshop, but it will help demonstrate the effectiveness of rolling back a CentOS to RHEL conversion. Review the objectives listed in the next section to decide if you want to do this exercise or if you would rather skip ahead to the next exercise:

Objectives

Guide

In this exercise, we are going to intentionally misconfigure one of our application stack servers to demonstrate how rolling back can save the day.

Let’s get started!

Step 1 - Select an Application Stack Server

In the next exercise, we will be rolling back the CentOS to RHEL conversion across our three tier application servers.

[student@ansible-1 ~]$ ssh node6
Last login: Thu Jun  6 20:45:47 2024 from ip-192-168-0-233.us-east-2.compute.internal
[ec2-user@node6 ~]$ sudo su -
Last login: Thu Jun  6 02:58:51 UTC 2024 on pts/0
[root@node6 ~]#

Verify you see a root prompt like the example above.

Step 2 - Break your application

What if there was an issue with the PostgreSQL package conversion? Our application stack relies on the database to function. Without it, our application stack will be broken. We can simulate this by manually removing the postgresql-related packages like this:

  [root@node6 ~]# yum -y remove postgresql

Once the postgresql package removal has completed, let’s try testing the application via the CONVERT2RHEL / 99 - Three Tier App smoke test automation job. Switch to the browser instance with the AAP Web UI.

Job templates listed on AAP Web UI 2

This should take ~15 seconds to complete.

3tier-smoke-test-output

This simulates an example application impact that can be reversed by rolling back the conversion.

Conclusion

Congratulations, you have broken the application stack. Wasn’t that fun?

In the next exercise, you will correct the issue by rolling back the conversion.


Navigation

Previous Exercise - Next Exercise

Home