Skip to content

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

@donovat

Description

@donovat

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 )}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions