Workshop Exercise - How is the Three Tier App Doing?

Table of Contents

Objectives

Guide

In Exercise 1.2 we installed a sample three tier application and tested application functionality via automation. Now that we have upgrade upgrade our RHEL7 application servers to RHEL8, let’s retest to see if there has been any impact.

Step 1 - Retest our Three Tier Application

It’s time to repeat the testing utilized in Step 4 of exercise 1.2.

Job templates listed on AAP Web UI 2

This should take ~15 seconds to complete.

3tier-smoke-test-output

Step 2 - Upgrade Three Tier Application Database Version

Let’s run some automation against the PostgreSQL system to update the PostgreSQL database version.

Job templates listed on AAP Web UI 3

This should take just under a minute to complete.

3tier-upgrade-output

Step 3 - Test our Three Tier Application - Again

With the PostgreSQL database upgraded, if you are still ssh’ed in as root on node3, you can verify that the database upgrade was successful by executing systemctl status postgres from the command line:

command output showing postgresql active

However, we want to ensure that our application stack is 100% fully functional, so let’s use our automated application testing:

Job templates listed on AAP Web UI 2

This should take ~15 seconds to complete.

3tier-smoke-test-output

Success! Our three tier application stack is fully functional, with all nodes running RHEL8!

Step 4 - Verify and Record Database Tables

In Exercise 2.2, we considered the potential pitfalls of including app data in the scope of our snapshot. Imagine what would happen if your app at first appeared fine after the conversion, but an issue was later discovered after the app had been returned to production use.

TASK [Fail if database db01 did not contain table 26-06-2024-17-56]

Remember and/or record this table name to see what happens after we revert the OS conversion in the next section of the workshop.

Note

The three tier application uses the current time and date to generate the new table names. Your table names are going to be different from the ones listed here in these exercises, as the instructions here were generated in the past.

Conclusion

In this exercise, we observed that while the RHEL In-place Upgrade was successful from a functional operating system standpoint, we found that the three tier application stack was broken after the upgrade process, prompting the need for additional, post-upgrade automation steps. Then we added some new app data via our application functionality verification automation testing. This will permit exploration and understanding of circumstances that can occur after rolling back the upgrade.

This concludes the RHEL In-Place Upgrade section of the exercise. In the next and final sections, we will be rolling back the upgrade, taking us right back to where we started.


Navigation

Previous Exercise - Next Exercise

Home