RedHatTraining / RedHatTraining/DO288-apps

Lab notes for Lab 8 - Lab: Building Cloud-Native Applications for OpenShift are incorrect.

Open
#166 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
139
Forks
13.7k
Avg merge
3d 19h
Merged PRs (30d)
16

Description

The lab notes for Lab 8 - Lab: Building Cloud-Native Applications for OpenShift are incorrect. . The Lab states;

A tododb service exists in your OpenShift project that connects to an external database. To obtain the FQDN of the external database, replace apps in your OpenShift cluster wildcard domain with mysql. For example, if the wildcard domain of your cluster is apps.cluster.domain.example.com, then the database FQDN is mysql.cluster.domain.example.com.

Thus taking my own lab as an example the mysql server would be at the url;
$ set | grep WILDCARD
RHT_OCP4_WILDCARD_DOMAIN=apps.eu46.prod.nextcle.com
$ MYSQL_DB=mysql.eu46.prod.nextcle.com

However this host then fails in the following mysql command
$ mysql -u -p -h${MYSQL_DB}

In the Solution element of the lab we see the command
MYSQL_DB=$(echo
mysql.ocp-${RHT_OCP4_WILDCARD_DOMAIN#"apps."})

Which adds a .ocp- element to the url. Once this is added the mysql command works. So the lab guide is in correct and should suggest to add msql.ocp-{your WILDCARD cluster domain (minus the apps )}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the Lab 8 notes at the linked course page and compare the database hostname instructions with the Solution element. Verify the working MYSQL_DB command shown in the issue, then update the lab text so the documented hostname matches the successful mysql invocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, shell
Domain
devops, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.